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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Set blocking or non-blocking mode of the socket: if flag is 0, the > socket is set to non-blocking, else to blocking mode. > > This seems to imply that timeout = None -> blocking. I see. So gettimeout() should really make a system call, to determine whether

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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Well, unless someone explains convincingly how the current behaviour is > desireable (rather than misleading and useless), I really think this is > a bug that should be fix (then we can also discuss what the fix should > exactly be). So please propose a fix.

[issue10461] Use with statement throughout the docs

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > I’m not 100% sure I should change 'r' to 'rb' in logging: > It’s unrelated to with, and the rest of the file > has not been checked for similar errors. Good catch. This should only be a with-statement transformation. I caught other accidental semantic

[issue9264] trace.py documentation is incomplete

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python -georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8416] python 2.6.5 documentation can't search

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: d...@python -> georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2010-11-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed it in r86676 (py3k), r86677 ( release31-maint) and r86678(release27-maint). Wes: I fixed it at the much higher level in the urlparse itself, so that the fixed url is sent to the httplib. In issue2464, John had pointed out that according to STD 66, pa

[issue7283] test_site failure when .local/lib/pythonX.Y/site-packages hasn't been created yet

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Is this still relevant? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Fails on OS X as well for similar reasons. -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-li

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: I like this version. HTML and LaTex build without warning; all-pdf takes forever and spits out a metric ton of messages, so I haven’t checked its result. The markup trickery is unfortunate, though, I’d like a pronouncement from Georg about that. -- __

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-21 Thread Ned Deily
Ned Deily added the comment: FYI, calendar.localeHTMLCalendar() fails on OS X in exactly the same way for exactly the same reason. See, for instance, Issue10090. -- nosy: +ned.deily ___ Python tracker __

[issue10461] Use with statement throughout the docs

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Éric, Yes, in a consequent patch I fixed this - kept the formatted code indented at 3 spaces, while adhering to PEP-8 internally. If there's anything else, let me know. -- ___ Python tracker

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

2010-11-21 Thread Eli Bendersky
Eli Bendersky added the comment: Michael, I feared this might be the case. Without knowing the module deeply, it's not easy to be aware of all the possible paths, preconditions, and consequences (and tests obviously didn't catch that). A suggestion - maybe documenting these parts would allow

[issue8631] subprocess.Popen.communicate(...) hangs on Windows

2010-11-21 Thread Brian Curtin
Brian Curtin added the comment: I'm with Tim and Mark - can't reproduce this, so I'm closing the report. If you are able to find another case which can reproduce this, feel free to re-open. -- resolution: -> rejected stage: -> committed/rejected status: open -> closed type: crash ->

[issue10496] "import site failed" when Python can't find home directory

2010-11-21 Thread Brian Bi
Brian Bi added the comment: This bug is Linux-specific. When Python cannot find the home directory of the user invoking it, it prints "'import site' failed; use -v for traceback". This occurs only when both of these conditions are met: 1. /etc/passwd contains no entry for the current real UID

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Not fixed: http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x/builds/54/steps/test/logs/stdio -- ___ Python tracker __

[issue10087] HTML calendar is broken

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It may be acceptable, but your patch elides the line breaks in output. Can you add unit tests? -- ___ Python tracker ___ __

[issue5150] IDLE to support reindent.py

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Opened back up for the new patch (posted after the previous close). -- status: closed -> open ___ Python tracker ___

[issue10087] HTML calendar is broken

2010-11-21 Thread Chris Lambacher
Chris Lambacher added the comment: I have attached a patch that conditionally uses sys.stdout.buffer.write to output binary (encoded) data to stdout. -- nosy: +lambacck Added file: http://bugs.python.org/file19768/calendar_bytes_output.patch ___ Pyt

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: The patch actually already contained a doc change addressing Terry’s second request, thank you Xuanji Li. I reverted the changes to howto as per Raymond’s comment, made some other slight editions (like removing trailing whitespace) and committed as r86670 and r

[issue9876] ConfigParser can't interpolate values from other sections

2010-11-21 Thread Łukasz Langa
Łukasz Langa added the comment: Hopefully a form of this feature will be introduced as part of #10499. The discussion goes on there. -- resolution: -> duplicate status: open -> closed superseder: -> Modular interpolation in configparser ___ Python

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-11-21 Thread Łukasz Langa
Łukasz Langa added the comment: Hopefully both RawConfigParser and ConfigParser will be successfully deprecated as part of #10499. The discussion goes on there. -- resolution: -> duplicate status: open -> closed superseder: -> Modular interpolation in configparser __

