[issue26632] __all__ decorator

2016-05-25 Thread Franklin? Lee
Franklin? Lee added the comment: I probably won't submit a patch, but I can definitely write a bunch of private notes toward a patch and forget about them. >_> Idea 1: Crawl up the call tree and see whether you hit a module definition or a class definition first. Idea 2: Inspect __qualname__

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM, except that initial_len is now always 0. -- ___ Python tracker ___

[issue24225] Idlelib: changing file names

2016-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: To add to Terry's points: folks that would like to keep using the idlelib APIs as they exist in Python 3.5 will be free to create an idlelib35 project on PyPI, and bundle that or depend on it, depending on how their application manages dependencies. --

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: I switched the target component to Documentation to reflect that as far as we know this is feature complete from a functional perspective, but there hasn't been a review of the docs for bytecode references yet, nor a decision on whether or not we want to

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Chatting to Russell Keith-Magee, I realised the bytecode section in the devguide's description of the code generation pipeline may need some tweaks to account for the differences between 3.6 and earlier versions:

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: Experimenting with this locally, it looks like the C level hang is indeed due to #25782, but the fact that we're implicitly trying to do "exc.__context__ = exc" is a new bug in _GeneratorContextManager introduced by the PEP 479 changes. However, I'm now

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-05-25 Thread Ned Deily
Ned Deily added the comment: Thanks for your analysis! I'm sure that you are correct about Issue20353. It could also be the root cause of other crashes reported when internet proxies are used with urllib* invoking the _scproxy helper extension module, as reported in Issue13829. The

[issue27124] binascii.a2b_hex raises binascii.Error and ValueError, not TypeError

2016-05-25 Thread Luiz Poleto
Luiz Poleto added the comment: binascii.Error is used throughout the module for most of the validations, with only a few of them using TypeError/ValueError. I guess it would make more sense to update these to raise binascii.Error (unless they were left on purpose) to make it consistent with

[issue26632] __all__ decorator

2016-05-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On May 25, 2016, at 07:56 AM, Franklin? Lee wrote: >>AttributeError: 'tuple' object has no attribute 'append' >>which seems pretty obvious. > >I don't think the C version shows a traceback, so it won't be clear that >you're trying to assign to `__all__`.

[issue27125] Typo in Python 2 multiprocessing documentation

2016-05-25 Thread Martin Panter
Martin Panter added the comment: Python 2 patch, including the do → no fix -- Added file: http://bugs.python.org/file43008/will-be.py2.patch ___ Python tracker

[issue27125] Typo in Python 2 multiprocessing documentation

2016-05-25 Thread Martin Panter
Martin Panter added the comment: The “do authentication” error is already fixed in Python 3, but the other error also exists in Python 3. This patch also fixes related errors in Python 3 that I found. -- keywords: +patch nosy: +martin.panter stage: -> patch review versions: +Python

[issue27127] Never have GET_ITER not followed by FOR_ITER

2016-05-25 Thread Demur Rumed
New submission from Demur Rumed: This is a small change to comprehensions pass in their iterable rather than calling GET_ITER before CALL_FUNCTION. This makes it so that the compiler never generates GET_ITER without following it with FOR_ITER, nor does it generate FOR_ITER without preceding

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-25 Thread Martin Panter
Martin Panter added the comment: New patch with common _add_filters() function, and added resetwarnings() calls to avoid the conflict with pre-defined filters. -- Added file: http://bugs.python.org/file43005/issue18383_avoid_dups_4.diff ___ Python

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith -gps ___ Python tracker ___ ___

[issue24573] Using multiprocessing with tkinter frames in Python 3.4.3 crashes in OS X

2016-05-25 Thread Evan Jones
Evan Jones added the comment: This is another instance of the following bug: http://bugs.python.org/issue27126 libdispatch (grand central dispatch) is not fork safe. The forkserver approach is a good workaround, thanks! -- nosy: +evan.jo...@bluecore.com

[issue27126] Mac system sqlite3 not fork safe: Bundle a version?

2016-05-25 Thread Evan Jones
Changes by Evan Jones : Added file: http://bugs.python.org/file43004/osx_python3_crash.py ___ Python tracker ___

[issue27126] Mac system sqlite3 not fork safe: Bundle a version?

2016-05-25 Thread Evan Jones
New submission from Evan Jones: The system version of libsqlite3 that is included in Mac OS X is not fork safe. This means that if a process forks, and the child calls into it, it will crash with the stack trace below. I've reproduced this with both Python 2.7.10 and Python 3.5.1 on Mac OS X

[issue20353] Hanging bug with multiprocessing + sqlite3 + tkinter (OS X 10.9 only)

