[issue12319] [http.client] HTTPConnection.putrequest not support "chunked" Transfer-Encodings to send data

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: FWIW, so far I've tested this change against: cherrypy 3.6.0 uwsgi 2.0.9 (--http-raw-body) nginx 1.6.2 (chunked_transfer_encoding on, proxy_buffering off;) + uwsgi 2.0.9 (--http-raw-body) The chunked body works as expected. Unfortunately, all implementations se

[issue9679] unicode DNS names in urllib, urlopen

2015-03-06 Thread John Nagle
John Nagle added the comment: Three years later, I'm converting to Python 3. Did this get fixed in Python 3? -- ___ Python tracker ___

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-06 Thread Berker Peksag
Berker Peksag added the comment: > Does current code work with None or empty tuple? Yes, it works with both None and (). -- ___ Python tracker ___ __

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

2015-03-06 Thread Martin Panter
Martin Panter added the comment: I am posting LZMAFile-etc.v3.patch, where I have implemented a “buffer_size” parameter to the buffered LZMAFile etc classes. I have not implemented open(buffering=...) for the time being (which should probably delegate to the buffer_size parameter or return a r

[issue16232] curses.textpad.Textbox backtrace support

2015-03-06 Thread Ned Deily
Ned Deily added the comment: This has also been reported in Issue23598 including a patch to add DEL as suggested. I have little experience with curses so I don't have any insight as to pros and cons of using erasechar() rather than the hardcoded BS and DEL chars. A test would be nice if some

[issue16232] curses.textpad.Textbox backtrace support

2015-03-06 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg237420 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue23579] Amazon.com links

2015-03-06 Thread Georg Brandl
Georg Brandl added the comment: LGTM. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue23598] No backspace on curses on iTerm (mac)

2015-03-06 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggested change. This problem and a similar change has already been suggested in open Issue16232. Closing this issue as a duplicate and continuing the discussion there. -- nosy: -ronaldoussoren resolution: -> duplicate stage: -> resolve

[issue16232] curses.textpad.Textbox backtrace support

2015-03-06 Thread Ned Deily
Ned Deily added the comment: This has also been reported in Issue23598 including a patch to add DEL as suggested. I have little experience with curses so I don't have any insight as to pros and cons of using erasechar() rather than the hardcoded BS and DEL chars. A test would be nice if some

[issue23432] Duplicate content in SystemExit documentation

2015-03-06 Thread Martin Panter
Martin Panter added the comment: New patch looks fine -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23579] Amazon.com links

2015-03-06 Thread Sayan Chowdhury
Sayan Chowdhury added the comment: Attached a patch by changing the amazon links to official websites. -- keywords: +patch nosy: +sayanchowdhury Added file: http://bugs.python.org/file38366/issue23579.patch ___ Python tracker

[issue23432] Duplicate content in SystemExit documentation

2015-03-06 Thread Berker Peksag
Berker Peksag added the comment: Thank you for your suggestion, Martin. Here is an updated patch. -- Added file: http://bugs.python.org/file38365/systemexit_v2.diff ___ Python tracker __

[issue23546] Windows, 'Edit withIDLE', and multplie installed versions

2015-03-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: Windows, IDLE and py.exe -> Windows, 'Edit withIDLE', and multplie installed versions ___ Python tracker ___ __

[issue23546] Windows, IDLE and py.exe

2015-03-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: -IDLE stage: -> needs patch title: windows, IDLE and pep 397 -> Windows, IDLE and py.exe versions: +Python 2.7 -Python 3.3 ___ Python tracker ___

[issue23546] windows, IDLE and pep 397

2015-03-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: To be more exact, (I believe) 'Edit with Idle' runs the equivalent of ' -m idlelib -e ' where is the current default python (ad is the file right-clicked on). Idle just goes alone for the ride. You are proposing more or less that be replaced with 'py'. T

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

