[issue25322] contextlib.suppress not tested for nested usage

2015-10-07 Thread Nan Wu

Nan Wu added the comment:

Added a patch with Martina's idea. Isn't ignored better set as false instead ? 
Since interpreter did not ignore it.

--
keywords: +patch
nosy: +Nan Wu
Added file: http://bugs.python.org/file40713/fix_reentrant_cm_test.patch

___
Python tracker 

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



[issue25311] Add f-string support to tokenize.py

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

Thanks for the patch. Do you want to try adding a test case. See 
TokenizeTest.test_string() at /Lib/test/test_tokenize.py:189 for a guide, 
though I would suggest a new test_fstring() method.

Also, F-strings can be combined with the raw string syntax. I wonder if you 
need to add support for things like rf". . ." and FR'''. . .'''.

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

See , which is why I thought the 
problem should be fixed in 3.2. Specifically, that commit went into v3.2a3.

If you can demonstrate the problem exists in 3.4 or newer, you might be able to 
get more people interested in fixing it. (Not me however; I don’t have Windows.)

--

___
Python tracker 

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



[issue16099] robotparser doesn't support request rate and crawl delay parameters

2015-10-07 Thread Nikolay Bogoychev

Nikolay Bogoychev added the comment:

Hey,

Friendly reminder that there has been no activity on this issue for more than 
an year.

Cheers,

Nick

--

___
Python tracker 

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



[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2

2015-10-07 Thread Zachary Ware

Zachary Ware added the comment:

Python 3.1 is long since dead, and 3.1.2 isn't even the latest 3.1.  Is there a 
particular reason why you're using it?  I highly recommend upgrading to a newer 
Python, either 3.4.3 or 3.5.0.  3.5.0 if you're on anything newer than Windows 
XP, 3.4.3 if you're on XP or Server 2003.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue7352] pythonx.y-config --ldflags out of /usr and missing -L

2015-10-07 Thread Maxim Egorushkin

Maxim Egorushkin added the comment:

I encountered this issue when compiling gdb against my own build of Python 2.7 
in a non-standard location. gdb could not locate libpython2.7.so.

The solution is to configure Python with LINKFORSHARED variable which contains 
additional linker flags required to link against libpython2.7.so. Here are the 
relevant bits (in Makefile syntax):

prefix := /opt/toolchain
python_version := 2.7.10
PREFIX := ${prefix}/python-${python_version}
CPPFLAGS := -fmessage-length=0
LINKFORSHARED := -L${PREFIX}/lib64 -Wl,-rpath=${PREFIX}/lib64

./configure --prefix=${PREFIX} --libdir=${PREFIX}/lib64 --enable-shared 
--enable-unicode=ucs4 CPPFLAGS="${cppflags}" LDFLAGS="${LDFLAGS}" 
LINKFORSHARED="${LINKFORSHARED}"

After Python is built and installed verify the flags:

$ /opt/toolchain/python-2.7.10/bin/python-config --ldflags
-lpython2.7 -lpthread -ldl -lutil -lm 
-L/opt/toolchain/python-2.7.10/lib64 
-Wl,-rpath=/opt/toolchain/python-2.7.10/lib64

--
nosy: +max0x7ba

___
Python tracker 

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



[issue22865] Document how to make pty.spawn not copy data

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

I would avoid suggesting one can return non-byte-strings; treat that as an 
implementation detail. Maybe something like:

The functions *master_read* and *stdin_read* are passed a file descriptor which 
they should read from, and should return a byte string. The defaults try to 
read 1024 bytes each time they are called. Returning an empty string is be 
interpreted as an EOF condition, and the *_read* function will no longer be 
called.

--

___
Python tracker 

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



[issue14611] inspect.getargs fails on some anonymous tuples

2015-10-07 Thread Scott Sanderson

Scott Sanderson added the comment:

Note also that a much simpler repro for this issue is:

inspect.getargs(((x for _ in [0]) for x in [0]).gi_code)

This triggers the same issue because the inner generator expression closes over 
the loop variable of the outer expression, which causes us to hit the 
STORE_DEREF case instead of the STORE_FAST case.

--

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Tim Graham

Tim Graham added the comment:

Yes, when I have some time.

By the way, did you intentionally remove all the "Python 3.X" versions on the 
issue?

--

___
Python tracker 

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



[issue25337] weakref.finalize documentation refers to old interpreter shutdown behavior

2015-10-07 Thread Josh Rosenberg

New submission from Josh Rosenberg:

In weakref.finalize's documentation ( 
https://docs.python.org/3/library/weakref.html#weakref.finalize ), it says:

"A finalizer will never invoke its callback during the later part of the 
interpreter shutdown when module globals are liable to have been replaced by 
None."

While it may not invoke its callback during shutdown (I don't know if it does, 
or if it should), as of Python 3.4 (which is when weakref.finalize was 
introduced), module globals aren't set to None anymore, right? 
https://docs.python.org/3/whatsnew/3.4.html#whatsnew-pep-442

Presumably the docs should be updated not to mention a behavior that no longer 
occurs (and if it will or should be invoked, weakref.finalizer should have 
documentation or code updated).

--
assignee: docs@python
components: Documentation
messages: 252504
nosy: docs@python, josh.r
priority: normal
severity: normal
status: open
title: weakref.finalize documentation refers to old interpreter shutdown 
behavior
versions: Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25336] Segmentation fault on Mavericks consistent crashing of software: Please HELP!!!!!

2015-10-07 Thread Ned Deily

Ned Deily added the comment:

Without more information or a reproducible test case, it is very difficult to 
say what's going on.  But, from some of the file paths in the crash report, I'm 
guessing you are using a third-party package called OOF2 with a 
MacPorts-installed Python 2.7 and oof2 seems to have some extensions modules 
calling external libraries, like liboof2common.dylib.  There's very little to 
go on but it seems very unlikely that the crash is being caused by a bug in the 
Python interpreter or the Python standard library.  It might be due to 
something your program is doing or it might be some problem with the apparently 
complex mix of third-party libraries and Python.  You *might* have more success 
asking on an OOF mailing list or a MacPorts list but even so I would guess 
that, without a simple reproducible test case that you can share, it may be 
tough to get help.  You also might try running under a debugger like lldb.  
Please re-open this issue if you are able to isolate the problem to the Python 
inte
 rpreter or Python standard library.  Good luck!

--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue25045] smtplib throws exception TypeError: readline()

2015-10-07 Thread Peter Donis

Peter Donis added the comment:

Investigating further, the problem appears to be with the SSLFakeFile object 
used for SSL/TLS connections. Here is a console session showing the issue (I 
have redacted the host name and port number used for privacy reasons):

>>> import smtplib
>>> smtp = smtplib.SMTP(hostname, portnum)
>>> smtp.file
<_io.BufferedReader name=3>
>>> smtp.starttls()
(220, b'2.0.0 Ready to start TLS')
>>> smtp.file

>>> smtp.file.readline(1)
Traceback (most recent call last):
  File "", line 1, in 
TypeError: readline() takes exactly 1 positional argument (2 given)

--

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

Instead of the while loop, can’t you use something like str.find(";", i)?

--
stage: needs patch -> patch review

___
Python tracker 

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



[issue25045] smtplib throws exception TypeError: readline()

2015-10-07 Thread Peter Donis

Peter Donis added the comment:

I am having the same problem; the error occurs in the call to the login method 
of the smtplib.SMTP object. That method takes two arguments, username and 
password, and that is what I am calling it with.

--
nosy: +pdonis

___
Python tracker 

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



[issue25298] Add lock and rlock weakref tests

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

This looks reasonable, though I don't see a need to backport it.

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue25045] smtplib throws exception TypeError: readline()

2015-10-07 Thread R. David Murray

R. David Murray added the comment:

Thanks for figuring out the cause and that it has already been fixed.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue25315] Make it clear in the collections Python source code that OrderedDict may be overridden

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

FWIW, the decision to use __ to make the implementation more private was done 
at Guido's recommendation.

--

___
Python tracker 

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



[issue25315] Make it clear in the collections Python source code that OrderedDict may be overridden

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

In general, the __attributes and _attributes are already considered to be 
private, so I don't see the point.  Aside from this one user that is never been 
necessary and he already knows that it doesn't work. 

Re-reading the thread, the issue isn't that he doesn't like the design choice, 
not that he didn't understand it.

The collections module isn't the only place the implementation has been made 
private (see fractions.py) for example.   Maybe a general note in the docs 
about private APIs or a FAQ entry would be appropriate, but there isn't 
anything specific to OrderedDicts (especially now that there is a C 
implementation, it should go without saying).

--

