[issue8998] add crypto routines to stdlib

2010-09-18 Thread geremy condra

geremy condra  added the comment:

On Fri, Sep 17, 2010 at 8:55 PM, Gregory P. Smith
 wrote:
>
> Gregory P. Smith  added the comment:
>
> libtomcrypt is a _great_ library.  That is what hashlib uses for the hash 
> algorithms when OpenSSL is not available.
>
> But the _primary_ reason for using OpenSSL is that it is the defacto open 
> source location for the best architecture specific implementations of any 
> hash and crypto algorithm.  OpenSSL outperforms libtomcrypt by a significant 
> factor (easily 2x) in most cases.
>
> The NSS everywhere effort mentioned in the fedora link sounds interesting.  I 
> support having the ability to link against that instead of OpenSSL or copies 
> of libtomcrypt but I am generally in favor of absolute performance per byte 
> of all algorithms concerned being available.  (ie: don't force hashlib to 
> stop using openssl, just provide an alternative).

I'm open to working with other libraries, but realistically there
isn't a huge point in supporting every crypto library out there, and
it would be a bad idea all around to try. My suggestion would be that
we stick with OpenSSL until a replacement for _ssl.c exists; after
that we can revisit that decision and see where we stand.

Geremy Condra

--

___
Python tracker 

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



[issue9891] Minor doc typo at datamodel.rst: "list" -> "alist"

2010-09-18 Thread Rodrigo Bernardo Pimentel

New submission from Rodrigo Bernardo Pimentel :

The "Built-in methods" item of the "The standard type hierarchy" section of 
Doc/reference/datamodels.rst uses a list instance called "alist" as an example, 
and it says "__self__ is set to the object denoted by *list*." It should read 
"the object denoted by *alist*"

This affects all releases, so I've marked them all. But I suppose we don't care 
about 2.5 anymore. All the others are listed on docs.python.org (or are 
"trunk"), and I think should be fixed.

It's a trivial fix, and a single patch works 2.x and another for 3.x.

--
assignee: d...@python
components: Documentation
files: alist_doc-2.x.patch
keywords: patch
messages: 116757
nosy: d...@python, rbp
priority: normal
severity: normal
status: open
title: Minor doc typo at datamodel.rst: "list" -> "alist"
versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file18914/alist_doc-2.x.patch

___
Python tracker 

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



[issue9891] Minor doc typo at datamodel.rst: "list" -> "alist"

2010-09-18 Thread Rodrigo Bernardo Pimentel

Changes by Rodrigo Bernardo Pimentel :


Added file: http://bugs.python.org/file18915/alist_doc-3.x.patch

___
Python tracker 

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



[issue9189] Improve CFLAGS handling

2010-09-18 Thread Roumen Petrov

Roumen Petrov  added the comment:

-1 for the changes. Please restore to previous state.
The patch break all uses of well documented  build variables.

--
nosy: +rpetrov

___
Python tracker 

___
___
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

2010-09-18 Thread Dirkjan Ochtman

Changes by Dirkjan Ochtman :


--
nosy: +djc

___
Python tracker 

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