2015-03-06 Thread Berker Peksag
Berker Peksag added the comment: > If not, I am tempted to bend on my instinctive reaction here and go with > Serhiy's style. +1 to Serhiy's suggestion. -- ___ Python tracker _

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Peter, Can you attach your demo script to the issue? Better yet, is it possible to explain the issue without referring to 100 lines of code? -- ___ Python tracker

[issue23574] datetime: support leap seconds

2015-03-06 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > POSIX is a ``standard'' designed by a vendor consortium several years ago to > eliminate progress and protect the installed base. No, POSIX is an attempt to bring some sanity to the installed base of human calendars. The established standard tell's u

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-03-06 Thread Ned Deily
Changes by Ned Deily : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue23599] single and double quotes stripped upon paste with MacPorts libedit

2015-03-06 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ned.deily title: single and double quotes stripped upon paste into interpreter -> single and double quotes stripped upon paste with MacPorts libedit ___ Python tracker _

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-06 Thread Yassine ABOUKIR
Yassine ABOUKIR added the comment: From: Amos Jeffries Date: Fri, 06 Mar 2015 14:09:55 +1300 On 6/03/2015 10:42 a.m., cve-assign () mitre org wrote: We think that the issue reduces to the question of whether it's acceptable for urlparse to provide inconsistent information about the

[issue23505] Urlparse insufficient validation leads to open redirect

2015-03-06 Thread Yassine ABOUKIR
Yassine ABOUKIR added the comment: From: cve-assign () mitre org Date: Thu, 5 Mar 2015 16:42:02 -0500 (EST) -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 We think that the issue reduces to the question of whether it's acceptable for urlparse to provide inconsistent information about the structu

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: Thanks Ned and everyone! It turns out that Ned was correct and it works fine now that I followed his instructions. -- ___ Python tracker ___ __

[issue23328] urllib2 fails for proxy credentials that contain a '/' character

2015-03-06 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue1508475] transparent gzip compression in urllib

2015-03-06 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22852] urllib.parse wrongly strips empty #fragment

2015-03-06 Thread Demian Brecht
Changes by Demian Brecht : -- nosy: +demian.brecht ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21619] Cleaning up a subprocess with a broken pipe

2015-03-06 Thread Martin Panter
Martin Panter added the comment: Thanks for getting the test working. Just to tidy things up here I would like to get rid of my stdout signalling in the test, which is no longer needed and could be misleading. See overflow-pipe-test.patch. -- status: closed -> open Added file: http://b

[issue4356] Add "key" argument to "bisect" module functions

