[issue3080] Full unicode import system

2011-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

Nice work! Is there a specific place for comments? Here are some of them 
already:

- Modules/zipimport.c::make_filename: remove the limit buffer, the code could
  look like:

  pathsize = PyUnicode_GET_SIZE(prefix) + PyUnicode_GET_SIZE(name);
  result = PyUnicode_FromUnicode(NULL, pathsize);
  path = PyUnicode_AS_UNICODE(ret);
  ...
  return result;

- Python/importdl.c::_PyImport_LoadDynamicModule: shortnameobj is not necessary:

  lastdot = Py_UNICODE_strrchr(nameuni, '.');
  if (lastdot == NULL)
  shortname = namenuni;
  else:
  shortname = lastdot + 1;

- _PyImport_GetDynLoadFunc still takes char* arguments. Can this fail on win32
  for example, in case the pathname cannot be encoded to mbcs?

--

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



[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Charles-Francois Natali

Charles-Francois Natali neolo...@free.fr added the comment:

Could you try with the attached patch ?
The problem is that subprocess silently replaces bufsize=0, so child.stdout is 
actually buffered, and when you read just one byte, everything that's available 
for reading is read into the python's object buffer. Then, select/poll doesn't 
see the pipe as ready for reading since everything as already been read.
Mixing buffered I/O and select leads to trouble, you're right to pass 
bufsize=0, but I don't know why subprocess goes out of its way and buffers it 
anyway:
if bufsize == 0:
bufsize = 1  # Nearly unbuffered (XXX for now)

--
keywords: +patch
nosy: +neologix
Added file: http://bugs.python.org/file21068/subprocess_buffer.diff

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



[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-03-10 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' g.rod...@gmail.com:


--
nosy: +giampaolo.rodola

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



[issue11460] Attribute Error

2011-03-10 Thread saradayerramalle

New submission from saradayerramalle saradasr...@yahoo.co.in:

Hi.
I am new to Python.
I have an ABC.py file in which it has a checkbox.
An instance of the wx.CheckBox is created with name chkbox1.
Initial value is set and its binded to the wx.EVT_CHECKBOX with a function 
xxx().
Now, I am importing ABC.py to XYZ.py.
How to access the event of the checkbox XYZ.py?

If i try to access it as ABC.chkbox1.SetVaule(), its giving the error as 
Attribute Error: type object 'ABC' has no attribute 'chkbox1'.
Please help me ASAP.

--
messages: 130494
nosy: syerrama
priority: normal
severity: normal
status: open
title: Attribute Error
versions: Python 2.7

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



[issue11460] Attribute Error

2011-03-10 Thread Ezio Melotti

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

Hi, if you need help with Python try the Python mailing list[0] or ask on 
IRC[1].
This bug tracker is used only to report bugs in the Python language.

[0]: http://www.python.org/community/lists/
[1]: http://www.python.org/community/irc/

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

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



[issue11458] tarfile with socket incompatability

2011-03-10 Thread Alex Leach

Alex Leach beamesle...@gmail.com added the comment:

Thanks! =D

On Thu, Mar 10, 2011 at 3:46 AM, R. David Murray rep...@bugs.python.orgwrote:


 R. David Murray rdmur...@bitdance.com added the comment:

 I believe you are looking for mode 'r|'.

 --
 nosy: +r.david.murray
 resolution:  - works for me
 stage:  - committed/rejected
 status: open - closed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue11458
 ___


--
Added file: http://bugs.python.org/file21069/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11458
___Thanks! =Dbrbrdiv class=gmail_quoteOn Thu, Mar 10, 2011 at 3:46 AM, R. 
David Murray span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin: 0pt 0pt 0pt 0.8ex; 
border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;
br
R. David Murray lt;a 
href=mailto:rdmur...@bitdance.com;rdmur...@bitdance.com/agt; added the 
comment:br
br
I believe you are looking for mode #39;r|#39;.br
br
--br
nosy: +r.david.murraybr
resolution:  -gt; works for mebr
stage:  -gt; committed/rejectedbr
status: open -gt; closedbr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue11458; 
target=_blankhttp://bugs.python.org/issue11458/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11369] Add caching for the isEnabledFor() computation

2011-03-10 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

Bill,

I was looking at this patch again, and I'm not sure about thread safety. The 
correctness of the caching depends on manager.status, which is state which is 
potentially shared across threads. There are no interlocks around it, so with 
the patch as it stands, ISTM it's possible in a multi-threaded application to 
get stale information. Has your patch been used in multi-threaded applications?

--

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



[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Yuriy Pilgun

New submission from Yuriy Pilgun p...@ukrpost.net:

Reading UTF-16 text file with module 'codecs' fails, if surrogate pair is 
located at 72-character boundary.

Attached python script fails with message:
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 70-71: 
unexpected end of data

The reason is splitting of input data for readline() into chunks, namely
  readsize = size or 72

--
components: Library (Lib), Unicode
files: testutf16.py
messages: 130498
nosy: ply
priority: normal
severity: normal
status: open
title: Reading UTF-16 with codecs.readline() breaks on surrogate pairs
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file21070/testutf16.py

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



[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti
stage:  - test needed

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



[issue11452] Test suite not symlink-install clean

2011-03-10 Thread Steffen Daode Nurpmeso

Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:

So, nobody.  I still can't find a way to reproduce the errors, so.
I also get occasional errors when building _multiprocessor, which
disappear when (removing _multiprocessor_failed.so and) simply
running make all once again.
I thought about providing the patch anyway, but it is maybe better
to simply close this issue (in the meanwhile).

--
resolution:  - invalid
status: open - closed

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



[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I'll give this a proper review in the next day or so (busy at PyCon).

Despite the fact that I typically hate changing values returned by the server, 
I agree on case-folding the fact names to lowercase upon reading them. The RFC 
clearly states they're case insensitive: Fact names are case-insensitive.  
Size, size, SIZE, and SiZe are the same fact. You should have the facts in 
MLSD_DATA be mixed case, to ensure they're being lowercased correctly.

I agree that there's nothing that can be done in the case where no facts are 
specified: the spec clearly says just use the values we've previously set. 
Caller beware.

--

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



[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 You should have the facts in MLSD_DATA be mixed case, to ensure 
 they're being lowercased correctly.

This is already tested by:

+# case sensitiveness
+set_data('Type=type;TyPe=perm;UNIQUE=unique; name\r\n')
+_name, facts = next(self.client.mlsd())
+[self.assertTrue(x.islower()) for x in facts.keys()]

--

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



[issue11072] Add MLSD command support to ftplib

2011-03-10 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

So it is. I told you I hadn't done a proper review! I was mainly trying to say 
I agree with lowercasing.

I'll shut up until I can read the whole patch.

--

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



[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti

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

The tables and several other doc changes went in 3.1 in cb3a925de1bd.

--

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



[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The utf16 incremental codec does not like incomplete surrogate pairs.
Patch attached.
I also plan to refactor all the test_partial() functions of test_codecs, to 
give them a common implementation.

--
keywords: +patch
nosy: +amaury.forgeotdarc
Added file: http://bugs.python.org/file21071/partial_utf16.patch

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



[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Ross Lagerwall

Changes by Ross Lagerwall rosslagerw...@gmail.com:


--
nosy: +rosslagerwall

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



[issue11454] urllib.request import time

2011-03-10 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

OK, running this:
import base64
import bisect
import hashlib
import io
import os
import posixpath
import random
import re
import socket
import sys
import time
import collections

import io
import os
import socket
import collections
import warnings

import warnings
from io import StringIO, TextIOWrapper

import re
import uu
import base64
import binascii
import warnings
from io import BytesIO, StringIO

which is most of the imports that are generated when importing urllib.request 
takes about 0.62s.

Running this:
import email.message
import email.parser
import email
from email.feedparser import FeedParser
from email.message import Message
from email import utils
from email import errors
from email import header
from email import charset as _charset

which is the rest of the imports generated takes 0.105s.

It seems like importing the email module adds considerable time, affecting a 
bunch of other modules like urllib.request and http.client.

When looking at the code, it seems like a fair number of regular expressions 
are compiled when the email module is imported, causing the long import time. I 
wonder if this could be improved somehow?

--
nosy: +barry, r.david.murray -orsenthil

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



[issue9584] Allow curly brace expansion

2011-03-10 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

I removed the unused import (mostly as a simple test of mercurial, it's my 
first commit there).

--

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



[issue3080] Full unicode import system

2011-03-10 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Is there a specific place for comments?

Yes, but my work is not done. I still have parts to commit.

 _PyImport_GetDynLoadFunc still takes char* arguments.

Oh. This one is not easy because this function has many implementations and all 
implementations have the same prototype. I will maybe fix it later.

--

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



[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I'd rather recommend a different approach, where the set of CAs doesn't need to 
be specified for every module that directly or indirectly uses SSL. Instead, 
there should be support for a thread-local setting of the allowable CAs, and 
then no API changes are necessary.

--
nosy: +loewis

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



[issue11459] Python select.select does not correctly report read readyness

2011-03-10 Thread Novimir Pablant

Novimir Pablant amici...@gmail.com added the comment:

Applying the patch appears to fix this problem. Thanks!


I am definitely confused about why the buffer was changed to line buffered in 
the first place, especially since the default is bufsize=0 and the comment (# 
Nearly unbuffered (XXX for now)) does not appear to match the actual behavior.

--

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Daniel Stutzbach

Daniel Stutzbach stutzb...@google.com added the comment:

For what it's worth, I believe this could be implemented easily by calling 
_PyDict_HasOnlyStringKeys at the end of the class creation process.

--
nosy: +stutzbach

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



[issue11457] Expose nanosecond precision from system calls

2011-03-10 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +nvawda

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



[issue11454] urllib.request import time

2011-03-10 Thread Nadeem Vawda

Changes by Nadeem Vawda nadeem.va...@gmail.com:


--
nosy: +nvawda

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



[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox

uptimebox m...@uptimebox.ru added the comment:

The bug still exists in 2.6.6

Process PoolWorker-2:
Traceback (most recent call last):
Process PoolWorker-1:
Traceback (most recent call last):
  File /usr/lib/python2.6/multiprocessing/process.py, line 232, in _bootstrap
  File /usr/lib/python2.6/multiprocessing/process.py, line 232, in _bootstrap
self.run()
self.run()
  File /usr/lib/python2.6/multiprocessing/process.py, line 88, in run
  File /usr/lib/python2.6/multiprocessing/process.py, line 88, in run
self._target(*self._args, **self._kwargs)
self._target(*self._args, **self._kwargs)
  File /usr/lib/python2.6/multiprocessing/pool.py, line 57, in worker
  File /usr/lib/python2.6/multiprocessing/pool.py, line 57, in worker
task = get()
task = get()
  File /usr/lib/python2.6/multiprocessing/queues.py, line 352, in get
  File /usr/lib/python2.6/multiprocessing/queues.py, line 352, in get
return recv()
return recv()
TypeError: type 'partial' takes at least one argument
TypeError: type 'partial' takes at least one argument

--
nosy: +uptimebox

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Can somebody propose a patch?

--

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



[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The bug was fixed in 2.7, and not backported to 2.6.
2.6 is now in security-fix-only mode, if possible you should upgrade to 2.7.

--
nosy: +amaury.forgeotdarc

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



[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I'd rather recommend a different approach, where the set of CAs
 doesn't need to be specified for every module that directly or
 indirectly uses SSL. Instead, there should be support for a
 thread-local setting of the allowable CAs, and then no API changes are
 necessary.

While thread-local variables are fine in applications, I think they
should be avoided in libraries (especially the stdlib). There are too
many pitfalls (for example: the user decides to offload a network task
to a separate thread and different SSL parameters get silently used).

The API changes are quite simple, both in concept and in implementation.
I think explicit is really better than implicit when it comes to
security-critical parameters.

--

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

So, I see four possible solutions:

1. If we get a tuple, create the new tuple, normalize the exception, and store 
it.  If we get a SyntaxError instance, use its args, create the new tuple, 
normalize, and store.  (In this case a SyntaxError instance will be created 
twice.)

2. If we get a tuple, create the new tuple and store it without normalization.  
If we get a SyntaxError instance use its args to create the new tuple and store 
it without normalization.  (I think, that later it's still possible that a new 
SynaxError will be created, but we don't create it here.)

3. If we get a tuple, create the new tuple, and store it without normalization. 
 If we get a SyntaxError, take its args, create the new tuple, and call 
SyntaxError.__init__ with it. I think this will set all fields properly.

4. Like 3., but if we got a tuple, store the new tuple with normalization.

My patch currently does 1. 
My patch, without the PyErr_NormalizeException() call would be 2.
I think maybe 3. would be the best solution, or 4., if normalization is desired 
in all cases.

I can write a new patch, if the experts tell me what is the best solution from 
the four (or some other I didn't think of).

--

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



[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Mads Kiilerich

Mads Kiilerich m...@kiilerich.com added the comment:

The response I got to this issue hinted that it was a lame issue I filed. I 
haven't had time/focus to investigate further and give constructive feedback.

I think it is kind of OK to require explicit specification of the ca_certs as 
long as it is made clear in all the relevant places that it _has_ to be done. I 
think it would be a good idea to deprecate the default value for ca_certs and 
issue a warning if ca_certs hasn't been specified (as None or a path).

I have heard that some Python variants come with the system ca_certs built in 
and hard-coded somehow. That is in a way very nice and convenient and a good 
solution (as long the user wants to use the same ca_certs for all purposes), 
but it would have to be available and reliable on all platforms to be really 
useful.

--

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

I'd choose solution 3, but instead of calling SyntaxError.__init__, call 
PyErr_NormalizeException().

--

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



[issue11441] compile() raises SystemError if called from except clause

2011-03-10 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

Err... sorry, I don't understand again:

If we get a tuple, create a new, store it without normalization. That's okay, I 
understand.

If we get a SyntaxError instance, then take its args field, create the new 
tuple. Then call PyErr_NormalizeException(), with:
a) the new tuple? But this will create a new SyntaxError instance...
b) the old SyntaxError instance? But this won't correct the wrong fields of the 
instance. (I think SyntaxError.__init__ would correct them without creating a 
new instance.)
c) or replace the args of the SyntaxError instance with the new tuple, then 
call PyErr_NormalizeException() on the instance? But I think that still won't 
correct the other fields of the instance...

Sorry for all these questions... I'd just like to help.

--

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



[issue10795] standard library do not use ssl as recommended

2011-03-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I think it is kind of OK to require explicit specification of the
 ca_certs as long as it is made clear in all the relevant places that
 it _has_ to be done. I think it would be a good idea to deprecate the
 default value for ca_certs and issue a warning if ca_certs hasn't been
 specified (as None or a path).

The recommended way from Python 3.2 upwards is to define a SSLContext
and use it when doing SSL operations. Many APIs have been updated to
accept a context, a few are remaining as I've said in my first comment.

 I have heard that some Python variants come with the system ca_certs
 built in and hard-coded somehow.

This is really some OpenSSL variants rather than some Python
variants. We can't control how the system (or user-supplied) OpenSSL is
built.
This feature is exposed in SSLContext.set_default_verify_paths() (see
http://docs.python.org/dev/library/ssl.html#ssl.SSLContext.set_default_verify_paths),
with the caveat that you don't know whether it succeeded at all.

 That is in a way very nice and convenient and a good solution (as long
 the user wants to use the same ca_certs for all purposes), but it
 would have to be available and reliable on all platforms to be really
 useful.

Well, for one, it probably won't be effective on Windows builds, since
it's really not Python's job to define a set of reliable CA certificates
(unless Martin wants to take that responsibility, that is), and Windows
doesn't have a set of system certificates in the PEM format AFAIK.

--

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Daniel Urban

Daniel Urban urban.dani...@gmail.com added the comment:

 Can somebody propose a patch?

Yes, here it is. (I'm not sure if the test is in the correct file.)

--
keywords: +patch
nosy: +durban
Added file: http://bugs.python.org/file21072/issue11455.patch

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

How about the case where non-string keys are added after the class is created?
(I think I've heard some third-party lib does this, perhaps a generic functions 
implementation?)

--
nosy: +pitrou

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Alex

Alex alex.gay...@gmail.com added the comment:

How can they be set afterwords?

alex@alex-laptop:~/projects/pypy$ python3.1 
Python 3.1.2 (release31-maint, Sep 17 2010, 20:34:23) 
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
 class A(object):
... pass
... 
 A.__dict__[32] = heh
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: 'dict_proxy' object does not support item assignment
 setattr(A, 32, heh)
Traceback (most recent call last):
  File stdin, line 1, in module
TypeError: attribute name must be string, not 'int'

--

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



[issue11455] issue a warning when populating a CPython type dict with non-string keys

2011-03-10 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Hmm, that's true (although there's a trick using gc.get_referers(), IIRC).
I was probably thinking about instance dicts rather than type dicts, then.

--

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



[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

Bump! How about applying this patch, Eric? Or maybe there is something else, 
that needs to be done. If so, I'll be happy to do it.

--

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



[issue8933] Invalid detection of metadata version

2011-03-10 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Could you port the patch to distutils2?  I should have told so sooner, it’s the 
process we follow (more info on 
http://wiki.python.org/moin/Distutils/FixingBugs).

--
keywords: +needs review
stage: needs patch - patch review
versions: +Python 3.3

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



[issue8933] Invalid detection of metadata version

2011-03-10 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

Sure :-)

--

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



[issue11454] urllib.request import time

2011-03-10 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +orsenthil

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



[issue9796] Add summary tables for unittest API

2011-03-10 Thread Ezio Melotti

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

And in 2.7 in 6e5b5d1b6714.
There's some more refactoring that could be done on unittest.rst but it's out 
of the scope of this issue, so I'm closing this.

--
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue11435] Links to source code should now point to hg repo

2011-03-10 Thread Ezio Melotti

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

This can be closed.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue11244] Negative tuple elements produce inefficient code.

2011-03-10 Thread Eugene Toder

Eugene Toder elto...@gmail.com added the comment:

As discussed on the list, peephole refuses to fold -0. The reasons for this are 
unclear. Folding was disabled with this commit:
http://hg.python.org/cpython/diff/660419bdb4ae/Python/compile.c

Here's a trivial patch to enable the folding again, along with a test case. 
make test passes with the patch.
The change is independent from Antoine's patches.

--
nosy: +eltoder
Added file: http://bugs.python.org/file21073/fold-0.patch

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-10 Thread Vetoshkin Nikita

Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:

BTW, can you publish your xlistdir implementation somewhere?
http://pastebin.com/Qnni5HBa

Tests show 10 times smaller memory footprint during directory listing - 25Mb 
against 286Mb on directory with 800K entries.

--

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



[issue4758] Python 3.x internet documentation needs work

2011-03-10 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +giampaolo.rodola
status: open - languishing

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



[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti

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

This is maybe out of the scope of this issue, but I would like to see all the 
basic data types on single page on their own.  The current page[0] has some 
section about data types mixed with sections about operations, comparisons, and 
other things, followed by less-used types.  The page also contains lot of 
informations and it's not easy to browse (42 screens on a 24 monitor).

Ideally the structure should be something like:

1. True, False, None
2. int, float(, long, complex)
3. str, unicode, list, tuple(, bytearray, buffer, xrange)
4. dict
5. set(, frozenset)

(where the types in () are considered less important -- so maybe described in 
detail later or in another page).  The page can list common operations for each 
group and their methods, but leaving things like the string formatting 
operations to another page/section.


[0]: http://docs.python.org/library/stdtypes.html

--

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



[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-03-10 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4f9213d3858b by R David Murray in branch '3.1':
#10999: Add missing documentation for chflags constants to stat module docs
http://hg.python.org/cpython/rev/4f9213d3858b

New changeset de5d0b4f81c3 by R David Murray in branch '3.2':
Merge #10999 fix.
http://hg.python.org/cpython/rev/de5d0b4f81c3

New changeset 761e6e85d29e by R David Murray in branch 'default':
Merge #10999 fix.
http://hg.python.org/cpython/rev/761e6e85d29e

New changeset 515a81ca81ce by R David Murray in branch '2.7':
#10999: Add missing documentation for chflags constants to stat module docs
http://hg.python.org/cpython/rev/515a81ca81ce

--
nosy: +python-dev

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



[issue10999] os.chflags refers to stat constants, but the constants are not documented in the stat module

2011-03-10 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Thanks for the patch!

--
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

I have started learning .rst, so I hope to work on this in the not too distant 
future.

Ezio -- I have also noticed that some chapters are too long to be easily 
scrolled around in (unittest is another), and either need an index at the top 
(like with built-in functions) or separate files (or both)

--

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



[issue4966] Improving Lib Doc Sequence Types Section

2011-03-10 Thread Ezio Melotti

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

The advantage of having one big page is that you can ctrl+f easily without 
having to go back and forth from different pages
On the other hand, the page is not easy to browse (especially on small screens, 
mobile devices, old/slow pcs).

In this case I don't think that splitting the page is a problem, because the 
page contains information about different and fairly unrelated thing.

With pages like unittest or logging is not so easy to split because while 
working with them you might need to use several different 
functions/methods/classes and having their docs on two or more page will be 
annoying.  (FWIW I've been working a lot on the unittest doc to make it more 
compact and easier to browse, but there's still work to do.  We have also 
been considering to make a page for unittest users that explains how to write 
tests and use the assert methods and another for unittest developers that 
explains how to write test runners, suites and more advanced stuff.)

BTW .rst is really easy, and if you are not sure about something just try to 
build the doc with make html and see if it complains and if the resulting 
page looks OK.  Also see http://docs.python.org/documenting/index.html.

--

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



[issue11461] Reading UTF-16 with codecs.readline() breaks on surrogate pairs

2011-03-10 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
nosy: +haypo

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



[issue10665] Expand unicodedata module documentation

2011-03-10 Thread Ezio Melotti

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

The patch contains non-ascii chars that should be avoided (they break `make 
pdf`).

--

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

New submission from Eugene Toder elto...@gmail.com:

Peephole optimizer performs constant folding, however
1) When it replaces operation with LOAD_CONST it always adds a new constant to 
co_consts, even if constant with the same value is already there. It also can 
add the same constant multiple times.
2) It does not remove constants that are no longer used after the operation was 
folded.
The result is that code object after folding has more constants that it needs 
and so uses more memory.

Attached are patches to address this. Patch for 1) comes in 2 versions. PlanA 
is simple (it only needs changes in peephole.c), but does linear searches 
through co_consts and duplicates some logic from compiler.c. PlanB needs 
changes in both peephole.c and compiler.c, but is free from such problems. I 
favour PlanB.

Patch for 2) can be applied on top of either A or B.

--
components: Interpreter Core
messages: 130537
nosy: eltoder
priority: normal
severity: normal
status: open
title: Peephole creates duplicate and unused constants
type: performance
versions: Python 3.3

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

Changes by Eugene Toder elto...@gmail.com:


--
keywords: +patch
Added file: http://bugs.python.org/file21074/dedup_const_plana.patch

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

Eugene Toder elto...@gmail.com added the comment:

(either plana or planb should be applied)

--
Added file: http://bugs.python.org/file21075/dedup_const_planb.patch

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

Changes by Eugene Toder elto...@gmail.com:


Added file: http://bugs.python.org/file21076/unused_consts.patch

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

Eugene Toder elto...@gmail.com added the comment:

(test case)

--
nosy: +pitrou
Added file: http://bugs.python.org/file21077/consts_test.patch

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



[issue3591] elementtree tests do not include bytes handling

2011-03-10 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt
versions: +Python 3.1, Python 3.2, Python 3.3

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



[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Luís Antônio Araújo de Brito

New submission from Luís Antônio Araújo de Brito l...@multmeio.com.br:

Hi folks,
I have an app that talk with cPanel for create/suspend/unsuspend/kill 
domaind.. So when I use the urllib2 to get response for cPanel and read it. It 
show the IncompleteRead except. 
I get the same URL in a browser and the response is ok. With lib it's 
broked.

The Code Sample
--
auth = WHM my_user:%s % HASHHASHHASHHASH
_opener = urllib2.build_opener()
_opener.addheaders = [('Authorization', auth)]

url = http://my_cpanel_url/scripts/remote_suspend?user=%s; % 
user_on_cpanel_name
try:
f = _opener.open(url)
except urllib2.HTTPError, e:
raise OperationError(e)
result = f.read() # -- IncompleteRead except HERE
f.close()
print result.strip()
-

--
messages: 130540
nosy: caitifbrito
priority: normal
severity: normal
status: open
title: IncompleteRead: IncompleteRead(168 bytes read)
type: resource usage
versions: Python 2.6

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



[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Luís Antônio Araújo de Brito

Changes by Luís Antônio Araújo de Brito l...@multmeio.com.br:


--
nosy: +hdiogenes

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



[issue9850] obsolete macpath module dangerously broken and should be removed

2011-03-10 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2

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



[issue8754] ImportError: quote bad module name in message

2011-03-10 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Victor: Should I close this bug as superseded by yours?

--
priority: high - normal

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



[issue11463] IncompleteRead: IncompleteRead(168 bytes read)

2011-03-10 Thread Humberto Diogenes

Humberto Diogenes humbe...@digi.com.br added the comment:

Luís, please analyse the response from the web server to see if it really is a 
valid HTTP response - AFAIK CPanel web services do not always give valid HTTP 
responses.

--
components: +Library (Lib)
type: resource usage - behavior

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

Sorry Eugene, but I'm not willing to add that much complexity to save a few 
bytes.  This was a known issue and long ago we choose to leave it as-is.  In 
the future when constant folding is done at the AST level, we'll get more 
extensive optimizations and they won't produce duplicate or unused constants as 
a by-product.

--
assignee:  - rhettinger
nosy: +rhettinger
priority: normal - low

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



[issue11462] Peephole creates duplicate and unused constants

2011-03-10 Thread Eugene Toder

Eugene Toder elto...@gmail.com added the comment:

I think the changes are fairly trivial. dedup_const_planb.patch is about 10 
lines of new code with all the rest being trivial plubming. unused_consts.patch 
may look big, but only because I factored out fix ups into a separate function; 
there are only about 25 lines of new code.

--

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



[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-10 Thread Марк Коренберг

Марк Коренберг socketp...@gmail.com added the comment:

http://lwn.net/Articles/216948/
Why kernel.org is slow

To proove that readdir is bad thing on large number of items in a directory.

Well, EXT4 has fixed some issues 
(http://ext2.sourceforge.net/2005-ols/paper-html/node3.html) But what about 
locking in linux kernel (vfs and ext4) code?

Also, some conservative linuxes still use ext3.

--

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



[issue11464] Call Mac API Crash via ctypes

2011-03-10 Thread yufun

New submission from yufun heyt1...@gmail.com:

appsLib =cdll.LoadLibrary(util.find_library('ApplicationServices'))
event = appsLib.CGEventCreate(None);
pt = appsLib.CGEventGetLocation(event);

Crash after execute above python code. But these code works well in python3.13.

--
assignee: theller
components: ctypes
messages: 130546
nosy: heyt1981, theller
priority: normal
severity: normal
status: open
title: Call Mac API Crash via ctypes
versions: Python 3.2

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



[issue11426] CSV examples can't close their files

2011-03-10 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

The attached patch tries to be true to the convention in other documentation 
pages, by using with in complete code samples (examples), but not using it in 
prompt () samples, where usage of with unnecessarily complicates 
interaction.

--
keywords: +patch
nosy: +ezio.melotti, georg.brandl, ncoghlan
stage:  - patch review
Added file: http://bugs.python.org/file21078/issue11426.1.patch

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



[issue5228] multiprocessing not compatible with functools.partial

2011-03-10 Thread uptimebox

uptimebox m...@uptimebox.ru added the comment:

Unfortunately, upgrading to 2.7 is not an option for me, since my application 
works on Debian stable which only includes 2.6. For now I'm settled with the 
following workaround: http://paste.pocoo.org/show/351774/

--

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



[issue8995] Performance issue with multiprocessing queue (3.1 VS 2.6)

2011-03-10 Thread Charles-Francois Natali

Charles-Francois Natali neolo...@free.fr added the comment:

Could you try with Python 3.2 ?
In 3.1, the only available pickle implementation was in pure python: with 
cPickle (2.7) or _pickle (3.2), it should be much faster.

--
nosy: +neologix

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