[issue8519] doc: termios and ioctl reference links

2015-07-04 Thread Angad Singh

Angad Singh added the comment:

Created a patch for this. Added POSIX links for fcntl, ioctl and termios. Let 
me know if I am missing anything.

--
nosy: +angad
Added file: 
http://bugs.python.org/file39857/posix_specification_links_fcntl_ioctl_termios.patch

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



[issue24548] Broken link in the unittest documentation

2015-07-04 Thread Angad Singh

Angad Singh added the comment:

Internet Archive (with image) - 

https://web.archive.org/web/20150315073817/http://www.xprogramming.com/testfram.htm

--
nosy: +angad

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



[issue22980] C extension naming doesn't take bitness into account

2015-07-04 Thread Ned Deily

Ned Deily added the comment:

I think we should add something to the 3.5 What's New document about these 
changes and which platforms are affected.  Otherwise is there anything left to 
do before closing?

--
priority: normal - deferred blocker

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



[issue24502] OS X 2.7 package has zeros for version numbers in sub-packages

2015-07-04 Thread Ned Deily

Ned Deily added the comment:

Right, that would be a good reason!  I seem to recall that, when I initially 
tested flat-package building and installation, there were problems with pkgs 
not getting properly installed when version was set, possibly due to confusion 
between installs and upgrades.  And that might have been due in part to our 
abuse of some of the Info.plist keys, in particular, CFBundleVersion, at least 
for pre-releases ('3.5.0b2').  I'd like to move away from installer packages 
altogether but that will have to wait until 3.6.  We may be able to get a 
proper version number through pkgutil for current releases but it will require 
a fair amount of time to explore and thoroughly test.  (Some automated install 
tests would make it a lot easier.)

--
stage:  - needs patch
versions: +Python 3.4, Python 3.5, Python 3.6

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



[issue24502] OS X installer provides flat sub-packages with no version numbers

2015-07-04 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
components:  -Installation
title: OS X 2.7 package has zeros for version numbers in sub-packages - OS X 
installer provides flat sub-packages with no version numbers

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



[issue24432] Upgrade windows builds to use OpenSSL 1.0.2c

2015-07-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 695bbbaf2478 by Ned Deily in branch '2.7':
Issue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
https://hg.python.org/cpython/rev/695bbbaf2478

New changeset 4b52fce3753d by Ned Deily in branch '3.4':
Issue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
https://hg.python.org/cpython/rev/4b52fce3753d

New changeset bbf4e35ed69e by Ned Deily in branch '3.5':
Issue #24432: Update OS X 10.5+ installer builds to use OpenSSL 1.0.2c.
https://hg.python.org/cpython/rev/bbf4e35ed69e

New changeset fbb9ac8aebfd by Ned Deily in branch 'default':
Issue #24432: merge from 3.5
https://hg.python.org/cpython/rev/fbb9ac8aebfd

--

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



[issue13456] Providing a custom HTTPResponse class to HTTPConnection

2015-07-04 Thread Angad Singh

Angad Singh added the comment:

I have a patch for this. I have also documented some of the non-documented 
attributes of HTTPConnection class.

--
keywords: +patch
nosy: +angad
Added file: http://bugs.python.org/file39856/response_class.http.client.patch

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



[issue24256] threading.Timer is not a class

2015-07-04 Thread Angad Singh

Angad Singh added the comment:

Taking a stab at this. Attached patch.

--
keywords: +patch
nosy: +angad
Added file: http://bugs.python.org/file39858/function_threading_timer.diff

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



[issue23969] please set a SOABI for MacOSX

2015-07-04 Thread Ned Deily

Ned Deily added the comment:

I think we can close this as finished.  The only remaining item I can think of 
is to add something to the 3.5 What's New document but that should be done as 
part of Issue22980 for all affected platforms.

--
status: open - closed

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Mark Dickinson

Mark Dickinson added the comment:

