[issue433028] SRE: (?flag:...) is not supported

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is preliminary patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file38296/re_scoped_flags.diff ___ Python tracker __

[issue433028] SRE: (?flag:...) is not supported

2015-03-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Improve some re error messages using regex for hints ___ Python tracker ___ ___ Pytho

[issue23262] webbrowser module broken with Firefox 36+

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

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

2015-03-02 Thread Ezio Melotti
Ezio Melotti added the comment: While the request is reasonable, the patch seems to touch quite some code. Since this is just to improve an error message in a somewhat obscure corner case, I'm not sure it's worth applying it. -- nosy: +serhiy.storchaka stage: -> patch review versions:

[issue23275] Can assign [] = (), but not () = []

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

[issue23312] google thinks the docs are mobile unfriendly

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

[issue23320] devguide should mention rules about "paragraph reflow" in the documentation

2015-03-02 Thread Ezio Melotti
Ezio Melotti added the comment: Agreed with what Georg said and I think the devguide can be update accordingly. -- assignee: -> docs@python components: +Documentation keywords: +easy nosy: +docs@python stage: -> needs patch ___ Python tracker

[issue23330] h2py.py regular expression missing

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

[issue23559] [doc] inconsistent range example output

2015-03-02 Thread Raphaël Bleuse
New submission from Raphaël Bleuse: Reading the documentation for ranges (see https://docs.python.org/3.5/library/stdtypes.html#ranges), the example using a negative index output is inconsistent with the range effective behaviour. One can read: " >>> r[-1] 18 " while (in my understanding) it

[issue23367] integer overflow in unicodedata.normalize

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Unicode nosy: +ezio.melotti, haypo, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-

[issue23192] Generator return value ignored in lambda function

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

[issue22933] Misleading sentence in doc for shutil.move

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22942] Language Reference - optional comma

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +Joshua.Landau, neil.g ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed with Ezio. Adding 7 new public names just to enhance one rare error message looks too hight cost. I am inclined to left all as is. Original message is not so bad. -- ___ Python tracker

[issue22785] range docstring is less useful than in python 2

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +benjamin.peterson type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22812] Documentation of unittest -p usage wrong on windows.

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue22813] No facility for test randomisation

2015-03-02 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue23330] h2py.py regular expression missing

2015-03-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: my be change the pattern to '<([^>\n]+)>'? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ P

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

2015-03-02 Thread Mark Dickinson
Mark Dickinson added the comment: I don't think we should close: the documentation as written explicitly says that the rules apply to both Decimal and float: "The available presentation types for floating point and decimal values are ...". But the details listed for 'g' are incorrect. We cou

[issue22831] Use "with" to avoid possible fd leaks

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

[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 __

[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.

[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

[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

[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 --

[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 ___ ___

[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|

[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

[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 ___ ___

[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

[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

[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 ___ __

[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

[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

[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

[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

[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

[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' >

[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 ___ ___

[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

[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

[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

[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 ___ _

[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

[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 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. ;-) -- __

[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. ---

[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 __

[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 ___ __

[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

[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

[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

[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

[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

[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 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

[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

[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:

[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

[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

[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 ___ __

[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

[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 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

[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 ___

[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-

[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

[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.

[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

[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

[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.

[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 _

[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! -- ___

[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

[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

[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

[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 _

[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

[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

[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

[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 SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file38304/functools.rst ___ Python tracker ___ ___ Python-bugs-list mailing list

[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

[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 ___

[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 Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[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

[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

[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

[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 Carlo Beccarini
Changes by Carlo Beccarini : Added file: http://bugs.python.org/file38307/functions.rst ___ Python tracker ___ ___ Python-bugs-list mailing li

[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 ___ ___

[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 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"

[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

[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 ___ _

[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

[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

  1   2   >