[issue7295] test_tarfile uses a hardcoded file name

2009-11-10 Thread Lars Gustäbel
Lars Gustäbel l...@gustaebel.de 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

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

2009-11-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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?

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

2009-11-10 Thread ledave123
New submission from ledave123 ledave...@yahoo.fr: 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

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

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

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

2009-11-10 Thread Ole Laursen
Ole Laursen o...@iola.dk 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

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

2009-11-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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:

[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli
Francesco Frassinelli frap...@gmail.com 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

[issue755660] allow HTMLParser to continue after a parse error

2009-11-10 Thread Francesco Frassinelli
Francesco Frassinelli frap...@gmail.com 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 u...@mail.com),

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

2009-11-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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:

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

2009-11-10 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7298 ___ ___ Python-bugs-list mailing

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

2009-11-10 Thread Matthias Klose
New submission from Matthias Klose d...@debian.org: 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,

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

2009-11-10 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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

[issue7267] format method: c presentation type broken

2009-11-10 Thread Eric Smith
Eric Smith e...@trueblade.com 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

[issue7267] format method: c presentation type broken

2009-11-10 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: Done: issue 7300. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7267 ___ ___

[issue7300] Unicode arguments in str.format()

2009-11-10 Thread Walter Dörwald
New submission from Walter Dörwald wal...@livinglogic.de: 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')

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

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

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: 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

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

2009-11-10 Thread jasper
jasper jas...@humppa.nl 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

[issue2422] Automatically disable pymalloc when running under valgrind

2009-11-10 Thread Dave Malcolm
Changes by Dave Malcolm dmalc...@redhat.com: -- nosy: +dmalcolm ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2422 ___ ___ Python-bugs-list

[issue2399] Patches for Tools/msi

2009-11-10 Thread Rene Dudfield
Rene Dudfield ill...@users.sourceforge.net 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

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

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

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

2009-11-10 Thread jasper
jasper jas...@humppa.nl added the comment: this little test program: #include unistd.h 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,

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

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

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

2009-11-10 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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,

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

2009-11-10 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org

[issue7302] Wrong link to Python Language Mapping Specification

2009-11-10 Thread Egon Frerich
New submission from Egon Frerich e.frer...@nord-com.net: 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

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

2009-11-10 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: - ronaldoussoren components: +Macintosh nosy: +ronaldoussoren versions: -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7072 ___

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

2009-11-10 Thread Derk Drukker
Changes by Derk Drukker derk.druk...@gmail.com: Removed file: http://bugs.python.org/file15181/fix-issue1235-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1235 ___

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

2009-11-10 Thread Derk Drukker
Derk Drukker derk.druk...@gmail.com 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

[issue3001] RLock's are SLOW

2009-11-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed the latest patch in r76189. Thanks for the reviews, everyone. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3001

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

2009-11-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed, with your suggested rewording, in r76190. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

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

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

2009-11-10 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Please do; I've been swamped - I'm sorry -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7197 ___

[issue2399] Patches for Tools/msi

2009-11-10 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Strictly speaking, they apply to Tools/msi only (IIUC). So adjusting them to msilib is likely extra work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2399

[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread ulrik
New submission from ulrik ulrik.sverd...@gmail.com: 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

[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 rdmur...@bitdance.com: 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: ². ... ,

[issue7301] Add environment variable $PYTHONWARNINGS

2009-11-10 Thread Philip Jenvey
Changes by Philip Jenvey pjen...@underboss.org: -- nosy: +pjenvey ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7301 ___ ___ Python-bugs-list

[issue7291] urllib2 cannot handle https with proxy requiring auth

2009-11-10 Thread Tatsuhiro Tsujikawa
Changes by Tatsuhiro Tsujikawa tsujik...@gp.hitachi.co.jp: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7291 ___ ___

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

2009-11-10 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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 rep...@bugs.python.org

[issue7303] pkgutil lacks documentation for useful functions

2009-11-10 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7303 ___ ___ Python-bugs-list

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

2009-11-10 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2009-11-10 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com 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 ___

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

2009-11-10 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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