[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-18 Thread Florian Festi

Florian Festi  added the comment:

I updated the performace script to Py3. You still need to change the import 
gzipnew line to actually load the modified module. Right now it just compares 
the stdlib gzip module to itself.

--
Added file: http://bugs.python.org/file18916/test_gzip2-py3.py

___
Python tracker 

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



[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-09-18 Thread Florian Festi

Florian Festi  added the comment:

Attached result of a run with stdlib gzip module only. Results indicate that 
performance still is as bad as on Python 2. The Python 3 gzip module also still 
makes use of tell() ans seek(). So both argument for including this patch are 
still valid.

Porting the patch will include some real work to get the bytes vs string split 
right.

--
Added file: http://bugs.python.org/file18917/result-py3.txt

___
Python tracker 

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



[issue9869] long_subtype_new segfault in pure-Python code

2010-09-18 Thread Mark Dickinson

Mark Dickinson  added the comment:

Problem confirmed here; thanks for the report.

I think it's also a bug that after:

class A(object):
def __long__(self):
return 42

long(A()) returns an object of type 'int' rather than an object of type 'long'. 
 It's inconsistent with what happens with __trunc__, too:

>>> class A(object):
... def __trunc__(self): return 42
... 
[37198 refs]
>>> long(A())
42L
[37201 refs]

What's a little bit odd is that there's a test for the __long__-returning-int 
behaviour in test_class that asserts the return type should be int.

Here's a patch that fixes the return type of long (and PyNumber_Long) to be 
long in these cases.

--
keywords: +patch
Added file: http://bugs.python.org/file18918/issue9869.patch

___
Python tracker 

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



[issue9869] long_subtype_new segfault in pure-Python code

2010-09-18 Thread Mark Dickinson

Mark Dickinson  added the comment:

Removing 2.6 from the versions, since this isn't a security problem (as far as 
I know).

--
versions:  -Python 2.6

___
Python tracker 

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




[issue1675951] Performance for small reads and fix seek problem

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Attached result of a run with stdlib gzip module only. Results
> indicate that performance still is as bad as on Python 2. The Python 3
> gzip module also still makes use of tell() ans seek(). So both
> argument for including this patch are still valid.

Performance is easily improved by wrapping the file object in a
io.BufferedReader or io.BufferedWriter:

Text 1 byte block test
Original gzip Write:2.125 s Read:0.683 s
New gzip  Write:0.390 s Read:0.240 s

Text 4 byte block test
Original gzip Write:1.077 s Read:0.351 s
New gzip  Write:0.204 s Read:0.132 s

Text 16 byte block test
Original gzip Write:1.119 s Read:0.353 s
New gzip  Write:0.264 s Read:0.137 s

Still, fixing the seek()/tell() issue would be nice.

--
title: [gzip] Performance for small reads and fix seek problem -> Performance 
for small reads and fix seek problem

___
Python tracker 

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



[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn

Tom Lynn  added the comment:

I'm still unsure.  I think this confusion does cause bugs in real-world code.  
Perhaps more prominence for \A and \Z in the docs?  There's already a section 
comparing regexps starting '^' with match under "Matching vs Searching".

The problem is basically that ^ and $ have weird semantics but are better 
recognised than \A and \Z.  Looking over the docs again I see that the docs for 
$ are still misleading, in a way that's related to this issue:

foo matches both 'foo' and 'foobar', while the regular
expression foo$ matches only 'foo'.

"foo$ matches only 'foo' (out of 'foo' and 'foobar')" is the correct 
interpretation of that, but it's easy to read it as "foo$ means 
exact_match('foo')", which is the misconception I was hoping to put to rest 
with this (foo$ also matches the 'foo' part of 'foo\nbar', even with flags=0).

--

___
Python tracker 

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



[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn

Tom Lynn  added the comment:

Actually, looking at the second part of the docs for $ (on "foo.$") makes me 
think the main motivating case here may be a bug in re.match::

>>> re.match('foo$', 'foo\n\n')
>>> re.match('foo$', 'foo\n')
<_sre.SRE_Match object at 0x00A98678>

Shortening an input string shouldn't ever cause it to match, should it?

--

___
Python tracker 

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



[issue9869] long_subtype_new segfault in pure-Python code

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> What's a little bit odd is that there's a test for the __long__-
> returning-int behaviour in test_class that asserts the return type
> should be int.

If there is a test then the behaviour is probably deliberate, and changing it 
would break compatibility.

--
nosy: +pitrou

___
Python tracker 

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



[issue9888] int overflow in datetime causes seg fault from datetime.ctime()

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Apparently it has been fixed somewhere between 2.6.5 and 2.6.6. I get a 
segmentation fault in 2.6.5, but an OverflowError in all of {2.6.6, 2.7, 3.1, 
3.2}.

--
nosy: +pitrou

___
Python tracker 

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



[issue9877] Expose sysconfig._get_makefile_filename() in public API

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Barry's request looks reasonable. Any build information will have platform 
specificities to it.

On the other hand, this begs the question of why you want to access the Python 
makefile at all. Is there any information in there that isn't currently 
exposed? I think it would be nice if people could completely forget about the 
existence of that file, and instead have nice programmatic APIs to query 
properties they are interested in.

--
nosy: +pitrou

___
Python tracker 

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



[issue9869] long_subtype_new segfault in pure-Python code

2010-09-18 Thread Eric Smith

Eric Smith  added the comment:

There are plenty of tests that check implementation specific internal 
behaviors. I don't think the presence of test alone would mean that it can't be 
changed.

--

___
Python tracker 

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



[issue9869] long_subtype_new segfault in pure-Python code

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> There are plenty of tests that check implementation specific internal
> behaviors. I don't think the presence of test alone would mean that it
> can't be changed.

Right. In practice, returning a long instead of an int can produce bugs,
mainly because some C functions will only accept ints and refuse longs.

(which is the C functions' fault, but unless you want to find and fix
all of them (including perhaps in 3rd-party libraries), I think it's
better not to change the current behaviour)

--

___
Python tracker 

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



[issue1708652] Exact matching

2010-09-18 Thread Tom Lynn

Tom Lynn  added the comment:

Oh dear, I'm wrong on two fronts (I wish Roundup had post editing).

a) foo$ doesn't match the 'foo' part of 'foo\nbar' as I stated above, but does 
match the 'foo' part of 'foo\n'.
b) Obviously shortening an input string can cause it to match.  It's still 
weird though.

--

___
Python tracker 

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



[issue1777398] IDLE Freezes After Running Scripts

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov

New submission from Dmitry Dvoinikov :

If you request Event.wait(x), the call consistently returns in less than x 
seconds.

Sample:
-
from threading import Event
from time import time

e = Event()

before = time()
e.wait(0.1)
after = time()

print(after - before)

# under Python 3.1 prints 0.10...
# under Python 3.2 prints 0.092999...
-

--
components: Library (Lib)
messages: 116772
nosy: ddvoinikov
priority: normal
severity: normal
status: open
title: Event spends less time in wait() than requested
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Could someone with commit privileges please review the patch with a view to 
committing, thanks.

--
nosy: +BreamoreBoy, terry.reedy
versions:  -Python 2.6

___
Python tracker 

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



[issue1034] [patch] Add 2to3 support for displaying warnings as Python comments

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Removed 2.7 as too late, can we get this into 3.2?

--
nosy: +BreamoreBoy
versions:  -Python 2.7

___
Python tracker 

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



[issue1079] decode_header does not follow RFC 2047

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage: needs patch -> patch review
versions: +Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue1128] msilib.Directory.make_short only handles file names with a single dot in them

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Brian/Tim do have have any input on this?  Also note that a similar patch 
exists on issue7639.

