[issue23262] webbrowser module broken with Firefox 36+

2015-02-27 Thread bazwal
bazwal added the comment: > this will break the support of IceApe on Debian Etch Is Python committed to supporting obsolete Debian releases? The latest oldstable Debian release (6.0 Squeeze) has iceape-2.0.11 [1], which does seem to support the -new-window and -new-tab options (I haven't actua

[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity

2015-02-27 Thread Charles-François Natali
Charles-François Natali added the comment: Well, we already expose CPU affinity: >>> import os >>> os.sched_getaffinity(0) {0} IMO the current implementation is sufficient (and talking about overcommitting for CPU is a bit moot if you're using virtual machine anyways). The current documentatio

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

2015-02-27 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity

2015-02-27 Thread Julian Taylor
Julian Taylor added the comment: oh thats great so python already has what I want. Then just an small documentation update would be good, I'll have a go at a patch later. -- ___ Python tracker

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

2015-02-27 Thread Ceridwen
New submission from Ceridwen: Attached is a three-line script whose third line, a call to match() for a compiled regex, fails to halt on Python 2.7 and on 3.4 (after changing ur in front of the regex string to r to accommodate the change in Unicode handling). I found it by stepping through th

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2015-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This restriction was added because bad thing could happen when statically allocated class inherits dynamically allocated class. I don't remember the number of the issue where such example was exposed, may be Alex remember it. Likely pygobject creates classes

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

2015-02-27 Thread James Rutherford
James Rutherford added the comment: Patch attached for the 2.7 branch, including updated tests. All tests pass. Let me know if this looks like a sensible approach and I'll produce something comparable for 3.X. The logic now is as it was before, except that we set a content length of zero if

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

2015-02-27 Thread Demian Brecht
Demian Brecht added the comment: My concern about this is around the combination of the following two passages: draft-ietf-httpbis-p2-semantics-14, Section 7.3: > Bodies on GET requests have no defined semantics. Note that sending > a body on a GET request might cause some existing impleme

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

2015-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Minimal example for your case is re.match(r'(\w+\s*)+\s+\d+', 'Compiling Regular Patterns to Sequential Machines') It doesn't halt, it just needs too long time to finish. Your should rewrite the regular expression to avoid catastrophic backtracking (http:/

[issue23535] os.path.join() wrong concatenation of "C:" on Windows

2015-02-27 Thread Eugene Bright
Eugene Bright added the comment: Sorry for disturbing. I'll read docs more careful next time. -- ___ Python tracker ___ ___ Python-bug

[issue23542] Update PEP 476 for using urllib2.build_opener()

2015-02-27 Thread Shakeel Mohamed
New submission from Shakeel Mohamed: In the "Opting Out" section of PEP 476, there's a workaround for disabling SSL cert verification. I think it would be worth updating the section to include the following workaround when using urllib2.build_opener(), like so: unverified_ssl_handler = urlli

[issue23523] cmath.atanh has wrong output

2015-02-27 Thread Mark Dickinson
Mark Dickinson added the comment: > Both are correct Well, strictly speaking only the output with positive imaginary part is correct here: the recommendations of C99 Annex G (which Python's cmath module follows) use the sign of the zero imaginary part to determine which 'side' of the branch cu

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

2015-02-27 Thread Carlo Beccarini
Carlo Beccarini added the comment: Well, these built-in are considered as non essential. -- nosy: +Paradisee title: List of builtins is not alphabetical on https://docs.python.org/2/library/functions.html -> The list of built-in http://text-processing.com/demo/sentiments is not alphabe

[issue23262] webbrowser module broken with Firefox 36+

2015-02-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May it is time to drop support of SeaMonkey 1.x and systems released 8 years ago. But then we should drop the support of browsers "netsape", "mozilla", "firebird". And this should be documented somewhere. -- ___ P

[issue23488] Random objects twice as big as necessary on 64-bit builds

2015-02-27 Thread Mark Dickinson
Mark Dickinson added the comment: > see my old issue #17884 ... and you can also re-read my explanations in that issue about why simply using uint32_t and int32_t doesn't work! We need something like PY_UINT32_T (and co) for portability. The only part of #17884 that's still valid is that it

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

2015-02-27 Thread Demian Brecht
Demian Brecht added the comment: > The logic now is as it was before, except that we set a content length of > zero if the body is None and the method is one of OPTIONS, PATCH, PUT, or > POST. I see we definitely have similar thinking on the modifications required for this, but I don’t think

[issue23543] encoding error trying to save string to file

2015-02-27 Thread Rosa Maria
New submission from Rosa Maria: I made a program to read which files are in a windows folder, and saves in a file in order to print it, but when it tries to write in a file the following error appears: UnicodeEncodeError: 'charmap' codec can't encode character '\u2010' in position 8: chara

[issue23544] Idle stacker viewer crash OSX

2015-02-27 Thread Andrew Harrington
New submission from Andrew Harrington: 1. In idle 3.4.3, OSX 10.10, active state Tk 8.5.17, starting data: Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 23 2015, 02:52:03) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin 2. start debugger, open very simple demo file, attached: 3. run, so debug

[issue23544] Idle stacker viewer crash OSX

2015-02-27 Thread SilentGhost
Changes by SilentGhost : -- components: +Macintosh nosy: +kbk, ned.deily, roger.serwy, ronaldoussoren, terry.reedy ___ Python tracker ___

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

2015-02-27 Thread Matthew Barnett
Matthew Barnett added the comment: The problem is with the "(\w+\s*)+". \s* can match an empty string, so when matching a word it's like "(\w+)+". If you have n letters, there are 2**n ways it could match, and if what follows never matches, it'll try all of them. It _will_ finish, eventually.

[issue23543] encoding error trying to save string to file

2015-02-27 Thread STINNER Victor
STINNER Victor added the comment: Please provide the full traceback. The error can come from a lot of functions. Which function fails? -- ___ Python tracker ___ _

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

2015-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: The table was deliberately created as it is and I think it should be left as is. Those four functions appear 'out of order' in a separate section "3. Non-essential Built-in Functions". -- nosy: +terry.reedy stage: -> needs patch

[issue23520] test_os failed (python-3.4.3, Linux SuSE)

2015-02-27 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: test_os failed (python-3.4.3) -> test_os failed (python-3.4.3, Linux SuSE) ___ Python tracker ___ _

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

2015-02-27 Thread Edward D'Souza
Edward D'Souza added the comment: Doesn't make sense to me. The page says "They are listed here in alphabetical order.", which isn't true. Furthermore, not putting them in order screws up people who assume it is in alphabetical order and try to search for a function with their eyes. If they

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

2015-02-27 Thread Martin Panter
Martin Panter added the comment: I like Demian’s “expecting_len” technique slightly better because it would avoid calling None.fileno() and len(None), as Demian just said. Also, I think OPTIONS should be removed from the list of methods that enforce a Content-Length. I wouldn’t normally expect

[issue23544] IDLE hangs with debug on and stack viewer

2015-02-27 Thread Ned Deily
Changes by Ned Deily : -- nosy: -ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23544] IDLE hangs with debug on and stack viewer

2015-02-27 Thread Ned Deily
Ned Deily added the comment: Thanks for the detailed report. The problem is more general as it is reproducible on Linux X11-based IDLEs as well. -- components: -Macintosh nosy: -ronaldoussoren title: Idle stacker viewer crash OSX -> IDLE hangs with debug on and stack viewer versions

[issue22791] datetime.utcfromtimestamp() shoud have option for create tz aware datetime

2015-02-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I like Akira's documentation patch. Will apply unless hear objections from documentation folks. -- assignee: -> belopolsky components: +Documentation -Library (Lib) ___ Python tracker

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

2015-02-27 Thread James Rutherford
James Rutherford added the comment: The first patch should actually be modified so the condition reads (update attached): if body is None and method_expects_body: thelen = 0 elif body is not None: ... Demian, I believe this is equivalent to your 'expecting_len' proposal

[issue23545] Turn on extra warnings on GCC

2015-02-27 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: What if make GCC emit extra warnings? Adding following options: -Wall -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers will make GCC emit all warnings except few types that would produce too many warnings. With these option

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

2015-02-27 Thread Carlo Beccarini
Carlo Beccarini added the comment: Maybe we could put them in another table below the current one. -- ___ Python tracker ___ ___ Pytho

[issue23544] IDLE hangs when selecting Stack View with debug active

2015-02-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Verified on Windows whenever the debugger is active, meaning that a program is running. (Debug On just means that it will become active when code is run.) No stepping is needed; debugger can be pointing to the inital docstring line. For me also, Idle stops a

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-02-27 Thread Davin Potts
Davin Potts added the comment: Confirmed that the issue can be reproduced under 2.7.9 on OS X 10.10. It is not possible to reproduce the issue with default (3.5) -- taking a look at what's different there, notably the import of is_exiting has moved to the top of the queues module and is no lon

[issue23543] encoding error trying to save string to file

2015-02-27 Thread Martin Panter
Martin Panter added the comment: Python 3 will only use UTF-8 encoding if you ask it to, or if the default locale encoding happens to be UTF-8. I suspect one of the file names in the “hay” list must contain a Unicode hyphen (U+2010), and your default encoding is some single byte encoding that

[issue23538] New Windows installer in 3.5.0a1 breaks compatibility with Wine

2015-02-27 Thread Steve Dower
Steve Dower added the comment: Yeah, I don't get anything helpful out of that, except that it seems wine hasn't implemented some of the APIs that it needs to run the installer. You may get a more helpful response from one of their devs, but I'm well out of my depth sorry. --

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

2015-02-27 Thread R. David Murray
Changes by R. David Murray : -- title: The list of built-in http://text-processing.com/demo/sentiments is not alphabetical on https://docs.python.org/2/library/functions.html -> The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-27 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: Ok, if I don't finish it today, I *will* finish it tomorrow. Or Sunday. Sunday is the latest, though I'm pretty sure I'll be done by Saturday. Hardest part is likely going to be re-configuring the Android emulator to test it. Cyd (and anyone else who can), do

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-27 Thread Ethan Furman
Ethan Furman added the comment: Yup, that sounds right! ;) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23254] Document how to close the TCPServer listening socket

2015-02-27 Thread Martin Panter
Martin Panter added the comment: Posting server_close.v2.patch, which tests fileno(), and uses a single space between the new sentences. Also added a bit to the how-to at the top (using doubly-spaced sentences to match the rest of the paragraph). -- Added file: http://bugs.python.org/f

[issue23254] Document how to close the TCPServer listening socket

2015-02-27 Thread Demian Brecht
Demian Brecht added the comment: LGTM. I'm not sure whether or not it's eligible for 3.4 though as it's a documentation and not a functional fix. -- stage: patch review -> commit review ___ Python tracker

[issue23528] Limit decompressed data when reading from GzipFile

2015-02-27 Thread Martin Panter
Martin Panter added the comment: Perhaps we should move the discussion of a common base class to Issue 23529. I only opened this as a separate issue because I thought it might be appropriate as a bug fix for 3.4. -- ___ Python tracker

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-02-27 Thread Martin Panter
Martin Panter added the comment: ## BufferedReader.peek() ## See , but basically my concern is that the documentation says “the number of bytes returned may be less or more than requested”, without any mention of EOF or other conditions. ## Buffer s

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

2015-02-27 Thread Demian Brecht
Demian Brecht added the comment: > Also, I think OPTIONS should be removed from the list of methods that enforce > a Content-Length. I wouldn’t normally expect any payload for OPTIONS, since > RFC 7231 explicitly says it does not define a use for a payload, but requires > a Content-Type if a p

