[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: It looks very similar to issue6501. Can you check if setting the environment variable PYTHONIOENCODING=cp1252 solves the problem? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)
New submission from Valery Lesin valery.le...@gmail.com: OS: windows The attempt to import module with non 7-bit ASCII name results in 'ImportError: No module named module name' exception. Some thoughts: import.c uses functions like fopen, stat and FindFirstFile which wouldn't work correctly with non 7-bit ASCII filenames in Windows. -- components: Interpreter Core, Unicode messages: 118505 nosy: Valery.Lesin priority: normal severity: normal status: open title: 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows) type: behavior versions: Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10082] PyRun_SimpleFile crashes application
New submission from Valery Lesin valery.le...@gmail.com: 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 different ones). Some thoughts about solution: maybe it's possible to pass only filename and python will open (and close) file itself? Second idea is to use functions like PyFile_FromString (like in Python 2) -- components: Extension Modules, Windows messages: 118506 nosy: Valery.Lesin priority: normal severity: normal status: open title: PyRun_SimpleFile crashes application type: crash versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: -- Removed message: http://bugs.python.org/msg118507 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10071] Should not release GIL while running RegEnumValue
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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 rep...@bugs.python.org http://bugs.python.org/issue10071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
New submission from Bram Mariën bram.mar...@gmail.com: 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 EURO sign -value, than locale.currency(value) will format it as EURO sign)value-. Other formatting options works ok: e.g. if the regional settings display negative monetary items as (value), than locale.currency(value) will also display {value). Reproducable on Python 2.6.x, 2.7.x and 3.1.2 on Windows Vista (32 bit) -- components: Windows files: locale_currency_negative.JPG messages: 118509 nosy: bram.marien priority: normal severity: normal status: open title: locale.currency() uses different formatting than system locale for negative values type: behavior versions: Python 2.6, Python 2.7, Python 3.1 Added file: http://bugs.python.org/file19213/locale_currency_negative.JPG ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9003] urllib.request and http.client should allow certificate checking
Antoine Pitrou pit...@free.fr 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9003 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Segfault handler: display Python backtrace on segfault
STINNER Victor victor.stin...@haypocalc.com 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 occurred) - Use _PyThreadState_GetFrame(tstate) instead of tstate-frame - Create _Py_DumpBacktrace() function - _Py_DumpBacktrace() doesn't display anything if there is no frame (tstate-frame == NULL), it's the case during Python initialization - replace fprintf() by calls to fputs/fputc in Py_FatalError(): fprintf() might raise a new error, I prefer simple functions (safer and faster) -- Added file: http://bugs.python.org/file19214/segfault_handler-5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Segfault handler: display Python backtrace on segfault
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file19208/segfault_handler-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Segfault handler: display Python backtrace on segfault
Changes by STINNER Victor victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file19210/segfault_handler-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Changes by STINNER Victor victor.stin...@haypocalc.com: -- title: Segfault handler: display Python backtrace on segfault - Display Python backtrace on SIGSEGV, SIGFPE and fatal error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
Eric Smith e...@trueblade.com 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 rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
Changes by Eric Smith e...@trueblade.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
Bram Mariën bram.mar...@gmail.com 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, 'p_sign_posn': 4, 'mon_thousands_sep': '.', 'negative_sign': '-', 'currency_symbol': '\x80', 'n_sep_by_space': 1, 'mon_grouping': [3, 0], 'p_cs_precedes': 1, 'positive_sign': '', 'grouping': [3, 0]} * On Windows XP (Working system): {'mon_decimal_point': ',', 'int_frac_digits': 2, 'p_sep_by_space': 1, 'frac_digits': 2, 'thousands_sep': '.', 'n_sign_posn': 1, 'decimal_point': ',', 'int_curr_symbol': 'EUR', 'n_cs_precedes': 0, 'p_sign_posn': 1, 'mon_thousands_sep': '.', 'negative_sign': '-', 'currency_symbol': '\x80', 'n_sep_by_space': 1, 'mon_grouping': [3, 0], 'p_cs_precedes': 0, 'positive_sign': '', 'grouping': [3, 0]} The locale is set to 'Dutch_Belgium.1252' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
Eric Smith e...@trueblade.com 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, unfortunately. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Antoine Pitrou pit...@free.fr 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 = open(myfile.txt, O_CREAT | O_WRONLY); dup2(tmpfd, 1); -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7434] general pprint rewrite
Łukasz Langa luk...@langa.pl 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 - general pprint rewrite versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6755] Patch: new method get_wch for ncurses bindings: accept wide characters (unicode)
Changes by Nicolas Schodet nico-pyt...@ni.fr.eu.org: -- nosy: +schodet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6755 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10082] PyRun_SimpleFile crashes application
Martin v. Löwis mar...@v.loewis.de added the comment: What operating system are you using? What compiler? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10082] PyRun_SimpleFile crashes application
Valery Lesin valery.le...@gmail.com 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). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10084] SSL support for asyncore
New submission from Antoine Pitrou pit...@free.fr: 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 status: open title: SSL support for asyncore type: feature request versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10084] SSL support for asyncore
Antoine Pitrou pit...@free.fr 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 tracker rep...@bugs.python.org http://bugs.python.org/issue10084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10082] PyRun_SimpleFile crashes application
Martin v. Löwis mar...@v.loewis.de 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10082 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10066] xmlrpclib does not handle some non-printable characters properly
Peter Gyorko gyor...@balabit.hu added the comment: The shortest code which can trigger this error is the following: import xmlrpclib print xmlrpclib.dumps(('\x01',)) params param valuestring/string/value /param /params As you can see, the escape method does not care about non-printable characters which can cause parsing error in the other side. My previous patch used \x to tell to the other side that the value contains some binary garbage. It you want to reject these binary bytes (which was not acceptable in my case), use this patch: --- a/xmlrpclib.py 2010-10-13 14:45:02.0 +0200 +++ b/xmlrpclib.py 2010-10-13 16:03:14.0 +0200 @@ -165,6 +165,9 @@ return data def escape(s, replace=string.replace): +if (None != re.search('[\x00-\x08\x0b-\x0c\x0e-\x1f\x7f-\xff]', s)): +raise Fault(INVALID_ENCODING_CHAR, 'Non-printable character in string') + s = replace(s, , amp;) s = replace(s, , lt;) return replace(s, , gt;,) An other idea: we may use CDATA (http://www.w3schools.com/xml/xml_cdata.asp) to transfer binary values... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10085] Memory allocation for primitive types
New submission from Андрей Давыдов andrey.a.davy...@gmail.com: 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 - 163) MB for call of function 'f'? What memory does it free when call 'gc.collect()' -- components: None files: memory.py messages: 118523 nosy: Андрей.Давыдов priority: normal severity: normal status: open title: Memory allocation for primitive types type: resource usage versions: Python 2.6 Added file: http://bugs.python.org/file19215/memory.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10085] Memory allocation for primitive types
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue10085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10086] test_sysconfig failure with site-packages
New submission from Hallvard B Furuseth h.b.furus...@usit.uio.no: 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:85355, Oct 13 2010, 07:34:15) [GCC 4.4.3] == Linux-2.6.32-25-generic-x86_64-with-debian-squeeze-sid little-endian == /home/sjef/src/python/Python-3.2a3/build/test_python_17497 [1/1] test_sysconfig test_get_config_h_filename (test.test_sysconfig.TestSysConfig) ... ok test_get_config_vars (test.test_sysconfig.TestSysConfig) ... ok test_get_makefile_filename (test.test_sysconfig.TestSysConfig) ... ok test_get_path (test.test_sysconfig.TestSysConfig) ... ok test_get_path_names (test.test_sysconfig.TestSysConfig) ... ok test_get_paths (test.test_sysconfig.TestSysConfig) ... ok test_get_platform (test.test_sysconfig.TestSysConfig) ... ok test_get_scheme_names (test.test_sysconfig.TestSysConfig) ... ok test_ldshared_value (test.test_sysconfig.TestSysConfig) ... ok test_main (test.test_sysconfig.TestSysConfig) ... ok test_symlink (test.test_sysconfig.TestSysConfig) ... ok test_user_similar (test.test_sysconfig.TestSysConfig) ... FAIL == FAIL: test_user_similar (test.test_sysconfig.TestSysConfig) -- Traceback (most recent call last): File /home/sjef/src/python/Python-3.2a3/Lib/test/test_sysconfig.py, line 278, in test_user_similar self.assertEquals(user_path, global_path.replace(base, user)) AssertionError: '/home/sjef/.local/lib/python3.2/site-packages' != '/home/sjef/.local/lib/python3.2/home/sjef/.local-packages' - /home/sjef/.local/lib/python3.2/site-packages ? ^^ + /home/sjef/.local/lib/python3.2/home/sjef/.local-packages ? + ^ -- Ran 12 tests in 0.145s FAILED (failures=1) test test_sysconfig failed -- Traceback (most recent call last): File /home/sjef/src/python/Python-3.2a3/Lib/test/test_sysconfig.py, line 278, in test_user_similar self.assertEquals(user_path, global_path.replace(base, user)) AssertionError: '/home/sjef/.local/lib/python3.2/site-packages' != '/home/sjef/.local/lib/python3.2/home/sjef/.local-packages' - /home/sjef/.local/lib/python3.2/site-packages ? ^^ + /home/sjef/.local/lib/python3.2/home/sjef/.local-packages ? + ^ 1 test failed: test_sysconfig -- components: Tests messages: 118525 nosy: hfuru priority: normal severity: normal status: open title: test_sysconfig failure with site-packages type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10086] test_sysconfig failure with site-packages
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - tarek components: +Distutils -Tests nosy: +eric.araujo, tarek stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
STINNER Victor victor.stin...@haypocalc.com added the comment: I posted the patch on Rietveld for a review (as asked by Antoine): http://codereview.appspot.com/2477041 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Dave Malcolm dmalc...@redhat.com 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 Lib/test/test_gdb.py to do this. Test ideas: - generate a segfault, verify that the output is sane - generate a FPE (likewise) - perhaps run all of the crashers, and ensure that something sane happens (e.g. stack overflow when the limit is set to something that's beyond what the OS/CPU can cope with). Also, please test the interaction of this with the debugger (with gdb, at any rate): as I see it, this ought to gracefully get out of the way if you're running python under a debugger. See Lib/test/test_gdb.py for more examples of how to detect gdb, and invoke it in batch mode from a test suite. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Dave Malcolm dmalc...@redhat.com 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 avoid breaking them: segfaults of a system-provided /usr/bin/python (or /usr/bin/python3 ) should continue to be detected by such tools. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Antoine Pitrou pit...@free.fr added the comment: By the way, don't you want to handle SIGILL and SIGBUS too? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7980] time.strptime not thread safe
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: It seems to me that this is related to if not a duplicate of issue 8098. -- keywords: -patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7980 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7287] import hook demo does not work
Sandro Tosi sandro.t...@gmail.com 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 worth to be included, I can work on fix it. Regards, Sandro -- nosy: +benjamin.peterson, sandro.tosi ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7287 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: $ 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: belopolsky priority: normal severity: normal stage: unit test needed status: open title: HTML calendar is broken type: behavior versions: Python 3.2 Added file: http://bugs.python.org/file19216/Calendar for 2010.pdf ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Alexander Belopolsky belopol...@users.sourceforge.net 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 specify the encoding to be used for HTML and that encoding may not be the same or even compatible with sys.stdout encoding. I would suggest adding -o/--output option to calendar CLI to specify the output file and make it required when specified encoding is not compatible with that of sys.stdout. What constitutes compatible still needs to be defined. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10088] pdb can't re-set variables
New submission from Giampaolo Rodola' g.rod...@gmail.com: 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 (Pdb) bar 1 (Pdb) If this is on purpose (pdb just CAN'T do it) then I would expect it to display an error of some kind when I enter bar = 2, say: *** NameError: 'foo' is a reserved name. -- messages: 118534 nosy: giampaolo.rodola priority: normal severity: normal status: open title: pdb can't re-set variables ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10078] Documentation: 'Postive' should be 'Positive'
Changes by Mark Dickinson dicki...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10078 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10088] pdb can't re-set variables
Mark Dickinson dicki...@gmail.com added the comment: What versions of Python does this apply to? Is this a duplicate of issue 5215? -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Walter Dörwald wal...@livinglogic.de 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 rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10041] socket.makefile(mode = 'r').readline() silently removes carriage return
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue10041 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Josh Bressers j...@bress.net 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 systems, this isn't much of a concern as there are various memory protection mechanisms that make heap exploitation very very hard (you're just going to end up crashing the crash handler). I'm not sure about other operating systems that python supports though. -- nosy: +joshbressers ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Antoine Pitrou pit...@free.fr 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 I can tell, the signal handler in the patch doesn't call malloc() or free(), neither directly nor indirectly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Mitchell Stokes moguri...@gmail.com 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Josh Bressers j...@bress.net 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Wed, Oct 13, 2010 at 12:20 PM, Walter Dörwald rep...@bugs.python.org 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 -e/--encode argument to calendar. The result would be an ill-formed XML stream with encoding specified by the meta-tag not matching the actual encoding. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error
Antoine Pitrou pit...@free.fr 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 certainly has changed, yes. In the latest patch, printing of unicode message is done one code point at a time without allocating any intermediary area. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8863 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)
Brett Cannon br...@python.org added the comment: This is a duplicate of 9425 -- nosy: +brett.cannon superseder: - Rewrite import machinery to work with unicode paths ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10081] 'import' operator doesn't work with unicode non 7-bit ASCII module names (OS: windows)
Changes by Brett Cannon br...@python.org: -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10088] pdb can't re-set variables
Giampaolo Rodola' g.rod...@gmail.com 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10088 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Antoine Pitrou pit...@free.fr 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 the portable way to redirect stdout. I'm not sure, but as I said Python does not use C's stdout. Instead, it writes directly (using write()) to the file descriptor number 1. So, if freopen() creates a different file descriptor for the C stdout, Python's stdout will not be redirected where you want it to be. I'm not saying that's what happens in your program, though. You could call _fileno(stdout) after the reopen() call to check if it's still 1 or not. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9772] test_pep277 failure on AMD64 debian parallel buildbot
Antoine Pitrou pit...@free.fr added the comment: Actually, the error message is (when interpreted as utf-8): == FAIL: test_listdir (test.test_pep277.UnicodeFileTests) -- Traceback (most recent call last): File /var/autofs/net/homedir/home/martin.vonloewis/buildarea/3.x.loewis-parallel2/build/Lib/test/test_pep277.py, line 157, in test_listdir self.assertEqual(sf0, sf2) AssertionError: Items in the first set but not the second: '@test_29046_tmp/Grüß-Gott' Items in the second set but not the first: '@test_29046_tmp/Gr\udcfc\udcdf-Gott' Which corresponds to utf8 or ascii decoding of Grüß-Gott encoded with latin1: Grüß-Gott.encode(latin1).decode(ascii, surrogateescape) 'Gr\udcfc\udcdf-Gott' Grüß-Gott.encode(latin1).decode(utf8, surrogateescape) 'Gr\udcfc\udcdf-Gott' -- nosy: +haypo, loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9772 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9774] test_smtpnet fails with [110] Connection timed out on AMD64 debian parallel buildbot
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9774 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9774] test_smtpnet fails with [110] Connection timed out on AMD64 debian parallel buildbot
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue9774 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9773] test_tarfile fails because of inaccurate mtime on AMD64 debian parallel buildbot
Antoine Pitrou pit...@free.fr 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't have very reliable timestamps. -- nosy: +loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9773 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9774] test_smtpnet fails with [110] Connection timed out on AMD64 debian parallel buildbot
Antoine Pitrou pit...@free.fr added the comment: Backported to 3.1 (r85424) and 2.7 (r85425). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9774 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9437] can't build extensions with non-default ldflags (e.g. -m32)
Antoine Pitrou pit...@free.fr 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. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10084] SSL support for asyncore
Giampaolo Rodola' g.rod...@gmail.com 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=svn743r=729#73 ) and I'm not sure it's API is suitable for a general use case. It fits well for pyftpdlib, servers in general and stdlib tests but I'm not sure about other uses cases. In details I'm thinking about clients, secure connections reverted back to clear-text (e.g FTP might need this) and recent issues about certificates validation. Before writing anything we should agree on an API and make sure it is able to cover all use cases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10084 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Giampaolo Rodola' g.rod...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9992] Command-line arguments are not correctly decoded if locale and fileystem encodings are different
Changes by Éric Araujo mer...@netwok.org: -- 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 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9992 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Raymond Hettinger rhettin...@users.sourceforge.net 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 risks damaging an otherwise good test. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Alexander Belopolsky belopol...@users.sourceforge.net 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 rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10083] locale.currency() uses different formatting than system locale for negative values
Changes by Eric Smith e...@trueblade.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10083 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- resolution: accepted - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Dave Fugate dfug...@microsoft.com 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 rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: If you're sure that is still the case, this can proceed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10066] xmlrpclib does not handle some non-printable characters properly
Martin v. Löwis mar...@v.loewis.de 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 rep...@bugs.python.org http://bugs.python.org/issue10066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10086] test_sysconfig failure with site-packages
Éric Araujo mer...@netwok.org 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”.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10085] Memory allocation for primitive types
Martin v. Löwis mar...@v.loewis.de 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, which you'll find at http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tar.bz2 -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10085 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10066] xmlrpclib does not handle some non-printable characters properly
Éric Araujo mer...@netwok.org added the comment: Thanks for the new patch. I suggest one style change before committing: if re.search(snip, 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 an exception”, hope it’s fine. -- resolution: wont fix - stage: - patch review status: closed - open versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Mitchell Stokes moguri...@gmail.com 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 of freopen -- Added file: http://bugs.python.org/file19219/py_main_fileno_check.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Changes by Mitchell Stokes moguri...@gmail.com: Added file: http://bugs.python.org/file19220/py_main_dup2.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10089] Add support for arbitrary -X options
New submission from Antoine Pitrou pit...@free.fr: 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. These options are not validated but minimally parsed and fed into a dictionary, sys.xoptions. An example is better than a thousand words: $ ./python -c import sys; print(sys.xoptions) {} $ ./python -Xa,b=c,d -Xe,f=g=h -c import sys; print(sys.xoptions) {'a': True, 'b': 'c', 'e': True, 'd': True, 'f': 'g=h'} This could be useful for various debug enablers, such as Victor's SIGSEGV handler, warnings about unclosed files, etc. -- components: Interpreter Core files: xopts.patch keywords: patch messages: 118563 nosy: haypo, loewis, ncoghlan, pitrou priority: normal severity: normal stage: patch review status: open title: Add support for arbitrary -X options type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file19221/xopts.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10089 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10066] xmlrpclib does not handle some non-printable characters properly
Martin v. Löwis mar...@v.loewis.de 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 prohibited before the string actually being encoded (since apply the regex to the encoded string is not practical). The other side of the bytes vs. string issue is that the bytes really ought to be in self.encoding, which doesn't get checked, either. And then, it lacks tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10066 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10080] Py_Initialize crashes when stdout has been redirected with freopen
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue10080 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
Retro vinet...@gmail.com 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 accepted at the time, I hope you'll accept this fix now. My point is that every class name in module zipfile is like this: - exception class: LargeZipFile - normal class: ZipFile - normal class: PyZipFile So apply my fix to make the exception class BadZipfile consistent to others and let it be BadZipFile. Thank you. -- nosy: +Retro Added file: http://bugs.python.org/file19222/zipfile-patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2775 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10090] python -m locale fails on OSX
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: $ python -m locale Locale aliasing: Locale defaults as determined by getdefaultlocale(): Language: en_US Encoding: UTF8 .. Locale settings after calling resetlocale(): Traceback (most recent call last): .. File Lib/locale.py, line 548, in resetlocale _setlocale(category, _build_localename(getdefaultlocale())) locale.Error: unsupported locale setting Apparently the problem is due to locale.getdefaultlocale() returning encoding as 'UTF8' while locale.setlocale() expects 'UTF-8'. -- components: Library (Lib) messages: 118567 nosy: belopolsky priority: normal severity: normal stage: unit test needed status: open title: python -m locale fails on OSX type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10090 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10091] ast.literal_eval does not handled new set literals
New submission from nestor nestornis...@gmail.com: 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 pyshell#8, line 1, in module ast.literal_eval('{1,2}') File C:\Python31\lib\ast.py, line 80, in literal_eval return _convert(node_or_string) File C:\Python31\lib\ast.py, line 79, in _convert raise ValueError('malformed string') ValueError: malformed string I haven't tested for 2.7 or 3.2 but this bug probably applies also there. -- components: Library (Lib) messages: 118568 nosy: aronacher, benjamin.peterson, georg.brandl, gpolo, mark.dickinson, nestor, rhettinger, terry.reedy priority: normal severity: normal status: open title: ast.literal_eval does not handled new set literals type: behavior versions: Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10091] ast.literal_eval does not handled new set literals
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module
Vetoshkin Nikita nikita.vetosh...@gmail.com 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/workspace/py3k/Lib/test/test_socket.py, line 1564, in testInterruptedTimeout foo = self.serv.accept() socket.timeout: timed out Can someone test if there's a real regression? -- Added file: http://bugs.python.org/file19223/issue7523_py3k_accept4_1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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' -- messages: 118570 nosy: belopolsky priority: normal severity: normal stage: unit test needed status: open title: calendar does not restore locale properly ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10091] ast.literal_eval does not handled new set literals
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue10091 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10078] Documentation: 'Postive' should be 'Positive'
Georg Brandl ge...@python.org 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. -- nosy: +georg.brandl versions: -3rd party, Python 2.5, Python 2.6, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10078 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +christian.heimes, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
Brett Cannon br...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue2775 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10092] calendar does not restore locale properly
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +twouters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10092 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Dave Malcolm dmalc...@redhat.com 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 rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4111] Add Systemtap/DTrace probes
Jesús Cea Avión j...@jcea.es 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 rep...@bugs.python.org http://bugs.python.org/issue4111 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10087] HTML calendar is broken
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Note that .decode(encoding) calls have been deliberately removed in py3k: see issue 3059. -- nosy: +georg.brandl, gpolo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10093] Warn when files are not explicitly closed
New submission from Antoine Pitrou pit...@free.fr: 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. -- components: Extension Modules, Interpreter Core files: deallocwarn.patch keywords: patch messages: 118577 nosy: pitrou priority: normal severity: normal status: open title: Warn when files are not explicitly closed type: feature request versions: Python 3.2 Added file: http://bugs.python.org/file19224/deallocwarn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10093] Warn when files are not explicitly closed
Antoine Pitrou pit...@free.fr 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. -- nosy: +amaury.forgeotdarc, benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10089] Add support for arbitrary -X options
Antoine Pitrou pit...@free.fr added the comment: See issue10093 for a possible use case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10089 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10086] test_sysconfig failure with site-packages
Hallvard B Furuseth h.b.furus...@usit.uio.no 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/. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module
Vetoshkin Nikita nikita.vetosh...@gmail.com 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)= -1 EINTR (Interrupted system call) accept4(3, 0x7fffa94c4780, [16], 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}], 1, 2999) = 0 (Timeout) accept4(3, 0x7fffa94c4780, [16], 0) = -1 EAGAIN (Resource temporarily unavailable) write(1, in alarm_handler\n, 17) = 17 alarm(0)= 0 Here's on OK: alarm(2)= 0 poll([{fd=3, events=POLLIN}], 1, 5000) = ? ERESTART_RESTARTBLOCK (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0x)= -1 EINTR (Interrupted system call) write(1, in alarm_handler\n, 17) = 17 alarm(0) For some reason does another trip through BEGIN_SELECT_LOOP() macro -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names
Nathan Letwory nat...@letworyinteractive.com 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 stacktrace of such usage) There are a lot of our Blender users that are not english native-speakers and they set up their machine as they please, against RCFs or not. This currently breaks some code that use platform.system() to check the system it's run on. The paste from above is from a user who has named his computer Nötkötti. It would be more than great if this error could be fixed. If another 3.1 release is planned, preferrably for that. -- nosy: +jesterKing ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9377 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7523] add SOCK_NONBLOCK and SOCK_CLOEXEC to socket module
Antoine Pitrou pit...@free.fr 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 = accept4(s-sock_fd, SAS2SA(addrbuf), addrlen, flags); +#else There's a missing curly brace after if (!timeout), so accept4() is always called. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7523 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10093] Warn when files are not explicitly closed
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file19224/deallocwarn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10093] Warn when files are not explicitly closed
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file19225/deallocwarn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10093 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com