[issue7642] Minor improvement to os.system doc

2010-10-13 Thread Sandro Tosi
Sandro Tosi added the comment: On Thu, Oct 14, 2010 at 08:36, Georg Brandl wrote: > > Georg Brandl added the comment: > > Unfortunately, the rewrap makes it much more complicated to see what  the > patch changes (i.e. the whole second part of the hunk only adds Windows > versions).  Please l

[issue10046] Correction to atexit documentation

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r85452. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue3865] explain that profilers should be used for profiling, not benchmarking

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: Freshed up and committed in r85451. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue7642] Minor improvement to os.system doc

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: Unfortunately, the rewrap makes it much more complicated to see what the patch changes (i.e. the whole second part of the hunk only adds Windows versions). Please leave that to the committer in the future. Otherwise, committed in r85450; I also removed mentio

[issue4388] test_cmd_line fails on MacOS X

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: One solution would be to duplicate the UTF-8 decoder for OSX, incorporating surrogate escape. This should be much shorter than the full UTF-8 codec, and perhaps at least utf8_code_length could be shared. -- ___ Py

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-13 Thread Bruce Sherwood
Bruce Sherwood added the comment: Thanks for catching the missing utils.py file. I can explain the missing/commented statement in IOBinding.py. I found experimentally that if that statement is present, when you open a file on Windows the first line is off the top of the display, which can be

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: The failure of platform.uname is an independent bug. IMO, it shouldn't use socket.gethostname on Windows, but instead look at the COMPUTERNAME environment variable or call the GetComputerName API function. This is more close to what uname() does on Unix (i.e

[issue10049] Add a "no-op" (null) context manager to contextlib

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: I like your latest suggestion, except for the name. Given that we also have the (quite generic) "closing", what about just "optional"? -- nosy: +georg.brandl ___ Python tracker __

[issue10097] platform.uname gives UnicodeError for non-ASCII computer names on Windows

2010-10-13 Thread Martin v . Löwis
New submission from Martin v. Löwis : Reportedly, platform.uname gives UnicodeError for non-ASCII computer names on Windows, see http://www.pasteall.org/16215 I think it is incorrect that _node uses socket.gethostname on Windows. uname() should return the local hostname (i.e. the one that the

[issue10096] Question regarding python migration

2010-10-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Please ask python-l...@python.org Bug tracker is for raising bugs on python. -- nosy: +orsenthil resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-13 Thread Ned Deily
Ned Deily added the comment: Thanks for creating the patch. Since it is a feature, it would be considered to be applied to the current py3k branch (which at the moment is what will be going into the 3.2 release) rather than 3.1 which is generally only accepting bug fixes. By the way, since

[issue10096] Question regarding python migration

2010-10-13 Thread Pramod T Sridhar
New submission from Pramod T Sridhar : Hi All, We have a Python based test framework which is being used in various projects. Our current environment is Python (ver 2.5.1) wxPython (wxPython2.8-win32-ansi-2.8.6.0-py25) pywin32-210.win32-py2.5 vcredist_x86.exe pyserial-2.2 Our Framework is bei

[issue3482] re.split, re.sub and re.subn should support flags

2010-10-13 Thread Matt Keeler
Matt Keeler added the comment: Python 2.7 docs say this was added in 2.7.3.1 Python 3.1 docs say this was added in 3.1 The problem with calling 're.split(pattern, string, re.I)' is that you are using positional arguments only. If you were to do 're.split(pattern, string, flags=re.I)', that s

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Brian Curtin
Brian Curtin added the comment: Backported test_gzip to to release27-maint in r85446. Backported test_mailbox to to release27-maint in r85447. Backported test_bz2 to to release27-maint in r85448. Fixed test_old_mailbox, the original problem file, in release27-maint in r85449. -- _

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/10/13 Alex : > > Alex added the comment: > > RuntimeWarning you mean?  I don't think anyone is suggesting making it an > error. Indeed. -- ___ Python tracker __

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Alex
Alex added the comment: RuntimeWarning you mean? I don't think anyone is suggesting making it an error. -- nosy: +alex ___ Python tracker ___ __

[issue9992] Command-line arguments are not correctly decoded if locale and fileystem encodings are different

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: test_undecodable_env() of test_subprocess fails. r85430 removes the following code which was added by Antoine to fix this issue. # Force surrogate-escaping of \xFF in the child process; # otherwise it can be decoded as-is if the default locale # is latin-1. en

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: +1 for RuntimeError. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If the warnings are emitted as usual with the warnings module, you can > use -W to control this. Right. Perhaps we can add a new warning category (e.g. ResourceWarning), or simply reuse RuntimeWarning. -- ___ Py

