[issue4291] Allow Division of datetime.timedelta Objects

2009-04-15 Thread Jeremy Banks
Jeremy Banks jer...@jeremybanks.ca added the comment: Redundant with #2706 and others. -- nosy: -belopolsky, haypo, marketdickinson status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4291

[issue5760] __getitem__ error message hard to understand

2009-04-15 Thread Chris Rebert
New submission from Chris Rebert pyb...@rebertia.com: Prompted by http://mail.python.org/pipermail/python-ideas/2009-April/004048.html The current error message issued when trying to use the get item ([]) operator on an object that does not define __getitem__ can be hard to understand: class

[issue1353344] python.desktop

2009-04-15 Thread Alessio G. B.
Alessio G. B. alessiogiovanni.bar...@gmail.com added the comment: I have added the Italian translation. -- nosy: +agb Added file: http://bugs.python.org/file13689/python.desktop ___ Python tracker rep...@bugs.python.org

[issue5463] Remove deprecated features from struct module

2009-04-15 Thread Andreas Schawo
Andreas Schawo andreas.sch...@gmail.com added the comment: Hi, could you have a look at cleanup_float_coerce_patch.diff. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5463 ___

[issue5737] add Solaris errnos

2009-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy priority: - normal stage: - needs patch versions: +Python 2.7, Python 3.1 -Python 2.4, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5737

[issue5108] Invalid UTF-8 (%s) length in PyUnicode_FromFormatV()

2009-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- priority: - critical stage: - patch review type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5108 ___

[issue5720] ctime: I don't think that word means what you think it means.

2009-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sounds like a good idea, perhaps you could launch a discussion on python-dev? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5720

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2009-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There should be a try/finally in test_issue5099 to ensure that os.remove(fname) always gets called. Otherwise, looks good. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue5726] ld_so_aix does exit successfully even in case of failure

2009-04-15 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch looks good to me. -- nosy: +pitrou priority: - normal resolution: - accepted stage: - commit review versions: -Python 2.5 ___ Python tracker rep...@bugs.python.org

[issue5330] profile and cProfile do not report C functions called with keyword arguments

2009-04-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5330 ___

[issue5761] add file name to py3k IO objects repr()

2009-04-15 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: f = open(py3k/__svn__/LICENSE) f TextIOWrapper encoding=UTF-8 f.buffer _io.BufferedReader object at 0x7f4b67569f68 f.buffer.raw io.FileIO(3, 'rb') f.name 'py3k/__svn__/LICENSE' It would probably be nice if f.name were reused for f's

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Husen daudi
New submission from Husen daudi h...@openerp.co.in: [2009-04-15 17:53:10,198] ERROR:web-services:[19]: _write_data(writer, attrs[a_name].value) [2009-04-15 17:53:10,198] ERROR:web-services:[20]: File /usr/lib/python2.5/site-packages/oldxml/_xmlplus/dom/minidom.py, line 305, in _write_data

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Robert Xiao
Robert Xiao nneon...@gmail.com added the comment: Have you tried this with xml.dom.minidom? -- nosy: +nneonneo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___

[issue5763] scope resolving error

2009-04-15 Thread vid podpecan
New submission from vid podpecan vid.podpe...@gmail.com: Consider the following two functions: def outer(): a = 1 def inner(): print a inner() #end outer() def outer_BUG(): a = 1 def inner(): print a a = 2 inner() #end outer_BUG() The

[issue5759] __float__ not called by 'float' on classes derived from str

2009-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I have confirmed this in trunk and py3k, unit tests attached. -- components: +Interpreter Core -None keywords: +patch nosy: +r.david.murray priority: - normal stage: - needs patch title: Do not call __float__ to classes derived

[issue5759] __float__ not called by 'float' on classes derived from str

2009-04-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Added file: http://bugs.python.org/file13691/issue5759-py3k-test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5759 ___

[issue4954] native build of python win32 using msys under wine.

2009-04-15 Thread Leonard Ritter
Leonard Ritter cont...@leonard-ritter.com added the comment: Hello everyone, I'm seconding the wish to be able to build Python with MSYS on Win32, and I can give several technical reasons: It is my understanding that in order to build an extension for Python on Win32, one requires to use the

[issue5763] scope resolving error

2009-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This is not a bug, just a common gotcha. The rules are described at: http://docs.python.org/reference/executionmodel.html#naming Here's the relevant excerpt: If a name binding operation occurs anywhere within a code block, all uses of the

[issue5763] scope resolving error

2009-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5763 ___

[issue5463] Remove deprecated features from struct module

2009-04-15 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: The _struct.c part of the patch looks good. For the tests, there should be some tests to check that attempting to pack a float with an integer format gives either TypeError or struct.error. Thanks! --

[issue5463] Remove deprecated features from struct module

2009-04-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5463 ___ ___

[issue5764] 2.6.2 Python Manuals CHM file seems broken

2009-04-15 Thread Ding Xuan
New submission from Ding Xuan dx...@163.com: e.g. The Python Tutorial menu cannot be unfolded, so as Using Python, etc. -- assignee: georg.brandl components: Documentation messages: 85998 nosy: dx617, georg.brandl severity: normal status: open title: 2.6.2 Python Manuals CHM file seems

