[issue10468] Document UnicodeError access functions

2010-11-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks, reviewed and applied in r86705. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-11-22 Thread Georg Brandl
Georg Brandl added the comment: Yes, please do apply. You don't need to run a doc build for every small change; of course it is nice if you do, but errors will be caught by the daily build routine anyway and mailed to me. As for the two blank lines: you'll see that the original conversion fr

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Since the patch does not completely fix the mingw32 build, I suggest to apply it only on 3.2, and continue to work on mingw32 support there. Only after we will be able to discuss whether all the changes can be backported to 2.7, provided that they fix t

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
Johann Hanne added the comment: Why exactly are you skeptical? Because it doesn't fix everything in one go? The other changes are also minimal (I'm not even sure if it requires more source changes, maybe I have just to get my #defines right). If you prefer to see a single patch which you can

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Please give me some starting point by applying these patches. I don't > care if it's for 2.7.1 or 2.7.2. I'll try hard to get *everything* > fixed, but we have to start somewhere. I'm skeptical that we should do that with 2.7, then. So it would be better to

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

2010-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Georg, if your comment means that you think that the doc patch is ready to apply, as is, without testing with a doc build, then I will do so for all 3 versions. Should there really be two blank lines after the note? -- __

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
Johann Hanne added the comment: I've revised the patch to use "defined(_MSC_VER) || defined(__MINGW32__)" as suggested. And no, it does not solve all mingw compilition issues, but most of them. I've tried to only address the most obvious ones, which are *very* unlikely to break anything. I

[issue9222] IDLE: Fix open/saveas 'Files of type' choices

2010-11-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: 3.2, 3.1, 2.7: r86702, r86703, r86704 -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue8525] Display exception's subclasses in help()

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The proposal is to display builtin subclasses as for example: >>> help(ArithmeticError) class ArithmeticError(Exception) | Base class for arithmetic errors. | | Method resolution order: | ArithmeticError | Exception | BaseExceptio

[issue10510] distutils.command.upload/register HTTP message headers: bad line termination

2010-11-22 Thread Brian Jones
New submission from Brian Jones : In trying to write a PyPI service, I of course need to support the registration and upload features of setup.py, which uses distutils for those actions. One thing making this a bit more difficult than need be is the fact that distutils.command.register and dis

[issue10087] HTML calendar is broken

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder: do we really need "encoding" option to the calendar output? It is really not the job of the calendar module to deal with encodings. The calendar module should produce text calendars as unicode strings and HTML calendars as UTF-8 bytes. If s

[issue1508475] transparent gzip compression in urllib

2010-11-22 Thread MunSic JEONG
Changes by MunSic JEONG : -- nosy: +ruseel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

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

2010-11-22 Thread MunSic JEONG
Changes by MunSic JEONG : -- nosy: +ruseel ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: > How did it get *faster* than the original (in the case with no > key-function)? I was able to shave off some instructions in countrun(), binarysort(), and the setup and cleanup code in listsort() proper. For small n, these made a difference. > Is there

[issue8914] Run clang's static analyzer

2010-11-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-11-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9852] test_ctypes fail with clang

2010-11-22 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

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

2010-11-22 Thread Matthew Barnett
Matthew Barnett added the comment: I'd be interested in having a go if I knew what the desired behaviour was, ie unit tests to confirm what was 'correct'. How should it handle line breaks? Should it treat them like any other whitespace as at present, should it honour them, or should it get an

[issue10508] compiler warnings about formatting pid_t as an int

2010-11-22 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Python 3.1 affected also. -- versions: +Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mai

[issue9915] speeding up sorting with a key

2010-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: > If the "key" parameter was not used, then the values pointer > is a null pointer. . . . > Since the branch will always be the same throughout any given > call to sort(), CPU branch prediction is effective making the > branches fairly inexpensive. I se

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Raymond Hettinger added the comment: > That result is surprising though -- I thought the concept was > manipulate the key and value arrays at the same time instead of just > the keys If the "key" parameter was not used, then the values pointer is a null poin

[issue10501] make_buildinfo regression with unquoted path

2010-11-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I did various tests and quoting parts of the path seemed fragile, especially if the quote landed next to a backslash. This is dangerous ground :) -- ___ Python tracker _

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Ron Adam
Ron Adam added the comment: Is this a duplicate of issue 9319? -- nosy: +ron_adam ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9915] speeding up sorting with a key

