[issue14538] HTMLParser: parsing error

2012-04-13 Thread Ezio Melotti

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

HTMLParser is still simpler than html5lib, but if/when possible we are 
following the HTML5 standard rather than taking arbitrary decisions (like we 
used to do before HTML5).  HTMLParser doesn't claim to be a fully compliant 
HTML5 parser (and probably never will) -- its goal is rather being able to 
parse real world HTML in the same way browsers do.  There are also a couple of 
corner cases that are not implemented in HTMLParser because it would make the 
code too complicated for a little gain.

--

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



[issue14570] Document json sort_keys parameter properly

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

A bit of experimentation indicates that for regular file access, there probably 
is no security problem, but bad paths will look in weird places, and if they 
find a file of the right name, will return it. It would be much better to 
diagnose such paths.  There is even a comment to that effect in translate_path.

--

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



[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

Ping, again. I'm sorry, I didn't write any of these patches and would not be a 
great fit for writing tests.

--

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



[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

Could we reconsider ARM support at this time? Seems like ARM support has been 
surging over the past few years, and it's becoming more supported by Linux 
distributions. Seems like a pity to leave a patch like this out here.

--
nosy: +djc

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



[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Glenn Linderman

Glenn Linderman v+pyt...@g.nevcal.com added the comment:

I finally understand the purpose of the checks in translate path...
Basically, translate path is concatenating the URL path to the current 
directory (because that is considered the root for Web service by this
server).  But along the way, it does normalization (redundantly compared to 
_url_collapse_path, but for a different code path, and sadly, using a different 
algorithm that gets different results), and os-specific checks.

For the os-specific checks, it does a couple splits to see if each path 
component contains a drive letter or character other than / that is used as a 
directory separator, or contains . or .. (os specific versions).

It doesn't check for os-specific illegal filename characters (but of course 
they will not match existing files on the OS, so that eventually would cause a 
404).

Such checks are probably best done only on path components that are actually 
traversed, the only problem is that increasingly large subsets of the path are 
passed to translate_path by run_cgi so the net effect is an O(n-squared) 
performance characteristic: most actual paths do not get too long, happily, but 
it is still inefficient.

Factoring out the checks into a function that could be called by translate path 
or run_cgi might be appropriate, and then run_cgi could call the new function 
piece by piece instead of calling translate_path at all.  It would also be good 
to make translate path produce an error if drive or head are ever non-empty.

--

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



[issue9123] insecure os.urandom on VMS

2012-04-13 Thread Antoine Pitrou

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


--
nosy: +haypo
stage:  - patch review
versions: +Python 3.3

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



[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor

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

 This issue is a security vulnerability.

I disagree, it's just an issue of a comment in the C code. The Python 
documentation doesn't guarantee that os.urandom() is cryptographic.

Use ssl.RAND_bytes(), added to Python 3.3, if you need cryptographic random 
numbers.

By the way, VMS is no more supported in Python 3.3, see the PEP 11:

Name: VMS
Unsupported in:   Python 3.3
Code removed in:  Python 3.4

--

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



[issue9123] insecure os.urandom on VMS

2012-04-13 Thread STINNER Victor

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

-if (RAND_pseudo_bytes((unsigned char*)
+if (RAND_bytes((unsigned char*)

This is not a good idea: RAND_bytes() is blocking, whereas os.urandom() doesn't 
block on other platforms. os.urandom() is similar to /dev/urandom (non 
blocking), whereas /dev/random is blocking. With this patch, Python may block 
at startup if there is not enough entropy.

--

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



[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Antoine Pitrou

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

I don't think you need anyone's permission to commit such a fix :)

--
nosy: +pitrou

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



[issue11750] Mutualize win32 functions

2012-04-13 Thread sbt

sbt shibt...@gmail.com added the comment:

I think there are some issues with the treatment of the DWORD type.  (DWORD is 
a typedef for unsigned long.)

_subprocess always treats them as signed, whereas _multiprocessing treats them 
(correctly) as unsigned.  _windows does a mixture: functions from _subprocess 
parse DWORD arguments as signed (i), functions from _multiprocessing parse 
DWORD arguments as unsigned (k), and the constants are signed.

So in _windows the constants GENERIC_READ, NMPWAIT_WAIT_FOREVER and INFINITE 
will be negative.  I think this will potentially cause errors from 
PyArg_ParseTuple() when used as arguments to functions from _multiprocessing.

I think it is also rather confusing that some functions (eg CreatePipe()) 
return handles using a wrapper type which closes on garbage collection, while 
others (eg CreateNamedPipe()) return handles as plain integers.

(The code also needs updating because quite a few functions have since been 
added to _multiprocessing.win32.)

--

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



[issue14157] time.strptime without a year fails on Feb 29

2012-04-13 Thread Hynek Schlawack

Hynek Schlawack h...@ox.cx added the comment:

The point isn’t that time.strptime validates dates but that it uses datetime 
internally:

julian = datetime_date(year, month, day).toordinal() - \
  datetime_date(year, 1, 1).toordinal() + 1

Is it worth to reimplement this functionality?  It strikes easier to me to just 
use a different year if year is undefined and date == Feb 29.

--

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



[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


Added file: http://bugs.python.org/file25203/4a072278b866.diff

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



[issue13405] Add DTrace probes

2012-04-13 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


Removed file: http://bugs.python.org/file25193/1e4d2c51b2d9.diff

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



[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray

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

Ah.  I based that on the fact that the third test passed without the change.  I 
thought you were adding that test of changing the comment just as a double 
check.  I should have asked instead of assuming.

--

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



[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5cc359804d61 by Benjamin Peterson in branch '3.2':
take linkage def outside of WITH_THREAD conditional (closes #14569)
http://hg.python.org/cpython/rev/5cc359804d61

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

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



[issue14569] pystate.c #ifdef ordering problem

2012-04-13 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 508ae5d27c2c by Benjamin Peterson in branch '2.7':
take linkage def outside of WITH_THREAD conditional (closes #14569)
http://hg.python.org/cpython/rev/508ae5d27c2c

--

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



[issue14499] Extension module builds fail with Xcode 4.3 on OS X 10.7 due to SDK move

2012-04-13 Thread s7v7nislands

s7v7nislands s7v7nisla...@gmail.com added the comment:

maybe you can use xcode-select to set the correct path

xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

Usage: xcode-select -print-path
   or: xcode-select -switch xcode_folder_path

   -switch xcode_folder_path Sets the path for the current Xcode 


for detail, you can man xcode-select

--
nosy: +s7v7nislands

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



[issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers

2012-04-13 Thread Terry J. Reedy

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

I checked Standard C by Plauger  Brodie and as I read it, it agrees with 
py.user and his C compiler. For stdlib strtol() and strtoul(), the 0x/0X 
prefixes are accepted but optional for explicit base 16. If base is given as 0, 
they are accepted and set the base to 16 (which is otherwise 10). Except for 
%i, Xscanf functions apparently call either of the above with an explicit base, 
which is 16 for the %x specifiers.

--
keywords: +easy, patch
nosy: +terry.reedy
stage:  - needs patch
versions: +Python 2.7, Python 3.3

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



[issue14525] ia64-hp-hpux11.31 won't compile Python-2.6.8rc2 without -D_TERMIOS_INCLUDED

2012-04-13 Thread Terry J. Reedy

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

patch should be for 2.7 or 3.2/3 as 2.6 only gets security fixes.

--
nosy: +terry.reedy
stage:  - needs patch
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6

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



[issue14544] Limit global keyword name conflicts in language spec to those enforced by CPython

2012-04-13 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
nosy: +terry.reedy

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



[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue14542] reverse() doesn't reverse sort correctly

2012-04-13 Thread Terry J. Reedy

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

Bill, when you reply by email, please snip the signature and quoted message. 
They are just noise. (Exception: quote a line or two if you are specifically 
responding to such.) Signatures are inappropriate, and the message you are 
responding to is already present.

--
nosy: +terry.reedy

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



[issue14538] HTMLParser: parsing error

2012-04-13 Thread Jim Jewett

Jim Jewett jimjjew...@gmail.com added the comment:

It sounds like this is a case where the docs should mention an external 
library; perhaps something like changing the intro of 
http://docs.python.org/dev/library/html.parser.html from:


19.2. html.parser — Simple HTML and XHTML parser
Source code: Lib/html/parser.py

This module defines a class HTMLParser which serves as the basis for parsing 
text files formatted in HTML (HyperText Mark-up Language) and XHTML.


to:



19.2. html.parser — Simple HTML and XHTML parser
Source code: Lib/html/parser.py

This module defines a class HTMLParser which serves as the basis for parsing 
text files formatted in HTML (HyperText Mark-up Language) and XHTML.  

Note that mainstream web browsers also attempt to repair invalid markup; the 
algorithms for this can be quite complex, and are evolving too quickly for the 
Python release cycle.  Applications handling arbitrary web pages should 
consider using 3rd-party modules.  The python version of html5lib ( 
http://code.google.com/p/html5lib/ ) is being developed in parallel with the 
HTML standard itself, and serves as a reference implementation.


--

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



[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe tshep...@gmail.com added the comment:

This is probably because Sphinx can't detect that those are Python sources, so 
my patch forces it to recognize it as such.

--
keywords: +patch
Added file: http://bugs.python.org/file25204/highlight-code.diff

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



[issue14567] http/server.py query string handling incorrect, inefficient

2012-04-13 Thread Éric Araujo

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

 /path/parts/cgi-script/path/info/parts#anchor?query-string

This should be: /path/parts/cgi-script/path/info/parts?query-string#anchor

--
nosy: +eric.araujo

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



[issue14567] http.server query string handling incorrect and inefficient

2012-04-13 Thread Éric Araujo

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


--
title: http/server.py query string handling incorrect, inefficient - 
http.server query string handling incorrect and inefficient
versions:  -Python 2.6, Python 3.1

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



[issue14554] test module: correction

2012-04-13 Thread Éric Araujo

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

LGTM

--
nosy: +eric.araujo

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



[issue14547] Python symlink to script behaves unexpectedly

2012-04-13 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Rik Poggi

Rik Poggi poggi.ri...@gmail.com added the comment:

I wasn't trying to make any argument, just thinking that such particular 
signature was intentional.

Also notice that there might be code that doesn't pass the pattern argument, 
and fall back on the default value. So a signature change will break their 
code. I think that the best solution would be to provide a better 
documentation. 

I don't know what's the rational behind all that.

--

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



[issue14538] HTMLParser: parsing error

2012-04-13 Thread Éric Araujo

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

Sure, the docs should explain better that html.parser tries its best to parse 
stuff, is not a validating parser, and is actively developed, contrary to the 
popular belief that standard library modules never get improved.  I’m less sure 
about links, there is more than one popular library (html5lib, lxml, 
BeautifulSoup).  Another bug needs to be opened, we’re off-topic for this one — 
but thanks for the remark and proposed patch.

--
nosy: +eric.araujo

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



[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Éric Araujo

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

LGTM

--
nosy: +eric.araujo
stage:  - commit review

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



[issue14530] distutils's build_wininst command fails to correctly interpret the data_files argument

2012-04-13 Thread Éric Araujo

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


--
nosy: +loewis

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



[issue14529] distutils's build_msi command ignores the data_files argument

2012-04-13 Thread Éric Araujo

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


--
nosy: +loewis

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



[issue14534] Add method to mark unittest.TestCases as do not run.

2012-04-13 Thread Éric Araujo

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

FWIW I use the mixin approach too and find it simple and clean.  I don’t have a 
problem with a method in the mixin class calling methods from TestCase.

--
nosy: +eric.araujo

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



[issue1222585] C++ compilation support for distutils

2012-04-13 Thread Éric Araujo

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

I should be able to port the patch and add tests for detect_language, but I 
know very little about C++ and may not be able to write a full test that really 
compiles and checks a C++ program.  We’re having a sprint on the 21, I’ll see 
if I can work with another participant to do this.  A sample short C++ source 
file would help (just use some Python/C function and print something).

--
keywords: +easy -patch
stage: patch review - test needed

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



[issue13405] Add DTrace probes

2012-04-13 Thread anatoly techtonik

Changes by anatoly techtonik techto...@gmail.com:


--
nosy:  -techtonik

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread Marc-Andre Lemburg

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

STINNER Victor wrote:
 
 STINNER Victor victor.stin...@gmail.com added the comment:
 
 perf_counter_process_time.patch: replace time.clock if windows else 
 time.time with time.perf_counter, and getrusage/clock with time.process_time.
 
 pybench and timeit now use time.perf_counter() by default. profile uses 
 time.proces_time() by default.
 
 pybench uses time.get_clock_info() to display the precision and the 
 underlying C function (or the resolution if the precision is not available).
 
 Tools/pybench/systimes.py and Tools/pybench/clockres.py may be removed: these 
 features are now available directly in the time module.

No changes to the pybench defaults, please. It has to stay backwards
compatible with older releases. Adding optional new timers is fine,
though.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com


2012-04-28: PythonCamp 2012, Cologne, Germany  15 days to go

::: Try our new mxODBC.Connect Python Database Interface for free ! 

   eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
   Registered at Amtsgericht Duesseldorf: HRB 46611
   http://www.egenix.com/company/contact/

--

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



[issue14562] urllib2 maybe blocks too long

2012-04-13 Thread Jim Jewett

Jim Jewett jimjjew...@gmail.com added the comment:

It would be helpful to have a testcase, so that it will stay fixed.

--
nosy: +Jim.Jewett

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



[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Jim Jewett

Changes by Jim Jewett jimjjew...@gmail.com:


--
title: urllib2 maybe blocks too long - urllib2 maybe blocks too long with 
small chunks

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



[issue4130] Intel icc 9.1 does not support __int128_t used by ctypes

2012-04-13 Thread Alex Leach

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

Patch included for Modules/_ctyles/libffi/src/x86/ffi64.c. I've added some 
include guards around anything necessary to compile with the Intel compiler.
This patch is needed to compile the _ctypes module with icc on current Python 
releases (just successfully compiled 2.7.3, with patch)..

--
keywords: +patch
nosy: +Alex.Leach
Added file: http://bugs.python.org/file25205/ffi64.c.patch

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



[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread Jim Jewett

Jim Jewett jimjjew...@gmail.com added the comment:

Any particular reason not to add those?

--
nosy: +Jim.Jewett

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



[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2012-04-13 Thread Jim Jewett

Jim Jewett jimjjew...@gmail.com added the comment:

I can't speak for GSoC or Gerhard, but it strikes me as a reasonable first 
step.  An alternatives woube be writing it with fallbacks (so older sqlite can 
still be used, though less efficiently).  It would also be nice to clean up at 
least one call with compatibility cruft.  That said, don't hesitate to submit a 
patch that does *something*, and then replace it with more comprehensive 
patches later.

--
nosy: +Jim.Jewett

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



[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay

New submission from Jonathan Finlay jfin...@riseup.net:

File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/main.py, line 
1194, in _sig_remove_book
res = page.sig_close()

  File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/form.py, 
line 492, in sig_close
dialog.destroy()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/win_form.py, 
line 396, in destroy
self.screen.switch_view(view_type=self.prev_view.view_type)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/screen/screen.py,
 line 320, in switch_view
self.display()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/screen/screen.py,
 line 657, in display
view.display()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/view/form.py,
 line 126, in display
record[field].get(record, check_load=False)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/model/record.py,
 line 124, in __getitem__
self.set(value, signal=False)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/model/record.py,
 line 421, in set
self.group.fields[fieldname].set(self, value, modified=False)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/model/field.py,
 line 757, in set
group.destroy()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/model/group.py,
 line 390, in destroy
self.clear()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/model/group.py,
 line 107, in clear
self.signal('group-list-changed', ('record-removed', record))

  File /home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/signal_event.py, 
line 14, in signal
fnct(self, signal_data, *data)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/screen/screen.py,
 line 219, in _group_list_changed
view.group_list_changed(group, signal)

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/view/list.py,
 line 627, in group_list_changed
self.display()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/view/list.py,
 line 747, in display
self.update_children()

  File 
/home/jonathan/Desarrollo/Tryton/2.3/tryton/tryton/gui/window/view_form/view/list.py,
 line 783, in update_children
True)

  File /usr/lib/python2.6/locale.py, line 182, in format
formatted = percent % value

--
components: Library (Lib)
files: locale.patch
keywords: patch
messages: 158229
nosy: jonathanf
priority: normal
severity: normal
status: open
title: float argument required, not NoneType
type: compile error
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file25206/locale.patch

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



[issue14571] float argument required, not NoneType

2012-04-13 Thread Jonathan Finlay

Jonathan Finlay jfin...@riseup.net added the comment:

This is the patch for the issue

--
resolution:  - fixed
Added file: http://bugs.python.org/file25207/locale.patch

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



[issue14571] float argument required, not NoneType

2012-04-13 Thread Amaury Forgeot d'Arc

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

It's a problem in tryton, which incorrectly passes a None value instead of a 
float.

The issue was actually fixed 10 hours ago (!) in tryton: 
http://hg.tryton.org/tryton/rev/58a615b60cbd
Please update to the last version!

--
nosy: +amaury.forgeotdarc
resolution: fixed - invalid
status: open - closed

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



[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

I'm attaching a patch to better explain what I'm suggesting. As you can see, 
this patch doesn't change the signature of discover, nor does it change the 
semantics for any code that doesn't pass pattern, or that passes some pattern 
other than None.

The only change is that now, passing pattern=None is the same as not passing 
pattern at all. As a result, load_tests might now pass pattern=pattern as the 
documentation suggests, and still be called with pattern=None without raising 
an exception.

--
keywords: +patch
Added file: http://bugs.python.org/file25208/issue11218_patternNone.patch

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor

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

Patch version 8: time.process_time() uses times() if available. Rename also 
function key of time.get_clock_info() with implementation.

--
Added file: http://bugs.python.org/file25209/pep418-8.patch

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



[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

So the logic of the pattern argument to load_tests is that it should not be 
None when test discovery is loading the __init__.py module of a test package. 
However, because most patterns will actually *prevent* __init__.py from being 
loaded by test discovery - this turns out to not be very useful and in all 
practical cases this argument will be None.

I don't think there are any backward compatibility issues with the real pattern 
being passed in.

--

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



[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Michael Foord

Michael Foord mich...@voidspace.org.uk added the comment:

Also the patch to allow the pattern to be None (and revert to the default 
pattern in this case) looks good.

--

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



[issue11218] pattern=None when following documentation for load_tests and unittest.main()

2012-04-13 Thread Martin von Gagern

Martin von Gagern martin.vgag...@gmx.net added the comment:

Michael wrote: […] the real pattern being passed in.
I wonder, what would be the real pattern? In the code I originally pasted, 
the load_tests function would be invoked by loadTestsFromModule (for module 
__main__). There is nothing file-based about this, so although you could pass a 
default pattern, it wouldn't be any more or less real than passing None. It 
might be more useful, though.

most patterns will actually *prevent* __init__.py from being loaded by test 
discovery - this turns out to not be very useful and in all practical cases 
this argument will be None.

Not sure I follow there. For the root of the test suite, yes, it will always be 
None. But for child packages it will be the pattern that led to the discovery 
of the __init__.py of that package. In all practical cases this will be a 
string different from both None and the default of 'test*.py', as it has to 
match the directory name. Most likely it will be what the load_tests function 
of the parent package passed to its invocation of discover.

--

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



[issue1762561] unable to serialize Infinity or NaN on ARM using marshal

2012-04-13 Thread Arfrever Frehtes Taifersar Arahesis

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


--
nosy: +Arfrever

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



[issue14555] clock_gettime/settime/getres: Add more clock identifiers

2012-04-13 Thread STINNER Victor

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

 Any particular reason not to add those?

I didn't find yet documentation of: CLOCK_BOOTTIME_ALARM, CLOCK_REALTIME_ALARM

For CLOCK_UPTIME_PRECISE, CLOCK_MONOTONIC_PRECISE, CLOCK_REALTIME_PRECISE: I 
don't know if there are useful. Are they different than the clocks without 
_PRECISE suffix?

For CLOCK_UPTIME_FAST, it's just that I forgot to add it :-)

--

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



[issue14572] 2.7.3: sqlite module does not build on centos 5

2012-04-13 Thread Joakim Sernbrant

New submission from Joakim Sernbrant serb...@gmail.com:

Python-2.7.3/Modules/_sqlite/connection.c: In function ‘_pysqlite_set_result’:
Python-2.7.3/Modules/_sqlite/connection.c:552: error: ‘sqlite3_int64’ 
undeclared (first use in this function)

The centos 5 version of sqlite3 (sqlite-devel-3.3.6-5) does not export the type 
sqlite3_int64. 2.7.0 did build without problems.

Newer versions declare both sqlite3_int64 and sqlite_int64: 
http://www.sqlite.org/c3ref/int64.html

Patch:

diff --git a/Modules/_sqlite/connection.c b/Modules/_sqlite/connection.c
index 26678c7..a646513 100644
--- a/Modules/_sqlite/connection.c
+++ b/Modules/_sqlite/connection.c
@@ -549,7 +549,7 @@ void _pysqlite_set_result(sqlite3_context* context, 
PyObject* py_val)
 } else if (py_val == Py_None) {
 sqlite3_result_null(context);
 } else if (PyInt_Check(py_val)) {
-sqlite3_result_int64(context, (sqlite3_int64)PyInt_AsLong(py_val));
+sqlite3_result_int64(context, (sqlite_int64)PyInt_AsLong(py_val));
 } else if (PyLong_Check(py_val)) {
 sqlite3_result_int64(context, PyLong_AsLongLong(py_val));
 } else if (PyFloat_Check(py_val)) {
@@ -580,7 +580,7 @@ PyObject* _pysqlite_build_py_params(sqlite3_context 
*context, int argc, sqlite3_
 sqlite3_value* cur_value;
 PyObject* cur_py_value;
 const char* val_str;
-sqlite3_int64 val_int;
+sqlite_int64 val_int;
 Py_ssize_t buflen;
 void* raw_buffer;

--
components: Build
messages: 158238
nosy: Joakim.Sernbrant
priority: normal
severity: normal
status: open
title: 2.7.3: sqlite module does not build on centos 5
type: compile error
versions: Python 2.7

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



[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Aaron Staley

New submission from Aaron Staley usaa...@gmail.com:

The json library's encoder includes a function called 'iterencode'.  iterencode 
allows for encoding to be streamed; as tokens are produced they are yielded. 
This allows for the encoded object to be streamed to a file, over a socket, 
etc. without being placed all into memory.

Unfortunately, iterencode cannot encode general iterators.  This significantly 
limits the usefulness of the function.  For my use case I wish to convert a 
large stream (iterator) of objects into json.  Unfortunately, I currently have 
to:

A. Bring all the objects into memory by encasing the iterator in a list()
B. Make a hack where I subclass list and making that object's __iter__ function 
return my desired iterator.

The problem is that the json library explicitly checks for something being a 
list:

if isinstance(value, (list, tuple)):
chunks = _iterencode_list(value, _current_indent_level)

It would work just as well (and be more pythonic) to see if the value supports 
the iterator protocol:
if isinstance(value, collections.Iterable):
chunks = _iterencode_list(value, _current_indent_level)


Erroring example:

 import json
 e = json.JSONEncoder()
 r = xrange(20)
 gen = e.iterencode(r)
generator object _iterencode at 0x14a5460
 next(gen)

Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python3.2/json/encoder.py, line 419, in _iterencode
o = _default(o)
  File /usr/lib/python3.2/json/encoder.py, line 170, in default
raise TypeError(repr(o) +  is not JSON serializable)
TypeError: xrange(0, 20) is not JSON serializable

--
components: Library (Lib)
messages: 158239
nosy: Aaron.Staley
priority: normal
severity: normal
status: open
title: json iterencode can not handle general iterators
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2

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



[issue14574] SocketServer doesn't handle client disconnects properly

2012-04-13 Thread Vlad

New submission from Vlad vladandje...@gmail.com:

When dealing with a new connection, SocketServer.BaseRequestHandler.__init__ 
first calls the request handler (self.handle below) and then calls cleanup code 
which closes the connection (self.finish below).

class BaseRequestHandler:
def __init__(self, request, client_address, server):
 ... snip ... 
try:
self.handle()
finally:
self.finish()

The issue arises when a client disconnects suddenly during the self.handle() 
call. The handler may attempt to write data to the disconnected socket.  This 
will cause an exception (which is correct), but somehow data will still be 
added to the connection's buffer and self.wfile.closed will be False! As a 
result, BaseRequestHandler.finish() will attempt to flush the connection's 
buffer and this will raise another exception which can't be handled without 
modifying the library code.


Exception happened during processing of request from ('127.0.0.1', 62718)
Traceback (most recent call last):
  File C:\Python27\lib\SocketServer.py, line 284, in _handle_request_noblock
self.process_request(request, client_address)
  File C:\Python27\lib\SocketServer.py, line 310, in process_request
self.finish_request(request, client_address)
  File C:\Python27\lib\SocketServer.py, line 323, in finish_request
self.RequestHandlerClass(request, client_address, self)
  File C:\Python27\lib\SocketServer.py, line 641, in __init__
self.finish()
  File C:\Python27\lib\SocketServer.py, line 694, in finish
self.wfile.flush()
  File C:\Python27\lib\socket.py, line 303, in flush
self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 10053] An established connection was aborted by the software in 
your host machine


I've provided a toy server below, you can reproduce the issue by submitting a 
request to it with curl and then immediately killing curl:

 curl -d test  http://127.0.0.1:8000/

Toy server code:
===

import BaseHTTPServer
import SocketServer
import time

class ThreadedHTTPServer(BaseHTTPServer.HTTPServer):
  pass

class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
  def do_POST(self):
try:
  length = int(self.headers[Content-Length])
  request = self.rfile.read(length)

  print Sleeping. Kill the 'curl' command now.
  time.sleep(10)
  print Woke up. You should see a stack trace from the problematic 
exception below.

  print Received POST:  + request
  self.send_response(200) # --- This somehow adds to the connection's 
buffer!
  self.end_headers()
except Exception as e:
  print Exception:  + str(e)  # - This exception is expected

httpd = ThreadedHTTPServer((127.0.0.1, 8000), RequestHandler)
httpd.serve_forever()
httpd.server_close()

--
components: Library (Lib)
messages: 158240
nosy: vdjeric
priority: normal
severity: normal
status: open
title: SocketServer doesn't handle client disconnects properly
versions: Python 2.7

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor

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

Patch version 9: fixes for Windows (fix compilation and fix to code checking if 
GetTickCount64 is present).

--
Added file: http://bugs.python.org/file25210/pep418-9.patch

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor

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


Removed file: http://bugs.python.org/file25126/pep418-6.patch

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor

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


Removed file: http://bugs.python.org/file25201/pep418-7.patch

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



[issue14428] Implementation of the PEP 418

2012-04-13 Thread STINNER Victor

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


Removed file: http://bugs.python.org/file25209/pep418-8.patch

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



[issue14573] json iterencode can not handle general iterators

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti, rhettinger
stage:  - test needed
type:  - behavior
versions: +Python 3.3 -Python 2.6, Python 3.1

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



[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

What is the status of this in 2.7?

Brett - what about in 3.3 after you get importlib in?

--
versions: +Python 3.3 -Python 3.1

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



[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

btw, a potentially related (or duplicate?) issue was already fixed - 
http://bugs.python.org/issue1590864

--

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



[issue14399] zipfile and creat/update comment

2012-04-13 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset b3b7f9dd7ce4 by R David Murray in branch '3.2':
#14399: corrected news item
http://hg.python.org/cpython/rev/b3b7f9dd7ce4

New changeset 225126c9d4b5 by R David Murray in branch '2.7':
#14399: corrected news item
http://hg.python.org/cpython/rev/225126c9d4b5

New changeset 160245735299 by R David Murray in branch 'default':
Merge #14399: corrected news item
http://hg.python.org/cpython/rev/160245735299

--

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



[issue14399] zipfile and creat/update comment

2012-04-13 Thread R. David Murray

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

I must have been seeing what I expected to see.  The test that failed was the 
non-empty test.

News item fixed, thanks for the correction.

--

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



[issue14477] Rietveld test issue

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14562] urllib2 maybe blocks too long with small chunks

2012-04-13 Thread Anrs Hu

Anrs Hu anders.x...@gmail.com added the comment:

Okay, there's a test case of web.py:

Server codes are following:
import web
class index(object):
def GET(self):
yield 'hello\n'
yield 'world\n'
time.sleep(60)

client is Python interpreter
 resp = urllib.urlopen(URL)
 resp.readline() # will be 'hello'
 resp.readline() # will be 'world'
 resp.readline() # huh, it's blocked, and we to agree with it.

 # but to use urllib2 will another behavor.
 urllib2.urlopen(URL).readline() # huh, it's blocked even if 'hello' and 
 'world' returned yet. Because urllib2 uses a 8KiB buffer on 
 socket._fileobjece within urllib2.py, it read 8K data to buffer first.

--

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



[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 635966f6d3de by Ezio Melotti in branch '3.2':
#14535: fix code highlight in multiprocessing examples.  Patch by Tshepang 
Lekhonkhobe.
http://hg.python.org/cpython/rev/635966f6d3de

New changeset 957e2c71beef by Ezio Melotti in branch 'default':
#14535: merge with 3.2.
http://hg.python.org/cpython/rev/957e2c71beef

--
nosy: +python-dev

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



[issue14535] three code examples in docs are not syntax highlighted

2012-04-13 Thread Ezio Melotti

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

I tried the attached patch but it didn't work for me.  Using python3 instead 
of python seemed to fix the problem.  I also updated another python to use 
python3.  Thanks for the report and the patch!

--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed
type:  - enhancement

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



[issue14554] test module: correction

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
stage:  - commit review
type:  - enhancement

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



[issue12428] functools test coverage

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14507] Segfault with starmap and izip combo

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti
stage:  - needs patch

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



[issue14408] Support ./python -m unittest in the stdlib tests

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14339] Optimizing bin, oct and hex

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14304] Implement utf-8-bmp codec

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue14575] IDLE crashes after file open in OS X

2012-04-13 Thread Hugh Gibbons

New submission from Hugh Gibbons hg13...@gmail.com:

IDLE crashes shortly after I open a any file with IDLE, using the file browser. 
 If I open a file from the File-Recent Files list, it does not crash.

OS X version 10.6.8.

--
components: IDLE
messages: 158249
nosy: hgibbons
priority: normal
severity: normal
status: open
title: IDLE crashes after file open in OS X
type: crash
versions: Python 2.7

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



[issue14393] Incorporate Guide to Magic Methods?

2012-04-13 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue6380] Deadlock during the import in the fork()'ed child process if fork() happened while import_lock was held

2012-04-13 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +eric.snow

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



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

2012-04-13 Thread Eric Snow

Changes by Eric Snow ericsnowcurren...@gmail.com:


--
nosy: +eric.snow

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