[issue808164] socket.close() doesn't play well with __del__

2009-05-17 Thread test...@smail.ee
test...@smail.ee test...@smail.ee added the comment: The same is happened when you are trying to close pycurl handler at __del__ method. -- nosy: +test157 versions: +Python 2.5 -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker

[issue4144] 3 tutorial documentation errors

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-17 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6002 ___ ___ Python-bugs-list mailing

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

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, I now changed it to may raise ... or fail to iterate over all entries in r72708. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6017

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

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Will be fixed along with all other such instances. -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5951

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue6012] enhance getargs O to accept cleanup function

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: 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

[issue5937] Problems with dbm documentation

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Superseded by #6045. -- resolution: - duplicate status: open - closed superseder: - Fix dbm interfaces ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5937

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

2009-05-17 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: test_disutils(test_get_outputs) fails on VC6. I cannot know if this happens on VC9 too because buildbot is down. :-( / test_get_outputs

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

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue5935] Better documentation of use of BROWSER environment variable

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r72712. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5935 ___

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

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-05-17 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6046 ___ ___ Python-bugs-list mailing

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

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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,

[issue6042] Document and slightly simplify lnotab tracing

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Jeffrey, while you're at lnotab stuff, could you have a look at #1689458 as well? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6042

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

2009-05-17 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

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

2009-05-17 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: 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

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

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-05-17 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2009-05-17 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: - ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5514 ___ ___

[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 ronaldousso...@mac.com 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

[issue6012] enhance getargs O to accept cleanup function

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Well, please see r65745. That was O before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6012 ___

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

2009-05-17 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Needs test and documentation. Otherwise looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4080 ___

[issue6045] Fix dbm interfaces

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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.

[issue3877] test_fileio fails on OpenBSD 4.4

2009-05-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Would inheriting from MutableMapping fix this problem? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6045 ___

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

2009-05-17 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I don't understand. fullinstall still overwrites python to link to python3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6047 ___

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

2009-05-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1738179 ___ ___ Python-bugs-list

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

2009-05-17 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org 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

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

2009-05-17 Thread Erik Bernoth
New submission from Erik Bernoth shol...@gmx.net: 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.

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

2009-05-17 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[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 dicki...@gmail.com: Removed file: http://bugs.python.org/file10983/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3366 ___

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

2009-05-17 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

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

2009-05-17 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: It looks good to me. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5829 ___

[issue1855] Codepage unset in msilib.init_database()

2009-05-17 Thread Jim Wilson
Jim Wilson wil...@afn.org 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

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

2009-05-17 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com 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

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

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

[issue5980] Add bug tracker tasks to PEP 101

2009-05-17 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in r72756. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5980 ___

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

2009-05-17 Thread Jim Wilson
Jim Wilson wil...@afn.org 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

[issue4215] Running Python 2.6 GUI on Windows Vista

2009-05-17 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4215 ___ ___ Python-bugs-list

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

2009-05-17 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Roumen, your patch worked fine. -- Ran 115 tests in 53.207s OK -- ___ Python tracker rep...@bugs.python.org

[issue5964] WeakSet cmp methods

2009-05-17 Thread Robert Schuppenies
Robert Schuppenies robert.schuppen...@gmail.com added the comment: Fixed in r72751. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5964 ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Changes by Jean Brouwers mrje...@gmail.com: Removed file: http://bugs.python.org/file14001/hires_lsprof4.tgz ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2281 ___

[issue2281] Enhanced cPython profiler with high-resolution timer

2009-05-17 Thread Jean Brouwers
Jean Brouwers mrje...@gmail.com 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

[issue5942] Ambiguity in dbm.open flag documentation

2009-05-17 Thread Mitchell Model
Mitchell Model m...@acm.org 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

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

2009-05-17 Thread Joe Amenta
New submission from Joe Amenta ament...@msu.edu: 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:

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

2009-05-17 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: type(sys.stdin) class 'idlelib.rpc.RPCProxy' 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

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

2009-05-17 Thread chrisyco
chrisyco chris...@gmail.com 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 rep...@bugs.python.org