[issue25564] Document that IDLE -python difference for `del __builtins__`

2016-08-24 Thread Steven D'Aprano
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

[issue27821] IDLE custom keymaps don't work anymore (Windows, Python 3.6.0a3)

2016-08-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset f198457d1475 by Terry Jan Reedy in branch 'default': Issue #27821: Fix bug in idlelib.comfig function and add new tests. https://hg.python.org/cpython/rev/f198457d1475 -- nosy: +python-dev ___ Python trac

[issue27821] IDLE custom keymaps don't work anymore (Windows, Python 3.6.0a3)

2016-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thank you for the tutorial example. Thinking of execution frames as stacked rooms in a tower in a text adventure game is an interesting metaphor. I duplicated the tests of idleConf.current_colors_and_keys with 'Theme' for 'Keys' and one failed until "'Theme'"

[issue27173] Modern Unix key bindings for IDLE

2016-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Any backport must include the bugfix in #27821. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue27857] n identical objects divide into m different groups

2016-08-24 Thread JAG3R
New submission from JAG3R: hello, everyone. I'm a newbie learner.^^ Recently, I learn the itertools and write this function... heap(m,n)-> X=[] X.append([n ,0,...,0] (len=m)) X.append([n-1,1,...,0]) ... X.append([n-1,0,...,1]) X.append([n-2,2,...,0]) X.append([n-2,1,1..,0]) ... X.append([0

[issue27855] 2to3: Wrong code output w/ has_key

2016-08-24 Thread Eric N. Vander Weele
Eric N. Vander Weele added the comment: I am unable to replicate this issue with '2to3' from Python 2.7.12, Python 3.4.5, nor Python 3.5.2. Below is what I get with the versions I mentioned above. --- $ cat test.py a.has_key(b) and x $ 2to3 test.py RefactoringTool: Skipping optional fixer: b

[issue27855] 2to3: Wrong code output w/ has_key

2016-08-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Eric, remove the space from after the has_key call to match OP: $ cat test.py a.has_key(b)and x It's legal to omit the space there. -- nosy: +josh.r ___ Python tracker _

[issue27855] 2to3: Wrong code output w/ has_key

2016-08-24 Thread Josh Rosenberg
Josh Rosenberg added the comment: Testing it myself that way: C:\>type test.py a.has_key(b)and x C:\>"C:\Program Files\Python 3.5\Tools\scripts\2to3.py" test.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional f

[issue25564] Document that IDLE -python difference for `del __builtins__`

2016-08-24 Thread Roundup Robot
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

[issue27855] 2to3: Wrong code output w/ has_key

2016-08-24 Thread Eric N. Vander Weele
Eric N. Vander Weele added the comment: > Eric, remove the space from after the has_key call to match OP: > $ cat test.py > a.has_key(b)and x Good catch. Disregard msg273622 from me - I am able to replicate what the OP has described. -- ___ Python

[issue25564] Document that IDLE -python difference for `del __builtins__`

2016-08-24 Thread Terry J. Reedy
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 '—

[issue12319] [http.client] HTTPConnection.request not support "chunked" Transfer-Encoding to send data

2016-08-24 Thread Martin Panter
Martin Panter added the comment: Here is my attempt to drop automatic Content-Length with files. I also dropped the special handling of zero-length iterables, added some tests for that, and removed some unused and misleading bits from other tests. -- Added file: https://bugs.python.org

[issue25564] Document that IDLE -python difference for `del __builtins__`

2016-08-24 Thread Terry J. Reedy
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

[issue27821] IDLE custom keymaps don't work anymore (Windows, Python 3.6.0a3)

2016-08-24 Thread Vedran Čačić
Vedran Čačić added the comment: Not only that, but when you're on the ground you have a much more diverse set of options for moving. `s` is "enter a different tower", `r` is "exit a tower", `n` is "move to the next tower", `j` is "teleport" and so on. :-) Also for objects... you have "look aro

[issue27857] n identical objects divide into m different groups

2016-08-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please don't post random code on the issue tracker. Use python-list to discuss your beginner efforts. Except in unusually cases, the editor you use in not relevant. -- assignee: terry.reedy -> components: -IDLE resolution: -> not a bug stage: ->

<    1   2