[issue10095] Support undecodable filenames in the parser API

2010-10-13 Thread STINNER Victor
New submission from STINNER Victor : It looks like the parser API (eg. PyParser_ParseFileFlagsEx, PyParser_ASTFromFile) expects utf-8 filename: err_input() decodes the filename from utf-8. But Example in a non-ascii directory (/home/SHARE/SVN/py3kéŁ) and an ascii locale: $ LANG= ./python

[issue4388] test_cmd_line fails on MacOS X

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: osx_utf8_cmdline.patch: copy of r85435. -- Added file: http://bugs.python.org/file19228/osx_utf8_cmdline.patch ___ Python tracker ___ __

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-13 Thread David Watson
David Watson added the comment: > platform.system() fails with UnicodeEncodeError on systems that have their > computer name set to a name containing non-ascii characters. The > implementation of platform.system() uses at some point socket.gethostname() ( > see http://www.pasteall.org/16215 f

[issue4388] test_cmd_line fails on MacOS X

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: > This issue should be fixed by r85435 ... > I will watch for the OSX buildbots. I don't know if it fixes the issue, but it introduces a regression. r85442 reverts it. --- Revert r85435 (and r85440): decode command line arguments from utf-8 Python exits wi

[issue9005] Year range in timetuple

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r85441. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue10049] Add a "no-op" (null) context manager to contextlib

2010-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: To me, this is more a matter of conceptual completeness than one of practical utility (ala fractions.Fraction). That said, I *have* personally encountered the "I only sometimes want to wrap this code in a CM" situation, so it isn't completely impractical, eithe

[issue10094] test_urllib.py fails in py3k r85440 with RuntimeError

2010-10-13 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : Running the test suite on py3k r85440, I get the following failure: == ERROR: test_getproxies_environment_keep_no_proxies (__main__.ProxyTests) -

[issue10014] sys.path[0] is incorrect if PYTHONFSENCODING is used

2010-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue4388] test_cmd_line fails on MacOS X

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: This issue should be fixed by r85435 (OSX: decode command line arguments from utf-8), see #9992. I will watch for the OSX buildbots. -- ___ Python tracker ___

[issue9988] test_warnings fails with PYTHONFSENCODING=latin-1 on UNIX/BSD

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r85430 (remove PYTHONFSENCODING), see #9992. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue10014] sys.path[0] is incorrect if PYTHONFSENCODING is used

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r85430 (remove PYTHONFSENCODING), see #9992. -- resolution: -> fixed ___ Python tracker ___ _

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: If the warnings are emitted as usual with the warnings module, you can use -W to control this. -X isn't necessary. -- nosy: +exarkun ___ Python tracker

[issue10039] python é.py fails with UnicodeEncodeErr or if PYTHONFSENCODING is used

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r85430 (remove PYTHONFSENCODING), see #9992. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9992] Command-line arguments are not correctly decoded if locale and fileystem encodings are different

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: I commited issue9992.patch as r85430 (remove PYTHONFSENCODING) + r85435 (OSX: decode command line arguments from utf-8). These commits should fix this issue. Reopen the issue if you notice new problems, or if the problem is not fixed yet. I will watch Mac OS

[issue7287] import hook demo does not work