[issue3754] minimal cross-compilation support for configure

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file13692/python-trunk-20090415-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754

[issue3754] minimal cross-compilation support for configure

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file11664/python-trunk-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___

[issue3754] minimal cross-compilation support for configure

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file12268/python-trunk-CROSS.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3754 ___

[issue3871] cross and native build of python for mingw32 with distutils

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file13693/python-trunk-20090415-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3871] cross and native build of python for mingw32 with distutils

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Removed file: http://bugs.python.org/file13693/python-trunk-20090415-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue3871] cross and native build of python for mingw32 with distutils

2009-04-15 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file13694/python-trunk-20090416-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

[issue5676] shutils test fails on ZFS (on FUSE, on Linux)

2009-04-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 1. You should always compare functions with is. 2. You should add a comment explaining why os.listdir is special cased. -- ___ Python tracker rep...@bugs.python.org

[issue5761] add file name to py3k IO objects repr()

2009-04-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: What should we do about filenames of bytes? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5761 ___

[issue1521491] file.seek() influences write() when opened with a+ mode

2009-04-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I can't reproduce it with python2.6 on Vista. The newer C runtime (msvcr90.dll) probably corrected this. -- nosy: +amaury.forgeotdarc resolution: - out of date status: pending - closed ___

[issue5759] __float__ not called by 'float' on classes derived from str

2009-04-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the tests. Fixed in r71627. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5759

[issue3440] Starting any program as a subprocess fails when subprocess.Popen has env argument

2009-04-15 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Doc patch applied in r71631. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3440

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-04-15 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636 ___ ___ Python-bugs-list

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-04-15 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fyi - I can't compile issue2636-patch-1.diff when applied to trunk (2.7) using gcc 4.0.3. many errors. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636

[issue5728] Support telling TestResult objects a test run has finished

2009-04-15 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: The patch looks fine to me, except that it's missing documentation updates. The feature and names are fine too. -- nosy: +barry ___ Python tracker rep...@bugs.python.org

[issue5765] stack overflow evaluating eval(() * 30000)

2009-04-15 Thread Gabriel Genellina
New submission from Gabriel Genellina gagsl-...@yahoo.com.ar: Originally reported by Juanjo Conti at PyAr: http://blog.gmane.org/gmane.org.user-groups.python.argentina/ day=20090415 Evaluating this expression causes a stack overflow, and the Python interpreter exits abnormally: eval

[issue5728] Support telling TestResult objects a test run has finished

2009-04-15 Thread Robert Collins
Robert Collins robe...@robertcollins.net added the comment: On Wed, 2009-04-15 at 23:19 +, Barry A. Warsaw wrote: Barry A. Warsaw ba...@python.org added the comment: The patch looks fine to me, except that it's missing documentation updates. The feature and names are fine too. Where

[issue5765] stack overflow evaluating eval(() * 30000)

2009-04-15 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is a pathological case. I suppose we have to add a recursion counter to the compiler struct. -- nosy: +benjamin.peterson priority: - low ___ Python tracker rep...@bugs.python.org

[issue5766] Mac/scripts/BuildApplet.py reset of sys.executable during install can cause it to use wrong modules

2009-04-15 Thread Bryan Blackburn
New submission from Bryan Blackburn b...@users.sourceforge.net: With Python 2.6.1 currently installed and attempting to install 2.6.2 into a DESTDIR location, and having a different configuration for the new one (2.6.1 built with default Unicode settings, 2.6.2 with UCS4), BuildApplet.py

[issue5767] xmlrpclib loads invalid documents

2009-04-15 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: Prior versions of xmlrpclib.loads would raise an exception when passed malformed documents: exar...@bigdog24:~/_trial_temp$ python2.4 -c 'from xmlrpclib import loads; loads(\x00\nmethodResponse\n params\n param\n /param\n

[issue5728] Support telling TestResult objects a test run has finished

2009-04-15 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Apr 15, 2009, at 7:43 PM, Robert Collins wrote: Robert Collins robe...@robertcollins.net added the comment: On Wed, 2009-04-15 at 23:19 +, Barry A. Warsaw wrote: Barry A. Warsaw ba...@python.org added the comment: The patch looks

[issue5748] Objects/bytesobject.c should include stringdefs.h, instead of defining its own macros

2009-04-15 Thread Victor Godoy Poluceno
Changes by Victor Godoy Poluceno victorpoluc...@gmail.com: -- nosy: +victorpoluceno ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5748 ___ ___

[issue5665] Add more pickling tests

2009-04-15 Thread Collin Winter
Collin Winter coll...@gmail.com added the comment: Committed as r71408 (trunk) and r71638 (py3k). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5665

[issue5762] AttributeError: 'NoneType' object has no attribute 'replace'

2009-04-15 Thread Husen daudi
Husen daudi h...@openerp.co.in added the comment: Yes I am using xml.dom.minidom doc.toprettyxml(indent=\t).encode('utf-8') -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5762 ___

[issue5434] datetime.monthdelta

2009-04-15 Thread Jess Austin
Changes by Jess Austin jess.aus...@gmail.com: Added file: http://bugs.python.org/file13696/monthdelta2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5434 ___