Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109899 > unrolled thread

Conversion: execfile --> exec

Started byLong Yang <long.0.yang@gmail.com>
First post2016-06-13 21:24 +0800
Last post2016-06-13 21:24 +0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Conversion: execfile --> exec Long Yang <long.0.yang@gmail.com> - 2016-06-13 21:24 +0800

#109899 — Conversion: execfile --> exec

FromLong Yang <long.0.yang@gmail.com>
Date2016-06-13 21:24 +0800
SubjectConversion: execfile --> exec
Message-ID<mailman.37.1465824286.2288.python-list@python.org>
The python 2.x command is as following:
---------------------------
info = {}
execfile(join('chaco', '__init__.py'), info)
------------------------------

But execfile has been removed in python 3.x.
So my problem is how to convert the above to a 3.x based command?

thanks very much

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web