`exec`-based routine crashes app upon migration from 3.4.3 to python 3.5.2.

Lawrence D’Oliveiro lawrencedo99 at gmail.com
Mon Aug 1 21:45:20 EDT 2016


On Friday, July 29, 2016 at 6:25:51 AM UTC+12, Enjoys Math wrote:
> exec('obj = ' + objType + '(self)', None, _locals)
> obj = _locals['obj']

Why? Why not just
 obj = objType(self)
?


More information about the Python-list mailing list

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