___
Python tracker 

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



[issue25315] Make it clear in the collections Python source code that OrderedDict may be overridden

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

One other thought:  The purpose of the source links is to help people learn.  
It in no way every implies that someone should hack private implementation 
details.   We have a number of modules that have both a pure python 
implementation and a replacement with a C accelerator (heapq, counter, bisect, 
decimal, etc) they are all done in the same way as the OrderedDict.

I believe this report should be re-closed as the OP has consistently adopted 
unreasonable positions as has been unwilling to accept the responses from the 
devs volunteering their time to explain the basics of private, non-guaranteed 
implementation details.

--

___
Python tracker 

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



[issue25045] smtplib throws exception TypeError: readline()

2015-10-07 Thread Peter Donis

Peter Donis added the comment:

It looks like this was fixed some time in between my Python 3.2 version (3.2.3) 
and the current one (3.2.6); the code in the current 3.2 head in the repository 
has a size parameter in the readline function for SSLFakeFile:

https://hg.python.org/cpython/file/3.2/Lib/smtplib.py

--

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Pathangi Jatinshravan

Pathangi Jatinshravan added the comment:

Hi Tim, I have submitted a patch (patch_with_test.diff). Can you take a look at 
this?

--

___
Python tracker 

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



[issue25338] urllib fail to check host whether it should be bypassed

2015-10-07 Thread Jung-chih Wei

Jung-chih Wei added the comment:

patch for default branch

--
keywords: +patch
Added file: http://bugs.python.org/file40714/cpython_98592.patch

___
Python tracker 

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



[issue25338] urllib fail to check host whether it should be bypassed

2015-10-07 Thread Jung-chih Wei

New submission from Jung-chih Wei:

Windows could append a empty host in ProxyOverride list.
Then, proxy_bypass_registry() will return true for any host.

--
components: Windows
messages: 252510
nosy: Jung-chih Wei, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: urllib fail to check host whether it should be bypassed
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25315] Make it clear in the collections Python source code that OrderedDict may be overridden

2015-10-07 Thread R. David Murray

R. David Murray added the comment:

What I'm suggesting it would be worth adding to the source code is a simple 
comment before the class definition for OrderedDict that says "This Python code 
may be overridden by an accelerated version of this class."  The idea being to 
prevent confusion if someone is exploring the source code for learning purposes 
but discovers it doesn't match what python actually does.

If you read all the way through the class and realize that the import after it 
does the override, you don't need the comment...but a learner exploring the 
source code is exactly the kind of person who might miss that, either by doing 
experiments before reading through the whole class or missing the implication 
of the import.

--

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Pathangi Jatinshravan

Pathangi Jatinshravan added the comment:

Oh not intentional. Must have clicked something by mistake

--
versions: +Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue14611] inspect.getargs fails on some anonymous tuples

2015-10-07 Thread Scott Sanderson

Scott Sanderson added the comment:

This issue is the root cause of at least two open issues in IPython:

https://github.com/ipython/ipython/issues/8293
https://github.com/ipython/ipython/issues/8205

Testing locally, the patch supplied here fixes both of those issues.  Is there 
still work that needs to be done here?

--
nosy: +Scott Sanderson

___
Python tracker 

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



[issue25315] Make it clear in the collections Python source code that OrderedDict may be overridden

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

> What I'm suggesting it would be worth adding to the source code is
> a simple comment before the class definition for OrderedDict that
> says  "This Python code may be overridden by an accelerated 
> version of this class." 

Sorry, I disagree.  We've never had to do that for any of the C accelerator 
code in Python's history.  Also, we already have a comment at the point the 
import is done (and that didn't seem to matter to the OP who is just mad about 
the design choice itself).  The comment is in the same place as it is in 
heapq.py for example.  If you want to add a general FAQ entry, that would be 
fine.  Also, keep in mind that that the code is tested in our test suite, and 
it is active in other versions of Python (it is not useless as the OP suggests).

--

___
Python tracker 

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



[issue25300] Enable Intel MPX (Memory protection Extensions) feature

2015-10-07 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Is there a runtime cost or does the hardware run the bounds checks in parallel 
with memory accesses?   Are the bounds set when malloc() is called or 
elsewhere?  I read the provided links but can't say I fully understand how it 
works exactly (which memory blocks are protected, where the bounds get set, 
when the registers are loaded, etc).

