[issue1508475] transparent gzip compression in urllib

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: The transparent gzip Content-Encoding support should be done at the http.client level code. Before adding this feature, a question needs to be sorted out. If we support the transparent gzip and wrap the file pointer to a GzipFile

[issue1508475] transparent gzip compression in urllib

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Patch for py3k. -- stage: unit test needed - patch review Added file: http://bugs.python.org/file19811/issue1508475.diff ___ Python tracker rep...@bugs.python.org

[issue10399] AST Optimization: inlining of function calls

2010-11-25 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: But this seems to me like a contrived example: how often in real code do people pass around these builtins, rather than calling them directly? From experience developing PyPy, every argument that goes this theoretically breaks

[issue10518] Bring back callable()

2010-11-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: I was originally surprised to find that callable() was gone. I pointed it out at Europython and got a very informative explanation from Brett. The isinstance(obj, collections.Callable) was introduced and it works well. I'm with Ezio here. I'm -1

[issue10122] Documentation typo fix and a side question

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Boštjan, it is fixed. The change will reflect when the docs get served from the updated version. Also, Georg will take care of merging it to other branches. -- nosy: +orsenthil ___ Python

[issue10526] Minor typo in What's New in Python 2.7

2010-11-25 Thread Petter Remen
New submission from Petter Remen petter.re...@gmail.com: There's a word missing in section PEP 372: Adding an Ordered Dictionary to collections The ConfigParser module uses them by default, meaning that configuration files can now read, modified, and then written [...]

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2010-11-25 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: test_cgi causes a strange filehandle leak that only causes a warning when regrtest terminates, and for some reason doesn't show up if you run just test_cgi by itself. I've attached a patch that closes the filehandle. -- nosy:

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2010-11-25 Thread Gergely Kálmán
New submission from Gergely Kálmán kalman.gerg...@duodecad.hu: Hello, I have a code that uses multiprocessing.Pipe to communicate with subprocesses. Spawning 500 subprocesses this way works like a charm, but when spawning about 600 of them the pipe ends raise the exception: handle out of

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2010-11-25 Thread Gergely Kálmán
Gergely Kálmán kalman.gerg...@duodecad.hu added the comment: And this is the patch that I wrote. It applies to python 3.2. Hope this helps Gergely Kalman -- keywords: +patch Added file: http://bugs.python.org/file19814/multiproc.patch ___ Python

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

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM. -- assignee: - pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___ ___

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

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: If you want to quickly solve this, do like this: import urllib import tarfile tarfile.open(urllib.urlretrieve('http://plugins.supybot-fr.tk/GoodFrench.tar')[0], mode='r:') # Works The problem is tarfile is expecting a file-object with a

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-25 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: Ammended akira's patch for Lib/test/test_argparse.py to include suggested in review changes: with statement, import statement -- Added file: http://bugs.python.org/file19815/test_argparse.py.diff

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo, lemburg type: - feature request versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10524 ___

[issue10497] Incorrect use of gettext in argparse

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: A bit of rationale behind the patch. You probably know that the gettext/_ functions serves two roles: Identifying the strings to translate, and retrieving the translation from a catalog. At strings extraction time, the string in the line

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Looks good. BTW: What is pardus ? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10524 ___

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: When you run xgettext other argparse.py, you get this warning: “'msgid' format string with unnamed arguments cannot be properly localized: The translator cannot reorder the arguments. Please consider using a format string with named

[issue10529] Write argparse i18n howto

2010-11-25 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: argparse helpfully makes its messages with gettext.gettext. The docs should explain how to benefit from that in one’s program. -- assignee: d...@python components: Documentation messages: 122358 nosy: bethard, d...@python, eric.araujo

[issue10529] Write argparse i18n howto

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/makes/marks/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10529 ___ ___ Python-bugs-list

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528 ___ ___ Python-bugs-list

[issue9915] speeding up sorting with a key

2010-11-25 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9915 ___ ___ Python-bugs-list

[issue9664] Make gzip module not require that underlying file object support seek

