[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-07-03 Thread R. David Murray
R. David Murray added the comment: Test passes consistently now on trunk in Gentoo. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue1475] test_popen fails when the directory contains a space

2009-07-03 Thread Russ Gibson
Russ Gibson added the comment: (Same comment I added to 1559298:) What is needed is separate quoting for the command and the argument. Right now, test_popen only surrounds the entire command line with quotes: "c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings\Russ Gibson\cgi-b

[issue1559298] test_popen fails on Windows if installed to "Program Files"

2009-07-03 Thread Russ Gibson
Russ Gibson added the comment: What is needed is separate quoting for the command and the argument. Right now, test_popen only surrounds the entire command line with quotes: "c:\Program Files\Python2.6\Python.exe -u c:\Documents and Settings\Russ Gibson\cgi-bin\cgi.py" It needs to the above a

[issue3056] Simplify the Integral ABC

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: Ping? -- nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3151] elementtree serialization bug for weird namespace urls

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal stage: -> patch review versions: +Python 2.7 -Python 2.5 ___ Python tracker ___ ___

[issue3077] h2py char literal doesn work

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- priority: -> normal versions: +Python 2.7 -Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3250] datetime.time does not support arithmetic

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: If there's no obviously best way to handle overflow, can this be closed? -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue3426] os.path.abspath with unicode argument should call os.getcwdu

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: This seems to work fine with Py 3.0 and 3.1 on Linux, it still fails with Py 2.6 and 2.7. -- nosy: +ezio.melotti priority: -> normal versions: +Python 2.6, Python 2.7 -Python 2.4, Python 2.5, Python 3.0 ___ Python tra

[issue6409] 2to3 generates malformed diffs

2009-07-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> benjamin.peterson nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list

[issue2060] python2.6 -3 gives "warning: callable() not supported in 3.x" on startup

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: I can't reproduce this with Python 2.6 (final) on Windows and Python 2.6.2 on Linux. I guess that this was fixed before the final release. Closing as "fixed". -- nosy: +ezio.melotti resolution: -> fixed status: open -> closed ___

[issue3392] subprocess fails in select when descriptors are large

2009-07-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Merged to py3k in r73833. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1025395] email.Utils.parseaddr fails to parse valid addresses

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> test needed versions: +Python 2.7 -Python 2.3, Python 2.4, Python 2.5 ___ Python tracker ___ ___

[issue1921] Confusing Descrintro example

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: -> georg.brandl nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue777884] minidom.py -- TypeError: object doesn't support slice assig

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue1710703] zipfile.ZipFile behavior inconsistent.

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +patch stage: -> test needed type: -> behavior versions: +Python 2.7 -Python 2.5 ___ Python tracker ___ ___

[issue1229646] httplib error checking.

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: In Python3 the code for httplib changed: Py3: http://svn.python.org/view/python/branches/py3k/Lib/http/client.py?view=markup#send Py2: http://svn.python.org/view/python/trunk/Lib/httplib.py?view=markup#send Does this still need to be fixed on Py2.7 (and maybe on

[issue1027] uudecoding (uu.py) does not supprt base64, patch attached

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: Now it's too late for 2.5 and probably for 2.6 too. If there are no news this can probably be closed. -- nosy: +ezio.melotti status: open -> pending versions: +Python 2.7 -Python 2.4 ___ Python tracker

[issue6413] incorrect log level in distutlis.dist for announce

2009-07-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in r73827, r73828 and r73830 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue6413] incorrect log level in distutlis.dist for announce

2009-07-03 Thread Tarek Ziadé
New submission from Tarek Ziadé : The correct level should be INFO -- assignee: tarek messages: 90095 nosy: tarek priority: normal severity: normal status: open title: incorrect log level in distutlis.dist for announce type: behavior versions: Python 2.7, Python 3.1, Python 3.2

[issue3392] subprocess fails in select when descriptors are large

2009-07-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Your patch looks pretty good. I cleaned up a few things in it and added a unittest (the existing test suite is run with both select and poll). Committed to trunk in r73825. I am leaving the issue open until this is ported and merged into py3k as well as bac

[issue6398] README typo

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed in r73823 (py3k) and r73824 (trunk). Thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.0 ___ Python tracker

