[issue7190] Problems running threaded Tkinter program under OS X IDLE

2009-11-10 Thread Ronald Oussoren
Ronald Oussoren added the comment: The "graphics" module runs Tk in a separate thread, which means it accesses the Apple GUI frameworks from a thread that is not the main thread. This is AFAIK not supported by Apple, which would explain why it doesn't work. I'll look for a link to the rele

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed revision 76209 - release26-maint Committed revision 76210 - py3k Committed revision 76211 - release31-maint Thanks Derk for the patch. -- resolution: -> fixed status: open -> closed ___ Python tracker <

[issue7190] Problems running threaded Tkinter program under OS X IDLE

2009-11-10 Thread Ned Deily
Ned Deily added the comment: The test program depends on an external third-party module graphics. >From the problem description and a web search, I assume the file is: http://mcsp.wartburg.edu/zelle/python/graphics.py Can you confirm that? Using that module, target.py runs on 10.5 invoki

[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- nosy: +pje ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed revision 76208 in trunk. Shall look at the output of windows buildbots and merge the changes to other codelines. -- ___ Python tracker _

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-10 Thread Tatsuhiro Tsujikawa
Changes by Tatsuhiro Tsujikawa : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Philip Jenvey
Changes by Philip Jenvey : -- nosy: +pjenvey ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7304] email.message.Message.set_payload and as_string given charset 'us-ascii' plus 8bit data produces invalid message

2009-11-10 Thread R. David Murray
New submission from R. David Murray : The following produces a non-conformant message, since the us-ascii charset is strictly 7bit: >>> import email.message >>> m = email.message.Message() >>> m.set_payload("""A few lines ... of 8-bit text ... ... One high bit character: ². ... """, 'us-ascii')

[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread ulrik
New submission from ulrik : The module pkgutil has no documentation of functions added after its introduction, in the official python documentation collection. http://docs.python.org/dev/py3k/library/pkgutil.html The module is well documented with docstrings. I assume the module's exposed func

[issue2399] Patches for Tools/msi

2009-11-10 Thread Martin v . Löwis
Martin v. Löwis added the comment: Strictly speaking, they apply to Tools/msi only (IIUC). So adjusting them to msilib is likely extra work. -- ___ Python tracker ___ ___

[issue7197] test_multiprocessing crashes under Windows when run in verbose mode

2009-11-10 Thread Jesse Noller
Jesse Noller added the comment: Please do; I've been swamped - I'm sorry -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue7197] test_multiprocessing crashes under Windows when run in verbose mode

2009-11-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, if nobody objects, I will commit it since it's simple enough and blocks any attempt at diagnosing test_multiprocessing under Windows. -- ___ Python tracker

[issue7290] Update 'how do I set a global variable' faq entry

2009-11-10 Thread R. David Murray
R. David Murray added the comment: Committed, with your suggested rewording, in r76190. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue3001] RLock's are SLOW

2009-11-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the latest patch in r76189. Thanks for the reviews, everyone. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue7072] isspace(0xa0) is true on Mac OS X

2009-11-10 Thread Ned Deily
Changes by Ned Deily : -- assignee: -> ronaldoussoren components: +Macintosh nosy: +ronaldoussoren versions: -Python 3.0 ___ Python tracker ___ _

[issue7302] Wrong link to Python Language Mapping Specification

2009-11-10 Thread Egon Frerich
New submission from Egon Frerich : There is a wrong link in http://docs.python.org/library/xml.dom.html#domimplementation-objects Python Language Mapping Specification is linked to http://www.omg.org/docs/formal/02-11-05.pdf but I assume it should be http://www.omg.org/spec/PYTH/1.2/PDF ---

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Derk Drukker
Changes by Derk Drukker : Removed file: http://bugs.python.org/file15181/fix-issue1235-py3k.patch ___ Python tracker ___ ___ Python-bugs-list m

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Derk Drukker
Derk Drukker added the comment: orsenthil: I reverted the changes that make Windows and Unix use the same code in Patch Set 3, and briefly mentioned the reason for that in the Rietveld app. I should have mentioned it here too. It was because it actually makes the implementation on Unix worse,

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-11-10 Thread Ned Deily
Ned Deily added the comment: The missing return result in the else case has been subsequently fixed in r75539 (py3k) and r75541 (3.0) so this issue should be re-closed. -- ___ Python tracker __

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, I'm running out of ideas. The traceback is truly baffling. I'm not sure why you're configuring with --with-fpectl. Does removing this make any difference? Maybe you could also try copying _PyHash_Double into a small test program, calling it with an

[issue1235] CGIHTTPRequestHandler.run_cgi() does not run on Windows if sys.executable contains blanks

2009-11-10 Thread Senthil Kumaran
Senthil Kumaran added the comment: drukker: I verified your patch. Looks fine for changes made to the subprocess call. You mentioned: I've also unified the Unix and Windows portions in run_cgi. Both now use subprocess." I don't see it in the patch. Was it that you assumed changing the variabl

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread jasper
jasper added the comment: this little test program: #include int main(int argc, char*argv[]) { printf("short = %d\n", sizeof(short)); printf("int = %d\n", sizeof(int)); printf("float = %d\n", sizeof(float)); printf("long = %d\n", sizeof(long)); printf("double = %d\n", sizeof(double));

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. I don't understand that backtrace at all. It seems to say that the conversion of this particular double value (2.34e17) to long is causing some kind of arithmetic exception. I'd assume overflow, except that the configure script says sizeof(long) == 8, an

