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

2009-05-09 Thread Ismail Donmez
Ismail Donmez added the comment: 1 Fail: test test_importlib crashed -- : 'module' object has no attribute 'writes_bytecode' Traceback (most recent call last): File "/Users/cartman/Python-3.1b1/Lib/test/regrtest.py", line 620, in runtest_inner indirect_test() File "/Users/cartman/Pyth

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

2009-05-09 Thread Brett Cannon
Brett Cannon 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. -- status: open -> pendi

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

2009-05-09 Thread Martin v. Löwis
Martin v. Löwis 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

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

2009-05-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mitchell Model wrote: > Mitchell Model 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.

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

2009-05-09 Thread schmirrwurst
Changes by schmirrwurst : -- components: +XML type: resource usage -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2009-05-09 Thread schmirrwurst
New submission from schmirrwurst : 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 report on lp : https:/

[issue5982] classmethod, staticmethod: expose wrapped function

2009-05-09 Thread George Sakkis
New submission from George Sakkis : 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]: def f():pass .:

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
Mark Dickinson 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 _

[issue5981] float.fromhex bugs

2009-05-09 Thread Mark Dickinson
New submission from Mark Dickinson : 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 "", line 1, in ValueError: invalid hexadecimal floating-poin

[issue5797] there is en exception om Create User page

2009-05-09 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> low status: open -> pending versions: -Python 3.1 ___ Python tracker ___ ___ Python-bugs-li

[issue5980] Add bug tracker tasks to PEP 101

2009-05-09 Thread Daniel Diniz
New submission from Daniel Diniz : 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' issues from versions

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

2009-05-09 Thread Mitchell Model
Mitchell Model 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 was some sty

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

2009-05-09 Thread kxroberto
kxroberto 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 while computation in get_ou

[issue5979] strptime() gives inconsistent exceptions

2009-05-09 Thread Ryan Leslie
New submission from Ryan Leslie : 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'

[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 : 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 exiting by calling sys.ex

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

2009-05-09 Thread R. David Murray
R. David Murray 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 open a new ticket refer

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo 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 reference anyway. Cheers, Ant

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan 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, failure: exc_info = failure.

[issue4938] Pdb cannot access doctest source in postmortem

2009-05-09 Thread Jonathan
Jonathan 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 doctest.UnexpectedExceptio

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

2009-05-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 are closed for new

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

2009-05-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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 *first* import

[issue3992] removed custom log from distutils

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé 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 will be held until we

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

2009-05-09 Thread Martin v. Löwis
Martin v. Löwis 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 _

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

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé 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 ___ ___

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

2009-05-09 Thread kxroberto
New submission from kxroberto : 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 ... patch see attachment: stores and use

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

2009-05-09 Thread Jason R. Coombs
Jason R. Coombs 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

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

2009-05-09 Thread Vinay Sajip
Vinay Sajip added the comment: Fix checked into trunk and release26-maint. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

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

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: done in py3k in r72504 Thanks Floris ! -- status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo 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 soon I confirm the patch I

[issue5976] test_os fails if run after test_distutils

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé added the comment: fixed in r72500 and r72502 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue3992] removed custom log from distutils

2009-05-09 Thread Antonio Cavallo
Antonio Cavallo 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: http://bugs.python.org/file13939/susebuild.failed.imaging.log

[issue5976] test_os fails if run after test_distutils

2009-05-09 Thread Tarek Ziadé
New submission from Tarek Ziadé : ./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: Python 2.7, Python 3.

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

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé 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

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

2009-05-09 Thread Tarek Ziadé
Tarek Ziadé 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 __

[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 added the comment: Thanks for the patch. Fixed in r72496. -- nosy: +loewis resolution: -> accepted status: open -> closed ___ Python tracker ___