Also, I'm curious about whether we have direct controls over the bounds.  For 
example, in a listobject.c or _collections.c object could the bounds be 
tightened to only include the active data and excluded the unused part of the 
overallocation?

--
nosy: +rhettinger

___
Python tracker 

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



[issue16802] fileno argument to socket.socket() undocumented

2015-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f4606117d571 by Berker Peksag in branch '3.4':
Issue #16802: Document fileno parameter of socket.socket()
https://hg.python.org/cpython/rev/f4606117d571

New changeset 1d14675c6050 by Berker Peksag in branch '3.5':
Issue #16802: Document fileno parameter of socket.socket()
https://hg.python.org/cpython/rev/1d14675c6050

New changeset 9115c63cf3d2 by Berker Peksag in branch 'default':
Issue #16802: Document fileno parameter of socket.socket()
https://hg.python.org/cpython/rev/9115c63cf3d2

--
nosy: +python-dev

___
Python tracker 

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



[issue16802] fileno argument to socket.socket() undocumented

2015-10-07 Thread Berker Peksag

Berker Peksag added the comment:

Thanks!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
versions: +Python 3.6

___
Python tracker 

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



[issue25338] urllib fail to check host whether it should be bypassed

2015-10-07 Thread Jung-chih Wei

Jung-chih Wei added the comment:

patch for 2.7 branch

--
Added file: http://bugs.python.org/file40715/cpython_98593.patch

___
Python tracker 

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



[issue23749] asyncio missing wrap_socket (starttls)

2015-10-07 Thread Elizabeth Myers

Elizabeth Myers added the comment:

> Therefore, the most convenient place to add the new API are *transports*.

I had an inkling this was the case, but I didn't know how to go about the 
creation of a new protocol and transport pair.

> I'm hesitant to add this API to Transport; it somehow feels wrong to put such 
> an implementation-specific thing there. E.g. I presume you can't do this for 
> an UDP transport.

DTLS (basically TLS over any datagram-oriented protocol, including UDP, SCTP, 
etc.) exists, so this makes sense, although I don't know if asyncio supports 
it, but the only major protocol I can think of that uses DTLS is WebRTC.

In any case, it could potentially make sense for other transport types, if not 
now, then in the future.

--
nosy: +Elizacat

___
Python tracker 

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



[issue25286] views are not sequences

2015-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 04815b55227f by Martin Panter in branch '2.7':
Issue #25286: Accidentally dropped "the"
https://hg.python.org/cpython/rev/04815b55227f

--

___
Python tracker 

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



