[issue4550] Deprecated python 2.x syntax in HOWTO Use Python in the web

2008-12-05 Thread Jerry Chen
New submission from Jerry Chen [EMAIL PROTECTED]: For people who are following HOWTO guides verbatim, there are two types of Python 2.x'isms in HOWTO Use Python in the web (http://www.python.org/doc/3.0/howto/webservers.html): 1. ``print`` statements instead of functions. 2. Use of beloved

[issue6297] Added Misc/python.pc to 'distclean' Rule

2009-06-17 Thread Jerry Chen
New submission from Jerry Chen je...@3rdengine.com: Added Misc/python.pc to 'distclean' rule Minor issue... After running ./configure, Misc/python.pc is generated from python.pc.in. Interesting to note in the python2.7 trunk, this file is added to the svn:ignore property of Misc/ so it doesn't

[issue6297] Added Misc/python.pc to 'distclean' Rule

2009-06-17 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Errata: the patch is for Makefile.pre.in, not Makefile. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6297

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-22 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: The attached patch includes Neil's original additions to test_xml_etree.py. I also noticed that _encode_entity wasn't being called in ElementTree in py3k, with the important bit being the nested function escape_entities(), in conjunction

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-24 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Thanks for the explanation -- looks like I was way off base on that one. I took a look at the code you provided but it doesn't work as a drop-in replacement for _escape_cdata, since that function returns a string rather than bytes. However

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Verified Bus Error with code snippet in python 2.7 and 3.1 trunks r73552, e.g.: (gdb) where #0 0x925f6f30 in strlen () #1 0x0005ea10 in PyString_FromString (str=0x0) at Objects/stringobject.c:125 #2 0x003c1710 in PyCursesWindow_GetKey (self

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Trundle's original patch against r73301 still works currently, but I made a minor tweak and rediff'd. The attached patch is against 2.7 - r73552. I added knp usage to the NetBSD #ifdef region so a) the compiler doesn't complain about unused

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: Removed file: http://bugs.python.org/file14362/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Sorry -- bad patch, uploading correct one. -- Added file: http://bugs.python.org/file14363/issue6243-py2.7-cursesmodule.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6243

[issue6243] getkey() can segfault in combination with curses.ungetch()

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Another patch for the same code change but against the 3.1 branch. -- versions: +Python 3.0, Python 3.1 Added file: http://bugs.python.org/file14364/issue6243-py3.1-cursesmodule.diff ___ Python

[issue6342] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6342

[issue6341] io.path.ismount gives local variable 'p' referenced before assignment error on Windows versions (ntpath.py)

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Duplicate of http://bugs.python.org/issue5595 Fixed in r70676 -- nosy: +jcsalterego ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6341

[issue6315] locale._build_localename(locale.getdefaultlocale()) returns 'C.mac-roman'

2009-06-25 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Also seeing this was resolved by Issue6202. Python 3.1rc2+ (py3k:73552, Jun 24 2009, 23:11:23) [GCC 4.0.1 (Apple Inc. build 5490)] on darwin Type help, copyright, credits or license for more information. import locale locale

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2009-06-26 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Either way, it would be nice to get feedback so we can iterate on the patch or close out this issue already :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6233

[issue6364] freeze tool broken in Python 3.x

2009-06-29 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: I am unable to reproduce with py3k latest r73676 after making and installing, and running $ python3.2 freeze.py hello.py # on OS X 10.5.7 $ uname -a Darwin 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1

[issue6373] SystemError in encoder

2009-06-29 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: gdb trace Breakpoint 1, _PyBytes_Resize (pv=0xbfffec3c, newsize=-495723) at Objects/bytesobject.c:3179 3179if (!PyBytes_Check(v) || Py_REFCNT(v) != 1 || newsize 0) { (gdb) where #0 _PyBytes_Resize (pv=0xbfffec3c, newsize=-495723

[issue6373] SystemError in encoder

2009-06-29 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Confirmed patch and test are working -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6373

[issue6375] compile failure in Modules/python.c

2009-06-29 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: On OpenBSD by chance? Looks similar to Issue4146 -- nosy: +jcsalterego ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6375

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-04 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Bug and patch confirmed on both py3k and python2.7 branches Before: $ ./python.exe warnsegfault.py this exception is caught: incomplete format this exception is also caught: incomplete format Bus error After: $ ./python.exe warnsegfault.py

[issue5683] Speed up cPickle's pickling generally

2009-07-07 Thread Jerry Chen
Jerry Chen je...@3rdengine.com added the comment: Applied collinwinter's patch and svn up'd to r73872; replaced additional instances of self-write_func with _Pickler_Write. Passed test_xpickle.py as referenced by issue 5665. -- nosy: +jcsalterego Added file: http://bugs.python.org

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___ ___ Python-bugs-list mailing

[issue43768] Possible race condition on multiprocessing.Manager().dict() on macOS

2021-04-07 Thread Jerry Chen
New submission from Jerry Chen : I am not sure if this is a bug or an expected case. Long story short, I tried to print the content of a `multiprocessing.Manager().dict()` in the main thread, but I got a strange error. I encountered this error only when the number of pools is rather large