2010-10-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/10/13 Sandro Tosi : > > Sandro Tosi added the comment: > > Hi Benjamin, > you are the author of r63966 (I know, it's quite old, sorry about that) where > you removed Demo/imputil/importers.py : do you think Demo/imputil/knee.py is > still something in

[issue7287] import hook demo does not work

2010-10-13 Thread Benjamin Peterson
Benjamin Peterson added the comment: See r85429. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread Dave Malcolm
Dave Malcolm added the comment: > About SIGBUS: I don't know this signal. Is it used on Linux? If not, on > which OS is it used? Yes, IIRC typically you'll only see it on RISC CPUs that require instructions to be word-aligned; you typically see it if the program counter jumps to a broken addr

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: TODO (maybe): Call the original signal handler to make tools like apport or ABRT able to catch segmentation faults. > By the way, don't you want to handle SIGILL and SIGBUS too? Maybe. SIGILL is a very rare exception. To test it, should I send a SIGILL signa

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: Version 6: - don't use fputc(), fputs(), fprintf() or fflush() on stderr: use write() on file descriptor 2 (should be stderr) - write tests: add sigsegv(), sigfpe() and fatal_error() functions to the _testcapi module I was too lazy to reimplement functions

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-10-13 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, on an up-to-date 2.7 I can't replicate this bug: $ ./python Lib/test/regrtest.py test_distutils test_distutils 1 test OK. Is it just me or is been fixed already? -- nosy: +sandro.tosi versions: -Python 2.6 ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-10-13 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: @Antoine already found that myself, patched and tested :) thanks! -- Added file: http://bugs.python.org/file19226/issue7523_py3k_accept4_2.diff ___ Python tracker ___

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file19225/deallocwarn.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file19224/deallocwarn.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For some reason does another trip through BEGIN_SELECT_LOOP() macro Indeed: if (!timeout) +#ifdef HAVE_ACCEPT4 +/* inherit socket flags and use accept4 call */ +flags = s->sock_type & (SOCK_CLOEXEC | SOCK_NONBLOCK); +newfd = acce

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-13 Thread Nathan Letwory
Nathan Letwory added the comment: platform.system() fails with UnicodeEncodeError on systems that have their computer name set to a name containing non-ascii characters. The implementation of platform.system() uses at some point socket.gethostname() ( see http://www.pasteall.org/16215 for a s

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-10-13 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Here's what strace on FAIL shows (print "in alarm_handler" added) alarm(2)= 0 poll([{fd=3, events=POLLIN}], 1, 5000) = ? ERESTART_RESTARTBLOCK (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0x)

[issue10086] test_sysconfig failure with site-packages

2010-10-13 Thread Hallvard B Furuseth
Hallvard B Furuseth added the comment: "./configure --prefix=/site" on Ubuntu. Unedited site.py. I had Python3.2a2 installed, but removing it did not make the test do anything different. Nor did removing /home/sjef/.local/lib/python3.2, which only contained an empty site-packages/. --

[issue10089] Add support for arbitrary -X options

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: See issue10093 for a possible use case. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, python-dev discussion was here: http://mail.python.org/pipermail/python-dev/2010-September/104247.html The rough consensus seems to be that there should be a command-line option to enable it, but to enable it by default with pydebug. -- no

[issue10093] Warn when files are not explicitly closed

2010-10-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch outputs a warning on file deallocation when it hasn't been explicitly closed by the programmer. Printing the warning by default is probably not desirable, but using the patch for "-X" options in issue10089 would allow to switch on when necessary.

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Note that .decode(encoding) calls have been deliberately removed in py3k: see issue 3059. -- nosy: +georg.brandl, gpolo ___ Python tracker _

[issue4111] Add Systemtap/DTrace probes

2010-10-13 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: What do we need to have this ready for Python 3.2?. The oportunity window is closing fast, and 3.3 is two years away... So now or never... -- ___ Python tracker

[issue4111] Add Systemtap/DTrace probes

2010-10-13 Thread Dave Malcolm
Dave Malcolm added the comment: Updated version of patch attached (against py3k; r85426) I've changed the names back to "function__entry" and "function__return". -- ___ Python tracker _

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue2775] Implement PEP 3108

2010-10-13 Thread Brett Cannon
Brett Cannon added the comment: The reorganization is over short of one or two lasting changes that may not even be made now. New suggestions are not directly being discussed here and would have to be taken up on python-dev. -- ___ Python tracker

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +christian.heimes, georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10078] Documentation: 'Postive' should be 'Positive'

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: @OP: In general, we do apply such changes to all branches they can be fixed in. Since this is done by merging from py3k to the other branches, it can be done later than the commit to py3k, or in batches. Please leave that branch management to us. --

[issue10091] ast.literal_eval does not handled new set literals

2010-10-13 Thread Georg Brandl
Georg Brandl added the comment: This is fixed in 3.2 (see r82804). As it is a new feature, it is not backported to 2.7 or earlier. -- resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue10092] calendar does not restore locale properly

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> import calendar >>> calendar.TextCalendar().formatmonthname(2010,10,10) 'October 2010' >>> calendar.LocaleTextCalendar(locale='fr_FR').formatmonthname(2010,10,10) 'octobre 2010' >>> calendar.TextCalendar().formatmonthname(2010,10,10) 'octobre 2010'

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-10-13 Thread Vetoshkin Nikita
Vetoshkin Nikita added the comment: Another patch with: - testInitBlocking method - no c++ style comments - a newly generated configure script (almost 1.5k lines diff) - proper accept4 availability check With this patch I've got Traceback (most recent call last): File "/home/nekto/worksp