[issue10499] Modular interpolation in configparser

2010-11-21 Thread Łukasz Langa
New submission from Łukasz Langa : SUMMARY === This is a refactoring of configparser raised from discussions on #6517 and #9876. It solves both issues and makes the code quite elegant. Best part is, it's fully backwards compatible [1]. In the patch I basically did: a) move the interpolati

[issue10138] calendar module does not support years outside [1, 9999] range

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Fixed in revision 86669. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue10497] Incorrect use of gettext in argparse

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The patch makes sense. I wonder if i10n of programs using argparse should be mentioned in docs. Providing a sample translation file somewhere may not be a bad idea at least for testing. -- nosy: +belopolsky ___

[issue10138] calendar module does not support years outside [1, 9999] range

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Go ahead an remove the word "indefinitely". -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue10164] Add an assertBytesEqual to unittest and use it for bytes assertEqual

2010-11-21 Thread R. David Murray
R. David Murray added the comment: Agreed on the closing. The pre-diff processing function would be a great addition. For the record, I am currently satisfying my use case by doing this: self.assertEqual(bstr1.split(b'\n'), bstr2.split(b'\n')) which produces a very readable diff. --

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: test_quiet hopefully fixed in r86668. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See also #10087. -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-21 Thread R. David Murray
R. David Murray added the comment: I've opened issue 10498 for the calendar bug. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-21 Thread R. David Murray
Changes by R. David Murray : -- nosy: +skoczian ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10498] calendar.LocaleHTMLCalendar.formatyearpage() results in traceback with 'unsupported locale setting' on Windows

2010-11-21 Thread R. David Murray
New submission from R. David Murray : See issue 10466 for background, but in short LocaleHTMLCalendar uses getdefaultlocale if no locale is specified, and on windows this results in a locale that setlocale will not accept. The fix is presumably to use setlocale(LC_DATE, '') instead of getdefa

[issue10493] test_strptime failures under OpenIndiana

2010-11-21 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: OS stock python: """ j...@pythonbuildbot.uk.openindiana.org:~$ python Python 2.6.4 (r264:75706, Sep 12 2010, 18:46:30) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import time >>> time.strftime("%d") '22' """ Buildb

[issue10200] Documentation: "link use"?

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19375/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue10497] Incorrect use of gettext in argparse

2010-11-21 Thread Éric Araujo
New submission from Éric Araujo : I found two calls to gettext that are incorrect. See attached patch. -- components: Library (Lib) files: gettext-argparse.diff keywords: patch messages: 122068 nosy: bethard, eric.araujo priority: normal severity: normal stage: patch review status: open

[issue5088] optparse: inconsistent default value for append actions

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: d...@python -> eric.araujo status: pending -> open ___ Python tracker ___ ___ Python-bugs-list ma

[issue10461] Use with statement throughout the docs

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Raymond: I made a single diff for easier review. I’m not 100% sure I should change 'r' to 'rb' in logging: It’s unrelated to with, and the rest of the file has not been checked for similar errors. I prefer to do commits that don’t mix things. Eli: > which whi

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Andrew Schaaf
Andrew Schaaf added the comment: This patch (to 86665)... * adds buffering to send_response_only * adds flush_headers and uses it in end_headers and CGIHTTPRequestHandler.run_cgi * tests {send_error,send_response_only,send_header} using a write-counting wfile * improves the docs Also, I've add

[issue10466] locale.py resetlocale throws exception on Windows (getdefaultlocale returns value not usable in setlocale)

2010-11-21 Thread R. David Murray
R. David Murray added the comment: It is unfunny that your program fails on Windows. Yes it is the same bug, since calendar calls getdefaultlocale. Issue 1080864 makes very interesting reading in this context. Clearly Martin is right, yet the OP seems to find the current behavior of getdefau

[issue1745035] DoS smtpd vulnerability

2010-11-21 Thread Savio Sena
Savio Sena added the comment: The attached patch adopts the minimalistic approach described in previous post. It pretends to implement Message Size Extension, defining a maximum message data size to 32M bytes and maximum command length to 512 bytes. In my opinion this is the best way to accom

[issue7645] test_distutils fails on Windows XP

2010-11-21 Thread Brian Curtin
Brian Curtin added the comment: The addition of the Setup.sample to Tools/msi/msi.py was only done in 3.2. I backported it to 3.1 in r8 and 2.7 in r86667. -- assignee: tarek -> brian.curtin nosy: +brian.curtin resolution: -> fixed stage: -> committed/rejected status: open -> clos

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

