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

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 __

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

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 __

[issue6151] Make PyDescr_COMMON conform to standard C

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74159 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[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 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: http://bugs.python.org/f

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

2009-07-21 Thread R. David Murray
R. David Murray 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__, you might as well be

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

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74158 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[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 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 ___

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

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Committed in r74157 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

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

2009-07-21 Thread Ezio Melotti
Ezio Melotti 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' over '__contains__' and

[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 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. -- ___ Python tracker

[issue6360] Simplify string decoding in xmlrpc.client.

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Patch committed in r74156 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[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 : 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 test_closerange in TestInvalid

[issue6242] Fix reference leak in io.StringIO

2009-07-21 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Patch committed in r74155 (branches/py3k). -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6541] SpooledTemporaryFile operates differently to TemporaryFile

2009-07-21 Thread Leon Matthews
New submission from Leon Matthews : 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 hello = byte

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

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> critical stage: -> patch review type: -> crash ___ Python tracker ___ ___ Python-bugs-list

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

2009-07-21 Thread Ezio Melotti
Ezio Melotti 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 STINNER Victor
STINNER Victor 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 ___

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

2009-07-21 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file14532/bytearray.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2009-07-21 Thread STINNER Victor
New submission from STINNER Victor : 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 PyBuffer_Release(&vdel) is called

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

2009-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[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 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 this is some buffering

[issue6535] optparse required field for Options

2009-07-21 Thread R. David Murray
R. David Murray 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 new cases to test the n

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

2009-07-21 Thread Ezio Melotti
Ezio Melotti 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 (test_valid_get_response) is enough to

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Daniel Kaplun 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

[issue6539] unittest dir not created during install

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74150. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

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

2009-07-21 Thread Luke-Jr
Luke-Jr added the comment: At least fix the documentation, then... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6539] unittest dir not created during install

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

[issue6535] optparse required field for Options

2009-07-21 Thread R. David Murray
R. David Murray 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 in the patch. Your P

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

2009-07-21 Thread R. David Murray
New submission from R. David Murray : 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 section. -- assignee

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Changes by Daniel Kaplun : Added file: http://bugs.python.org/file14530/testcase.py ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue6535] optparse required field for Options

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

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

2009-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: EACCESS is the error code returned by the underlying mkdir system call. os.mkdir won't change this, as long as an OSError is raised. You should use another way to check that the directory exists, like os.path.isdir("c:\\") -- nosy: +amaury.forge

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r74148 (trunk) and r74149 (py3k). Thanks! -- resolution: accepted -> fixed stage: -> committed/rejected ___ Python tracker ___ _

[issue6535] optparse required field for Options

2009-07-21 Thread R. David Murray
R. David Murray added the comment: Feature requests can only go into releases under development. No guarantees, but if you want to give this a better chance of getting in a patch against trunk including tests would be a minimum prerequisite. Alternatively or in addition you could help review a

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

2009-07-21 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> low resolution: -> accepted ___ Python tracker ___ _

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

2009-07-21 Thread Eric Promislow
Eric Promislow 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 ___ Python tracker

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

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson 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
New submission from Eric Promislow : ActivePython 2.6.1.1 ... >>> a = u"abc\x0adef" >>> a.split() [u'abc', u'def'] >>> "\x0a" is a non-breaking space. This behavior means we can't easily use split() to reflow text. -- components: Interpreter Core messages: 90770 nosy: ericp severity: no

[issue6536] urllib2 howto contains typo

2009-07-21 Thread Kurt McKee
New submission from Kurt McKee : At , "HHTPBasicAuthHandler" should of course be "HTTP..." -- assignee: georg.brandl components: Documentation messages: 90769 nosy: georg.brandl, kurtmckee severity: normal status: open title: urllib2 howto c

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

2009-07-21 Thread STINNER Victor
STINNER Victor 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 ___ _

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
Changes by Daniel Kaplun : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6535] optparse required field for Options

2009-07-21 Thread Daniel Kaplun
New submission from Daniel Kaplun : 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 = optparse.Opti

[issue5596] memory leaks in py3k

2009-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: With the py3k branch head (r74140): test_urllib leaked [6, 4] references, sum=10 test_urllib2 leaked [227, 227] references, sum=454 -- title: memory leaks in 3.1 -> memory leaks in py3k versions: +Python 3.2 -Python 3.1 ___

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

2009-07-21 Thread Thomas Heller
Thomas Heller 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 ___

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

2009-07-21 Thread Luke-Jr
New submission from Luke-Jr : 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 __

[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 : 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 argues that they will

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

2009-07-21 Thread nestor
nestor 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 >>> -- ___ Py

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

2009-07-21 Thread Wojciech Lichota
New submission from Wojciech Lichota : 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 value. Checked

[issue6530] Regression on "python -Wi" crash

2009-07-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r74139 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python

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

2009-07-21 Thread R. David Murray
R. David Murray 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 if you want to suppor

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

2009-07-21 Thread Graham Dumpleton
Graham Dumpleton 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 happen to have installed.

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

2009-07-21 Thread R. David Murray
R. David Murray 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 ___ __

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

2009-07-21 Thread Thomas Heller
Thomas Heller 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 value for structur

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

2009-07-21 Thread R. David Murray
Changes by R. David Murray : -- 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 _

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

2009-07-21 Thread R. David Murray
R. David Murray 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 255, in test_uint64

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

2009-07-21 Thread Graham Dumpleton
Graham Dumpleton added the comment: Have created issue6531 for my new issue related to this patch. -- ___ Python tracker ___ ___ Pytho

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

2009-07-21 Thread Graham Dumpleton
New submission from Graham Dumpleton : 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 linked to where the 'atexit' m

[issue6510] zipfile: OSError File exists

2009-07-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

[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 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. probably, sys.stde

[issue6528] builtins colored as keyword at beginning of line

2009-07-21 Thread Ezio Melotti
Ezio Melotti 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 _