[issue27350] Compact and ordered dict

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

> How to support sizeof(Py_ssize_t) == 4?

#if SIZEOF_VOID_P == 4

> Can I use int8_t, int16_t and int32_t

You can use PY_INT32_T for 32-bit signed integers, short for 16-bit signed 
integers (if SIZEOF_SHORT == 2) and signed char for 8-bit signed integers. Or 
introduce PY_INT16_T and PY_INT8_T similarly as it was done for PY_INT32_T.

--
nosy: +rhettinger, serhiy.storchaka
stage:  -> patch review

___
Python tracker 

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



[issue19756] test_nntplib: sporadic failures, network isses? server down?

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

Here is a patch that changes all affected tests to use a custom server running 
on localhost:

* Local server is based on the existing NNTPv2Handler class, and the 
LocalServerTests class
* Reintegrate test_starttls() back into NetworkedNNTPTestsMixin
* Only test_with_statement() talks to the remote NNTP_HOST now (not affected by 
this bug)
* Make tests in NetworkedNNTPTestsMixin stricter, because the server responses 
are predetermined now
* Add mock comp.lang.python support to NNTPv1Handler.handle_GROUP()
* Add support for rejecting passwords in NNTPv1Handler.handle_AUTHINFO()
* New message number with non-UTF-8 message body for ARTICLE, HEAD, BODY, and 
non-UTF-8 subject for OVER, XOVER

--
keywords: +patch
Added file: http://bugs.python.org/file43464/nntp-server.patch

___
Python tracker 

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



