[issue1686386] Python SEGFAULT on tuple.__repr__ and str()

2007-09-13 Thread Thomas Herve
Thomas Herve added the comment: I think it could be solved both the same way: if tuple repr is wrong, there are probably some other repr code that is wrong too, so fixing PyObject_Repr is safer. _ Tracker <[EMAIL PROTECTED]>

[issue1158] %f format for datetime objects

2007-09-13 Thread Eric V. Smith
Eric V. Smith added the comment: It's a nit, but there are a few other comments that should be changed to mention %f in addition to %z/%Z. * giving special meanings to the %z and %Z format codes via a preprocessing /* Scan the input format, looking for %z and %Z escapes, building

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
New submission from Robert Ancell: The Python os.getenv() function accesses an Python dictionary which is mirroring the process environment. This dictionary is populated when the interpreter starts and updated when os.environ.__setitem__() or os.putenv() are called. However if the python program

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-13 Thread Thomas Lee
Thomas Lee added the comment: Sure - I'll get onto that. Should have another patch up later tonight. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-li

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: I can't see a bug here. If you want the current C library value of the environment variable, just use os.getenv, not os.environ. -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]>

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: Ignore my comment - I see now that you are talking about os.getenv. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-

[issue1160] Medium size regexp crashes python

2007-09-13 Thread Guido Ostkamp
New submission from Guido Ostkamp : Hello, a medium size regular expression crashes Python 2.5.1 as follows: Traceback (most recent call last): File "./regtest.py", line 14, in m = rematch(pats) File "./regtest.py

[issue1722225] Build on QNX

2007-09-13 Thread Vladimir Konjkov
Vladimir Konjkov added the comment: look this http://www.mail-archive.com/python-bugs-list%40python.org/msg07749.html it's for python-2.3.5 under qnx4.25. about pyport.h under qnx4.25: I include "unix.h" instead of definition of function openpty()+forkpty() in pyport.h, openpty()+forkpty() natu

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-13 Thread Thomas Lee
Thomas Lee added the comment: Updated patch: * unneeded PyUnicode_FromObject call removed (I thought this was necessary, but the original author appears to be using it for an INCREF) * documentation now fits into 80 chars * return values from PyObject_Unicode and PyObject_FromObject checked *

[issue1161] Mangled chars in offending line of SyntaxError traceback

2007-09-13 Thread Eduardo Padoan
New submission from Eduardo Padoan: Python 3.0a1 (py3k:58103, Sep 11 2007, 13:52:21) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> asd asd File "", line 1 P�� ^ SyntaxError: invalid syntax -- components

[issue1161] Garbled chars in offending line of SyntaxError traceback

2007-09-13 Thread Eduardo Padoan
Changes by Eduardo Padoan: -- title: Mangled chars in offending line of SyntaxError traceback -> Garbled chars in offending line of SyntaxError traceback __ Tracker <[EMAIL PROTECTED]> __

[issue1158] %f format for datetime objects

2007-09-13 Thread Skip Montanaro
Skip Montanaro added the comment: Brett> Are you going to add support to strptime as well? I looked at strptime for about two seconds then moved on. I presume you would know how to add it easily though. ;-) Brett> As for the 'time' module, I don't think it would be useful as it serves

[issue1158] %f format for datetime objects

2007-09-13 Thread Skip Montanaro
Skip Montanaro added the comment: Eric> It's a nit, but there are a few other comments that should be Eric> changed to mention %f in addition to %z/%Z. Yes, thanks. Skip __ Tracker <[EMAIL PROTECTED]> __

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop
New submission from Swaroop: I followed the README build instructions for VS2005. I opened pcbuild.sln in PCbuild8 directory and tried building, and I get the following errors: Warning 1 Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future relea

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop
Changes by Swaroop: -- versions: +Python 2.6 -Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: This problems are surely solvable. However, I don't think they need to be solved yet. Instead, before we make the next Python release, we decide what VS version to build it with; if it's Orcas, then the PCbuild directory will be updated to contain working projec

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Raghuram Devarakonda
Changes by Raghuram Devarakonda: -- nosy: +draghuram __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: On 9/13/07, Robert Ancell <[EMAIL PROTECTED]> wrote: > The Python os.getenv() function accesses an Python dictionary which is > mirroring the process environment. This dictionary is populated when the > interpreter starts and updated when os.environ.__seti

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens added the comment: > As per the document and my simple test (on Linux), os.putenv() does > not update os.environ. I think, it should update it. What would be the benefit ? -- nosy: +pythonmeister __ Tracker <[EMAIL PROTECTED]> <

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Raghuram Devarakonda
Raghuram Devarakonda added the comment: > Stefan Sonnenberg-Carstens added the comment: > > > As per the document and my simple test (on Linux), os.putenv() does > > not update os.environ. I think, it should update it. > What would be the benefit ? Symmetrical behaviour. When os.getenv() returns

