[issue7412] distutils install race condition

2009-11-30 Thread Rene Dudfield
New submission from Rene Dudfield : hello! Pythons distutils has a race condition where it starts to copy files into the python path whilst installing. This is a race condition, since python programs can be importing the package whilst the package is being installed. It would be good for distu

[issue7410] deepcopy of itertools.count resets the count

2009-11-30 Thread Raymond Hettinger
Raymond Hettinger added the comment: Fixed in r76599. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue7406] int arithmetic relies on C signed overflow behaviour

2009-11-30 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7046] decimal.py: use DivisionImpossible and DivisionUndefined

2009-11-30 Thread Stefan Krah
Stefan Krah added the comment: I agree that it might add confusion. In the C-module,I currently do this: >>> Decimal(0) / 0 Traceback (most recent call last): File "", line 1, in cdecimal.InvalidOperation: [] But since you already have a detailed error message, this doesn't seem necessary

[issue7327] format: minimum width: UTF-8 separators and decimal points

2009-11-30 Thread Stefan Krah
Stefan Krah added the comment: What you mean by "working with bytestrings"? The UTF-8 separators or decimal points come directly from struct lconv (man localeconv). The logical way to reach a minimum width of 19 is to have 19 UTF-8 characters, which can subsequently be converted to other formats

[issue7394] sqlite3: some OperationalError exceptions should be ProgrammingError (PEP 249)

2009-11-30 Thread Filip GruszczyƄski
Filip GruszczyƄski added the comment: I have created some naive patch, that makes sqlite module raise ProgrammingError for SQLITE_ERROR code. But I don't know, whether it might raise ProgrammingError in situation, when OperationalError should be. Sqlite docs says: #define SQLITE_ERROR

[issue6452] urllib2.Request() will not work with long authorization headers

2009-11-30 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7411] allow import from file having name containing hyphen or blank

2009-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, there is: $ cat > "file-with-hyphen and space.py" x = 5 $ python Python 2.6.4 (r264:75706, Oct 27 2009, 15:50:27) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> mod = __import__("file-with-hyphen and spac

[issue7118] urllib2.urlopen() timeout argument ignored after redirect

2009-11-30 Thread Senthil Kumaran
Senthil Kumaran added the comment: The timeout propagation fixed with Issue5102. -- resolution: -> duplicate ___ Python tracker ___ _

[issue7118] urllib2.urlopen() timeout argument ignored after redirect

2009-11-30 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue7046] decimal.py: use DivisionImpossible and DivisionUndefined

2009-11-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-30 Thread Geoffrey Bache
Geoffrey Bache added the comment: I tried that and it didn't work, though not for this reason. I'm also trying to read the output from the subprocess via a pipe and that wasn't being collected for some reason. I didn't really track down why so far, if it makes or breaks this bug I can do so thou

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-30 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: `Popen` is the wrong place to implement this functionality. It may be reasonable to introduce a higher-level wrapper API which does this sort of thing. Consider that if `Popen` itself does it, though, then there is no way to launch a process with a partic

[issue3599] test_pydoc after test_urllib2 causes exception in Popen.__del__

2009-11-30 Thread flox
flox added the comment: Tested on debian with r76600 (/branches/release26-maint No error. ~/dev/python/release26-maint $ ./python Lib/test/regrtest.py -uall test_urllib2 test_pydoc test_urllib2 test_pydoc All 2 tests OK. ~/dev/python/release26-maint $ Is it specific to Windows? -- n

[issue7410] deepcopy of itertools.count resets the count

2009-11-30 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: The attached C file exhibits the same symptoms, on Mac OS X 10.5 it eventually hangs in an uninteruptible disk wait. On Linux it doesn't hang. Further support for the idea that this is a Mac OS X problem. How does one provide this reproducible case to App

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Changes by Hugh Secker-Walker : Removed file: http://bugs.python.org/file15419/os_pipe_write_close_bug.c ___ Python tracker ___ ___ Python-bugs

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Fixed some typos in the C file -- Added file: http://bugs.python.org/file15420/os_pipe_write_close_bug.c ___ Python tracker ___

[issue7413] datetime.datetime.isoformat truncation problem

2009-11-30 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Passing NUL as the separator to isoformat drops the time part of the result entirely: >>> import datetime >>> datetime.datetime.today().isoformat() '2009-11-30T20:57:37.918750' >>> datetime.datetime.today().isoformat('x') '2009-11-30x20:57:39.902573' >>>

[issue7414] Format code "C" is missing from skipitem() in getargs.c

2009-11-30 Thread Case Van Horsen
New submission from Case Van Horsen : An error was reported on c.l.py. The following code in a Python 3 extension module generated an error: = If I use the following C code static PyObject* foo(PyObject *self, PyObject *args, PyObject *kwrds) { char a, b;

[issue7415] PyUnicode_FromEncodedObject() uses PyObject_AsCharBuffer()

2009-11-30 Thread Stefan Behnel
New submission from Stefan Behnel : PyUnicode_FromEncodedObject() currently calls PyObject_AsCharBuffer() to get the buffer pointer and length of a buffer supporting object. It should be changed to support the buffer protocol correctly instead. I filed this as a crash bug as the buffer protocol

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-30 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hugh: Do you have an ADC account (either free or payed)? If you do you can file bugs at http://bugreport.apple.com/. If you don't I can file the bug for you. -- ___ Python tracker