Agreed with Tim Peters about this not being possible with fully compliant IEEE 
754 arithmetic (see http://stackoverflow.com/a/3041071/270986 for a sketch of a 
proof), but it's certainly a possibility with double rounding, as Steven's 
result demonstrates.  And 32-bit Linux is currently the worst offender for 
double rounding: IIRC OS X uses the SSE2 instructions exclusively for 
floating-point arithmetic, and 64-bit Linux tends to do the same.  Windows uses 
the x87 FPU, but sets the FPU precision to 53-bits, so you don't see double 
rounding within the normal range (though it's still possible with computations 
having subnormal results).

So I'd say that yes, this *is* a bug in random.choice, though it's one that 
should show up very rarely indeed.

--

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



[issue24560] codecs.StreamReader doesn't work with nonblocking streams: TypeError: can't concat bytes to NoneType

2015-07-04 Thread STINNER Victor

STINNER Victor added the comment:

Use the io module instead using the open() function.

--

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread Mark Shannon

Mark Shannon added the comment:

There are two parts to this fix.

First, we raise a runtime exception if the other dict is modified during the 
update/merge.
Second, refcounts must be incremented around the PyDict_GetItem and insertdict 
calls in case the key or value is otherwise deallocated.
 
Patch attached.

--
keywords: +patch
Added file: http://bugs.python.org/file39860/24407.patch

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



[issue24564] shutil.copytree fails when copying NFS to NFS

2015-07-04 Thread Min RK

Min RK added the comment:

On a bit of further investigation, the NFS files have an xattr 
`system.nfs4_acl`. This can be read, but attempting to write it fails with 
EINVAL. Attempting to copy from NFS to non-NFS fails with ENOTSUP, which is 
caught and ignored, but copying from NFS to NFS raises EINVAL, which raises.

Adding `EINVAL` to the ignored errnos would fix the problem, but might hide 
real failures (I'm not sure about the real failures, but it seems logical).

Since the `copy_function` is customizable to switch between `copy` and `copy2`, 
making copystat optional on files, perhaps the `copystat` should be optional on 
directories, as well.

--
nosy: +minrk

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



[issue24330] Idle doc: explain Configure Idle not in Options on OSX, etc.

2015-07-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 64b42ec6ef42 by Ned Deily in branch '2.7':
Issue #24330: Update IDLE doc and help to note Configure IDLE difference
https://hg.python.org/cpython/rev/64b42ec6ef42

New changeset b9460ee09228 by Ned Deily in branch '3.4':
Issue #24330: Update IDLE doc and help to note Configure IDLE difference
https://hg.python.org/cpython/rev/b9460ee09228

New changeset 2dfdbbe0701b by Ned Deily in branch '3.5':
Issue #24330: merge from 3.4
https://hg.python.org/cpython/rev/2dfdbbe0701b

New changeset 055ddc0e713b by Ned Deily in branch 'default':
Issue #24330: merge from 3.5
https://hg.python.org/cpython/rev/055ddc0e713b

--
nosy: +python-dev

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread Mark Shannon

Mark Shannon added the comment:

If the tracker had let me assign the issue, you need not have wasted your time. 
Oh well.

Indeed, your patch looks very similar to mine.

--

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



[issue17277] incorrect line numbers in backtrace after removing a trace function

2015-07-04 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The patch is wrong, the frame may not be run by the current PyThreadState.

--

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



[issue24334] SSLSocket extra level of indirection

2015-07-04 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 I made SSLSocket go through SSLObject so that the test suite that is 
 primarily testing SSLSocket will test both.

Indeed, I like the fact it makes test coverage broader.

Of course, if there's another way to get such coverage without duplicating lots 
of code, then why not.

--

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



[issue23670] Modifications to support iOS as a cross-compilation target

2015-07-04 Thread Russell Keith-Magee

Russell Keith-Magee added the comment:

Another update - this time, there are only 4 failing tests on device, all 
related to ctypes issues. 

The sample Xcode project and iOS-test harness have been modified, simplifying 
the project layout, and using Apple-preferred directories for resources when 
deployed to device.

--
Added file: http://bugs.python.org/file39862/20150704.diff

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread R. David Murray

R. David Murray added the comment:

Oh, he still might have written the patch, after all there isn't a lot of 
operational difference between the email that says assigned to XXX and the 
email that contains your text consider this assigned.

However, Benjamin has given you developer privs on the tracker, so in the 
future you can use assignment if you wish to :)

