Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109899
| From | Long Yang <long.0.yang@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Conversion: execfile --> exec |
| Date | 2016-06-13 21:24 +0800 |
| Message-ID | <mailman.37.1465824286.2288.python-list@python.org> (permalink) |
| References | <CAKyEaCuhNhRudhV_xMo6WGnePdjFvcZ=R2eDru7JjQUoHgB+tQ@mail.gmail.com> |
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 comp.lang.python | Previous | Next | Find similar | Unroll thread
Conversion: execfile --> exec Long Yang <long.0.yang@gmail.com> - 2016-06-13 21:24 +0800
csiph-web