--
nosy: +BreamoreBoy, brian.curtin, tim.golden

___
Python tracker 

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



[issue1159] os.getenv() not updated after external module uses C putenv()

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can someone please comment on whether or not this issue is still valid.

--
nosy: +BreamoreBoy
resolution: postponed -> 

___
Python tracker 

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



[issue1195] Problems on Linux with Ctrl-D and Ctrl-C during raw_input

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

There's a one line patch in msg59242, could someone please take a look.  
Apparantly py3k is not affected by this issue although I haven't tried it 
myself.

--
nosy: +BreamoreBoy
stage: unit test needed -> patch review
versions: +Python 2.7 -Python 2.6

___
Python tracker 

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



[issue1215] Python hang when catching a segfault

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

There are several suggestions inline as how how the docs should be changed.

--
assignee:  -> d...@python
nosy: +BreamoreBoy, d...@python

___
Python tracker 

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



[issue1250] Building external modules using Sun Studio 12

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is anyone out there using Sun Studio who can comment on this?  If there are no 
responses within a couple of weeks I'll close.

--
status: open -> pending

___
Python tracker 

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



[issue1257] atexit errors should result in nonzero exit code

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can someone please review the attached patch with a view to committing, it 
contains doc and unit test changes.

--
nosy: +BreamoreBoy
stage:  -> patch review
versions:  -Python 2.6

