[issue6525] Problem with string.lowercase in Windows XP

2009-07-21 Thread Peter Landgren
Peter Landgren peter.tal...@telia.com added the comment: Just some more test. I compared the result of string.letters, string.uppercase and string.lowercase in 2.5 and 2.6: Python25: Letters= ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzâèîÄܣ׃¬Á║└┴┬├─┼ãÃ

[issue6525] Problem with string.lowercase in Windows XP

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6525 ___ ___ Python-bugs-list

[issue6528] builtins colored as keyword at beginning of line

2009-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In Python 3, True, False and None are keywords, so the orange should be correct. It should be orange also when you do foo = True though. -- nosy: +ezio.melotti ___ Python tracker

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I found one problem in test_docxmlrpc.py, a missing import socket at the top (for the socket.timeout exception handler). Please add that, and see what happens. But there seems to be a problem with the error handing in your build.

[issue6510] zipfile: OSError File exists

2009-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This was already fixed with issue6050, and will be part of 2.6.3. Thanks for the report -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed ___ Python tracker

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2009-07-21 Thread Graham Dumpleton
New submission from Graham Dumpleton graham.dumple...@gmail.com: I am seeing a crash within Py_Finalize() with Python 3.0 in mod_wsgi. It looks like the patches for issue-4200 were not adequate and that this wasn't picked up at the time. This new problem I am seeing looks like it may be

[issue4200] atexit module not safe in Python 3.0 with multiple interpreters

2009-07-21 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: Have created issue6531 for my new issue related to this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4200 ___

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: One of the new tests in r74134 is failing on my box (Gentoo x86), and on a number of the buildbots: test test_ctypes failed -- Traceback (most recent call last): File /home/rdmurray/python/trunk/Lib/ctypes/test/test_bitfields.py, line

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - normal stage: - commit review type: - behavior versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: One of the new tests in r74134 is failing on my box (Gentoo x86), and on a number of the buildbots: I've seen that, but do not yet have a patch. -- title: Can not set value for structure members larger than 32 bits - Can not set

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I strongly recommend you move to 3.1. 3.0 will not be getting any more bug patches. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6531

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2009-07-21 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: As a provider of software that others use I am just making mod_wsgi usable with everything so users can use whatever they want. You telling me to use Python 3.1 isn't going to stop people from using Python 3.0 if that is what they

[issue6531] atexit_callfuncs() crashing within Py_Finalize() when using multiple interpreters.

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm sorry, I wasn't clear. We are recommending that no one use Python 3.0 for production. Python 3.1 fixed some significant performance issues. We are hoping that distribution packagers will not ship 3.0, but will ship 3.1 instead. But

[issue6530] Regression on python -Wi crash

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r74139 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6530 ___

[issue6532] thread.get_ident() should return unsigned value

2009-07-21 Thread Wojciech Lichota
New submission from Wojciech Lichota wojci...@lichota.pl: In glibc library (on linux) pthread_t is defined as: typedef unsigned long int pthread_t; But python thread module interprets this value as signed long. Reproduce: import thread thread.get_ident() In some cases it returns negative

[issue6236] os.popen causes illegal seek on AIX in Python 3.1rc

2009-07-21 Thread nestor
nestor nestornis...@gmail.com added the comment: Maybe this has something to do with it? Python 3.1 (r31:73572, Jul 9 2009, 16:28:28) [C] on aix5 Type help, copyright, credits or license for more information. open(/dev/tty,a).seekable() True --

[issue6533] Make test_xmlrpc_net functional in the absence of time.xmlrpc.com

2009-07-21 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: It seems like time.xmlrpc.com is gone (again?). That service was provided by userland.com, who have an xmlrpc server that they mention in their documentation examples (see for example http://frontier.userland.com/changes/kernel71) which

[issue6534] os.makedirs returns EACCES for C:\

2009-07-21 Thread Luke-Jr
New submission from Luke-Jr luke...@users.sourceforge.net: Should return EEXIST or EISDIR provided C:\ actually exists -- components: Windows messages: 90764 nosy: luke-jr severity: normal status: open title: os.makedirs returns EACCES for C:\ type: behavior versions: Python 2.5

[issue6493] Can not set value for structure members larger than 32 bits

2009-07-21 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: ctypes_workaround_2.patch from ocean-city seems to fix it so I'll apply that. -- title: Can not set value for structure members larger than 32 bits - Can not set value for structure members larger than 32 bits

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
New submission from Daniel Kaplun m...@dvir.us: In the second example to allow usage of the required field for options, it seems as if you already have all you need to implement the feature into optparse. I modified it a bit to allow OptionGroups: class Option(optparse.Option): ATTRS =

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Changes by Daniel Kaplun m...@dvir.us: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6535 ___ ___ Python-bugs-list

[issue3311] block operation on closed socket/pipe for multiprocessing

2009-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: ping? The bug is still open and valid. -- versions: +Python 2.7, Python 3.0, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3311

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Kurt McKee
New submission from Kurt McKee contac...@kurtmckee.org: At http://docs.python.org/dev/howto/urllib2.html, HHTPBasicAuthHandler should of course be HTTP... -- assignee: georg.brandl components: Documentation messages: 90769 nosy: georg.brandl, kurtmckee severity: normal status: open

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: split() is usually used to split words. To reflow text, use the textwrap module. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker

[issue6537] string.split shouldn't split on non-breaking spaces

2009-07-21 Thread Eric Promislow
Eric Promislow er...@activestate.com added the comment: Thanks. For the record, I want textwrap.TextWrapper(..., break_long_words=False) or it will break after a non-breaking space if that gives an optimum length. -- status: closed - open ___

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: georg.brandl - ezio.melotti nosy: +ezio.melotti priority: - low resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6536

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6536 ___ ___

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Changes by Daniel Kaplun m...@dvir.us: -- keywords: +patch Added file: http://bugs.python.org/file14529/optparse.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6535 ___

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Changes by Daniel Kaplun m...@dvir.us: Added file: http://bugs.python.org/file14530/testcase.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6535 ___ ___

[issue6538] MatchObject is not a hyperlink in the 're' module documentation

2009-07-21 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: In the re documentation MatchObject is marked up as a class, but since there's no declaration of it as a class (it's a section instead) it doesn't get turned into a hyperlink. It would be useful if it did link to the appropriate