2010-11-25 Thread Miroslav Suchý
Miroslav Suchý msu...@redhat.com added the comment: I'm proposing GzipStream class which inherit from gzip.GzipFile and handle streaming gzipped data. You can use this module under both Python or GPLv2 license. We use this module under python 2.6. Not sure if it will work under Python3.

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Onur Küçük
Onur Küçük o...@pardus.org.tr added the comment: Pardus is a Linux distribution, developed under Scientific and Technological Research Council of Turkey, by both paid and voluntary developers. We are getting pretty good attention lately actually, for example we were chosen 5th best Linux

[issue10525] Added mouse and colour support to Game of Life curses demo

2010-11-25 Thread Dafydd Crosby
Dafydd Crosby dtcr...@gmail.com added the comment: Sounds like an awesome idea. The new patch now coloured cells :-) -- Added file: http://bugs.python.org/file19817/mouse_and_colour.diff ___ Python tracker rep...@bugs.python.org

[issue10525] Added mouse and colour support to Game of Life curses demo

2010-11-25 Thread Dafydd Crosby
Changes by Dafydd Crosby dtcr...@gmail.com: Removed file: http://bugs.python.org/file19808/mouse_and_colour.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10525 ___

[issue8879] Implement os.link on Windows

2010-11-25 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I'll come up with a patch for Amaury's message. Hirokazu - I didn't see that MSDN page, thanks. Without st_ino, I'll need to find a way around the block of lines 1941-1954 in Lib/tarfile.py. That's what was causing a test failure in the first

[issue10518] Bring back callable()

2010-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm with Ezio here. I'm -1 for callable(), +0 for iscallable() (there should be preferably one obvious way to do it and using isinstance() seems to be that way at this point). The thing is, isisinstance(x, collections.Callable) is hardly

[issue10525] Added mouse and colour support to Game of Life curses demo

2010-11-25 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Committed in r86750. Thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue10518] Bring back callable()

2010-11-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Bringing back callable but with a different name is horrible. Just bring it back for goodness sake. -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org

