[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-24 Thread Nir Aides

Nir Aides n...@winpdb.org added the comment:

Wait, the tests seem wrong. I'll post an update later today.

--

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



[issue12136] test_logging fails when no ssl available

2011-05-24 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
resolution:  - fixed
status: open - closed

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



[issue12151] test_logging fails sometimes

2011-05-24 Thread Vinay Sajip

Changes by Vinay Sajip vinay_sa...@yahoo.co.uk:


--
assignee:  - vinay.sajip

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



[issue8796] Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter

2011-05-24 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
nosy: +petri.lehtinen

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



[issue12155] queue example doesn't stop worker threads

2011-05-24 Thread STINNER Victor

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

 Is it unclear to you what those mean?

Well, it's clear, but I like when I can simply copy/paste the example and it 
does just work:

 If you post a high-quality self-contained example somewhere 
 on the net, I would be happy to link to it.

I just propose to change the example to stop the threads:
--
def worker():
while True:
item = q.get()
if item is None:
break
do_work(item)
q.task_done()

q = Queue()
threads = []
for i in range(num_worker_threads):
 t = Thread(target=worker)
 threads.append(t)
 t.start()

for item in source():
q.put(item)

q.join()   # block until all tasks are done
for i in range(num_worker_threads):
q.put(None)
for t in threads: t.join()
--

--

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



[issue6560] socket sendmsg(), recvmsg() methods

2011-05-24 Thread Gergely Kálmán

Gergely Kálmán kalman.gerg...@duodecad.hu added the comment:

No, indeed this is a lot better.

--

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



[issue8796] Deprecate codecs.open()

2011-05-24 Thread Marc-Andre Lemburg

Changes by Marc-Andre Lemburg m...@egenix.com:


--
title: Deprecate codecs.open(), codecs.StreamReader and codecs.StreamWriter - 
Deprecate codecs.open()

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



[issue12166] object.__dir__

2011-05-24 Thread Michael Foord

New submission from Michael Foord mich...@voidspace.org.uk:

Implementing a custom __dir__ method is fiddly because there is no way of 
obtaining the standard list of attributes that dir would return.

Moving the relevant parts of the dir implementation into object.__dir__ would 
allow a custom __dir__ to obtain the standard list by calling up to the base 
class.

See email discussion at:

http://mail.python.org/pipermail/python-ideas/2011-May/010319.html

--
messages: 136726
nosy: benjamin.peterson, michael.foord
priority: normal
severity: normal
status: open
title: object.__dir__
type: feature request
versions: Python 3.3

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread STINNER Victor

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

 I think it's better to use a StringIO instance for the tests.

For which test excatly? An encoder produces bytes, I don't the relation with 
StringIO.

--

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



[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 5c716437a83a by Victor Stinner in branch 'default':
Issue #12049: Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
http://hg.python.org/cpython/rev/5c716437a83a

--
nosy: +python-dev

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



[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

New submission from Antoine Pitrou pit...@free.fr:

Looks like either packaging or test_packaging forgets to clean up after itself:

results for 9a16fa0c9548 on branch default


test_packaging leaked [193, 193, 193] references, sum=579

--
assignee: tarek
components: Distutils2, Tests
messages: 136729
nosy: alexis, eric.araujo, pitrou, tarek
priority: normal
severity: normal
stage: needs patch
status: open
title: test_packaging reference leak
type: resource usage
versions: Python 3.3

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

STINNER Victor wrote:
 
 STINNER Victor victor.stin...@haypocalc.com added the comment:
 
 I think it's better to use a StringIO instance for the tests.
 
 For which test excatly? An encoder produces bytes, I don't the relation with 
 StringIO.

Sorry, BytesIO in Python3-speak. In Python2 you'd use StringIO.

--
title: Incremental encoders of CJK codecs reset the codec at each call to 
encode() - Incremental encoders of CJK codecs reset the codec at each call 
to encode()

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



[issue12028] threading._get_ident(): remove it in the doc or make it public

2011-05-24 Thread STINNER Victor

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

threading_get_ident.patch: make get_ident() public, replace 
threading._get_ident() by threading.get_ident().

According to this patch, get_ident() function *is* used: it is used by the 
logging and reprlib modules (and many tests). My patch avoids the usage of the 
low-level module, _thread_, in logging and reprlib.

I adapted signal.pthread_kill() documentation to replace 
threading.current_thread().ident by threading.get_ident().

--
keywords: +patch
Added file: http://bugs.python.org/file22089/threading_get_ident.patch

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Nadeem Vawda

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


--
nosy: +nadeem.vawda

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



[issue12140] Crash upon start up

2011-05-24 Thread Philip Drew

Philip Drew pwtd...@gmail.com added the comment:

Ok, python now works in command prompt, but IDLE still wont run.
Also, PYTHONHOME needs to be reset on every start up of command prompt.

--

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



[issue12166] object.__dir__

2011-05-24 Thread Giampaolo Rodola'

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


--
nosy: +giampaolo.rodola

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



[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-24 Thread STINNER Victor

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

@Antoine: What's your opinion?

--

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



[issue11748] test_ftplib failure in test for source_address

2011-05-24 Thread Giampaolo Rodola'

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

Is this fixed?

--

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



[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-24 Thread Antoine Pitrou

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

IMO this was all obsolete long ago, when we replaced stdout-based comparison of 
test results with proper assert* method calls.

--

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



[issue12140] Crash upon start up

2011-05-24 Thread Amaury Forgeot d'Arc

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

Yes, this is probably a system-wide setting. PYTHONHOME should not be set, 
especially if it points to another python installation.
You should consider removing it.

Is alien swarm a game? Why did it modify the system this way? Does the game 
still work when you remove the environment variable?

--

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Amaury Forgeot d'Arc

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

Probably because new extension modules are built and imported on every run.

--
nosy: +amaury.forgeotdarc

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

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

 Probably because new extension modules are built and imported on every run.

Well, test_distutils does the same, doesn't it?

--

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



[issue12140] Crash upon start up

2011-05-24 Thread Philip Drew

Philip Drew pwtd...@gmail.com added the comment:

Awesome. It's fixed- do you still want to know whether or not the game works.
In case it helps, I installed the game before python

--

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



[issue12140] Crash upon start up

2011-05-24 Thread Amaury Forgeot d'Arc

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

It's definitely a bad thing to set PYTHONHOME at the system level, when there 
are several pythons installed. Please report this to the game's developers.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Amaury Forgeot d'Arc

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

I could not find any test in distutils/tests that imports extension modules.

--

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



[issue12167] test_packaging reference leak

2011-05-24 Thread STINNER Victor

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

DistributionTestCase.test_hooks_get_run() leaks some references, I'm trying to 
understand where exactly.

--
nosy: +haypo

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



[issue12168] SysLogHandler incorrectly appents \000 to messages

2011-05-24 Thread Carl Crowder

New submission from Carl Crowder carl.crow...@gmail.com:

logging.handlers.SysLogHandler contains this class variable and comment:

# curious: when talking to the unix-domain '/dev/log' socket, a
# zero-terminator seems to be required.  this string is placed
# into a class variable so that it can be overridden if
# necessary.
log_format_string = '%d%s\000'

And separately, in emit:

msg = self.format(record) + '\000'

The assumption here is that a null character must be appended to delimit the 
syslog message. In RFC5424, there is no mention of a message delimiter, and in 
fact the previous syslog RFC, RFC3164, specifically states:

  The MSG part will fill the remainder of the syslog packet.  This will 
 usually contain some additional information of the process that generated the 
 message, and then the text of the message.  There is no ending delimiter to 
 this part.

I believe this comment and behaviour is due to an older version of syslogd. 
Checking the manpage for an older version of rsyslog for example includes this 
piece of information [1]:

 There is probably one important consideration when installing rsyslogd. It is 
 dependent on proper formatting of messages by the syslog function. The 
 functioning of the syslog function in the shared libraries changed somewhere 
 in the region of libc.so.4.[2-4].n.   The specific change was to 
 null-terminate the message before transmitting it to the /dev/log socket. 
 Proper functioning of this  version of rsyslogd is dependent on 
 null-termination of the message.

I'm running Ubuntu 11.04 with rsyslogd 4.6.4 (that is, the standard version). 
In the manpage for this version of rsyslogd, there is no reference to 
null-terminators. Removing + '\000' from the SysLogHandler results in 
messages still being received correctly.

Problem behaviour:
1) When running any RFC compliant syslog receiver that handles syslog messages, 
such as flume[2], this null character is not stripped as it is not expected to 
be present. Current versions of syslog cope because previously they assumed it 
existed.
2) The log_format_string class variable is not actually used anywhere, so it 
cannot be overridden usefully.

Removing the null terminator will cause older typical versions of syslogd to 
fail to receive messages, however including it causes any normal receiver that 
does not implement the non-standard behaviour to receive an additional unwanted 
null.

Suggestion for a fix is either to properly use the log_format_string class 
variable, or to allow an optional append_null argument to the SysLogHandler 
constructor. By default, this should be True, as it will continue to work with 
the main use case, which is unix syslog demons. Having the option will allow 
other use cases to also use the SysLogHandler.

[1] http://manpages.ubuntu.com/manpages/hardy/man8/rsyslogd.8.html#contenttoc8
[2] http://www.cloudera.com/blog/category/flume/

--
components: Library (Lib)
messages: 136743
nosy: Carl.Crowder
priority: normal
severity: normal
status: open
title: SysLogHandler incorrectly appents \000 to messages
type: behavior
versions: Python 2.7

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

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

Let's see:

- test_command_bdist_dumb.py leaks:
test_packaging leaked [7, 7] references, sum=14

- test_dist.py leaks:
test_packaging leaked [65, 65] references, sum=130

- test_mixin2to3.py leaks:
test_packaging leaked [60, 60] references, sum=120

- test_pypi_dist.py leaks:
test_packaging leaked [28, 28] references, sum=56

- test_pypi_simple.py leaks:
test_packaging leaked [12, 12] references, sum=24

- test_uninstall.py leaks:
test_packaging leaked [5, 5] references, sum=10

- test_util.py leaks:
test_packaging leaked [40, 40] references, sum=80

--

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 70675864717b by Victor Stinner in branch 'default':
Issue #12167: packaging.tests.support, LoggingCatcher restores correctly the
http://hg.python.org/cpython/rev/70675864717b

New changeset 28c1f8480090 by Victor Stinner in branch 'default':
Issue #12167: packaging.tests.test_dist unloads the temporary module
http://hg.python.org/cpython/rev/28c1f8480090

--
nosy: +python-dev

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

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

In test_command_bdist, the leak is in test_simple_built().

--

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

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

In test_mixin2to3.py, the leak is shared between the 3 test methods.

--

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



[issue12167] test_packaging reference leak

2011-05-24 Thread Antoine Pitrou

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

In test_pypi_dist, the leak is shared between test_download() and test_unpack().

--

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



[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread STINNER Victor

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

distutils.sysconfig has also a parse_makefile() function, but it doesn't have 
the bug.

Attached patch fixes this issue: keep bogus variables unchanged and adds 
tests for _parse_makefile().

--
keywords: +patch
versions: +Python 3.2
Added file: http://bugs.python.org/file22090/sysconfig.patch

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



[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-24 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

Correction for msg136711 -- s/patch/test/g

--

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



[issue12113] test_packaging fails when run twice

2011-05-24 Thread Alexis Metaireau

Alexis Metaireau ale...@notmyidea.org added the comment:

Same here, cannot reproduce the issue. I wasn't able to reproduce it even 
before Tarek's commit so I suppose his commit didnt changed anything regarding 
this hash problem.

Antoine  Tarek, does the attached additional test reproduces the issue on your 
installation?

--
assignee: tarek - alexis
keywords: +patch
resolution: fixed - 
status: closed - open
Added file: http://bugs.python.org/file22091/serve_twice.patch

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



[issue12113] test_packaging fails when run twice

2011-05-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

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



[issue12113] test_packaging fails when run twice

2011-05-24 Thread Tarek Ziadé

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

I fixed it. The pypi server missed a Content-Length in its responses, and that 
made urlretrieve crazy :)

--

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-24 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

OK, I'll hold off on doing a detailed review until then.

--

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



[issue11998] test_signal cannot test blocked signals if _tkinter is loaded; Tcl_Finalize()

2011-05-24 Thread STINNER Victor

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

I implemented signal.pthread_kill(), so it's now possible to test pending 
signals in test_signal, even if _tkinter is loaded.

I don't think that we need the _finalize() hack anymore.

--
resolution:  - wont fix
status: open - closed

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



[issue11512] adding test suite for cgitb

2011-05-24 Thread Petri Lehtinen

Changes by Petri Lehtinen pe...@digip.org:


--
nosy: +petri.lehtinen

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



[issue11242] urllib.request.url_open() doesn't support SSLContext

2011-05-24 Thread STINNER Victor

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

url_open_ssl_context.patch: add optinal ssl_context argument to 
urllib.request.url_open(). (ca_file, ca_path) and ssl_context are mutual 
exclusive.

--
keywords: +patch
Added file: http://bugs.python.org/file22092/url_open_ssl_context.patch

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



[issue11242] urllib.request.url_open() doesn't support SSLContext

2011-05-24 Thread Antoine Pitrou

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

That's not really useful. If you want to use an SSL context, build your own 
opener:

opener = build_opener(HTTPSHandler(context=mycontext))
opener.open(...)

--

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



[issue12055] doctest not working on nested functions

2011-05-24 Thread Éric Araujo

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

2.7 and 3.2 are the present, but we work for the future :)  Thanks for the 
patch.

I’m adding to the nosy list the developers who committed the most recent 
changes to doctest so that someone can decide whether this new feature is 
desirable and review the patch.

--
keywords: +needs review
nosy: +flox, georg.brandl, ncoghlan
stage: needs patch - patch review

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



[issue12166] object.__dir__

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 8f403199f999 by Benjamin Peterson in branch 'default':
move specialized dir implementations into __dir__ methods (closes #12166)
http://hg.python.org/cpython/rev/8f403199f999

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-05-24 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Checking the kernel version did the trick, the test now run fines on the 
buildbots.
Thanks Victor.
Re-closing.

--
status: open - closed

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



[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-24 Thread Senthil Kumaran

Senthil Kumaran sent...@uthcode.com added the comment:

Justin,

The patch and logic is okay. We can have this is 3.3.

- I find that loop_actions as not appropriate name for the new method. It fails 
to give a intuitive meaning of what is supposed to do. request_action, 
request_action_continued or anything else which gives a meaning should be 
helpful.  I agree with your reasoning to provide some flexiblity for the user 
to override this.

- The patch lacks Documentation and tests should be added to 
Lib/test/test_socketserver.py.  If you can, please append the patch with these, 
otherwise I shall do it.

A suggestion for better method name is a must! :)

Thanks!

--
assignee: gregory.p.smith - orsenthil
nosy: +orsenthil

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



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-05-24 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 New changeset f8c49a930015 by Victor Stinner in branch 'default':
 Issue #8407: The signal handler writes the signal number as a single byte
 http://hg.python.org/cpython/rev/f8c49a930015

There's a race.
If a signal is received while is_tripped is set, the signal number won't be 
written to the wakeup FD.
Patch attached.

--
Added file: http://bugs.python.org/file22093/sig_wakeup_race.diff

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset f13c06b777a7 by Charles-François Natali in branch '3.1':
Issue #5715: In socketserver, close the server socket in the child process.
http://hg.python.org/cpython/rev/f13c06b777a7

--
nosy: +python-dev

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset ccd59ba8145e by Charles-François Natali in branch '3.2':
Issue #5715: In socketserver, close the server socket in the child process.
http://hg.python.org/cpython/rev/ccd59ba8145e

--

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



[issue11512] adding test suite for cgitb

2011-05-24 Thread R. David Murray

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


--
nosy: +r.david.murray

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



[issue8898] The email package should defer to the codecs module for all aliases

2011-05-24 Thread Michele Orrù

Michele Orrù maker...@gmail.com added the comment:

After discussing on IRC, it figured out that the best choice would be to use 
normalize_encoding plus ALIAS, as the attached patch does.

--
Added file: http://bugs.python.org/file22094/issue8898_normalize.patch

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0e56d79fa2ab by Charles-François Natali in branch 'default':
Issue #5715: In socketserver, close the server socket in the child process.
http://hg.python.org/cpython/rev/0e56d79fa2ab

--

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



[issue12160] codecs doc: what is StreamCodec?

2011-05-24 Thread Éric Araujo

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


--
assignee:  - docs@python
components: +Documentation
nosy: +docs@python
stage:  - patch review
versions: +Python 2.7, Python 3.1, Python 3.2

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



[issue12165] Does nonlocal include global?

2011-05-24 Thread Éric Araujo

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

Does this doc help: 
http://docs.python.org/dev/reference/simple_stmts#the-nonlocal-statement ?

--
nosy: +eric.araujo

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



[issue12168] SysLogHandler incorrectly appents \000 to messages

2011-05-24 Thread Éric Araujo

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


--
assignee:  - vinay.sajip
nosy: +vinay.sajip
versions: +Python 3.1, Python 3.2, Python 3.3

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



[issue12168] SysLogHandler incorrectly appents \000 to messages

2011-05-24 Thread R. David Murray

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

While I agree that it should ideally be possible to actually control this 
behavior as indicated by the comment, any syslog handler that does not sanitize 
the messages it receives is broken.

--
nosy: +r.david.murray

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



[issue12168] SysLogHandler incorrectly appents \000 to messages

2011-05-24 Thread R. David Murray

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

s/handler/receiver/

--

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



[issue11921] distutils2 should be able to compile an Extension based on the Python implementation

2011-05-24 Thread Éric Araujo

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

The PEP has been edited to add python_implementation to the list of environment 
markers tokens.  Now the code needs a patch to allow using markers in the 
extensions section.

--
title: distutils2 should be able to compile an Extension based  on the Python 
implementation version - distutils2 should be able to compile an Extension 
based on the Python implementation
versions: +Python 3.3 -3rd party

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



[issue11880] add a {dist-info} category to distutils2

2011-05-24 Thread Éric Araujo

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


--
keywords: +easy
versions: +Python 3.3

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



[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-05-24 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

These three commands have different code to do POST requests, using rllib or 
httplib.  This already made us do more work to fix bugs and to port the code.  
upload_docs has a top-level function for multipart encoding; this should be 
moved to a common module, cleaned up and used by all our code that needs a POST.

--
assignee: tarek
components: Distutils2
messages: 136770
nosy: alexis, eric.araujo, tarek
priority: normal
severity: normal
stage: patch review
status: open
title: Factor out common code for d2 commands register, upload and upload_docs
type: feature request
versions: Python 3.3

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



[issue12168] SysLogHandler incorrectly appents \000 to messages

2011-05-24 Thread Vinay Sajip

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

Even though expecting the NUL-terminator is legacy behaviour, newer versions of 
the syslog daemons presumably follow Postel's rule of be conservative in what 
you do, be liberal in what you accept from others. Can flume not be changed to 
follow this principle, given that ordinarily you wouldn't expect a NUL 
terminator byte on syslog messages?

When the implementation of SysLogHandler was changed to comply (more closely) 
with RFC5424, the log_format_string value was inadvertently left behind in 
Python 2.x, and it makes sense to remove it since changing it doesn't do 
anything useful.

Having an append_nul parameter to control NUL-termination is certainly doable, 
and this approach will keep the 2.x and 3.x implementations more or less the 
same (as 3.x doesn't have a log_format_string attribute). I suggest nul 
rather than null since we're talking about appending a NUL byte to the 
message.

However, having it as an additional keyword parameter to the constructor could 
cause dictConfig failures if configurations specifying it are used with an old 
version of Python (e.g. 3.2.0) which doesn't have the parameter. For this 
reason, it might be better to have an append_nul class attribute (defaulting to 
True) which can be overridden with an instance attribute set to False. (This 
approach can still be used with dictConfig, as you can use a factory function 
other than the SysLogHandler class to construct a SysLogHandler instance.)

--

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



[issue3754] cross-compilation support for python build

2011-05-24 Thread Roumen Petrov

Roumen Petrov bugtr...@roumenpetrov.info added the comment:

Greg, ensure correct configure script first as run commands autoheader and 
autoconf.
Updates to configure script are not in patch . The patch include updates to 
source configure.in and autoconf command will update configure.

--

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

You change caused test_socketserver to hang. I attempted a fix, but I'm not 
sure if it's completely correct.

--
nosy: +benjamin.peterson

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 You change caused test_socketserver to hang. I attempted a fix, but I'm not 
 sure if it's completely correct.

I'm a morron.
I don't know how I could miss this: closing the server socket is perfectly fine 
in TCP, since a new one is returned by accept(). But in UDP, it's definitely 
wrong, since it's used by the handler.
I don't know however how I missed this, since I remember having run 
test_socketserver...

The best fix is simply to revert the patch.
I'm really sorry about this...

--

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Charles-François Natali

Changes by Charles-François Natali neolo...@free.fr:


Removed file: http://bugs.python.org/file22045/ss_fork_close.diff

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 3e1709213532 by Benjamin Peterson in branch '3.1':
backout 8b384de4e780, so a proper fix can be considered (#5715)
http://hg.python.org/cpython/rev/3e1709213532

--

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2011/5/24 Charles-François Natali rep...@bugs.python.org:

 Charles-François Natali neolo...@free.fr added the comment:

 You change caused test_socketserver to hang. I attempted a fix, but I'm not 
 sure if it's completely correct.

 I'm a morron.
 I don't know how I could miss this: closing the server socket is perfectly 
 fine in TCP, since a new one is returned by accept(). But in UDP, it's 
 definitely wrong, since it's used by the handler.
 I don't know however how I missed this, since I remember having run 
 test_socketserver...

 The best fix is simply to revert the patch.

Done.

 I'm really sorry about this...

Don't worry. It's a bit of a rite of passage for new developers to
break the buildbots. :)

--

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Martin

Martin gzl...@googlemail.com added the comment:

Does Victor Stinner have a psychic link with Armin Rigo? :)

https://bitbucket.org/pypy/pypy/src/7f593e7877d4/pypy/module/_multibytecodec/app_multibytecodec.py


# My theory is that they are not widely used on CPython either, because
# I found two bugs just by looking at their .c source: they always call
# encreset() after a piece of data, even though I think it's wrong ---
# it should be called only once at the end; and mbiencoder_reset() calls
# decreset() instead of encreset().


The answer to Armin's theory is that they're bugs but not ones users are likely 
to notice?

--
nosy: +arigo, gz

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread STINNER Victor

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

 It's a bit of a rite of passage for new developers to
 break the buildbots. :)

How long is this rite?

--

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



[issue12154] PyDoc Partial Functions

2011-05-24 Thread JJeffries

JJeffries jamesjeffri...@gmail.com added the comment:

If it is changed to use inspect.getfullargspec is it still ok to use 
inspect.formatargspec? I cant work which values returned by getfullargspec need 
to go into which parameters for formatargspec.

--

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread STINNER Victor

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

Le mardi 24 mai 2011 à 18:13 +, Martin a écrit :
 Martin gzl...@googlemail.com added the comment:
 
 Does Victor Stinner have a psychic link with Armin Rigo? :)
 
 https://bitbucket.org/pypy/pypy/src/7f593e7877d4/pypy/module/_multibytecodec/app_multibytecodec.py
 
 
 # My theory is that they are not widely used on CPython either, because
 # I found two bugs just by looking at their .c source

Sorry, I only found one bug, and while testing HZ, not while reading the
source code.

 ... and mbiencoder_reset() calls decreset() instead of encreset()

This is a new bug that you should be fixed. Armin did not reported the
bug upstream (in this bug tracker)?

 The answer to Armin's theory is that they're bugs but not ones users are 
 likely to notice?

Ok, I will apply my fix.

--

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

2011/5/24 STINNER Victor rep...@bugs.python.org:

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

 It's a bit of a rite of passage for new developers to
 break the buildbots. :)

 How long is this rite?

The approximate number of times you do it each year is e^(-x) + C where C = 13.

--

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



[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-05-24 Thread Tarek Ziadé

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

good idea! want to tackle this ?

--

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



[issue11700] mailbox.py proxy updates

2011-05-24 Thread Steffen Daode Nurpmeso

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

Hello, David, i'm about to remind you that this issue is still
open (and the next release is about to come soon).
I think we do agree at least in the fact that this is a bug :).
Well, your mailbox_close_twice.patch no. 2 still imports on the
current tip.

(I'm still a bit disappointed that you don't want to -a-r-m-
upgrade the proxies to the full implementation i've posted.  But
it's ok.  By the way: you're the first american i know who doesn't
want to upgrade his arms!  And i do have had an ex-uncle who is
a fellow countryman of yours.)

Regards from Germany during kitschy pink sunset

--
Added file: http://bugs.python.org/file22095/11700.yeah-review.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11700
___diff --git a/Lib/mailbox.py b/Lib/mailbox.py
--- a/Lib/mailbox.py
+++ b/Lib/mailbox.py
@@ -1864,97 +1864,142 @@
 Message with MMDF-specific properties.
 
 
-class _ProxyFile:
-A read-only wrapper of a file.
+class _ProxyFile(io.BufferedIOBase):
+A io.BufferedIOBase inheriting read-only wrapper for a seekable file.
+It supports __iter__() and the context-manager protocol.
+
+def __init__(self, file, pos=None):
+io.BufferedIOBase.__init__(self)
+self._file = file
+self._pos = file.tell() if pos is None else pos
+self._close = True
+self._is_open = True
 
-def __init__(self, f, pos=None):
-Initialize a _ProxyFile.
-self._file = f
-if pos is None:
-self._pos = f.tell()
+def _set_noclose(self):
+Subclass hook - use to avoid closing internal file object.
+self._close = False
+
+def _closed_check(self):
+Raise ValueError if not open.
+if not self._is_open:
+raise ValueError('I/O operation on closed file')
+
+def close(self):
+if self._close:
+self._close = False
+self._file.close()
+del self._file
+self._is_open = False
+
+@property
+def closed(self):
+return not self._is_open
+
+def flush(self):
+# Not possible because it gets falsely called (issue 11700)
+#raise io.UnsupportedOperation('flush')
+pass
+
+def _read(self, size, read_method, readinto_arg=None):
+if size is None or size  0:
+size = -1
+self._file.seek(self._pos)
+if not readinto_arg:
+result = read_method(size)
 else:
-self._pos = pos
+result = read_method(readinto_arg)
+if result  len(readinto_arg):
+del readinto_arg[result:]
+self._pos = self._file.tell()
+return result
 
-def read(self, size=None):
-Read bytes.
+def readable(self):
+self._closed_check()
+return True
+
+def read(self, size=-1):
+self._closed_check()
+if size is None or size  0:
+return self.readall()
 return self._read(size, self._file.read)
 
-def read1(self, size=None):
-Read bytes.
+def read1(self, size=-1):
+self._closed_check()
+if size is None or size  0:
+return b''
 return self._read(size, self._file.read1)
 
-def readline(self, size=None):
-Read a line.
+def readinto(self, by_arr):
+self._closed_check()
+return self._read(len(by_arr), self._file.readinto, by_arr)
+
+def readall(self):
+self._closed_check()
+self._file.seek(self._pos)
+if hasattr(self._file, 'readall'):
+result = self._file.readall()
+else:
+dl = []
+while 1:
+i = self._file.read(8192)
+if len(i) == 0:
+break
+dl.append(i)
+result = b''.join(dl)
+self._pos = self._file.tell()
+return result
+
+def readline(self, size=-1):
+self._closed_check()
 return self._read(size, self._file.readline)
 
-def readlines(self, sizehint=None):
-Read multiple lines.
+def readlines(self, sizehint=-1):
 result = []
 for line in self:
 result.append(line)
-if sizehint is not None:
+if sizehint = 0:
 sizehint -= len(line)
 if sizehint = 0:
 break
 return result
 
+def seekable(self):
+self._closed_check()
+return True
+
+def seek(self, offset, whence=0):
+self._closed_check()
+if whence == 1:
+self._file.seek(self._pos)
+self._pos = self._file.seek(offset, whence)
+return self._pos
+
+def tell(self):
+self._closed_check()
+return self._pos
+
+def writable(self):
+self._closed_check()
+return False
+
+

[issue11700] mailbox.py proxy updates

2011-05-24 Thread Steffen Daode Nurpmeso

Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:


Removed file: http://bugs.python.org/file22095/11700.yeah-review.diff

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



[issue9654] merge PC/getpathp.c into Modules/getpath.c

2011-05-24 Thread Michele Orrù

Michele Orrù maker...@gmail.com added the comment:

In which cases it goes to PC/getpathp.c? I suppose it's Modules/getpath.c 
otherwise.

Line 495 on getpathp.c let me guess it's not only for Windows.

--
nosy: +maker

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



[issue12049] expose RAND_bytes() function of OpenSSL

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset ca92fa2fe5c9 by Victor Stinner in branch 'default':
Issue #12049: improve RAND_bytes() and RAND_pseudo_bytes() documentation
http://hg.python.org/cpython/rev/ca92fa2fe5c9

--

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



[issue12170] Bytes objects do not accept integers to many functions

2011-05-24 Thread Max

New submission from Max m...@alleged.net:

Bytes objects when indexed provide integers, but do not accept them to many 
functions, making them inconsistent with other sequences.

Basic example:
 test = b'012'
 n = test[1]
 n
49
 n in test
True
 test.index(n)
TypeError: expected an object with the buffer interface.

It is certainly unusual for n to be in the sequence, but not to be able to find 
it.  I would expect the result to be 1.  This set of commands with list, 
strings, tuples, but not bytes objects.

I suspect, from issue #10616, that all the following functions would be 
affected:
bytes methods: partition, rpartition, find, index, rfind, rindex, count, 
translate, replace, startswith, endswith

It would make more sense to me that instead of only supporting buffer interface 
objects, they also accept a single integer, and treat it as if it were provided 
a length-1 bytes object.

The use case I came across this problem was something like this:

Given seq1 and seq2, sequences of the same type:
[seq1.index(x) for x in seq2]

This works for strings, lists, tuples, but not bytes.

--
components: Interpreter Core
messages: 136786
nosy: max-alleged
priority: normal
severity: normal
status: open
title: Bytes objects do not accept integers to many functions
versions: Python 3.2

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



[issue12170] Bytes objects do not accept integers to many functions

2011-05-24 Thread Max

Max m...@alleged.net added the comment:

This set of commands with list, strings, tuples, but not bytes objects.
should read
This set of commands works with list, strings, tuples, but not bytes objects.

--

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Armin Rigo

Armin Rigo ar...@users.sourceforge.net added the comment:

Hi :-)  I did not report the two issues I found so far because I didn't finish 
the PyPy implementation of CJK yet, and I'm very new to anything related to 
codecs; additionally I didn't check Python 3.x, as I was just following the 2.7 
sources.  Can someone confirm that the two bugs I suspect are really bugs?  And 
should I open another report to help tracking the 2nd bug?

--

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



[issue12034] check_GetFinalPathNameByHandle() suboptimal

2011-05-24 Thread Catalin Iacob

Catalin Iacob iacobcata...@gmail.com added the comment:

I looked at providing a patch for this issue as an introductory step (this 
would be my first patch).

But when following the code I discovered that the case that this issue is 
trying to optimize is never executed in current CPython. In that case, there 
isn't much value in optimizing it.

More precisely, check_GetFinalPathNameByHandle is called by 
posix__getfinalpathname which is nt._getfinalpathname in Python code. If the 
check fails, posix__getfinalpathname throws NotImplmenentedError. But 
nt._getfinalpathname is only used by ntpath.py which checks the Windows version 
and only calls nt._getfinalpathname for Vista and higher where the check won't 
fail.

To me it would make more sense that the nt module has a _getfinalpathname 
attribute only if it supports the feature instead of always having one that 
throws NotImplementedError. In that case, ntpath.py would not check the Windows 
version but the presence of _getfinalpathname in the nt module. Does this seem 
like a better approach to you, at least theoretically? And if so, is it worth 
implementing it?

Thanks for any advice.

--
nosy: +catalin.iacob

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-24 Thread Nir Aides

Nir Aides n...@winpdb.org added the comment:

False alarm; go ahead with the review. I took a look too early in the morning 
before caffeine kicked in.

Note Lib/test/test_bz2.py was directly upgraded from bz2ms.patch.

A note on bz2 behavior: A BZ2Decompressor object is only good for one stream; 
after that eof is set and it will refuse to continue to the next stream; this 
seems in line with bzip2 manual:
http://www.bzip.org/1.0.5/bzip2-manual-1.0.5.html#bzDecompress

--

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset bd17396895fb by Victor Stinner in branch '3.1':
Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
http://hg.python.org/cpython/rev/bd17396895fb

New changeset 7f2ab2f95a04 by Victor Stinner in branch '3.2':
(Merge 3.1) Issue #12100: Don't reset incremental encoders of CJK codecs at
http://hg.python.org/cpython/rev/7f2ab2f95a04

New changeset cb9867dab15e by Victor Stinner in branch 'default':
(Merge 3.2) Issue #12100: Don't reset incremental encoders of CJK codecs at
http://hg.python.org/cpython/rev/cb9867dab15e

--
nosy: +python-dev

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



[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset e789b4cda872 by Victor Stinner in branch '2.7':
Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
http://hg.python.org/cpython/rev/e789b4cda872

--

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



[issue1441530] socket read() can cause MemoryError in Windows

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0dee36595699 by Charles-François Natali in branch '2.7':
Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid
http://hg.python.org/cpython/rev/0dee36595699

--
nosy: +python-dev

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



[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

2011-05-24 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

HZ and ISO-2022 family codecs may generate an escape sequence at the end of a 
stream. For example, the HZ codec uses '~{' to switchs from ASCII to GB2312, 
and '~}' resets the encoding to ASCII. At the end of a stream, the encoding 
should be reset to ASCII. '\u804a'.encode('hz') returns b'~{AD~}', which is 
correct.

Incremental encoders generate also the escape sequence if the last call to 
encode() is done using final=True.

It would be nice to be able to generate the escape sequence without the final 
flag, because sometimes you don't know which call to encode() is the last one. 
For example if you write data in a file, you may want to write the escape 
sequence at the end when the file is closed.

I propose to change the reset() method of incremental encoders: they may return 
a bytes object to close the stream. For example, the reset() method of the HZ 
codec may returns b'~}' if the encoder was using GB2312 (if it emited 
previously b'~{').

So the 3 following code should returns b'~{AD~}':

 * '\u804a'.encode('hz')
 * encoder = codecs.lookup('hz').incrementalencoder(); encoder.encode('\u804a', 
final=True)
 * encoder = codecs.lookup('hz').incrementalencoder(); encoder.encode('\u804a') 
+ encoder.reset()

For backward compatibility, reset() returns None if there is no pending buffer 
or any escape sequence.

--

This proposition comes from #12000: Armin Rigo noticed that the reset method of 
the incremental encoders of CJK codecs calls the decoder reset function. 
Extract of Modules/cjkcodecs/multibytecodec.c:

static PyObject *
mbiencoder_reset(MultibyteIncrementalEncoderObject *self)
{
if (self-codec-decreset != NULL 
self-codec-decreset(self-state, self-codec-config) != 0)
return NULL;
self-pendingsize = 0;

Py_RETURN_NONE;
}

I suppose that codec-encreset() is not called here because we need an output 
buffer, and there is no such buffer. Or it's just a copy-paste failure.

--

I am not sure that it is really useful to emit b'~}' at the end of a HZ stream, 
but the change is simple and if you don't care of b'~}': just ignore the result 
of reset() (as everybody does today, so it doesn't hurt).

--

Only HZ and ISO-2022 encodings implement the reset method of their incremental 
encoder. For example, encodings of the UTF family don't need to emit bytes at 
reset.

For the maximum length of reset() output: HZ may generates 2 bytes (b'~}') and 
ISO-2022 may generates 4 bytes (b'\x0F' + b'\x1F(B').

--

See also the issue #12100.

--
components: Library (Lib), Unicode
files: cjk_reset_result.patch
keywords: patch
messages: 136794
nosy: arigo, gz, haypo, hyeshik.chang, lemburg
priority: normal
severity: normal
status: open
title: Reset method of the incremental encoders of CJK codecs calls the decoder 
reset function
versions: Python 3.3
Added file: http://bugs.python.org/file22096/cjk_reset_result.patch

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



[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4a7bb2ef636a by Victor Stinner in branch '3.2':
Issue #12070: Fix the Makefile parser of the sysconfig module to handle
http://hg.python.org/cpython/rev/4a7bb2ef636a

New changeset 98ff40ee0106 by Victor Stinner in branch 'default':
(Merge 3.2) Issue #12070: Fix the Makefile parser of the sysconfig module to
http://hg.python.org/cpython/rev/98ff40ee0106

--
nosy: +python-dev

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



[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-24 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
resolution:  - fixed
status: open - closed

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



[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

2011-05-24 Thread Amaury Forgeot d'Arc

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

Do we need an additional method? It seems that this reset() could also be 
written encoder.encode('', final=True)

--
nosy: +amaury.forgeotdarc

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



[issue1441530] socket read() can cause MemoryError in Windows

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 14bb95a8d7ee by Charles-François Natali in branch 'default':
Issue #1441530: In imaplib, read the data in one chunk to speed up large
http://hg.python.org/cpython/rev/14bb95a8d7ee

--

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



[issue12057] HZ codec has no test

2011-05-24 Thread STINNER Victor

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

 Haypo, since you've created a new directory there are makefile 
 (and PC build file, I think) updates that will need to be made. 

Can you review attached cjkencodings_dir.patch?

 (This should be documented in the dev guide if it isn't already.)

Do you mean that the cjkencodings directory should be documented? (in 
setup.rst? subdirectories are not listed) Or the process of adding a new 
directory?

--
Added file: http://bugs.python.org/file22097/cjkencodings_dir.patch

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



[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-24 Thread Nadeem Vawda

Nadeem Vawda nadeem.va...@gmail.com added the comment:

 False alarm; go ahead with the review. I took a look too early in the
 morning before caffeine kicked in.

No worries. I know the feeling.

The tests look fine. The bodies of testRead() and testReadMultiStream()
appear to have been swapped, though. I'm guessing testRead() was
supposed to remain unmodified, with testReadMultiStream() testing the
case of streams=5?

For the change to BZ2File._fill_buffer(), I'm not sure that the check
for end-of-file is correct. It seems that if the end of rawblock lines
up with the end of a stream, the mode will be set to EOF even if there
are more streams waiting to be read. Is this possible?

 A note on bz2 behavior: A BZ2Decompressor object is only good for one
 stream; after that eof is set and it will refuse to continue to the
 next stream; this seems in line with bzip2 manual

I think this is the right way to do things. BZ2Decompressor is a low-
level wrapper around the underlying C API -- it should not grow extra
features unnecessarily. Also, certain use-cases might depend on being
able to detect the end of a logical stream; this would not be possible
if BZ2Decompressor were to be changed.

The difference in behaviour from BZ2File and decompress() should probably
be documented, though.

--

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



[issue12057] HZ codec has no test

2011-05-24 Thread Terry J. Reedy

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

I presume and hope David meant the process, as I would have no idea how to add 
a directory. And David did not seem completely sure.

--

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



[issue12057] HZ codec has no test

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 10b23f1c8cb6 by Victor Stinner in branch '3.1':
Issue #12057: Add tests for the HZ encoding
http://hg.python.org/cpython/rev/10b23f1c8cb6

New changeset 3368d4a04e52 by Victor Stinner in branch '3.2':
(Merge 3.1) Issue #12057: Add tests for the HZ encoding
http://hg.python.org/cpython/rev/3368d4a04e52

New changeset 06c44a518d0b by Victor Stinner in branch 'default':
(Merge 3.2) Issue #12057: Add tests for the HZ encoding
http://hg.python.org/cpython/rev/06c44a518d0b

--

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



[issue12057] HZ codec has no test

2011-05-24 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 3c724c3eaed7 by Victor Stinner in branch '2.7':
Issue #12057: Add tests for the HZ encoding
http://hg.python.org/cpython/rev/3c724c3eaed7

--

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



[issue12057] HZ codec has no test

2011-05-24 Thread R. David Murray

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

Looks good to me.  And I meant documenting the process for adding a directory.

--

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



[issue5715] listen socket close in SocketServer.ForkingMixIn.process_request()

2011-05-24 Thread Donghyun Kim

Donghyun Kim ryan...@gmail.com added the comment:

On May 24, 2011, at 12:44 PM, Charles-François Natali wrote:

 I don't know how I could miss this: closing the server socket is perfectly 
 fine in TCP, since a new one is returned by accept(). But in UDP, it's 
 definitely wrong, since it's used by the handler.
 I don't know however how I missed this, since I remember having run 
 test_socketserver...

It's been a long time since the issue submitted, anyway, I was cursed to look 
at only TCP too :-)

I agree that ForkingUDPServer should be supported in SocketServer.py.
(Although users should take care of socket locking for concurrent accesses)

How about using BaseServer(TCPServer).server_close() instead of 
self.socket.close() in the patch?

As UDPServer has no server_close() method overridden, unlike ForkingTCPServer, 
ForkingUDPServer seems to have no actual server in design.
So, I think we could say that 
- closing TCP listen socket in child process = server_close() in child process
- nothing to do on UDP socket in child process = server_close() but nothing 
will be done in the method (b/c BaseServer.server_close() does nothing)

What do you think?

-
Donghyun Kim
http://www.uryan.net

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5715
___htmlhead/headbody style=word-wrap: break-word; -webkit-nbsp-mode: 
space; -webkit-line-break: after-white-space; brdivdivOn May 24, 2011, 
at 12:44 PM, Charles-François Natali wrote:/divbr 
class=Apple-interchange-newlineblockquote type=citedivI don't know how 
I could miss this: closing the server socket is perfectly fine in TCP, since a 
new one is returned by accept(). But in UDP, it's definitely wrong, since it's 
used by the handler.brI don't know however how I missed this, since I 
remember having run test_socketserver...font class=Apple-style-span 
color=#00font class=Apple-style-span 
color=#144FAEbr/font/font/div/blockquotebr/divdivIt's been a 
long time since the issue submitted, anyway, I was cursed to look at only TCP 
too :-)brbrI agree that ForkingUDPServer should be supported in 
SocketServer.py.br(Although users should take care of socket locking for 
concurrent accesses)brbrHow about using 
BaseServer(TCPServer).server_close() instead of self.socket.close() in the 
patch?brbrAs UDPServer has no server_close() method overridden, unlike 
ForkingTCPServer, ForkingUDPServer seems to have no actual server in 
design.brSo, I think we could say thatnbsp;br- closing TCP listen socket 
in child process = server_close() in child processbr- nothing to do on UDP 
socket in child process = server_close() but nothing will be done in the 
method (b/c BaseServer.server_close() does nothing)brbrWhat do you 
think?/divdivbr/divdiv
span class=Apple-style-span style=border-collapse: separate; color: rgb(0, 
0, 0); font-family: 'Malgun Gothic'; font-style: normal; font-variant: normal; 
font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; 
text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; 
widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; 
-webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; 
-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: 
medium; -brDonghyun Kimbra 
href=http://www.uryan.net;http://www.uryan.net/a/span
/div
br/body/html___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12057] HZ codec has no test

2011-05-24 Thread STINNER Victor

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

iso2022_tests.patch: add some tests for ISO2022 encodings:
 - testcase for iso2022_jp and iso2022_kr, iso2022_jp2 reuses iso2022_jp 
testcase
 - test some invalid byte sequences

--
Added file: http://bugs.python.org/file22099/iso2022_tests.patch

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



[issue12006] strptime should implement %V or %u directive from libc

2011-05-24 Thread Ashley Anderson

Changes by Ashley Anderson agande...@gmail.com:


--
nosy: +Ashley.Anderson

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



  1   2   >