[issue1158] %f format for datetime objects

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: On 9/13/07, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > Skip Montanaro added the comment: > > Brett> Are you going to add support to strptime as well? > > I looked at strptime for about two seconds then moved on. I presume you > would know how to add it easily t

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens added the comment: I'd like to see perl/ruby behaviour: an dict (os.environ), nothing more (perl %ENV,ruby $ENV). Get rid of setenv/putenv at all. 3.0a1 has even more: There is os.environ (a dict), os.[put|get]env() and os.environ.putenv() _

[issue1145] Allow str.join to join non-string types (as per PEP 3100)

2007-09-13 Thread Georg Brandl
Georg Brandl added the comment: Guido van Rossum schrieb: > Guido van Rossum added the comment: > > There's one additional issue. If any of the items is a bytes, the call > should fail. Should it really, even if the bytes is ascii-encodable? Georg -- nosy: +georg.brandl

[issue1163] Patch to make py3k/Lib/test/test_thread.py use unittest

2007-09-13 Thread Jono DiCarlo
New submission from Jono DiCarlo: In the google spreadsheet for py3k tasks for the sprint last month, one of the listed tasks was to convert Lib/test/test_thread to use the unittest module, where it previously was using the old-style testing (i.e. comparing output of print statements to a text fi

[issue1163] Patch to make py3k/Lib/test/test_thread.py use unittest

2007-09-13 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue416670] MatchObjects not deepcopy()able

2007-09-13 Thread Brett Cannon
Changes by Brett Cannon: -- dependencies: +Fix #416670: register SRE types Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing

[issue416670] MatchObjects not deepcopy()able

2007-09-13 Thread Brett Cannon
Changes by Brett Cannon: -- dependencies: -Fix #416670: register SRE types Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing

[issue487331] time mod's timezone doesn't honor TZ var

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: time.tzset() was added in Python 2.3. Closing as fixed. -- nosy: +brett.cannon resolution: -> fixed status: open -> closed Tracker <[EMAIL PROTECTED]>

[issue504152] rfc822 long header continuation broken

2007-09-13 Thread Brett Cannon
Changes by Brett Cannon: -- keywords: +patch Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue614555] Rewrite _reduce and _reconstructor in C

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: Classifying as an RFE since this is not critical (as shown by it not happening since early 2003). -- nosy: +brett.cannon type: -> rfe Tracker <[EMAIL PROTECTED]> __

[issue1083] Confusing error message when dividing timedelta using /

2007-09-13 Thread Brett Cannon
Changes by Brett Cannon: -- keywords: +py3k versions: +Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscri

[issue539444] asyncore file wrapper & os.error

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: Following Josiah's advice and closing this as this has been sitting here long enough. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed Tracker <[EMAIL PROTECTED]>

[issue542314] long file name support broken in windows

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: Can someone verify that the length issue has been fixed since Ptyhon 2.5? -- nosy: +brett.cannon Tracker <[EMAIL PROTECTED]> ___

[issue1083] Confusing error message when dividing timedelta using /

2007-09-13 Thread Brett Cannon
Brett Cannon added the comment: If you set nb_true_div on timedelta objects to delta_divide (just like nb_floor_div) you won't have this problem as the division will just work. Otherwise there is no other good way as if the divisor doesn't work you need to return NotImplemented, which then tries

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
Robert Ancell added the comment: draghuram, unfortunately while os.putenv() can be fixed to be symmetrical any putenv call from a C module cannot, for example: If you make an extension: #include PyObject *putenvC(PyObject *module, PyObject *args) { int result; if (!PyArg_ParseTuple(arg

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Swaroop
Swaroop added the comment: Hi Martin, I completely agree with you. I would like to get it working but would need some guidance on the build system... is there someone whose brains I can pick for this? :) Also, we can mark this issue as 'not a bug'? -- type: -> compile error

[issue1159] os.getenv() not updated after external module uses C putenv()

2007-09-13 Thread Robert Ancell
Robert Ancell added the comment: I've attached proof-of-concept showing how os.environ would ideally work. It'll only work in Posix, etc etc. Reading into it more there are a lot of general issues with environments and memory allocation which is why I suspect Python doesn't use putenv... See put

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Martin v. Löwis
Martin v. Löwis added the comment: Ok, I'm closing this as "won't fix" now. If you want to look for help, ask on comp.lang.python. If you want some of the core developers to resolve this, be patient - in about a year, it should be resolved. If you ever come up with a patch, please submit this as

[issue1162] Python doesn't compile on Microsoft Visual Studio 2008 "Orcas" Beta 2

2007-09-13 Thread Georg Brandl
Changes by Georg Brandl: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mai