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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2010-11-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- keywords: +easy stage: - needs patch versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7367 ___

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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*

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

2010-11-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I see Issue7995 also addresses the issue of accept sockets inheriting nonblocking status and provides a suggested patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7322

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

2010-11-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: (See also Issue7322) -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7995 ___ ___

[issue10424] better error message from argparse when positionals missing

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

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file19646/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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,

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

2010-11-21 Thread david
david db.pub.m...@gmail.com 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)

[issue8381] IDLE 2.6 freezes on OS X 10.6

2010-11-21 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org http://bugs.python.org/issue8381

[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 ko...@gmx.at 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

[issue809163] Can't add files with spaces

2010-11-21 Thread John Keyes
John Keyes johnke...@gmail.com 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 ko...@gmx.at 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 ko...@gmx.at: Removed file: http://bugs.python.org/file19731/issue9182.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9182 ___

[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 ko...@gmx.at: Added file: http://bugs.python.org/file19732/issue9182.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9182 ___

[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 mar...@v.loewis.de 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?

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

2010-11-21 Thread david
david db.pub.m...@gmail.com added the comment: On 21 November 2010 20:50, Martin v. Löwis rep...@bugs.python.org wrote: Martin v. Löwis mar...@v.loewis.de added the comment: So for python3 is it possible to make attempting to use capath(some common ones OR the openssl location capath if

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 mich...@voidspace.org.uk 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

[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz
Iuri Diniz iuridi...@gmail.com 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

[issue8943] Bug in InteractiveConsole

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

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

2010-11-21 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Duplicate of Issue8447 ? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8590 ___ ___

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

2010-11-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk 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

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Simon's patch fix for 3.2 looks good to me - applies cleanly to py3k and tests pass. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2986

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue10470

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Michele Orrù maker...@gmail.com 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 rep...@bugs.python.org

[issue10424] better error message from argparse when positionals missing

2010-11-21 Thread Michele Orrù
Changes by Michele Orrù maker...@gmail.com: Removed file: http://bugs.python.org/file19729/issue10424.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___

[issue8943] Bug in InteractiveConsole

2010-11-21 Thread Iuri Diniz
Iuri Diniz iuridi...@gmail.com 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 =

[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 rafaelsant...@gmail.com: Removed file: http://bugs.python.org/file19699/issue7325.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7325 ___

[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 rafaelsant...@gmail.com 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 rep...@bugs.python.org

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

2010-11-21 Thread Sibylle Koczian
Sibylle Koczian nulla.epist...@web.de added the comment: -Ursprüngliche Nachricht- Von: R. David Murray rep...@bugs.python.org 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

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood fir...@gmail.com added the comment: On Sun, Nov 21, 2010 at 10:37, Senthil Kumaran rep...@bugs.python.org 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

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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.

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

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

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

2010-11-21 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: Removed file: http://bugs.python.org/file19739/float_builtin_doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10488 ___

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
New submission from Łukasz Langa luk...@langa.pl: 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

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Changes by Łukasz Langa luk...@langa.pl: -- nosy: +eric.araujo, fdrake, georg.brandl, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10489 ___

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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 dicki...@gmail.com: 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,

[issue1859] textwrap doesn't linebreak on \n

2010-11-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: +1 for applying the doc patch. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1859 ___

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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 ezio.melo...@gmail.com 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

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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*. --

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

2010-11-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This is clearly an improvement. Do we want mention __float__? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10488 ___

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file19738/unittest.main.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10470 ___

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file19741/unittest.test.test_program.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10470 ___

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- Removed message: http://bugs.python.org/msg121909 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10470 ___

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

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- Removed message: http://bugs.python.org/msg121918 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10470 ___

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

2010-11-21 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue10351] Add autocompletion for keys in dictionaries

2010-11-21 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10351 ___ ___ Python-bugs-list

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

2010-11-21 Thread Roy Smith
Roy Smith r...@panix.com 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

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7995 ___ ___ Python-bugs-list mailing

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Oh, and a test should be added of course. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7995 ___

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[issue10489] configparser: remove broken `__name__` support

2010-11-21 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl 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

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
New submission from And Clover a...@doxdesk.com: 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

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
Changes by And Clover a...@doxdesk.com: Removed file: http://bugs.python.org/file19745/mimetypes-patch2-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10490 ___

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-21 Thread And Clover
Changes by And Clover a...@doxdesk.com: Added file: http://bugs.python.org/file19746/mimetypes-patch2-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10490 ___

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

2010-11-21 Thread david
david db.pub.m...@gmail.com added the comment: Fine. So if not in the ssl module what about for urllib etc.? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___

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

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -db ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___ ___ Python-bugs-list mailing list

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

2010-11-21 Thread david
david db.pub.m...@gmail.com added the comment: So please close this bug. Apparently making things secure by default is to much to ask. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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

[issue10468] Document UnicodeError access functions

2010-11-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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:

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

2010-11-21 Thread david
Changes by david db.pub.m...@gmail.com: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: rejected - stage: needs patch - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___

[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 steven.beth...@gmail.com 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

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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

[issue10468] Document UnicodeError access functions

2010-11-21 Thread Eli Bendersky
Changes by Eli Bendersky eli...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10468 ___ ___ Python-bugs-list

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-11-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Apologies, I had misread your message: I thought the keybinding was wrong but working. Your fix should be committed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10404

[issue1745035] DoS smtpd vulnerability

2010-11-21 Thread Henrique Bastos
Changes by Henrique Bastos henri...@bastos.net: -- nosy: +henriquebastos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1745035 ___ ___

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

2010-11-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 r...@rhe.vg 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 tarsis.azev...@gmail.com 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:

[issue969718] BASECFLAGS are not passed to module build line

2010-11-21 Thread Chris Lambacher
Chris Lambacher ch...@kateandchris.net 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

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

2010-11-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 doug.hellm...@gmail.com added the comment: Hi, Tarsis, That patch looks good to me. Thanks! Doug -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9509 ___

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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

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

2010-11-21 Thread ProgVal
ProgVal prog...@gmail.com 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

[issue10491] Insecure Windows python directory permissions

2010-11-21 Thread Gynvael Coldwind
New submission from Gynvael Coldwind gynv...@gmail.com: 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,

[issue10231] SimpleHTTPRequestHandler directory bugs

2010-11-21 Thread Jeremy Thurgood
Jeremy Thurgood fir...@gmail.com 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

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

2010-11-21 Thread ProgVal
ProgVal prog...@gmail.com 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

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[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 ko...@gmx.at 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

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

2010-11-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +facundobatista, fdrake, orsenthil versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10479 ___

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +facundobatista, fdrake, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10486 ___ ___

[issue10491] Insecure Windows python directory permissions

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10491 ___ ___ Python-bugs-list mailing

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +facundobatista, fdrake, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10485 ___ ___

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +facundobatista, fdrake, orsenthil versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10484 ___

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

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +facundobatista, fdrake, orsenthil type: behavior - feature request versions: -Python 2.6, Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10487

[issue10478] Ctrl-C locks up the interpreter

2010-11-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10478 ___ ___ Python-bugs-list

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

2010-11-21 Thread Rafael dos Santos Gonçalves
Rafael dos Santos Gonçalves rafaelsant...@gmail.com 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

[issue10492] test_doctest fails with iso-8859-15 locale

2010-11-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: $ LANG=ISO-8859-15 ./python -m test.regrtest test_doctest [1/1] test_doctest ** File /home/antoine/py3k/__svn__/Lib/test/test_doctest.py, line 1676, in

  1   2   3   >