2010-11-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the revisions and timing updates. I'm heartened that the common-case of sorting without a key function isn't negatively impacted. That result is surprising though -- I thought the concept was manipulate the key and value arrays at the same tim

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Antoine Pitrou wrote: > Right, that wouldn't suit your present purposes. But apparently you > are proposing to add a list sorting benchmark to the Tools directory, > with lots of duplicated code from that repo... Oh, I just stuck that under Tools because it

[issue9915] speeding up sorting with a key

2010-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 23 novembre 2010 à 00:10 +, Daniel Stutzbach a écrit : > Daniel Stutzbach added the comment: > > Antoine Pitrou wrote: > > Why don't you contribute a list sorting benchmark to the suite in > > http://hg.python.org/benchmarks/? > > I considered

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Antoine Pitrou wrote: > Why don't you contribute a list sorting benchmark to the suite in > http://hg.python.org/benchmarks/? I considered that, but I want to separately benchmark sorting different kinds and quantities of data. AFAIK, there isn't an easy

[issue1676121] Problem linking to readline lib on x86(64) Solaris

2010-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- superseder: documentation for new SSL module -> readline configuration for shared libs w/o curses dependencies ___ Python tracker ___ _

[issue9915] speeding up sorting with a key

2010-11-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Worthwhile trade? +1 obviously. Why don't you contribute a list sorting benchmark to the suite in http://hg.python.org/benchmarks/? -- ___ Python tracker _

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Added file: http://bugs.python.org/file19781/detailed-speed-results.txt ___ Python tracker ___ ___ Python-bugs-li

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : Added file: http://bugs.python.org/file19780/sort-faster.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9915] speeding up sorting with a key

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I'm starting to get settled in here at Google and finding time to follow up on everything that got put on hold while moving. Based on the feedback everyone gave me (thanks!), I greatly revised my script for comparing the speed of sort(). It's now compares

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-11-22 Thread Łukasz Langa
Łukasz Langa added the comment: Committed in rev 86699. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

2010-11-22 Thread Łukasz Langa
Łukasz Langa added the comment: Adding a patch implementing the discussed functionality, removing almost all of the ResourceWarnings raised by zipfile. -- keywords: +patch nosy: +lukasz.langa stage: needs patch -> patch review Added file: http://bugs.python.org/file19778/issue9846.diff

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: > I doubt this fix will be enough to fix compilation with mingw32. So somebody will have to verify independently. If it fails to fix the bug completely, it's out of scope for 2.7 (it's out of scope for 2.7.1 IMO either way). > With this patch, "#ifdef MS_WIND

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I doubt this fix will be enough to fix compilation with mingw32. But IMO it goes in the right direction. With this patch, "#ifdef MS_WINDOWS" has the meaning of "linked with some version of MSVCRT". Do we agree on this, or is another symbol necessary?

[issue10437] ThreadPoolExecutor should accept max_workers=None

2010-11-22 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Amaury Forgeot d'Arc said: > pypy does have a GIL! D'oh. That shows you how much I know about PyPy. Make that "keep in mind that IronPython doesn't have a GIL". ;) Brian Quinlan said: > I think that using the number of CPUs for max_workers makes sense > f

[issue10501] make_buildinfo regression with unquoted path

2010-11-22 Thread Martin
Martin added the comment: Thanks. Don't actually need to quote the whole path, but what you've landed works for me. -- ___ Python tracker ___ __

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

2010-11-22 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: "PYTHONIOENCODING=UTF-8 python test2.py" does work. -- ___ Python tracker ___ ___ Python-bugs-li

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-11-22 Thread Dave Malcolm
Dave Malcolm added the comment: Attaching a simplified version of the patch; I got rid of the callbacks. Still doesn't have test cases. I suspect that the use of __STRING and __PRETTY_FUNCTION__ may be compatibility issues. I believe that __FILE__ and __LINE__ and standard C though. ---

[issue9263] Try to print repr() when an C-level assert fails (in the garbage collector, beyond?)

2010-11-22 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I don't think there's anything wrong with the setup we've been looking at so far, per se. The libpython2.7.a file produced has the 'round' function like it should: > nm libpython2.7.a | grep round [116] | 1360| 696|FUNC |GLOB |0|2 |_Py_double_rou

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-11-22 Thread Georg Brandl
Georg Brandl added the comment: patchcheck.py is not so complicated; why don't you debug that hangup yourself? -- ___ Python tracker ___ _

[issue9162] License for multiprocessing files

2010-11-22 Thread Jesse Noller
Jesse Noller added the comment: We have to add the BSD header and maintain the copyright clause on all of the multiprocessing files. Apologies for the delay -- ___ Python tracker __

