Terry J. Reedy added the comment:
What I meant is that one cannot use __builtin__ or builtins until one has done
the import, which is why people tend not to bother and instead do things like
ppperry was doing.
To the extent that tkinter is limited to CPython, so is IDLE. Still, the only
refe
Terry J. Reedy added the comment:
I added what I think is an improved version of what I posted.
For 2.7 only, a change in the generated html outside of the text proper from
using — and » to using — and »' resulted in the
extraneous characters being shown. The displayed text was preceded by '—
Roundup Robot added the comment:
New changeset 862761e4376e by Terry Jan Reedy in branch '2.7':
Issue #25564: Mention exec and __builtins__ in IDLE-console difference section.
https://hg.python.org/cpython/rev/862761e4376e
New changeset 641852513b8e by Terry Jan Reedy in branch '3.5':
Issue #255
Steven D'Aprano added the comment:
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 interpret
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.
ppperry: Titles should fit in the box, so they fit in search listing results.
I am thinking of something like "Since Python inserts '__buil