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

2009-09-09 Thread Ilya
New submission from Ilya : 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 Code::Blocks/gcc Code: -

[issue6870] sybase module for python3.1

2009-09-09 Thread Pravin Chavan
New submission from Pravin Chavan : 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 -L

2009-09-09 Thread Tarek Ziadé
Tarek Ziadé 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 ___ _

[issue6865] Refcount error in pwd module

2009-09-09 Thread caglar10ur
caglar10ur 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 tracker

[issue6870] sybase module for python3.1

2009-09-09 Thread Martin v . Löwis
Martin v. Löwis 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 ___ Python

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

2009-09-09 Thread Emlyn Murphy
Changes by Emlyn Murphy : -- nosy: +emlyn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

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

2009-09-09 Thread Ilya
Ilya added the comment: Tested obj=PyImport_ImportModule("ctypes"); Py_DECREF(obj); instead of PyRun_SimpleString(...) - same result -- ___ Python tracker ___ _

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

2009-09-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: >From http://svn.python.org/view/python/trunk/Misc/NEWS? r1=74728&r2=74727&pathrev=74728 "Initial patch by Sridhar Ratnakumar" The author of the initial patch - distutils_hpux_libdir_option.patch - is actually Trent Mick. I only pulled it from the Activ

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

2009-09-09 Thread Tarek Ziadé
Tarek Ziadé 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 you want to see in Mi

[issue6865] Refcount error in pwd module

2009-09-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2009/9/9 caglar10ur : > > caglar10ur 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? It's now

[issue6871] decimal.py: more format issues

2009-09-09 Thread Stefan Krah
New submission from Stefan Krah : 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"), "+08.4") '+

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-09 Thread Brett Cannon
Brett Cannon added the comment: Making this a release blocker to see what Barry thinks of this. -- priority: -> release blocker ___ Python tracker ___ __

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith 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 zero-padding specified.

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

2009-09-09 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue6871] decimal.py: more format issues

2009-09-09 Thread Eric Smith
Eric Smith added the comment: Also, see issue 4482 for a discussion of float formatting for nan and inf. -- ___ Python tracker ___ ___

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Mark Dickinson
New submission from Mark Dickinson : 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 readline (which, as I un

[issue6872] Support system readline on OS X 10.6

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

[issue6786] readline and zero based indexing

2009-09-09 Thread Mark Dickinson
Mark Dickinson 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 error-prone, with a hig

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Ronald Oussoren
Ronald Oussoren 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. BTW. I suppose the co

[issue6871] decimal.py: more format issues

2009-09-09 Thread Mark Dickinson
Mark Dickinson 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 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 can let me know.

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

2009-09-09 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- nosy: +srid ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6872] Support system readline on OS X 10.6

2009-09-09 Thread Mark Dickinson
Mark Dickinson 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 patch should try to

[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 : -- nosy: +collinwinter, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

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

2009-09-09 Thread Mark Dickinson
Mark Dickinson 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 like quite a lot of ex

[issue6873] posix_lchown: possible overflow of uid, gid

2009-09-09 Thread Boya Sun
New submission from Boya Sun : 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 added the comment: Created issue 6879 following Victor's suggestion. -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue6871] decimal.py: more format issues

2009-09-09 Thread Stefan Krah
Stefan Krah 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 performing space padding,

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

2009-09-09 Thread Boya Sun
Boya Sun added the comment: Sorry, typo. Created issue 6873 following Victor's suggestion. -- ___ Python tracker ___ ___ Python-bugs-

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

2009-09-09 Thread Mark Dickinson
Mark Dickinson 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 _PyLong_Format out and ju

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

2009-09-09 Thread loveminix
loveminix added the comment: Is there an update on this? Let me know if more information is needed. -- ___ Python tracker ___ ___ Pyth

[issue6874] sequence method .count() and .index() shoud be in immutable sequence method list.

2009-09-09 Thread s7v7nislands
New submission from s7v7nislands : In document 6.6.4. Mutable Sequence Types says: The following operations are defined on mutable sequence types: s.count(x) return number of i‘s for which s[i] == x s.index(x[, i[, j]])return smallest k such that s[k] == x and i <= k < j (4)