[issue5953] Add to whats new: range(n) != range(n)

2009-05-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Please don't post html. For whatever reason, it displayed as hard-to-read marked-up html text when emailed (and my reader does usually display html messages properly). Perhaps the email mime-type was wrong even though it looks ok in Firefox.

[issue5974] unicode decode error due to improperly entered text Martin v. Löwis

2009-05-09 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Thanks for the patch. Fixed in r72496. -- nosy: +loewis resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5974

[issue5900] Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I including the patch right now. I a changing minor things (adding the missing configure and renaming tests) -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue5900] Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r72497 in trunk. (tests run under macos, debian and win) I'll wait 2 hours to watch the buildbots then I'll propagate it to the py3k branch -- ___ Python tracker rep...@bugs.python.org

[issue5976] test_os fails if run after test_distutils

2009-05-09 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: ./python Lib/test/regrtest.py -v test_distutils test_os -- assignee: tarek components: Distutils messages: 87487 nosy: tarek priority: critical severity: normal status: open title: test_os fails if run after test_distutils versions:

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi, the latest patch (custom-log.diff minus the import logging at the begin) breaks the imaging python module build: the log is in the file susebuild.failed.imaging.log. -- Added file:

[issue5976] test_os fails if run after test_distutils

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: fixed in r72500 and r72502 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5976 ___

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, there is a colliding warn symbol: one defiend whiting import warnings as warn and another defined as warn = logger.warn (~ line 56). It breaks all the modules build (see attached file susebuild.failed.imaging-2.log). As

[issue5900] Ensure RUNPATH is added to extension modules with RPATH if GNU ld is used

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in py3k in r72504 Thanks Floris ! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5900 ___

[issue5971] logging.Handler.handlerError() may raise IOError in traceback.print_exception()

2009-05-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into trunk and release26-maint. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5971

[issue1578269] Add os.link() and os.symlink() support for Windows

2009-05-09 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: If I produce a patch for Python 3.1, can this capability possibly be included in the release? Are there any objections to the implementation as found in jaraco.windows? -- ___ Python tracker

[issue5977] distutils build_ext.get_outputs returns wrong result (patch)

2009-05-09 Thread kxroberto
New submission from kxroberto kxrobe...@users.sourceforge.net: with --inplace etc. build_ext.get_outputs returns wrong extension paths; tries to computes them out of the air *again* and .. Tools which need to further know the produced module file, e.g. pyximport (Cython) do crash then ...

[issue5977] distutils build_ext.get_outputs returns wrong result (patch)

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: can you provide a test case that demonstrates the problem ? -- versions: +Python 2.7, Python 3.1 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5977

[issue1578269] Add os.link() and os.symlink() support for Windows

2009-05-09 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: With 3.1b1 already released, most likely this is too late for 3.1 (unless there would be a second beta, which is currently not planned). -- ___ Python tracker rep...@bugs.python.org

[issue3992] removed custom log from distutils

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Antonio, I am starting to think that having distutils dependencies in site.py smells bad. I have sent a mail in python-dev about it, that is now discussed in python-ideas to discuss the creation of a separated sysconfig module. So this patch

[issue5908] I need to import the module in the same thread

2009-05-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: With python, the first import of a library runs its initialization code. Subsequent imports only retrieves the module object from the memory. for this library, it matter where you import the thing. More precisely: it matters where you

[issue1483545] Wave.py support for ulaw and alaw audio

2009-05-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Please read http://www.python.org/dev/patches/ The best format for a patch is a diff -u format. It's much much easier to see what you changed to the existing code, and the same patch often applies to several versions. Also, 2.4 and 2.5

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan jonathan.cervi...@gmail.com added the comment: #!/usr/bin/env python # This does what you want. Change pydb for pdb if you prefer it. import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile(story.txt,verbose=False,raise_on_error=True) except

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan jonathan.cervi...@gmail.com added the comment: #!/usr/bin/env python # Slight mistake in last post import pydb import doctest import sys sys.excepthook = pydb.exception_hook try: doctest.testfile(story.txt,verbose=False,raise_on_error=True) except doctest.UnexpectedException,

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo a.cava...@cavallinux.eu added the comment: Hi Tarek, This is the latest patch to log.py that compiles with the latest python svn 72494. It shows no problem with the few modules I've used so far: now I can't decide if this should go mainline or not but I'll leave here as

[issue5973] re-usable generators / generator expressions should return iterables

2009-05-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: You might be interested to read about this package: http://www.fiber-space.de/generator_tools/doc/generator_tools.html For anything to happen in this area you'd need to get some consensus on python-ideas first. If you do that, you can

[issue5978] cProfile and profile don't work with pygtk/pyqt and sys.exit(0)

2009-05-09 Thread Akkana Peck
New submission from Akkana Peck akkzi...@shallowsky.com: I was following the steps at http://docs.python.org/library/profile.html to try to profile a pygtk program, but it wasn't working -- I was getting no output at all from either cProfile or profile. The problem turned out to be that I was

[issue5979] strptime() gives inconsistent exceptions

2009-05-09 Thread Ryan Leslie
New submission from Ryan Leslie ryle...@gmail.com: e.g. from datetime import datetime datetime.strptime(19951001, %Y%m%d) datetime.datetime(1995, 10, 1, 0, 0) datetime.strptime(19951000, %Y%m%d) # day = 0, month 11 ... ValueError: time data '19951000' does not match format '%Y%m%d'

[issue5977] distutils build_ext.get_outputs returns wrong result (patch)

2009-05-09 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: test_build_ext: The test must be run in a python build dir don't have a build setup currently. maybe in future. One can yet see in build_ext.py: after if self.inplace: (line485) there are 2 different computations for ext_filename

[issue5953] Add to whats new: range(n) != range(n)

2009-05-09 Thread Mitchell Model
Mitchell Model m...@acm.org added the comment: Sorry -- I did notice in the copies sent to me of my replies to bugs.python.org that there was HTML, but I can't figure out why. I didn't use any style text in the message nor in my signature. I thought my email program only sent HTML when there

[issue5980] Add bug tracker tasks to PEP 101

2009-05-09 Thread Daniel Diniz
New submission from Daniel Diniz aja...@gmail.com: This patch would add the following bug tracker tasks to PEP 101 (Doing Python Releases 101): - Add version X.Y+1 as when version X.Y enters alpha. - Change non-doc RFEs to version X.Y+1 when version X.Y enters beta. - Update 'behavior'

[issue5797] there is en exception om Create User page

2009-05-09 Thread Daniel Diniz
Changes by Daniel Diniz aja...@gmail.com: -- priority: - low status: open - pending versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5797 ___

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Two problems with float.fromhex: (1) it incorrectly rejects trailing whitespace on infs and nans: float.fromhex('a.0 ') 10.0 float.fromhex('nan ') Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file13945/issue5981.patch ___ Python tracker rep...@bugs.python.org

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-09 Thread George Sakkis
New submission from George Sakkis george.sak...@gmail.com: It would be nice if classmethod/staticmethod exposed the wrapped function as a read-only attribute/property. Currently the function can be retrieved indirectly but it's obscure (and perhaps not always correct, I'm not sure): In [147]:

[issue5983] boolean.so no more in _xmlplus/utils

2009-05-09 Thread schmirrwurst
New submission from schmirrwurst schmirrwu...@free.fr: We are a few experiencing a failure with openerp on ubuntu. We are missing the file boolean.so from _xmlplus/utils/ in python 2.5 and 2.6 instead we found it in /usr/lib/python2.x/dist-packages/oldxml/_xmlplus/utils/ is it normal ? bug

[issue5983] boolean.so no more in _xmlplus/utils

2009-05-09 Thread schmirrwurst
Changes by schmirrwurst schmirrwu...@free.fr: -- components: +XML type: resource usage - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5983 ___

[issue5953] Add to whats new: range(n) != range(n)

2009-05-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Mitchell Model wrote: Mitchell Model m...@acm.org added the comment: Sorry -- I did notice in the copies sent to me of my replies to bugs.python.org that there was HTML, but I can't figure out why. I didn't use any style text in the

[issue5983] boolean.so no more in _xmlplus/utils

2009-05-09 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This bug tracker is for Python, not for the PyXML package (where boolean.so comes from). Closing as invalid. -- nosy: +loewis resolution: - invalid status: open - closed versions: +3rd party -Python 2.5, Python 2.6

[issue5442] test_importlib fails on Mac OSX 10.5.6 w/ case-sensitive file system

2009-05-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: OK, here is an attempt to fix this. My guess is it has something to do with sys.dont_write_bytecode, otherwise I cannot understand why you fail and not someone else since no other case-sensitive systems have reported this failure. --