[issue2399] Patches for Tools/msi

2009-11-10 Thread Rene Dudfield
Rene Dudfield added the comment: Adding distutils to components for this old msi patch. These seem like useful things for those making msi packages with distutils. -- components: +Distutils nosy: +illume ___ Python tracker

[issue2422] Automatically disable pymalloc when running under valgrind

2009-11-10 Thread Dave Malcolm
Changes by Dave Malcolm : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread jasper
jasper added the comment: After properly compiling with -O0, it actually gets a lot further in the build. It crashes elsewhere though: PYTHONPATH=/usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6 ./python -Wi -tt /usr/obj/ports/Python-2.6.3/fake-sgi/usr/local/lib/python2.6/compile

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : It would be very useful to have an environment variable $PYTHONWARNINGS, tied to the -W option for silencing various warnings (most importantly, DeprecationWarnings). Use case: a test suite running many subprocesses, testing that those subproc output is clea

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Here are some tests. -- keywords: +patch stage: -> needs patch Added file: http://bugs.python.org/file15306/issue7298_test.patch ___ Python tracker ___

[issue7267] format method: c presentation type broken

2009-11-10 Thread Walter Dörwald
Walter Dörwald added the comment: Done: issue 7300. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue7300] Unicode arguments in str.format()

2009-11-10 Thread Walter Dörwald
New submission from Walter Dörwald : str.format() doesn't handle unicode arguments: Python 2.6.4 (r264:75706, Oct 27 2009, 15:18:04) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> '{0}'.format(u'\u3042') Traceback (most r

[issue7267] format method: c presentation type broken

2009-11-10 Thread Eric Smith
Eric Smith added the comment: > so str.format() might raise an OverflowError for values >= 128 (or >= 256?) Maybe, but the issue you reported is in unicode.format() (not str.format()), and I think that should be fixed. I'm trying to think of how best to address it. As for the second issue you

[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2009-11-10 Thread Tarek Ziadé
Tarek Ziadé added the comment: install_userbase is using USER_BASE which is in site.py. This value is initialized when Python starts, and does check for PYTHONUSERBASE in the environ. (if ENABLE_USER_SITE is true) If this doesn't happen, this is most likely because the user can't write to its

[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2009-11-10 Thread Matthias Klose
New submission from Matthias Klose : Got an user report about setup.py install not honoring PYTHONUSERBASE. Is this by design? If not, the attached patch seems to implement this functionality. -- assignee: tarek components: Distutils files: userbase.diff keywords: patch, patch messages:

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Further investigations show that range_iter has the same problem. :-( >>> for x in range(-1, 2**63-1): print(x) ... (no output) This really needs to be fixed. Upgrading to release blocker, and removing the easy flag. -- keywords: -easy priority: cr

[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli
Francesco Frassinelli added the comment: Site: http://ftp.vim.org/pub/vim/unstable/patches/ Outuput without error customized function: [...] File "./takeit.py", line 54, in inspect parser.feed(data.read().decode()) File "/home/frafra/Scrivania/takeit/html/parser.py", line 107, in feed

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: There's another problem with range_reverse: it uses a short range (all fields longs) if start, stop and step fit into a C long. But it doesn't check whether the length fits into a C long. This leads to the following: >>> list(reversed(range(-1, 2**63-1))) []

[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli
Francesco Frassinelli added the comment: I'm using Python 3.1.1 and the patch (patch.txt, provided by smroid) works very well. It's usefull, and I really need it, thanks :) Without this patch, I can't parse: http://ftp.vim.org/pub/vim/ (due to a fake tag, like ""), and many others websites. I h

[issue7290] Update 'how do I set a global variable' faq entry

2009-11-10 Thread Ole Laursen
Ole Laursen added the comment: As the reporter of issue 7276, I think it's a clear explanation of this phenomonen. I think that maybe you should remove the "New Python programmers" in "New Python programmers are often surprised when they get this error in previously working code when they mo

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Nice catch! Thanks for reporting this. get_len_of_range in Objects/rangeobject.c only works for positive steps, but is being called with a negative step here. I think get_len_of_range should be changed to work with both positive and negative steps. It's only

[issue7298] reversed(range(x, -1, -1)) is empty when x > 1

2009-11-10 Thread ledave123
New submission from ledave123 : On python 2.4.4, reversed(range()) is correct : >>> list(reversed(range(12,-1,-1))) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12] However, on python 3.1.1 : >>> list(reversed(range(12,-1,-1))) [] which is obviously wrong. When step is positive, the result is okay on

[issue7296] OverflowError: signed integer is greater than maximum on mips64

2009-11-10 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for filing the report! Some questions: If you configure with the --with-pydebug option, and also do whatever else (if anything) is necessary to remove the -O2 flag from the compilation steps, does the build failure still occur? What's the minimal Pytho

[issue7295] test_tarfile uses a hardcoded file name

2009-11-10 Thread Lars Gustäbel
Lars Gustäbel added the comment: I attached a patch that uses TESTFN. Please verify that it works and then one of us checks it in. -- keywords: +patch Added file: http://bugs.python.org/file15304/issue7295.diff ___ Python tracker