[issue6535] optparse required field for Options

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: What we are looking for in the way of tests is unit tests to add to test_optparse. Another piece that I forgot about that we'll need is a documentation patch. Finally, it will be easier to review the patch if you don't make other changes

[issue6539] unittest dir not created during install

2009-07-21 Thread Kurt B. Kaiser
New submission from Kurt B. Kaiser k...@shore.net: rev 74095 http://svn.python.org/view?view=revrevision=74095 didn't create the unittest dir during installation. unittest isn't installed in its final location. -- assignee: benjamin.peterson components: Build files:

[issue6534] os.makedirs returns EACCES for C:\

2009-07-21 Thread Luke-Jr
Luke-Jr luke...@users.sourceforge.net added the comment: At least fix the documentation, then... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6534 ___

[issue6539] unittest dir not created during install

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r74150. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6539 ___

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Daniel Kaplun m...@dvir.us added the comment: I have not a single clue how to unit test. What do you mean by documentation patch? Do you want me to update the documentation within the file to reflect changes? -- ___ Python tracker

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: sys.stderr looks ok, I tried what you said and I also tried to put some assert sys.stderr == sys.__stderr__ here and there and nothing changed. I commented out the tests one by one and I found out that the first test alone

[issue6535] optparse required field for Options

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, if you get check out the current trunk via svn (as described in the developer's faq linked from http://www.python.org/dev) and you look at what Lib/test/test_optparse.py currently does, you might find it is not too hard to add some

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Well, I think the only way to move forward with this is to try to figure out what the actual error is. Something is wrong in printing it out to stderr, and it would be helpful to understand why it is not being output. Perhaps

[issue6534] os.makedirs returns EACCES for C:\

2009-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The documentation carefully don't specify the possible values of errno of the exceptions. What do you want to fix? -- ___ Python tracker rep...@bugs.python.org

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: bytearray.translate() crash if: * first argument was converted to a buffer but the buffer length is not 256 bytes * first argument is valid, but the second argument can not be converted to a buffer The crash occurs because

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file14532/bytearray.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6540 ___

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Oops, my first patch was broken (redefine test_bin, instead of using a different method name). The name patch tests both cases (the two crashs). -- Added file: http://bugs.python.org/file14533/bytearray-2.patch

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Same message in the terminal and nothing in the file. Can you reproduce it if you run the test several times? Some times I have to run ./python Lib/test/regrtest.py -v test_docxmlrpc 15-20 or even more times before the message appears.

[issue6540] bytearray.translate(): error in error handling

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - critical stage: - patch review type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6540 ___

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-21 Thread Leon Matthews
New submission from Leon Matthews l...@lost.co.nz: According the docs for the tempfile module, SpooledTemporaryFile() should operate exactly as TemporaryFile() does. However, while playing around trying to learn the module I found a couple of places where this is not the case: import tempfile

[issue6242] Fix reference leak in io.StringIO

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Patch committed in r74155 (branches/py3k). -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: The test sequence test_ttk_guionly test_os test_pipes hangs almost every time when run on Gentoo x86 and Ubuntu x86_64 (at least). Note that this is without the gui resource, so the ttk tests aren't being run. Commenting out

[issue6360] Simplify string decoding in xmlrpc.client.

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Patch committed in r74156 (branches/py3k). -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It appears that TestInvalidFD.test_closerange is in fact closing a valid file descriptor in this case. I'm not sure how to fix the test...nor why the close produced the results it does. -- ___

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-21 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I rephrased the doc and removed has_key at all, fixed the rst markup for 'in' and improved a little the example. If the attached patch is ok I'll commit it. The py3 doc is slightly different, they should probably be the same (I prefer 'in'

[issue6241] Better type checking for the arguments of io.StringIO

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Committed in r74157 (branches/py3k). -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Here's another buildbot failure that's probably the same thing: http://www.python.org/dev/buildbot/all/x86%20osx.5%203.x/builds/1220 -- ___ Python tracker rep...@bugs.python.org

[issue6218] Make io.BytesIO and io.StringIO picklable.

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Committed in r74158 (branches/py3k). -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Your patch looks good. I was going to opine that mentioning __contains__ was good because it would lead the reader to understand how 'in' is supported, but since the len function is referenced but that doesn't let you learn about __len__,

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Patch to skip test if it can't get a range of invalid file descriptors to test. The test sequence passes with this patch in place. -- assignee: - r.david.murray keywords: +patch stage: needs patch - patch review Added file:

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Committed in r74159 (branches/py3k). -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6542] test_os TestInvalidFD.test_closerange causes test_pipes hang in certain circumstances on linux

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Oh, nice catch. That patch looks fine. However, I would probably add a comment why the fstat checks are required. -- nosy: +alexandre.vassalotti ___ Python tracker rep...@bugs.python.org

[issue4509] bugs in array.array with exports (buffer protocol)

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: Closing as I don't see any other bugs in this issue to fix. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org