[issue7226] IDLE right-clicks don't work on Mac OS 10.5

2010-11-20 Thread Ned Deily
Ned Deily added the comment: Surprisingly, this had apparently not been reported before. Thanks for doing so! Recently, some one else reported the problem on one of the newsgroups. Overlooking this issue, I unnecessarily opened Issue10404 for it and supplied a patch there. -- nosy

[issue10480] cgi.py should document the need for binary stdin/stdout

2010-11-20 Thread Glenn Linderman
Changes by Glenn Linderman : -- assignee: -> d...@python components: +Documentation nosy: +d...@python type: -> behavior ___ Python tracker ___

[issue10479] cgitb.py should assume a binary stream for output

2010-11-20 Thread Glenn Linderman
Changes by Glenn Linderman : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10487] http.server - doesn't process Status: header from CGI scripts

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : While it is documented that http.server (and Python 2's CGIHTTPServer) do not process the status header, and limit the usefulness of CGI scripts as a result, that doesn't make it less of a bug, just a documented bug. But I guess that it might have to be c

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Yeah, maybe your is more readable. I suppose that failure was due to some missing arguments when calling compileall (line 225). The attached patch should fix this issue, but currently I have no Windows machines where to test. -- Added file: http://bugs

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2010-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: Antoine, I was proposing that the Windows installation should have a folder where OpenSSL looks for certificates, and that users put trusted certificates into that folder. These should be the ones that set_default_verify_paths will use. Unfortunately, I don

[issue10486] http.server doesn't set all CGI environment variables

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : HTTP_HOST HTTP_PORT REQUEST_URI are variables that my CGI scripts use, but which are not available from http.server or CGIHTTPServer (until I added them). There may be more standard variables that are not set, I didn't attempt to enumerate the whole list.

[issue10485] http.server fails when query string contains addition '?' characters

2010-11-20 Thread Glenn Linderman
Changes by Glenn Linderman : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10485] http.server fails when query string contains addition '?' characters

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : http.server on Python 3 and CGIHTTPServer on Python 2 both contain the same code with the same bug. In run_cgi, rest.rfind('?') is used to separate the path from the query string. However, it should be rest.find('?') as the query string starts with '?' b

[issue10484] http.server.is_cgi fails to handle CGI URLs containing PATH_INFO

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : is_cgi doesn't properly handle PATH_INFO parts of the path. The Python2.x CGIHTTPServer.py had this right, but the introduction and use of _url_collapse_path_split broke it. _url_collapse_path_split splits the URL into a two parts, the second part is gua

[issue10483] http.server - what is executable on Windows

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : The def executable for CGIHTTPRequestHandler is simply wrong on Windows. The Unix executable bits do not apply. Yet it is not clear what to use instead. One could check the extension against PATHEXT, perhaps, but Windows doesn't limit itself to that exce

[issue1745035] DoS smtpd vulnerability

2010-11-20 Thread Savio Sena
Savio Sena added the comment: The definite (and only?) solution would be to implement 'Message Size Declaration[1]' Service Extension[2]. We can limit the size of commands and text lines, but not the message size as a whole[3]. RFC1870 was created exactly with the purpose of solving DoS issue

[issue2001] Pydoc interactive browsing enhancement