--
nosy: +r.david.murray

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



[issue24565] the f_lineno getter is broken

2015-07-04 Thread Xavier de Gaye

New submission from Xavier de Gaye:

The last paragraph of Objects/lnotab_notes.txt explains that the f_lineno 
member of the PyFrameObject structure is needed to store the line number of the 
last line tracing event so that this value may be used as the line number of 
the return event instead of the (sometimes confusing) value computed from 
f_lasti.  The f_lineno getter must then return the value of f-f_lineno 
(instead of the value computed from f-f_lasti) when tracing is set. The 
current implementation translates tracing is set as the local f_trace trace 
function is not NULL, this is wrong for the following reasons:

* AFAIK it is not documented anywhere that Python users implementing a trace 
function must delete the local f_trace functions of all the frames when setting 
the
  global trace function to None via sys.settrace(None) (issue 7238).

* Bdb.set_continue() in the bdb module of the std lib seems to know about this 
and attempts to do it, but fails to delete f_trace from the topmost frame, 
named botframe (sic) (issue 16482, issue 17697).

* It is not obvious how to delete the f_trace of all suspended generators when 
setting the global trace function to None (issue 17277).

* _PyTraceback_Add() in Python/traceback.c sets frame-f_lineno, obviously 
forgetting that it is useless since its f_trace is NULL.

This patch changes the semantics of f_lineno by stating that f_lineno is 
invalid when its value is -1. When tracing, the f_lineno of all the frames on 
the stack is valid. The f_lineno of a suspended generator is always invalid.

--
components: Interpreter Core
files: f_lineno.patch
keywords: patch
messages: 246275
nosy: belopolsky, xdegaye
priority: normal
severity: normal
status: open
title: the f_lineno getter is broken
versions: Python 3.6
Added file: http://bugs.python.org/file39865/f_lineno.patch

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



[issue24565] the f_lineno getter is broken

2015-07-04 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Uploading the corresponding test cases.

--
Added file: http://bugs.python.org/file39866/f_lineno_tests.patch

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



[issue24330] Idle doc: explain Configure Idle not in Options on OSX, etc.

2015-07-04 Thread Ned Deily

Ned Deily added the comment:

Thanks for your patch, André!  I changed the wording a bit to make it even 
clearer.  Applied to 2.7 (for 2.7.11), 3.4 (3.4.4), and 3.5.0

--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue24564] shutil.copytree fails when copying NFS to NFS

2015-07-04 Thread Jess Hamrick

New submission from Jess Hamrick:

shutil.copytree seems to fail when copying files across NFS filesystems. In 
this example (see bug_demo.py), /tmp is a normal ext4 filesystem and the 
current working directory is NFS (version 4). Interestingly, it works fine to 
to copy between ext4 and NFS, just not NFS and NFS (even if it's the same NFS 
mount).

Depending on the specific version of 3.4, there are slightly different errors. 
For 3.4.0:

$ uname -a
Linux compmodels-node 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 
2015 x86_64 x86_64 x86_64 GNU/Linux
$ python3 bug_demo.py

--
Python version info:
3.4.0 (default, Jun 19 2015, 14:20:21)
[GCC 4.8.2]
--

Copying NFS -- /tmp
Copying /tmp -- NFS
Copying NFS -- NFS
Traceback (most recent call last):
  File /usr/lib/python3.4/shutil.py, line 336, in copytree
copystat(src, dst)
  File /usr/lib/python3.4/shutil.py, line 212, in copystat
_copyxattr(src, dst, follow_symlinks=follow)
  File /usr/lib/python3.4/shutil.py, line 152, in _copyxattr
os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
OSError: [Errno 22] Invalid argument: 'demo_files3'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File bug_demo.py, line 27, in module
shutil.copytree('demo_files', 'demo_files3')
  File /usr/lib/python3.4/shutil.py, line 339, in copytree
if why.winerror is None:
AttributeError: 'OSError' object has no attribute 'winerror'


And for 3.4.3:

$ uname -a
Linux compmodels-node-02 3.19.0-21-generic #21-Ubuntu SMP Sun Jun 14 18:31:11 
UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ python3 bug_demo.py

--
Python version info:
3.4.3 (default, Mar 26 2015, 22:03:40)
[GCC 4.9.2]
--

Copying NFS -- /tmp
Copying /tmp -- NFS
Copying NFS -- NFS
Traceback (most recent call last):
  File bug_demo.py, line 27, in module
shutil.copytree('demo_files', 'demo_files3')
  File /usr/lib/python3.4/shutil.py, line 343, in copytree
raise Error(errors)
shutil.Error: [('demo_files', 'demo_files3', [Errno 22] Invalid argument: 
'demo_files3')]


This is probably related to https://bugs.python.org/issue17076 and my guess is 
that's also why there is a difference in the error messages between 3.4.0 and 
3.4.3.

--
files: bug_demo.py
messages: 246272
nosy: jhamrick
priority: normal
severity: normal
status: open
title: shutil.copytree fails when copying NFS to NFS
type: crash
versions: Python 3.4
Added file: http://bugs.python.org/file39864/bug_demo.py

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Tim Peters

Tim Peters added the comment:

Mark, note that the sequence in the OP's original report only contains 35 
elements.  That, alas, makes double rounding irrelevant to this bug report.  
That is, while random.choice() can suffer double-rounding surprises in _some_ 
cases, it cannot in the case actually reported here:  in the 64-bit 
extended-precision format, there are at least

64 - (53 + (35).bit_length()) = 5

trailing zeroes in any possible

random.random() * 35

result.  IOW, all such results are exact in 64-bit arithmetic, so the first 
cut back to 64 bits rounding is a no-op.

--

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Mark Dickinson

Mark Dickinson added the comment:

Tim: yes, I agree that this shouldn't happen for the string posted.

--

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



[issue18543] urllib.parse.urlopen shouldn't ignore installed opener when called with any ca* argument

2015-07-04 Thread David Ford (FirefighterBlu3)

David Ford (FirefighterBlu3) added the comment:

In my quest for completeness, I discovered a lack of handling given HTTP-HTTPS 
redirect. So I've attached another version of this patch which ensures an HTTPS 
handler is installed if such a redirect is found.

--
Added file: 
http://bugs.python.org/file39863/urllib.request.py-do-not-overwrite-existing-opener.diff

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



[issue24548] Broken link in the unittest documentation

2015-07-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5f279db087e7 by R David Murray in branch '2.7':
#24548: replace dead link with pointer to archive.org.
https://hg.python.org/cpython/rev/5f279db087e7

--
nosy: +python-dev

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



[issue24548] Broken link in the unittest documentation

2015-07-04 Thread R. David Murray

R. David Murray added the comment:

Thanks.