2016-05-25 Thread Evan Jones
Evan Jones added the comment: I believe the root cause of this bug is the following issue: http://bugs.python.org/issue27126 ; a workaround is to run the following code before forking any subprocesses: sqlite3.connect(':memory:').close() -- nosy: +evan.jo...@bluecore.com

[issue24225] Idlelib: changing file names

2016-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, and anyone else: I am *painfully* aware that any change to idlelib could break 3rd party imports. Efforts to improve IDLE have been crippled by the restriction of not doing so for years. But idlelib exists to implement IDLE and change is necessary to

[issue27125] Typo in Python 2 multiprocessing documentation

2016-05-25 Thread Phoenix
Phoenix added the comment: Later in the same paragraph: "This value will automatically inherited by" s/b (emphasis added) "This value will **be** automatically inherited by" Or, if you prefer your infinitives unsplit: "This value will be inherited automatically by" --

[issue27125] Typo in Python 2 multiprocessing documentation

2016-05-25 Thread Phoenix
New submission from Phoenix: At https://docs.python.org/2/library/multiprocessing.html#authentication-keys there is a typo in the documentation: "If authentication is requested but do authentication key is specified ..." s/b (emphasis added) "If authentication is requested but **no**

[issue24225] Idlelib: changing file names

2016-05-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned, the rename (only) patch is useless to read as it is hg's bloated expansion of the rename commands in i3rename.bat. The main update is based on my review of Al's patch. In user testing, I discovered that the debugger depended on 'RemoteDebugger.py' being

[issue27106] configparser.__all__ is incomplete

2016-05-25 Thread Łukasz Langa
Łukasz Langa added the comment: The reason we specifically omitted Error was two-fold: - the name "Error" is very generic and during a star-import might easily shadow some other class of the same name; - Error is only a base class for exceptions raised by configparser and as such isn't part of

[issue27112] tokenize.__all__ list is incomplete

2016-05-25 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: > * All names in black list are implementation details. Names in white list are > stable and already repeated in docs. Assumption here is that implementation details shouldn't "look" public - they should have names starting with "_"; I think blacklisting

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: Why not using sizeof(unsigned short) in the macro, rtbaer than 2? -- ___ Python tracker ___

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-25 Thread Demur Rumed
Demur Rumed added the comment: A documentation touch up for EXTENDED_ARG is included in #27095 -- ___ Python tracker ___

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-25 Thread Zachary Ware
Changes by Zachary Ware : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27054] Python installation problem: No module named 'encodings'

2016-05-25 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved ___ Python tracker ___ ___

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-25 Thread Mark Grandi
Mark Grandi added the comment: Oh, I didn't realize that both REG_QWORD and REG_QWORD_LITTLE_ENDIAN had the same value, that works then. -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset ed4eec682199 by Steve Dower in branch 'default': Closes #23026: Documentation improvements and code formatting https://hg.python.org/cpython/rev/ed4eec682199 -- resolution: -> fixed stage: commit review -> resolved status: open -> closed

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-25 Thread Steve Dower
Steve Dower added the comment: Thanks! I don't think we need to mention doc changes in whatsnew, but I've made the description more general and added the "New in version 3.6" notes to the winreg page. The formatting was presumably copied from the surrounding code, but I've fixed all

[issue23026] Winreg module doesn't support REG_QWORD, small DWORD doc update

2016-05-25 Thread Mark Grandi
Mark Grandi added the comment: in 'test_winreg.py', there should probably be a test that covers REG_QWORD_LITTLE_ENDIAN, even if they are essentially equivalent Also, in Py2Reg and Reg2Py, it seems that both are missing the 'case' clause for REG_QWORD_LITTLE_ENDIAN as well case REG_QWORD:

[issue27054] Python installation problem: No module named 'encodings'

