[issue4709] Mingw-w64 and python on windows x64

2015-12-20 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23670] Modifications to support iOS as a cross-compilation target

2015-12-20 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Another update - the issue with libffi has been resolved, so there is now only need for a single copy of libffi_ios sources. This directory could potentially be merged with the libffi_osx sources, except that libffi no longer supports PowerPC as a

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Martin Panter
Martin Panter added the comment: Left some comments about possibly unnecessary ref counting. Other than that it seems okay. -- ___ Python tracker ___

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

2015-12-20 Thread Swati Jaiswal
Changes by Swati Jaiswal : -- keywords: +patch Added file: http://bugs.python.org/file41377/iss_25913.patch ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread Martin Panter
Martin Panter added the comment: I understood “bytes-like” to mean what is now defined in the glossary: what is accepted by the C-level y* format for the PyArg parsing functions. I tend to agree with that it may not have been the best term to

[issue25844] Pylauncher, launcher.c: Assigning NULL to a pointer instead of testing against NULL

2015-12-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48b3cac0dbcd by Vinay Sajip in branch '3.4': Fixes #25844: Corrected =/== typo potentially leading to crash in launcher. https://hg.python.org/cpython/rev/48b3cac0dbcd -- ___ Python tracker

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread R. David Murray
R. David Murray added the comment: The term "bytes-like object" is specifically designed for those situations where python used to say "X does not support the buffer interface" if passed something else. Which is the case here...now it says "a bytes-like object is required". I'm not sure if

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

2015-12-20 Thread Steve Dower
Steve Dower added the comment: The per-user installs collide without the name change, and since those are now the default, it's important to have the change. The redirection you refer to only occurs for HKLM and not HKCU. The launcher was updated and tested to find all versions. If there's a

[issue25914] Fix OrderedDict.__sizeof__

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eric.snow, loewis, rhettinger ___ Python tracker ___

[issue25701] Document that tp_setattro and tp_setattr are used for deleting attributes

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 2.7 all is the same except that there is the sq_ass_slice slot and the PySequence_SetSlice() function. -- Added file: http://bugs.python.org/file41370/setattr-2.7.patch ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread SilentGhost
SilentGhost added the comment: Here is the patch. -- keywords: +needs review, patch nosy: +SilentGhost stage: -> patch review type: -> behavior versions: +Python 3.3, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file41368/issue25916.diff

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Sonali Gupta
Sonali Gupta added the comment: Should the sentence be removed completely? > This is equivalent to the Python expression ``list(o.keys())``. comments in Include/abstract.h are not absolutely correct too so should dictionary view be included in the return of PyMapping_Values, PyMapping_Keys

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

2015-12-20 Thread STINNER Victor
STINNER Victor added the comment: Regressions are not cool, but it was a deliberate choice to not support bytes filenames in os.scandir(). If you use bytes, you can get filenames which are invalid: you will be unable to use the filename with open() to read its content for example. Bytes

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

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For softer transition we can return old os.walk() implementation for bytes (may be with a deprecation warning). Using os.scandir() is just an optimization, and this shouldn't break existing program. -- nosy: +serhiy.storchaka

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
New submission from Adam Wasik: >>> file = open(r"C:\adam.txt","r+") >>> file.read() 'TEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TE XT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
Adam Wasik added the comment: duplicate of the issue #12215 -- status: open -> closed ___ Python tracker ___

[issue25917] Fixing howto links in docs

2015-12-20 Thread SilentGhost
New submission from SilentGhost: This patch changes links from wiki to howto part of docs. -- assignee: docs@python components: Documentation files: howto.diff keywords: needs review, patch messages: 256761 nosy: SilentGhost, docs@python priority: normal severity: normal stage: patch

[issue17868] pprint long non-printable bytes as hexdump

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> rejected ___ Python tracker ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-20 Thread Alessandro Cucci
Alessandro Cucci added the comment: Uploaded a new patch. This time I ran tests using: $ ./python -m test -v test_datetime and got no errors. I've written the c docstring, updated docs, and rewrote _format_time function. I know it's boring review this another time, but I'm doing my best.

[issue25914] Fix OrderedDict.__sizeof__