I typoed the issue number in the commit messages :(.  The python3 commits are 
050a941f69fb, 51e05ee9848a, and 631ef17fc772.

--
nosy: +r.david.murray
resolution:  - fixed
stage: needs patch - resolved
status: open - closed
type:  - behavior

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



[issue24564] shutil.copytree fails when copying NFS to NFS

2015-07-04 Thread Jess Hamrick

Jess Hamrick added the comment:

Some further information: if I run copystat directly on 3.4.3, I get 
essentially the same error as on 3.4.0. So really it only looks like the 
difference is just in how the error is reported:


Traceback (most recent call last):
  File bug_demo.py, line 31, in module
shutil.copystat('demo_files', 'demo_files3')
  File /usr/lib/python3.4/shutil.py, line 213, in copystat
_copyxattr(src, dst, follow_symlinks=follow)
  File /usr/lib/python3.4/shutil.py, line 153, in _copyxattr
os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
OSError: [Errno 22] Invalid argument: 'demo_files3'


Also, I should mention that I did test this on 2.7 as well, and it is not an 
issue there.

--

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



[issue24565] the f_lineno getter is broken

2015-07-04 Thread Xavier de Gaye

Changes by Xavier de Gaye xdeg...@gmail.com:


--
type:  - behavior

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



[issue24564] shutil.copytree fails when copying NFS to NFS

2015-07-04 Thread R. David Murray

R. David Murray added the comment:

There are a number of open issues with copytree originating from copystat.  It 
would be great if someone could pull them all together and propose a solution.  
Making it optional might indeed be the best solution.

--
nosy: +r.david.murray

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



[issue23020] New matmul operator crashes modules compiled with CPython3.4

2015-07-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
priority: release blocker - normal
stage:  - needs patch
type: crash - enhancement

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



[issue15014] smtplib: add support for arbitrary auth methods

2015-07-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
priority: release blocker - normal

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



[issue23810] Suboptimal stacklevel of deprecation warnings for formatter and imp modules

2015-07-04 Thread Larry Hastings

Larry Hastings added the comment:

This regression isn't thrilling, but it's not the kind of OMG we can't release 
with this bug level of escalation I associate with an actual release blocker.  
Let's at least defer it for now, and maybe we'll even reduce it further later.

--
priority: release blocker - deferred blocker

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Tim Peters

Tim Peters added the comment:

Raymond, there are (at least) two bugs here:

1. The original bug report.  Nobody yet has any plausible theory for what went 
wrong there.  So won't fix wouldn't be appropriate.  If the OP can't provide 
more information, neither a reproducible test case, then after a while closing 
this report as works for me would be appropriate.

2. The double rounding bug.  That cannot be the cause of the OP's problem, so 
doesn't really belong in this report.

Nobody knows how rare it is.  I suspect, but have not proved, that 1. - 2.**-53 
is the only random.random() result for which it's possible that double-rounding 
can cause int(i * random.random()) == i.  Given that unlikely - but possible - 
value, there are at least half a million ints 0  i  10 for which 
equality holds (but only on platforms where the double rounding bug is 
possible, which doesn't include any platform I use ;-) ).

That probably should get a report of its own.  It's unintended and 
unanticipated behavior, causing simple code to raise a wholly unexpected  
unpredictable exception.  That's a bug to me.

--

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I've created a new issue 24567 for the double-rounding bug. I have taken the 
liberty of copying the nosy list from this issue to the new one, apologies if 
that is inappropriate.

--
assignee:  - rhettinger

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



[issue23441] rlcompleter: tab on empty prefix = insert spaces

2015-07-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
priority: release blocker - deferred blocker

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



[issue23623] Python 3.5 docs need to clarify how to set PATH, etc

2015-07-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
priority: release blocker - deferred blocker

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



[issue24566] Unsigned Integer Overflow in sre_lib.h

2015-07-04 Thread bee13oy

New submission from bee13oy:

I found an Unsigned Integer Overflow in sre_lib.h.

Tested on En Windows 7 x86 + Python 3.4.3 / Python 3.5.0b2

Crash:
--
(1a84.16b0): Access violation - code c005 (!!! second chance !!!)
eax=0002 ebx=0038f40c ecx=0002 edx=0526cbb8 esi=83e0116b edi=c3e011eb
eip=58bcfa53 esp=0038f384 ebp=0038f394 iopl=0 nv up ei ng nz na po cy
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b efl=00010283
python35+0x1fa53:
58bcfa53 380ecmp byte ptr [esi],cl  ds:002b:83e0116b=??

code: 
--
58bcfa3d 8b4a04  mov ecx,dword ptr [edx+4]
58bcfa40 0fb6c1  movzx   eax,cl
58bcfa43 3bc1cmp eax,ecx
58bcfa45 0f859300jne python35+0x1fade (58bcfade)
58bcfa4b 3bf7cmp esi,edi
58bcfa4d 0f838b00jae python35+0x1fade (58bcfade)
58bcfa53 380ecmp byte ptr [esi],cl  ds:002b:83e0116b=??
58bcfa55 0f858300jne python35+0x1fade (58bcfade)

stack:
--
0:000 kb
ChildEBP RetAddr  Args to Child  
WARNING: Stack unwind information not available. Following frames may be wrong.
0038f394 58bcfedf 4080 0038f40c 83e0116c python35+0x1fa53
0038f3c0 58bd0f58  06016508 0526cb60 python35+0x1fedf
0038f400 58bd5039 58e40c58 83e0116b 03e01158 python35+0x20f58
0038f480 58bd76b2  7fff  python35+0x25039
0038f4a4 58c925cf 0526cb60 0528a4d0  python35+0x276b2
0038f4c4 58cf3633 06016508 0528a4d0  python35!PyCFunction_Call+0x2f
0038f4f8 58cf0b05 05840f90 03e0ab90 0001 python35!PyEval_GetFuncDesc+0x373
0038f570 58cf3791 03e0ab90  0001 python35!PyEval_EvalFrameEx+0x22d5
0038f594 58cf3692 0001 0001  python35!PyEval_GetFuncDesc+0x4d1
0038f5c8 58cf0b05 03e08de0 0012e850  python35!PyEval_GetFuncDesc+0x3d2
0038f640 58cf25bb 0012e850  065feff0 python35!PyEval_EvalFrameEx+0x22d5
0038f68c 58d29302 03dcfaa8   python35!PyEval_EvalFrameEx+0x3d8b
0038f6c8 58d29195 03dcfaa8 03dcfaa8 0038f790 python35!PyRun_FileExFlags+0x1f2
0038f6f4 58d2820a 05994fc8 052525a8 0101 python35!PyRun_FileExFlags+0x85
0038f738 58bfe9f7 05994fc8 052525a8 0001 
python35!PyRun_SimpleFileExFlags+0x20a
0038f764 58bff32b 0038f790 5987b648 5987cc94 python35!Py_hashtable_copy+0x5e17
0038f808 1c6f11df 0003 05796f70 05210f50 python35!Py_Main+0x90b

source code:

LOCAL(Py_ssize_t)
SRE(search)(SRE_STATE* state, SRE_CODE* pattern)
{
SRE_CHAR* ptr = (SRE_CHAR *)state-start;
SRE_CHAR* end = (SRE_CHAR *)state-end;
Py_ssize_t status = 0;
Py_ssize_t prefix_len = 0;
Py_ssize_t prefix_skip = 0;
SRE_CODE* prefix = NULL;
SRE_CODE* charset = NULL;
SRE_CODE* overlap = NULL;
int flags = 0;

if (pattern[0] == SRE_OP_INFO) {
/* optimization info block */
/* INFO 1=skip 2=flags 3=min 4=max 5=prefix info  */

flags = pattern[2];

if (pattern[3]  1) {
/* adjust end point (but make sure we leave at least one
   character in there, so literal search will work) */
end -= pattern[3] - 1;
if (end = ptr)
end = ptr;
}
...
}

...

} else
/* general case */
while (ptr = end) {
TRACE((|%p|%p|SEARCH\n, pattern, ptr));
state-start = state-ptr = ptr++;
status = SRE(match)(state, pattern, 0);
if (status != 0)
break;
}
}

SRE(count)(SRE_STATE* state, SRE_CODE* pattern, Py_ssize_t maxcount)
{
SRE_CODE chr;
SRE_CHAR c;
SRE_CHAR* ptr = (SRE_CHAR *)state-ptr;
SRE_CHAR* end = (SRE_CHAR *)state-end;
Py_ssize_t i;

/* adjust end */
if (maxcount  end - ptr  maxcount != SRE_MAXREPEAT)
end = ptr + maxcount;

...

#if SIZEOF_SRE_CHAR  4
if ((SRE_CODE) c != chr)
; /* literal can't match: doesn't fit in char width */
else
#endif
while (ptr  end  *ptr == c) // crash here, ptr points to an 
unreadable memory.
ptr++;
break;
}

poc code:
---cut
import re

pattern = ([\\2]{1073741952})
regexp = re.compile(r''+pattern+'')
sgroup = regexp.search(pattern)

---cut---

1.) In SRE(search), pattern[3] is equal to 1073741952 (0x40080). What's 
more, the program doesn't limit the max size, which causes the end pointer is 
pointed to an invalid and large address( bigger than ptr).
2.) Then program run while (ptr = end) { state-start = state-ptr = ptr++,..} 
, but state-end pointer is the orignal value.3.) After a while's running, it 
comes to SRE(count) and adjust the end, end - ptr = 0x7fff, which is 
largger than 0x40080, ptr has been pointed to an invalid address.
3.) After a while, it runs to function SRE(count) and adjust the end, end - ptr 
= 

