A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-June/135127.html below:

[Python-Dev] Criticism of execfile() removal in Python3

[Python-Dev] Criticism of execfile() removal in Python3 [Python-Dev] Criticism of execfile() removal in Python3Paul Moore p.f.moore at gmail.com
Thu Jun 19 22:46:02 CEST 2014
On 19 June 2014 20:39, Joseph Martinot-Lagarde
<joseph.martinot-lagarde at m4x.org> wrote:
> Another way is to open the file in binary, then exec() checks itself if an
> encoding is defined in the file. This is what is used in spyder:
>
> exec(open(file, 'rb').read())
>
> Here is the discussion for reference:
> https://bitbucket.org/spyder-ide/spyderlib/pull-request/3/execution-on-current-spyder-interpreter/diff

It would be good to document this. Could you open a docs bug to get this added?

Paul
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4