[issue6744] calling kevent repr raises a TypeError

2009-08-24 Thread Jessica McKellar
Jessica McKellar added the comment: Added a tiny example to generate the error, repeated here. Just: from select import kevent if __name__ == '__main__': ev = kevent(1) print(repr(ev)) -- Added file: http://bugs.python.org/file14781/kevent-repr-test.py ___

[issue5851] Add a stream parameter to gc.set_debug

2009-08-24 Thread Nicolas Dumazet
Nicolas Dumazet added the comment: Sure, I'd be happy to contribute a patch. I uploaded a patch on Rietveld, at http://codereview.appspot.com/110078 Let me know how it looks. -- ___ Python tracker ___

[issue6779] NotImplementedError on for statement

2009-08-24 Thread R. David Murray
R. David Murray added the comment: The bug tracker is not a place to get help debugging your code. Your code is not a complete example, and is doing odd things with try/except and the printing of errors which may well be masking what is really going on, so I can't begin to evaluate whether or n

[issue6778] False positives given through bisect module (binary search)

2009-08-24 Thread R. David Murray
R. David Murray added the comment: It's not a match, it's an insertion point. The bisect module doesn't have a method that can be used directly to determine if an item is not in the list. Take a careful look at the example, especially the second part. If you think it should have such a method

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-24 Thread kee nethery
kee nethery added the comment: No problem. I can parse text in an automated manner very easily. So if you need someone to take the doc files and add in wiki URLs for each section, I can do that. Happy to volunteer. Worst case is you look at what I do and reject it. Best case ... I actually

[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: I'll add a bit of explanation as well: > I have to add this ugly loop : > > for key in keys: >d[key] = [] With a defaultdict, you don't -- you just use d[key], and if not already present, the entry will be initialized with an empty list. > I really think

[issue6780] startswith error message is incomplete

2009-08-24 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : The `startswith` method accepts both string and tuple (not list). Yet the error message suggests that it expects (only) a character buffer object. In Python-2.6: >>> "foo".startswith(['fo', 'df']) Traceback (most recent call last): File "", line 1, i

[issue6779] NotImplementedError on for statement

2009-08-24 Thread Samuel Quiring
New submission from Samuel Quiring : I have the following for statement: lenc = len(children) for ic in range(lenc): print "ic: ", ic child = children[ic] print " -", ic, child.__class__.__name__

[issue6778] False positives given through bisect module (binary search)

2009-08-24 Thread kaashif
New submission from kaashif : I tried Python's bisect module on a large word list (words.txt contained in http://www.greenteapress.com/thinkpython/swampy/swampy.1.1.zip) If I search for something like 'musefully', 'museful' will come up as a match. Maybe that's a feature... but seems to me like

[issue4879] Allow buffering for HTTPResponse

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Already reverted in r74522 | gregory.p.smith | 2009-08-18 22:33:48 -0700 (Tue, 18 Aug 2009) for that reason. -- ___ Python tracker ___ _

[issue6749] Support for encrypted zipfiles when interpreting zipfile as script

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: The people who do not know how to get over that wall would be equally stumped if presented with tokenized .pyc or .pyo files. No fake encryption needed. -- ___ Python tracker __

[issue6777] Python 2.6 tutorial still recommends using Exception.message attribute

2009-08-24 Thread Christoph Zwerschke
New submission from Christoph Zwerschke : The Python 2.6.2 tutorial says at the end of secton 8.3 (http://docs.python.org/tutorial/errors.html#handling-exceptions): "But use of .args is discouraged. Instead, the preferred use is to pass a single argument to an exception (which can be a tuple if

[issue6721] Locks in python standard library should be sanitized on fork

2009-08-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've started a project to patch this and similar messes up for Python 2.4 and later here: http://code.google.com/p/python-atfork/ I'd like to take ideas or implementations from that when possible for future use in the python standard library. -- _

[issue6770] PDF download links of docs for 3.1.1 are broken

2009-08-24 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6770] PDF download links of docs for 3.1.1 are broken

2009-08-24 Thread Radiant
Radiant added the comment: The files in question are accessible at this time. I can only hope that the issue doesn't recur. -- status: open -> closed ___ Python tracker ___ _

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Mike Cowperthwaite
Mike Cowperthwaite added the comment: Very good. Thank you, Georg. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: True. Fixed in r74550. The changes will be ported to all maintained branches soon. -- ___ Python tracker ___

[issue6776] A few tests are failing when zlib is not supported

2009-08-24 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Mike Cowperthwaite
Mike Cowperthwaite added the comment: Thanks, but the bug requested a similar change for "rmdir" as well. Is it not possible to backport the change to the 2.x branch? -- ___ Python tracker

[issue6660] Desire python.org documentation link to user contribution wiki (per function)

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: At the moment, I still have to review and merge the SoC branch, so don't expect visible changes to happen within a few weeks. -- ___ Python tracker __

[issue6677] Place the term "delete" within the documentation for os.remove() and os.rmdir()

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r74548. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue6718] ValueError in 21.17.4.2. SocketServer.UDPServer Example

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74547. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6725] Inconsistency in Documentation: "Name Spaces" vs "Namespaces"

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74546. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6026] test_(zipfile|zipimport|gzip|distutils|sqlite) fail if zlib is not available