2010-11-20 Thread Ron Adam
Ron Adam added the comment: Here is the latest patch with tests. In order to test the html pages I separated out the URL handler. So now we have three new functions. pydoc._start_server(urlhandler, port) pydoc._url_handler(url, content_type="text/html") pydoc.browse(port=0, *, op

[issue6135] subprocess seems to use local 8-bit encoding and gives no choice

2010-11-20 Thread Ned Deily
Changes by Ned Deily : -- nosy: +haypo -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-20 Thread ProgVal
ProgVal added the comment: I also have the bug with Python 2.7.1rc1 (from Debian 'Experimental' repo) -- nosy: +ProgVal versions: +Python 2.6 -Python 3.1, Python 3.2 ___ Python tracker

[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-11-20 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file18285/issue5622.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5622] wrong error from curses.wrapper if curses initialization fails

2010-11-20 Thread Ned Deily
Changes by Ned Deily : -- keywords: +easy nosy: -BreamoreBoy stage: unit test needed -> patch review versions: -Python 2.6 ___ Python tracker ___ ___

[issue10482] subprocess and deadlock avoidance

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : .communicate is a nice API for programs that produce little output, and can be buffered. While that may cover a wide range of uses, it doesn't cover launching CGI programs, such as is done in http.server. Now there are nice warnings about that issue in t

[issue10481] subprocess PIPEs are byte streams

2010-11-20 Thread Glenn Linderman
Glenn Linderman added the comment: Maybe it should also be mentioned that p.stdout and p.stderr and p.stdin, when set to be PIPEs, are also byte streams. Of course that is the reason that communicate accepts and produces byte streams. -- ___ Pytho

[issue10481] subprocess PIPEs are byte streams

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : While http://bugs.python.org/issue2683 did clarify the fact that the .communicate API takes a byte stream as input, it is easy to miss the implication. Because Python programs start up with stdin as a text stream, it might be good to point out that some a

[issue10480] cgi.py should document the need for binary stdin/stdout

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : CGI is a bytestream protocol. Python assumes a text mode encoding for stdin and stdout, this is inappropriate for the CGI interface. CGI should provide an API to "do the right thing" to make stdin and stout binary mode interfaces (including mscvrt setting

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-20 Thread Brian Quinlan
Brian Quinlan added the comment: I think that using the number of CPUs for max_workers makes sense for you but won't for most users. So I wouldn't make it a default. -- ___ Python tracker

[issue10479] cgitb.py should assume a binary stream for output

2010-11-20 Thread Glenn Linderman
New submission from Glenn Linderman : The CGI interface is a binary stream, because it is pumped directly to/from the HTTP protocol, which is a binary stream. Hence, cgitb.py should produce binary output. Presently, it produces text output. When one sets stdout to a binary stream, and then c

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2010-11-20 Thread Glenn Linderman
Glenn Linderman added the comment: Regarding http://bugs.python.org/issue4953#msg91444 POST with multipart/form-data encoding can use UTF-8, other stuff is restricted to ASCII! >From http://www.w3.org/TR/html401/interact/forms.html: Note. The "get" method restricts form data set values to ASCI

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2010-11-20 Thread nh2
nh2 added the comment: I think this is still an issue. If I register signal.signal(signal.SIGINT, handler) in the main thread, I get a race between - only the main thread receives the signal (everything is fine) - both the main thread and currently running threads receive the signal => the ha

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the reply Martin. Tarek has pronounced in favor of this change, so I will commit it tomorrow. -- assignee: tarek -> eric.araujo components: +Distutils2 resolution: -> accepted status: open -> pending versions: +3rd party, Python 2.7, Python 3

[issue9199] distutils upload command crashes when displaying server response

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Jesús: There are a lot of literal \n in the current code, so I will assume that they work for now and change them only if there is a bug report. Thanks for noticing nonetheless. -- ___ Python tracker

[issue10478] Ctrl-C locks up the interpreter

2010-11-20 Thread Ilya Sandler
New submission from Ilya Sandler : The following program is misbehaving with python3.2 import signal, time def sighandler( arg1, arg2): print("got sigint");assert 0 signal.signal( signal.SIGINT, sighandler) for i in range(100): print(i) I'd expect Ctrl-C to terminate the prog

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: I hadn’t seen your patch Michele. I find mine more readable: http://pastealacon.com/26257 . That was just the easy part though; do you want to write a test? -- ___ Python tracker

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: One buildbot also shows a bug in quiet or test_quiet: Traceback (most recent call last): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-windows\build\lib\test\test_compileall.py", line 227, in test_quiet self.assertTrue(len(noise) > len(quiet)) AssertionErr

[issue809163] Can't add files with spaces

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Looks good. You’ll want to use assertEqual here: self.assertTrue(1, len(file_list.files)) Do you want to patch filelist.py now? -- ___ Python tracker _

[issue10220] Make generator state easier to introspect

2010-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: Committed in r86633. I added the missing docs changes, and tweaked the tests a little bit: - added a helper method to retrieve the generator state in the test case - this allowed test_running to be simplified a bit - added an explicit test for the CREATED->CLOSED

[issue10362] AttributeError: addinfourl instance has no attribute 'tell'

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: 2.6 only gets security fixes. Can you reproduce the bug with current versions? -- nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker ___

[issue10405] IDLE breakpoint facility undocumented

2010-11-20 Thread Ned Deily
Ned Deily added the comment: I'd rather see the wording come from more experienced users of IDLE and on other platforms. -- ___ Python tracker ___ _

[issue10369] tarfile requires an actual file on disc; a file-like object is insufficient

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10370] py3 readlines() reports wrong offset for UnicodeDecodeError

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8754] ImportError: quote bad module name in message

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Just for fun, I tried using my tiny understanding of C to write a patch. I am attaching my current result, which passes the test suite except for test_unittest: FAIL: test_loadTestsFromName__unknown_module_name (unittest.test.test_loader.Test_TestLoader) --

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-11-20 Thread Ned Deily
Ned Deily added the comment: IMO, it's not s behavior change, it's a serious bug in the OS X version as released in the python.org installer. Important functionality is broken. -- ___ Python tracker