2015-03-06 Thread Dmitry Chichkov
Dmitry Chichkov added the comment: Use case: a custom immutable array with a large number of items and indirect key field access. For example ctypes.array, memoryview or ctypes.pointer or any other custom container. 1. I'm not sure how anyone can consider a precached key array as a right ans

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-03-06 Thread Peter J C Law
New submission from Peter J C Law: There's a difference in behaviour between the ``fromutc`` method on a tzinfo between Python 2 and Python 3, though only under the specific case of Summer Time in regions whose usual offset is 0. >From what I can tell, it's the Python 3 one which is wrong, bas

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: Er, make that: sudo port install py34-readline -- ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: OK, thanks, now we're getting somewhere! From the pathname (/opt/local/bin), I assume you are using the Python 3.4 from MacPorts and from the readline docstring that Python 3.4 is linked with BSD libedit rather than GNU readline. MacPorts supplies its own, newer

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: I am in a standard Terminal session. I have a symbolic link for python 3.4: /usr/bin/python -> /opt/local/bin/python3.4 so I can run python... or the following: $ /opt/local/bin/python3.4 -c 'import sys;print(sys.version)' 3.4.2 (default, Oct 22 2014, 01:08:11) [GCC

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Ned Deily
Ned Deily added the comment: You've already answered this but since I've already typed it: one possible pitfall here is the automatic smart quotes feature of the OS X text system which may or may not be a factor depending on which programs are in use. You can disable smart quotes in: System P

[issue10513] sqlite3.InterfaceError after commit

2015-03-06 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: I believe http://bugs.python.org/issue23129 is a dupe of this. The patch here has been in "patch review" for 9 months. That seems fairly long for something that's a regression that potentially silently produces the wrong data. -- nosy: +Gian-Carl

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
Jeff Doak added the comment: I noticed they are smart quotes and came back to see David already mentioned it. As for Demian's question: 2.7.6: >>> print("{’Test’}") {’Test’} 3.4.2: >>> print("{Test}") {Test} It is upon paste that the quotes are lost. I'm on OSX 10.10.2 as well. --

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

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: > It is surprising that urlsplit() does not raise any exception I have a bit of a TL;DR in #20271, trying to capture what the responsibilities of split and parse methods in urllib are and what they should be if consistency is something that we're after. Aroun

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

2015-03-06 Thread Davin Potts
Davin Potts added the comment: > No, I suggested to replace only the line that produces AttributeError now. Ah! Sorry, I misunderstood and incorrectly assumed you were imagining the import to happen at the top of the module. I must confess I am hesitant about the idea of putting an import ins

[issue23129] sqlite3 COMMIT nested in SELECT returns unexpected results

2015-03-06 Thread Gian-Carlo Pascutto
Gian-Carlo Pascutto added the comment: I've ran into this as well, when a program that was running correctly with PostgreSQL turned out to produce garbage with SQLite. Code to reproduce roughly looks like this: sel_cursor = conn.cursor() sel_cursor.execute("SELECT prim_key_id FROM "

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: I'm on OSX 10.10.2. Simply copy/pasting the line into both terminal and iterm yields >>> [“Test”][‘Test’] File "", line 1 [“Test”][‘Test’] ^ SyntaxError: invalid character in identifier >>> [“Test”][‘Test’] File "", line 1 [“Test”][‘Test’]

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: Thanks for the very useful reviews Serhiy! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue19610] setup.py does not allow a tuple for classifiers

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Does current code work with None or empty tuple? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 97ef38236dc1 by Victor Stinner in branch 'default': Issue #23571: PyObject_Call(), PyCFunction_Call() and call_function() now https://hg.python.org/cpython/rev/97ef38236dc1 -- nosy: +python-dev ___ Python

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread Steve Dower
Steve Dower added the comment: Thanks. I'll be watching the buildbots closely, but hopefully there's no need to push quick fixes with the reduced change. 23524_2.patch is still on the table as the last-known-good fix, but I'll update it as soon as I can to take into account what's just been ch

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread R. David Murray
R. David Murray added the comment: Those aren't actually quote marks, at least as you've cut and pasted them. They are "smart quotes", which are not something Python recognizes outside of properly quoted strings. That doesn't explain why they disappear, though, you should just get a syntax e

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75aadb4450fd by Steve Dower in branch 'default': Issue #23524: Replace _PyVerify_fd function with calling _set_thread_local_invalid_parameter_handler on every thread. https://hg.python.org/cpython/rev/75aadb4450fd -- nosy: +python-dev

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: 23524_hack_2.patch looks good to me. 23524_hack_2.patch is fine to workaround the issue, but I agree that it's only a hack and it should be enhanced later. -- ___ Python tracker

[issue23599] single and double quotes stripped upon paste into interpreter