2010-11-21 Thread Glenn Linderman
Glenn Linderman added the comment: Martin, that is an interesting viewpoint, and one I considered, but didn't state, because it seems much too restrictive. Most CGI programs are written in scripting languages, not compiled to .exe. So it seems the solution should allow for launching at leas

[issue9047] Python 2.7rc2 includes -isysroot twice on each gcc command line

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Can this be closed now? -- nosy: +ned.deily ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10087] HTML calendar is broken

2010-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10138] calendar module does not support years outside [1, 9999] range

2010-11-21 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Note, this change affects the documentation for the sqlite3 module which was modified for 3.2 by r85208 in Issue10020 to add a footnote: "The sqlite3 module is not built with loadable extension support by default, because some platforms (notably Mac OS X) have SQL

[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks, done as r86662 and [fbcddbb92b14]. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8525] Small enhancement to help()

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The following passes tests in elp_8525.patch, but is much simpler: === --- Lib/pydoc.py(revision 86600) +++ Lib/pydoc.py(working copy) @@ -1139,6 +1139,15 @@

[issue9631] Python 2.7 installation issue for Linux gcc-4.1.0-3 (Fedora Core 5?)

2010-11-21 Thread Ari Consul
Ari Consul added the comment: Similar error on make install. Using Centos 5 /usr/bin/install -c -m 644 ./LICENSE /home/ac927k/local/Python-2.7/lib/python2.7/LICENSE.txt PYTHONPATH=/home/ac927k/local/Python-2.7/lib/python2.7 \ ./python -Wi -tt /home/ac927k/local/Python-2.7/l

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

2010-11-21 Thread Justin Cappos
Justin Cappos added the comment: >> The Python implementation sets timeout=None (which implies that the >> underlying socket is blocking). > >No, it doesn't. A socket may be non-blocking without having a timeout; > that's the socket API (on all systems, not just BSD). Sure and this happens when