2009-08-24 Thread Nicolas Dumazet
Nicolas Dumazet added the comment: Great, I don't know how I missed that bug. It looks really similar to the patch I had written at http://codereview.appspot.com/111041 So your patch looks correct to me, and does solve the issue locally. -- nosy: +nicdumz

[issue6772] Missing alias utf-8 in Standard Encodings list.

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: I made a compromise in r74545: 'utf-8' is now used as an example to demonstrate the statement Marc-Andre cited. -- ___ Python tracker ___

[issue6775] readme: correct python.org/community/lists url

2009-08-24 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74544. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6776] A few tests are failing when zlib is not supported

2009-08-24 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of issue 6026, where patch activity has already occurred. Thanks for working on this, and please review that case and see if all of the issues you found are addressed there. -- nosy: +r.david.murray priority: -> normal resolution:

[issue6776] A few tests are failing when zlib is not supported

2009-08-24 Thread Nicolas Dumazet
New submission from Nicolas Dumazet : test_distutils, test_zipfile, test_gzip and test_zimport are not completely safe when zlib module is not available. I've uploaded a patch on Rietveld which solves the issue here: http://codereview.appspot.com/111041 Those are my first steps with Rietveld, pl

[issue6761] Class calling

2009-08-24 Thread R. David Murray
R. David Murray added the comment: For some reason the 3.2 docs don't contain the sentence you reference, but they do have the same mistake in section 3.4.4. Which is even more of a mistake in 3.x, since there are only new style classes there. -- versions: +Python 2.7, Python 3.1, Pyth

[issue6761] Class calling