[issue1647654] No obvious and correct way to get the time zone offset

2010-11-22 Thread Max Arnold
Max Arnold added the comment: Our region recently switched to another timezone and I've noticed similar issue while using Mercurial. There is some (hopefully) useful details: http://mercurial.selenic.com/bts/issue2511 -- nosy: +LwarX ___ Python tra

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2010-11-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Indeed, now that I google for "getlogin", it's not easy to figure out what kind of user it is supposed to return exactly. For getuid() it seems pretty clear that we're talking about _real_ uid, though. http://www.manpagez.com/man/2/getuid/ http://linux.die.

[issue9162] License for multiprocessing files

2010-11-22 Thread Daniel Tavares
Daniel Tavares added the comment: Hi Jesse, Any word from PSF board regarding this issue? I was hoping to fix it and have it be my 1st contribution to Python. Thanks -- nosy: +dBugSlayer ___ Python tracker _

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-11-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +aclover ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-22 Thread R. David Murray
R. David Murray added the comment: This is a duplicate if issue 9291. -- nosy: +r.david.murray stage: -> committed/rejected status: open -> closed superseder: -> mimetypes initialization fails on Windows because of non-Latin characters in registry ___

[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread R. David Murray
R. David Murray added the comment: This is working as designed. Whether or not the design is correct has been debated in the past. If you want to re-debate it the appropriate place is probably python-ideas. -- nosy: +bethard, r.david.murray resolution: -> invalid status: open -> cl

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2010-11-22 Thread R. David Murray
R. David Murray added the comment: These are wrappers around the posix functions. As such the unix man pages are a better authority than the Python docs :) Still, we could certainly improve the docs. The getlogin error is probably a miscopy from the man page: the man page on my system show

[issue6878] changed return type from tkinter.Canvas.coords

2010-11-22 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6878] changed return type from tkinter.Canvas.coords

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r86697 (3.2) and r86698 (3.1). @Éric: I tried to minimize whitespace changes in the commit, but if you see indentation that can be improved, let me know and I'll fix it separately. @SilentGhost: Yes, the problem is real. For example, turtl

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Doug Shea
Doug Shea added the comment: > ./python Python 2.7 (r27:82500, Nov 22 2010, 10:06:14) [GCC 3.3.2] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.float_repr_style short So it appears, if I follow you, that PY_NO_SHORT_FLOAT_REPR is n

[issue6878] changed return type from tkinter.Canvas.coords

2010-11-22 Thread SilentGhost
SilentGhost added the comment: In my original post, I mentioned that it might be just a documentation issue. Could someone confirm that having map object returned is actually causing any problems? -- ___ Python tracker

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-22 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's an updated patch which address's Matthias's last concerns. -- Added file: http://bugs.python.org/file19776/9807.txt ___ Python tracker _

[issue9807] deriving configuration information for different builds with the same prefix

2010-11-22 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file19564/9807.txt ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-11-22 Thread Brett Cannon
Brett Cannon added the comment: Just ran it without issue after doing an `svn up`. As for fix vs. not, while fixing indentations and removing trailing whitespace is nice, it isn't necessary. Both instances should be a rarity (most IDEs will make sure the situation doesn't occur), so the most

[issue10435] Document unicode C-API in reST

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Nov 17, 2010 at 5:20 PM, Marc-Andre Lemburg wrote: .. > -/* Encodes a Unicode object and returns the result as Python string > +/* Encodes a Unicode object and returns the result as Python bytes >    object. */ > > > PyUnicode_AsEncodedObject() en

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks. I'm still stuck, though. Since I'm pretty much at the wild guesses stage, here's one: Perhaps the pymath.o object file isn't being included in the Python executable at all, because none of its functions are needed. Now that doesn't seem to make s