___
Python tracker 

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



[issue1274] doctest fails to run file based tests with 8bit paths

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


Removed file: http://bugs.python.org/file8527/bug_3740_1.patch

___
Python tracker 

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



[issue1274] doctest fails to run file based tests with 8bit paths

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

The patch simply changes test_doctest, is it acceptable or not?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1322] platform.dist() has unpredictable result under Linux

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

It consistently doesn't here:
0.10013985633850098
0.1001589298248291
(etc.)

What system are you using? There are two factors:
- accuracy of the timeout in the wait() function
- accuracy of the results returned by time()

Apart from a possible bug in Python, both of these factors depend on the 
operating system.

--
nosy: +pitrou

___
Python tracker 

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



[issue1348] httplib closes socket, then tries to read from it

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg114602 so I'll close in a couple of weeks unless anyone objects.

--
nosy: +BreamoreBoy
status: open -> pending

___
Python tracker 

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



[issue1350] IDLE - CallTips enhancement - show full doc-string in new window

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

>From msg84550 "The added functionality is useful, but this patch is not the 
>way to go".  Can this be closed as rejected, would the OP like to supply an 
>updated patch, or what?

--
nosy: +BreamoreBoy, terry.reedy
versions: +Python 3.2 -Python 3.1

___
Python tracker 

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



[issue1423] wave sunau aifc 16bit errors

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this still valid?

--
nosy: +BreamoreBoy -gvanrossum
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

___
Python tracker 

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



[issue1429] FD leak in SocketServer

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

This will go nowhere unless a patch is provided that contains code, doc and 
unit test changes.

--
nosy: +BreamoreBoy
stage:  -> unit test needed
type:  -> behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue1441] Cycles through ob_type aren't freed

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this still valid?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1429] FD leak in SocketServer

2010-09-18 Thread Jeff McNeil

Jeff McNeil  added the comment:

I'll see if I can get it to reproduce and put a patch together.

--

___
Python tracker 

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



[issue1452] subprocess's popen.stdout.seek(0) doesn't raise an error

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Brian/Tim what would you expect to happen here?

--
nosy: +BreamoreBoy, brian.curtin, tim.golden

___
Python tracker 

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



[issue1458] installer crashes on attempted cancellation

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg85633.

--
nosy: +BreamoreBoy
status: open -> closed

___
Python tracker 

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