2015-12-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch correctly calculates the size of OrderedDict (the size of an instance dict should not be counted) and adds exact tests for sizeof. -- components: Extension Modules files: odict_sizeof.patch keywords: patch messages: 256754 nosy:

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> duplicate stage: -> resolved superseder: -> TextIOWrapper: issues with interlaced read-write type: -> behavior ___ Python tracker

[issue17868] pprint long non-printable bytes as hexdump

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Withdrawn in favor of issue17530. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread Iber Parodi Siri
New submission from Iber Parodi Siri: The documentation of readframes (wave module) states that readframes returns a string of bytes, just like python 2.7, but that's not the case in python 3.4 readframes returns byte type objects -- assignee: docs@python components: Documentation

[issue23808] Symlink to directory on Windows 8

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: -> behavior versions: +Python 3.6 ___ Python tracker ___

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

2015-12-20 Thread Campbell Barton
Campbell Barton added the comment: @haypo, I checked available info online and couldn't find any reference to byte file-paths were deprecated since Python3.2. On the contrary, the 3.2 release notes [0] state: "countless fixes regarding bytes/string issues; among them full support for a

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: -Python 3.4 ___ Python tracker ___

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Sonali Gupta
Sonali Gupta added the comment: The documentation now says that On success, return a list, a tuple or a dictionary view for PyMapping_Items, PyMapping_Values and PyMapping_Keys. -- keywords: +patch nosy: +mine0901 Added file: http://bugs.python.org/file41372/bug.patch

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, r.david.murray ___ Python tracker ___

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This is equivalent to the Python expression ``list(o.keys())``. This sentence is not correct. And comments in Include/abstract.h are not absolutely correct too. -- ___ Python tracker

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e54adef4064 by Serhiy Storchaka in branch '3.5': Issue #25766: Special method __bytes__() now works in str subclasses. https://hg.python.org/cpython/rev/1e54adef4064 New changeset af0b95fb1c19 by Serhiy Storchaka in branch 'default': Issue #25766:

[issue25898] Check for subsequence inside a sequence

2015-12-20 Thread Sebastian Linke
Sebastian Linke added the comment: Slightly modified the implementation to return the index rather than a boolean. -- Added file: http://bugs.python.org/file41374/subseq_index.patch ___ Python tracker

[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-20 Thread R. David Murray
R. David Murray added the comment: I think it is a reasonable backward-compatibility fix to make it work as badly as it previously did ;). I would not document it, and I do not consider it a high priority (as Serhiy said, this usage reached into object internals and thus was dangerous from

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

2015-12-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> components: +Library (Lib) -Documentation stage: -> test needed type: -> enhancement versions: -Python 3.5 ___ Python tracker

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

2015-12-20 Thread Brett Cannon
Brett Cannon added the comment: Trick with all of these suggestions is going to be thinking through compatibility issues from the change (which also means it can only apply to the default branch). -- nosy: +brett.cannon ___ Python tracker

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

2015-12-20 Thread Brett Cannon
Brett Cannon added the comment: The patch LGTM, Nicholas! I'll commit it when I have a chance. As for docs on test_importlib, nothing in the tests directory is documented to prevent people from depending on it since all the code in that directory is explicitly meant for testing Python and not

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

2015-12-20 Thread Nicholas Chammas
Nicholas Chammas added the comment: Alright, sounds good to me. Thank you for guiding me through the process! -- ___ Python tracker ___

[issue25752] asyncio.readline - add customizable line separator

2015-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: ReadStream.read_until() has been implemented instead enhancing readline(). -- resolution: -> wont fix ___ Python tracker

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added tests. -- Added file: http://bugs.python.org/file41373/etree_iter_refcount_2.patch ___ Python tracker ___

[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: ping. THis is essential in our software, so we use private field in order to work-around this bug. -- ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not the only place where "string of bytes" or "byte string" is used as a synonym to "bytes object". -- nosy: +serhiy.storchaka ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
R. David Murray added the comment: Yes, and I think it would be good to consistently use "bytes object" or similar wording, to avoid confusion. But not high enough priority to do a hunt-and-fix (unless someone really feels like doing that). I've got a patch pending for fixing it in the

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread SilentGhost
SilentGhost added the comment: Here is the patch replacing exact match 'string of bytes' with :class:`bytes` where appropriate. No match was found in base64. -- Added file: http://bugs.python.org/file41375/issue25916_2.diff ___ Python tracker

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___