[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Andreas Stührk
Changes by Andreas Stührk : -- keywords: +patch Added file: http://bugs.python.org/file19775/PyTokenizer_FindEncoding_fix.patch ___ Python tracker ___ ___

[issue10509] PyTokenizer_FindEncoding can lead to a segfault if bad characters are found

2010-11-22 Thread Andreas Stührk
New submission from Andreas Stührk : If a non-ascii character is found and there isn't an encoding cookie, a SyntaxError is raised (in `decoding_fgets`) that includes the path of the file (using ``tok->filename``), but that path is never set. You can easily reproduce the crash by calling `imp.

[issue10508] compiler warnings about formatting pid_t as an int

2010-11-22 Thread Jesús Cea Avión
New submission from Jesús Cea Avión : In r85679 Greorg committed a trivial patch to avoid a compiler warning. I request this (single line fix) to be backported to 2.7. My argument is that 2.7 is going to be live for quite long, the fix is trivial, it is already in use in Py3k branch, and we wo

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
Johann Hanne added the comment: > What's the objective of this patch? I.e. what precisely is it supposed to > achieve? So the answer is: It will fix compiling with gcc/MinGW by fixing the 3 issues described. -- ___ Python tracker

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
Johann Hanne added the comment: Python 2.7 will currently not compile with MinGW for the outlined reasons. * There are several "#if defined(_MSC_VER)" macros which surround Windows specific code/preprocessor fragments. But _MSC_VER is only defined with the Visual Studio compiler, not with gcc

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher added the comment: The test_pydoc method looks workable, but I'll need to come back to it later because I don't have any more time to work on it today. -- ___ Python tracker __

[issue10087] HTML calendar is broken

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 22, 2010 at 11:55 AM, Chris Lambacher wrote: .. > 1. Any suggestions about how to test the output of the console program (the > case that this bug affects) > would be appreciated. For month displays, a doctest may be most appropriate. See Li

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher added the comment: I am attaching a new patch which fixes the majority of the comments raised. 1. Any suggestions about how to test the output of the console program (the case that this bug affects) would be appreciated. 2. Agreed, included in the output for --help 3. Agreed,

[issue10220] Make generator state easier to introspect

2010-11-22 Thread Guido van Rossum
Guido van Rossum added the comment: Yes please. On Mon, Nov 22, 2010 at 7:44 AM, Nick Coghlan wrote: > > Nick Coghlan added the comment: > > Temporarily reopening to remind me to switch from using integer constants to > strings (which are much friendlier for debugging purposes). > >

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Doug Shea
Doug Shea added the comment: Certainly! -- Added file: http://bugs.python.org/file19773/pyconfig.h ___ Python tracker ___ ___ Python-b

[issue10450] Fix markup in Misc/NEWS

2010-11-22 Thread Dave Malcolm
Dave Malcolm added the comment: Opened as issue 10507 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10507] Check well-formedness of reST markup within "make patchcheck"