2016-05-25 Thread Steve Dower
Steve Dower added the comment: I suspect PYTHONHOME is the problem and not the installation method. There have been thousands of (presumably successful) installations of Python 3.5, and I expect most of them are just for the current user (as that's the default). If these were all failing for

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-25 Thread R. David Murray
R. David Murray added the comment: Yes. The current behavior is not a bug, the question is, do we want to deal with that XXX comment in the test by detecting the duplicate and reconizing the "extra" mime part? The defect detection would remain. -- stage: -> needs patch type: ->

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opps, sorry. Fixed now. Thank you Berker for fast response. -- ___ Python tracker ___

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b26d07812a8e by Serhiy Storchaka in branch 'default': Fixed the use of _Py_IS_ALIGNED (issue #27097). https://hg.python.org/cpython/rev/b26d07812a8e -- ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Emanuel Barry
Emanuel Barry added the comment: Yes, and it seems that it is waiting for a review. http://bugs.python.org/issue25782 -- nosy: +ebarry ___ Python tracker

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Berker Peksag
Berker Peksag added the comment: Debug builds are broken after eda3716d6425: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/4332/steps/compile/logs/stdio -- nosy: +berker.peksag ___ Python tracker

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I join in the congratulations, Demur! Thank you for your contributions. I left this issue open for updating the documentation and other polishing. -- ___ Python tracker

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___

[issue25823] Speed-up oparg decoding on little-endian machines

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Corresponding patch was committed in issue27097. -- dependencies: -ceval: use Wordcode, 16-bit bytecode resolution: -> out of date stage: -> resolved status: open -> closed superseder: -> ceval: Wordcode follow up, explicit unsigned short read

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved ___ Python tracker

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset eda3716d6425 by Serhiy Storchaka in branch 'default': Issue #27097: Python interpreter is now about 7% faster due to optimized https://hg.python.org/cpython/rev/eda3716d6425 -- nosy: +python-dev ___

[issue23883] __all__ lists are incomplete

2016-05-25 Thread Jacek Kołodziej
Jacek Kołodziej added the comment: In this case I'm proposing a small patch just for testing pydoc module's __all__ list and left the decision to you, whether to apply it or not. :) Test doesn't use test.support.check__all__ (see msg266312) - blacklist would be huge and expected list, as you

[issue6818] remove/delete method for zipfile/tarfile objects

2016-05-25 Thread Denis Akhiyarov
Denis Akhiyarov added the comment: has this been merged? -- nosy: +Denis Akhiyarov ___ Python tracker ___ ___

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-25 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: Isn't this covered by the following test case? Lib/test/test_email/test_defect_handling.py:18 -- ___ Python tracker

[issue27124] binascii.a2b_hex raises binascii.Error and ValueError, not TypeError

2016-05-25 Thread Steven D'Aprano
Steven D'Aprano added the comment: In Python 3.x, 'a' is just as much a Unicode string as 'ä'. I agree that binascii.a2b_hex should raise ValueError for argument 'ä', or ';' for that matter, as they are invalid values. There's an inconsistency in why some invalid characters raise ValueError

[issue27124] binascii.a2b_hex raises binascii.Error and ValueError, not TypeError

2016-05-25 Thread Lennart Grahl
Lennart Grahl added the comment: When using binascii.a2b_hex (or binascii.unhexlify) and the argument is invalid, the doc states that it should raise a TypeError for invalid arguments (e.g. passing an odd-length string). However, it does raise binascii.Error instead of TypeError: try:

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Yury Selivanov
Yury Selivanov added the comment: > > Maybe we should deny setting "exc.__context__=exc" (modify > PyException_SetContext for that). Maybe raise a new RuntimeError in this case? There is a patch for that somewhere on the tracker -- ___ Python

[issue27124] binascii.a2b_hex raises binascii.Error, not TypeError

2016-05-25 Thread Lennart Grahl
New submission from Lennart Grahl: When using binascii.a2b_hex (or binascii.unhexlify) and the argument is invalid, the doc states that it should raise a TypeError for invalid arguments (e.g. passing an odd-length string). However, it does raise binascii.Error instead of TypeError: try:

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes the testGetaddrinfo test for API 21 (the test runs fine on API 23): The failing statement 'socket.getaddrinfo(HOST, "http")' in testGetaddrinfo does not test explicitly for "http" and for the absence of the optional 'type' parameter.

[issue27096] Ability to get random bytes from random.Random (as with os.urandom)

2016-05-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Campbell, I concur with Serhiy that this isn't worth growing the API. -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: ushort3.patch LGTM. You might also add (copy) the added assertions in PyCode_New*(). -- ___ Python tracker ___

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: > The loop seems to be in PyErr_SetObject in a loop that recursively go through > PyException_GetContext. We should also fix this function to avoid the infinite loop. Maybe we should deny setting "exc.__context__=exc" (modify PyException_SetContext for

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: Problems with the socket module on Android: API 21: a) Both getservbyname() and getservbyport() fail when the optional 'protocolname' parameter is not set to 'tcp' or 'udp'. b) getservbyname() fails when 'servicename' is set to 'http'. getaddrinfo()

[issue26936] android: test_socket fails

