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

2010-10-13 Thread Valery Lesin
New submission from Valery Lesin : OS: windows The attempt to import module with non 7-bit ASCII name results in 'ImportError: No module named ' exception. Some thoughts: import.c uses functions like fopen, stat and FindFirstFile which wouldn't work correctly with non 7-bit ASCII filenames i

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Valery Lesin
New submission from Valery Lesin : All the functions in Python/C API for file execution (like PyRun_SimpleFile) crash the application. Some thoughts about problem: these functions use FILE* as first parameter which is binary incompatible with different CRT (python.dll and application could use

[issue10071] Should not release GIL while running RegEnumValue

2010-10-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Well, I couldn't reproduce it on WinXP. Probably Win2K's bug. One thread is exactly on RegEnumValue or RegQueryValue, and another thread is a bit after RegSetValue (the place varies case by case). Type is SEGV. -- ___

[issue10071] Should not release GIL while running RegEnumValue

2010-10-13 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- Removed message: http://bugs.python.org/msg118507 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10071] Should not release GIL while running RegEnumValue

2010-10-13 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: One thread is exactly on RegEnumValue or RegQueryValue, and another thread is a bit after RegSetValue (the place varies case by case). Type is SEGV. -- ___ Python tracker _

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

2010-10-13 Thread Bram Mariën
New submission from Bram Mariën : On Windows Vista and Windows 7 (XP and Ubuntu seem ok): If the system locale is used (using locale.setlocale(LC_ALL, '') and the system locale is set to dutch belgium: If the regional options are set to format negative monetary items as " -", than locale.curre

[issue9003] urllib.request and http.client should allow certificate checking

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in r85408. I believe this fixes, at last, the whole issue people were complaining about. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 3.3 _

[issue8863] Segfault handler: display Python backtrace on segfault

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: > dmalcolm asked if it would be possible to display the > Python backtrace on Py_FatalError() It works :-) I fixed a bug in ceval.c (r85411) which was not directly related. Patch version 5: - Display the Python backtrace on Py_FatalError() (if no error occur

[issue8863] Segfault handler: display Python backtrace on segfault

2010-10-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file19208/segfault_handler-3.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8863] Segfault handler: display Python backtrace on segfault

2010-10-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file19210/segfault_handler-4.patch ___ Python tracker ___ ___ Python-bugs-list

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

2010-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: Segfault handler: display Python backtrace on segfault -> Display Python backtrace on SIGSEGV, SIGFPE and fatal error ___ Python tracker ___

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

2010-10-13 Thread Eric Smith
Eric Smith added the comment: I don't have a copy of Vista or 7 handy to check with. Could you tell me what locale.localeconv() returns on a non-working system and on a working system (preferably Windows XP)? -- nosy: +eric.smith ___ Python tracker

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

2010-10-13 Thread Eric Smith
Changes by Eric Smith : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2010-10-13 Thread Bram Mariën
Bram Mariën added the comment: * On Windows Vista (non working system): >>> locale.localeconv() {'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 1, 'frac_digits': 2, 'thousands_sep': '.', 'n_sign_posn': 4, 'decimal_point': ',', 'int_curr_symbol': 'EUR', 'n_cs_precedes': 1,

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

2010-10-13 Thread Eric Smith
Eric Smith added the comment: So it looks like locale.currency() is doing the right thing, given the values returned by locale.localeconv(). These values are copied from C's localeconv(), so the problem must be there. I don't see how we can do anything about it on the Python side, unfortunate

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

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think freopen() is the right solution, since it might open another (different) file descriptor under the hood; but Python always uses file descriptor 1 when creating sys.stderr. I would suggest instead something such as (untested): int tmpfd; tmpfd =

[issue7434] general pprint rewrite

2010-10-13 Thread Łukasz Langa
Łukasz Langa added the comment: I would like to work on that. Expect a patch soon. Georg, Fred, I've added you to nosy because you're the ones watching over me currently. Bare with me :) -- nosy: +fdrake, georg.brandl, lukasz.langa title: pprint doesn't know how to print a namedtuple

[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)

2010-10-13 Thread Nicolas Schodet
Changes by Nicolas Schodet : -- nosy: +schodet ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: What operating system are you using? What compiler? -- nosy: +loewis ___ Python tracker ___ ___ Py

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Valery Lesin
Valery Lesin added the comment: OS: windows xp Compiler: MSVC versions 7.1, 8.0 and 9.0 Actually, the difference in compiler for python library and client applications causes the problem (I suppose that even same compiler with different options could give binary incompatible FILE structures)

[issue10084] SSL support for asyncore

2010-10-13 Thread Antoine Pitrou
New submission from Antoine Pitrou : It might be useful to make public the SSL support for asyncore which is currently implemented in various tests. -- assignee: giampaolo.rodola components: Library (Lib) messages: 118519 nosy: giampaolo.rodola, pitrou priority: normal severity: normal

[issue10084] SSL support for asyncore

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: (I'm posting this issue after having read this message: http://mail.python.org/pipermail/python-list/2010-October/1257689.html where the poster is clearly confused about SSL support for asyncore) -- ___ Python tracke

[issue10082] PyRun_SimpleFile crashes application

2010-10-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: Ok, unless you are using the very same compiler that Python was compiled with, this will indeed crash. Closing this as "won't fix", then - use PyRun_SimpleString instead. -- resolution: -> wont fix status: open -> closed ___

[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module

2010-10-13 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

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

2010-10-13 Thread Peter Gyorko
Peter Gyorko added the comment: The shortest code which can trigger this error is the following: >>> import xmlrpclib >>> print xmlrpclib.dumps(('\x01',))  As you can see, the escape method does not care about non-printable characters which can cause parsing error in the other side. My

[issue10085] Memory allocation for primitive types

2010-10-13 Thread Андрей Давыдов
New submission from Андрей Давыдов : Output for this script is 8.64453125 in test 163.80078125 in f 318.70703125 after f 280.49609375 in f 318.72265625 after f 280.50390625 0 164.4765625 126.26171875 10.01171875 If Python store all created objects of primitive types, why does it allocate (318

[issue10085] Memory allocation for primitive types

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't see any actual problem here. If you want help understanding Python's semantics, please post to comp.lang.python. -- nosy: +pitrou resolution: -> invalid status: open -> closed ___ Python tracker

[issue10086] test_sysconfig failure with site-packages

2010-10-13 Thread Hallvard B Furuseth
New submission from Hallvard B Furuseth : test_sysconfig on Python 3.2a3 fails with AssertionError: '/home/sjef/.local/lib/python3.2/site-packages' != '/home/sjef/.local/lib/python3.2/home/sjef/.local-packages' Python-3.2a3$ ./python Lib/test/regrtest.py -v test_sysconfig == CPython 3.2a3 (r32a3

[issue10086] test_sysconfig failure with site-packages

2010-10-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> tarek components: +Distutils -Tests nosy: +eric.araujo, tarek stage: -> needs patch ___ Python tracker ___ _

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

2010-10-13 Thread STINNER Victor
STINNER Victor added the comment: I posted the patch on Rietveld for a review (as asked by Antoine): http://codereview.appspot.com/2477041 -- ___ Python tracker ___

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

2010-10-13 Thread Dave Malcolm
Dave Malcolm added the comment: It looks like this doesn't yet have any test cases. You probably should invoke a child python process that crashes and examine the output (perhaps running some/all of the examples in Lib/test/crashers ?); you may want to "steal" some of the wrapper code from Li

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

2010-10-13 Thread Dave Malcolm
Dave Malcolm added the comment: One other concern: many OSes (e.g. Linux distributions) implement some kind of system-wide crash-catching utility; for example in Fedora we have ABRT ( https://fedorahosted.org/abrt/wiki ). I'm not sure yet exactly how these are implemented, but we'd want to av

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

2010-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, don't you want to handle SIGILL and SIGBUS too? -- ___ Python tracker ___ ___ Python-bug

[issue7980] time.strptime not thread safe

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It seems to me that this is related to if not a duplicate of issue 8098. -- keywords: -patch ___ Python tracker ___ _

[issue7287] import hook demo does not work

2010-10-13 Thread 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 interesting to have or should this be removed altogether? In case it's still w

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : $ python3 -m calendar --type=html 2010 Produces HTML which renders into the attached PDF file. It looks like bytes vs. strings issue. -- assignee: belopolsky components: Library (Lib) files: Calendar for 2010.pdf messages: 118532 nosy: belopo

[issue10087] HTML calendar is broken

2010-10-13 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The issue is clearly with using print() for bytes' output: if len(args) == 1: print(cal.formatyearpage(datetime.date.today().year, **optdict)) I am not sure, however how this can be fixed because calendar interface allows user to sp

[issue10088] pdb can't re-set variables

2010-10-13 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Not sure if this is on purpose but I've lost quite some time to debug this problem. --- code --- def foo(): bar = 1 import pdb; pdb.set_trace() foo() --- pdb session --- (Pdb) dir() ['__return__', 'bar', 'pdb'] (Pdb) bar 1 (Pdb) bar = 2 (Pd

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

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

[issue10088] pdb can't re-set variables

2010-10-13 Thread Mark Dickinson
Mark Dickinson added the comment: What versions of Python does this apply to? Is this a duplicate of issue 5215? -- nosy: +mark.dickinson ___ 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 ___

[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 __

[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

[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

[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 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. -- _

[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 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

[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 ___ ___

[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

[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 _

[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

[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

[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.

[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

[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: Backported to 3.1 (r85424) and 2.7 (r85425). -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[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. -- _

[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

[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 ___

[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 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

[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

[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

[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:

[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
Raymond Hettinger added the comment: If you're sure that is still the case, this can proceed. -- ___ Python tracker ___ ___ Python-bug

[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

[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”.) --

[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,

[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

[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

[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

[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

[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

[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

[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

[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(): -

[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

[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

[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

[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'

[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 ___

[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. --

[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

[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: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[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 _

[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

[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 _

[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.

[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

[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

[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/. --

[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)

[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 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

[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

[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

[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 ___

  1   2   >