[issue3810] os.chdir() et al: is the path str or bytes?

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: At the beginning of the page[1] there's a note that says: "All functions accepting path or file names accept both bytes and string objects, and result in an object of the same type, if a path or file name is returned." This applies to os.chdir() too (both work, ho

[issue4017] Tkinter cannot find Tcl/Tk on Mac OS X

2009-07-03 Thread Adam Ginsburg
Adam Ginsburg added the comment: Although this is an old & closed error, I'm still running in to it. I am trying to compile & install 64 bit python with Tk/Tcl support on Mac OS X 10.5.7. I have installed 64-bit Tcl/Tk: $ file /Library/Frameworks/Tk.framework/Versions/8.5/Tk /Library/Framework

[issue5960] Windows Installer Error 1722 when opting for compilation at install time - once again

2009-07-03 Thread Eric Devolder
Eric Devolder added the comment: problem fixed under final 3.1 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list m

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I've submitted a fix to 6381 in the trunk. 6382 is less clear to me, I must take a closer look. -- ___ Python tracker ___

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Fixed exception handling in revision 73820 and revision 73821 and revision 73822 -- ___ Python tracker ___

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-07-03 Thread Christoph Burgmer
Christoph Burgmer added the comment: Adding a incomplete patch in need of a function Py_UNICODE_ISCASEIGNORABLE defining the case-ignorable class. I don't want to touch capitalize() as I don't fully understand the semantics, where it is different to title(). It seems though following UTR#21 not

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-07-03 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti priority: -> normal stage: -> needs patch type: -> behavior versions: +Python 2.7 ___ Python tracker ___ __

[issue6412] Titlecase as defined in Unicode Case Mappings not followed

2009-07-03 Thread Christoph Burgmer
New submission from Christoph Burgmer : Titlecase, i.e. istitle() and title(), is buggy when the string includes combining diacritical marks. >>> u'H\u0301ngh'.istitle() False >>> u'H\u0301ngh'.title() u'H\u0301Ngh' >>> The string given already is in titlecase so that the following result is ex