[issue23544] IDLE hangs when selecting Stack View with debug active

2015-02-27 Thread Andrew Harrington
Andrew Harrington added the comment: I was using this without looking at documentation, as a newbies would. Graying and disabling until after an exception makes sense, but even the menu item name is misleading: any time the program is running there is a stack that you might want to view. Bette

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-02-27 Thread Davin Potts
Davin Potts added the comment: Attaching a patch for 2.7 that applies Florian's fix and provides a test for it as well. Although the issue is not triggered on 3.4 or default (3.5), there is the potential for regression there -- attaching a single patch that works for both 3.4 and 3.5 to provi

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-02-27 Thread Davin Potts
Changes by Davin Potts : Added file: http://bugs.python.org/file38273/issue_22853_only_test_import_lock_in_queue_py34_and_py35.patch ___ Python tracker ___ _

[issue23254] Document how to close the TCPServer listening socket

2015-02-27 Thread R. David Murray
R. David Murray added the comment: In general documentation changes go in all maintained versions (ie: right now that would be 2.7, 3.4, and default/3.5). The only exception, really, would be if the change didn't apply to one or more of the versions because of code differences. (Note: I have

[issue23525] isbuiltin, isroutine, etc.

2015-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue23530] os and multiprocessing.cpu_count do not respect cpuset/affinity

2015-02-27 Thread eryksun
eryksun added the comment: > Well, we already expose CPU affinity: > > >>> import os > >>> os.sched_getaffinity(0) > {0} os.sched_getaffinity only exists on some POSIX systems, such as Linux. For Windows, here's a ctypes version of sched_getaffinity and sched_setaffinity: import sys f

[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-02-27 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

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

2015-02-27 Thread Georg Brandl
Georg Brandl added the comment: I agree with Edward. The table makes no distinction between the two group of builtins, so it is confusing why it would list them not in alphabetical order. I wouldn't go so far as to call it "disrespectful" though :) -- nosy: +georg.brandl _

[issue23382] Maybe can not shutdown ThreadPoolExecutor when call the method of shutdown

2015-02-27 Thread miles
miles added the comment: The attachment includes the patch file -- keywords: +patch nosy: +milesli Added file: http://bugs.python.org/file38274/thread.py.patch ___ Python tracker ___

<    1   2