[issue6944] socket.getnameinfo raises SystemError on bogus input

2009-09-19 Thread Marien Zwart

Marien Zwart m_zw...@123mail.org added the comment:

Attaching a less broken patch, after Taggnostr pointed out on irc that
the code I removed is not actually dead. I really don't know why I
thought it was. I did take the opportunity to make it more obvious what
that code is actually checking for.

--
Added file: http://bugs.python.org/file14930/diff.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6944
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6944] socket.getnameinfo raises SystemError on bogus input

2009-09-19 Thread Georg Brandl

Georg Brandl ge...@python.org 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 rep...@bugs.python.org
http://bugs.python.org/issue6944
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Georg Brandl

Georg Brandl ge...@python.org 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 tracker rep...@bugs.python.org
http://bugs.python.org/issue6943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6942] email.generator.Generator memory consumption

2009-09-19 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee:  - barry
nosy: +barry

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6942
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Armin Ronacher

New submission from Armin Ronacher armin.ronac...@active-4.com:

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.pprint does not pprint unsortable dicts in Python 3
versions: Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6945
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:

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: Documentation
messages: 92863
nosy: georg.brandl, ocean-city
severity: normal
status: open
title: Document: Missing link to datetime.datetime
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Hirokazu Yamamoto

New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:

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 (SO extension)
versions: Python 2.6
Added file: http://bugs.python.org/file14931/test_distutils.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6947
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

done, thx

--
resolution:  - accepted
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6947
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6925] Doc for locals and vars

2009-09-19 Thread Georg Brandl

Georg Brandl ge...@python.org 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 of free variable in the reference manual is
inconsistent; this should be fixed independently.

 Python does not treat top-level or recursive function names specially in
 the way meant above.

It does treat them differently: they are globals, not free variables.

 I used 'nonlocal' specifically because the behavior of locals() seemed
 by my testing to be concordant with the behavior of the 'nonlocal'
 statement, which rejects the globals that locals does not print.  What
 do you mean by 'clash'?

nonlocal variables could be mistaken as variables that are declared as
nonlocal by such a statement.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6946] Document: Missing link to datetime.datetime

2009-09-19 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Thanks, fixed in r74952.

--
resolution:  - fixed
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Georg Brandl

Georg Brandl ge...@python.org 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().

--
nosy: +georg.brandl
priority:  - high

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6945
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6941] Socket error when launching IDL

2009-09-19 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6948] list

2009-09-19 Thread kewlar

New submission from kewlar bolshe...@bk.ru:

 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: 92869
nosy: nutregina
severity: normal
status: open
title: list
type: performance
versions: Python 2.6, Python 3.0

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6948
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6948] list

2009-09-19 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com 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:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6948
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


Added file: 
http://bugs.python.org/file14932/python-fix_search_for_libffi_headers.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6943
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6941] Socket error when launching IDLE

2009-09-19 Thread chuck

Changes by chuck jan.hos...@gmail.com:


--
status: pending - open
title: Socket error when launching IDL - Socket error when launching IDLE

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6941] Socket error when launching IDLE

2009-09-19 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6941
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis 
arfrever@gmail.com:

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 Modules/_bsddb.c were copied from bsddb3-4.8.0 [1].

[1] http://www.jcea.es/programacion/pybsddb.htm

--
components: Build
files: python-support_bdb-4.8.patch
keywords: patch
messages: 92871
nosy: Arfrever
severity: normal
status: open
title: Support Berkeley DB 4.8
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file14933/python-support_bdb-4.8.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6949
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6949] Support Berkeley DB 4.8

2009-09-19 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
assignee:  - jcea
nosy: +jcea
priority:  - normal
stage:  - patch review
type:  - feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6949
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread kai zhu

New submission from kai zhu kaizhu...@gmail.com:

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
messages: 92872
nosy: georg.brandl, kaizhu
severity: normal
status: open
title: online documentation error: PyObject* PyByteArray_Resize(PyObject 
*bytearray, Py_ssize_t len)
versions: Python 2.7, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6950
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

This is a duplicate of #6881.

--
nosy: +ezio.melotti
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6950
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6839] zipfile can't extract file

2009-09-19 Thread Jan Hosang

Jan Hosang jan.hos...@gmail.com 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 that as well.

--
keywords: +patch
nosy: +chuck
Added file: http://bugs.python.org/file14934/zlib_forward_slash.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6839
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6918] ctypes compilation error on SnowLeopard

2009-09-19 Thread Thomas Heller

Thomas Heller thel...@ctypes.org 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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6918
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Gawain Bolton

Gawain Bolton gp.bol...@computer.org 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
and more than 8% overall using different sizes all the way up to sys.maxint.

I admit, there is a slight increase in code complexity.  However, I
disagree that the optimization is machine/compiler dependent as there
are fundamentally half as many divisions.

I hope I don't come across as unappreciative, on the contrary the
fundamental ideas is to special case base 10 conversions and get a speed
boost by leveraging the compiler and the
int_decimal_conversion_trunk.patch does this nicely.

I do think it would be unfortunately to not go a little further though -
just because we can do better with little effort, we can save a few CPU
cycles which means saving time, money and all of this can only be good
for the planet.  ;-)

--
Added file: http://bugs.python.org/file14935/int_decimal_conversion_trunk.patch2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6713
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Jean-Paul Calderone

Jean-Paul Calderone exar...@divmod.com 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 rep...@bugs.python.org
http://bugs.python.org/issue3890
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5727] doctest pdb readline broken

2009-09-19 Thread Sriram

Sriram sriramrathinav...@yahoo.com 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 stdout. I presume, that since prior to 2.5, pdb never took the 
stdin and stdout arguments and that overridden method was needed to make 
pdb use a stream other than stdout, but now that 2.5 allows us to pass 
the output stream in init method of pdb, that function is no longer 
needed.

Thanks

--
nosy: +sriram

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5727
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6925] Doc for locals and vars

2009-09-19 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu 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 will be confused as
I was. I will leave this at that.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6925
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2009-09-19 Thread Hirokazu Yamamoto

Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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 rep...@bugs.python.org
http://bugs.python.org/issue6869
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com