[issue10091] ast.literal_eval does not handled new set literals

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

[issue10091] ast.literal_eval does not handled new set literals

2010-10-13 Thread nestor
New submission from nestor : >>> import ast >>> eval('{1:11,2:22}') {1: 11, 2: 22} >>> ast.literal_eval('{1:11,2:22}') {1: 11, 2: 22} >>> eval('{1,2}') {1, 2} >>> ast.literal_eval('{1,2}') Traceback (most recent call last): File "", line 1, in ast.literal_eval('{1,2}') File "C:\Python31

[issue10090] python -m locale fails on OSX

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ python -m locale Locale aliasing: Locale defaults as determined by getdefaultlocale(): Language: en_US Encoding: UTF8 .. Locale settings after calling resetlocale(): -

[issue2775] Implement PEP 3108

2010-10-13 Thread Retro
Retro added the comment: I am very glad you're reorganizing the Standard Library. Thumbs up! I hope everything will comply to PEP 8 after you're done. Since you're reorganizing, I have my own contribution. I have uploaded a patch. The issue7351 (http://bugs.python.org/issue7351) was not accep

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the information. I'm afraid I can't be of any more help, since I'm not a Windows developer. I hope someone else can chime in. -- nosy: +brian.curtin, tim.golden ___ Python tracker

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Éric, I think the patch needs some rework. First, it is incorrect/incomplete: please see the Char definition for a complete list of characters that must be excluded. This then raises a Unicode vs. bytes issue, where invalid Unicode characters must be prohibi

[issue10089] Add support for arbitrary -X options

2010-10-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : It can be useful to enable or disable global Python features based on command-line flags. The -X is supposed to allow implementation-specific options but it is currently disabled for CPython. This patch allows to use -X for arbitrary options in CPython. The

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2010-10-13 Thread Mitchell Stokes
Changes by Mitchell Stokes : Added file: http://bugs.python.org/file19220/py_main_dup2.c ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2010-10-13 Thread Mitchell Stokes
Mitchell Stokes added the comment: I used _dup2() and I still got a crash. Also, if I use _fileno(stdout) after using freopen(), I get 1. I'm uploading two more example programs. py_main_fileno_check.c prints the fileno to the text file py_main_dup2.c uses _dup2() to redirect stdout instead o

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the new patch. I suggest one style change before committing: if re.search(, s) is not None: Agree that CDATA is not appropriate. Martin: I’m reopening the bug in reaction to your message “I could accept a patch that rejects non-Char characters with

[issue10085] Memory allocation for primitive types

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: It's probably more Python's implementation that Андрей is interested in, however, I agree that this is off-topic for this bug tracker, and that comp.lang.python might be a better place. You can also answer these questions by studying the Python source code,

[issue10086] test_sysconfig failure with site-packages

2010-10-13 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. Can you tell us what ./configure line you used before running make? Or maybe you edited site.py or created a sitecustomize.py? Tarek, Antoine: Is “Distutils” the right component for sysconfig bugs? (I thought it would be “Library”.) --

[issue10066] xmlrpclib does not handle some non-printable characters properly

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: No, CDATA is not an appropriate mechanism to encapsulate bytes in XML. The data in the CDATA section must still match the Char production, and it must still follow the encoding. -- ___ Python tracker

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: If you're sure that is still the case, this can proceed. -- ___ Python tracker ___ ___ Python-bug

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Dave Fugate
Dave Fugate added the comment: I guarantee you that IronPython needs this. I was a tester on IronPython for four years, and saw hundreds of random failures due to this specific issue. My best, Dave -- ___ Python tracker

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: accepted -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10083] locale.currency() uses different formatting than system locale for negative values

2010-10-13 Thread Eric Smith
Changes by Eric Smith : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is a similar issue with printing text calendar with specified encoding: $ python3 -m calendar --encoding=utf8 b' 2010\n\n .. -- ___ Python tracker

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure that this is a worthwhile exercise unless it can be shown for certain that alternate implementations need this. Otherwise, it just changes tests in a way that isn't backwards compatible, makes it more difficult to apply patches cleanly, and r

[issue9992] Command-line arguments are not correctly decoded if locale and fileystem encodings are different

2010-10-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo title: Command line arguments are not correctly decodediflocale and fileystem encodingsaredifferent -> Command-line arguments are not correctly decoded if locale and fileystem encodings are different __

