Skip to main content
Code Review

Return to Answer

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

A safe eval aproach (not sure though if this helps but i would definitily recommend it if you must use it) is by using the ast module's literal eval

import ast
ast.literal_eval(data)

for more information you can take a look here here

A safe eval aproach (not sure though if this helps but i would definitily recommend it if you must use it) is by using the ast module's literal eval

import ast
ast.literal_eval(data)

for more information you can take a look here

A safe eval aproach (not sure though if this helps but i would definitily recommend it if you must use it) is by using the ast module's literal eval

import ast
ast.literal_eval(data)

for more information you can take a look here

added 116 characters in body
Source Link

A safe eval aproach (not sure though if this helps but i would definitily recommend itsbruce solutionit if you must use it) is by using the ast module's literal eval

import ast
ast.literal_eval(data)

for more information you can take a look here

A safe eval aproach (not sure though if this helps but i would definitily recommend itsbruce solution) is

import ast
ast.literal_eval(data)

for more information you can take a look here

A safe eval aproach (not sure though if this helps but i would definitily recommend it if you must use it) is by using the ast module's literal eval

import ast
ast.literal_eval(data)

for more information you can take a look here

Source Link

A safe eval aproach (not sure though if this helps but i would definitily recommend itsbruce solution) is

import ast
ast.literal_eval(data)

for more information you can take a look here

lang-py

AltStyle によって変換されたページ (->オリジナル) /