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

2009-09-19 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I hope attached patch will fix this issue. -- keywords: +patch nosy: +ocean-city Added file: http://bugs.python.org/file14936/fix_ctypes_crash.patch ___ Python tracker _

[issue6925] Doc for locals and vars

2009-09-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: My point was and is that global variables *are* free variables by the definition I learned and that I quoted and that in the absence of an 'official' and consistent definition for the purpose of the manual, (linked to from its usages) people can and probably wil

[issue5727] doctest pdb readline broken

2009-09-19 Thread Sriram
Sriram added the comment: Hi, How about changing pdb's behavior, that it disables readline only if the passed stream is not the stdout stream? Also when looking at doctest module, I found that bdb's trace_dispatch was overridden to set the debugger's output stream to something other than st

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2009-09-19 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Wouldn't it be nice to add a test for this case, to demonstrate that non-blocking reads really are possible? -- nosy: +exarkun ___ Python tracker _

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

2009-09-19 Thread Gawain Bolton
Gawain Bolton added the comment: Here's a modified version of the patch to Objects/intobject.c which __does__ use the two-digits-at-a-time optimization. Compared to the int_decimal_conversion_trunk.patch, my tests show a further 12.5% improvement with two digit numbers - positive or negative an

[issue6918] ctypes compilation error on SnowLeopard

2009-09-19 Thread Thomas Heller
Thomas Heller added the comment: This one is fixed, isn't it? See for example the buildbot output at http://www.python.org/dev/buildbot/2.6/builders/x86%20osx.5%202.6/builds/566/steps/compile/logs/stdio (Search for "building '_ctypes' extension" on the page) -- nosy: +theller __

[issue6839] zipfile can't extract file

2009-09-19 Thread Jan Hosang
Jan Hosang added the comment: I added a patch to replace back slashes by forward slashes in three places, only one if them actually relevant to the errors in the attached .zip file. I kept the exception for mismatching filenames, but if you think it is appropriate to remove it I could do tha

[issue6950] online documentation error: PyObject* PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len)

2009-09-19 Thread Ezio Melotti
Ezio Melotti added the comment: This is a duplicate of #6881. -- nosy: +ezio.melotti resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6950] online documentation error: PyObject* PyByteArray_Resize(PyObject *bytearray, Py_ssize_t len)

2009-09-19 Thread kai zhu
New submission from kai zhu : according to bytearrayobject.c, PyByteArray_Resize should return int (not PyObject *) error found @ http://docs.python.org/dev/py3k/c-api/bytearray.html http://docs.python.org/c-api/bytearray.html -- assignee: georg.brandl components: Documentation message

[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> jcea nosy: +jcea priority: -> normal stage: -> patch review type: -> feature request ___ Python tracker ___ __

[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : Python doesn't detect Berkeley DB 4.8. After updating setup.py, _bsddb module fails to build due to some changes in Berkeley DB. I'm attaching patch which seems to fix these problems. Changes in setup.py were made by me. Changes in Modul

[issue6941] Socket error when launching IDLE

2009-09-19 Thread R. David Murray
Changes by R. David Murray : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue6941] Socket error when launching IDLE

2009-09-19 Thread chuck
Changes by chuck : -- status: pending -> open title: Socket error when launching IDL -> Socket error when launching IDLE ___ Python tracker ___ ___

[issue6943] setup.py fails to find headers of system libffi

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file14932/python-fix_search_for_libffi_headers.patch ___ Python tracker ___ __

[issue6948] list

2009-09-19 Thread Mark Dickinson
Mark Dickinson added the comment: This is not a bug in Python. For general Python questions, please ask on comp.lang.python. (If you weren't trying to report a bug in the first place, please could you explain your purpose in opening this issue.) -- nosy: +mark.dickinson resolution:

[issue6948] list

2009-09-19 Thread kewlar
New submission from kewlar : >>> a = [[0,0,0],[0,0,0],[0,0,0]] >>> a [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >>> a[1][1] = 1 >>> a [[0, 0, 0], [0, 1, 0], [0, 0, 0]] >>> b = [[0]*3]*3 >>> b [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >>> b[1][1] = 1 >>> b [[0, 1, 0], [0, 1, 0], [0, 1, 0]] >>> -- messages

[issue6941] Socket error when launching IDL

2009-09-19 Thread Georg Brandl
Changes by Georg Brandl : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: A simple fix is to use key=lambda x: (id(type(x)), x). However, that obviously doesn't work with values of different, but orderable types. At the moment, I don't see how the Python 2 sort could be implemented without a cmp() argument to sorted(). -- nos

[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74952. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6925] Doc for locals and vars

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: > I disagree with calling only nonlocal variables but not module variables > 'free'. As I quoted from Wikipedia, that restrictive definition is not > agree on by all at all. But it is the definition that Python uses, at least in the code. I agree that the usage

[issue6947] Fix distutils test on windows (SO extension)

2009-09-19 Thread Tarek Ziadé
Tarek Ziadé added the comment: done, thx -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Python-bugs-lis

[issue6947] Fix distutils test on windows (SO extension)

2009-09-19 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : This will fix distutils test error on windows. -- assignee: tarek components: Distutils, Tests files: test_distutils.patch keywords: patch messages: 92864 nosy: ocean-city, tarek severity: normal status: open title: Fix distutils test on windows (S

[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Please see http://docs.python.org/genindex-D.html. "datetime (class in datetime), [1]" links to same address. I think "[1]" should point to http://docs.python.org/library/datetime.html#datetime-datetime. -- assignee: georg.brandl components: D

[issue6945] pprint.pprint does not pprint unsortable dicts in Python 3

2009-09-19 Thread Armin Ronacher
New submission from Armin Ronacher : Currently pprint does not work on dicts it cannot sort. Because in Python 3 sorted(x.items()) is no longer guaranteed to work a new sorting solution has to be found. -- messages: 92862 nosy: aronacher severity: normal status: open title: pprint.pprin

[issue6942] email.generator.Generator memory consumption

2009-09-19 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> barry nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6943] setup.py fails to find headers of system libffi

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: Patch looks OK and works on my system (the listcomp should be wrapped though). -- assignee: -> loewis keywords: +easy nosy: +georg.brandl priority: -> normal stage: -> patch review type: -> compile error ___ Python

[issue6944] socket.getnameinfo raises SystemError on bogus input

2009-09-19 Thread Georg Brandl
Georg Brandl added the comment: Adapted the test that expected the SystemError (?!) and committed in r74943. Will backport to 2.6. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker