Movatterモバイル変換


[0]ホーム

URL:


homepage

Message273617

This issue trackerhas been migrated toGitHub, and is currentlyread-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Authorsteven.daprano
Recipientsppperry, steven.daprano, terry.reedy
Date2016-08-25.01:50:48
SpamBayes Score-1.0
Marked as misclassifiedYes
Message-id<20160825015039.GE26300@ando.pearwood.info>
In-reply-to<1472072691.69.0.782723468817.issue25564@psf.upfronthosting.co.za>
Content
Terry J. Reedy added the comment:> Steven: "You should use `__builtin__` in Python 2 and `builtins` in > Python 3."  I presume this is for import statements.My understanding is that __builtins__ is intended to be for the private use of the CPython interpreter only. It may not be available in other Pythons, or in the future, and code that needs access to the built-ins should treat it as a regular module and import it via __builtin__ in Python 2 and builtins in Python 3.In other words, unless you're the CPython interpreter, don't touch __builtins__.I don't know whether IDLE is considered sufficiently closely integrated to CPython that it is allowed to rely on __builtins__, but for an ordinary module (even one in the stdlib) I wouldn't touch it at all.
History
DateUserActionArgs
2016-08-25 01:50:48steven.dapranosetrecipients: +steven.daprano,terry.reedy,ppperry
2016-08-25 01:50:48steven.dapranolinkissue25564 messages
2016-08-25 01:50:48steven.dapranocreate
Supported byThe Python Software Foundation,
Powered byRoundup
Copyright © 1990-2022,Python Software Foundation
Legal Statements

[8]ページ先頭

©2009-2026 Movatter.jp