2015-03-06 Thread Jeff Doak
New submission from Jeff Doak: On MacBook. Copy/paste the following line into 3.4.2 interpreter session: [“Test”][‘Test’] Results in: [Test][Test] Same paste into 2.7.6 is as expected: [“Test”][‘Test’] -- components: Macintosh messages: 237389 nosy: Jeff Doak, ned.deily, ronaldoussoren

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> haypo stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Please keep in mind that this issue should only be encountered by people > using Python 3.x on a platform like Hurd (an unsupported platform) that has > no working sem_open implementation. Yes, and I compiled Python with disabled sem_open for testing. Pytho

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: 2015-03-06 16:55 GMT+01:00 Serhiy Storchaka : > We can ignore such little slow down (if this is not just compiler artifact). Maybe it's time to play with micro-optimizations like __builtin_expect :-) But I would prefer to do that in a separated issue. The patch

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-06 Thread Davin Potts
Changes by Davin Potts : Added file: http://bugs.python.org/file38363/issue_23051_revised_fix_and_tests_v27.patch ___ Python tracker ___ ___

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-06 Thread Davin Potts
Davin Potts added the comment: Updated (1) the patch for default/3.5 and 3.4 and (2) the patch for 2.7 to reflect recommendations from the review. Thanks goes to Serhiy for the helpful review and especially the suggestion on better future-proofing in the tests. -- Added file: http://

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Florian and Davin for your contribution. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset cf12856bde17 by Serhiy Storchaka in branch '3.4': Issue #22853: Added regression test for using multiprocessing.Queue at import https://hg.python.org/cpython/rev/cf12856bde17 New changeset dcd6d41f2c9a by Serhiy Storchaka in branch 'default': Issue

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Davin Potts
Davin Potts added the comment: Corrected patch for 3.4 and default/3.5 -- newly introduced test is now turned on this time and the dangling weak references are properly addressed as well as the reference to Empty. Nastiness. Good save, Serhiy. -- Added file: http://bugs.python.org/f

[issue2052] Allow changing difflib._file_template character encoding.

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be updating the markup to HTML5 should be different issue. issue2052_html5_v2.diff not only adds charset in HTML5 format, it totally changes the template. This definitely a separate issue. -- nosy: +serhiy.storchaka _

[issue20911] urllib 'headers' is not a well defined data type

2015-03-06 Thread Mark Lawrence
Mark Lawrence added the comment: @Demian I believe this maybe of interest to you. -- nosy: +BreamoreBoy, demian.brecht ___ Python tracker ___

[issue20211] setup.py: do not add invalid header locations

2015-03-06 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a patch review on this issue please. -- nosy: +BreamoreBoy ___ Python tracker ___ ___ Pyt

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: As for 3.x, underscored test does not run, and when remove the underscore it runs, but produce a warning (you should run regrtests with -vv to see detailed warnings): $ ./python -m test.regrtest -vv -m '*no_import_lock_contention*' test_multiprocessing_spaw

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 069c13ca7a70 by Serhiy Storchaka in branch '2.7': Issue #22853: Fixed a deadlock when use multiprocessing.Queue at import time. https://hg.python.org/cpython/rev/069c13ca7a70 -- nosy: +python-dev ___ Pyth

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, right. Harmless. Thanks for all the fish Mark. I meant the bug. -- ___ Python tracker ___ ___

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Mark Lawrence
Mark Lawrence added the comment: That's all we need, harmful patches being committed :) Harmless possibly? -- ___ Python tracker ___

[issue22853] Multiprocessing.Queue._feed deadlocks on import

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure there is a need to fix this issue. Using multiprocessing Queue at import time looks as yet one way to shoot yourself in the foot. But the patch looks harmful, I'll commit it. -- components: +Library (Lib) stage: patch review -> commit re

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-06 Thread Cyd Haselton
Cyd Haselton added the comment: Ryan, Here are the changes to pyconfig.h. I left out this #define ANDROID 1 because GCC 4.8.x and up have -mandroid -mbionic that define __ANDROID__ so I've been using that. #define HAVE_BROKEN_MBSTOWCS 1 #undef HAVE_DEV_PTMX #undef HAVE_GETHOSTBYNAME_R #undef H

[issue20556] Use specific asserts in threading tests

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: LGTM -- nosy: +demian.brecht stage: patch review -> commit review ___ Python tracker ___ ___ Python-b