[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-07-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Commited revision 73819 Please test on gentoo -- ___ Python tracker ___ ___ Python-bugs-list

[issue6381] test_urllib2_localnet sporadic failures closing socket

2009-07-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Clearly some platforms automatically set the shutdown state, and we need to catch that error. -- nosy: +krisvale ___ Python tracker ___

[issue6411] 3.1 not functional

2009-07-03 Thread corban
corban added the comment: >From what I can see, the older version of python may be easier to learn for a programming novice. It seems to be a little less complicated overall. -- ___ Python tracker ___

[issue6411] 3.1 not functional

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: If you want to know what changed in Python 3 you can read http://docs.python.org/3.0/whatsnew/3.0.html If you are learning Python and you need help you can ask on comp.lang.python or on #python (server: irc.freenode.net). Closing as invalid. -- resolution

[issue6410] Dictionaries should support __add__

2009-07-03 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: I am against adding __add__ to dict, since merging dictionaries is not a commutative operation. If a short syntax is desired for merging dictionaries, the just define a function. For example: def merge_dicts(*args): result = {} for x in args: re

[issue6411] 3.1 not functional

2009-07-03 Thread corban
corban added the comment: Are there many changes like this with functions because what little I've learned is from v. 2.6.2 and most lessons seem to be based around that style as well. Im trying to teach myself and need to know which version would be better. -- _

[issue6411] 3.1 not functional

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: Maybe you used "print foo" instead of "print(foo)". In Python3 print is a function and if you don't use the () you get this: >>> print foo File "", line 1 print foo ^ SyntaxError: invalid syntax -- nosy: +ezio.melotti __

[issue6411] 3.1 not functional

2009-07-03 Thread corban
corban added the comment: I am using windows xp. I dont have the exact error message because I've already uninstalled in and went with v/ 2.6.2 (which seems to be working fine.) But it was telling me to be a syntax error and would always highlight the blank space after any command as if that

[issue6411] 3.1 not functional

2009-07-03 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Could you elaborate on what is problem exactly? Please include any error message you are getting. Also, what operating system are you using? -- nosy: +alexandre.vassalotti stage: -> test needed ___ Python trac

[issue6411] 3.1 not functional

2009-07-03 Thread corban
New submission from corban : After downloading v. 3.1, I couldnt get it to perform even the most simple functions. I am somewhat new to the programming so I dont know if there is something simple that I am missing or if it is a possible bug with the system. -- messages: 90076 nosy: el

[issue6410] Dictionaries should support __add__

2009-07-03 Thread Martin v . Löwis
Martin v. Löwis added the comment: What would you do in case of duplicate keys? -- nosy: +loewis ___ Python tracker ___ ___ Python-bug

[issue6410] Dictionaries should support __add__

2009-07-03 Thread Michael W.
New submission from Michael W. : Summary: Dictionaries should support being added to other dictionaries instead of using update(). This should be a relatively easy fix and would make the language more pythonic. How to reproduce: $ python Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41) [GC

[issue6353] "L" integer suffix in Python 3.1 tutorial

2009-07-03 Thread Ezio Melotti
Ezio Melotti added the comment: Yes, I was looking at the diff between the two and I probably picked up the wrong one. -- ___ Python tracker ___ _

[issue6353] "L" integer suffix in Python 3.1 tutorial

2009-07-03 Thread Mark Dickinson
Mark Dickinson added the comment: ezio.melotti: do you mean r73658? (which was committed after delroth submitted the report :-). -- nosy: +marketdickinson ___ Python tracker ___

[issue6353] "L" integer suffix in Python 3.1 tutorial

2009-07-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: Pierre, before submitting doc issues, you can check the 'in-development' version of the docs at http://docs.python.org/dev/py3k/ to see if an issue has been fixed. This is currently labeled "Python v3.2a0 documentation" -- nosy: +tjreedy __

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Jesse Noller
Jesse Noller added the comment: Thanks Matthew - I agree, it's simple. But fixing the code is 1/3 of the patch. I'll need to add tests/update the ones there as well as modify the .rst documentation. -- ___ Python tracker

[issue894936] Have a split corresponding with os.path.join

2009-07-03 Thread R. David Murray
R. David Murray added the comment: I think the OP meant os.path.split, not str.split, but I don't understand what incompatibility he is referring to. This seems to work fine: >>> ntpath.join(*ntpath.split("Z:/xyz")) 'Z:/xyz' That said, I'd like to note that I was surprised the first few times

[issue2977] truncation of text in tables in Library Reference PDF

2009-07-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not sure that this is a valid feature request. As R. David Murray has said, it's sort of an unwritten rule of ConfigParser-based applications that they look for specific entries, but don't care what else is there in the file - sort of in line with Postel's Law.

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Matthew Leon Grinshpun
Matthew Leon Grinshpun added the comment: I have attached a patch. All I did was shift the one line from __init__ to _setup_queues. That's it. You could take advantage of the change in the following way: class BlockingPool(pool.Pool): def _setup_queues(self): pool.Pool._setup_queu

[issue5672] Implement a way to change the python process name

2009-07-03 Thread Elvis Pranskevichus
Elvis Pranskevichus added the comment: > Please don't provide a wrapper around ptrctrl prctl is not portable. I always thought that the premise of stdlib is to provide portable interfaces. BSD, for example, uses setprocname instead of prctl. Also, prctl does not modify the process name shown

[issue6409] 2to3 generates malformed diffs

2009-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You seem to use the 'parallel' option. Some flush() or synchronization missing? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ __

[issue6409] 2to3 generates malformed diffs

2009-07-03 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : I ran 2to3 over Twisted r27084 like this: time ~/Projects/python/trunk/python /home/exarkun/Projects/python/trunk/Tools/scripts/2to3 -j 4 twisted/ > 2to3.patch Visual inspection revealed some curious defects, and attempting to apply it failed like this:

[issue894936] Have a split corresponding with os.path.join

2009-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I still fail to see how 'splitall' would be useful. How is it a problem that "str.split is incompatible with os.path.join" ? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue1195571] simple callback system for Py_FatalError

2009-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a refreshed patch against trunk. Since the previous one did not provide any context, I hope I copied the lines in the right locations. -- keywords: +needs review nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file14440/fatalh

[issue5117] os.path.relpath problem with root directory

2009-07-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5117] os.path.relpath problem with root directory