[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-11-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Nov 21, 2010, at 11:02 PM, Éric Araujo wrote: >I noticed in the output of pydoc that get_makefile_filename does not have a >docstring. I added one in my local copy (“Return the path of the Makefile.”) >and also removed “s” in verbs in other docstrings to c

[issue10495] Demo/comparisons/sortingtest.py needs some usage information.

2010-11-21 Thread Ramiro Batista da Luz
Ramiro Batista da Luz added the comment: I had write a suggested patch before seeing this message http://bugs.python.org/issue10494#msg122047 from Alexander Belopolsky (belopolsky). Probably it will be discarded, but as I commented in the previous #issue10494, the work was already done. (se

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-11-21 Thread Ramiro Batista da Luz
Ramiro Batista da Luz added the comment: New patch from the suggestions, probably it will be discarded (see http://mail.python.org/pipermail/python-ideas/2010-October/008416.html) But the work was already done. :P -- Added file: http://bugs.python.org/file19761/issue10494_demo_regext

[issue10496] "import site failed" when Python can't find home directory

2010-11-21 Thread Brian Bi
New submission from Brian Bi : This bug is Linux-specific. When Python cannot find the home directory of the user invoking it, it prints "'import site' failed; use -v for traceback". This occurs only when both of these conditions are met: 1. /etc/passwd contains no entry for the current real U

[issue9831] test_distutils should honor PYTHONDONTWRITEBYTECODE

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> title: test_distutils fails on MacOSX 10.6 -> test_distutils should honor PYTHONDONTWRITEBYTECODE ___ Python tracker ___

[issue706406] fix bug #685846: raw_input defers signals

2010-11-21 Thread Ned Deily
Ned Deily added the comment: (Noted in passing: Issue9867 may be relevant here.) -- nosy: +ned.deily -BreamoreBoy ___ Python tracker ___ ___

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Beware of UUOC: http://en.wikipedia.org/wiki/Cat_%28Unix%29#Useless_use_of_cat -- nosy: +eric.araujo ___ Python tracker ___ __

[issue10495] Demo/comparisons/sortingtest.py needs some usage information.

2010-11-21 Thread Ramiro Batista da Luz
New submission from Ramiro Batista da Luz : When someone run Demo/comparisons/regextest.py without arguments it waits for lines to be inserted in the command line silently, until the EOF, or Ctrl+D in Linux, is entered. If the user read the file, editing or using cat Demo/comparisons/sortingte

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-11-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: +0 Not "+1" because Georg suggested that this demo be removed. See http://mail.python.org/pipermail/python-ideas/2010-October/008416.html On the patch, I would define a "usage" variable near the top of the program instead of repeating the usage text i

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: These mostly look good. Do leave the howto documents as-is. They have some value across multiple versions of Python. Also, the descriptor how-to in particular gets some benefit from keeping (object) explicit because it helps remind users which version o

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: “I also think the doc for 'class' should say that the default inheritance is from the base class *object*” -- ___ Python tracker ___

[issue8525] Small enhancement to help()

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Thank you. I uploaded your patch to Rietveld and reviewed it: http://codereview.appspot.com/3169042/ -- ___ Python tracker ___ __

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Xuanji Li
Xuanji Li added the comment: Hi eric, what doc change are you referring to? -- status: pending -> open ___ Python tracker ___ ___ Pyt

[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: > The notes in the documentation under socket.gettimeout() do go into > more detail than elsewhere. But at least one thing there is at best > misleading: "Sockets are always created in blocking mode" is, as we've > seen, not correct for BSD-ish systems for sock

[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: Responding to msg122013: I think he exactly meant to equate the two. The original problem described in issue882297 is that the makefile() documentation only stated that the socket could not be in non-blocking mode. The test case presented didn't appear to set no

[issue1178] IDLE - add "paste code" functionality

2010-11-21 Thread Ned Deily
Ned Deily added the comment: (Reopening as the previous message appears to be incorrect.) -- assignee: nobody -> nosy: +ned.deily -BreamoreBoy resolution: fixed -> stage: -> patch review status: closed -> open versions: +Python 3.2 -Python 2.7, Python 3.1 ___

[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: The notes in the documentation under socket.gettimeout() do go into more detail than elsewhere. But at least one thing there is at best misleading: "Sockets are always created in blocking mode" is, as we've seen, not correct for BSD-ish systems for sockets return

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: os.path.abspath actually checks for isabs first, so I think you can leave the test out and always call abspath. -- ___ Python tracker ___

[issue7434] general pprint rewrite

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Deferring the general rewrite until 3.3. It would need to have a lot of people look at it and evaluate it. I no longer think there is time for that before the 3.2 beta. -- resolution: -> later versions: +Python 3.3 -Python 3.2

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well if WeakKeyDictionary silences the TypeError from ref(), it sounds consistent for WeakSet to silence it too. -- ___ Python tracker ___ ___

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-11-21 Thread Ramiro Batista da Luz
Ramiro Batista da Luz added the comment: Suggested patch. -- keywords: +patch Added file: http://bugs.python.org/file19759/issue10494_demo_regextest_usage_patch.diff ___ Python tracker ___

[issue10366] Remove unneeded '(object)' from 3.x class examples

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: I will commit the patch this week unless someone opposes to it. We still need a doc change as described in Terry’s original message. -- assignee: d...@python -> eric.araujo resolution: -> accepted stage: needs patch -> patch review status: open -> pendin

[issue10360] _weakrefset.WeakSet.__contains__ should not propagate TypeErrors

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't have any other insights on this one. Assigned by to Antoine who appears to have put some thought into it. -- assignee: rhettinger -> pitrou ___ Python tracker ___

[issue10494] Demo/comparisons/regextest.py needs some usage information.

2010-11-21 Thread Ramiro Batista da Luz
New submission from Ramiro Batista da Luz : When someone run Demo/comparisons/regextest.py without arguments it waits for lines to be inserted in the command line silently, until the EOF, or Ctrl-D in Linux, is entered. If the user read the file, editing or using cat Demo/comparisons/regextest

[issue9399] Provide a 'print' action for argparse

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: sys.std* should not be used as default values in a function definition, because they may be rebound to other objects. The usual idiom is to have None as default value and check it at call time. The patch also needs tests and docs. (FTR, the example for callabl

[issue10164] Add an assertBytesEqual to unittest and use it for bytes assertEqual

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Rejecting this one for reasons we discussed earlier. The assertEqual() method needs to be the primary interface. Everything else is starting to mix content and presentation (i.e. passing in separators). The existing repr() works fine with bytes and Mich

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin added the comment: Corrected in r86655, r86656, and r86657. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin added the comment: True. I'll correct it. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Brian, The following line: start %CURRDIR%..\..\pythonw.exe %CURRDIR%idle.pyw %1 %2 %3 %4 %5 %6 %7 %8 %9 should be changed to: start "%CURRDIR%..\..\pythonw.exe" "%CURRDIR%idle.pyw" %1 %2 %3 %4 %5 %6 %7 %8 %9 This is required if Python is installed

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: I don’t know enough of the test_argparse magic to assess the new test, but Stephan, the author and maintainer of argparse, will certainly comment when he gets some time. Thanks for the patch! -- ___ Python tracker <

[issue7049] decimal.py: Three argument power issues

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: +1 for deprecating three-arg pow for the reasons given. A user is much better-off composing well-defined operations than using our short-cut, with our chosen assumptions. Apologies for taking so long to think this one through. -- assignee: rhettinger

[issue6378] Patch to make 'idle.bat' run idle.pyw using appropriate Python interpreter (so 3.1's idle.bat does not accidently use python26.exe)

2010-11-21 Thread Brian Curtin
Brian Curtin added the comment: I don't think this is a feature request. This batch file should always run the version of the file for which the batch is installed. For it to be generic and end up using another installed version is incorrect. With that said... Fixed in r86651, r86652, and r86

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: See r3292. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue3292] Position index limit; s.insert(i,x) not same as s[i:i]=[x]

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added the i,j,k notes Left out the processor word size and C-type specifications in-part because it is an implementation detail subject to change. Another reason is that it doesn't apply to necessarily to all sequences. Slices take arbitrary objects and

[issue809163] Can't add files with spaces

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: assertEquals is deprecated, I’ll change to assertEqual. > What filelist.py patch are you referring to? I've tested this on py3k > with no changes to filelist.py. The goal of a test is to show an error so that it can be fixed. In this case, the test is still usef

[issue7257] Improve documentation of list.sort and sorted()

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: After more thought, am leaving the doc strings as-is. They are succinct and accurate. I have updated the sorting how-to to more thoroughly cover the basics of sorting. -- resolution: -> wont fix status: open -> closed __

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread akira
akira <4kir4...@gmail.com> added the comment: Simplified the patch and added test for a non-existent file in issue9509.patch The test `py3k/python -m test.regrtest test_argparse` fails without the patch and succeeds with it. The docs in Doc/library/argparse.rst and Lib/argparse.py don't need

[issue7212] Retrieve an arbitrary element from a set without removing it

2010-11-21 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6722] collections.namedtuple: confusing example

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: See r86650 -- resolution: -> fixed status: open -> closed versions: -Python 2.6, Python 2.7, Python 3.0, Python 3.1 ___ Python tracker ___

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

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Patch for test_quiet looks good, thanks. Do you want to write test_noargs? -- ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Patch looks good, thanks! Does it integrate Catherine’s tests? -- components: +Library (Lib) stage: needs patch -> patch review ___ Python tracker ___

[issue1544102] ctypes unit test fails (test_macholib.py) under MacOS 10.4.7

2010-11-21 Thread Ned Deily
Ned Deily added the comment: Verified that the ctypes test_macholib tests in current Python 2.7, 2.6.6, and even 2.5.3 run without failure on OS X 10.4.11 PPC. -- nosy: +ned.deily -BreamoreBoy resolution: -> out of date status: open -> closed ___ P

[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: I noticed in the output of pydoc that get_makefile_filename does not have a docstring. I added one in my local copy (“Return the path of the Makefile.”) and also removed “s” in verbs in other docstrings to comply with PEP 257. Shall I commit it? -- Ad

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

2010-11-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I got into this by starting with Issue7322, which reports a scenario > where data is lost using makefile(). The docs for makefile() say, > "The socket must be in blocking mode (it can not have a timeout)". > So, we've got published documentation which equate

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

2010-11-21 Thread Eric Smith
Eric Smith added the comment: I agree that: format(Decimal('1.23'), '#.6g') should give '1.23000', just as: format(1.23, '#.6g') does. I'll work on fixing the patch, although if I don't get to it in the next few days I'll commit the existing patch and open another issue, just to make sur

[issue5353] Improve IndexError messages with actual values

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm abandoning this one since I couldn't find a way to do it that didn't impair performance. Unlike C++, it is not uncommon in Python to use exceptions such as IndexError for control flow. There was too little added value in building-out this message to

[issue10461] Use with statement throughout the docs

2010-11-21 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file19696/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue9802] Document 'stability' of builtin min() and max()

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: As discussed with Mark, am closing this one after having applied documentation changes. -- resolution: -> rejected status: open -> closed ___ Python tracker __

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2010-11-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. I commented there. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bug

[issue10356] decimal.py: hash of -1

2010-11-21 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Committed the ValueError in r86517 (py3k) As discussed on IRC, I've reverted this change. -- resolution: fixed -> invalid status: open -> closed ___ Python tracker _

  1   2   3   >