2010-11-22 Thread Dave Malcolm
New submission from Dave Malcolm : Misc/NEWS needs to be valid reST. Issue 10450 identified an issue where it wasn't. "make patchcheck" potentially could check the markup of that file, and, potentially all the other places in the source tree that are supposed to be valid reST (all of the .rst

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. That's puzzling indeed. I made a claim earlier that 'round' is already used in Objects/floatobject.c, but it occurs to me now that that's not true if PY_NO_SHORT_FLOAT_REPR is #defined. Could you attach the pyconfig.h file produced by configure? -

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: What's the objective of this patch? I.e. what precisely is it supposed to achieve? -- nosy: +loewis ___ Python tracker ___ __

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I unpacked a fresh tarball, made this change, then did a ./configure and make as normal. Exact same error as originally reported. :( -- ___ Python tracker _

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Mark Dickinson
Mark Dickinson added the comment: Doug: thanks. I think I may just be being stupid here. One thing you might try is replacing the line extern double round(double); in Include/pymath.h, with: PyAPI_FUNC(double) round(double); and see if that helps. --

[issue10220] Make generator state easier to introspect

2010-11-22 Thread Nick Coghlan
Nick Coghlan added the comment: Temporarily reopening to remind me to switch from using integer constants to strings (which are much friendlier for debugging purposes). -- status: closed -> open ___ Python tracker

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

2010-11-22 Thread nh2
nh2 added the comment: My problem was actually related to the subprocess.Popen I use inside my threads in combination with signals. As Popen does not spawn a new thread, but a new process, it completely ignores my locks. However, it seems impossible to safely unregister signals for subprocess

[issue10087] HTML calendar is broken

2010-11-22 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Nov 22, 2010 at 9:48 AM, Chris Lambacher wrote: .. > I don't understand what you mean by "elides the line breaks in output". It is actually not that bad: $ ./python.exe -m calendar -t html| wc -l 121 $ python2.7 -m calendar -t html| wc -l

[issue9742] Python 2.7: math module fails to build on Solaris 9

2010-11-22 Thread Doug Shea
Doug Shea added the comment: I have some knowledge of these things, so I'll try to find out what's going on, but I could also upload output and/or debug files here for you to examine, if that helps. If you give me the files you'd like to see from my build, or the commands you'd like the outpu

[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread Tarsis Azevedo
New submission from Tarsis Azevedo : Hi all, when I use argparse in python prompt, and raise a exception, as the code below: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('-i' type=int) >>> parser.parse_args(['-i', 'a']) the prompt is closed

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

2010-11-22 Thread Antoine Pitrou
Antoine Pitrou 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 pro

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

2010-11-22 Thread Stefan Krah
Stefan Krah added the comment: On Windows, test_compileall fails due to #10197. The patch uses subprocess.check_output() instead. Technically, now byte strings are compared instead of strings, but that should not matter for the outcome. -- nosy: +skrah Added file: http://bugs.python.org

[issue10087] HTML calendar is broken

2010-11-22 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10087] HTML calendar is broken

2010-11-22 Thread Chris Lambacher
Chris Lambacher added the comment: I don't understand what you mean by "elides the line breaks in output". They are still there, you just don't see them as \n because print() is no longer implicitly converting the bytes to a string (which appears to actually result in a repr). -- __

[issue10505] test_compileall: failure on Windows

2010-11-22 Thread Éric Araujo
Éric Araujo added the comment: Can you post on #10453? Thanks in advance. -- nosy: +eric.araujo resolution: -> duplicate stage: patch review -> committed/rejected status: open -> closed superseder: -> Add -h/--help option to compileall ___ Python

[issue10505] test_compileall: failure on Windows

2010-11-22 Thread Stefan Krah
New submission from Stefan Krah : On Windows, test_compileall fails due to #10197: == FAIL: test_quiet (test.test_compileall.CommandLineTests) -- Traceback (mos

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread anatoly techtonik
anatoly techtonik added the comment: On Mon, Nov 22, 2010 at 3:59 PM, Éric Araujo wrote: > > Using either /home/user or tempfile depending on the example seems good to me. There is no /home/user on Windows. -- ___ Python tracker

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

2010-11-22 Thread R. David Murray
R. David Murray added the comment: I had a report from a user on IRC during the bug weekend that they could not reproduce the failure on windows. So it may be dependent on the windows version. That doesn't answer your question of why it hasn't come up before, though, since my tests were don

[issue9095] patchcheck should handle extraneous whitespace in .rst files

2010-11-22 Thread Éric Araujo
Éric Araujo added the comment: I tried to use “make patchcheck” after edits to reST files and it hung. Do you have the same behavior? I suspect reindent-rst is the culprit. I’m wondering about the reindenting; other checks in patchcheck don’t edit files, they just print warnings. On the ot

[issue10351] Add autocompletion for keys in dictionaries

2010-11-22 Thread Éric Araujo
Éric Araujo added the comment: Review time! +elif "[" in text: +self.matches = self.dict_key_matches(text) Does this complete only dicts? What about other mappings? What about other sequences implementing __getitem__? One of the function name and the function do

[issue10490] mimetypes read_windows_registry fails for non-ASCII keys

2010-11-22 Thread And Clover
Changes by And Clover : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue8890] Use tempfile instead of /tmp in examples

2010-11-22 Thread Éric Araujo
Éric Araujo added the comment: Whatsnew documents are not edited after the corresponding release is done. Using either /home/user or tempfile depending on the example seems good to me. -- stage: needs patch -> patch review ___ Python tracker

[issue10503] os.getuid() documentation should be clear on what kind of uid it is referring

2010-11-22 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Update: I think also os.getlogin() doc is wrong. This is what it states (2.7 doc): > Return the name of the user logged in on the controlling terminal of > the process. For most purposes, it is more useful to use the > environment variable LOGNAME to find

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

2010-11-22 Thread Éric Araujo
Changes by Éric Araujo : -- stage: unit test needed -> patch review versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Pyth

[issue10504] Trivial mingw compile fixes

2010-11-22 Thread Johann Hanne
New submission from Johann Hanne : There are a number of mingw compile issues which are easily fixed * some "_MSC_VER" #if's should be "MS_WINDOWS" instead * for cross-compiling, windows.h should be all-lowercase * mingw has a strcasecmp, so private implementations must not use that name ---

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

2010-11-22 Thread Wes Chow
Wes Chow added the comment: This same bug also exists in HTTPClient, and my patch addresses that. Addressing it in HTTPClient has a side effect of taking care of it for urllib2 as well (and all future libraries that use HTTPClient). Even if the urllib2 patch is preferable, shouldn't we fix th

  1   2   >