Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109899 > unrolled thread
| Started by | Long Yang <long.0.yang@gmail.com> |
|---|---|
| First post | 2016-06-13 21:24 +0800 |
| Last post | 2016-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.
Conversion: execfile --> exec Long Yang <long.0.yang@gmail.com> - 2016-06-13 21:24 +0800
| From | Long Yang <long.0.yang@gmail.com> |
|---|---|
| Date | 2016-06-13 21:24 +0800 |
| Subject | Conversion: 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
Back to top | Article view | comp.lang.python
csiph-web