[issue23564] Patch fixing sanity check for ordered fd sequence in _posixsubprocess.c

2015-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Haha, yes, that description and patch look correct. Thanks! Fortunately this bug is low impact as this was just a sanity check and the calling code from subprocess.py was already passing the correct data in. An ideal regression test: An explicit unittest th

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: A few months ago, I modified Popen.communicate() to handle EINVAL on Windows. -- ___ Python tracker ___

[issue22555] Tracking issue for adjustments to binary/text boundary handling

2015-03-02 Thread Nick Coghlan
Nick Coghlan added the comment: PEP 461 landed, restoring binary interpolation support: https://hg.python.org/cpython/rev/8d802fb6ae32 There are also some relevant around standardising the C.UTF-8 locale currently available on some Linux systems: Fedora RFE: https://bugzilla.redhat.com/show_b

[issue22801] collections.Counter, when empty, doesn't raise an error with &= when other is an incompatible type

2015-03-02 Thread Raymond Hettinger
Raymond Hettinger added the comment: I see no reason pure python code to have to detect and report such oddities. Closing as not worth it. -- resolution: -> rejected status: open -> closed ___ Python tracker _

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread Martin Panter
Martin Panter added the comment: Do you think it would be enough to ensure the urlparse() result remembers whether the empty “//” was present or not? In other words, something like the following mockup (based on the Issue 22852 proposal). An example vunerable program would help me understand t

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker ___ ___ Python-bu

[issue23362] integer overflow in string translate

2015-03-02 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 3.3, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mail

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-02 Thread Martin Panter
Martin Panter added the comment: Thanks for that link; the answer by Eryksun is particularly enlightening. Apparently EINVAL actually represents an underlying broken pipe condition in Window

[issue23560] Group the docs of similar methods in stdtypes.rst

2015-03-02 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Removed file: http://bugs.python.org/file38305/functions.rst ___ Python tracker ___ ___ Python-bugs-list mailing

[issue23564] Patch fixing sanity check for ordered fd sequence in _posixsubprocess.c

2015-03-02 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue23567] os.stat() tuple access vs named attribute access int vs float

2015-03-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I missed that because i was looking for it to be called out under 2.7 os.stat() docs rather than under 2.7's os.stat_float_times() which is a method nobody is likely to read the documentation for as floats have been the default since 2.5. The 2.7 docs are mu

[issue23567] os.stat() tuple access vs named attribute access int vs float

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: It's already documented: https://docs.python.org/dev/library/os.html#os.stat_result "For compatibility with older Python versions, accessing stat_result as a tuple always returns integers." -- nosy: +haypo ___ Pyth

[issue22181] os.urandom() should use Linux 3.17 getrandom() syscall

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Commit in the Linux kernel: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895 -- Here is a patch to use the new getrandom() syscall of Linux 3.17 in the Python function os.urandom(). The functi

[issue23285] PEP 475 - EINTR handling

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Note: I found the bug while working on a patch for #22181. My test is this shell script: $ while true; do ./python -c 'import os, signal; signal.setitimer(signal.ITIMER_REAL, 0.001, 0.0001); signal.signal(signal.SIGALRM, lambda *args: print(".", end="")); pr

[issue23285] PEP 475 - EINTR handling

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: The change on Modules/_io/fileio.c is wrong: functions may return None with an exception set. It is wrong because a function must return a result with no exception set, or NULL and an exception set. Attached patch fixes this issue. -- Added file: http

[issue23567] os.stat() tuple access vs named attribute access int vs float

