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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think it's fairly clear what should be considered executable in this context: anything that subprocess.Popen is able to launch (because if is_executable succeeds, this is what will happen to the file). This excludes word files, and also excludes files endi

[issue7367] pkgutil.walk_packages fails on write-only directory in sys.path

2010-11-21 Thread Ned Deily
Changes by Ned Deily : -- keywords: +easy stage: -> needs patch versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mai

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sat, Nov 20, 2010 at 07:09:58PM +, Jeremy Thurgood wrote: > There are two separate things here: the URL and the filesystem path. > The bug is that the fragment and query parameters are stripped in > translate_path(), but are *not* stripped when manipula

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

2010-11-21 Thread Ned Deily
Ned Deily added the comment: I see Issue7995 also addresses the issue of accept sockets inheriting nonblocking status and provides a suggested patch. -- ___ Python tracker ___ _

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-11-21 Thread Ned Deily
Ned Deily added the comment: (See also Issue7322) -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù added the comment: Unittest added. -- Added file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker ___ _

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19646/issue10424.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I reproduce the problem, see the call stack below. The issue is in the io module: the function _bufferedwriter_flush_unlocked() runs with the file mutex already acquired, but it calls PyErr_CheckSignals() which may run any code, including flush() on the

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

2010-11-21 Thread david
david added the comment: Back to the main issue here : So for python3 is it possible to make attempting to use capath(some common ones OR the openssl location capath if this is ok for use) the default(with failure to find a valid capath result in an exception being raised) ? Obviously if cafil

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Consolidating with Issue6864 -- resolution: -> duplicate status: open -> closed superseder: -> IDLE 2.6.1 locks up on Mac OS 10.6 ___ Python tracker __

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

2010-11-21 Thread Daniel Albeseder
Daniel Albeseder added the comment: Steven: From msg121850 I think the last two examples do not need the "--". Since there are no positional arguments, the "--" is not needed. However the following additional cases exist: -x X [X ...] -y Y -- A B # since optionals might come in other order B

[issue809163] Can't add files with spaces

2010-11-21 Thread John Keyes
John Keyes added the comment: Gah! Silly mistake with the assert. What filelist.py patch are you referring to? I've tested this on py3k with no changes to filelist.py. Thanks for your patience. -- Added file: http://bugs.python.org/file19730/issue809163v3.diff __

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

2010-11-21 Thread Daniel Albeseder
Daniel Albeseder added the comment: Added more unit tests for testing the help text as well as the functionality of the "--" separator. -- keywords: +patch Added file: http://bugs.python.org/file19731/issue9182.patch ___ Python tracker

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

2010-11-21 Thread Daniel Albeseder
Changes by Daniel Albeseder : Removed file: http://bugs.python.org/file19731/issue9182.patch ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-11-21 Thread Daniel Albeseder
Changes by Daniel Albeseder : Added file: http://bugs.python.org/file19732/issue9182.patch ___ Python tracker ___ ___ Python-bugs-list mailing

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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > So for python3 is it possible to make attempting to use capath(some > common ones OR the openssl location capath if this is ok for use) the > default(with failure to find a valid capath result in an exception > being raised) ? The default? That would be an i

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