[issue10404] IDLE on OS X popup menus do not work: cannot set/clear breakpoints

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Platform consistency is a worthy criterion for changes, but I suspect such a behavior change can’t make it into stable branches. -- nosy: +benjamin.peterson, eric.araujo ___ Python tracker

[issue9182] document “--” as a way to disti nguish option w/ narg='+' from positional argument in arg parse

2010-11-20 Thread Steven Bethard
Steven Bethard added the comment: Sorry, I think I confused you, please post that patch here. This issue is for documenting the workarounds, issue 9338 is for actually solving the problem. I glanced at your patch on that issue, and it looks basically okay, though I'd like to see a few more te

[issue10405] IDLE breakpoint facility undocumented

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Can you propose a patch, as a diff or even plain English in a reply? -- nosy: +eric.araujo ___ Python tracker ___

[issue10406] IDLE 2.7 on OS X does not enable Rstrip extension by default

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: If the release manager agrees, I think the change is okay. -- nosy: +benjamin.peterson, eric.araujo ___ Python tracker ___ ___

[issue10445] _ast py3k : add lineno back to "args" node

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue10470] python -m unittest ought to default to discovery

2010-11-20 Thread Duncan Findlay
Changes by Duncan Findlay : -- nosy: +duncf ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9312] Fix usage of :option: markup in stdlib ReST docs

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the review. I agree and committed changes in r86632. The problem with :option:`-c` is probably that Sphinx wants to find a “.. cmdoption:: -c” joined with the latest program directive it has seen, and thus can’t find the -c defined with a previous pr

[issue7858] os.utime(file, (0, 0, )) fails on on vfat, but doesn't fail immediately

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: win_utime.patch does not apply cleanly on the py3k branch. Adapted, as in the attached win_utime_updated.patch, the solution does fix the problem. I have not added a test because I don't know how to deal with the fat32 requirement in order to cause failure,

[issue10424] better error message from argparse when positionals missing

2010-11-20 Thread Steven Bethard
Steven Bethard added the comment: Yeah a new test class is fine. And I checked the patch and it looks okay to me. My first thought was also "wait does that really work?" but I see that positionals are all marked as required when appropriate (look for the comment starting with "mark positional

[issue10220] Make generator state easier to introspect

2010-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: I'll actually go with version 1 of the patch as far as the variable initialisation goes. Yes, it is fractionally slower, but you get a maintenance gain from the fact that the enum values are guaranteed to be orthogonal, and this is clearly obvious to the reader

[issue9969] tokenize: add support for tokenizing 'str' objects

2010-11-20 Thread Nick Coghlan
Nick Coghlan added the comment: The idea is bring the API up a level, and also take care of wrapping the file-like object around the source string/byte sequence. -- ___ Python tracker _

[issue7770] sin/cos function in decimal-docs

2010-11-20 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10477] AttributeError: 'NoneType' object has no attribute 'name' (bonenode.name)

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: This is not a bug in Python but in the third-party pyffi project. Please report it to them. -- nosy: +eric.araujo resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue7770] sin/cos function in decimal-docs

