[issue13742] Add a key parameter (like sorted) to heapq.merge

2013-03-26 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Attaching a rough draft implementation for a fully encapsulated Heap() class 
that is thread-safe, supports minheaps and maxheaps, and efficiently implements 
key-functions (called no more than once per key).

--
Added file: http://bugs.python.org/file29578/heap.diff

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



[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread anatoly techtonik

anatoly techtonik added the comment:

1. The documentation doesn't say that the content of this dict may change 
sporadically even if you don't call locals()

2. I am referring to inline documentation:

 h = locals()
 type(h)
class 'dict'
 help(h)

--

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



[issue17525] os.getcwd() fails on cifs share

2013-03-26 Thread Charles-François Natali

Changes by Charles-François Natali cf.nat...@gmail.com:


--
status: open - pending

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



[issue17544] regex code re-raises exceptions on success

2013-03-26 Thread Zdeněk Pavlas

Zdeněk Pavlas added the comment:

Yes, found that *certain* IO operations re-raise the error, too.  However, if 
the Python runtime expects extension writers to keep tstate-curexc_type clear, 
it should be documented in

http://docs.python.org/2/c-api/exceptions.html

There's not a single use case of PyErr_Clear() mentioned.

--
assignee:  - docs@python
components: +Documentation -Regular Expressions
nosy: +docs@python

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



[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-26 Thread Ramchandra Apte

New submission from Ramchandra Apte:

In http://docs.python.org/3/library/exceptions.html#exception-hierarchy , some 
exception are not highlighted correctly.

--
messages: 185262
nosy: Ramchandra Apte
priority: normal
severity: normal
status: open
title: Some exceptions not highlighted in exceptions documentation.
versions: Python 3.3, Python 3.4

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



[issue1207613] Bottom Scroll Bar in IDLE

2013-03-26 Thread Ramchandra Apte

Changes by Ramchandra Apte maniandra...@gmail.com:


--
title: Bottom Scroll Bar - Bottom Scroll Bar in IDLE

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes

Christian Heimes added the comment:

Benjaman and Georg, what do the RMs feel about the doc patch?

--
nosy: +benjamin.peterson, georg.brandl

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



[issue1747670] Limiting data copy in xmlrpclib

2013-03-26 Thread Thomas Fenzl

Thomas Fenzl added the comment:

I removed the unnecessary check on single-element arrays. 
No strong opinion on usefulness, as I don't use xmlrpc a lot...

--
Added file: http://bugs.python.org/file29579/xmlrpc_less_copy-1.diff

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl

Georg Brandl added the comment:

* I would take out the erroneous of erroneous or maliciously constructed in 
the disclaimers.  The odds of creating one of the bombings by chance are slim.

* The names of attacks in the table are quite opaque if you haven't heard of 
them.  They should be linked/explained.  (Also, the csv-table construction 
looks quite strange; a normal reST table would be preferred.)

* I don't think the warning for SAX needs to be repeated three times.

* Not sure the reader will get the reason for having both defusedxml and 
defusedexpat.

--

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes

Christian Heimes added the comment:

1. sounds fine to me

2. I can copy some text from the README.txt of defusedxml. CSV table was easier 
to maintain for me. What's a good tool to create and modify sphinx tables?

3. No strong opinion here, better safe than sorry?

4. IMO the warning should mention both. Perhaps a better explanation will help?

--

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Donald Stufft

Donald Stufft added the comment:

FWIW I put the warning on all the sax pages just because there's no way to know 
which page a user will go to if they are coming in via google.

--

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl

Georg Brandl added the comment:

2. That would be good.  For this table the simple rst tables should be fine:

=  =
head   head
=  =
body   body
body   body
=  =

3. Once per XML logical handling module/package seems quite enough.

4. The warnings only link to the section about XML Vulnerabilities, which is 
good.  But that section should not only mention that the defusedxml description 
explains everything, but also *what the hell* it contains :)

--

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



[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Gergö Barany

New submission from Gergö Barany:

Trying to configure Python (3.3 and 3.4 prerelease from Mercurial) with 
--enable-profiling doesn't work because the configure script contains a syntax 
error that causes it to conclude that the C compiler does not accept the -pg 
flag:

$ ../cpython/configure --enable-profiling | grep prof
configure: WARNING:

  By default, distutils will build C++ extension modules with g++.
  If this is not intended, then set CXX on the configure command line.
  
../cpython/configure: line 5537: CC: command not found
checking for --enable-profiling... no

Everything (configure/build/running Python) continues as if --enable-profiling 
had not been passed.

This is due to using $(CC) rather than the correct syntax $CC at the specified 
place in the configure script. The attached patch to configure.ac fixes this.

--
files: enable-profiling.patch
keywords: patch
messages: 185269
nosy: gergo
priority: normal
severity: normal
status: open
title: --enable-profiling does nothing (shell syntax bug in configure.ac)
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file29580/enable-profiling.patch

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



[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 27cb49ede303 by Benjamin Peterson in branch '2.7':
fix variable reference to fix --enable-profiling (closes #17550)
http://hg.python.org/cpython/rev/27cb49ede303

New changeset d321885ff8f3 by Benjamin Peterson in branch '2.7':
merge 2.7.4 release branch (#17550)
http://hg.python.org/cpython/rev/d321885ff8f3

New changeset 0decf2a812df by Benjamin Peterson in branch '3.3':
fix variable reference to fix --enable-profiling (closes #17550)
http://hg.python.org/cpython/rev/0decf2a812df

New changeset 81e005a410b7 by Benjamin Peterson in branch 'default':
merge 3.3 (#17550)
http://hg.python.org/cpython/rev/81e005a410b7

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

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



[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Georg, I fixed this in the 2.7.4 release branch. You might want to in 3.3, too.

--
nosy: +benjamin.peterson, georg.brandl
resolution: fixed - 
stage: committed/rejected - 
status: closed - open
versions: +Python 2.7

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



[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Benjamin Peterson

Changes by Benjamin Peterson benja...@python.org:


--
resolution:  - fixed
status: open - closed

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



[issue17550] --enable-profiling does nothing (shell syntax bug in configure.ac)

2013-03-26 Thread Georg Brandl

Georg Brandl added the comment:

Done, thanks for the pointer!

--

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



[issue17549] Some exceptions not highlighted in exceptions documentation.

2013-03-26 Thread Ezio Melotti

Ezio Melotti added the comment:

That's probably because the pygment version used by the docs don't include the 
new Exceptions introduced in PEP 3151.

--
nosy: +ezio.melotti, georg.brandl
type:  - enhancement

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



[issue16475] Support object instancing and recursion in marshal

2013-03-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 84e73ace3d7e by Kristjan Valur Jonsson in branch 'default':
Issue #16475: Add a whatsnew entry for 3.4
http://hg.python.org/cpython/rev/84e73ace3d7e

--

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Christian Heimes

Christian Heimes added the comment:

Here we go again!

--
stage:  - patch review
Added file: http://bugs.python.org/file29581/xmldocs3.diff

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



[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread Eric Snow

Eric Snow added the comment:

So the problem you are having is that inside functions the dict returned by 
locals() does not get updated when the current local symbol table changes?  
Keep in mind that for modules and classes (the other two execution blocks), the 
dict returned by locals() does get updated.

This difference reflects that fact that, in CPython at least, the local 
execution namespace of a function call's stack frame is not stored in a 
dictionary.  When you call locals() in a function it is only making a copy of 
the frame's fast locals.  The fast locals never gets directly exposed except 
through normal name lookup/binding/deletion.  While technically possible, 
changing this simply isn't worth it.

The documentation already makes it clear that the dict returned by locals() 
represents the current local symbol table and that you should not expect 
changes to that dict to be reflected in the actual locals.  Are you 
recommending that it be more clear that the dict may be no more than a snapshot 
of the locals at the time locals() is called?

--

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Georg Brandl

Georg Brandl added the comment:

I still see erroneous in there... otherwise looks good to me.

--

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



[issue17511] Idle find function closes after each find operation

2013-03-26 Thread Kuchinsky

Kuchinsky added the comment:

Thanks, Roger. 

Unfortunately, this doesn't work for me. I'm running Windows and am using 
version 2.7.3

For me, nothing is highlighted until the 'find' window closes. This means that 
if I click 'find', nothing is highlighted even though the text has been found. 
For what it's worth, hitting 'find' repeatedly does iterate through the 
instances, I just can't see any of them until the window is closed, at which 
point I see only the most recent instance.  

I should have been more specific in my report; I mentioned line 55 because I 
think something needs to happen with regard to displaying highlighting while 
the 'find' window is still open. 

System info:
Python 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)] on 
win32

--
resolution:  - wont fix
versions:  -Python 3.2, Python 3.3, Python 3.4

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



[issue17323] Disable [X refs, Y blocks] ouput in debug builds

2013-03-26 Thread Ezio Melotti

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


--
assignee:  - ezio.melotti
resolution:  - fixed
stage: commit review - committed/rejected
status: open - closed

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




[issue11087] Speeding up the interpreter with a few lines of code

2013-03-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 Not at the expense of introducing undefined behaviour.  I suggest 
 closing this.

ok, let's do it.

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

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



[issue17538] Document XML Vulnerabilties

2013-03-26 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e7795a178b0a by Christian Heimes in branch '3.2':
Issue 17538: Document XML vulnerabilties
http://hg.python.org/cpython/rev/e7795a178b0a

New changeset 65e8ac5f073f by Christian Heimes in branch '3.3':
Issue 17538: Document XML vulnerabilties
http://hg.python.org/cpython/rev/65e8ac5f073f

New changeset 1ebefb6ae9a9 by Christian Heimes in branch 'default':
Issue 17538: Document XML vulnerabilties
http://hg.python.org/cpython/rev/1ebefb6ae9a9

New changeset e87364449954 by Christian Heimes in branch '2.7':
Issue 17538: Document XML vulnerabilties
http://hg.python.org/cpython/rev/e87364449954

--
nosy: +python-dev

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



[issue17551] Windows - accessing drive with nothing mounted forces user interaction

2013-03-26 Thread Bob Alexander

New submission from Bob Alexander:

Attempting to use os.path.exists on a Windows drive that is a mobile device 
mount point with nothing mounted pops up a dialog asking to insert a device. 
This makes it impossible to search a set of drives for a specific file without 
the possibility of unnecessary user interaction -- for example looking for the 
drive that has a specific flash drive inserted.

This behavior is likely related to bug 9035 regarding os.path.ismount 
behavior on Windows.

The more correct behavior (IMO) would be to quietly return exists=False for 
drives with nothing mounted. In fact, I tried the same operation with Java and 
Ruby programs, and both simply return false with no popup.

--
components: Library (Lib)
messages: 185281
nosy: bobjalex
priority: normal
severity: normal
status: open
title: Windows - accessing drive with nothing mounted forces user interaction
type: behavior
versions: Python 2.7, Python 3.3

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



[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread anatoly techtonik

anatoly techtonik added the comment:

Under the trace function, the dict is always updated, and that changed a 
workflow in the program I was debugging leading to heisenbug. But that's a 
different story. I'd like to concentrate on the reasons to rename locals() 
result type from 'dict' to 'livedict' (or other internal type with well-defined 
behavior).

dict() returned by locals() is sporadically updated. The problem is not with 
when it is updated, or how it is updated. The problem is that the fact that it 
is updated is not indicated in any way. And the problem that comes from this 
problem is that people don't realize that this dict may change its contents. As 
a result people become confused with Python.

The documentation is also ambiguous. Those people who don't know about 
self-updating behavior (I was) read represents like a copy of symbol table, 
not like a internally updated view of symbol table.

From the OOP point of view, the object doesn't behave like a normal dict, and 
it will be less confusing if it is renamed.


offtopic: local execution namespace of a function call's stack frame sounds 
cryptic - I am afraid that without visualization of 
local/global/namespace/scope/frame I am unable to understand that right now.

offtopic2: I also don't get you should not expect changes to that dict to be 
reflected in the actual locals. I reads as if in some cases modifying the dict 
will change the locals. I thought that it is impossible as it is just a copy.

--

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



[issue14135] check for locale changes in test.regrtest

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

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



[issue15600] expose the finder details used by the FileFinder path hook

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

The details are no longer in a closure but instead on the _loaders attribute.

Why do you want the details exposed? Do you have an actual use-case?

--
status: open - pending

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



[issue15611] devguide: add core mentors area to Experts Index

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

Is this still desired? I think it would be better to simply have a message in 
experts.html to say that if you need help finding someone then email 
core-mentorship instead of having a list that must be maintained.

--
status: open - pending

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



[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

Eric has commit rights now so he can commit his own fix. =)

--

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



[issue15578] Crash when modifying sys.modules during import

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - eric.snow
nosy:  -brett.cannon

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



[issue15834] 2to3 benchmark not working under Python 3

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee: collinwinter - brett.cannon

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



[issue8911] regrtest.main should have a test skipping argument

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy:  -brett.cannon

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



[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

http://bugs.python.org/issue17515 might also play into this if it happens to go 
in.

--

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



[issue2716] Reimplement audioop because of copyright issues

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
nosy:  -brett.cannon

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



[issue15902] imp.load_module won't accept None for the file argument for a C extension

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

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



[issue11664] Add patch method to unittest.TestCase

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

So, what's the status of this? Move it forward or close this?

--
status: open - pending

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



[issue15987] Provide a way to compare AST nodes for equality recursively

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

I have a use for this as well, but w/o the lineno/col_offset comparison and all 
I need is a True/False result.

--

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



[issue15987] Provide a way to compare AST nodes for equality recursively

2013-03-26 Thread Brett Cannon

Brett Cannon added the comment:

IOW I think a function that uses ast.walk() and has flags for specifying 
whether _attributes should also be checked and then uses a class check and then 
uses _fields to do all other checking.

--

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



[issue16104] Use multiprocessing in compileall script

2013-03-26 Thread Brett Cannon

Changes by Brett Cannon br...@python.org:


--
assignee:  - brett.cannon

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



[issue17546] rename type returned by locals() to livedict

2013-03-26 Thread Eric Snow

Eric Snow added the comment:

Thanks for the details, Anatoly.  I am surprised by the behavior you've 
described.  It may be that functions don't use fast locals when tracing is 
turned on.  I'll have to check.  If that's the case, I think the documentation 
for locals() should be improved.  Either way, I agree that inconsistent (and 
undocumented) behavior is a headache.  However, changing the type of the object 
returned by locals() is going to take a lot more justification.  A doc update 
should be sufficient and a much easier sell.

Here are some further questions:

1. the dynamic update you described happens in function bodies (i.e. stack 
frames)?
2. does that behavior happen when you are not using a tracing function?

Also, if you have a minute, throw up a patch that reproduces the behavior 
you're talking about.  That will help get this resolved faster.

Keep in mind that locals() always returns a normal dict.  Just like any other 
dict, other code that has a reference to that locals dict can interact with 
it, which is what you have described.  In this case, the interpreter is doing 
so.  The only case where I find that surprising is where a stack frame is using 
fast locals, which is what function calls normally do.

--

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



[issue17511] Idle find function closes after each find operation

2013-03-26 Thread Kuchinsky

Kuchinsky added the comment:

I think I fixed it!

I used some of the code from ReplaceDialog.py to get the highlighted text to 
display. Thanks to Roger for mentioning that file!

Since the find function now does 'find again', we might want to remove the 
'find again' option from the 'Edit' menu.

Side Note: since the 'Replace' dialog includes a 'Find' function, we could 
remove both the 'Find' dialog and 'Find Again' dialog from the 'Edit' menu, 
thereby bypassing this issue entirely. We would then need to rename the 
'Replace' dialog to 'Find/Replace'. I'm not sure everyone would like that 
change, though, so I'm not going to implement it here. If anyone thinks it 
would be useful, I'll create a new thread/issue.

I've never submitted a patch before, so if I've done something incorrectly, 
please let me know!

--
resolution: wont fix - works for me
Added file: http://bugs.python.org/file29582/SearchDialog.py

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



[issue17552] socket.sendfile()

2013-03-26 Thread Giampaolo Rodola'

New submission from Giampaolo Rodola':

This is based on progress made in issue 13564 and aims to provide a new 
sendfile() method for the socket class taking advantage of high-performance 
zero-copy os.sendfile() available on most POSIX platforms.
A wrapper on top of os.sendfile() appears to be convenient because getting 
everything right is a bit tricky. Also we can avoid code duplication in case we 
want to add sendfile() support to ftplib (issue 13564) and httplib.

=== THE API ===

Attached is a draft patch proposing an API which:

- uses os.sendfile() whenever available and usable (a mmap-like file is 
required)
- if not falls back on using plain socket.sendall()
- returns a tuple of two elements which indicates whether sendfile() was used 
and an exception instance in case it wasn't on account of an internal error, if 
any 
- does not support non-blocking sockets (will raise ValueError)


=== ALTERNATE API === 

1) In case the transfer is interrupted halfway because of an error the user has 
no clue on how many bytes were sent (and file.tell() won't tell =)). As such it 
probably makes sense to provide a custom socket.SendfileError exception 
encapsulating the original exception and the bytes sent as arguments.

2) For the same reason the returned tuple should probably include the number of 
bytes transmitted.

=== WINDOWS SUPPORT ===

Further development may include Windows support by using TransmitFile 
(http://msdn.microsoft.com/en-us/library/windows/desktop/ms740565(v=vs.85).aspx).
 Once we agree on an API I might start looking into Windows code (which appears 
to be quite tricky btw).

Any feedback is very welcome.

--
components: Library (Lib)
files: socket-sendfile.patch
keywords: needs review, patch
messages: 185292
nosy: giampaolo.rodola
priority: normal
severity: normal
status: open
title: socket.sendfile()
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file29583/socket-sendfile.patch

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



[issue17552] socket.sendfile()

2013-03-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

A couple of comments:

- I don't understand the point of the second member in the tuple
- the timeout logic should be fixed so that the total operation time doesn't 
exceed the timeout, rather than each iteration (in other words, a deadline 
should be computed at the start and then the poll / select calls be issued in 
accordance with that deadline)
- non-blocking sockets could be supported by returning partial writes, and 
letting the caller pass an offset argument
- as a vocabulary nit, I don't really understand what mmap-like file means

--
nosy: +neologix, pitrou

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



[issue13564] ftplib and sendfile()

2013-03-26 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

I created issue 17552 in order to discuss about socket.sendfile() addition.

--
dependencies: +socket.sendfile()

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



[issue17552] socket.sendfile()

2013-03-26 Thread Charles-François Natali

Charles-François Natali added the comment:

- I don't understand the running out of FDs thing. select() is limited to FDs 
less than FD_SETSIZE, but I don't see how you could get EMFILE (select() will 
return a ValueError)

- is there any platform with sendfile() which doesn't support poll()?

- I still don't see the point of calling sendfile() with a block size. 
Everybody just uses st_size, and that's how it's supposed to be done.

--

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



[issue1442493] IDLE shell window gets very slow when displaying long lines

2013-03-26 Thread Terry J. Reedy

Terry J. Reedy added the comment:

print(10*'a') is still a problem in 3.3.

--
versions: +Python 3.3, Python 3.4 -Python 3.1

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



[issue17552] socket.sendfile()

2013-03-26 Thread Christian Heimes

Changes by Christian Heimes li...@cheimes.de:


--
nosy: +christian.heimes

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



[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-26 Thread Bernard Lang

Bernard Lang added the comment:

Reply to R.David.Murray

 See also issue 6095.

You are right. I goofed, this is the issue I meant to point to.

 $ ls ''
 ls: cannot access : No such file or directory
 So, the behavior is consistent with the shell.

This is a fair remark.
But still, giving a meaning to something that has none in the shell would not 
be an inconsistency either. There are lots of other differences in the Unix 
shell design, and strings are often used as a syntactic device. You do not have 
to quote file names or paths, unless they raise syntactic problems.

Now if you look at path manipulation commands in the shell, you have :

$ basename aaa
aaa
$ dirname aaa
.

This is a fair choice for the shell since an empty path would print as nothing. 
Furthermore, string manipulation is not as convenient with the shell as it is 
with Python. So the shell is altogether ignoring the empty path, and string 
manipulations (possibly using the empty string) to build a path representation 
are not part of the path system.

Python has already made a different choice.

In [4]: os.path.basename('aaa')
Out[4]: 'aaa'

In [5]: os.path.dirname('aaa')
Out[5]: ''

These are the two results of os.path.split('aaa'), which is somewhat the 
inverse of os.path.join(...) which I initially considered.

So os.path.dirname in Python does return the empty string '' where the shell 
dirname returns a dot. This could also be seen as an inconsistency between Unix 
shell and Python.

However, the Unix shell is internally consistent, while taking into account its 
own specific constraints.

It seems that it is more important for Python to similarly have its own 
internal consistency, especially when considering that Python is already 
departing from Unix shell in some minor ways, which are related to the internal 
consistency issue that was raised.

--

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



[issue17553] python setup.py bdist_rpm is broken

2013-03-26 Thread Sean Carolan

New submission from Sean Carolan:

I'm attempting to build a Python 2.7.3 RPM but the build command from the 
documentation fails.  My platform is RHEL 5.9, x86_64

http://docs.python.org/2/distutils/builtdist.html#creating-rpm-packages

Steps to reproduce:

1.  Download latest Python tarball to home directory.
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz

2.  Unpack it, configure and install it:
[scarolan@titania:~/Python-2.7.3]$ make clean; ./configure 
--with-zlib=/usr/include; make; sudo make install

3.  Attempt to run command in the documentation, build fails.

[scarolan@titania:~/Python-2.7.3]$ python -V
Python 2.7.3

[scarolan@titania:~/Python-2.7.3]$ python setup.py bdist_rpm
running bdist_rpm
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/rpm
creating build/bdist.linux-x86_64/rpm/SOURCES
creating build/bdist.linux-x86_64/rpm/SPECS
creating build/bdist.linux-x86_64/rpm/BUILD
creating build/bdist.linux-x86_64/rpm/RPMS
creating build/bdist.linux-x86_64/rpm/SRPMS
writing 'build/bdist.linux-x86_64/rpm/SPECS/Python.spec'
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default 
file list)

writing manifest file 'MANIFEST'
creating Python-2.7.3
creating Python-2.7.3/Lib
creating Python-2.7.3/Tools
creating Python-2.7.3/Tools/scripts
making hard links in Python-2.7.3...
hard linking README - Python-2.7.3
'_struct.c' not a regular file -- skipping
hard linking setup.py - Python-2.7.3
hard linking Lib/smtpd.py - Python-2.7.3/Lib
hard linking Tools/scripts/2to3 - Python-2.7.3/Tools/scripts
hard linking Tools/scripts/idle - Python-2.7.3/Tools/scripts
hard linking Tools/scripts/pydoc - Python-2.7.3/Tools/scripts
creating dist
Creating tar archive
removing 'Python-2.7.3' (and everything under it)
copying dist/Python-2.7.3.tar.gz - build/bdist.linux-x86_64/rpm/SOURCES
building RPMs
rpmbuild -ba --define _topdir 
/home/scarolan/Python-2.7.3/build/bdist.linux-x86_64/rpm --clean 
build/bdist.linux-x86_64/rpm/SPECS/Python.spec
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.64365
+ umask 022
+ cd /home/scarolan/Python-2.7.3/build/bdist.linux-x86_64/rpm/BUILD
+ cd /home/scarolan/Python-2.7.3/build/bdist.linux-x86_64/rpm/BUILD
+ rm -rf Python-2.7.3
+ /bin/gzip -dc 
/home/scarolan/Python-2.7.3/build/bdist.linux-x86_64/rpm/SOURCES/Python-2.7.3.tar.gz
+ tar -xvvf -
drwxrwxr-x scarolan/scarolan 0 2013-03-26 15:26:01 Python-2.7.3/
-rw-rw-r-- scarolan/scarolan 1524 2013-03-26 15:26:01 Python-2.7.3/PKG-INFO
-rw-r--r-- scarolan/scarolan 90350 2012-04-09 18:07:36 Python-2.7.3/setup.py
-rw-r--r-- scarolan/scarolan 53744 2012-04-09 18:07:35 Python-2.7.3/README
drwxrwxr-x scarolan/scarolan 0 2013-03-26 15:26:01 Python-2.7.3/Tools/
drwxrwxr-x scarolan/scarolan 0 2013-03-26 15:26:01 
Python-2.7.3/Tools/scripts/
-rwxr-xr-x scarolan/scarolan79 2012-04-09 18:07:35 
Python-2.7.3/Tools/scripts/pydoc
-rwxr-xr-x scarolan/scarolan95 2012-04-09 18:07:35 
Python-2.7.3/Tools/scripts/idle
-rwxr-xr-x scarolan/scarolan96 2012-04-09 18:07:35 
Python-2.7.3/Tools/scripts/2to3
drwxrwxr-x scarolan/scarolan 0 2013-03-26 15:26:01 Python-2.7.3/Lib/
-rwxr-xr-x scarolan/scarolan 18543 2012-04-09 18:07:31 Python-2.7.3/Lib/smtpd.py
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd Python-2.7.3
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
++ /usr/bin/id -u
+ '[' 500 = 0 ']'
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.64365
+ umask 022
+ cd /home/scarolan/Python-2.7.3/build/bdist.linux-x86_64/rpm/BUILD
+ cd Python-2.7.3
+ env 'CFLAGS=-O2 -g -m64 -mtune=generic' python setup.py build
running build
running build_ext
error: pyconfig.h: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.64365 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.64365 (%build)
error: command 'rpmbuild' failed with exit status 1


If I hard-code the location of pyconfig.h into setup.py, it still fails:

data = open('/home/scarolan/Python-2.7.3/pyconfig.h').read()

[scarolan@titania:~/Python-2.7.3]$ python setup.py bdist_rpm
running bdist_rpm
writing 'build/bdist.linux-x86_64/rpm/SPECS/Python.spec'
running sdist
running check
warning: sdist: manifest template 'MANIFEST.in' does not exist (using default 
file list)

writing manifest file 'MANIFEST'
creating Python-2.7.3
creating Python-2.7.3/Lib
creating Python-2.7.3/Tools
creating Python-2.7.3/Tools/scripts
making hard links in Python-2.7.3...
hard linking README - Python-2.7.3
'_struct.c' not a regular file -- skipping
hard linking setup.py - Python-2.7.3
hard linking Lib/smtpd.py - Python-2.7.3/Lib
hard linking Tools/scripts/2to3 - Python-2.7.3/Tools/scripts
hard linking Tools/scripts/idle - Python-2.7.3/Tools/scripts
hard linking Tools/scripts/pydoc - Python-2.7.3/Tools/scripts
Creating tar archive
removing 'Python-2.7.3' (and everything under it)
copying dist/Python-2.7.3.tar.gz - build/bdist.linux-x86_64/rpm/SOURCES
building RPMs
rpmbuild -ba --define _topdir 

[issue17545] os.listdir and os.path.join inconsistent on empty path

2013-03-26 Thread R. David Murray

R. David Murray added the comment:

I'm inclined to agree with you.  I believe '' represents the current directory 
in sys.path, for example.  It ought to be easy to add this since issue 6095 is 
already fixed.

--
versions: +Python 3.4 -Python 2.7

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



[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Michele Orrù

Michele Orrù added the comment:

.. sorry for all these trivialities.

--
Added file: http://bugs.python.org/file29584/issue16692.3.patch

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



[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thanks. I don't know what happened, but the last patch fails to apply:

$ patch -p1  issue16692.3.patch 
patching file Doc/library/ssl.rst
patching file Doc/whatsnew/3.4.rst
patching file Lib/ssl.py
patching file Lib/test/test_ssl.py
patching file Misc/NEWS
Hunk #1 succeeded at 1005 (offset 46 lines).
patching file Modules/_ssl.c
patch:  malformed patch at line 291:  struct py_ssl_error_code {


$ hg import --no-commit issue16692.3.patch 
application de issue16692.3.patch
abandon : bad hunk #2 @@ -73,7 +78,13 @@
 (7 7 15 13)

--

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



[issue17554] Compact output for regrtest

2013-03-26 Thread Ezio Melotti

New submission from Ezio Melotti:

The attached patch is a proof of concept that changes the output of regrtest so 
that the [xxx/yyy] test_zz is updated in place instead of printing each 
test on a separate line.  Failures, skips, and the final report are printed 
normally, making it easier to find what failed without having to scroll for 
400+ lines of output.
The patch works with and without -j, but I haven't tested it with other flags.

If people like the idea, this could be the default behavior, otherwise a new 
flag to enable the feature could be added (or it could be enabled with the 
already existing -q/--quiet).

Also attached a sample output of a full test run.

--
components: Tests
files: regr.diff
keywords: patch
messages: 185302
nosy: brett.cannon, chris.jerdonek, ezio.melotti, haypo, pitrou, r.david.murray
priority: normal
severity: normal
stage: needs patch
status: open
title: Compact output for regrtest
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file29585/regr.diff

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



[issue17554] Compact output for regrtest

2013-03-26 Thread Ezio Melotti

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


Added file: http://bugs.python.org/file29586/regroutput.txt

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



[issue17552] socket.sendfile()

2013-03-26 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

 I don't understand the point of the second member in the tuple

The 'exception' member can be useful to know the reason why sendfile() failed 
and send() was used as fallback.


 the timeout logic should be fixed so that the total operation
 time doesn't exceed the timeout, rather than each iteration

Do you mean that if the user sets a timeout=2 and the whole transfer takes 
longer than that you expect a timeout exception?
That's pretty unusual (e.g. ftplib does not behave like that).


 non-blocking sockets could be supported by returning partial writes,
 and letting the caller pass an offset argument

I see little value in supporting non-blocking sockets because someone willing 
to do that usually wants to use sendfile() directly (no wrappers involved) as 
they are forced to handle errors and take count of transmitted bytes in their 
own code anyway.
Here's an example of how sendfile is supposed to be used with non-blocking 
sockets:
https://code.google.com/p/pyftpdlib/source/browse/tags/release-0.7.0/pyftpdlib/ftpserver.py#1035
An extra layer such as the one proposed in my patch is completely useless and 
also slow considering the amount of instructions before the actual sendfile() 
call.
It is however a good idea to provide an 'offset' argument.


 as a vocabulary nit, I don't really understand what mmap-like file means

Will turn that into regular files.


 I don't see how you could get EMFILE (select() will return a ValueError)

Right. Will fix that.

 is there any platform with sendfile() which doesn't support poll()?

No idea. I made a quick tour on snakebite and apparently all of the provided 
platforms have poll(). 


 I still don't see the point of calling sendfile() with a block size

I will make some actual benchmarks and fix that later if makes sense.
Assuming providing a high blocksize (say 1MB) makes no difference in terms of 
CPU usage it's better to keep that for consistency with sendall() in case we 
fallback on using it.

--

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



[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Michele Orrù

Changes by Michele Orrù maker...@gmail.com:


Added file: http://bugs.python.org/file29587/issue16692.4.patch

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



[issue17272] request.full_url: unexpected results on assignment

2013-03-26 Thread Demian Brecht

Demian Brecht added the comment:

Based on your and Andrew's comment in issue #16464 (new behaviour so it should 
only apply to 3.4), I agree that this should be a 3.4-only change.

--

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



[issue17554] Compact output for regrtest

2013-03-26 Thread R. David Murray

R. David Murray added the comment:

I would like both the normal (non-overwritten) progress list and the summary at 
the end :)

I would not like the overwriting mode to be the default, but otherwise it looks 
good.

--

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



[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, yet another issue :-) Testing on a machine with OpenSSL 1.0.0 gives the 
following failures. I think you mixed up skipIf / skipUnless.

==
ERROR: test_protocol_sslv2 (test.test_ssl.ThreadedTests)
Connecting to an SSLv2 server with various client options
--
Traceback (most recent call last):
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 87, in f
return func(*args, **kwargs)
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1493, in 
test_protocol_sslv2
try_protocol_combo(ssl.PROTOCOL_SSLv2, ssl.PROTOCOL_SSLv23, True)
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1363, in 
try_protocol_combo
chatty=False, connectionchatty=False)
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1301, in 
server_params_test
s.connect((HOST, server.port))
  File /home/antoine/cpython/default/Lib/ssl.py, line 582, in connect
self._real_connect(addr, False)
  File /home/antoine/cpython/default/Lib/ssl.py, line 572, in _real_connect
self.do_handshake()
  File /home/antoine/cpython/default/Lib/ssl.py, line 552, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer

==
ERROR: test_protocol_tlsv1_1 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1.1 server with various client options.
--
Traceback (most recent call last):
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 87, in f
return func(*args, **kwargs)
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1582, in 
test_protocol_tlsv1_1
try_protocol_combo(ssl.PROTOCOL_TLSv1_1, ssl.PROTOCOL_TLSv1_1, True)
AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_1'

==
ERROR: test_protocol_tlsv1_2 (test.test_ssl.ThreadedTests)
Connecting to a TLSv1.2 server with various client options.
--
Traceback (most recent call last):
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 87, in f
return func(*args, **kwargs)
  File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1602, in 
test_protocol_tlsv1_2
try_protocol_combo(ssl.PROTOCOL_TLSv1_2, ssl.PROTOCOL_TLSv1_2, True,
AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_2'

--

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



[issue17554] Compact output for regrtest

2013-03-26 Thread R. David Murray

R. David Murray added the comment:

Oh, by 'looks good' I was referring to the output, not the patch, which I 
haven't looked at yet.

--

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



[issue16692] Support TLS 1.1 and TLS 1.2

2013-03-26 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Here is an updated patch fixing the aforementioned issue (as well as another 
small issue with the set_ciphers(ALL) hack).

--
Added file: http://bugs.python.org/file29588/tls12.patch

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



[issue17272] request.full_url: unexpected results on assignment

2013-03-26 Thread Demian Brecht

Demian Brecht added the comment:

Patch updated (acks update, fixed order) per Terry's instructions on 
core-mentorship.

--
Added file: http://bugs.python.org/file29589/request_17272.1.patch

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



[issue7559] TestLoader.loadTestsFromName swallows import errors

2013-03-26 Thread Domen Kožar

Domen Kožar added the comment:

What can I do to put this forward? It's still an issue in py2.7

--
nosy: +iElectric

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



[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke

andrew cooke added the comment:

what is rietveld?

and why is this marked as easy?  it seems like it involves issues that aren't 
described well in the spec - it requires some kind of canonical way to describe 
urls with (and without) parameters to solve completely.

--
nosy: +acooke

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



[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread Ezio Melotti

Ezio Melotti added the comment:

Rietveld is the review tool.  You can access it by clicking on the review 
link at the right of the patch.  You should have received an email as well when 
I made the review.

--

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



[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread andrew cooke

andrew cooke added the comment:

thanks (only subscribed to this now, so no previous email).

my guess is that google are assuming a dumb regexp so

   http://example.com/foo?

in a rule does not match

   http://example.com/foo

and also i realised that http://google.com/robots.txt doesn't contain any url 
with multiple parameters.  so perhaps i was wrong about needing a canonical 
representation (ie parameter ordering).

--

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



[issue17403] Robotparser fails to parse some robots.txt

2013-03-26 Thread R. David Murray

R. David Murray added the comment:

Well, the code is easy.  Figuring out what the code is supposed to do turns out 
to be hard, but we didn't know that when we marked it as easy :)  

I want to do more research before OKing a fix for this.  (There is clearly a 
bug, I'm just not certain what the correct fix is.)

--
nosy: +r.david.murray

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



[issue17555] Creating new processes after importing multiprocessing.managers consumes more and more memory

2013-03-26 Thread Marc Brünink

New submission from Marc Brünink:

Importing multiprocessing.managers and creating new processes recursively is 
not a good idea. You will run out of memory very fast.  On my
machine with 8GB it only takes about 20 forks until I start swapping.

--
components: Library (Lib)
files: test_fork_02.py
messages: 185315
nosy: Marc.Brünink
priority: normal
severity: normal
status: open
title: Creating new processes after importing multiprocessing.managers consumes 
more and more memory
type: resource usage
versions: Python 2.7, Python 3.2
Added file: http://bugs.python.org/file29590/test_fork_02.py

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