2010-11-21 Thread david
david added the comment: On 21 November 2010 20:50, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >> So for python3 is it possible to make attempting to use capath(some >> common ones OR the openssl location capath if this is ok for use) the >> default(with failure to find a

[issue9574] allow whitespace around central '+' in complex constructor

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a patch (targeting 3.3) for allowing whitespace around the central binary operator; it implements the grammar suggested in msg115163. -- assignee: -> mark.dickinson Added file: http://bugs.python.org/file19733/issue9574.patch _

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

2010-11-21 Thread Michael Foord
Michael Foord added the comment: @Eric No. "python -m unittest discover ..." will still be needed where you want to pass arguments to discovery ("python -m unittest ..." still has a different meaning where you pass arguments). All this will do is give the previously useless "python -m unitte

[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz
Iuri Diniz added the comment: Bug stills on branch http://svn.python.org/projects/python/branches/py3k branch http://svn.python.org/projects/python/branches/release27-maint is OK doing some gdb on 3.2, I have discovered that the problem occurs when trying to dump global Example from module _

[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz
Iuri Diniz added the comment: preliminary gdb backtrace -- Added file: http://bugs.python.org/file19735/backtrace-py3k-8943.txt ___ Python tracker ___ ___

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Duplicate of Issue8447 ? -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-11-21 Thread Michael Foord
Michael Foord added the comment: The test now passes for me on Mac OS X and yes - looks like the same issue as issue 8447. -- resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Simon's patch fix for 3.2 looks good to me - applies cleanly to py3k and tests pass. -- ___ Python tracker ___ _

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: I will take a shot at this now. If there's anything special I should look out for, let me know :) -- nosy: +eli.bendersky ___ Python tracker __

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù added the comment: Ezio reviewed my patch; here there's the new version with some improvements. -- Added file: http://bugs.python.org/file19736/issue10424.patch ___ Python tracker

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù : Removed file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz
Iuri Diniz added the comment: Well, this is a pickle problem or a Interactive console problem? on python 2.7 does not save a type "type" (like Example class is) 2: type->tp_name = 0x58a87c "instance" 2: type->tp_name = 0x590391 "dict" 2: type->tp_name = 0x5943b6 "str" 2: type->tp_name = 0x5943b

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-21 Thread Rafael dos Santos Gonçalves
Changes by Rafael dos Santos Gonçalves : Removed file: http://bugs.python.org/file19699/issue7325.diff ___ Python tracker ___ ___ Python-bugs-l

[issue7325] tempfile.mkdtemp() does not return absolute pathname when relative dir is specified

2010-11-21 Thread Rafael dos Santos Gonçalves
Rafael dos Santos Gonçalves added the comment: You is right, i put this command on test and not the test. thankss -- Added file: http://bugs.python.org/file19737/issue7325.diff ___ Python tracker __

[issue10466] locale.py throws exception on Windows / Non-UTF8 system

2010-11-21 Thread Sibylle Koczian
Sibylle Koczian added the comment: -Ursprüngliche Nachricht- Von: "R. David Murray" Gesendet: 20.11.2010 15:37:28 An: nulla.epist...@web.de Betreff: [issue10466] locale.py throws exception on Windows / Non-UTF8 system > >R. David Murray added the comment: > >unsupported locale setting

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: On Sun, Nov 21, 2010 at 10:37, Senthil Kumaran wrote: > Now, what happens when you type "http://bugs.python.org?10231"; [1] in > your browser? According to this bug report, the server should 301 > redirect it to "http://bugs.python.org/?10231";. If you try thi

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg121903 ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: I'm attaching a patch for unittest/main.py that implements this. However, something is funny with the tests of the unittest module. When the patch is applied and the tests are run through regrtest.py, it complains that sys.path is modified. I'm investigating t

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Grr. Some unintended cut-and-paste duplication there. -- Added file: http://bugs.python.org/file19740/float_builtin_doc.patch ___ Python tracker _

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
Changes by Mark Dickinson : Removed file: http://bugs.python.org/file19739/float_builtin_doc.patch ___ Python tracker ___ ___ Python-bugs-list

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
New submission from Łukasz Langa : I want to sum up all strange things about the behaviour of `__name__`, a special key present in every section of a parser instance. 1. There is a special `__name__` key in every section. 2. Except for the DEFAULTSECT. 3. `__name__` key is set for every section

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Changes by Łukasz Langa : -- nosy: +eric.araujo, fdrake, georg.brandl, michael.foord ___ Python tracker ___ ___ Python-bugs-list maili

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa added the comment: For the record, I wrote about this problem in July on the mailing list [1], there were no replies. [1] http://mail.python.org/pipermail/python-dev/2010-July/102556.html -- ___ Python tracker

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
New submission from Mark Dickinson : The docs for 'float' are outdated, and also not entirely written in English. :-) Here's a patch. -- assignee: d...@python components: Documentation files: float_builtin_doc.patch keywords: patch messages: 121910 nosy: d...@python, mark.dickinson prio

[issue1859] textwrap doesn't linebreak on "\n"

2010-11-21 Thread Georg Brandl
Georg Brandl added the comment: +1 for applying the doc patch. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mail

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Ah yes; good point about __float__. I'll revise. Ezio Melotti also suggested (on #python-dev) that it would be useful to have some examples here. -- nosy: +ezio.melotti ___ Python tracker

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Ezio Melotti
Ezio Melotti added the comment: I would prefer to keep the doc for float() simple, including what it accepts (numbers and strings) and a few examples like ``'1.2'``, ``'.5'``, ``' +3 '``, ``'inf'``, ``'NaN'``. Even if the other information is still valuable, I'm not sure this is the best plac

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch to unittest/test/test_program.py that fixes the sys.path warning in regrtest What happens is that with the new capability added to unittest (running discovery when called as -m without args), a few tests in test_program now cause discovery t

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Ezio: can you suggest a better place for a specification of what float accepts? I think it's necessary (especially for people working on alternative implementations) to have the information *somewhere*. -- ___ Py

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Eric Smith
Eric Smith added the comment: This is clearly an improvement. Do we want mention __float__? -- nosy: +eric.smith ___ Python tracker ___ _

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa added the comment: Patch for the cleanup attached. 47 lines removed, about a half of these were in tests explicitly made to check for these inconsistencies. 4 lines added, all of them are reformattings due to removal of the other lines. Syntax highlighted view of the patch: http:

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Having applications/scripts explicitly opt-in to a default CA > > certificate list would be an option (then making those applications > > break in installations where the default CA list is empty). > > "Errors should never pass silently." > IMHO it is an er

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Submitting a complete patch file for this: 1. Modified Lib/unittest/main.py to implement the change 2. Modified Lib/unittest/test/test_program.py to make the tests pass without warnings from regrtest.py 3. Updated the documentation in Doc/library/unittest.rst 4

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : Removed file: http://bugs.python.org/file19738/unittest.main.diff ___ Python tracker ___ ___ Python-bugs-list maili

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : Removed file: http://bugs.python.org/file19741/unittest.test.test_program.diff ___ Python tracker ___ ___ Python-bu

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg121909 ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- Removed message: http://bugs.python.org/msg121918 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10488] Improve documentation for 'float' built-in.

2010-11-21 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch: - add some examples - mention __float__ - mention that large numeric arguments can result in an OverflowError -- Added file: http://bugs.python.org/file19744/float_builtin_doc_v2.patch ___ Python t

[issue10351] Add autocompletion for keys in dictionaries

2010-11-21 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel : -- nosy: +rbp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-11-21 Thread Roy Smith
Roy Smith added the comment: The answer depends on what the socket module is trying to do. Is the goal simply to provide a pythonic thin wrapper over the underlying OS interfaces without altering their semantics, or to provide a completely homogeneous abstraction? Having attempted the latte

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oh, and a test should be added of course. -- ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7995] On Mac / BSD sockets returned by accept inherit the parent's FD flags

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems to me that it's a reasonable request. There is indeed a bug, since Python uses non-blocking sockets to implement its "timeout" feature, and flags inheritance means Python's view of whether the socket is non-blocking is not in sync with reality on the

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: nh2, your issue looks slightly different. In any case, can you tell us what your system is, and post a simple script to reproduce the issue? -- ___ Python tracker

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa added the comment: Committed in rev 86638. A public API for getting the name of the section from a SectionProxy instance was introduced in 86639. This is useful because you can assing a section proxy to a variable and pass it around: >>> from configparser import SafeConfigParser

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
New submission from And Clover : The `enum_types` function in `MimeTypes.read_windows_registry` tries to `.encode` the results of `EnumKey`, assuming it to be a Unicode string. However, `_winreg.EnumKey` in Python 2.x actually returns a byte string (straight from the ANSI version of the regist

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
Changes by And Clover : Removed file: http://bugs.python.org/file19745/mimetypes-patch2-2.7.patch ___ Python tracker ___ ___ Python-bugs-list

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
Changes by And Clover : Added file: http://bugs.python.org/file19746/mimetypes-patch2-2.7.patch ___ Python tracker ___ ___ Python-bugs-list ma

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

2010-11-21 Thread david
david added the comment: Fine. So if not in the ssl module what about for urllib etc.? -- ___ Python tracker ___ ___ Python-bugs-list

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Fine. > So if not in the ssl module what about for urllib etc.? The same answer really... We can't change default settings without breaking compatibility. -- ___ Python tracker

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -db ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

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

2010-11-21 Thread david
david added the comment: So please close this bug. Apparently making things secure by default is to much to ask. -- ___ Python tracker ___ __

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed this revision 86640. - Even though this is an internal optimization,I don't think back-porting is a good idea, because it changes the behavior of certain methods like send_header and end_headers - Added the Documentation and other test scenario which

[issue10468] Document UnicodeError access functions

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch for Doc/c-api/exceptions.rst Added a new section named "Unicode exceptions", and documented the relevant functions from Include/pyerrors.h -- keywords: +patch Added file: http://bugs.python.org/file19747/issue10468.1.patch __

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

2010-11-21 Thread david
Changes by david : -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: rejected -> stage: needs patch -> status: closed -> open ___ Python tracker ___ ___ Pytho

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

2010-11-21 Thread Steven Bethard
Steven Bethard added the comment: Yeah, sorry, those last two should have had arguments after them. I think we have to stick with the current behavior - otherwise there's no way to do something like -x -A -B, where you want -A and -B to be arguments to -x. (You can get that now with -x -- -A

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 21, 2010 at 12:12:08PM +, Jeremy Thurgood wrote: > I see your point now, but I don't agree with it completely. It seems > reasonable to allow query parameters to specify things like sort > order for a directory listing or have a fragment to focu

[issue10468] Document UnicodeError access functions

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread R. David Murray
R. David Murray added the comment: Senthil, I didn't clearly express my concern about send_response_only. It doesn't look to me like, with buffering in place, that it *should* write directly, it looks to me like it should write to the buffer. Consider specifically the fact that send_respons

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Apologies, I had misread your message: I thought the keybinding was wrong but working. Your fix should be committed. -- ___ Python tracker ___ _

[issue1745035] DoS smtpd vulnerability

2010-11-21 Thread Henrique Bastos
Changes by Henrique Bastos : -- nosy: +henriquebastos ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks. Do you want to work on a patch? We need to had a test to reproduce the error and then fix the code. -- nosy: +orsenthil stage: -> needs patch type: -> behavior versions: +Python 3.1, Python 3.2 -Python 2.6

[issue8525] Small enhancement to help()

2010-11-21 Thread Rodolpho Eckhardt
Rodolpho Eckhardt added the comment: Migrated the patch to the 3.x trunk and added three tests. -- keywords: +patch nosy: +Rodolpho.Eckhardt, henriquebastos Added file: http://bugs.python.org/file19748/help_8525.patch ___ Python tracker

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Tarsis Azevedo
Tarsis Azevedo added the comment: Hi Doug, I catched the IOError exception and used the error function of ArgumentParser class to return a beautful error message. -- keywords: +patch nosy: +Tarsis.Azevedo Added file: http://bugs.python.org/file19749/issue9509.diff ___

[issue969718] BASECFLAGS are not passed to module build line

2010-11-21 Thread Chris Lambacher
Chris Lambacher added the comment: I am attaching a preliminary patch to allow override of $(OPT). I am not sure this is sufficient, but am wary of breaking packages that depend on the existing behaviour. The logic indeed seems wrong, but maybe this is something that has to go in distutils2

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: 2.5 and 2.6 don’t get bug fixes anymore, only security fixes. If you want to try to fix the code, there are some guidelines at http://www.python.org/dev/patches/ -- ___ Python tracker

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Doug Hellmann
Doug Hellmann added the comment: Hi, Tarsis, That patch looks good to me. Thanks! Doug -- ___ Python tracker ___ ___ Python-bugs-lis

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: On Sun, Nov 21, 2010 at 03:15:06PM +, R. David Murray wrote: > Senthil, I didn't clearly express my concern about > send_response_only. It doesn't look to me like, with buffering in > place, that it *should* write directly, it looks to me like it > should

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

2010-11-21 Thread ProgVal
ProgVal added the comment: Same result on all tested versions (2.5 -> 2.7) : -- import urllib2 import tarfile tarfile.open(fileobj=open('/home/progval/Downloads/GoodFrench.tar'), mode='r:') # Works tarfile.open(fileobj=urllib2.urlopen(urllib2.Request('h

[issue10491] Insecure Windows python directory permissions

2010-11-21 Thread Gynvael Coldwind
New submission from Gynvael Coldwind : Hi, Installers I've tested: Python 3.1.2 (signed Sunday, March 21, 2010 12:49:44 AM) Python 2.7 (signed Sunday, July 04, 2010 7:23:45 AM) It seems that Python's Windows installer doesn't correctly set permissions of Python's directories, allowing any user

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood added the comment: On Sun, Nov 21, 2010 at 17:11, Senthil Kumaran wrote: >>I can't see any situation in which redirecting >> "/something?foo" to "/something?foo/" is the correct behaviour. > As I explained, in the previous post, this would *not happen* in > practical scenarios,

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

2010-11-21 Thread ProgVal
ProgVal added the comment: This code : import urllib2 print urllib2.urlopen('http://plugins.supybot-fr.tk/GoodFrench.tar').read(500) Prints : data/75500017517511466030066011677 5ustar progvalprogval If the problem comes from networking libraries, I really don't have the

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Wow. The lock is precisely there so that the buffered object doesn't have to be MT-safe or reentrant. It doesn't seem reasonable to attempt to restore the file to a "stable" state in the middle of an inner routine. Also, the outer TextIOWrapper (we're talking

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

2010-11-21 Thread Daniel Albeseder
Daniel Albeseder added the comment: Steven: The last part I guess would belong better in issue 9334. Using a "--" to end all optionals is just a convention but "--" could also be the argument to some option as well. We need to limit this in any way, and the way it is done right now seem very

[issue10134] test_email failures on Windows: end of line issue?

2010-11-21 Thread R. David Murray
R. David Murray added the comment: This is fixed by r86642. The remaining failing tests were pointing to bugs in the implementation of the linesep argument to generator.flatten. I had to add an additional test to catch all the related bugs, though. The tests now run the inversion tests with

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +facundobatista, fdrake, orsenthil versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-l

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +facundobatista, fdrake, orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10491] Insecure Windows python directory permissions

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +facundobatista, fdrake, orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +facundobatista, fdrake, orsenthil versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-l

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +facundobatista, fdrake, orsenthil type: behavior -> feature request versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker ___ __

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue1043134] mimetypes.guess_extension('text/plain') == '.ksh' ???

2010-11-21 Thread Rafael dos Santos Gonçalves
Rafael dos Santos Gonçalves added the comment: ksh is a text/plain to, all this extension are text/plain: '.ksh', '.pl', '.bat', '.h', '.c', '.txt', '.asc', '.text', '.pot', '.brf'. The problem is: the code return the first of list: return extensions[0] So, I add one boolean parameter in method

  1   2   3   >