2010-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a comment to the docstring. See r86631. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue10477] AttributeError: 'NoneType' object has no attribute 'name' (bonenode.name)

2010-11-20 Thread Drakonnen
New submission from Drakonnen : Trying to import a .nif into Blender, for Oblivion mod work, I get the following error: Blender NIF Scripts 2.5.5 (running on Blender 249, PyFFI 2.1.6) pyffi.toaster:INFO:--- fix_mergeskeletonroots --- pyffi.toaster:INFO: ~~~ NiNode [Scene Root] ~~~ pyffi.toaste

[issue1745035] DoS smtpd vulnerability

2010-11-20 Thread Savio Sena
Changes by Savio Sena : -- nosy: +saviosena ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue7322] Socket timeout can cause file-like readline() method to lose data

2010-11-20 Thread Roy Smith
Roy Smith added the comment: This is kind of ugly. On the one hand, I'm all for adding a check in makefile() to catch it being called on a non-blocking socket. On the other hand, you are correct that a user could change the mode leter. Even if we added checks for this in socket.setblocking(

[issue10441] some stdlib modules need to be updated to handle SSL certificate validation

2010-11-20 Thread david
david added the comment: On 21 November 2010 09:27, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Martin, > >> You misunderstood. I was not proposing that scripts provide a CA >> list, but that users might deploy a CA list into their Python >> installation, which is then pick

[issue10473] Strange behavior for socket.timeout

2010-11-20 Thread Ned Deily
Ned Deily added the comment: As I commented over on Issue7322, I think any such test would be not perfect since I believe the blocking status of the socket could be changed at any time, at least on Unix-y systems. So I'm +0 on whether adding a test in makefile() is worth it, presuming it can

[issue10476] __iter__ on a byte file object using a method to return an iterator

2010-11-20 Thread R. David Murray
R. David Murray added the comment: For the record, I don't find the behavior of __iter__ on a binary file at all confusing. It's the same behavior I see if I open the file in, say, vi. So it is in fact the behavior I expect, and I would be surprised if it didn't work. Whether it is *useful*

[issue7911] unittest.TestCase.longMessage should default to True in Python 3.2

2010-11-20 Thread Mark Roddy
Mark Roddy added the comment: Current patch has grown stale. Attaching a newer one. -- nosy: +MarkRoddy Added file: http://bugs.python.org/file19724/py3k.7911.patch ___ Python tracker _

[issue10473] Strange behavior for socket.timeout

2010-11-20 Thread Roy Smith
Roy Smith added the comment: Thank you for the detailed analysis. That certainly explains what I observed. Would it make sense for socket.makefile() to check to see if the socket is in blocking mode (assuming there is some reliable/portable way to perform this check), and raise some exceptio

[issue969718] BASECFLAGS are not passed to module build line

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> tarek components: +Distutils2 nosy: +eric.araujo versions: +3rd party, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue7322] Socket timeout can cause file-like readline() method to lose data

2010-11-20 Thread Ned Deily
Ned Deily added the comment: This would seem to be an invalid test case. It is specifically documented that socket.makefile does not support this: "The socket must be in blocking mode (it can not have a timeout)". http://docs.python.org/py3k/library/socket.html#socket.socket.makefile I supp

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

2010-11-20 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20101121.zip is a new version of the regex module. The captures didn't work properly with lookarounds or atomic groups. -- Added file: http://bugs.python.org/file19723/issue2636-20101121.zip ___ Python tr

[issue3636] Managing dual 2.x and 3.0 installations on Windows

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: This seems like a normal file association fight, no different than not being able to have both IE and Firefox associated with .html files. #2375 has been rejected, so I don't think it is a relevant superseder. I don't see how this is any different than havin

[issue10473] Strange behavior for socket.timeout