[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

There's a one line patch in msg57749 and some unit tests are attached so would 
a committer take a look please.  Also note that #2174 and #2175 are related.

--
nosy: +BreamoreBoy
stage:  -> patch review
type:  -> behavior

___
Python tracker 

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



[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


Removed file: http://bugs.python.org/file10269/BaseHTTPServer_continue.patch

___
Python tracker 

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



[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


Removed file: http://bugs.python.org/file10278/BaseHTTPRequestHandlerTestCase.py

___
Python tracker 

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



[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


Removed file: http://bugs.python.org/file10684/BaseHTTPServer_continue_2.patch

___
Python tracker 

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



[issue1423] wave sunau aifc 16bit errors

2010-09-18 Thread jeroen

jeroen  added the comment:

as far as I know. But i have not use or tested it since a long time

On Sat, Sep 18, 2010 at 4:34 PM, Mark Lawrence wrote:

>
> Mark Lawrence  added the comment:
>
> Is this still valid?
>
> --
> nosy: +BreamoreBoy -gvanrossum
> versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0
>
> ___
> Python tracker 
> 
> ___
>

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

___
Python tracker 

___as far as I know. But i have not use or tested it since a long timeOn Sat, Sep 18, 2010 at 4:34 PM, Mark Lawrence rep...@bugs.python.org> 
wrote:

Mark Lawrence breamore...@yahoo.co.uk> added the 
comment:

Is this still valid?

--
nosy: +BreamoreBoy -gvanrossum
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0

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

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



[issue1491] BaseHTTPServer incorrectly implements response code 100

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
stage:  -> patch review
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

___
Python tracker 

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



[issue1504] Add 2to3 fixer for (un)bound methods

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

No reply to msg71746.

--
nosy: +BreamoreBoy
status: open -> closed

___
Python tracker 

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



[issue1441] Cycles through ob_type aren't freed

2010-09-18 Thread Adam Olsen

Adam Olsen  added the comment:

As far as I know.

--

___
Python tracker 

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



[issue1518] Fast globals/builtins access (patch)

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Closing as recommended in msg101239.

--
nosy: +BreamoreBoy
status: open -> closed

___
Python tracker 

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



[issue1532] Refleak run of test_tcl fails

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

I don't believe that this can still be an issue.

--
nosy: +BreamoreBoy
status: open -> closed

___
Python tracker 

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



[issue1540] Refleak tests: test_doctest and test_gc are failing

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Can we have an update on this please as it seems important.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1554] socketmodule cleanups: allow the use of keywords in socket functions

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Could someone please review the latest patch, I'd like to see the OP's work 
rewarded with the patch getting into 3.2.

--

___
Python tracker 

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



[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Dmitry Dvoinikov

Dmitry Dvoinikov  added the comment:

You are right, sorry. It's Windows XP Prof, Python 3.2a2.

The differences in OS may be the cause, but the problem doesn't appear in 3.1 
on the same machine.

--

___
Python tracker 

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



[issue1574] Touchpad 2 Finger scroll does not work in IDLE on Mac (But scroll wheel of external mouse does)

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy: +taleinat, terry.reedy
stage: unit test needed -> needs patch
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker 

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




[issue1584] Mac OS X: building with X11 Tkinter

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

This will go nowhere unless someone supplies a patch.

--
nosy: +BreamoreBoy
versions: +Python 3.2 -Python 2.7, Python 3.1

___
Python tracker 

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



[issue1602] windows console doesn't print utf8 (Py30a2)

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

@Brian/Tim what's your take on this?

--
nosy: +BreamoreBoy, brian.curtin, tim.golden

___
Python tracker 

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



[issue1605] Semi autogenerated _types module

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Is this ever likely to go anywhere?  My understanding is that this would be 
difficult to do (or have I simply misread something?).  If I'm correct, 
wouldn't it be better to use our limited resources elsewhere?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1441] Cycles through ob_type aren't freed

2010-09-18 Thread Benjamin Peterson

Changes by Benjamin Peterson :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> __dict__ = self in subclass of dict causes a memory leak?

___
Python tracker 

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



[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> You are right, sorry. It's Windows XP Prof, Python 3.2a2.
> 
> The differences in OS may be the cause, but the problem doesn't appear
> in 3.1 on the same machine.

The implementation changed between 3.1 and 3.2. On 3.1, wait() with
timeout ran a polling loop until either the event was set or the delay
was expired (and it used time() itself, which kind of guarantees that
your case would always produce the expected result).

On 3.2, wait() with timeout simply calls the adequate OS function
(sem_timedwait under POSIX, WaitForSingleObject under Windows). It is
actually more precise, because the polling loop and its sleep() calls
are eliminated.

Also, I just traced the WaitForSingleObject call under a Windows VM, and
it gets called with the correct timeout value (100 ms).

--

___
Python tracker 

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



[issue1615] descriptor protocol bug

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

This is still an issue with the latest trunk.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1615] descriptor protocol bug

2010-09-18 Thread Benjamin Peterson

Benjamin Peterson  added the comment:

I consider this to be a feature. Properties can raise AttributeError to defer 
to __getattr__.

--
nosy: +benjamin.peterson

___
Python tracker 

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



[issue7225] fwrite() compiler warnings

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

See also #1616 and #1621.

--

___
Python tracker 

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



[issue1616] compiler warnings

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

How many warnings are we now getting on the buildbots?

--
nosy: +BreamoreBoy
versions:  -Python 2.6

___
Python tracker 

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



[issue9552] ssl build under Windows always rebuilds OpenSSL

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

The patch works here (VS 2008).

--

___
Python tracker 

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



[issue1605] Semi autogenerated _types module

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Well, the core issue is a disagreement on the way to go.

I would agree with Benjamin's and Christian's proposal, given that it's quite 
practical to implement. Guido's proposal means we would have to add new modules 
just so that the relevant C types can be exposed "at the right place".

The types module is generally used for low-level trickery (since most useful 
types are accessible from the builtin namespace), and IMO it makes sense to 
have a dedicated module for that.

--
nosy: +pitrou

___
Python tracker 

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



[issue9892] Event spends less time in wait() than requested

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

I'm closing because there doesn't seem to be a genuine bug in Python. But 
thanks for reporting anyway! The threading facilities in 3.2 need real-world 
testing.

--
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue1605] Semi autogenerated _types module

2010-09-18 Thread Guido van Rossum

Guido van Rossum  added the comment:

I'm still against collecting all types in one module. Closing.

--
status: open -> closed

___
Python tracker 

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



[issue9893] Usefulness of the Misc/Vim/ files?

2010-09-18 Thread Antoine Pitrou

New submission from Antoine Pitrou :

While trying out vim, I noticed that the files in Misc/Vim are very poor 
compared to what is otherwise provided by the vim community:
- highlighting including 3.x syntax: 
http://www.vim.org/scripts/script.php?script_id=974
- PEP 8 indentation: http://www.vim.org/scripts/script.php?script_id=974

Also, the vimrc uses "au BufRead,BufNewFile *.py" style selection, while the 
recommended modern style seems to use a ".vim/ftplugin" filetype-specific file 
instead.

Does it still make sense to maintain these files separately?

--
components: Demos and Tools
messages: 116812
nosy: brett.cannon, pitrou
priority: low
severity: normal
status: open
title: Usefulness of the Misc/Vim/ files?
type: resource usage
versions: Python 3.2

___
Python tracker 

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



[issue9894] wrong errno check

2010-09-18 Thread Pino Toscano

New submission from Pino Toscano :

In Lib/test/test_subprocess.py there's a check of an errno value done against a 
number, instead of using the proper E* constants, which is not portable (POSIX 
does not specify any actual value of the E* constants).
This makes the test test_leaking_fds_on_error fail on OSes where the errno 
ENOENT has a value different than two (like on GNU/Hurd, for example).

The attached patch was done in the py3k branch, but the issue appears in any 
other branch (including trunk). Could you please fix the issue also in the 
active Python branches?

--
components: Tests
files: errno_py3k.diff
keywords: patch
messages: 116813
nosy: pino
priority: normal
severity: normal
status: open
title: wrong errno check
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file18920/errno_py3k.diff

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

Unfortunately, select doesn't necessarily update the timeout variable with the 
remaining time, so we can't rely on this. This would mean having the select 
enclosed within gettimeofday and friends, which seems a bit overkill...

--

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Jean-Paul Calderone

Jean-Paul Calderone  added the comment:

> Unfortunately, select doesn't necessarily update the timeout variable with 
> the remaining time, so we can't rely on this. This would mean having the 
> select enclosed within gettimeofday and friends, which seems a bit overkill...

How is it "overkill" to be correct?

--

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Unfortunately, select doesn't necessarily update the timeout variable
> with the remaining time, so we can't rely on this. This would mean
> having the select enclosed within gettimeofday and friends, which
> seems a bit overkill...

Well, given the general cost of Python function calls and bytecode
interpretation, it would probably not be much of a runtime overhead. So
it's mainly some additional, not very exciting code to write :-)

(luckily, in 3.2 we have a cross-platform gettimeofday() abstraction in
pytime.h which will ease things quite a bit)

--

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

Yes, I was concerned with the runtime overhead (especially under VMs, where 
clocks are emulated) and strace output ;-)
As for the dull code writting, I could give it a shot unless someone else wants 
to go ahead.

--

___
Python tracker 

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



[issue2643] mmap_object_dealloc does not call FlushViewOfFile on windows

2010-09-18 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

Any thoughts on this?

--

___
Python tracker 

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



[issue9894] wrong errno check

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Fixed in r84878 (3.2), r84879 (2.7) and r84880 (3.1). Thank you!

--
nosy: +pitrou
resolution:  -> fixed
status: open -> closed
versions: +Python 2.7, Python 3.1

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Charles-Francois Natali

Charles-Francois Natali  added the comment:

@ehohenstein: sorry, I hadn't seen you'd already submitted a patch, so you may 
as well update it to take into account what was said above. Also, please note 
that this issue is not specific to windows, so it would be nice to fix it for 
Unices too.

--

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Antoine Pitrou

New submission from Antoine Pitrou :

test_subprocess is currently very slow and the main culprit is test_no_leaking 
(here, it takes 80s out of the 100s needed for the whole run). This tests 
spawns as many subprocesses as would be needed to reach the max file descriptor 
limit. Spawning a subprocess is a heavy operation and consequently the test is 
very long.

This patch adopts another approach: it opens many file descriptors (using 
os.open()) until the max fd limit is reached, closes some of them (10 is 
enough) and then launches a bunch of subprocesses in a loop to check that they 
succeed. Consequently, the test is very fast (even on a Windows VM in debug 
mode).

--
components: Tests
files: noleaking.patch
keywords: patch
messages: 116821
nosy: brian.curtin, gregory.p.smith, pitrou, tim.golden
priority: normal
severity: normal
stage: patch review
status: open
title: Speed up test_subprocess
type: performance
versions: Python 2.7, Python 3.1, Python 3.2
Added file: http://bugs.python.org/file18921/noleaking.patch

___
Python tracker 

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



[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

Well what is the decision?  FWIW I sway towards the +0 from msg112156 rather 
than the -0 from msg63791, but then what do I know?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1708] improvements for linecache

2010-09-18 Thread Mark Lawrence

Mark Lawrence  added the comment:

@umaxx are you interested in taking this forward?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue1722] Undocumented urllib functions

2010-09-18 Thread Mark Lawrence

Changes by Mark Lawrence :


--
assignee: georg.brandl -> d...@python
nosy: +d...@python

___
Python tracker 

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



[issue9896] Introspectable range objects

2010-09-18 Thread Daniel Urban

New submission from Daniel Urban :

The attached patch adds the start, stop and step members to range objects, 
corresponding the contructor arguments. The patch also include tests and 
documentation changes.

--
components: Interpreter Core
files: range_attrs.diff
keywords: patch
messages: 116824
nosy: durban
priority: normal
severity: normal
status: open
title: Introspectable range objects
type: feature request
versions: Python 3.2
Added file: http://bugs.python.org/file18922/range_attrs.diff

___
Python tracker 

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



[issue9893] Usefulness of the Misc/Vim/ files?

2010-09-18 Thread Brett Cannon

Brett Cannon  added the comment:

So the irony of saying that the files are poor is that I took that code from 
the highlight file from Vim itself and simply automated the creation of the 
files.

As for the more proper way of selecting when to apply the highlights, I would 
not be surprised that I am wrong.

The entire point of the Misc/Vim directory was so that we had files which were 
as up-to-date as svn is. I personally got tired of not having new keywords be 
recognized. I'm no Vim expert -- just a happy user -- so I'm sure there could 
be better out there. If we drop the files we will just have to go back to 
manually editing files to support new syntax until the community picks it up. 
But maybe devolving responsibility like that is not a bad thing.

And your link for the Python 3 syntax is incorrect; it's the same as the PEP 8 
indentation file.

--

___
Python tracker 

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



[issue9896] Introspectable range objects

2010-09-18 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +mark.dickinson

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

Overall I like the approach.

A few questions / clarifications:

 is errno.EMFILE portable?  will that errno test work on both posix and
windows?

 should the is_resource_enabled('subprocess') stuff be preserved (why was it
there to begin with? because the old test took so long?)

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

___
Python tracker 

___Overall I like the approach.A few questions / 
clarifications: is errno.EMFILE portable?  will 
that errno test work on both posix and 
windows? should the 
is_resource_enabled('subprocess') stuff be preserved (why was it there 
to begin with? because the old test took so long?)


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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> A few questions / clarifications:
> 
>  is errno.EMFILE portable?  will that errno test work on both posix and
> windows?

It does (tested under Linux and a Win64 VM).

>  should the is_resource_enabled('subprocess') stuff be preserved (why was it
> there to begin with? because the old test took so long?)

I guess the latter: the test was so long, especially on slow machines,
that it was only enabled selectively.

--

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Gregory P. Smith

Gregory P. Smith  added the comment:

looks good to me.  commit it. :)

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

