[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-19 Thread SilentGhost
SilentGhost added the comment: Perhaps, I'm looking in the wrong place, but there doesn't seem be any test for bytes filenames. -- keywords: +3.5regression nosy: +SilentGhost stage: -> test needed type: -> behavior versions: +Python 3.6 ___ Python

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +benhoyt, haypo ___ Python tracker ___ ___

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Committed with improved tests. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.4 ___ Python tracker

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you David. Looks related to alignment. Hope this will help. -- ___ Python tracker ___

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread R. David Murray
R. David Murray added the comment: At least some of the buildbots aren't happy. http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%203.5/builds/479/steps/test/logs/stdio http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%202.7/builds/1077/steps/test/logs/stdio

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1388dbdd293 by Serhiy Storchaka in branch '3.5': Use correct PyGC_Head size in tests for issue #25421. https://hg.python.org/cpython/rev/a1388dbdd293 New changeset ab97ff838e11 by Serhiy Storchaka in branch '2.7': Use correct PyGC_Head size in

[issue24580] Wrong or missing exception when compiling regexes with recursive named backreferences

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is too late for 3.4, and I left 2.7 as is. Reopen issue if you think that it is worth to add a warning to 2.7. -- nosy: +benjamin.peterson resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71d6755145ae by Serhiy Storchaka in branch '3.5': Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. https://hg.python.org/cpython/rev/71d6755145ae New changeset 4a47e998c40a by Serhiy Storchaka in branch 'default': Issue

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- versions: -Python 3.4 ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Writing something takes more work than not writing something, but I never used the word 'expensive'. I definitely think a there should be a tkinter-based pip gui. Since there would be no needed interaction with IDLE internals, it should be a stand-alone

[issue25912] Use __spec__.__name__ instead of __name__ in the docs where appropriate

2015-12-19 Thread Antony Lee
New submission from Antony Lee: There are a couple of places in the docs where it would be appropriate to replace __name__ by __spec__.__name__ in order to support the case where the module is executed as the __main__ module: - logging.getLogger should certainly use __spec__.__name__ so that

[issue25768] compileall functions do not document or test return values

2015-12-19 Thread Nicholas Chammas
Nicholas Chammas added the comment: Ah, I see. The setup/teardown stuff runs for each test. So this is what I did: * Added a method to add a "bad" source file to the source directory. It gets cleaned up with the existing teardown method. * Used test_importlib to temporarily mutate sys.path as

[issue22995] Restrict default pickleability

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New patch more accurate detects objects with a state. It compares object's size with calculated minimal size, counting __dict__, __weakref__ and slots. -- versions: -Python 3.4 Added file: http://bugs.python.org/file41363/pickle_restrictions_5.patch

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-19 Thread Bastien Montagne
New submission from Bastien Montagne: In py3.4 and below we used to be able to use bytes filenames with os.walk(), it’s now impossible under windows due to the limitation of os.scandir(). This issue was reported to Blender tracker (https://developer.blender.org/T47018). I assume this should

[issue24434] ItemsView.__contains__ does not mimic dict_items

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yet one corner case: >>> (1, math.nan) in {1: math.nan}.items() True >>> (1, math.nan) in ItemsView({1: math.nan}) False This can be resolved if compare not v with value, but a tuple (key, v) with item. -- ___

[issue25148] Windows registry PythonCore key changed inconsistent with other releases

2015-12-19 Thread Mark Hammond
Mark Hammond added the comment: > and the launcher was actually updated to match the registry key > directly, rather than special-casing the "-32" suffix It appears this has broken the launcher. A freshly-built py.exe from Python 3.5 doesn't seem to find older 32bit versions, while py.exe from

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-12-19 Thread Ruel Net1400
Ruel Net1400 added the comment: ReadMe -- nosy: +Ruel Net1400 ___ Python tracker ___ ___ Python-bugs-list

[issue25848] Tkinter tests failed on Windows buildbots

2015-12-19 Thread Larry Hastings
Larry Hastings added the comment: I'm assuming this is a configuration issue on the buildbots. -- priority: release blocker -> low ___ Python tracker ___

[issue22429] asyncio: pending call to loop.stop() if a coroutine raises a BaseException

2015-12-19 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW I think this is now fixed differently, because we reimplemented stop() to use a flag on the loop that's checked by _run_once(), rather than raising an exception. _run_until_complete_cb() can be reduced to simply call fut._loop.stop(). (At least, all

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2015-12-19 Thread Soren Solari
New submission from Soren Solari: According to the PDF Spec http://www.adobe.com/devnet/pdf/pdf_reference.html section 7.4.3, The ascii85decode function only utilizes ~> as an EOD 2byte character, there is no mention of leading <~. Therefore using the base64.a85decode(data, adobe=True) does

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Library (Lib) nosy: +isoschiz, pitrou, serhiy.storchaka versions: +Python 3.6 ___ Python tracker

[issue25148] Windows registry PythonCore key changed inconsistent with other releases

2015-12-19 Thread Mark Hammond
Mark Hammond added the comment: > The original naming ("3.5") can't be used because you can't > simultaneously install 32-bit and 64-bit per-user Pythons with the same > key name. They will be in different nodes - the 32bit version would be under Wow6432Node. The py.exe launcher had no issues

[issue23997] unicodedata_UCD_lookup() has theoretical buffer overflow

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now the error message virtually always contains the name (unless the length of its UTF-8 representation > INT_MAX). With unicode_name_maxlen.patch it doesn't contains the name of length few hundreds or tens characters. Proposed patch makes the error

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-12-19 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg256747 ___ Python tracker ___

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-12-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: -Ruel Net1400 ___ Python tracker ___ ___

[issue21815] imaplib truncates some untagged responses

2015-12-19 Thread Lita Cho
Lita Cho added the comment: Applied the changes that berkerpeksag made. Please review, and let me know if further changes need to be made. -- Added file: http://bugs.python.org/file41366/imaplib_after_review.patch ___ Python tracker

[issue25421] Make __sizeof__ for builtin types more subclass friendly

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___

[issue15068] fileinput requires two EOF when reading stdin

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Benjamin, is it good to add PendingDeprecationWarning in 2.7? -- nosy: +benjamin.peterson versions: -Python 3.4 ___ Python tracker

[issue25153] PCbuild/*.vcxproj* should use CRLF line endings

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> needs patch ___ Python tracker ___ ___

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Nick Coghlan
Nick Coghlan added the comment: If anything was to be copied from IPython, then the system shell access feature might be worth considering: http://ipython.readthedocs.org/en/stable/interactive/reference.html#system-shell-access However, a command to launch a suitably configured shell session

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The documentation and comments for PyMapping_Items, PyMapping_Keys and PyMapping_Values are not correct about return type. The documentation says that return type is a list. For example for PyMapping_Items: On success, return a list of the items in

[issue25910] Fixing links in documentation

2015-12-19 Thread SilentGhost
New submission from SilentGhost: I've run 'make linkcheck' on Doc and it highlighted a number of faulty links in documentation. I've tried fixing some of them and here is the resulting patch. It's a bit too long and touches many files, so to summarise: * Most changes are http->https redirect

[issue25910] Fixing links in documentation

2015-12-19 Thread SilentGhost
Changes by SilentGhost : -- stage: needs patch -> patch review Added file: http://bugs.python.org/file41362/output.txt ___ Python tracker

[issue25624] shutil.make_archive makes invalid directory entries

2015-12-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___ ___

[issue25464] Tix HList header_exists should be "exist"

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Opened Tix bug: https://sourceforge.net/p/tix/bugs/110/ . -- ___ Python tracker ___

[issue25464] Tix HList header_exists should be "exist"

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for using Tix in IDLE, on Python wiki [1] there is a mention about the 'Tixed' version of IDLE called IDEStudio: [2], [3]. [1] https://wiki.python.org/moin/Tix [2] http://web.archive.org/web/20050307041957/starship.python.net/crew/mike/Idle/ [3]

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Aivar Annamaa
Aivar Annamaa added the comment: I believe for beginners it's not difficult to enter "pip install package". The trouble is with opening the command prompt, knowing about PATH and different Python versions etc. Terry mentioned GUI development to be more expensive. What about providing a

[issue25624] shutil.make_archive makes invalid directory entries

2015-12-19 Thread Larry Hastings
Larry Hastings added the comment: Like I said--no. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23551] IDLE to provide menu link to PIP gui.

2015-12-19 Thread Aivar Annamaa
Aivar Annamaa added the comment: Another (more general) alternative: provide a menu item "Open system shell for this Python version", which opens a terminal window with correct Scripts or bin folder in path. -- ___ Python tracker

[issue23231] Fix codecs.iterencode/decode() by allowing data parameter to be omitted

2015-12-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch changes public interface. This breaks compatibility with third-party codecs implementing it. We have found other solution to iterencode/iterdecode problem. For example we can buffer iterated values and encode with one step delay: prev =

[issue25907] Documentation i18n: Added trans tags in sphinx templates

2015-12-19 Thread Julien
Julien added the comment: For emacs users, this `query-replace-regex` comes handy to add trans tags around strings, if one want to apply them to another file / version: >\([^>^J]*[a-zA-z][^>^J]*\)< -> >{% trans %}\1{% endtrans %} Note that ^J is obtained typing C-q C-j. --

[issue19317] ctypes.util.find_library should examine binary's RPATH on Solaris

2015-12-19 Thread Richard PALO
Richard PALO added the comment: I tried this patch out on pkgsrc, it does seem reasonable and appropriate. So +1 from me. It does only look for libraries the actual $PREFIX directory used by packaging systems such as pkgsrc and csw. (typically /usr/local, /opt/local or /opt/csw in the case