2015-03-02 Thread Gregory P. Smith
New submission from Gregory P. Smith: Python 2.7.6 (default, Mar 22 2014, 22:59:56) >>> import os, stat >>> os.stat('/') posix.stat_result(st_mode=16877, st_ino=2, st_dev=64513L, st_nlink=29, st_uid=0, st_gid=0, st_size=4096, st_atime=1425341751, st_mtime=1424824650, st_ctime=1424824650) >>> x

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-02 Thread Akira Li
Akira Li added the comment: On Windows behavior http://stackoverflow.com/questions/23688492/oserror-errno-22-invalid-argument-in-subprocess -- nosy: +akira ___ Python tracker ___

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread Yassine ABOUKIR
Yassine ABOUKIR added the comment: When you directly type //evil.com or evil.com in Firefox URL bar you will be redirect to evil.com and that is very known, read this : http://homakov.blogspot.com/2014/01/evolution-of-open-redirect-vulnerability.html Here is a video demonstration of the v

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: >>> urlparse("//evil.com") ParseResult(scheme='', netloc='evil.com', path='', params='', query='', fragment='') I see evil.com in the netloc field, ok. But Firefox doesn't use Python to parse and url, and typing //evil.com in the address bar converts the addre

[issue17352] Be clear that __prepare__ must be declared as a class method

2015-03-02 Thread Ethan Furman
Ethan Furman added the comment: Should __prepare__ be special-cased as a classmethod, like __new__ is? Is there any reason to ever have __prepare__ /not/ be a classmethod? -- ___ Python tracker __

[issue23550] Add to unicodedata a function to query the "Quick_Check" property for a character

2015-03-02 Thread Hammerite
Hammerite added the comment: Here is an initial attempt at a patch that implements the new function. Notes on this patch: - The function as implemented here returns a string: "Yes", "No", or "Maybe". In light of the fact that Python now has enums, it is probably more appropriate that unicoded

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread Yassine ABOUKIR
Yassine ABOUKIR added the comment: Yes, exploiting this bug an attacker may redirect a specific vitim to a malicious website, in our case evil.com >>> x = urlparse("evil.com") ///evil.com will be parsed as relative-path URL which is the correct expected behaviour >>> print x >>> ParseRes

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Only faulthandler_get_fileno() should be modified, but a new unit test should be added. -- ___ Python tracker ___ _

[issue23566] RFE: faulthandler.register() should support file descriptors

2015-03-02 Thread STINNER Victor
New submission from STINNER Victor: Currently, functions of the faulthandler module require a file-like object (with a fileno() method). It would be nice to accept also file descriptors (int). Example of code using faulthandler which creates an useless file object just to pass a file descript

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: > This can be practically exploited this way : > http://example.com/login?next=/evil.com Can you please elaborate on the "exploit" part? In Firefox, the "etc/passwd" link shows me my local file /etc/passwd. Ok, but how is it an issue? "//etc/passwd"

[issue23494] adding timedelta to datetime object is not timezone aware

