[issue3139] bytearrays are not thread safe

2008-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Probably, but this affects all PyArg_ParseTuple(s#) calls that release the GIL afterwards. How many of them are there? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3139

[issue3008] Let bin/oct/hex show floats

2008-07-04 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: I'm working on it. I expect to have something ready by the end of this weekend. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3008 ___

[issue3280] %c format does not accept large numbers on ucs-2 builds

2008-07-04 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: Since python3.0, chr(0x2f81a) works even on narrow Unicode builds, but %c % 0x2f81a OverflowError: %c arg not in range(0x1) (narrow Python build) Likewise, Py_BuildValue(C) should accept codes outside the BMP. --

[issue3275] Control flow not optimized

2008-07-04 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: What real-life use case do you have for a condition that is a boolean operation on two constant values anyway? Things like while 1: ... are properly optimized since they serve a useful purpose. -- nosy: +georg.brandl

[issue3281] support r\

2008-07-04 Thread LI Daobing
New submission from LI Daobing [EMAIL PROTECTED]: currently r\ or r'\' is not a valid string literal and it is already documented. but this exception is not simple enough, it make users confused when they found that r'C:\Program\Python\' does not work as expected. please consider support this,

[issue3249] bug adding datetime.timedelta to datetime.date

2008-07-04 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Amaury, Yes, I agree with you, and that sucks too. I'd suggest opening another bug for that ;-) For an allegedly nice, shiny, new and perfect module, datetime sure seems to have an awful lot lacking... Chris

[issue3278] socket's SO_OOBINLINE option does not work on FreeBSD

2008-07-04 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- title: socket's SO_REUSEADDR option does not work on FreeBSD - socket's SO_OOBINLINE option does not work on FreeBSD ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3278

[issue3250] datetime.time does not support arithmetic

2008-07-04 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: Hi George, I haven't looked at your patch but that fact that there are no unit tests and you talk about copying and pasting code, I'd suggest this might not be a good patch. Refactor so code is only in one place rather than copying and

[issue3279] import of site.py fails on startup

2008-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: This happens if the site-packages directory contains a .pth file. This was unnoticed because the usual message 'import site' failed; use -v for traceback is never printed: sys.stderr is empty before the call to initstdio().

[issue3281] support r\

2008-07-04 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: The r prefix changes how the escape sequences are interpreted after the string literal has been parsed, it doesn't change how the literal itself is actually parsed. Fixing this will imply too much low level work, and it's easily solved in

[issue3282] Undefined unicode characters should be non-printable

2008-07-04 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: str.isprintable() returns True for undefined unicode code points: c = \ufffe unicodedata.category(c) 'Cn' # (Other, Not Assigned) c.isprintable() True Same for \u0242, \ufb12... The cause is probably in unicodectype.c:

[issue3283] multiprocessing.connection doesn't import AuthenticationError, while using it

2008-07-04 Thread Andrii V. Mishkovskyi
New submission from Andrii V. Mishkovskyi [EMAIL PROTECTED]: Lib/multiprocessing/connection.py contains two uses of AuthenticationError, while it's not imported from multiprocessing package. This exception is used in deliver_challenge() and answer_challenge() functions. I've attached a small

[issue3008] Let bin/oct/hex show floats

2008-07-04 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: BTW couldn't you use the %a feature built into C99 to implement this? (Both input and output?) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3008 ___

[issue3008] Let bin/oct/hex show floats

2008-07-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Microsoft compilers implement %a since VS8.0. VS7.1 does not have it. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3008 ___

[issue3250] datetime.time does not support arithmetic

2008-07-04 Thread George Boutsioukis
George Boutsioukis [EMAIL PROTECTED] added the comment: Hi Chris, I know copy-pasted sounds horrible--perhaps I should have said 'modeled afterwards'(better marketing;). The thing is, the datetime time classes share a lot of common functionality; it is inevitable that some code looks like

[issue3282] Undefined unicode characters should be non-printable

2008-07-04 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Should be fixed in r64701... -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3282

[issue3279] import of site.py fails on startup

2008-07-04 Thread Brett Cannon
Changes by Brett Cannon [EMAIL PROTECTED]: -- nosy: +brett.cannon ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3279 ___ ___ Python-bugs-list mailing

[issue3277] socket's OOB data management is broken on FreeBSD

2008-07-04 Thread Andrew Azarov
Andrew Azarov [EMAIL PROTECTED] added the comment: tested: Python 2.5.2 (r252:60911, Jun 24 2008, 16:40:26) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 FreeBSD tomcat 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC i386

[issue3284] Delete obsolete 'Unicode' in Py3 str docstrings; related fixes

2008-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: In 3.0b1, several str methods have 'Unicode' in their docstrings leftover from 2.x when str *was* unicode. For center count ljust rjust translate 'Unicode' should be deleted before 'string'. For 'translate', I presume 'Unicode

[issue3285] Fraction.from_any()

2008-07-04 Thread Raymond Hettinger
New submission from Raymond Hettinger [EMAIL PROTECTED]: After exercising the fractions module, I've found it problematic that there isn't a unified constructor to handle mixed data input types. For example, when updating the accurate summation recipe at

[issue3286] IDLE opens window too low on Windows

2008-07-04 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: On my Windows XP system, IDLE opens windows too low, even the first, so that the bottom is behind the task bar. When I move the window up, close, and reopen, it occasionally remembers the position but usually forgets. Always remembering

[issue3284] Delete obsolete 'Unicode' in Py3 str docstrings; related fixes

2008-07-04 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks! Done in r64716. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3284

[issue3168] cmath test fails on Solaris 10

2008-07-04 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Below is the reply from SUN. It was indeed a bug which has been fixed already. I have not yet applied the patches to my SUN compilers and tried again. /Jean Begin forwarded message: From: Sun Microsystems [EMAIL PROTECTED] Date: July 1,

[issue3221] SystemError: Parent module 'foo' not loaded on import statement

2008-07-04 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Hmm, setting an invalid value for __package__ will definitely break relative imports (see PEP 361), but it probably shouldn't be breaking absolute imports. -- nosy: +ncoghlan ___ Python tracker [EMAIL

[issue3221] SystemError: Parent module 'foo' not loaded on import statement

2008-07-04 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: One idea would be to change the import code to only produce a warning for a missing __package__ entry instead of a SystemError (reserving the SystemError for cases where the package name is derived from __name__ rather than being retrieved from

[issue1754483] linecache package handling

2008-07-04 Thread Kevin Goodsell
Kevin Goodsell [EMAIL PROTECTED] added the comment: Hans is right, that patch isn't very good. Here's a second pass. This one avoids joining the file basename to sys.path components, which I'd say is wrong since it strips (presumably relevant) leading path components. A second part of this