[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Attached patch covers the proposed documentation updates. -- Added file: http://bugs.python.org/file45744/issue23722_documentation_updates.diff ___ Python tracker

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-12-03 Thread Emanuel Barry
Changes by Emanuel Barry : -- nosy: +ebarry ___ Python tracker ___ ___ Python-bugs-list

[issue28862] test_import.py leaks on 2.7

2016-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6e9939e1f933 by Benjamin Peterson in branch '2.7': simplify cleanup of test_replace_parent_in_sys_modules (closes #28862) https://hg.python.org/cpython/rev/6e9939e1f933 -- nosy: +python-dev resolution: -> fixed stage: patch review ->

[issue28797] Modifying class __dict__ inside __set_name__

2016-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding the docs suggestion above, I need to make some other docs changes for issue 23722, so I'll roll that update in with those. Given that, I think we can mark this issue as resolved. -- resolution: -> fixed stage: patch review -> resolved status:

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: In the meantime, I'll try to work out a suitable documentation patch. -- ___ Python tracker ___

[issue28857] SyncManager and Main Process fail to communicate after reboot or stoping with Ctrl - C

2016-12-03 Thread Nagarjuna Arigapudi
Nagarjuna Arigapudi added the comment: I added logs just to provide additional info. The problem is one of the process uses " /tmp/pymp-xTqdkd" for communication and other uses "/tmp/pymp-LOMHoT/listener-EbLeup". because of mismatch porcesse could communicate and multiprocess application

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: Reassigning to Ned for now, pending finding another commit reviewer. -- assignee: ncoghlan -> ned.deily ___ Python tracker

[issue23722] During metaclass.__init__, super() of the constructed class does not work

2016-12-03 Thread Nick Coghlan
Nick Coghlan added the comment: This latest patch restores the behaviour where a reference to the class cell is returned from the class-defining closure. That restoration allows __build_class__ to implement a sanity check that ensures that the class referenced from the cell is the one that

[issue28864] Add devnull file-like object

2016-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If you need true file object, with name, fileno() etc, you can use open(os.devnull, 'w'). If the simple file-like object is enough, it is just few lines: class NullWriter: def write(self, s): pass io.StringIO() works in most cases well too.

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-03 Thread Zachary Ware
Zachary Ware added the comment: Indeed, thank you Marco for continuing this work! The patches that I committed [1] were mostly done by Jelle Zijlstra. There were not many tests that had dict ordering issues; but it looks like we used sorted() rather than list() in a few places. I think

[issue28864] Add devnull file-like object

2016-12-03 Thread Raymond Hettinger
New submission from Raymond Hettinger: Uses cases are the same as /dev/null: with redirect_stderr(io.DevNull()): some_func_using_stdout_and_stderr() -- messages: 282314 nosy: ncoghlan, pitrou, rhettinger priority: low severity: normal status: open title: Add devnull file-like

[issue28861] Type Hints Syntax

2016-12-03 Thread YoSTEALTH
YoSTEALTH added the comment: I was told to post this in python-ideas and also i totally missed the most important part (type aliases) in my example (rushed it) -- status: open -> closed ___ Python tracker

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: For some reason, not obvious to me, these patches cannot be reviewed on Rietveld. -- ___ Python tracker ___

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Marco, thank you for adding more energy to improving the docs. #27200 is the master issue for fixing failing doc doctests. The goal is to be able to have a buildbot run 'make doctest' or the Windows equivalent and expect success. For this issue, I mildly

[issue27200] make doctest in CPython has failures

2016-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: #10225, still open, has a old 3.2 patch that might be useful. If it is not, it should be closed. Note that Raymond does not like the patch for the sorting help doc. -- ___ Python tracker

[issue27200] make doctest in CPython has failures

2016-12-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: #28860 has a patch for configparser. Jelle, if you have more patches for some of the items listed above, please upload them so Marco can focus on the others. -- dependencies: +Fixed all the doctest failures in Doc/library/configparser.rst nosy:

[issue28754] Argument Clinic for bisect.bisect_left

2016-12-03 Thread Martin Panter
Martin Panter added the comment: Fair enough, I don’t really mind if it is (lo=0, hi=None). I think I have only used bisect with both defaults anyway. -- ___ Python tracker

[issue28863] Doc/includes/*.py files and doctests

2016-12-03 Thread Marco Buttu
New submission from Marco Buttu: In the Doc/includes directory, some of the *.py file names have a dash character. For instance: Doc/includes/tzinfo-examples.py. I am trying to make all of the code examples pass the doctests, and I usually need to import from these files some code. Importing

[issue28862] test_import.py leaks on 2.7

2016-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Following patch fixes a warning. I didn't run the test in debug mode, but suppose that the leak also is fixed. -- keywords: +patch nosy: +serhiy.storchaka stage: -> patch review Added file: http://bugs.python.org/file45742/test_import-leak-2.7.patch

[issue28862] test_import.py leaks on 2.7

2016-12-03 Thread Benjamin Peterson
New submission from Benjamin Peterson: It looks like the test if not the fix for #15578 reveals a reference leak somewhere in the import system: $ ./python Lib/test/regrtest.py -R :: test_import [1/1] test_import beginning 9 repetitions 123456789 . test_import leaked [1, 1, 1, 1]

[issue28861] Type Hints Syntax

2016-12-03 Thread YoSTEALTH
New submission from YoSTEALTH: Type Hints Syntax - Goal: Is to make it easy to read function/methods arguments, yet keep the new and cool Type Hints. For example this is a code from one of my function. Its getting to that point of what the heck is going on here? def

[issue28846] Add a ProviderKey to the installer bundle

2016-12-03 Thread Steve Dower
Steve Dower added the comment: This bloated into a couple of extra build/installer fixes, including *finally* fixing the sys._mercurial bug (I hope). I can also now merge fairly cleanly between 3.5 and 3.6 again, so I'm happy for a while :) -- resolution: -> fixed stage: needs patch

[issue28846] Add a ProviderKey to the installer bundle

2016-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68530c0a1487 by Steve Dower in branch '3.5': Issue #28846: Various installer fixes https://hg.python.org/cpython/rev/68530c0a1487 New changeset 5171bd86a36f by Steve Dower in branch '3.6': Issue #28846: Various installer fixes

[issue21147] sqlite3 doesn't complain if the request contains a null character

2016-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset e358aaf9563f by Benjamin Peterson in branch '2.7': fix refleak in null-containing error case (#21147) https://hg.python.org/cpython/rev/e358aaf9563f -- ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread Edward K. Ream
Edward K. Ream added the comment: On Sat, Dec 3, 2016 at 1:37 PM, Steve Dower wrote: ​Thanks, Steve and David, for your replies. Getting this issue fixed eventually will do.​ Glad to hear it was a mistake, and not policy ;-) EKR --

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-12-03 Thread Steve Dower
Steve Dower added the comment: It works for me. Can you confirm your operating system, and add the full output from running these commands: >>> print sys.version >>> from urllib2 import urlopen >>> urlopen('http://www.google.co.uk') >>> urlopen('https://www.google.co.uk') --

[issue6135] subprocess seems to use local encoding and give no choice

2016-12-03 Thread Steve Dower
Steve Dower added the comment: > looks like only way to specify console's codepage is with `encoding=os.device_encoding(2)` which will have to be used for 99% of cases That's true, but it only applies when the subprocess is using the same call (GetConsoleCP) to determine what encoding to use

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-03 Thread Marco Buttu
Marco Buttu added the comment: I usually keep the code examples focused, because I think extra code added just in order to have more tests can get the example less clear. But of course, there is an important downside :/ So, if your policy and goal is to have a better coverage of the code

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread Steve Dower
Steve Dower added the comment: This looks like it was my fault - I said I'd commit the patches and then never got back to it. I've assigned the issue to me so it doesn't fall off my radar again (though if someone else wants to do it first they're welcome to). But at this stage I suspect it's

[issue24339] iso6937 encoding missing

2016-12-03 Thread John Helour
Changes by John Helour : Added file: http://bugs.python.org/file45740/iso6937.py ___ Python tracker ___

[issue24339] iso6937 encoding missing

2016-12-03 Thread John Helour
Changes by John Helour : Removed file: http://bugs.python.org/file45708/iso6937.py ___ Python tracker ___

[issue25455] Some repr implementations don't check for self-referential structures

2016-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea1edf1bf362 by Benjamin Peterson in branch '2.7': when you enter repr, you must leave, too (#25455) https://hg.python.org/cpython/rev/ea1edf1bf362 -- ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-12-03 Thread Dāvis
Dāvis added the comment: And looks like only way to specify console's codepage is with `encoding=os.device_encoding(2)` which will have to be used for 99% of cases. I don't see other way... -- ___ Python tracker

[issue27870] Left shift of zero allocates memory

2016-12-03 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b190bfd9ab4 by Benjamin Peterson in branch '2.7': fix refleak in the shift-by-zero case (#27870) https://hg.python.org/cpython/rev/2b190bfd9ab4 -- ___ Python tracker

[issue28860] Fixed all the doctest failures in Doc/library/configparser.rst

2016-12-03 Thread Brett Cannon
Brett Cannon added the comment: For the iteration of dictionary keys, can you pass the keys through sorted() to have a deterministic order? -- nosy: +brett.cannon ___ Python tracker

[issue6135] subprocess seems to use local encoding and give no choice

2016-12-03 Thread Dāvis
Dāvis added the comment: Still can't specify encoding for getstatusoutput and getoutput. Also it uses wrong encoding by default, most of time it will be console's codepage instead of ANSI codepage which is used now. -- nosy: +davispuh ___ Python

[issue28853] locals() and free variables

2016-12-03 Thread Marco Buttu
Marco Buttu added the comment: I close it because the meaning of "free variable" is not clear. We are discussing about it in issue 26683. -- resolution: -> postponed status: open -> closed ___ Python tracker

[issue27647] Update Windows build to Tcl/Tk 8.6.6

2016-12-03 Thread Ned Deily
Ned Deily added the comment: Please don't change Mac/BuildScript. The code there to build Tcl and Tk is currently not used. -- nosy: +ned.deily ___ Python tracker

[issue28596] on Android _bootlocale on startup relies on too many library modules

2016-12-03 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- assignee: -> xdegaye stage: needs patch -> patch review type: behavior -> performance versions: -Python 3.6 ___ Python tracker

[issue28853] locals() and free variables

2016-12-03 Thread Julien Palard
Julien Palard added the comment: Should this issue be closed so? -- ___ Python tracker ___ ___

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: The MULTIARCH triplet: * is used by the build system in the suffix of the name of the _sysconfigdata private module, it may have any value (including being empty) when the platform is non-multiarch - for example cross-compiling for an Android emulator with

[issue28849] do not define sys.implementation._multiarch on Android

2016-12-03 Thread Xavier de Gaye
Xavier de Gaye added the comment: The change made by the patch in Makefile.pre.in handles the removing of the dangling underscore in the patch of issue 28833, it is not needed. android_multiarch_2.patch is simpler: the change in Makefile.pre.in has been removed and test_triplet_in_ext_suffix

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread R. David Murray
R. David Murray added the comment: Looks like it fell off everyone's radar.It is now also too late in the 3.6 release cycle: it isn't "release critical" in the sense of being a breaking regression from 3.5, so it is not likely to get in. Keep in mind that this is a distributed, mostly

[issue26683] Questionable terminology for describing what locals() does

2016-12-03 Thread Marco Buttu
Marco Buttu added the comment: The documentation [1] says: "If a variable is used in a code block but not defined there, it is a free variable." According to this description, it seems to me that the variable ``x`` is free in ``foo()``:: >>> def foo(): ... print(x) But actually for

[issue28853] locals() and free variables

2016-12-03 Thread Marco Buttu
Marco Buttu added the comment: Sorry, in the last example, for the code object ``x`` is not free both in ``foo()`` and ``moo()``, but this does not affect the conclusion. -- ___ Python tracker

[issue28853] locals() and free variables

2016-12-03 Thread Marco Buttu
Marco Buttu added the comment: Martin, I removed the class blocks by accident. In any case, I reject the patch by myself, because to me the definition of "free variable" is not clear. The documentation [1] says: "If a variable is used in a code block but not defined there, it is a free

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-12-03 Thread Максим Лукоянов
Максим Лукоянов added the comment: I still got the same issue with 2.7.12 x64 release version from https://www.python.org/downloads/release/python-2712/ -- nosy: +Максим Лукоянов ___ Python tracker

[issue25778] winreg.EnumValue does not truncate strings correctly

2016-12-03 Thread Edward K. Ream
Edward K. Ream added the comment: The last message on this thread was in January, and this item is Open. According to Pep 478, 3.5.2 final was released Sunday, June 26, 2016. How is this issue not a release blocker? Why does there appear to be no urgency in fixing this bug? This bug bites

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Argument Clinic is used just for running the generating code and inlining the result. This is the simplest part of Argument Clinic and using it looks an overhead. Argument Clinic has other disadvantages: * In any case you need a rule in Makefile, otherwise

[issue28638] Creating namedtuple is too slow to be used in common stdlib (e.g. functools)

2016-12-03 Thread INADA Naoki
INADA Naoki added the comment: > That leads into my main comment on the AC patch: the files that are > explicitly listed as triggering a new clinic run should be factored out into > a named variable and that list commented accordingly. done. -- Added file:

[issue27647] Update Windows build to Tcl/Tk 8.6.6

2016-12-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch updates Tcl/Tk versions to 8.5.19 and Tix version to 8.4.3.6 in Python 2.7 on Windows and Mac OS X. But needed to update http://svn.python.org/projects/external/ . Is there special script or instruction? -- keywords: +patch Added