2015-03-02 Thread Akira Li
Akira Li added the comment: pytz explicitly documents this case (crossing DST boundary). There is tz.normalize() method. > the tzinfo object is responsible for handling daylight savings time. This > looks like a bug in pytz. Are any of tzinfo methods even called during `before + timedelta(da

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-02 Thread Yassine ABOUKIR
Yassine ABOUKIR added the comment: For your information, this security issue has been assigned a CVE ID : CVE-2015-2104 -- ___ Python tracker ___ ___

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Added file: http://bugs.python.org/file38307/functions.rst ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: > It would be disconcerting if you went to this page looking for a builtin [and > had trouble finding it] I agree with this premise. Since Idle, and I presume other IDEs, color code apply, coerce, intern, and buffer as builtins indistinguishably from all the

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Edward D'Souza
Edward D'Souza added the comment: I think putting them in a separate table is good, but I think it makes more sense to appear right below the existing table at the top of the page. For better or worse, these "non-essential" functions are still builtins in Python 2. It would be disconcerting if

[issue21342] multiprocessing RLock and Lock raise incorrect exceptions when releasing an unlocked lock.

2015-03-02 Thread Davin Potts
Davin Potts added the comment: The discussion in issue23484 is leading to a recommendation that the docs be changed to reflect the actual behavior of multiprocessing's Lock and its close relatives. As far back as 2.6.9, calling release() on an unlocked threading.Lock triggered a thread.error

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: True, but that could change and is not true in Python 2. I suppose we could revert the change and add a static assertion. On Mon, Mar 2, 2015, at 14:24, Serhiy Storchaka wrote: > > Serhiy Storchaka added the comment: > > Because isize is the size of real PyU

[issue19075] Add sorting algorithm visualization to turtledemo

2015-03-02 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue23400] Inconsistent behaviour of multiprocessing.Queue() if sem_open is not implemented

2015-03-02 Thread Davin Potts
Davin Potts added the comment: Attaching a further revised patch for 3.4 and 3.5/default, now with cleaned-up code style per the discussion in the review. No changes are prompted for the patch to 2.7 as it only contained changes to the docs and nothing code-related. Thanks again goes to Berke

[issue19075] Add sorting algorithm visualization to turtledemo

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 596228491890 by Ethan Furman in branch 'default': issue19075: add visual sorting algorithms to turtledemo; original code from Jason Yeo https://hg.python.org/cpython/rev/596228491890 -- nosy: +python-dev ___

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Changes by Carlo Beccarini : Added file: http://bugs.python.org/file38305/functions.rst ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file38304/functools.rst ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: Well, the test doesn't hurt. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-02 Thread Carlo Beccarini
Carlo Beccarini added the comment: diff -r 3019effc44f2 Doc/library/functions.rst --- a/Doc/library/functions.rst Mon Mar 02 11:17:05 2015 -0500 +++ b/Doc/library/functions.rst Mon Mar 02 21:13:27 2015 +0100 @@ -22,10 +22,10 @@ :func:`classmethod` :func:`getattr`:func:`map` |func-re

[issue23342] run() - unified high-level interface for subprocess

2015-03-02 Thread Thomas Kluyver
Thomas Kluyver added the comment: Is there anything further I should be doing for this? -- ___ Python tracker ___ ___ Python-bugs-list

[issue23565] local_clear walks the list of threads without holding head_lock.

2015-03-02 Thread Daniel Stutzbach
New submission from Daniel Stutzbach: local_clear in _threadmodule.c walks the list of threads without holding head_mutex. Since the list of threads can change when holding only head_mutex and not on the GIL, the list can change while local_clear is executing, which may cause Bad Things to ha

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because isize is the size of real PyUnicode object. It's maximal value is PY_SSIZE_T_MAX - sizeof(PyASCIIObject) - 1. -- ___ Python tracker _

[issue23362] integer overflow in string translate

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ P

[issue23446] Use PyMem_New instead of PyMem_Malloc

2015-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: That would be nice. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread Demian Brecht
Changes by Demian Brecht : -- stage: patch review -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread Demian Brecht
Demian Brecht added the comment: > OK, sounds like we're approaching consensus? And I believe that the patch > as-is captures that consensus Yes, I believe that we’ve reached a consensus and that your patch captures it. Thanks for the work! -- ___

[issue23469] Delete Misc/*.wpr files

2015-03-02 Thread Michael Foord
Michael Foord added the comment: What is the advantage to deleting the Wing IDE project files, other than making it harder to use Wing to work on Python? -- ___ Python tracker _

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-02 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Cyd: I was trying to see if I could build the latest Python for Android (not to get it to run; just to get it to compile) so that your changes would (theoretically) easier to update to the latest Python. That failed. Miserably. Joys of cross-compiling Python.

[issue21919] Changing cls.__bases__ must ensure proper metaclass inheritance

2015-03-02 Thread Eldar Abusalimov
Eldar Abusalimov added the comment: @Mark, that OK, for the issue without a patch. :) I could make a patch, but I'm not sure whether the proposed behavior is right. It could be considered arguable, I guess... -- ___ Python tracker

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: One patch should be enough, @James. The committer will take care of porting. Thanks! ( I am yet to completely read the discussion/ review the patch and I will do that shortly.) -- ___ Python tracker

[issue23362] integer overflow in string translate

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21cd7f83e0aa by Benjamin Peterson in branch '3.3': use PyMem_NEW to detect overflow (closes #23362) https://hg.python.org/cpython/rev/21cd7f83e0aa New changeset 880906bbf792 by Benjamin Peterson in branch '3.4': merge 3.3 (#23362) https://hg.python.

[issue12067] Doc: remove errors about mixed-type comparisons.

2015-03-02 Thread Andy Maier
Andy Maier added the comment: I have posted v14 of the patch (for the 3.5 'default' branch), based on Martin's v13. v14 addresses all comments Martin made, as described in my responses to them (see patch set 10). On Issue 4395: That issue should be pursued in addition to this issue; it seems

[issue12067] Doc: remove errors about mixed-type comparisons.

2015-03-02 Thread Andy Maier
Changes by Andy Maier : Added file: http://bugs.python.org/file38303/issue12067-expressions-py3.5_v14.diff ___ Python tracker ___ ___ Python-

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: Why can't (isize > 10 ? 10 : isize) + isize overflow? -- nosy: +benjamin.peterson ___ Python tracker ___

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread James Rutherford
James Rutherford added the comment: OK, sounds like we're approaching consensus? And I believe that the patch as-is captures that consensus, so should I proceed and make another for 3.X for review? -- ___ Python tracker

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread R. David Murray
R. David Murray added the comment: Not to get into an API argument, but rather to convey some Python philosophy as I understand it: there *is* often a distinction in Python between the value 'None' and a boolean-False-value like ''. It is often the case in Python APIs that None means somethin

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread Demian Brecht
Demian Brecht added the comment: > Aside from that, however, I see request.('GET', '/') and request.('GET', '/', > '') as clearly *different* from an API call standpoint, so I would in any > case preserve the existing behavior. I do understand the case that the the two examples look different

[issue23368] integer overflow in _PyUnicode_AsKind

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Was fixed as part of issue23446. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ __

[issue23368] integer overflow in _PyUnicode_AsKind

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue23446] Use PyMem_New instead of PyMem_Malloc

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be apply the fix to 3.3? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue23362] integer overflow in string translate

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23368] integer overflow in _PyUnicode_AsKind

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list ma

[issue21293] Remove "capsule hack" from object.c?

2015-03-02 Thread Larry Hastings
Larry Hastings added the comment: Yeah, I went ahead and checked this in. I'm living life on the *edge*. To the EXTREME! -- assignee: -> larry resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually integer overflow in the line space = (isize > 10 ? 10 : isize) + isize; is not possible. Integer overflows in PyMem_Malloc were fixed in issue23446. -- ___ Python tracker

[issue21293] Remove "capsule hack" from object.c?

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b22755f8ab5f by Larry Hastings in branch 'default': Issue #21293: Remove unnecessary "capsule hack". https://hg.python.org/cpython/rev/b22755f8ab5f -- nosy: +python-dev ___ Python tracker

[issue23564] Patch fixing sanity check for ordered fd sequence in _posixsubprocess.c

2015-03-02 Thread Hisham Muhammad
New submission from Hisham Muhammad: In Modules/_posixsubprocess.c, (the helper module for Lib/subprocess.py) there's a function called _sanity_check_python_fd_sequence which checks, as its comment says, if the fds in the sequence are all positive and sorted. The check to verify if it is sorte

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84025a32fa2b by Benjamin Peterson in branch '3.3': fix possible overflow bugs in unicodedata (closes #23367) https://hg.python.org/cpython/rev/84025a32fa2b New changeset 90f960e79c9e by Benjamin Peterson in branch '3.4': merge 3.3 (#23367) https://h

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7401a28d3d41 by Steve Dower in branch '3.4': Issue #18382: Zero-length messages are consumed by ReadFile on Windows 8 and later https://hg.python.org/cpython/rev/7401a28d3d41 New changeset 6ccbcf1df7bd by Steve Dower in branch 'default': Issue #183

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2015-03-02 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-03-02 Thread Steve Dower
Steve Dower added the comment: The _WINSOCK_DEPRECATED_NO_WARNINGS question is still open, but the rest of the deprecations should be clear now. -- ___ Python tracker ___ __

[issue23451] Deprecation warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 57e2549cc9a6 by Steve Dower in branch 'default': Issue #23451: Update pyconfig.h for Windows to require Vista headers and remove unnecessary version checks. https://hg.python.org/cpython/rev/57e2549cc9a6 -- nosy: +python-dev __

[issue23558] Unable to install Python 3.4.3 amd64 on Windows 8.1

2015-03-02 Thread Steve Dower
Steve Dower added the comment: Glad you got it sorted out. I've done exactly the same thing too. The 3.5 installer is designed to have no impact on earlier versions, and also has different default directories for 32-bit vs. 64-bit, which will help prevent these problems in the future. ---

[issue21293] Remove "capsule hack" from object.c?

2015-03-02 Thread Larry Hastings
Larry Hastings added the comment: You give me too much credit. I'm the chimp who put it there in the first place. Though, admittedly, it was a copy&paste job based on the ancient CObject. My guess is this was very helpful in 1.4, or something. ;-) -- __

[issue9784] _msi.c warnings under 64-bit Windows

2015-03-02 Thread Steve Dower
Steve Dower added the comment: We'd need a contributor agreement from Jon anyway, so unless he rejoins this thread and is willing to sign that, there's little point looking at the patch. -- ___ Python tracker _

[issue21293] Remove "capsule hack" from object.c?

2015-03-02 Thread Steve Dower
Steve Dower added the comment: No current reasons I'm aware of (apart from not having a working up-to-date Windows buildbot right now - blocked on #23524) so I'd say go ahead. Pull it out and see what breaks. The fact that the comment says "pycapsule.o" and not "pycapsule.obj" probably means

[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate status: open -> closed superseder: -> TextIOWrapper: issues with interlaced read-write ___ Python tracker ___ _

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

2015-03-02 Thread Alex Shkop
Alex Shkop added the comment: The issue occurs only if C implementation of _warnings is available. It is caused by re-use of global filters variable from _warnings when warnings is being re-imported. So warnings modifies _warnings.filters on first import. Then, when you import warnings again i

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread R. David Murray
R. David Murray added the comment: Don't break backward compatibility. It's not like this was reported as a bug that caused a problem for real world code, it is about theoretical consistency. The risk of breaking someone code is much higher than the benefit of any such consistency, when talk

[issue23563] Faster urllib.urlparse utility functions

2015-03-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch optimizes utility functions in the urllib.parse module. $ ./python -m timeit -s "from urllib.parse import splittype" -- "splittype('type:'+'x'*1000)" Unpatched: 10 loops, best of 3: 17 usec per loop Patched: 10 loops, best of 3: 15

[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: This issue is probably a duplicate of the issue #12215 (see also #12513 for the codecs moduile). -- nosy: +haypo ___ Python tracker ___ ___

[issue23562] file.read() followed by file.write() result in incorrect behavior

2015-03-02 Thread Maxime S
New submission from Maxime S: Observed Behavior: $python3 Python 3.5.0a1+ (default, Mar 2 2015, 14:30:05) [GCC 4.6.3] on linux Type "help", "copyright", "credits" or "license" for more information. >>> f = open("test", "w+") >>> f.write("Hello World") 11 >>> f.seek(0) 0 >>> f.read(5) 'Hello' >

[issue23561] a little typo in dis.rst; need a non-trivial preceding dot

2015-03-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10b563c32f9d by Benjamin Peterson in branch '3.4': link to the correct dis method or function (closes #23561) https://hg.python.org/cpython/rev/10b563c32f9d New changeset 760f222103c7 by Benjamin Peterson in branch 'default': merge 3.4 (#23561) http

[issue19035] tokenize.generate_tokens treat '\f' symbol as the end of file (when reading in unicode)

2015-03-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Ha! Apparently this bug broke coverage for the Mailman 3 source code: https://bitbucket.org/ned/coveragepy/issue/360/html-reports-get-confused-by-l-in-the-code -- ___ Python tracker

[issue19035] tokenize.generate_tokens treat '\f' symbol as the end of file (when reading in unicode)

2015-03-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue23263] Python 3 gives misleading errors when validating unicode identifiers

2015-03-02 Thread STINNER Victor
STINNER Victor added the comment: > The attached patch attempts to clarify this by providing a different error > when the start character is invalid. I dislike the patch. The error message "invalid character in identifier" is correct. I don't want to modify so much code for a little better err

[issue23263] Python 3 gives misleading errors when validating unicode identifiers

2015-03-02 Thread Matt Bachmann
Matt Bachmann added the comment: Alrighty. I'll investigate and see if I can cut down the code some. If I can't significantly I'll let the issue die quietly. I agree that it's a pretty nitpick ticket. I noticed it while doing some research into unicode and made the patch when I saw how langu

[issue23192] Generator return value ignored in lambda function

2015-03-02 Thread Bruno Cauet
Bruno Cauet added the comment: Here are the operations being emitted (line, macro used and eventual argument): >>> f = lambda: (yield 5) 3487: ADDOP_O LOAD_CONST e->v.Num.n 3472: ADDOP YIELD_VALUE 1907: ADDOP_IN_SCOPE POP_TOP 4349: ADDOP_O LOAD_CONST Py_None 4350: ADDOP RETURN_VALUE 1457: ADDOP_

[issue23192] Generator return value ignored in lambda function

2015-03-02 Thread Bruno Cauet
Changes by Bruno Cauet : Added file: http://bugs.python.org/file38299/0002-lambda-generator-fix-try-to-add-a-dis-test.patch ___ Python tracker ___ __

[issue23330] h2py.py regular expression missing

2015-03-02 Thread Thomas Roos
Thomas Roos added the comment: works for me -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue23561] a little typo in dis.rst; need a non-trivial preceding dot

2015-03-02 Thread Novice Live
New submission from Novice Live: it is likely that the author of dis.rst omitted two non-trivial preceding dots. in the 'Bytecode analysis' section, both :meth:`dis` and :func:`dis` have no preceding dots before 'dis'. the dots may be trivial elsewhere, but they are non-trivial here. otherwise

[issue20059] Inconsistent urlparse/urllib.parse handling of invalid port values?

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM and I think it is worth to be applied to maintained releases. -- nosy: +orsenthil stage: -> commit review ___ Python tracker ___ ___

[issue21777] Separate out documentation of binary sequence methods

2015-03-02 Thread Ezio Melotti
Ezio Melotti added the comment: > Zach, Ezio - if there are any other refactorings from the reviews that > you'd like to pursue, consider pulling them out to separate issues so > we don't forget about them. See #23560. -- ___ Python tracker

[issue23560] Group the docs of similar methods in stdtypes.rst

2015-03-02 Thread Ezio Melotti
New submission from Ezio Melotti: The Doc/library/stdtypes.rst page describes in detail the built-in types and their methods. As suggested in #21777 (see the comments on Rietveld), it might be a good idea to group the documentation of some similar methods, such as {r|l|}just, {r|l|}strip, {r|

[issue23460] Decimals do not obey ':g' exponential notation formatting rules

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch type: -> enhancement versions: +Python 2.7, Python 3.5 ___ Python tracker ___ ___

[issue22801] collections.Counter, when empty, doesn't raise an error with &= when other is an incompatible type

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Additional check is not for free. $ ./python -m timeit -s "from collections import Counter; a = Counter(); b = Counter(range(10))" -- "a &= b" Unpatched: 10 loops, best of 3: 8.4 usec per loop Patched: 10 loops, best of 3: 9.7 usec per loop --

[issue23541] Re module's match() fails to halt on a particular input

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python

[issue22817] re.split fails with lookahead/behind

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: re.split() with the r'(? wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue433030] SRE: Atomic Grouping (?>...) is not supported

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue23559] [doc] inconsistent range example output

2015-03-02 Thread Georg Brandl
Georg Brandl added the comment: The example is correct. "r" is a range(0, 20, 2), whose last element is 18. -- nosy: +georg.brandl resolution: -> not a bug status: open -> closed ___ Python tracker __

  1   2   >