[issue6869] Embedded python crashed on 4th run, if ctypes is used

2009-09-09 Thread Ilya
New submission from Ilya kaplan.i...@gmail.com: When embedding python from C, and importing ctypes module in embedded script, it always crashes on Py_Finalize() on 4th cycle. Tested with both PyRun_SimpleString(...) and PyRun_String(...). Platform: Windows XP IDE's: LabWindows/CVI 8.5 and

[issue6870] sybase module for python3.1

2009-09-09 Thread Pravin Chavan
New submission from Pravin Chavan pravinpcha...@rediffmail.com: How can I use sybase module in python 3.1? -- components: Extension Modules messages: 92445 nosy: pravinpchavan severity: normal status: open title: sybase module for python3.1 type: feature request versions: Python 3.1

[issue6163] [HP-UX] ld: Unrecognized argument: +s -Ldir

2009-09-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r74728 (trunk), r74729 (2.6.x), r74730 (pyk3) and r74731 (3.1.x) Thanks guys ! -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6163

[issue6865] Refcount error in pwd module

2009-09-09 Thread caglar10ur
caglar10ur cag...@pardus.org.tr added the comment: It seems Python 2.6.x also have same problem, will it be merged automatically (seems like svn-merge is used for this purpose) or do you want me to open a new bug against that version? -- ___ Python

[issue6870] sybase module for python3.1

2009-09-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This question is off-topic for the Python bug tracker. Please use a different forum, such as comp.lang.python (aka: python-l...@python.org) -- nosy: +loewis resolution: - invalid status: open - closed

[issue6851] urllib.urlopen crashes in a thread on Snow Leopard

2009-09-09 Thread Emlyn Murphy
Changes by Emlyn Murphy m...@emlyn.net: -- nosy: +emlyn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6851 ___ ___ Python-bugs-list mailing list

[issue6869] Embedded python crashed on 4th run, if ctypes is used

2009-09-09 Thread Ilya
Ilya kaplan.i...@gmail.com added the comment: Tested obj=PyImport_ImportModule(ctypes); Py_DECREF(obj); instead of PyRun_SimpleString(...) - same result -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6869

[issue6163] [HP-UX] ld: Unrecognized argument: +s -Ldir

2009-09-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: From http://svn.python.org/view/python/trunk/Misc/NEWS? r1=74728r2=74727pathrev=74728 Initial patch by Sridhar Ratnakumar The author of the initial patch - distutils_hpux_libdir_option.patch - is actually Trent Mick. I only

[issue6163] [HP-UX] ld: Unrecognized argument: +s -Ldir

2009-09-09 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The rule I apply is as follow (any other rule would be too complicated for me): I add in Misc/NEWS the name of the user that initialy provides the patch in the tracker. If you want a different name, you need to provide a patch with the text

[issue6865] Refcount error in pwd module

2009-09-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2009/9/9 caglar10ur rep...@bugs.python.org: caglar10ur cag...@pardus.org.tr added the comment: It seems Python 2.6.x also have same problem, will it be merged automatically (seems like svn-merge is used for this purpose) or do you

[issue6871] decimal.py: more format issues

2009-09-09 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, I've two more issues where format behavior should probably be identical: 1: (version 2.6 vs. 3.1): Version 2.6: format(Decimal(NaN), +08.4) '+NaN' format(float(NaN), +08.4) '+00.0nan' Version 3.1: format(Decimal(NaN),

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Making this a release blocker to see what Barry thinks of this. -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6844

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: For #1 for floats, 2.6 is in error. This has been fixed in 2.7 (trunk). For #2, I think float is correct. The PEP says the specifier is: [[fill]align][sign][#][0][minimumwidth][.precision][type] so '00' is parsed as minimumwidth=0 with

[issue1590864] Function-level import in os triggering an threaded import deadlock

2009-09-09 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1590864 ___ ___

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Also, see issue 4482 for a discussion of float formatting for nan and inf. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6871 ___

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: The readline library supplied in OS X 10.6 looks good enough to use in Python. It would be nice to enable building with this library, to avoid having to install GNU readline. There's a curious off-by-one difference between Apple's

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: And here's the patch. -- keywords: +patch Added file: http://bugs.python.org/file14868/snow_leopard_readline.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6872

[issue6786] readline and zero based indexing

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'd guess the same. Most of the readline module is just a thin wrapper around the system readline library, so if the system readline library uses one-based indexing, so does the readline module. Changing this would probably be quite

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I wouldn't mind having a proper patch and doing away with the need for GNU's readline. IMHO the patch should try to stay as close to GNU readline's interface as possible, and should therefore fix the off-by-one difference you mention.

[issue6871] decimal.py: more format issues

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Issue #1: In both trunk and py3k I get: from decimal import Decimal format(Decimal('nan'), '+08.4') '+NaN' format(float('nan'), '+08.4') '+nan' format(Decimal('inf'), '+012.4') ' +Infinity' format(float('inf'), '+012.4')

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Gawain Bolton
Gawain Bolton gp.bol...@computer.org added the comment: Yes I agree it would be a good idea to have one definition and one instantiation of the _decimal_digit_table[] and BitLengthTable[32] arrays. Where do you suggest these tables could be put? I'll be happy to provide an updated patch if you

[issue4773] HTTPMessage not documented and has inconsistent API across 2.6/3.0

2009-09-09 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4773 ___ ___ Python-bugs-list

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Hmm. This is looking like a bigger task than I bargained for. I notice that the readline library currently has no tests (or maybe I'm just failing to find them). I'm not even sure how to go about writing tests for readline. IMHO the

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Gregory P. Smith
Changes by Gregory P. Smith g...@krypto.org: -- nosy: +collinwinter, gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6713 ___ ___

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm a bit ambivalent about this patch: I'd like to see string to integer conversions improved, and on the surface it makes sense to special-case base 10 conversions (just as power-of-two bases are already special- cased), but this seems

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-09 Thread Boya Sun
New submission from Boya Sun boya@case.edu: posix_lchown(PyObject *self, PyObject *args) { ... int uid, gid; ... if (!PyArg_ParseTuple(args, etii:lchown, Py_FileSystemDefaultEncoding, path, uid, gid))

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-09 Thread Boya Sun
Boya Sun boya@case.edu added the comment: Created issue 6879 following Victor's suggestion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705 ___

[issue6871] decimal.py: more format issues

2009-09-09 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Issue 1: I would definitely keep the spelling in decimal, my concern was only the padding. The C standard agrees with Mark's view: Leading zeros (following any indication of sign or base) are used to pad to the field width rather than

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-09-09 Thread Boya Sun
Boya Sun boya@case.edu added the comment: Sorry, typo. Created issue 6873 following Victor's suggestion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705 ___

[issue6713] Integer Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: On the other hand, _PyLong_Format currently contains general machinery for integer - string conversion in any base in the range [2, 36], but I don't think that machinery is ever used for bases other than 2, 8, 10 and 16. So ripping

[issue6854] UnicodeDecodeError when retrieving binary data from cgi.FieldStorage()

2009-09-09 Thread loveminix
loveminix lovemi...@yahoo.com.cn added the comment: Is there an update on this? Let me know if more information is needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6854 ___