[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2

2015-10-07 Thread raghu prasad

New submission from raghu prasad:

On one machine we are facing this issue 

[Errno 10035] A non-blocking socket operation could not be completed immediately

We are using urllib.request.urlopen with some timeout value

sample code 

getRequest = urllib.request.Request(getUrl)
   getRequest.add_header("SessionID", sessID)
   if (compName != None):
   getRequest.add_header("ServerContent",compName)
   getRequest.add_header("Content-
   getReqResp = urllib.request.urlopen(getRequest, xmlContent , 
TIME_OUT)

every time we do urlopen for get and post operations we are receiving this 
10035 error 

i have searched a lot over the web for any work arounds 

i found one place where the issue got fixed in python 2.7 
https://hg.python.org/cpython/rev/8ec39bfd1f01

i have checked the changes , but the same chages are not visible in the python 
3.1.2

so is it a bug or is there any workaround

we are having an issue based in this in our project

so any input / resolution will be greatly helpful

--
components: Windows
messages: 252463
nosy: paul.moore, raghu prasad, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: [Errno 10035] A non-blocking socket operation could not be completed 
immediately  on python 3.1.2
type: behavior
versions: Python 3.2

___
Python tracker 

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



[issue25286] views are not sequences

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

Will commit this patch, except for the :dfn:`view` part. That isn’t a 
hyperlink, it just emphasizes the term.

--
assignee: docs@python -> martin.panter
nosy: +berker.peksag
stage: patch review -> commit review

___
Python tracker 

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



[issue5380] pty.read raises IOError when slave pty device is closed

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

I don’t think it is right to assume pseudo-terminals behave exactly like pipes. 
I suspect the behaviour when the slave is closed is undefined, or at best 
platform-specific, and there is no bug to fix in Python.

Also, it looks like array.fromfile() assumes any short read implies EOF, so the 
unbuffered workaround may not work in all cases. The documentation is vague on 
what it accepts, but I suspect it only works properly with a binary “buffered” 
file in general.

--
nosy: +martin.panter

___
Python tracker 

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2015-10-07 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

This is supposed to be a new feature hence the patch should be targeted against 
Python 3.6, definitively not 2.7.

--
versions: +Python 3.6 -Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue25332] [Errno 10035] A non-blocking socket operation could not be completed immediately on python 3.1.2

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

According to Issue 9090, this was already fixed in 3.2 and 2.7. I think the 3.1 
branch is closed. Are you seeing the same problem in newer version of Python, 
or just 3.1.2? If only 3.1.2, I think you may be on your own.

--
nosy: +martin.panter

___
Python tracker 

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



[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-07 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. See also minor note on Rietveld.

I think it is worth to extract all input() tests to separate class.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25286] views are not sequences

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

Thanks Akira

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed
versions: +Python 2.7

___
Python tracker 

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



[issue25315] OrderedDict mangled private attribute is inaccessible

2015-10-07 Thread Serge Matveenko

Serge Matveenko added the comment:

Sorry for reopening. I completely agree with the point that is it not necessary 
for Python and C implementations to duplicate each other.

But then the Python OrderedDict implementation should be dropped from the 
library source. The code that is there now is nothing more than confusing. For 
some one not aware of C implementation it is very hard to get from 
documentation that the code she sees via "Go to definition" feature of her IDE 
is not meant to be executing at all.

--
resolution: not a bug -> 
status: closed -> open

___
Python tracker 

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



[issue25286] views are not sequences

2015-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 92429e01f444 by Martin Panter in branch '3.4':
Issue #25286: Dictionary views are not sequences
https://hg.python.org/cpython/rev/92429e01f444

New changeset c29f1114ef65 by Martin Panter in branch '3.5':
Issue #25286: Merge dictionary view glossary from 3.4 into 3.5
https://hg.python.org/cpython/rev/c29f1114ef65

New changeset d43c33f032a2 by Martin Panter in branch '3.5':
Issue #25286: Update dictionary view link; patch by Akira Li
https://hg.python.org/cpython/rev/d43c33f032a2

New changeset 7067420c3e72 by Martin Panter in branch 'default':
Issue #25286: Merge dictionary view glossary from 3.5
https://hg.python.org/cpython/rev/7067420c3e72

--
nosy: +python-dev

___
Python tracker 

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



[issue25286] views are not sequences

2015-10-07 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 41e1f2500047 by Martin Panter in branch '2.7':
Issue #25286: Dictionary views are not sequences
https://hg.python.org/cpython/rev/41e1f2500047

--

___
Python tracker 

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



[issue24402] input() uses sys.__stdout__ instead of sys.stdout for prompt

2015-10-07 Thread Martin Panter

Martin Panter added the comment:

This patch includes a test case using pty.fork() to ensure stdin is a terminal, 
so the bug would be triggered. It is a bit tricky, but hopefully works on Unix 
platforms. I have only tested it on Linux.

--
Added file: http://bugs.python.org/file40707/input-terminal.patch

___
Python tracker 

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



[issue25331] https://docs.python.org/3.5/using/windows.html should list whcih windows service packs are

2015-10-07 Thread Laura Creighton

New submission from Laura Creighton:

https://docs.python.org/3.5/using/windows.html should list which
windows service packs are needed to install Python.  Could somebody 
knowledgable please add this information.

--
assignee: docs@python
components: Documentation, Windows
messages: 252460
nosy: docs@python, lac, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: https://docs.python.org/3.5/using/windows.html should list whcih windows 
service packs are

___
Python tracker 

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



[issue19500] Error when connecting to FTPS servers not supporting SSL session resuming

2015-10-07 Thread Alex Warhawk

Alex Warhawk added the comment:

Based on the proof-of-concept patch I submitted a few days ago I have built a 
more sophisticated patch. Please review it and let me know about necessary 
changes.

--
Added file: http://bugs.python.org/file40708/implement_ssl_session_reuse.patch

___
Python tracker 

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



[issue25334] telnetlib: process_rawq() and binary data

2015-10-07 Thread Michael Walle

New submission from Michael Walle:

The process_rawq() discards '\x00' and '\x11' bytes.

At least the '\x00' byte is specified by the standard as a No-Op. So this is 
standard conform according to RFC 854. But there is also the binary 
transmission mode for telnet (RFC 856). If I want to support this mode I have 
to receive these all bytes (just IACs are handled special) and I don't see a 
possibility to achieve this other that overwriting the process_rawq() method, 
which essentially means copying it and remove/replace the "if c == theNULL" etc 
checks. IMHO this is bad, because i copy a 64 lines method, just to modify two 
lines :(

I'd propose to move these checks to a new method, which then can be 
overwritten. See attached file for example.

--
components: Library (Lib)
files: telnetlib.diff
keywords: patch
messages: 252472
nosy: mwalle
priority: normal
severity: normal
status: open
title: telnetlib: process_rawq() and binary data
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40710/telnetlib.diff

___
Python tracker 

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



[issue25315] OrderedDict mangled private attribute is inaccessible

2015-10-07 Thread Emanuel Barry

Emanuel Barry added the comment:

The Python implementation will stay for two main reasons, one to provide a 
working implementation for all those who wish to use a modified version (you, 
for example, if you want to use a version that lets you alter order), and two 
for alternate implementations which don't have OrderedDict in the _collections 
module (a comment even hints at that in the source).

I fully agree on the confusing part, however. Maybe a comment could be added 
regarding this.

--

___
Python tracker 

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



[issue25333] .1 + .2 == .3 should be True

2015-10-07 Thread Rodrigo Souto

New submission from Rodrigo Souto:

print(.1 + .2 == .3)  should be True like the others

>>> print(.1 + .2 == .3)
False
>>> print(.1 + .3 == .4)
True
>>> print(.1 + .4 == .5)
True
>>> print(.1 + .1 == .2)
True

--
messages: 252470
nosy: Rodrigo Souto
priority: normal
severity: normal
status: open
title: .1 + .2 == .3 should be True
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue25333] .1 + .2 == .3 should be True

2015-10-07 Thread Eric V. Smith

Eric V. Smith added the comment:

This is not a bug. See: https://docs.python.org/3.5/tutorial/floatingpoint.html

--
nosy: +eric.smith
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue25228] Regression in cookie parsing with brackets and quotes