[issue20557] Use specific asserts in io tests

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: LGTM -- nosy: +demian.brecht stage: patch review -> commit review ___ Python tracker ___ ___ Python-b

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: > splitport() shouldn't handle auth, it should be called after auth is dropped > with splituser(). Why shouldn't splitport() handle auth? Are you suggesting that in the eyes of splitport() that "user:password@host:port" should be invalid? >>> parse.splitport('

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2015-03-06 Thread Demian Brecht
Changes by Demian Brecht : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2015-03-06 Thread Davin Potts
Davin Potts added the comment: Please keep in mind that this issue should only be encountered by people using Python 3.x on a platform like Hurd (an unsupported platform) that has no working sem_open implementation. If we try to imagine what Python 3.x users should expect, it's that they shou

[issue20271] urllib.parse.urlparse() accepts wrong URLs

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: I think some further consideration around this change is worthwhile: Currently, urllib.parse.split* methods seem to do inconsistent validation around the data they're splitting. For example: (None for an invalid port) >>> parse.splitnport('example.com:foo') ('e

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread Larry Hastings
Larry Hastings added the comment: FWIW I'm tagging alpha 2 somewhere around 24-36 hours from now. -- ___ Python tracker ___ ___ Python

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-06 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Benjamin! -- assignee: mark.dickinson -> ___ Python tracker ___ ___ Python-bugs-list mailin

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread Steve Dower
Steve Dower added the comment: New patch based on review feedback - main change is to _Py_fstat to use errno on Windows instead of GetLastError(). Where to put the invalid parameter handler is still an open question. Victor is not keen on adding a new file, while I don't really want it to be o

[issue23589] Redundant sentence in FAQ

2015-03-06 Thread Demian Brecht
Demian Brecht added the comment: Not to throw a wrench into this, but would it perhaps not be worthwhile to refactor this section in order to include nonlocals as well (obviously not for 2.7)? It seems a little odd to me to have this amount of detail without mentioning nonlocal. -- no

[issue22853] Multiprocessing.Queue._feed deadlocks on import

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

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: We can ignore such little slow down (if this is not just compiler artifact). The patch LGTM. I afraid there will be issues with third-party code that will need an adaptation to 3.5, but on other hand, this patch could help with catching some hidden bugs. --

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-06 Thread Tim Peters
Tim Peters added the comment: Nothing should ever crash the interpreter :-) So this is a thoroughly legitimate bug report. However, there's no way to guess whether _this_ crasher is easy to fix, or next to impossible. Without a test program to provoke the error, there's little to go on. If

[issue23595] Split the math module into _math (C) + math (py)

2015-03-06 Thread Guido van Rossum
Guido van Rossum added the comment: I think it's pretty silly to have math.py. And why would there be a pure-Python implementation of factorial() (like anybody is ever going to use that) instead of example implementations of sin() etc.? Please don't go down this path for this particular module. P

[issue23595] Split the math module into _math (C) + math (py)

2015-03-06 Thread Brett Cannon
Brett Cannon added the comment: I interpret Guido's email as vetoing the skipping of the C implementation of PEP 485, not on outright banning a PEP 399 math.py if someone like Victor wanted to put the work into implementing some things on top of the C code in Python. So as long as everything i

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: Oh, test_io and test_sqlite are failing in release mode with check_result-4.patch. io and sqlite modules only call PyErr_Clear() in debug mode. It's my fault, I added them, but I made them conditionnal to not impact performances. It's now fixed in the new patc

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please run microbenchmarks from issue23507? -- ___ Python tracker ___ ___ Python-bugs-li

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added comments on Rietveld. -- nosy: +serhiy.storchaka stage: commit review -> patch review ___ Python tracker ___ ___

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: Updated patch to take in account more Serhiy's comments. -- Added file: http://bugs.python.org/file38358/check_result-4.patch ___ Python tracker ___

[issue23590] Potential leak in PyFloat_AsDouble. Refcount error.