[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules

2010-10-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Here is a patch for test_os.py. -- nosy: +giampaolo.rodola Added file: http://bugs.python.org/file19218/test_os.patch ___ Python tracker ___

[issue10084] SSL support for asyncore

2010-10-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Problem with SSL dispatcher subclasses used in tests is that they are all similar to pyftpdlib's SSLConnection class ( http://code.google.com/p/pyftpdlib/source/browse/trunk/pyftpdlib/contrib/handlers.py?spec=svn743&r=729#73 ) and I'm not sure it's API is

[issue9437] can't build extensions with non-default ldflags (e.g. -m32)

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > However, since the Makefile now explicitly appends PY_LDFLAGS to > LDSHARED, we could also stop doing so in ./configure. I've committed a patch which does just this (in r85422). Hopefully it won't break anything. -- _

[issue9774] test_smtpnet fails with "[110] Connection timed out" on AMD64 debian parallel buildbot

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Backported to 3.1 (r85424) and 2.7 (r85425). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue9773] test_tarfile fails because of inaccurate mtime on AMD64 debian parallel buildbot

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, when compiling on this buildbot, there's the following error message: make: Warning: File `Makefile' has modification time 4.7 s in the future which seems to hint that the filesystem on the buildbot is slightly misbehaving, or at least doesn'

[issue9774] test_smtpnet fails with "[110] Connection timed out" on AMD64 debian parallel buildbot

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've commited a patch in r85423 to skip test_smtpnet when the connection to gmail fails (which it probably does because of a firewall somewhere). -- nosy: +pitrou ___ Python tracker

[issue9774] test_smtpnet fails with "[110] Connection timed out" on AMD64 debian parallel buildbot

2010-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, the error message is (when interpreted as utf-8): == FAIL: test_listdir (test.test_pep277.UnicodeFileTests) -- Trac

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Also, dup2 is not available on Windows (at least not from what I've > read). MSDN says dup2 is deprecated but you can use _dup2 instead: http://msdn.microsoft.com/en-us/library/8syseb29%28v=VS.80%29.aspx > From my understanding, freopen() is supposed to be t

[issue10088] pdb can't re-set variables

2010-10-13 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It seems it's a duplicate of issue 5215 and I was using Python 2.6. msg114103 states that the fix wasn't ported to 2.6 so I'm closing this out as invalid. -- resolution: -> invalid status: open -> closed versions: +Python 2.6 _

[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)

2010-10-13 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> duplicate status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)

2010-10-13 Thread Brett Cannon
Brett Cannon added the comment: This is a duplicate of 9425 -- nosy: +brett.cannon superseder: -> Rewrite import machinery to work with unicode paths ___ Python tracker ___ ___

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I am then confused by this in the initial comment: > > > It calls indirectly PyUnicode_EncodeUTF8() and so call > > PyBytes_FromStringAndSize() which allocates memory on the heap. > > I've not studied the patch though, so this may have changed. The patch ce

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Oct 13, 2010 at 12:20 PM, Walter Dörwald wrote: .. > Does the following patch fix your problems? > Probably not because with your patch print() will encode HTML stream with the system default encoding which may be different from that specified by

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread Josh Bressers
Josh Bressers added the comment: I am then confused by this in the initial comment: > It calls indirectly PyUnicode_EncodeUTF8() and so call > PyBytes_FromStringAndSize() which allocates memory on the heap. I've not studied the patch though, so this may have changed. -- _

[issue10080] Py_Initialize crashes when stdout has been redirected with freopen

2010-10-13 Thread Mitchell Stokes
Mitchell Stokes added the comment: Setting PYTHONIOENCODING=cp1252 does not help. Also, dup2 is not available on Windows (at least not from what I've read). >From my understanding, freopen() is supposed to be the portable way to redirect stdout. -- __

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You would be wise to avoid using heap storage once you're in the crash > handler. From a security standpoint, if something has managed to > damage the heap (which is not uncommon in a crash), you should not > attempt to allocate or free heap memory. As far as

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-10-13 Thread Josh Bressers
Josh Bressers added the comment: You would be wise to avoid using heap storage once you're in the crash handler. From a security standpoint, if something has managed to damage the heap (which is not uncommon in a crash), you should not attempt to allocate or free heap memory. On modern glibc

[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you very much! I've committed the patch in r85420 (3.2) and r85421 (3.1). -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker __

[issue10087] HTML calendar is broken

2010-10-13 Thread Walter Dörwald
Walter Dörwald added the comment: Does the following patch fix your problems? -- keywords: +patch nosy: +doerwalter Added file: http://bugs.python.org/file19217/calendar.diff ___ Python tracker ___

  1   2   >