2015-10-07 Thread Pathangi Jatinshravan

Pathangi Jatinshravan added the comment:

Is this what you wanted?

--
Added file: http://bugs.python.org/file40709/patch_with_test.diff

___
Python tracker 

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



[issue25330] Docs for pkgutil.get_data inconsistent with semantics

2015-10-07 Thread Brett Cannon

Brett Cannon added the comment:

Changing this to be a single issue about the difference between the docs and 
the semantics of pkgutil.

The feature request can be made into a separate issue, but there are plans to 
replace the API with a more stringently defined one in importlib.

--
nosy: +brett.cannon
title: Two issues with pkgutil.get_data -> Docs for pkgutil.get_data 
inconsistent with semantics

___
Python tracker 

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



[issue25335] ast.literal_eval fails to parse numbers with leading "+"

2015-10-07 Thread Mark Dickinson

Mark Dickinson added the comment:

Digging into the history, it looks as though changeset 884c71cd8dc6 is 
responsible for the difference between Python 2 and Python 3.

More background: in Python 2, there was the oddity that an expression like 
`-34` is parsed as a single AST node: in a sense.  In Python 3, it's parsed as 
an unary minus applied to a literal.  (So in a sense, Python 2 sorta kinda has 
negative literals, but Python 3 doesn't.) So the old `ast.literal_eval` stopped 
working for those negative literals in Python 3.  It looks as though Raymond 
fixed that regression and added support for unary plus at the same time.

I'd agree that this isn't a bug in Python 2.7.

--
nosy: +mark.dickinson

___
Python tracker 

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



[issue18595] zipfile: symlinks etc.

2015-10-07 Thread Xavier Combelle

Xavier Combelle added the comment:

about the readlink functionnality, I would like to point that it might lead to 
security issues see for example 
https://security.stackexchange.com/questions/73718/how-zip-symlink-works

At least, the standard read should not do it by default.

--
nosy: +xcombelle

___
Python tracker 

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



[issue25311] Add f-string support to tokenize.py

2015-10-07 Thread Nan Wu

Nan Wu added the comment:

Added 'f'/'F' to the StringPrefix regex and also update the quote dictionary.

--
keywords: +patch
nosy: +Nan Wu
Added file: http://bugs.python.org/file40712/tokenize.patch

___
Python tracker 

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