[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Here a small, standalone test program of the hires timer code from _lsprof4.c. The results from 10 different builds are included in the comment. -- Added file: http://bugs.python.org/file14006/hpTime.c ___ Python tr

[issue4106] multiprocessing occasionally spits out exception during shutdown

2009-05-17 Thread Bobby Impollonia
Changes by Bobby Impollonia : -- nosy: +bobbyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > It would be great to have buildbot making regression tests > over all compiler flavors. Yes, I hope snakebite.org will enable us to access to several MSVC compilers. -- ___ Python tracker

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-05-17 Thread chrisyco
chrisyco added the comment: After some Googling, I found a possible solution: http://lists.wxwidgets.org/pipermail/wxpython-users/2008-November/081981.html -- nosy: +chrisyco ___ Python tracker ___

[issue3003] sys.stdin.fileno() gives attribute error in IDLE

2009-05-17 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: >>> type(sys.stdin) Don't attempt sys.stdin._RPCProxy_methods lest you be turned to stone ;-) We didn't implement all the features of stdin as it didn't seem necessary. Did you have a specific reason to access stdin.fileno() ? stdin/out/err support comm

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2009-05-17 Thread Joe Amenta
New submission from Joe Amenta : zipfile.ZipFile.extract() fails if targetpath is a directory that already exists. Bug revealed itself on Ubuntu, using extractall(). Happened on the latest 3.1 and 2.7. Attached a patch that I think will fix this issue. -- components: Library (Lib) fil

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-17 Thread Mitchell Model
Mitchell Model added the comment: No, I mean dbm.open. The third paragraph of its documentation says "'c' to create the database if it doesn’t exist, or 'n', which will always create a new empty database". This could easily be read as opening the database just for writing, although come to think

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: There were two problems with _lsprof4.c. Attached is the corrected file and the forward diff with _lsprof.c rev 6670. -- Added file: http://bugs.python.org/file14004/hires_lsprof4.tgz ___ Python tracker

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Changes by Jean Brouwers : Removed file: http://bugs.python.org/file14001/hires_lsprof4.tgz ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5964] WeakSet cmp methods

2009-05-17 Thread Robert Schuppenies
Robert Schuppenies added the comment: Fixed in r72751. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Roumen, your patch worked fine. -- Ran 115 tests in 53.207s OK -- ___ Python tracker __

[issue4215] Running Python 2.6 GUI on Windows Vista

2009-05-17 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue1884] msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch

2009-05-17 Thread Jim Wilson
Jim Wilson added the comment: Well, I violated the admonition of the Great Satan: "PID_CODEPAGE must be first." (or words to that effect). It turns out not to make a difference. Revised (conforming) source attached. -- Added file: http://bugs.python.org/file14003/bar.py _

[issue5980] Add bug tracker tasks to PEP 101

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: Applied in r72756. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Pytho

[issue1884] msilib.SetProperty(msilib.PID_CODEPAGE, '1252') raises 0x65d = type mismatch

2009-05-17 Thread Jim Wilson
Jim Wilson added the comment: I hope this helps. It's Greek to me now. -- Added file: http://bugs.python.org/file14002/bar.py ___ Python tracker ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Attached is yet another version of the Modules/_lsprof.c source, called _lsprof4.c. This one adds support for the hires timer on 32- and 64-bit Intel and PowerPC processors iff compiled with GNU C. With _lsprof4.c, the high precision profile is available on L

[issue6022] test_distutils leaves a 'foo' file behind in the cwd

2009-05-17 Thread Roumen Petrov
Roumen Petrov added the comment: After lets call it "cd temp dir" modification the fail on my linux box : missing libpithon2.7. What is the buildbot trick as the test pass on all linux buildbots ? -- nosy: +rpetrov ___ Python tracker

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers added the comment: Attached is another version of the Modules/_lsprof.c source file. This _lsprof3.c uses the hires time base on Mac OS X, Solaris and HP-UX (plus MS Windows like before) and does not require any asm code. Also, there are no changes other than the very top of the

[issue1855] Codepage unset in msilib.init_database()