___
Python tracker 

___looks good to me.  commit it. :)
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9895] Speed up test_subprocess

2010-09-18 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file18923/unnamed

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Florent Xicluna

Changes by Florent Xicluna :


Removed file: http://bugs.python.org/file18924/unnamed

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Florent Xicluna

Florent Xicluna  added the comment:

+1 fo faster regrtest

--
nosy: +flox

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Here is a proof of concept patch for Python 3.2. It only wraps recv() and 
recv_into(). recvfrom() and recvfrom_into() should receive the same treatment, 
at least.

--
stage:  -> patch review
Added file: http://bugs.python.org/file18925/selectretry.patch

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Antoine Pitrou

Changes by Antoine Pitrou :


--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Removed file: http://bugs.python.org/file18925/selectretry.patch

___
Python tracker 

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



[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2010-09-18 Thread Antoine Pitrou

Changes by Antoine Pitrou :


Added file: http://bugs.python.org/file18926/selectretry.patch

___
Python tracker 

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



[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2010-09-18 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
Removed message: http://bugs.python.org/msg63791

___
Python tracker 

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



[issue1686] string.Template.safe_substitute fail when overriding pattern attribute

2010-09-18 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

This looks fine.

--
assignee: barry -> 
resolution:  -> accepted

___
Python tracker 

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



[issue9895] Speed up test_subprocess

2010-09-18 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Done, thank you.
(r84883, r84884, r84885)

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

___
Python tracker 

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



[issue1708652] Exact matching

2010-09-18 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

Can we close this one?

--
nosy: +rhettinger

___
Python tracker 

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



[issue9810] bzip2 build sometimes fails (VS8.0)

2010-09-18 Thread Hirokazu Yamamoto

Hirokazu Yamamoto  added the comment:

Backported in r84881(release27-maint), r84886(release31-maint).

--
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue8998] add crypto routines to stdlib

2010-09-18 Thread lorph

lorph  added the comment:

> OpenSSL outperforms libtomcrypt by a significant factor (easily 2x) in most 
> cases.

Gregory, do you have any evidence to substantiate this claim? Not that it isn't 
plausible, but I couldn't find any benchmarks, and here the author of 
libtomcrypt finds it to be 40% faster than OpenSSL concerning RSA operations.

http://www.adras.com/TomsFastMath-faster.t71-93.html

>  but I am generally in favor of absolute performance per byte of all 
> algorithms concerned being available

Performance isn't all that matters, or else Python would have used GMP, as 
Guido discussed here:

http://mail.python.org/pipermail/python-3000/2007-September/010329.html

It is also not a convincing argument that new python libraries should use 
OpenSSL if possible just because that is what _ssl uses. Compiling Python with 
OpenSSL support has been optional because it puts additional restrictions on 
the PSF license. Spreading this restriction to the future crypto module (when 
we have a choice not to) doesn't make sense.

--

___
Python tracker 

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



  1   2   >