2016-05-25 Thread Xavier de Gaye
Xavier de Gaye added the comment: This patch fixes the testGetServBy test for API 21 and 23 (fixing the cases a) and e) of my previous msg). -- keywords: +patch Added file: http://bugs.python.org/file43000/null-proto.patch ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Nick Coghlan
Nick Coghlan added the comment: The suggested fix looks basically correct to me - the problem is that the new except clause added by that patch is currently missing the "don't re-raise the passed in exception" logic needed to fully abide by the context management protocol, but we missed that

[issue27123] Allow `install_headers` command to follow specific directory structure

2016-05-25 Thread Sylvain Corlay
New submission from Sylvain Corlay: (instead of making a flat copy of the specified list of headers) Unlike wheel's `data_files`, which allows to specify data files as a list of tuples `[(target_directory, [list of files for target directory])]` the `headers` setup keyword argument only

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-05-25 Thread Thomas Kluyver
Changes by Thomas Kluyver : -- nosy: +takluyver ___ Python tracker ___ ___

[issue26814] [WIP] Add a new _PyObject_FastCall() function which avoids the creation of a tuple or dict for arguments

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: I fixed even more issues with my setup to run benchmark. Results should be even more reliable. Moreover, I fixed multiple reference leaks in the code which introduced performance regressions. I started to write articles to explain how to run stable

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: Simplified script to reproduce the bug. -- nosy: +haypo Added file: http://bugs.python.org/file42999/hang_bug2.py ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: Workaround, or maybe fix?, for the issue: diff -r 0af15b8ef3b2 Lib/contextlib.py --- a/Lib/contextlib.py Thu May 12 10:37:58 2016 +0300 +++ b/Lib/contextlib.py Wed May 25 15:56:50 2016 +0200 @@ -87,6 +87,8 @@ class _GeneratorContextManager(ContextDe

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: It's a regression introduced by the PEP 479 in Lib/contextlib.py by the changeset 36a8d935c322, "PEP 479: Change StopIteration handling inside generators (Closes issue #22906)". -- ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +yselivanov ___ Python tracker ___ ___

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-25 Thread Xiang Zhang
Xiang Zhang added the comment: It's my pleasure and thanks for your time reviewing this thread too. -- ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42998/update_package_v1.png ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42997/install_local_archive_v1.jpg ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42996/install_requirement_v1.jpg ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42995/install_pyPI_v1.png ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42993/welcome_v1.jpg ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Changes by Upendra Kumar : Added file: http://bugs.python.org/file42994/select_venv_system.jpg ___ Python tracker ___

[issue27051] Create PIP gui

2016-05-25 Thread Upendra Kumar
Upendra Kumar added the comment: I am posting flow of logic for application and related page layouts. Related layouts are : 1. welcome_v1 2. select_venv_system 3. install_pyPI_v1 4. install_local_archive_v1 5. install_pythonlibs_v1 6. install_requirements_v1 7. update_package_v1 8.

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-05-25 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review ___ Python tracker ___

[issue16509] sqlite3 docs do not explain check_same_thread

2016-05-25 Thread Berker Peksag
Berker Peksag added the comment: Issue 27113 has a patch and more detailed description so I'm going to close this one as a 'duplicate'. Thanks for the report! -- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: ->

[issue27113] sqlite3 connect parameter "check_same_thread" not documented

2016-05-25 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of issue 16509, but I'm going to keep this open since there is a patch attached here. -- nosy: +berker.peksag stage: -> needs patch versions: +Python 3.5 ___ Python tracker

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2016-05-25 Thread Berker Peksag
Berker Peksag added the comment: It was removed before and added back with a deprecation warning (because someone was using it). A little bit off-topic, but it would be great to have a "deprecated APIs in Python 3" list somewhere in the Python documentation (see

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2016-05-25 Thread R. David Murray
R. David Murray added the comment: Nevertheless, our current standing policy is to not remove anything until after 2.7 goes out of maintenance entirely. -- nosy: +r.david.murray ___ Python tracker

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +ncoghlan ___ Python tracker ___ ___

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread R. David Murray
Changes by R. David Murray : -- nosy: +gps ___ Python tracker ___ ___ Python-bugs-list

[issue27110] smtpd.__all__ list is incomplete

2016-05-25 Thread R. David Murray
R. David Murray added the comment: Yeah, good point. Leave it alone. -- ___ Python tracker ___ ___

[issue27108] mimetypes.__all__ list is incomplete

2016-05-25 Thread R. David Murray
R. David Murray added the comment: I thought having the empty blacklist was a good reminder, in case names are added later that need blacklisting (though granted that should be unlikely at this point, since we are more consistent about using _ names for internals now). I have no objection to

[issue5996] abstract class instantiable when subclassing dict

2016-05-25 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___

[issue26306] Can't create abstract tuple

2016-05-25 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: test needed -> resolved status: open -> closed superseder: -> abstract class instantiable when subclassing dict ___ Python tracker

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-25 Thread Andrea De Pasquale
Changes by Andrea De Pasquale : -- nosy: +adepasquale ___ Python tracker ___ ___

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Done. Thank you for your contribution Xiang Zhang. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27120] xmllib unable to parse in UTF8 format