2015-03-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30925a3b2324 by Benjamin Peterson in branch '3.4': fix potential refleak in PyFloat_AsDouble (closes #23590) https://hg.python.org/cpython/rev/30925a3b2324 New changeset f31b91b6683a by Benjamin Peterson in branch '2.7': fix potential refleak in PyF

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure that all removed assertions are not needed. There are many ways to get raised exception, not only by calling a function. -- ___ Python tracker _

[issue23592] SIGSEGV on interpreter shutdown, with daemon threads running wild

2015-03-06 Thread A. Skrobov
A. Skrobov added the comment: That's right; and working around this issue, by taming the daemon threads a bit, wasn't too difficult. Still, if the daemon threads are part of the language, they shouldn't crash the interpreter process, I suppose? --

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: New patch to take in account Serhiy's comments. I also fixed call_function(), I forgot to call _Py_CheckFunctionResult() in two cases. -- Added file: http://bugs.python.org/file38357/check_result-3.patch ___ Python t

[issue21750] mock_open data is visible only once for the life of the class

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

[issue21750] mock_open data is visible only once for the life of the class

2015-03-06 Thread Mac Ryan
Mac Ryan added the comment: I'm a bit lost in the interface of this bugtracker, so I apologise if I am writing in the wrong spot, anyhow... I just wanted to signal that this bug breaks the inter-operability between mock (external library) and unittest.mock, breaking tests that have been origin

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: New patch which removes some assertions and move other assertions on result/PyErr_Occurred. I removed useless duplicated assertions and move the final assertion at the end of PyEval_EvalFrameEx() to guarantee that the function behave correctly. -- Add

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: Even worse benchmark: timeit :-) python -m timeit -s 'def f(): pass' 'f()' * original: 67.5 nanoseconds * patched: 64.1 nanoseconds (faster!?) -- ___ Python tracker _

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: I ran pybench, even if I know that it's not really revelant: overall 0.3% slowdown. But pybench doesn't look reliable: some tests are faster, which looks like noise in the benchmark. -

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: I ran http://hg.python.org/benchmarks/ Result: --- $ python3 perf.py -r -b default ~/prog/python/default/python.orig ~/prog/python/default/python.patched INFO:root:Automatically selected timer: perf_counter (...) Report on Linux smithers 3.18.3-201.fc21.x86_6

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-06 Thread Christian Heimes
Christian Heimes added the comment: http://svn.python.org/projects/external/ and Tools/buildbot/external-common.bat must be updated for Windows, too. -- ___ Python tracker ___ _

[issue23598] No backspace on curses on iTerm (mac)

2015-03-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Extension Modules, Macintosh nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___

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

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But if this change is worth, I would write it as -maxsize = _multiprocessing.SemLock.SEM_VALUE_MAX +# Can raise ImportError (see issues #3770 and #23400) +from .synchronize import SEM_VALUE_MAX as maxsize This would avoid a

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

2015-03-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure that this issue is worth to fix. AttributeError is not worse than ImportError, and users of 3.x expect AttributeError (if expect). -- nosy: +brett.cannon, eric.snow, jnoller, ncoghlan, sbt, serhiy.storchaka __

[issue23598] No backspace on curses on iTerm (mac)

2015-03-06 Thread Robert Greener
New submission from Robert Greener: iTerm uses ^? for backspace which is curses.ascii.DEL, patch, makes curses.ascii.DEL use same behaviour as curses.ascii.BS -- files: cursesbackspace.patch keywords: patch messages: 237345 nosy: ragreener priority: normal severity: normal status: open

[issue23593] Update Windows and OS X installer OpenSSL to 1.0.2

2015-03-06 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue23524] Use _set_thread_local_invalid_parameter_handler in posixmodule

2015-03-06 Thread STINNER Victor
STINNER Victor added the comment: I reviewed 23524_hack.patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

  1   2   >