2009-07-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Maybe this patch should be updated because os.path functions changed their behaviors for UNC in py3k. (#5799) -- dependencies: +Change ntpath functions to implicitly support UNC paths ___ Python tracker

[issue1172711] long long support for array module

2009-07-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file14438/array_long_long.patch ___ Python tracker ___ ___ Python-bugs-l

[issue1172711] long long support for array module

2009-07-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Added file: http://bugs.python.org/file14439/array_long_long.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The port to py3k has an error, see http://mail.python.org/pipermail/python-checkins/2009-July/084734.html Indexing is no more allowed on exception objects. it may be replaced with e.args[0], or better, with e.errno. -- nosy: +amaury.forgeotdarc

[issue1172711] long long support for array module

2009-07-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: How about this patch? I haven't tested so intensely, but testcase seems working. -- nosy: +ocean-city Added file: http://bugs.python.org/file14438/array_long_long.patch ___ Python tracker

[issue6408] 2to3: Local package import

2009-07-03 Thread Alejandro Santos
Alejandro Santos added the comment: Nice, Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue6408] 2to3: Local package import

2009-07-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r73811. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Jesse Noller
Jesse Noller added the comment: I'm not against this; new features will only be committed to the 2.7 and 3.1.x branches however. Something to help speed this up would be an actual patch with docs/tests for the module made against python trunk. That way I could review and simply submit. ---

[issue6408] 2to3: Local package import

2009-07-03 Thread Alejandro Santos
New submission from Alejandro Santos : The 2to3 tool shipped with Python 3.1 final doesn't handle correctly a local package import (fixer fix_import). Test case: $ find . -name '*.py' ./__init__.py ./a.py ./b/__init__.py ./b/m.py $ 2to3 a.py RefactoringTool: Skipping implicit fixer: buffer Refa

[issue6406] NameError on 2to3 tool

2009-07-03 Thread Alejandro Santos
Alejandro Santos added the comment: Thanks!! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue6405] Redundant redeclarations in descrobject.h

2009-07-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r73809. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6407] multiprocessing Pool should allow custom task queue

2009-07-03 Thread Matthew Leon Grinshpun
New submission from Matthew Leon Grinshpun : Multiprocessing's Pool class __init__ method is written in a way that makes it very difficult for a subclass to modify self._taskqueue. There are very good reasons for wanting to do this - ie, making the taskqueue block when it reaches a certain size.

[issue2775] Implement PEP 3108

2009-07-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thanks for the patch. Applied in r738067. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6406] NameError on 2to3 tool

2009-07-03 Thread Benjamin Peterson
Benjamin Peterson added the comment: And that's what we get for not having unittests for the accursed feature... Fixed in r73805. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker

[issue2977] truncation of text in tables in Library Reference PDF

2009-07-03 Thread Senthil
Senthil added the comment: I verified the library reference pdf files from the trunk and I don't see this problem. Should we close the issue then? -- nosy: +orsenthil ___ Python tracker ___

[issue6406] NameError on 2to3 tool

2009-07-03 Thread Alejandro Santos
New submission from Alejandro Santos : Using the -j switch of the 2to3 tool shiped with Python 3.1 final i'm getting: Traceback (most recent call last): File "/home/alejo/apps/local/bin/2to3", line 6, in sys.exit(main("lib2to3.fixes")) File "/home/alejo/apps/local/lib/python3.1/lib2to3/

[issue6405] Redundant redeclarations in descrobject.h

2009-07-03 Thread Floris Bruynooghe
New submission from Floris Bruynooghe : There are redundant redeclarations for PyGetSetDescr_Type and PyMemberDescr_Type in descrobject.h. This is an issue when compiling an extension module with the -Wredundant-decls flag: In file included from /usr/local/include/python3.1/Python.h:98,

[issue6403] distutils builds extension modules to root package directory

2009-07-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: Related to #6365. I've added a test to make sure twisted builds with 'build' and 'build_ext -i'. Fixed in r73790 and propagated in 2.6/3.1/3.2. Thanks for the feeback ! (I am also adding twisted in my buildbot to make sure trunk creates a similar binary dist th

[issue6377] distutils compiler switch ignored

2009-07-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: yes, the problem is that this option (string) is also used as an attribute (compiler object). But Python itself uses as an attribute.. I have to check its type at this spot, and deprecate the usage of "compiler" as an attribute. -- resolution: -> accept

[issue6399] Error reporting by logging.config.fileConfig()

2009-07-03 Thread Mike
Mike added the comment: Fair point. Agree that this is a feature request. Perhaps something like: logging.config.fileConfig(path, strict=False) -- ___ Python tracker ___ _