2016-05-25 Thread Enrico
Enrico added the comment: I have attached xmllib.py. This file is in python23\lib folder. The strings in XML file are in cyrillic language. My code: import xmllib class Parser(xmllib.XMLParser): # a simple styling engine def __init__(self): xmllib.XMLParser.__init__(self)

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b4c3dda679a by Serhiy Storchaka in branch 'default': Issue #27118: Clean up Py_XINCREF/Py_XDECREF in typeobject.c. https://hg.python.org/cpython/rev/3b4c3dda679a -- nosy: +python-dev ___ Python tracker

[issue23883] __all__ lists are incomplete

2016-05-25 Thread Martin Panter
Martin Panter added the comment: I think pydoc could be left alone. The RST documentation doesn’t say anything about importing any functions from the module that I can see. I was surprised that it even defines __all__ = ["help"]. Perhaps pydoc.doc() was another false indication in Serhiy’s

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Victor's comments. -- Added file: http://bugs.python.org/file42990/ushort3.patch ___ Python tracker

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-25 Thread STINNER Victor
STINNER Victor added the comment: LGTM too. Serhiy, do you want to push the patch? -- nosy: +haypo ___ Python tracker ___

[issue27054] Python installation problem: No module named 'encodings'

2016-05-25 Thread Hugh C. Lauer
Hugh C. Lauer added the comment: All, it seems that installation of Python 3.5.1 on Windows 7 must also be done as administrator. Once I did that, the installation of Python 3.5.1, numpy 1.11.0, and matplotlib 1.5.1 all went seamlessly. The only environment variable that was changed was to

[issue27112] tokenize.__all__ list is incomplete

2016-05-25 Thread Martin Panter
Martin Panter added the comment: I think it might be better to add a separate “import tokenize as tokenize_module”. Or just “import tokenize” inside the test function. IMO changing all the names adds too much churn with minimal benefit. Maybe also should restore the “from unittest import . .

[issue27118] Several Py_XDE/INCREFs in typeobject.c are not necessary

2016-05-25 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue27120] xmllib unable to parse in UTF8 format

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please provide minimal reproducer? Minimal script and minimal data that expose the issue. -- nosy: +serhiy.storchaka stage: -> test needed ___ Python tracker

[issue27032] Remove deprecated html.parser.HTMLParser.unescape()

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point. Maybe the deprecation period of HTMLParser.unescape() should be prolonged. On other side, this method is not documented, nor in 2.7, nor in 3.x. It is not a part of official API. -- ___ Python

[issue27105] cgi.__all__ is incomplete

2016-05-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK. This is unusual name for public function and looks rather as internal function for manual module testing, but since it is documented, we perhaps should add its name to __all__. The patch LGTM. -- ___ Python

[issue27054] Python installation problem: No module named 'encodings'

2016-05-25 Thread Hugh C. Lauer
Hugh C. Lauer added the comment: I am back from my travels. Thanks Zachary for this. On Windows 10, no PYTHON or PYTHONHOME environment variable is set. On Windows 7, they are set. Moreover, even though I am installing Python 3.5.1, the refer to C:\Program files\Python34 ! I will continue to

[issue15625] Support u and w codes in memoryview

2016-05-25 Thread Марк Коренберг
Марк Коренберг added the comment: Trigger the same bug I want to effectively slice big unicode string. So I decide to use memoryview for that in order to eliminate memory copying. In [33]: a = array.array('u', 'превед') In [34]: m = memoryview(a) In [35]: m[2:] Out[35]: In [36]: m[0] ...

[issue27054] Python installation problem: No module named 'encodings'

2016-05-25 Thread Hugh C. Lauer
Hugh C. Lauer added the comment: I am back from my travels. Thanks very much, Stefan. Running as administrator did the trick for Windows 10 installations. I now have a reliable, repeatable protocol that I can give to students with little computing experience that will enable them to install

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-05-25 Thread Valentin David
New submission from Valentin David: The attached script hangs while using 100% on Python 3.5.1 but not on Python 3.4.3. Tested both on Gentoo Linux and Ubuntu Linux. The loop seems to be in PyErr_SetObject in a loop that recursively go through PyException_GetContext. subprocess.Popen seems

  1   2   >