[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2016-06-18 Thread Rich Rauenzahn

Rich Rauenzahn added the comment:

Given that write() accepts a fileobject, but read() accepts a list of strings 
or a string (and readfp() is the one that accepts a fileobject instead), this 
seems like it could be a common enough error that just iterating over the 
fileobject could be undesirable and an exception might be thrown instead.

I'm throwing this out here to see if the library maintainers were aware of this 
odd edge case.

--

___
Python tracker 

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



[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2016-06-18 Thread Xiang Zhang

Xiang Zhang added the comment:

The doc tells ConfigParser.read accepts a filename or a list of filenames. Why 
do you pass it fileobject? If you want to use fileobject, why not read_file?

--
nosy: +lukasz.langa, xiang.zhang

___
Python tracker 

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



[issue27351] Unexpected ConfigParser.read() behavior when passed fileobject

2016-06-18 Thread Rich Rauenzahn

New submission from Rich Rauenzahn:

This came up on StackOverflow: http://stackoverflow.com/a/37903779/2077386

I wanted to bring it to your attention in case it hasn't been notice before.

It turns out that if you pass a fileobject (i.e., 
ConfigParser().read(open("foo"))) ConfigParser.read() will look at the 
argument, see it isn't a basestring, and then will iterate over it.  
fileobjects are iterables.

This results in iterating over the contents of the file 'foo'.  It then 
attempts to open a file named after every line read from 'foo'.

For example, I made a file foo and filled it with a-g, each letter per line.  

strace shows:

open("foo", O_RDONLY) = 3
open("a\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("b\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("c\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("d\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("e\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("f\n", O_RDONLY)   = -1 ENOENT (No such file or directory)
open("g\n", O_RDONLY)   = -1 ENOENT (No such file or directory)

...and since the API is designed to ignore files it can't open, it just ignores 
the open errors.

I wonder if this fileobject case ought to be checked for when checking the 
arguments passed into ConfigParser.read().  

Thank you.

--
components: Library (Lib)
messages: 268838
nosy: Rich.Rauenzahn
priority: normal
severity: normal
status: open
title: Unexpected ConfigParser.read() behavior when passed fileobject
type: behavior
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



[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki

Changes by INADA Naoki :


--
type:  -> resource usage

___
Python tracker 

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



[issue27350] Compact and ordered dict

2016-06-18 Thread INADA Naoki

New submission from INADA Naoki:

I've implemented compact ordered dictionary, introduced in PyPy blog [1].

To finish my work, I really need core developer's help.  Please see TODO comment
in the patch.

[1]: 
https://morepypy.blogspot.jp/2015/01/faster-more-memory-efficient-and-more.html

See also:
https://mail.python.org/pipermail/python-dev/2016-June/145299.html
https://github.com/methane/cpython/pull/1 (same to attached patch)

--
components: Interpreter Core
files: compact-dict.patch
keywords: patch
messages: 268837
nosy: naoki
priority: normal
severity: normal
status: open
title: Compact and ordered dict
versions: Python 3.6
Added file: http://bugs.python.org/file43463/compact-dict.patch

___
Python tracker 

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



[issue27312] test_setupapp (idlelib.idle_test.test_macosx.SetupTest) fails on OS X

2016-06-18 Thread Ned Deily

Ned Deily added the comment:

test_idle now runs without failing.  Thanks, Terry and Berker.

--
resolution:  -> fixed
stage: needs patch -> 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



[issue27319] Multiple item arguments for selection operations

2016-06-18 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Then don't.  Better to do nothing until sure than to deprecate and then 
undeprecate.  Thinking about it, I am not sure either.

--

___
Python tracker 

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



[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2016-06-18 Thread Oleg Babintsev

Oleg Babintsev added the comment:

Thanks for explanation.

--

___
Python tracker 

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



[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-18 Thread Ned Deily

Changes by Ned Deily :


--
priority: normal -> critical
stage:  -> needs patch
versions: +Python 3.6 -Python 3.5

___
Python tracker 

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



[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-18 Thread Ned Deily

Ned Deily added the comment:

There is a problem with the current implementation.  When running ./configure 
using compilers other than a current gcc, for example, when using clang or 
older versions of gcc, the build variable MULTIARCH may not get set because 
those compilers do not support --print-multiarch:

configure.ac:744
MULTIARCH=$($CC --print-multiarch 2>/dev/null)

But, a bit later in ./configure, PLATFORM_TRIPLET gets set as a result of 
running conftest.c.  The end result is that PLATFORM_TRIPET is non-empty but 
MULTIARCH is empty.  Still later in configure.ac (around 4477:

if test x$PLATFORM_TRIPLET = x; then
  LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}"
else
  
LIBPL='$(prefix)'"/lib/python${VERSION}/config-${LDVERSION}-${PLATFORM_TRIPLET}"
fi

So, the value of LIBPL is extended to include PLATFORM_TRIPLET regardless of 
whether MULTIARCH has a value.

This causes problems at runtime because get_makefile_filename() in 
Lib/sysconfig.py now uses the value of sys.implemntation's _multiarch attribute 
(whose value is compiled in sysmodule.c from MULTIARCH) to form the path to the 
config directory (the equivalent of LIBPL).  In these cases, sys.implementation 
will have no_multiarch attribute so sysconfig looks for the config directory in 
the pre-3.6 location (e.g. .../lib/python3.6/config-3.6m) even though it was 
installed in the new location (.../lib/python3.6/config-3.6m-darwin).  
Fortunately, both test_sysconfig and test_distutils catch this:

==
FAIL: test_srcdir (test.test_sysconfig.TestSysConfig)
--
Traceback (most recent call last):
  File "/py/dev/3x/root/uxd/lib/python3.6/test/test_sysconfig.py", line 346, in 
test_srcdir
self.assertTrue(os.path.isdir(srcdir), srcdir)
AssertionError: False is not true : 
/py/dev/3x/root/uxd/lib/python3.6/config-3.6dm

==
FAIL: test_get_makefile_filename (test.test_sysconfig.MakefileTests)
--
Traceback (most recent call last):
  File "/py/dev/3x/root/uxd/lib/python3.6/test/test_sysconfig.py", line 414, in 
test_get_makefile_filename
self.assertTrue(os.path.isfile(makefile), makefile)
AssertionError: False is not true : 
/py/dev/3x/root/uxd/lib/python3.6/config-3.6dm/Makefile

==
FAIL: test_srcdir (distutils.tests.test_sysconfig.SysconfigTestCase)
--
Traceback (most recent call last):
  File "/py/dev/3x/root/uxd/lib/python3.6/distutils/tests/test_sysconfig.py", 
line 61, in test_srcdir
self.assertTrue(os.path.isdir(srcdir), srcdir)
AssertionError: False is not true : 
/py/dev/3x/root/uxd/lib/python3.6/config-3.6dm

--

I'm not sure what the best solution is.

--

___
Python tracker 

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



[issue27294] Better repr for Tkinter event objects

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

That's with this issue. I think we will return to Event repr after implementing 
named flags and providing standard mechanism for parsing and creating 
keystrokes (there are elements of this in IDLE).

--
resolution:  -> fixed
stage: commit review -> 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



[issue27302] csv.Sniffer guesses wrong when unquoted fields contain quotes

2016-06-18 Thread R. David Murray

R. David Murray added the comment:

Sniff is a heuristic.  If you can suggest a way to improve the heuristic, 
great.  A particular failed guess isn't really a bug, though.

--
nosy: +r.david.murray

___
Python tracker 

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



[issue26579] Support pickling slots in subclasses of common classes

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Synchronized with current sources.

--
Added file: http://bugs.python.org/file43462/copyreg_getstate2.patch

___
Python tracker 

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



[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e2b09c00ee24 by Ned Deily in branch 'default':
Issue #23968: Fix installs of the renamed config directory for OS X
https://hg.python.org/cpython/rev/e2b09c00ee24

--

___
Python tracker 

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



[issue10839] email module should not allow some header field repetitions

2016-06-18 Thread R. David Murray

R. David Murray added the comment:

In the new API there's no real reason to use the old MIME classes.  If you want 
to add the keyword I have no objection, though.

I started a documentation revision last year but haven't had time to get back 
to it.  Hopefully I'll dust it off Real Soon Now.

--

___
Python tracker 

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



[issue27299] urllib does not splitport while putrequest realhost to HTTP headers

2016-06-18 Thread R. David Murray

R. David Murray added the comment:

httplib (which is what you are actually calling in your example) does not 
interpret headers set with putheader.  It is the application's responsibility 
to get the header contents correct.  As Xiang said, this looks like a server 
side issue.

--
nosy: +r.david.murray
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



[issue27294] Better repr for Tkinter event objects

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The last three commits actually are related to issue27079.

--

___
Python tracker 

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



[issue27079] Bugs in curses.ascii predicates

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed with wrong commit message (damn two clipboards on X11) in 
ac8338546ca8, d7b6c07bc713, d03c8d0a6a73.

--
resolution:  -> fixed
stage: patch review -> 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



[issue27294] Better repr for Tkinter event objects

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d7b6c07bc713 by Serhiy Storchaka in branch '3.5':
Issue #27294: Numerical state in the repr for Tkinter event objects is now
https://hg.python.org/cpython/rev/d7b6c07bc713

New changeset ac8338546ca8 by Serhiy Storchaka in branch '2.7':
Issue #27294: Numerical state in the repr for Tkinter event objects is now
https://hg.python.org/cpython/rev/ac8338546ca8

New changeset d03c8d0a6a73 by Serhiy Storchaka in branch 'default':
Issue #27294: Numerical state in the repr for Tkinter event objects is now
https://hg.python.org/cpython/rev/d03c8d0a6a73

--

___
Python tracker 

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



[issue27079] Bugs in curses.ascii predicates

2016-06-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue27294] Better repr for Tkinter event objects

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e0ec4abe659f by Serhiy Storchaka in branch 'default':
Issue #27294: Numerical state in the repr for Tkinter event objects is now
https://hg.python.org/cpython/rev/e0ec4abe659f

--

___
Python tracker 

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



[issue27349] distutils.command.upload: typo "protcol_version"

2016-06-18 Thread Berker Peksag

Berker Peksag added the comment:

Thanks!

--
nosy: +berker.peksag
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions: +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



[issue27349] distutils.command.upload: typo "protcol_version"

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 81a9ce02b49b by Berker Peksag in branch '3.5':
Issue #27349: Fix typo in distutils upload command
https://hg.python.org/cpython/rev/81a9ce02b49b

New changeset a4d00ae53e35 by Berker Peksag in branch 'default':
Issue #27349: Merge from 3.5
https://hg.python.org/cpython/rev/a4d00ae53e35

--
nosy: +python-dev

___
Python tracker 

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



[issue27349] distutils.command.upload: typo "protcol_version"

2016-06-18 Thread Jakub Wilk

New submission from Jakub Wilk:

distutils/command/upload.py reads:

data = {
# action
':action': 'file_upload',
'protcol_version': '1',
...
}

It should be of course 'protocol_version'.
I checked the PyPI code, and it's spelled correctly there.


This misspelling was found using mwic:
http://jwilk.net/software/mwic

--
components: Distutils
messages: 268820
nosy: dstufft, eric.araujo, jwilk
priority: normal
severity: normal
status: open
title: distutils.command.upload: typo "protcol_version"

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Changes by Xiang Zhang :


Removed file: http://bugs.python.org/file43460/64bit_support_for_zlib_v5.patch

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Changes by Xiang Zhang :


Added file: http://bugs.python.org/file43461/64bit_support_for_zlib_v5.patch

___
Python tracker 

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



[issue27021] It is not documented that os.writev() suffer from SC_IOV_MAX

2016-06-18 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Марк, it's documented now. Thank you for the patch.

--
nosy: +orsenthil
resolution:  -> fixed
stage: needs patch -> 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



[issue27021] It is not documented that os.writev() suffer from SC_IOV_MAX

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset eddbf14f451b by Senthil Kumaran in branch '3.5':
issue27021 - Document SC_IOV_MAX limitation imposed by OS on os.writev.
https://hg.python.org/cpython/rev/eddbf14f451b

New changeset 0b1cd695e7aa by Senthil Kumaran in branch 'default':
[merge from 3.5] - issue27021 - Document SC_IOV_MAX limitation imposed by OS on 
os.writev.
https://hg.python.org/cpython/rev/0b1cd695e7aa

--
nosy: +python-dev

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Xiang Zhang added the comment:

Attach patch to restore argument parsing support for __int__.

--
Added file: http://bugs.python.org/file43460/64bit_support_for_zlib_v5.patch

___
Python tracker 

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



[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2016-06-18 Thread Doug Hellmann

Changes by Doug Hellmann :


--
nosy: +doughellmann

___
Python tracker 

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



[issue24452] Make webbrowser support Chrome on Mac OS X

2016-06-18 Thread Doug Hellmann

Changes by Doug Hellmann :


--
nosy: +doughellmann

___
Python tracker 

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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Steve Dower

Steve Dower added the comment:

That's the best function to use.

--

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Changes by Xiang Zhang :


Removed file: http://bugs.python.org/file43450/64bit_support_for_zlib_v4.patch

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Changes by Xiang Zhang :


Added file: http://bugs.python.org/file43459/64bit_support_for_zlib_v4.patch

___
Python tracker 

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



[issue24424] xml.dom.minidom: performance issue with Node.insertBefore()

2016-06-18 Thread Robert Haschke

Robert Haschke added the comment:

Thank you very much for further improving the code. As I understand it, the 
trick is to use temporary variables to minimize access time. Learned something 
new.

I adapted your patch to python 2.7 again. Now, in python3, the new code is even 
faster than the old one (sometimes) for front insertions:

36 time for 1 insertions at front: 0.117563
opt36 time for 1 insertions at front: 0.116014

36 time for 1 insertions at front: 0.114282
opt36 time for 1 insertions at front: 0.116710

old time for 5000 insertions at front: 0.044055
new time for 5000 insertions at front: 0.075433
opt27 time for 5000 insertions at front: 0.052135

old time for 5000 insertions at back: 15.241450
new time for 5000 insertions at back: 0.071004
opt27 time for 5000 insertions at back: 0.046850

I hope you can consider, the patch for python 2.7. There the performance gain 
is most significant.

--

___
Python tracker 

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



[issue27348] Non-main thread exception handler drops exception message

2016-06-18 Thread Martin Panter

New submission from Martin Panter:

If the exception argument is None or repr(None), it is omitted from the report 
when a thread raises an unhandled exception:

>>> def raise_exception(e):
... raise e
... 
>>> t = Thread(target=raise_exception, args=(Exception(None),)); t.start(); 
>>> t.join()
Exception in thread Thread-1:
Traceback (most recent call last):
  File "/home/proj/python/cpython/Lib/threading.py", line 916, in 
_bootstrap_inner
self.run()
  File "/home/proj/python/cpython/Lib/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
  File "", line 2, in raise_exception
Exception

>>> t = Thread(target=raise_exception, args=(Exception("None"),)); t.start(); 
>>> t.join()
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/home/proj/python/cpython/Lib/threading.py", line 916, in 
_bootstrap_inner
self.run()
  File "/home/proj/python/cpython/Lib/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
  File "", line 2, in raise_exception
Exception

Compare the result with other exception messages, the normal sys.excepthook() 
report, and Python 2:

>>> t = Thread(target=raise_exception, args=(Exception("NONE"),)); t.start(); 
>>> t.join()
Exception in thread Thread-3:
Traceback (most recent call last):
  File "/home/proj/python/cpython/Lib/threading.py", line 916, in 
_bootstrap_inner
self.run()
  File "/home/proj/python/cpython/Lib/threading.py", line 864, in run
self._target(*self._args, **self._kwargs)
  File "", line 2, in raise_exception
Exception: NONE

>>> raise Exception(None)
Traceback (most recent call last):
  File "", line 1, in 
Exception: None

--
messages: 268814
nosy: martin.panter
priority: normal
severity: normal
status: open
title: Non-main thread exception handler drops exception message
versions: 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



[issue27347] Spam

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy:  -Daniel Griffin
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed
title: Private -> Spam

___
Python tracker 

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



[issue27347] Private

2016-06-18 Thread SilentGhost

Changes by SilentGhost :


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

___
Python tracker 

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



[issue27347] Private

2016-06-18 Thread SilentGhost

Changes by SilentGhost :


Removed file: http://bugs.python.org/file43458/bugreport-2016-05-29-03-43-39.txt

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


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

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


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

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


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

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


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

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


--
components:  -Tests
nosy:  -Daniel Griffin, Daniel Griffin, Daniel Griffin

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


Removed file: http://bugs.python.org/file43453/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


Removed file: http://bugs.python.org/file43455/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Berker Peksag

Changes by Berker Peksag :


Removed file: http://bugs.python.org/file43454/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue27347] Private

2016-06-18 Thread Daniel Griffin

New submission from Daniel Griffin:

http://creativecommons.org/licenses/by/4.0/;>https://i.creativecommons.org/l/by/4.0/88x31.png; />This work is 
licensed under a http://creativecommons.org/licenses/by/4.0/;>Creative Commons Attribution 
4.0 International License.

--
components: Installation, Interpreter Core, Tests
files: bugreport-2016-05-29-03-43-39.txt
messages: 268813
nosy: Daniel Griffin
priority: normal
severity: normal
status: open
title: Private
versions: Python 3.6
Added file: http://bugs.python.org/file43458/bugreport-2016-05-29-03-43-39.txt

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Lele Gaifax

Lele Gaifax added the comment:

Daniel, are these misplaced comments, or should your quite big attachments
tell me something I'm missing?

--

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Daniel Griffin

Daniel Griffin added the comment:

example

--
components: +Tests
nosy: +Daniel Griffin, Daniel Griffin, Daniel Griffin
Added file: http://bugs.python.org/file43455/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue27258] Exception in BytesGenerator.flatten

2016-06-18 Thread Pedro Lacerda

Pedro Lacerda added the comment:

Now the file is back! If any previous header has a newline before the value the 
error will not happen. But even with the output correct it isn't as expected.

--
Added file: http://bugs.python.org/file43457/flatten-no-exception.mail

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Daniel Griffin

Daniel Griffin added the comment:

http://creativecommons.org/licenses/by/4.0/;>https://i.creativecommons.org/l/by/4.0/88x31.png; />This work is 
licensed under a http://creativecommons.org/licenses/by/4.0/;>Creative Commons Attribution 
4.0 International License.

--
nosy: +Daniel Griffin
Added file: http://bugs.python.org/file43453/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Daniel Griffin

Daniel Griffin added the comment:

http://creativecommons.org/licenses/by/4.0/;>https://i.creativecommons.org/l/by/4.0/88x31.png; />This work is 
licensed under a http://creativecommons.org/licenses/by/4.0/;>Creative Commons Attribution 
4.0 International License.

--
components: +Tests
nosy: +Daniel Griffin, Daniel Griffin
Added file: http://bugs.python.org/file43453/bugreport-2016-05-18-03-28-01.txt
Added file: http://bugs.python.org/file43454/bugreport-2016-05-18-03-28-01.txt

___
Python tracker 

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



[issue27258] Exception in BytesGenerator.flatten

2016-06-18 Thread Pedro Lacerda

Pedro Lacerda added the comment:

Now the file is back! If any previous header has a newline before the value the 
error will not happen. But even with the output correct it isn't as expected.

--
Added file: http://bugs.python.org/file43456/flatten-no-exception.mail

___
Python tracker 

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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Berker Peksag

Berker Peksag added the comment:

> That'll handle the test fine, though I wonder whether we should try and 
> conditionally define the constant at runtime?

+1. Is it safe to use IsWindows8OrGreater()?

--

___
Python tracker 

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



[issue27177] re match.group should support __index__

2016-06-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: needs patch -> 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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Steve Dower

Steve Dower added the comment:

That'll handle the test fine, though I wonder whether we should try and 
conditionally define the constant at runtime?

Probably at least want to add a note to the docs about Win 8 being the minimum, 
especially since so many people are still on 7.

--

___
Python tracker 

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



[issue27177] re match.group should support __index__

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0303ab246152 by Serhiy Storchaka in branch 'default':
Issue #27177: Match objects in the re module now support index-like objects
https://hg.python.org/cpython/rev/0303ab246152

--
nosy: +python-dev

___
Python tracker 

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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 213c240cce0a by Berker Peksag in branch 'default':
Issue #26536: Use spaces instead of tabs
https://hg.python.org/cpython/rev/213c240cce0a

--

___
Python tracker 

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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Berker Peksag

Berker Peksag added the comment:

It looks like SIO_LOOPBACK_FAST_PATH is also defined in older Windows versions. 
I updated the test to skip if SIO_LOOPBACK_FAST_PATH is defined and 
exc.winerror is WSAEOPNOTSUPP. Buildbot is now green: 
http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/7855

Please reopen if I did something wrong.

--
status: open -> closed

___
Python tracker 

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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e8b10ed64e63 by Berker Peksag in branch 'default':
Issue #26536: Skip test_sio_loopback_fast_path under Windows 7
https://hg.python.org/cpython/rev/e8b10ed64e63

--

___
Python tracker 

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



[issue27177] re match.group should support __index__

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Interesting. This is very unusual but reasonable use case.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Eryk Sun

Changes by Eryk Sun :


--
components: +Library (Lib) -Extension Modules

___
Python tracker 

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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Eryk Sun

Eryk Sun added the comment:

ReadFileScatter and WriteFileGather also require a handle for a file that's 
opened with FILE_FLAG_OVERLAPPED (asynchronous access; the file pointer is not 
updated) and FILE_FLAG_NO_BUFFERING (buffers must be a multiple of the physical 
sector size and aligned to the physical sector size). So Python wouldn't be 
able to use the C runtime's POSIX (low) I/O implementation. ISTM this requires 
resolving issue 12939, with support for overlapped I/O.

--
nosy: +eryksun

___
Python tracker 

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



[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Following patch deprecates the support of bytes-like objects (except bytes 
itself) in PyUnicode_FSDecoder() for consistency with issue26800.

--
dependencies: +Don't accept bytearray as filenames part 2
versions:  -Python 3.5
Added file: 
http://bugs.python.org/file43451/PyUnicode_FSDecoder-deprecate-buffer.patch

___
Python tracker 

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



[issue27177] re match.group should support __index__

2016-06-18 Thread Jeroen Demeyer

Jeroen Demeyer added the comment:

My use case is SageMath: http://trac.sagemath.org/ticket/20750

--

___
Python tracker 

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



[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

This original bug was about fstat() failing for an anonymous file (after the 
directory entry was removed). But in your situation the file system refuses to 
unlink the directory entry.

If you think there is something that can be fixed in Python, I suggest open a 
new bug. But it seems this is working as documented: “Under Unix, the directory 
entry for the file is removed immediately after the file is created.” In your 
case, this cannot happen, so you get the error from the OS.

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

___
Python tracker 

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



[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2e48c2c4c733 by Serhiy Storchaka in branch '3.5':
Issue #26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
https://hg.python.org/cpython/rev/2e48c2c4c733

New changeset e18ac7370113 by Serhiy Storchaka in branch 'default':
Issue #26754: PyUnicode_FSDecoder() accepted a filename argument encoded as
https://hg.python.org/cpython/rev/e18ac7370113

--
nosy: +python-dev

___
Python tracker 

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



[issue22228] Adapt bash readline operate-and-get-next function

2016-06-18 Thread Lele Gaifax

Lele Gaifax added the comment:

In 
https://github.com/lelit/cpython/commit/3e5e557a876831a99c21f5a173623cb05ff48abf
I reimplemented the functionality in a slightly different and hopefully better
way, rebasing it on current master.

IANAL, but I think that the new approach is different enough from the original
GNU bash code to be considered safe from the license point of view.

I still could not test it against the editline alternative implementation:
AFAICT all the functions and symbols I used are exposed by that library too,
so it may work without resorting to #ifdefs.

In that regards however, I think we could and should take a different approach
in determining which underlying implementation is used: GNU readline >= 4.1
exposes a rl_gnu_readline_p flag that could be used at configure time to
define a IS_GNU_READLINE, and then rely on that to implement different code
paths within the readline.c module.

Please let me know if I should upload a traditional patch, instead of
referencing my branch on github.

As usual, thank you for any review and feedback!

--

___
Python tracker 

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



[issue27294] Better repr for Tkinter event objects

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

According to Tk sources on Mac OSX: Mod1 is Command (=Meta), Mod2 is Option 
(=Alt), Mod3 is NumLock, Mod4 is Fn.

--

___
Python tracker 

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



[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2016-06-18 Thread Oleg Babintsev

Oleg Babintsev added the comment:

My environment: 
Windows as host OS, VirtualBox VM, Linux as guest OS

When temporary directory is a directory which mounted from the host OS, a 
"OSError: [Errno 26] Text file busy" exception is thrown.

Test file:

import tempfile

with tempfile.TemporaryFile(dir="/tmp") as tf:
tf.write("testing testing testing\n".encode('utf-8'))
print("Temp file: worked")

"/tmp" directory - is a shared folder (vboxsf)

Result:

root@0e87f2561643:/# python /etc/odoo/tempfile-test.py
Traceback (most recent call last):
  File "/etc/odoo/tempfile-test.py", line 3, in 
with tempfile.TemporaryFile(dir="/tmp") as tf:
  File "/usr/lib/python2.7/tempfile.py", line 513, in TemporaryFile
_os.unlink(name)
OSError: [Errno 26] Text file busy: '/tmp/tmpsl0JQI'

root@0e87f2561643:/# python --version
Python 2.7.11+

root@0e87f2561643:/# python
Python 2.7.11+ (default, Jun  2 2016, 19:34:15)
[GCC 5.3.1 20160528] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.7.11+ (default, Jun  2 2016, 19:34:15) \n[GCC 5.3.1 20160528]'
>>>

--

___
Python tracker 

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



[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-06-18 Thread Xiang Zhang

Xiang Zhang added the comment:

Upload the new patch to fix bugs and make improvements. I'll add tests later.

--
Added file: http://bugs.python.org/file43450/64bit_support_for_zlib_v4.patch

___
Python tracker 

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



[issue27319] Multiple item arguments for selection operations

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm not sure that passing multiple items as a tuple should be deprecated.

--

___
Python tracker 

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



[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

Are you sure Oleg? As far as I understand, Python 2 by default wraps C stdio 
file objects, and also has Python 3’s file objects in the “io” module. But I 
expect TemporaryFile() would use the default stdio files, and the cause of this 
bug, Issue 21679, should only have affected the “io” module in 3.5+.

--

___
Python tracker 

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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

however, unlike the POSIX functions, they require the alignment of each buffer 
on a memory page

--

___
Python tracker 

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



[issue27021] It is not documented that os.writev() suffer from SC_IOV_MAX

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

Attached the patch. Please review.

--
keywords: +patch
Added file: http://bugs.python.org/file43449/writev_doc.patch

___
Python tracker 

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



[issue27021] It is not documented that os.writev() suffer from SC_IOV_MAX

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

Oops. It is documented in latest version...

--

___
Python tracker 

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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Martin Panter

Changes by Martin Panter :


--
components: +Extension Modules, Windows -Library (Lib)
nosy: +paul.moore, steve.dower, tim.golden, zach.ware

___
Python tracker 

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



[issue27021] It is not documented that os.writev() suffer from SC_IOV_MAX

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

Also it is not documented that os.writev() is not awailable on Windows (!)
Also see issue27346

--

___
Python tracker 

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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

Also do not forget to fix documentation: issue27021

--

___
Python tracker 

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



[issue25717] tempfile.TemporaryFile fails when dir option set to directory residing on host OS mount

2016-06-18 Thread Oleg Babintsev

Oleg Babintsev added the comment:

Problem is still actual for Python 2.7
Can you provide the fix for 2.7 too?

--
nosy: +Oleg Babintsev
versions: +Python 2.7 -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



[issue27346] Implement os.readv() / os.writev()

2016-06-18 Thread Марк Коренберг

Changes by Марк Коренберг :


--
title: Implement os.readv() / os.readv() -> Implement os.readv() / os.writev()

___
Python tracker 

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



[issue27346] Implement os.readv() / os.readv()

2016-06-18 Thread Марк Коренберг

New submission from Марк Коренберг:

These functions are not implemented natively in Windows, but
the Windows API has analogous functions ReadFileScatter and WriteFileGather.

--
components: IO, Library (Lib)
messages: 268782
nosy: mmarkk
priority: normal
severity: normal
status: open
title: Implement os.readv() / os.readv()
type: enhancement
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



[issue19884] Importing readline produces erroneous output

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

Here is a patch to enable the workaround on OS X, and to adjust the test 
condition to 6.1. It would be nice if someone with OS X and Gnu Readline can 
confirm that this fixes the problem.

--
stage: needs patch -> patch review
Added file: http://bugs.python.org/file43448/meta-osx.patch

___
Python tracker 

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



[issue19884] Importing readline produces erroneous output

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

Yogesh: Victor’s patch has already been applied. What is left to do is another 
patch that enables Victor’s code on OS X when Gnu Readline is being used, as 
opposed to the usual Apple Editline.

Also, I think it is valid to update the version check to 6.1. According to 
, enable-meta-key is in 
6.1, but not 6.0. On 6.0 the code probably has no effect.

--
nosy: +martin.panter
stage:  -> needs patch

___
Python tracker 

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



[issue27149] Implement socket.sendmsg() for Windows

2016-06-18 Thread Марк Коренберг

Марк Коренберг added the comment:

WSASend function can send array of buffers:

https://msdn.microsoft.com/en-us/library/ms742203(v=vs.85).aspx

--

___
Python tracker 

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



[issue24314] irrelevant cross-link in documentation of user-defined functions

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

I also backported most of my changes to 2.7, although __name__ wasn’t 
originally linking to anything at all there.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
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



[issue26536] Add the SIO_LOOPBACK_FAST_PATH option to socket.ioctl

2016-06-18 Thread Martin Panter

Martin Panter added the comment:

This is failing on Windows 7 buildbots:

http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/7849/steps/test/logs/stdio
==
ERROR: test_sio_loopback_fast_path (test.test_socket.GeneralModuleTests)
--
Traceback (most recent call last):
  File "C:\buildbot.python.org\3.x.kloth-win64\build\lib\test\test_socket.py", 
line 1226, in test_sio_loopback_fast_path
s.ioctl(socket.SIO_LOOPBACK_FAST_PATH, True)
OSError: [WinError 10045] The attempted operation is not supported for the type 
of object referenced

--
nosy: +martin.panter
status: closed -> open

___
Python tracker 

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



[issue24314] irrelevant cross-link in documentation of user-defined functions

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1ed4e4a168bb by Martin Panter in branch '2.7':
Issue #24314: Add links for general attributes like __name__, __dict__
https://hg.python.org/cpython/rev/1ed4e4a168bb

New changeset 4c361e189747 by Martin Panter in branch '3.5':
Issue #24314: Fix doc links for general attributes like __name__, __dict__
https://hg.python.org/cpython/rev/4c361e189747

New changeset 79a3aff60e37 by Martin Panter in branch 'default':
Issue #24314: Merge doc links from 3.5
https://hg.python.org/cpython/rev/79a3aff60e37

--
nosy: +python-dev

___
Python tracker 

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



[issue27177] re match.group should support __index__

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

What is the use case?

--

___
Python tracker 

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



[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here are additional tests.

--
status: closed -> open
Added file: http://bugs.python.org/file43447/issue27122-additional-tests.patch

___
Python tracker 

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




[issue27345] GzipFile's readinto() reads gzip data instead of file data.

2016-06-18 Thread Ryan Birmingham

New submission from Ryan Birmingham:

In cases where libraries try to call readinto(), the results are unexpected 
(the gzip data). Shouldn't it instead raise UnsupportedOperation for readinto() 
(and truncate())?

--
components: IO
files: gzip_readinto.patch
keywords: patch
messages: 268773
nosy: Ryan Birmingham
priority: normal
severity: normal
status: open
title: GzipFile's readinto() reads gzip data instead of file data.
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file43446/gzip_readinto.patch

___
Python tracker 

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



[issue27343] Incorrect error message for conflicting initializers of ctypes structure

2016-06-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: commit review -> 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



[issue27343] Incorrect error message for conflicting initializers of ctypes structure

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ed81fc7e285b by Serhiy Storchaka in branch '3.5':
Issue #27343: Fixed error message for conflicting initializers of 
ctypes.Structure.
https://hg.python.org/cpython/rev/ed81fc7e285b

New changeset 40e3790c2a00 by Serhiy Storchaka in branch 'default':
Issue #27343: Fixed error message for conflicting initializers of 
ctypes.Structure.
https://hg.python.org/cpython/rev/40e3790c2a00

--
nosy: +python-dev

___
Python tracker 

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



[issue27333] validate_step in rangeobject.c, incorrect code logic but right result

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thank you for your review Xiang.

--
resolution:  -> fixed
stage: patch review -> 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



[issue27333] validate_step in rangeobject.c, incorrect code logic but right result

2016-06-18 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4fbcd58df1a0 by Serhiy Storchaka in branch 'default':
Issue #27333: Simplified testing step on 0.
https://hg.python.org/cpython/rev/4fbcd58df1a0

--
nosy: +python-dev

___
Python tracker 

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



[issue27333] validate_step in rangeobject.c, incorrect code logic but right result

2016-06-18 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Agreed.

--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue27342] Clean up some Py_XDECREFs in rangeobject.c and bltinmodule.c

2016-06-18 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> fixed
stage: patch review -> 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



  1   2   >