[issue24181] test_fileio crash, 3.5, Win 7

2015-07-04 Thread Serhiy Storchaka

Changes by Serhiy Storchaka storch...@gmail.com:


--
priority: release blocker - deferred blocker

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



[issue24566] Unsigned Integer Overflow in sre_lib.h

2015-07-04 Thread Ezio Melotti

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


--
nosy: +haypo, serhiy.storchaka
type:  - crash

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



[issue24485] Function source inspection fails on closures

2015-07-04 Thread Larry Hastings

Changes by Larry Hastings la...@hastings.org:


--
priority: release blocker - normal

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I would like to close this as won't fix.  

Add given the infinitesimal probability of occurrence (and long standing code), 
I don't think there needs to be a change to the documentation either.

--

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



[issue24546] sequence index bug in random.choice

2015-07-04 Thread Steven D'Aprano

Steven D'Aprano added the comment:

I've been running this snippet for almost 72 hours now:

s = uБГДЖИЛЦЫЭu042eЯАВЕКМРТu042312456789
while True:
state = random.getstate()
try:
a = random.choice(s)
except IndexError:
break

with no results yet. I cannot replicate the original error.

--

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 37fed8b02f00 by Benjamin Peterson in branch '3.3':
protect against mutation of the dict during insertion (closes #24407)
https://hg.python.org/cpython/rev/37fed8b02f00

New changeset 75da5acbfbe4 by Benjamin Peterson in branch '3.4':
merge 3.3 (#24407)
https://hg.python.org/cpython/rev/75da5acbfbe4

New changeset 6a7ee97cb0b1 by Benjamin Peterson in branch '3.5':
merge 3.4 (#24407)
https://hg.python.org/cpython/rev/6a7ee97cb0b1

New changeset 88814ddd5e9e by Benjamin Peterson in branch 'default':
merge 3.5 (#24407)
https://hg.python.org/cpython/rev/88814ddd5e9e

--
nosy: +python-dev
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2015-07-04 Thread Steve Dower

Steve Dower added the comment:

Eh, why bother. I don't remember if the fix is in for 3.5.0b3, but I'll vouch 
that the compiler build with the fix does exist and will be used for 3.5, so 
this should just be closed (again).

--
stage:  - resolved
status: open - closed

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



[issue15993] Windows: 3.3.0-rc2.msi: test_buffer fails

2015-07-04 Thread Larry Hastings

Larry Hastings added the comment:

So, the purpose in marking this as a release blocker is so that we can hold 
up the release while we wait for Microsoft to release a new compiler?  If our 
approach to fixing this is to get the compiler fixed, I can live with marking 
this as critical, but not release blocker.

--
nosy: +larry
priority: release blocker - critical

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



[issue23517] datetime.utcfromtimestamp parses timestamps incorrectly

2015-07-04 Thread Larry Hastings

Larry Hastings added the comment:

I'm not going to hold up beta 3 while you guys argue about how to round up or 
down the number of angels that can dance on the head of a pin.

--
priority: release blocker - deferred blocker

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



[issue24181] test_fileio crash, 3.5, Win 7

2015-07-04 Thread Larry Hastings

Larry Hastings added the comment:

FWIW, our AMD64 Windows7 SP1 3.5 buildbot hits this  50% of the time in the 
regression test suite.  So it's not just Terry.

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.5/builds/78/steps/test/logs/stdio

--
nosy: +larry

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



[issue24567] random.choice IndexError due to double-rounding

2015-07-04 Thread Steven D'Aprano

New submission from Steven D'Aprano:

While investigating issue 24546, I discovered that at least some versions of 
Python on 32-bit Linux have a double-rounding bug in multiplication which may 
lead to an unexpected IndexError in random.choice.

See http://bugs.python.org/issue24546 for additional discussion, but the short 
version is that due to double-rounding, if random.random returns (1. - 
2.**-53), int(i * random.random()) may return 1 for some i = 2049, and 
random.choice will then evaluate seq[len(seq)], raising IndexError.

--
messages: 246291
nosy: Serge Anuchin, haypo, mark.dickinson, r.david.murray, rhettinger, 
serhiy.storchaka, skrah, steven.daprano, tim.peters
priority: normal
severity: normal
status: open
title: random.choice IndexError due to double-rounding
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

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



[issue22483] Copyright infringement on PyPI

2015-07-04 Thread Stefan Krah

Stefan Krah added the comment:

Andrew, given that you did not upload the package, I don't see
how you have anything to do with this.

Creating an internal or a *clearly distinguished* external
package is fine; taking up a misleading second spot on PyPI,
plagiarizing the package description *without even mentioning
that this is not the original package* is not.


The next version of cdecimal will be non-redistributable.

--

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



[issue24553] improve test coverage for subinterpreters

2015-07-04 Thread Nick Coghlan

Nick Coghlan added the comment:

Adding Petr Viktorin to the nosy list as well, as the kind of issues Stefan 
mentions there are the kinds of things that the PEP 489 extension module import 
issues *didn't* address yet, but we'd like to address in the 3.6 iteration of 
the multi-phase initialisation support for extension modules.

Petr, for context, this issue is about improving our test coverage for 
subinterpreter support - see the earlier messages for more details.

--
nosy: +encukou

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



[issue24553] improve test coverage for subinterpreters

2015-07-04 Thread Stefan Krah

Stefan Krah added the comment:

I think for fast access we need a hybrid solution that allows
static types (heap types slowed down _decimal) *and* cache the
thread local values (like it's currently done for the thread-local
context in _decimal).

Caching the context brought an enormous speedup (about 20%).

I'm not sure if all that can be done in a general API, but it's
clearly the fastest way.

--

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



[issue24553] improve test coverage for subinterpreters

2015-07-04 Thread Nick Coghlan

Nick Coghlan added the comment:

That's jumping ahead a little - this issue is only about running the regression 
test suite from a subinterpreter, and establishing what *already* works 
properly. Dealing with the fallout of any quirks and outright failures we 
discover that way will be a different issue :)

--

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread Mark Shannon

Mark Shannon added the comment:

The tracker won't let me assign this to myself.
Consider it assigned.

--
nosy: +Mark.Shannon

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



[issue24407] Use after free in PyDict_merge

2015-07-04 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Hmm, I just wrote a very similar patch. Tell me what you think. :)

--
nosy: +benjamin.peterson
Added file: http://bugs.python.org/file39861/dict_merge.patch

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



[issue24256] threading.Timer is not a class

2015-07-04 Thread R. David Murray

R. David Murray added the comment:

Thanks, but we don't want to document an internal only name (which is what 
the leading underscore means in this case).  It might be desirable to note that 
the name is a class in python3, I'm not sure.

--
nosy: +r.david.murray

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



[issue24553] improve test coverage for subinterpreters

2015-07-04 Thread Stefan Krah

Stefan Krah added the comment:

 Now I'm wondering what further test coverage we really need...

Ideally we'd test every C module with the tests executing in
parallel (sort of) in multiple interpreters.

I have done so for _decimal, which is mostly okay due to the
thread-local contexts. However, there are a couple of minor
glitches.


The reason I haven't pursued this is that *if* you run _decimal
in multiple interpreters, you get nasty sounding (but harmless)
warnings from libmpdec, which complains about being initialized
multiple times.


So from the absence of bug reports I concluded that no one is
using the sub-interpreter feature with _decimal.

--
nosy: +skrah

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



[issue13456] Providing a custom HTTPResponse class to HTTPConnection

2015-07-04 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +berker.peksag
stage:  - patch review
type:  - enhancement
versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.2, Python 3.3

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



[issue24539] StreamReaderProtocol.eof_received() should return True to keep the transport open

2015-07-04 Thread Drekin

Drekin added the comment:

I've also been hit by this issue, see 
https://mail.python.org/pipermail/python-list/2015-July/693496.html and the 
following thread. I've spent some time trying to find where the problem is, and 
just after I found out it's about eof_received() returning None, I could found 
this issue. :-)

--
nosy: +Drekin

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