2010-11-20 Thread Ned Deily
Ned Deily added the comment: There is a difference in behavior in the accept() socket call between Linux and BSD systems (including OS X). As documented in the Debian Linux man page for accept(2): "On Linux, the new socket returned by accept() does not inherit file status flags such as O_NON

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5800] make wsgiref.headers.Headers accept empty constructor

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: FTR, note that “svn diff file1 file2...” will give you one file for many edits. It’s easier to review and apply. Regarding the change, I don’t know if wsgiref 3.2 has to be compatible with Python 2.1, which would exclude using the ternary operation. The change

[issue7094] Add alternate float formatting styles to new-style formatting.

2010-11-20 Thread Eric Smith
Eric Smith added the comment: This is the patch developed today at the DCPython sprint. I have not reviewed it very well. I know that at least: - formatting is not consistent - the docs need reviewing - I want to add more tests - Misc/NEWS and Misc/ACKS need updating But I'm uploading it here

[issue10367] "python setup.py sdist upload --show-response" can fail with "UnboundLocalError: local variable 'result' referenced before assignment"

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: distutils upload command crashes when displaying server response -> ___ Python tracker ___ __

[issue9435] test_distutils fails without zlib

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: This can be kept open as a separate report, since it was caused by the Big Distutils Revert in 3.2. We’ve already discussed how to fix that in private email and IRC thanks to Ezio. Because of compat requirements, we’ll probably have to use if+return instead of

[issue6434] buffer overflow in Zipfile when wrinting more than 2gig file

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: This should be closed as a dup of #1182788 which the OP identified as being the same bug and which is now fixed due to the implementation. of ZIP64. -- nosy: +lambacck ___ Python tracker

[issue6799] mimetypes does not give canonical extension for guess_extension with text/plain

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> mimetypes.guess_extension('text/plain') == '.ksh' ??? title: mimetypes does not give cannonical extension for guess_extension with text/plain -> mimetype

[issue6799] mimetypes does not give cannonical extension for guess_extension with text/plain

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: This is a dup of #1043134 -- nosy: +lambacck ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue9909] request for calendar.dayofyear() function

2010-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: "We already got one, and it's very nice-a" ISTM, this should be done with regular date arithmetic in the datetime module. >>> date(1964, 7, 31) - date(1963, 12, 31) datetime.timedelta(213) I don't see why we need a new function for this or why it would be

[issue10476] __iter__ on a byte file object using a method to return an iterator

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: BufferedIOBase readline and __iter__ has to stay for backwards compatibility (especially with python 2). As for by_bytes(), I suggest you post it to python-ideas. -- nosy: +benjamin.peterson resolution: -> rejected status: open -> closed

[issue10476] __iter__ on a byte file object using a method to return an iterator

2010-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, an idiom I use in Py2.x is: for block in iter(partial(f.read, BLKSIZ), ''): . . . This works with both single bytes at time and multiple bytes at a time. -- nosy: +rhettinger ___ Python tracker

