[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > the way i read the text, i gathered that it might not work > with sockets belonging to a subset of address families. I still cannot see anything wrong with that text, but then, English is not my native language. Can you suggest a different

[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: r62656 has the fix. -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon
Brett Cannon <[EMAIL PROTECTED]> added the comment: So I found the problem. The C implementation of 'warnings' is not handling the case where the module that triggered the exception does not define __file__, __name__ == '__main__', and sys.argv[0] is a false value in the same way as the Python

[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I brought __len__ back, and tried to fix the tests failing because they were indexing range. I couldn't figure out how to fix test_itertools. (It's on codereview, too). Added file: http://bugs.python.org/file10176/range_lean_and_mean4.patc

[issue2736] datetime needs and "epoch" method

2008-05-02 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: That's expected as mktime is just a thin wrapper over libc mktime() and it does not expect microseconds. Changing time.mktime doesn't seems an option, so the best alternative is to implement a method in datetime type. Is there a real demand for

[issue2581] Vista UAC/elevation support for bdist_wininst

2008-05-02 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: Checked in as r62636 -- resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Fair enough. Let's keep __len__. Did you upload the patch to the codde review site yet? Hopefully I have time to look at it tonight. __ Tracker <[EMAIL PROTECTED]> __

[issue2745] Add support for IsWow64Process

2008-05-02 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: As per a thread on python-dev, I offered to add sys.iswow64process. I'm attaching a patch that does this (including news, docs and tests). I'm adding Martin to the nosy list as he has expressed reservations ("It sounds like clutter of the sy

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: Seems like that's the wrong usage and the PEP 3119 notices that it's hard to get the right semantics. To use it that way you need to define the methods as a classmethod(). http://www.python.org/dev/peps/pep-3119/#one-trick-ponies

[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden
Mike MacFaden <[EMAIL PROTECTED]> added the comment: Martin v. Löwis wrote: > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > > I fail to see the issue. There are many other address > families supported as well, such as AF_BLUETOOTH, AF_PACKET, > AF_TIPC, and AF_NETLINK, depending on th

[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden
Mike MacFaden <[EMAIL PROTECTED]> added the comment: Martin v. Löwis wrote: > Martin v. Löwis <[EMAIL PROTECTED]> added the comment: > > What operating system are you using? It could be a bug in the > operating system as well. hi martin, what i've tested so far... freebsd 6.2 - release 12

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck
Changes by Pedro Werneck <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10174/issue2325.patch __ Tracker <[EMAIL PROTECTED]> __ ___ Pytho

[issue2744] Fix test_cProfile

2008-05-02 Thread Benjamin Peterson
New submission from Benjamin Peterson <[EMAIL PROTECTED]>: test_cProfile has been disabled in Py3k for a while now. It should be fixed before release. -- messages: 66131 nosy: benjamin.peterson priority: critical severity: normal status: open title: Fix test_cProfile versions: Python 3.0

[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: On Fri, May 2, 2008 at 5:46 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > > Guido van Rossum <[EMAIL PROTECTED]> added the comment: > > We need to look at more details why those fail. Perhaps there's one > common place where this is

[issue2325] isinstance(anything, MetaclassThatDefinesInstancecheck) raises instead of returning False

2008-05-02 Thread Pedro Werneck
Pedro Werneck <[EMAIL PROTECTED]> added the comment: In 3.0 it happens with any class. Just the cls argument missing on the call to instancecheck. -- keywords: +patch nosy: +werneck Added file: http://bugs.python.org/file10174/issue2325.patch __ Tracker <

[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: We need to look at more details why those fail. Perhaps there's one common place where this is used? Did you add __length_hint__ yet? __ Tracker <[EMAIL PROTECTED]> __

[issue778799] scripts destination directory not on default path

2008-05-02 Thread Ronald Oussoren
Changes by Ronald Oussoren <[EMAIL PROTECTED]>: -- resolution: -> wont fix status: open -> closed Tracker <[EMAIL PROTECTED]> ___ P

[issue2158] confusing exception when opening a filename with nonprintable characters

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: AFAIK this is fixed in the trunk, you'll get a message that the filename or mode is incorrect (but not which one). That's the best open() can do because the underlying C API doesn't give enough information to decide which argument is unacc

[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: 16 tests failed: test_ctypes test_datetime test_deque test_enumerate test_heapq test_itertools test_list test_mutants test_operator test_pickle test_pickletools test_random test_richcmp test_set test_trace test_userlist ___

[issue1602133] non-framework built python fails to define environ properly

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: The patch looks sane, I'm assigning the bug to myself to help me remember that I should take a closer look. -- assignee: jackjansen -> ronaldoussoren nosy: +ronaldoussoren _ Tracker <[EMAIL PROTE

[issue1770190] platform.mac_ver() returning incorrect patch version

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: See also http://www.cocoabuilder.com/archive/message/cocoa/2006/11/18/174677 The attached patch should fix this issue. Jack, could you please check if the patch is sane? The patch works on 10.5.2, I haven't checked on 10.4 yet (I'll have t

[issue2735] range: lean and mean

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Does this/will this supercede http://bugs.python.org/issue2690 ? -- nosy: +tjreedy __ Tracker <[EMAIL PROTECTED]> __ _

[issue1666952] terminalcommand doesn't work under Darwin

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: I cannot reproduce this issue with Python 2.5 or 2.6. There was a bug in terminalcommand when running on Leopard, I fixed that earlier tonight. -- resolution: -> works for me status: open -> pending __

[issue835790] MacPython builds with DESTROOT need fixup

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: This is definitly not an issue anymore, the official releases get build with a DESTROOT and don't suffer from this problem. -- resolution: -> fixed status: open -> closed Tracker <[EMAIL PROTEC

[issue1621111] IDLE crashes on OS X 10.4 when "Preferences" selected

2008-05-02 Thread Ronald Oussoren
Changes by Ronald Oussoren <[EMAIL PROTECTED]>: -- assignee: ronaldoussoren -> _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list

[issue1087737] Mac: make frameworkinstall skips docs, scripts

2008-05-02 Thread Ronald Oussoren
Changes by Ronald Oussoren <[EMAIL PROTECTED]>: -- status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailin

[issue984242] Support "hybrid" framework/unix style

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: I don't think this issue is relevant at this point in time. Apple now ships a regular framework and furthermore I don't think this build style is useful to have. -- nosy: +ronaldoussoren resolution: -> rejected status: open -> clo

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: I like the two changes: jump to command line and scroll previous command lines without having to search back up through the output. Just don't imitate the Windows terminal too closely with its inability to just select previous output (without

[issue2520] macerrors.py cannot be imported due to non-ascii characters in comments

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: Fixed in revision 62651 (trunk) and 62650 (2.5 branch) The fix doesn't use the attached patch, but explicitly sets a file encoding for this module. -- nosy: +ronaldoussoren resolution: -> fixed status: open -> closed

[issue1905] PythonLauncher not working correctly on OS X 10.5/Leopad

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: Python Launcher assumes that Terminal.app has a specific creator code, that's no longer true in Leopard. The code in doscript.m was already rather hackish, I've replaced it by a more modern way to use AppleEvents. I've committed a fix in r

[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: Show me which tests break and I'll decide. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread david reid
david reid <[EMAIL PROTECTED]> added the comment: The patch is inline. There's not much to it :-) Agree with your suggestion to avoid calling lower() twice. __ Tracker <[EMAIL PROTECTED]> __ _

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Function is about 2/3rds down in urllib2. Note 1: hashlib checks upper and lower case versions of names. So this seems like reasonable request. Note 2: I would start hashlib.__get_builtin_constructor(name): with 'name = name.lower()' and rep

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy
Changes by Terry J. Reedy <[EMAIL PROTECTED]>: __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: Whoops, just checked the title. Function is about 2/3rds down in urllib2. comments still apply Note 4: I consider 'name = lambda ...' inferior to 'def name...' but I am not the one who will edit this. __ Trac

[issue2743] Fix module output for warnings from the interpreter

2008-05-02 Thread Brett Cannon
New submission from Brett Cannon <[EMAIL PROTECTED]>: In svn, the module name is lost if you raise an exception at the interpreter:: >>> import warnings >>> warnings.warn("foo") :1: UserWarning: foo It should be:: >>> import warnings >>> warnings.warn("foo") __main__:1: UserWarning: foo

[issue2349] Py3K warn against assigning to True/False

2008-05-02 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- dependencies: +make compiling struct be passed around to all ast helpers __ Tracker <[EMAIL PROTECTED]> __

[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Are you sure you want to remove len of range? It breaks quite a few tests. __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2695] Ignore case when checking algorithm in urllib2

2008-05-02 Thread Terry J. Reedy
Terry J. Reedy <[EMAIL PROTECTED]> added the comment: What module is this in that you want to change? Note 1: hashlib checks upper and lower case versions of names. So this seems like reasonable request. Note 2: I would start hashlib.__get_builtin_constructor(name): with 'name = name.lower()' a

[issue2735] range: lean and mean

2008-05-02 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Attaching a new patch from reviews. __len__ has been removed. I'll post it to Guido's Codereview tool when it's active (I'm getting 500 server errors when I try to upload.) Added file: http://bugs.python.org/file10172/range_lean_and_mean3.

[issue2507] Exception state lives too long in 3.0

2008-05-02 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: A new patch with just an updated comment in ceval.c. Added file: http://bugs.python.org/file10171/exc_cleanup3.patch __ Tracker <[EMAIL PROTECTED]> __

[issue2573] Can't change the framework name on OS X builds

2008-05-02 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2573] Can't change the framework name on OS X builds

2008-05-02 Thread Ronald Oussoren
Ronald Oussoren <[EMAIL PROTECTED]> added the comment: This functionality is enabled as of revision 62644 The actual patch is slightly more involved than the attached patches, the patch forgot to add a variable to Mac/Makefile.in and doesn't patch Mac/IDLE/Makefile.in at all. I've also made t

[issue2742] example code does not work

2008-05-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: What operating system are you using? It could be a bug in the operating system as well. -- nosy: +loewis __ Tracker <[EMAIL PROTECTED]> _

[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I fail to see the issue. There are many other address families supported as well, such as AF_BLUETOOTH, AF_PACKET, AF_TIPC, and AF_NETLINK, depending on the system. The documentation just lists some examples. -- nosy: +loewis __

[issue2735] range: lean and mean

2008-05-02 Thread Guido van Rossum
Guido van Rossum <[EMAIL PROTECTED]> added the comment: See also comments published on the code review site: http://codereview.appspot.com/602 __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2742] example code does not work

2008-05-02 Thread Mike MacFaden
New submission from Mike MacFaden <[EMAIL PROTECTED]>: the url http://docs.python.org/lib/socket-example.html gives an example that uses socket.getaddrinfo that has this code HOST='' ... for res in socket.getaddrinfo(HOST, PORT, socket.AF_UNSPEC, socket.SOCK_STREAM, 0, socket.AI

[issue2741] documentation -- do serversockets work with ipv6

2008-05-02 Thread Mike MacFaden
New submission from Mike MacFaden <[EMAIL PROTECTED]>: the url http://docs.python.org/lib/node633.html states 1) address_family The family of protocols to which the server's socket belongs. socket.AF_INET and socket.AF_UNIX are two possible values. would suggest including s

[issue2740] Cmd module doesn't support readline completion on OSX Leopard

2008-05-02 Thread Ruben Kerkhof
New submission from Ruben Kerkhof <[EMAIL PROTECTED]>: Hi, Leopard ships with libedit, which is almost the same as readline, but has another way to configure completion keys. To enable tab completion you have to use rl.parse_and_bind("bind ^I complete") instead of rl.parse_and_bind("bind ^I r

[issue2728] Failing decimal doctest

2008-05-02 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: Commited, r62638. Thank you both! -- resolution: -> accepted status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ __

[issue2735] range: lean and mean

2008-05-02 Thread Alexander Belopolsky
Alexander Belopolsky <[EMAIL PROTECTED]> added the comment: One more nit: you don't need to zero out trailing range_as_sequence members explicitly. static PySequenceMethods range_as_sequence = { (lenfunc)range_length, /* sq_length */ }; should be enough. __

[issue2722] os.getcwd fails for long path names on linux

2008-05-02 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: -- keywords: +easy nosy: +gregory.p.smith priority: -> normal __ Tracker <[EMAIL PROTECTED]> __ __

[issue2632] performance problem in socket._fileobject.read

2008-05-02 Thread Gregory P. Smith
Changes by Gregory P. Smith <[EMAIL PROTECTED]>: -- priority: critical -> release blocker __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list

[issue2632] performance problem in socket._fileobject.read

2008-05-02 Thread Gregory P. Smith
Gregory P. Smith <[EMAIL PROTECTED]> added the comment: I fixed the min vs max use that Ralf noted and have submitted this as r62627. all tests pass for me but I believe it deserves a wider audience and testing outside of just the test suite. could those who reported the original problems (both

[issue2733] mmap resize fails on anonymous memory (Windows)

2008-05-02 Thread Trent Nelson
Changes by Trent Nelson <[EMAIL PROTECTED]>: -- nosy: +Trent.Nelson __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscr

[issue2733] mmap resize fails on anonymous memory (Windows)

2008-05-02 Thread Kathryn M Kowalski
Kathryn M Kowalski <[EMAIL PROTECTED]> added the comment: sorry Added file: http://bugs.python.org/file10170/testofResize.py.txt __ Tracker <[EMAIL PROTECTED]> __ _