2009-08-24 Thread R. David Murray
R. David Murray added the comment: FYI, all special methods are (now) looked up on the type for new style classes. Your suggested rewrite makes things more confusing, IMO (partly because to make it accurate it would need to be something like type(x).__call__(x, *args, **kw), which doesn't reall

[issue6761] Class calling

2009-08-24 Thread Stephen Fairchild
Stephen Fairchild added the comment: On further reading it seems my objections only apply to new style classes. -- ___ Python tracker ___

[issue6765] math.log, log10 inconsistency

2009-08-24 Thread Tim Peters
Tim Peters added the comment: I wasn't keen to add the 2-argument log() extension either. However, I bet it would help if the docs for that were changed to explain that log(x, base) is just a convenient shorthand for computing log(x)/log(base), and therefore may be a little less accurate than a

[issue6765] math.log, log10 inconsistency

2009-08-24 Thread Mark Dickinson
Mark Dickinson added the comment: > If Python functions are inconsistent then I think they should either be > made consistent, or if that's not possible they should be clearly > documented as being inconsistent. I think 'inconsistent' is a bit strong for what happens here. In my view, the ex

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-24 Thread Vlastimil Brom
Vlastimil Brom added the comment: I'd like to add some detail to the previous msg91473 The current behaviour of the character properties looks a bit surprising sometimes: >>> >>> regex.findall(ur"\p{UppercaseLetter}", u"QW\p{UppercaseLetter}as") [u'Q', u'W', u'U', u'L'] >>> regex.findall(ur"

[issue6499] Can't import xmlrpclib, DocXMLRPCServer and SimpleXMLRPCServer when zlib is not available

2009-08-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Any news on this? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2009-08-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Thanks, that's a silly bug. fixed in revision 74543. Perhaps we need a https regression test in the test suite. -- ___ Python tracker _

[issue4879] Allow buffering for HTTPResponse

2009-08-24 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Gregory, please revert your change (74463). There is no "extra data" after the response, since such data can only be generated as a result of a new "request". Your change has disabled the HTTP/1.1 keepalive capability, causing test failurres in xmlrpc

[issue6775] readme: correct python.org/community/lists url

2009-08-24 Thread Nicolas Dumazet
New submission from Nicolas Dumazet : README shows http://www.python.org/community/lists.html as an URL for mailing list details, but it should be http://www.python.org/community/lists/ Attaching a patch. -- assignee: georg.brandl components: Documentation files: readme-url-mls.patch ke

[issue6774] socket.shudown documentation: on some platforms, closing one half closes the other half

2009-08-24 Thread Nicolas Dumazet
New submission from Nicolas Dumazet : I had a bad time understanding what happens in Mac OS X after a shutdown call: after calling shutdown(SH_WR) on side A, a corresponding shutdown(SH_RD) on side B would raise a socket.error: socket is not connected. It is quite surprising when you are used to

[issue6769] in xmlrpclib.py: NameError: global name 'HTTPSConnection' is not defined

2009-08-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Kristjan, can you take a look? -- assignee: -> krisvale nosy: +loewis ___ Python tracker ___ ___ P

[issue6773] subprocess issue on Win 7 x64

2009-08-24 Thread Piotr Foltyn
New submission from Piotr Foltyn : The sample code presented below produces error (screenshot available in attachment) on Windows 7 RC x64 with latest version of Python 2.6 installed. Both 32bit and 64bit versions of Python 2.6 are affected by this issue. Python 3 executes this code flawlessly

[issue1117601] os.path.exists returns false negatives in MAC environments.

2009-08-24 Thread Colin Alston
Colin Alston added the comment: I also hit upon this issue and IMHO returning False in a "permission denied" scenario is less than obvious behaviour. It also means I have no way to catch this edge case in my own code immediately, I have to implement far larger logic to check now if False means

[issue6767] Python as zip package

2009-08-24 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ah, for that, run "msiexec /a pythonXY.msi TARGETDIR=K:\". This just unpacks the MSI file, without installing anything. See http://www.python.org/download/releases/2.4/msi/ -- ___ Python tracker

[issue6005] Bug in socket example

2009-08-24 Thread Nicolas Dumazet
Nicolas Dumazet added the comment: I'm including a patch which replaces send by sendall in the examples in both socket and socketserver. -- keywords: +patch nosy: +nicdumz Added file: http://bugs.python.org/file14776/socket.patch ___ Python tracker

[issue6772] Missing alias utf-8 in Standard Encodings list.

2009-08-24 Thread Mintaka
Mintaka added the comment: True, but this one is much more used then others. So frequently, that look like other names are aliases. Maybe it is good reason to mention it explicitly. -- ___ Python tracker __

[issue6772] Missing alias utf-8 in Standard Encodings list.

2009-08-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: >From the quoted page: """ Notice that spelling alternatives that only differ in case or use a hyphen instead of an underscore are also valid aliases. """ -- nosy: +lemburg resolution: -> invalid status: open -> closed ___

[issue6772] Missing alias utf-8 in Standard Encodings list.

2009-08-24 Thread Mintaka
New submission from Mintaka : On page http://docs.python.org/dev/3.0/library/codecs.html#standard-encodings (and on the pages for older versions too) in the table with review, is missing higly used alias "utf-8" On that row is only: Codec Aliases Languages utf_8 U8, UTF, utf8 all

[issue6771] documentation/implementation error

2009-08-24 Thread steve21
New submission from steve21 : The documentation and implementation disagree. Documentation: "Module curses.wrapper Convenience function to ensure proper terminal setup and resetting on application entry and exit. ... 15.10. curses.wrapper — Terminal handler for curses programs This module