[issue9746] All sequence types support .index and .count

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Patch committed in r86625 (py3k), r86627 (3.1) and r86627 (2.7). Regarding API conformance, I ran this simple test, courtesy of Daniel in msg109784: >>> for cls in str, bytes, bytearray, list, tuple, range: ... print(cls, [method for method in set(dir(collec

[issue10476] __iter__ on a byte file object using a method to return an iterator

2010-11-20 Thread Julian
New submission from Julian : Iterating over a byte file object using __iter__ is rather useless, and a bit confusing perhaps. It'd be nice to propose two things: 1. Having __iter__ raise an exception if the file was opened with the "b" flag. 2. Adding a new by_bytes() method to file objects,

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-20 Thread Mark Roddy
Mark Roddy added the comment: Adding patch for release27-maint branch which implements Raymond's suggested fix which utilizes collections.Counter. Has the same issues addressed with the py3k patch. -- Added file: http://bugs.python.org/file19721/py27.10242.patch ___

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-11-20 Thread Mark Roddy
Mark Roddy added the comment: Adding patch for py3k which implements Raymond's suggested fix which utilizes collections.Counter. Have not changed the name of the assertion method as this seems as though it may be outside the scope of this issue, but I can produce another patch with the nam

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-11-20 Thread Nicolas Joly
New submission from Nicolas Joly : The configure script do hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD, which should be avoided. [...] checking for gcc... gcc checking whether gcc accepts -g... yes [...] checking SO... .so checking LDSHARED... cc -shared checking CCSHARED... -fPIC [.

[issue809163] Can't add files with spaces

2010-11-20 Thread R. David Murray
R. David Murray added the comment: TempdirManager is new, which is why I forgot about it. It works with the buildbots because it is a context manager, so if things go badly the cleanup code is still going to run and delete the cruft. Since the distutils tests are unlikely to hang (which is

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-20 Thread R. David Murray
Changes by R. David Murray : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-20 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch and test. They look good. A doc update is also needed, since the docs are currently written in such a way that buffering the header lines makes the documentation no longer true. Also, send_response_only writes directly to the output str

[issue8647] PyUnicode_GetMax is undocumented

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue9746] All sequence types support .index and .count

2010-11-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Patch is fine. Go ahead and apply. -- nosy: +rhettinger resolution: -> accepted ___ Python tracker ___

[issue10043] UnboundLocalError with local variable set by setattr, caused by code run later

2010-11-20 Thread Eric Smith
Eric Smith added the comment: Closing, as I don't think there's any action item here. -- resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue8647] PyUnicode_GetMax is undocumented

2010-11-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> duplicate superseder: -> Document unicode C-API in reST ___ Python tracker ___ __

[issue8645] PyUnicode_AsEncodedObject is undocumented

2010-11-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> duplicate status: open -> closed superseder: -> Document unicode C-API in reST ___ Python tracker ___ ___

[issue8646] PyUnicode_EncodeDecimal is undocumented

2010-11-20 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> duplicate status: open -> closed superseder: -> Document unicode C-API in reST ___ Python tracker ___ ___

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Chris Lambacher
Chris Lambacher added the comment: Eric, This documentation is "Installing Python Modules" which is focused on Distutils, but presumably we would continue to want such a document and account for both Disutils and Disutils2 (once people start using it). I think my patch addresses the mislead

[issue809163] Can't add files with spaces

2010-11-20 Thread John Keyes
John Keyes added the comment: This patch uses TempdirManager to handle the temporary directory and file creation. -- Added file: http://bugs.python.org/file19718/issue809163v2.diff ___ Python tracker ___

[issue6011] python doesn't build if prefix contains non-ascii characters

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Regarding your fix to copy_script, I will have to ask python-dev about PEP 291 in py3k (i.e., should 3.2 code really be compatible with 2.3?). -- ___ Python tracker _

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Michele Orrù
Michele Orrù added the comment: Sorry. -- Added file: http://bugs.python.org/file19717/issue10453_noargs.patch ___ Python tracker ___ ___

[issue10292] tarinfo should use relative symlinks

2010-11-20 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10453] Add -h/--help option to compileall

2010-11-20 Thread Éric Araujo
Éric Araujo added the comment: Invocation without arguments does not work. I have a fix, I’ll add a test and commit. -- ___ Python tracker ___

[issue10474] range.count returns boolean

2010-11-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: SilentGhost, Benjamin's fix only affect the optimized path when the argument is int or bool. Exotic comparison rules are handled in the else clause. -- nosy: +belopolsky ___ Python tracker

[issue10474] range.count returns boolean

2010-11-20 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/11/20 SilentGhost : > > SilentGhost added the comment: > > Benjamin, the docs say that it's possible to have count more than 1, > depending on comparison rules. If that's the case, I'm afraid your solution > might need to be adjusted. Produce a case

[issue6007] distutils tricks you into thinking you can build extensions with mingw

2010-11-20 Thread Martin v . Löwis
Martin v. Löwis added the comment: The changes look fine to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue10043] UnboundLocalError with local variable set by setattr, caused by code run later

2010-11-20 Thread Cherniavsky Beni
Cherniavsky Beni added the comment: Hi Steven. Please confirm if we can mark the bug closed; if you need farther advice, posting your full code (not just the error case) on comp.lang.python or StackOverflow would be more effective. The documentation is indeed correct but hard to find (you're

  1   2   3   4   >