2009-05-17 Thread Jim Wilson
Jim Wilson added the comment: It's been more than a year. I'll work a little longer on the SetProperty(...) example, but here's the "confirming evidence". A related problem is 1884, but I simply don't remember the context and long ago deleted the code in disgust. -- Added file: http:/

[issue5829] float('1e500') -> inf, complex('1e500') -> ValueError

2009-05-17 Thread Eric Smith
Eric Smith added the comment: It looks good to me. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Roumen Petrov
Roumen Petrov added the comment: The patch issue5977-w32.patch from issue 5977 has to fix this. The patch just add suffix for target binary, i.e. on linux target will become foo.so and on w32 foo.pyd. Note .pyd is correct sugfxi for w32. -- nosy: +rpetrov __

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-05-17 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file10983/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue6049] str.strip() and " behaviour expected?

2009-05-17 Thread Ezio Melotti
Ezio Melotti added the comment: Yes, it is expected. When you call .strip() without args it strips the whitespaces, when you call with an arg it strips only what you specified. In this example: >>> s.strip('"') ' "Peter' the left " is not removed because there's a space in between, in this examp

[issue6049] str.strip() and " behaviour expected?

2009-05-17 Thread Erik Bernoth
New submission from Erik Bernoth : Hey guys, is the following behaviour expected? I don't really think so... $ python Python 3.0.1 (r301:69597, Feb 14 2009, 19:03:52) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> >>>

[issue6047] "install" target in python 3.x makefile should be "fullinstall"

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: fullinstall should be removed -- I have the same recollection as Ronald, so if someone really wants python == python3, he can create the link himself. -- nosy: +georg.brandl ___ Python tracker

[issue6047] "install" target in python 3.x makefile should be "fullinstall"

2009-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sorry about the noise, I mustn't have been awake this morning :-( The fact that fullinstall still creates a "python" executable confuses me a little though, I thought the consesus at the language summit at Pycon was that we shouldn't do that but only have a

[issue1738179] help() can't find right source file

2009-05-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6047] "install" target in python 3.x makefile should be "fullinstall"

2009-05-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't understand. fullinstall still overwrites python to link to python3. -- ___ Python tracker ___ ___

[issue6045] Fix dbm interfaces

2009-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would inheriting from MutableMapping fix this problem? -- nosy: +pitrou ___ Python tracker ___ ___ P

[issue3877] test_fileio fails on OpenBSD 4.4

2009-05-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: There are other changed files than just test_fileio.py in your patch, I suppose they aren't needed for this bug? Also, it would probably be more future-proof to test for `'bsd' in sys.platform`. -- nosy: +pitrou ___

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: First, lowering priority. > I disagree that this is release-critical. I think it is desirable to > say that the dbm modules support most of a dict-style interface, > and I also think that it is factually correct to claim that they > currently do. Supporting only

[issue4080] pyunit - display time of each test case - patch

2009-05-17 Thread Michael Foord
Michael Foord added the comment: Needs test and documentation. Otherwise looks good. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue6012] enhance getargs O& to accept cleanup function

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Well, please see r65745. That was O& before. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: It seems there is two workarounds. 1. remove /pdb:None from linker arguments. 2. Add extension to output filename. (like attached patch) Maybe, if there is /pdb:None in linker arguments and output filename doesn't have extension, link.exe may think it has d

[issue6044] Exception message in int() when trying to convert a complex

2009-05-17 Thread Mark Dickinson
Mark Dickinson added the comment: Removed "; use int(abs(z))" from the error message (and the corresponding pieces from the error messages for long(z) and float(z)) in r72718, r72719, r72720, r72722. (Georg agreed to this change in a brief discussion on IRC.) -- resolution: invalid ->

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

2009-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: I haven't looked in this particular problem yet, but please note that the Mac-specific libraries do not work with an UCS4 build of python. -- nosy: +ronaldoussoren ___ Python tracker

[issue5514] Darwin framework libpython3.0.a is not a normal static library

2009-05-17 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- assignee: -> ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue5514] Darwin framework libpython3.0.a is not a normal static library