[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: Just for the reference: What's new in Python 3.0 page says: Removed callable(). Instead of callable(f) you can use isinstance(f, collections.Callable). The operator.isCallable() function is also gone. There doesn't seem to be

[issue10518] Bring back callable()

2010-11-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Well, Guido has already approved its return - so further debate is relatively pointless. (Not that that usually stops us...) -- ___ Python tracker rep...@bugs.python.org

[issue10464] netrc module not parsing passwords containing #s.

2010-11-25 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: The patch attached (issue_10464_fix) moves handling of the '#' character from shlex to netrc, and makes netrc consider as comments lines whose first not-whitespace character is '#' instead of all text following '#' (which is what shlex does and

[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: surely, such a relevant bit of information is worth linking to! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10518 ___

[issue10518] Bring back callable()

2010-11-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: It was on python-ideas in the recent thread about bringing back callable. Feel free to post a link here for the record. -- ___ Python tracker rep...@bugs.python.org

[issue10530] distutils2 should allow the installing of python files with invalid syntax

2010-11-25 Thread Michael Foord
New submission from Michael Foord mich...@voidspace.org.uk: As discussed with tarek. It shouldn't be up to distutils2 to decide whether or not a Python file that has been included in the package should be installed or not if it is included in the set of files the developer has *asked* to be

[issue10518] Bring back callable()

2010-11-25 Thread SilentGhost
SilentGhost michael.mischurow+...@gmail.com added the comment: I wouldn't consider it approving, what Guido says is: I admit defeat on this one http://mail.python.org/pipermail/python-ideas/2010-November/008747.html Which incidentally is in response to your e-mails with the actual discussion

[issue1759169] clean up Solaris port and allow C99 extension modules

2010-11-25 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1759169 ___ ___ Python-bugs-list mailing

[issue10154] locale.normalize strips - from UTF-8, which fails on Mac

2010-11-25 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Mandriva and Debian also work fine with both UTF8 and UTF-8. For the record, the canonical spelling inside /usr/share/locale is UTF-8. I suppose glibc does its own normalization. -- nosy: +pitrou ___

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

2010-11-25 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Checked in r86751. I'm leaving this open until I fix the remaining issue with '#g' for Decimal. -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7094

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: The patch name has 2.7 in it, although Versions says 3.2. As this is a feature request, it can't be added to 2.7. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org

[issue10493] test_strptime failures under OpenIndiana

2010-11-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I verified that the bug was present too in the py3k patch sometime ago, but not currently. So I have spend some time doing bisection in the py3k branch to know WHEN the problem was solved. If was solved in r81583:

[issue10493] test_strptime failures under OpenIndiana

2010-11-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The fix was ported from trunk (2.7) to py3k branch, but it was not applied to 3.1 branch, though. I don't know why, but seems to be an oversight. No, it was deliberate: it was not backported all, neither to 3.1, nor to 2.6. I was

[issue10531] write tilted text in turtle

2010-11-25 Thread Yingjie
New submission from Yingjie lany...@yahoo.com: First of all, I'd like to express my deep gratidute to the author of this module, it is such a fun module to work with and to teach python as a first programming language. Secondly, I would like to request a feature if it is not too hard to

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Yingjie
New submission from Yingjie lany...@yahoo.com: Here are some puzzling results I have got (I am using Python 3, I suppose similar results for python 2). When I do the following, I got an exception: re.findall('(d*)*', 'adb') re.findall('((d)*)*', 'adb') When I do this, I am fine but the

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: The patch name has 2.7 in it, although Versions says 3.2. As this is a feature request, it can't be added to 2.7. I consider missing distros in the list of supported

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- stage: - commit review type: feature request - behavior versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10524 ___

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Yingjie
Changes by Yingjie lany...@yahoo.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10532 ___ ___ Python-bugs-list mailing

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Łukasz Langa
New submission from Łukasz Langa luk...@langa.pl: Currently the constructor in defaultdict only accepts factories. It would be very handy to allow for concrete values as well. It's implementable either by checking if the argument is callable or by a new keyword argument. -- assignee:

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I would love this functionality (I almost always initialise defaultdict with a lambda that just returns a concrete value). Unfortunately it seems like adding a keyword argument isn't possible because defaultdict takes arbitrary keyword

[issue10532] A bug related to matching the empty string

2010-11-25 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The spans say this: for m in re.finditer('((.d.)*)*', 'adb'): print(m.span()) (0, 3) (3, 3) There's an non-empty match followed by an empty match. IHMO, not a bug. -- nosy: +mrabarnett

[issue10493] test_strptime failures under OpenIndiana

2010-11-25 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: I have made several experiments to get the minimal patch. It is committed in r86752. It is trivial enough, and risk-free enough, to commit even in RC state (In my opinion). Python 2.7 and 3.2 are not affected. They don't look for SunOS/5.10 in

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: -1 from me. You can't use keywords, and if you make the value callable at a later date then suddenly you'll change the behavior of seemingly unrelated code. Is a lambda so bad? -- nosy: +eric.smith

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Both arguments are true and definitive. Last possibility would be to introduce a factory function for defaultdicts that would only accept concrete values: from collections import fallbackdict Then this factory could produce defaultdict

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: How about: from collections import defaultdict class defaultdict_value(defaultdict): def __init__(self, value): defaultdict.__init__(self, lambda : value) x = defaultdict_value(3) print(x[1]) --

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 11:48 AM, Eric Smith wrote: Eric Smith e...@trueblade.com added the comment: How about: from collections import defaultdict class defaultdict_value(defaultdict): def __init__(self, value):

[issue1649329] Extract file-finding and language-handling code from gettext.find

2010-11-25 Thread Shannon -jj Behrens
Shannon -jj Behrens jji...@users.sourceforge.net added the comment: OTOH maybe a lightweight ABC with mixin methods and a concrete implementation of the full gettext logic may be clear and educational here. Shannon, if you’re still getting those emails, what do you think? Yep, that'd be

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Like three-liners? whatsnew/2.5 gives us this one: class zerodict(dict): def __missing__(self, key): return 0 I don’t think it’s too painful to have to use defaultdict with a lambda. We can’t use a keyword argument and I’m -0.5 on

[issue4111] Add Systemtap/DTrace probes

2010-11-25 Thread John Levon
John Levon movem...@users.sourceforge.net added the comment: configure.in has: AC_MSG_RESULT([$with_dtrace]) ... AC_MSG_RESULT($with_dtrace) Why twice? It looks confusing. -- ___ Python tracker rep...@bugs.python.org

[issue1649329] Extract file-finding and language-handling code from gettext.find

2010-11-25 Thread Shannon -jj Behrens
Shannon -jj Behrens jji...@users.sourceforge.net added the comment: Although, perhaps this bug is going away. It seems like using zip files for eggs is going out of vogue. -- ___ Python tracker rep...@bugs.python.org

[issue1649329] Extract file-finding and language-handling code from gettext.find

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Would you like to propose a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1649329 ___

[issue1649329] Extract file-finding and language-handling code from gettext.find

2010-11-25 Thread Shannon -jj Behrens
Shannon -jj Behrens jji...@users.sourceforge.net added the comment: I've never managed to get a patch into Python, but I wouldn't mind trying ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1649329

[issue10524] Patch to add Pardus to supported dists in platform

2010-11-25 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10524 ___ ___ Python-bugs-list

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: lukasz.langa - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10533 ___

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: It would be very handy to allow for concrete values as well. Do you have use cases for a concrete integer value that isn't zero? Since we can currently use defaultdict(int) or defaultdict(tuple), is the purpose just to

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

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch Stefan. I can’t test on Windows now; can you/have you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10453 ___

[issue6166] encoding error for 'setup.py --author' when read via subprocess pipe

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I agree with Tarek this is not a bug, and there is a workaround, so I’m closing this. -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: A couple of points: 1. Eric's proposal is what I had in mind with the `fallbackdict' idea. 2. I'm also reluctant to add more variants to the standard library. Then again if it contained a `fallbackdict' I wouldn't probably ever use `defaultdict'

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2010-11-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +jnoller stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10527 ___ ___

[issue10464] netrc module not parsing passwords containing #s.

2010-11-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: - patch review versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10464 ___ ___

[issue10531] write tilted text in turtle

2010-11-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +belopolsky, gregorlingl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10531 ___ ___ Python-bugs-list

[issue10534] difflib.SequenceMatcher: expose junk sets, deprecate undocumented isb... functions.

2010-11-25 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Expose and document the junk and popular sets as attributes of the SequenceMatcher object. self.junk = junk self.popular = popular Deprecate the then unneeded and undocumented isbjunk and isbpopular functions, currently defined as

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-11-25 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Agreed. #10534. This is really a 'follow-on' rather than 'superseder', but the forward reference should be easy for anyone to find. -- resolution: - fixed status: open - closed superseder: - difflib.SequenceMatcher: expose junk sets,

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Steve Holden
Steve Holden st...@holdenweb.com added the comment: On 11/25/2010 1:44 PM, Łukasz Langa wrote: To sum up: if you don't find the idea of adding `fallbackdict' (possibly with an different *short* name) worth it, then I'm +1 on correcting the docs in terms of __missing__ and leaving the

[issue10533] defaultdict constructor with a concrete value

2010-11-25 Thread Alex
Alex alex.gay...@gmail.com added the comment: I agree with Łukasz, it's more clutter than is worth for what amounts to: fallbackdict = lambda c, **kwargs: defaultdict(lambda c, **kwargs) I will note, however, that almost all my use cases are with factories, primarily list set or int, and it

[issue10533] Need example of using __missing__

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: 4. I cannot come up with another typical integer value that would be useful, then again I've used , [] and set() numerous times. You can get '' with str as default factory and [] with list. I think we agree on reclassifying this as a doc

[issue10533] Need example of using __missing__

2010-11-25 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Well, I was perfectly aware of __missing__ - it's just a three liner to do it when using a lambda isn't *that* bad... I'm sure the documentation could be improved to highlight __missing__ though. It's almost always the case that

[issue10528] argparse uses %s in gettext calls

2010-11-25 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: I think it's fine to fix this in 3.2 by switching to mappings where necessary. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10528

[issue10518] Bring back callable()

2010-11-25 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10518 ___ ___ Python-bugs-list

[issue10520] Build with --enable-shared fails

2010-11-25 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: It is wort to fix regression if all directories are absolute. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -54,7 +54,8 @@ for i, path in enumerate(dirlist): if not os.path.isabs(path):

[issue10527] multiprocessing.Pipe problem: handle out of range in select()

2010-11-25 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- nosy: +asksol ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10527 ___ ___ Python-bugs-list mailing

[issue2650] re.escape should not escape underscore

2010-11-25 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Re the regex module (issue #2636), would a good compromise be: regex.escape(user_input, special_only=True) to maintain compatibility? -- nosy: +mrabarnett ___ Python tracker

[issue10533] Need example of using __missing__

2010-11-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: [Łukasz Langa] __missing__ didn't appear to be the one obvious way to anyone. Two thoughts: * There is part of the Zen that says that way may not be obvious unless your Dutch. In this case, __missing__ was the API

[issue9424] Deprecate assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals

2010-11-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Instead of turning warnings on by default in regrtest, it would be better to do it directly in unittest. I'll close this and open a new issue for that. -- resolution: - fixed stage: needs patch - committed/rejected status: open -

[issue10535] Enable warnings by default in unittest

2010-11-25 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: Warnings should be on by default in unittest so that developers can see them while running the tests even if they are silenced by default in Python. The plan is to add a warnings argument to TestProgram and the default TextTestRunner:

[issue9424] Deprecate assertEquals, assertNotEquals, assert_, assertAlmostEquals, assertNotAlmostEquals

2010-11-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See #10535. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9424 ___ ___ Python-bugs-list

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

2010-11-25 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: michael.foord - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10242 ___

[issue10273] Clean-up Unittest API

2010-11-25 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: After discussion with Michael and Guido, am limiting this to: * Fixing assertItemsEqual as described in issue10242 * Moving the docs for type specific equality methods inside the docs for assertEqual to emphasize that those

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

2010-11-25 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Yes, the patch is tested on Windows. Feel free to commit it if you have a chance. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10453

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

2010-11-25 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10441 ___ ___ Python-bugs-list

[issue10442] Please by default enforce ssl certificate checking in modules that can have user's which *depend* on the security of the ssl connection.

2010-11-25 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10442 ___ ___ Python-bugs-list

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Umm, I'm not sure how to fix this yet, but if we create the function like os._stat_with_open_handle() which returns stat struct and open handle on windows, I think we can set/use st_ino. (Because FileID won't change while file is

[issue10273] Clean-up Unittest API

2010-11-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: * Moving the docs for type specific equality methods inside the docs for assertEqual to emphasize that those get dispatched automatically and need not be called directly. I already fixed this on py3k, adding a section where the

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

2010-11-25 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Thank you Stefan, these days I was a little busy and I hadn't the time to review my patch. I really appreciate you help. -- ___ Python tracker rep...@bugs.python.org

[issue10299] Add index with links section for built-in functions

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: In 2.7, the functions are not sorted alphabetically. I think they should, and I offer to do the boring work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10299

[issue10299] Add index with links section for built-in functions

2010-11-25 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The last 4 functions are Non-essential Built-in Functions[0] so I kept them at the end of the list to match the order they have in the page. [0]: http://docs.python.org/library/functions.html#non-essential-built-in-functions --

[issue2562] Cannot use non-ascii letters in disutils if setuptools is used.

2010-11-25 Thread Jakub Wilk
Changes by Jakub Wilk jw...@jwilk.net: -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2562 ___ ___ Python-bugs-list mailing list

[issue10536] Enhancements to gettext docs

2010-11-25 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: A patch made for #2504 revealed a bug in gettext.rst, and I’ve found a number of other things to change in the file. This is the first patch of a series of two or three. Barry, as the original author of the module and doc, I’d like your

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Or, use GetFileInformationByHandleEx on Vista or above, and NtQueryInformationFile under Vista. NtQueryInformationFile is windows internal function and MS may change its behavior, but probably we can think it won't happen on WinXP.

[issue8879] Implement os.link on Windows

2010-11-25 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg122421 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___

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

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Revision 86758, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10453 ___ ___

[issue10299] Add index with links section for built-in functions

2010-11-25 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It’s fine to have them at the end of the page, but I think people want things to be sorted in an index. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10299

  1   2   >