2009-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Jack: could you please explain what the issue is? Unless you do so I will close this issue as "won't fix". In particular: will linking with "-lpython3.0" work with this hypothetical future version of Xcode you're talking about? As mentioned before "libpyth

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Ah, well, if this runs on VC9, I think you don't have to worry about VC6. (VC6 is too old) Of course, I'm happy if this runs on VC6 too. Anyway, there is msvc9compiler.py, so maybe does different code run on between VC9 and VC8(or elder)? I don't know about

[issue6047] "install" target in python 3.x makefile should be "fullinstall"

2009-05-17 Thread Ronald Oussoren
New submission from Ronald Oussoren : The default "install" target in the toplevel makefile for python 3.x behaves like the "altinstall" target in python 2.x. This behaviour was choosen to avoid conflicts between python 3.x and python 2.x installations. IMO this is no longer needed, "make ful

[issue6023] Search does not intelligently handle module.function queries on docs.python.org

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: This is already done in Sphinx trunk, and will be used for Python as soon as it is released. -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue6044] Exception message in int() when trying to convert a complex

2009-05-17 Thread Mark Dickinson
Mark Dickinson added the comment: I always found the "use int(abs(z))" part of that message odd, as well. As Georg points out, there are many possible ways that one might want to convert complex to int; it seems strange to give advice for one particular one when that may well not match what th

[issue6042] Document and slightly simplify lnotab tracing

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: Jeffrey, while you're at lnotab stuff, could you have a look at #1689458 as well? -- nosy: +georg.brandl ___ Python tracker ___ __

[issue6044] Exception message in int() when trying to convert a complex

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: That no unambiguous conversion between complex and int is defined is exactly the reason for this error message. You could want the absolute value, the real part, the imaginary part, or even the polar angle... int(abs(z)) works as intended, giving you the absolut

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is translated version. test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase) ... foo.c Library c:\docume~1\whiter~1\locals~1\temp\tmpzdhkyv\tempt\docume~1\whiter~1\l ocals~1\temp\tmpkhvw2m\foo.lib and object c:\docume~1\whiter~1\locals~1

[issue5935] Better documentation of use of BROWSER environment variable

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r72712. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Here is translated version. test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase) ... foo.c Library c:\docume~1\whiter~1\locals~1\temp\tmpzdhkyv\tempt\docume~1\whiter~1\l ocals~1\temp\tmpkhvw2m\foo.lib and object c:\docume~1\whiter~1\locals~1

[issue6046] test_distutils.py fails on VC6(Windows)

2009-05-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : test_disutils(test_get_outputs) fails on VC6. I cannot know if this happens on VC9 too because buildbot is down. :-( / test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase) ... foo.c

[issue5937] Problems with dbm documentation

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: Superseded by #6045. -- resolution: -> duplicate status: open -> closed superseder: -> Fix dbm interfaces ___ Python tracker ___ ___

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
New submission from Georg Brandl : All the dbm.* modules currently have different interfaces, and different levels of supporting the Python3-style dictionary interface -- while the docs claim they all have (most of) the dict interface. For example, both dbm.gnu and dbm.ndbm only have keys() meth

[issue6012] enhance getargs O& to accept cleanup function

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > Modifying convert_to_unicode is incorrect; this function is not an O& > converter. Instead, PyUnicode_FSConverter needs to change. Well, convert_to_unicode used to use O& before, and I fixed memory leak with O formatter in current way. I used this function

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: I think you meant anydbm? It's already documented well for dbm.open -- I've copied over that table to anydbm in r72710. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue5951] email.message : get_payload args's documentation is confusing

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: Will be fixed along with all other such instances. -- resolution: -> postponed status: open -> closed ___ Python tracker ___

[issue6017] Dict fails to notice addition and deletion of keys during iteration

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: OK, I now changed it to "may raise ... or fail to iterate over all entries" in r72708. -- ___ Python tracker ___ _

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-17 Thread Senthil
Changes by Senthil : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue4144] 3 tutorial documentation errors

2009-05-17 Thread Georg Brandl
Georg Brandl added the comment: I fixed the three docs issues in r72703 and r72704. The doctest "issue" is not an issue; the single backslash is already removed by Python's tokenizer, so that doctest only sees 'doesn't' which is obviously a syntax error. You need to duplicate the backslash, or