[issue27106] configparser.__all__ is incomplete

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 739528288996 by Martin Panter in branch 'default':
Issue #27106: Add test for configparser.__all__
https://hg.python.org/cpython/rev/739528288996

--
nosy: +python-dev

___
Python tracker 

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



[issue28003] PEP 525 asynchronous generators implementation

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 910e293663cb by Yury Selivanov in branch 'default':
Issue #28003: Fix a compiler warning
https://hg.python.org/cpython/rev/910e293663cb

--

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Ivan Levkivskyi

New submission from Ivan Levkivskyi:

Guido,

Here is a patch to remove com2ann (also it looks like Yury added a second entry 
for me in MISC/Acks, so that I am removing it).

--
components: Demos and Tools
files: remove-com2ann.diff
keywords: patch
messages: 275274
nosy: gvanrossum, levkivskyi
priority: normal
severity: normal
status: open
title: Remove com2ann script (will be in separate repo)
versions: Python 3.6
Added file: http://bugs.python.org/file44489/remove-com2ann.diff

___
Python tracker 

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



[issue28003] PEP 525 asynchronous generators implementation

2016-09-09 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks, Martin, it should be fixed now.

--

___
Python tracker 

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



[issue27292] Warn users that os.urandom() prior to 3.6 can return insecure values

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

> Though I imagine even Python 3.6’s os.urandom() will still fall back to 
> /dev/urandom (with potential entropy problem) on older Linux versions.

Right, but you should be more specific in the doc.

os.urandom() is unsecure if and only if:

* getrandom() is not available (ex: Linux < 3.17, or Python built without 
getrandom() for different reasons) or don't work (ex: blocked by a stupid 
SECCOMP policy, ex: issue #27955)
* and /dev/urandom is not initialized yet which means that:

  - the currently running Python runs very early during the system 
initialization,
  - the system has no good source of entropy and slow entropy sources, 
  - no entropy was stored on the disk on a previous boot.

What I don't want: a doc warning that "oh hey, os.urandom() is unsafe, don't 
use it for anything serious".

os.urandom() is always secure on all platforms except Linux. On Linux, it's 
secure is almost all cases, except on a very few very tiny corner cases.

I proposed something like:

"On Linux, os.urandom() can return weak entropy when /dev/urandom is used 
internally and the system urandom entropy pool is not initialized yet."

I'm not even sure about "weak entropy" because in most cases, /dev/urandom is 
already partially initialized with good entropy, but just not enough to 
consider that it's fully initialized. Linux uses many entropy sources but don't 
trust them, so don't consider that these input data counts for the entropy 
counter.

--

___
Python tracker 

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



[issue28003] PEP 525 asynchronous generators implementation

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

I am getting a new GCC warning:

./Python/sysmodule.c:1425:28: warning: initialization from incompatible pointer 
type [-Wincompatible-pointer-types]
 {"set_asyncgen_hooks", sys_set_asyncgen_hooks,
^~
./Python/sysmodule.c:1425:28: note: (near initialization for 
‘sys_methods[34].ml_meth’)

--
nosy: +martin.panter

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

Context: "Issue #27985: Implement PEP 526 -- Syntax for Variable Annotations."

> Here is a patch to remove com2ann

Can you please just explain why you don't want this tool?

--
nosy: +haypo, yselivanov

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Victor,

Guido proposed to publish com2ann script in a separate repo on github.

--

___
Python tracker 

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



[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-09-09 Thread Nick Coghlan

Nick Coghlan added the comment:

As in, for arguments that have __index__() methods, do the conversion to a true 
Python integer eagerly when the slice is built rather than lazily when 
slice.indices() (or the C-level equivalent) is called?

That actually seems like a potentially plausible future approach to me, but 
isn't a change I'd want to make hastily - those values are visible as the 
start, stop and step attributes on the slice, and 
https://docs.python.org/3/reference/datamodel.html#types currently describes 
those as "These attributes can have any type."

Given that folks do a lot of arcane things with the subscript notation, I 
wouldn't want to break working code if we have less intrusive alternatives.

--

___
Python tracker 

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



[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2016-09-09 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Shouldn't this ticket be closed ?

platform is using subprocess on both the 2.7 and trunk, so the issue should be 
fixed - and indeed I cannot reproduce it anymore.

--

___
Python tracker 

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



[issue28005] Broken encoding modules are silently skipped.

2016-09-09 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Yes, that's intended. See e.g. the mbcs codec.

If a search function gets an ImportError, it interprets this as "codec is not 
available/working", and then gives other search functions a chance to find a 
working one.

--

___
Python tracker 

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



[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

Oh right, I didn't read the history of the issue. _syscmd_file() doesn't use 
popen() anymore, but subprocess, so the issue can now be closed.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue16112] platform.architecture does not correctly escape argument to /usr/bin/file

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

Note: Other platform functions still use os.popen(), you might open new issues.

_syscmd_ver:

for cmd in ('ver', 'command /c ver', 'cmd /c ver'):
try:
pipe = os.popen(cmd)
...

def _syscmd_uname(option, default=''):
...
f = os.popen('uname %s 2> %s' % (option, DEV_NULL))

Note: there is also platform.popen() which is deprecated since Python 3.3, we 
might also remove it from Python 3.7 as well (I think that it's now too late 
for Python 3.6).

--

___
Python tracker 

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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2016-09-09 Thread Francisco Couzo

Changes by Francisco Couzo :


--
keywords: +patch
Added file: http://bugs.python.org/file44490/format.patch

___
Python tracker 

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



[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread Martin Panter

New submission from Martin Panter:

Revision 7eaaac5ad4e8 removed a bunch of “with_statement” __future__ imports, 
including in Tools/hg/hgtouch.py. This is causing a buildbot to fail; 
presumably it has Python < 2.6 for Mercurial:

http://buildbot.python.org/all/builders/x86%20Tiger%203.x/builds/11301/steps/touch/logs/stdio
Tools/hg/hgtouch.py:22: Warning: 'with' will become a reserved keyword in 
Python 2.6
*** failed to import extension touch from Tools/hg/hgtouch.py: invalid syntax 
(hgtouch.py, line 22)
hg: unknown command 'touch'

The compile step subsequently seems to regenerate a file and fails.

What was the reason to remove these __future__ imports? Maybe only remove them 
from Python 3-only code.

--
components: Build
keywords: buildbot
messages: 275282
nosy: gregory.p.smith, martin.panter
priority: normal
severity: normal
status: open
title: x86 Tiger buildbot needs __future__ with_statement
type: compile error
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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2016-09-09 Thread Francisco Couzo

Changes by Francisco Couzo :


--
nosy: +franciscouzo

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Matthias Bussonnier

New submission from Matthias Bussonnier:

I've been able to reliably trigger dict.pop to raise a system error: 

See https://github.com/pytest-dev/pytest/issues/1925


I have issues getting a small test-case that triggers it, though by changing 
the pop method of dict to print the returned value:

PyObject *
_PyDict_Pop(PyDictObject *mp, PyObject *key, PyObject *deflt){
...
printf("\nreturn End value %x\n", old_value );
return old_value;

}

I've been able to see that the last return sometime return Null:

[snip]

return End value 0
Fatal Python error: a function returned NULL without setting an error
SystemError:  returned NULL 
without setting an error

Current thread 0x7fff77139300 (most recent call first):
  File "/usr/local/lib/python3.6/site-packages/_pytest/capture.py", line 83 in 
reset_capturings
  File "/usr/local/lib/python3.6/site-packages/_pytest/config.py", line 869 in 
_ensure_unconfigure
  File "/usr/local/lib/python3.6/site-packages/_pytest/main.py", line 121 in 
wrap_session
  File "/usr/local/lib/python3.6/site-packages/_pytest/main.py", line 125 in 
pytest_cmdline_main
  File 
"/usr/local/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", 
line 596 in execute
  File 
"/usr/local/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", 
line 333 in 
  File 
"/usr/local/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", 
line 338 in _hookexec
  File 
"/usr/local/lib/python3.6/site-packages/_pytest/vendored_packages/pluggy.py", 
line 724 in __call__
  File "/usr/local/lib/python3.6/site-packages/_pytest/config.py", line 57 in 
main
  File "/usr/local/lib/python3.6/site-packages/pytest.py", line 17 in 
  File "/Users/bussonniermatthias/dev/git-cpython/Lib/runpy.py", line 85 in 
_run_code
  File "/Users/bussonniermatthias/dev/git-cpython/Lib/runpy.py", line 193 in 
_run_module_as_main

Aborted

Which I suppose is not desirable.

I'm quite uncomfortable with C so I'm far from being able to propose a patch or 
describe why this would happen...

Victor Stinner seem to have made the last changes to these methods in 
http://bugs.python.org/issue27350 . Not sure if the etiquette is to add them to 
the nosy list in this case. 

Discovered because of nightly continuous integration with travis on 
github.com/xonsh/xonsh

--
components: Interpreter Core
messages: 275283
nosy: mbussonn
priority: normal
severity: normal
status: open
title: compact dict : SystemError: returned NULL without setting an error.
versions: Python 3.6, Python 3.7

___
Python tracker 

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



[issue27106] configparser.__all__ is incomplete

2016-09-09 Thread Martin Panter

Changes by Martin Panter :


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



[issue27867] various issues due to misuse of PySlice_GetIndicesEx

2016-09-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Then there is a design question. I believe that after all we should expose 
these two new functions publicly. And the question is about function names and 
the order of arguments. Currently signatures are:

int _PySlice_Unpack(PyObject *r, Py_ssize_t *start, Py_ssize_t *stop, 
Py_ssize_t *step);
int _PySlice_EvalIndices(Py_ssize_t *start, Py_ssize_t *stop, Py_ssize_t step, 
Py_ssize_t length, Py_ssize_t *slicelength);

Are there suggestions for names? Perhaps the second functions should not have 
prefix PySlice_, since it doesn't work with slice object.

--

___
Python tracker 

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



[issue23404] 'make touch' does not work with git clones of the source repository

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

Perhaps you can use “make -t ” instead of “make touch”. If you know the 
filename you want to avoid regenerating, that would not need any extra tools, 
no Mercurial or Git or any other version control. E.g.:

make -t Include/Python-ast.h

--
nosy: +martin.panter

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Matthias Bussonnier

Matthias Bussonnier added the comment:

Oh, also I've bisect it to the compact-dict commit,
and the exact instance of __dict__.pop that fails depends on the machine.

Reliable same location on travis-ci and locally, but travis-ci location and 
local differ on where it triggers this.

--

___
Python tracker 

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



[issue9949] os.path.realpath on Windows does not follow symbolic links

2016-09-09 Thread Christian Åkerström

Christian Åkerström added the comment:

Any update on this? Would be great with a fix for python symlinks on Windows.

--
nosy: +Christian Åkerström

___
Python tracker 

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



[issue16487] Allow ssl certificates to be specified from memory rather than files.

2016-09-09 Thread Christian Heimes

Christian Heimes added the comment:

Thanks for your patch. I have left some comments (sorry for the delay).

--
versions: +Python 3.7 -Python 3.4

___
Python tracker 

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



[issue9949] os.path.realpath on Windows does not follow symbolic links

2016-09-09 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue26171] heap overflow in zipimporter module

2016-09-09 Thread Christian Heimes

Changes by Christian Heimes :


--
priority:  -> release blocker
versions: +Python 3.3 -Python 2.7, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-09 Thread Mark Dickinson

Mark Dickinson added the comment:

It looks as though this change might have broken the compile on OS X. On my OS 
X 10.9 machine, building from a clean Git checkout of the master branch fails; 
the tail of the failed build looks like this:

./python.exe -E -S -m sysconfig --generate-posix-vars ;\
if test $? -ne 0 ; then \
echo "generate-posix-vars failed" ; \
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Fatal Python error: Py_Initialize: unable to load the file system codec
Traceback (most recent call last):
  File "", line 962, in _find_and_load
  File "", line 951, in _find_and_load_unlocked
  File "", line 656, in _load_unlocked
  File "", line 668, in exec_module
  File "", line 782, in get_code
  File "", line 842, in _cache_bytecode
  File "", line 867, in set_data
  File "", line 117, in _write_atomic
ValueError: negative file descriptor
/bin/sh: line 1: 35829 Abort trap: 6   ./python.exe -E -S -m sysconfig 
--generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

Full build output attached.

--
nosy: +mark.dickinson
Added file: http://bugs.python.org/file44491/osx_failed_compile.txt

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-09 Thread sorin

Changes by sorin :


--
nosy:  -sorin

___
Python tracker 

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



[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-09 Thread Mark Dickinson

Mark Dickinson added the comment:

It looks as though this change in posixmodule.c is the cause:

 #ifdef MS_WINDOWS
-if (path->wide)
-fd = _wopen(path->wide, flags, mode);
-else
+fd = _wopen(path->wide, flags, mode);
 #endif
 #ifdef HAVE_OPENAT
 if (dir_fd != DEFAULT_DIR_FD)
 fd = openat(dir_fd, path->narrow, flags, mode);
 else
-#endif
 fd = open(path->narrow, flags, mode);
+#endif


The move of the final #endif means that `fd` is not defined on OS X. If I move 
the #endif back again, the compile succeeds.

--

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Christian Heimes

Christian Heimes added the comment:

I have deprecated cafile, capath and cadefault for urlopen(). The function 
didn't pop up on my radar because I was looking for certfile and cert_file, not 
cafile. I also added deprecations to the documentation of SSLSocket.read and 
write.

--

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Christian Heimes

Changes by Christian Heimes :


--
keywords: +patch
Added file: http://bugs.python.org/file44492/ssl_deprecations.patch

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Christian Heimes

Changes by Christian Heimes :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +haypo, methane

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Xiang Zhang added the comment:

It looks to me the only reason to this is dk_lookup returns wrong value and I 
seem to find one in lookdict. Not sure this can solve the problem.

--
nosy: +xiang.zhang

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Changes by Xiang Zhang :


--
keywords: +patch
Added file: http://bugs.python.org/file44493/issue28040.patch

___
Python tracker 

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



[issue28041] Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()

2016-09-09 Thread Mohanson Leaf

New submission from Mohanson Leaf:

os.stat(file).st_nlink gives 1 but same file's st_nlink from os.scandir(dir) 
gives 0.


"""
Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()
Platform: Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:38:48) [MSC v.1900 
32 bit (Intel)] on win32
"""

import os
import os.path

print('os.stat:', os.stat(__file__).st_nlink)

for entry in os.scandir(os.path.dirname(os.path.abspath(__file__))):
if entry.name == 'stat.py':
print('os.scandir:', entry.stat().st_nlink)

"""
os.stat: 1
os.scandir: 0
"""

--
components: Windows
files: stat.py
messages: 275293
nosy: Mohanson Leaf, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Inconsistent behavior: Get st_nlink from os.stat() and os.scandir()
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file44494/stat.py

___
Python tracker 

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



[issue27889] ctypes interfers with signal handling

2016-09-09 Thread Andre Merzky

Andre Merzky added the comment:

I would appreciate any suggestion on how to avoid this problem -- otherwise it 
seems that I can't reliably use signals in threaded contexts at all :(

Thanks, Andre.

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-09 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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I'm going to push the patch today. But changes to test_extcall look as a 
regression to me.

--

___
Python tracker 

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



[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2016-09-09 Thread Matthew Jacobi

Matthew Jacobi added the comment:

Is there a workaround for this for people on python2? 
Would installing https://pypi.python.org/pypi/email/6.0.0a1 fix it?

> testing release of email6

> This is a standalone version of the version of email package that will ship 
> with Python 3.3. This version can be installed and run under Python3.2. It is 
> intended as a platform for testing the new code, but its final release should 
> also be useable to get the features of the new package under Python 3.2.

--
nosy: +Matthew Jacobi

___
Python tracker 

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



[issue25852] smtplib's SMTP.connect() should store the server name in ._host for .starttls()

2016-09-09 Thread gigaplastik

gigaplastik added the comment:

Here is the updated (3.6.0a4+) patch for the issue with the unit test included.

My unit test only checks for this issue particular artifacts, it does not test 
that .starttls actually works. This is because the current test suite for 
smtplib (Lib/test/test_smtplib.py) does not implement SSL/TLS functionality 
neither in its "debugging server", nor in its "simulated server" and 
implementing it on my own is beyond my expertise. Nevertheless, the provided 
unit test does guarantee .starttls wouldn't break because of the empty ._host 
attribute.
The overall Python test suite also runs successfully with these patches applied.

--
Added file: http://bugs.python.org/file44495/issue25852_v3_with tests.patch

___
Python tracker 

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



[issue27364] Deprecate invalid escape sequences in str/bytes

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 98a57845c8cc by Martin Panter in branch 'default':
Issue #27364: Raw strings to avoid deprecated escaping in com2ann.py
https://hg.python.org/cpython/rev/98a57845c8cc

--

___
Python tracker 

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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

It would be nice to fix this so that the tests pass with -Werror. Here is a 
quick patch:

* Fix the deprecated non-escapes
* Make all the regular expressions raw strings
* Fix bugs with parsing escaped quotes in C strings and char literals
* Adapt from old regex module and Python 2 print statements
* Add a new test file with a single test case (could easily be expanded)

Documentation for the old “regex” module:
https://docs.python.org/release/1.6/lib/module-regex.html

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file44496/fixcid-re.patch

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Martin Panter

Martin Panter added the comment:

How does that tie in with SSLObject.read() and write(). I have never used this 
class, but the documentation refers back to SSLSocket.

It seems there are no recv() etc methods to use as an alternative. So maybe 
deprecate read() and write() on SSLSocket only, and leave SSLObject intact?

--

___
Python tracker 

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



[issue27952] Finish converting fixcid.py from regex to re

2016-09-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks Martin. The patch in general LGTM, but see comments on Rietveld.

--

___
Python tracker 

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



[issue18329] for line in socket.makefile() speed degradation

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

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

mmarkk@mmwork:~$ python2.7 --version
Python 2.7.12

mmarkk@mmwork:~$ python2.7 ./qwe.py
TCP  mode, makefile method. 292731.3 lines per second (279.2 MB/s). Delay is 
3.42 seconds
TCP  mode,   fdopen method. 2410875.9 lines per second (2299.2 MB/s). Delay is 
0.41 seconds
UNIX mode, makefile method. 3247881.6 lines per second (3097.4 MB/s). Delay is 
0.31 seconds
UNIX mode,   fdopen method. 3406528.3 lines per second (3248.7 MB/s). Delay is 
0.29 seconds

mmarkk@mmwork:~$ python3.5 --version
Python 3.5.2

mmarkk@mmwork:~$ python3.5 ./qwe.py 
TCP  mode, makefile method. 822754.8 lines per second (784.6 MB/s). Delay is 
1.22 seconds
TCP  mode,   fdopen method. 1916700.2 lines per second (1827.9 MB/s). Delay is 
0.52 seconds
UNIX mode, makefile method. 999149.7 lines per second (952.9 MB/s). Delay is 
1.00 seconds
UNIX mode,   fdopen method. 2639650.7 lines per second (2517.4 MB/s). Delay is 
0.38 seconds

--
status: pending -> open

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

After some thinking, maybe it could be still kept in Tools but developed on 
github as it is done for typing and asyncio?

I have no preference here, core devs should decide.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread INADA Naoki

INADA Naoki added the comment:

I've forgot to convert split table into combined table when del and .pop().
I'm sorry, and thanks to finding it.

--
Added file: http://bugs.python.org/file44497/fix-compact-dict-deletion.patch

___
Python tracker 

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



[issue27137] Python implementation of `functools.partial` is not a class

2016-09-09 Thread Emanuel Barry

Emanuel Barry added the comment:

The patch LGTM and applies fine. Looks like there's no need to wait for beta 2 
after all; thanks Serhiy!

--

___
Python tracker 

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



[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Nick Coghlan

Nick Coghlan added the comment:

+1 for directing all programmatic configuration through SSLContext

However, implicitly verifying certificates for protocols other than HTTPS needs 
to be contingent on a properly designed approach to configuration that leaves 
informed users in full control of the behaviour of their systems - while I'm 
fully supportive of secure-by-default behaviour to protect unaware users, it's 
also the case that most other protocols haven't had the forcing function of web 
browser behaviour encouraging them to improve their certificate handling, and 
even that's still in a tragically bad state once you get away from the public 
web.

The file based scheme in PEP 493, 
https://www.python.org/dev/peps/pep-0493/#backporting-pep-476-to-earlier-python-versions,
 was deliberately written to be potentially suitable for expansion to other 
protocols, but actually using it for that purpose would require the definition 
of a new feature PEP targeting 3.7 (which may then potentially be pitched for 
backporting to earlier versions as a subsequent proposal).

--
nosy: +ncoghlan

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread INADA Naoki

Changes by INADA Naoki :


Added file: http://bugs.python.org/file44498/fix-compact-dict-deletion.patch

___
Python tracker 

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



[issue28042] Coverity Scan defects in new dict code

2016-09-09 Thread Christian Heimes

New submission from Christian Heimes:

Coverity Scan complains about 30 defects in the new code. Inada, I sent you an 
invite.

30 new defect(s) introduced to Python found with Coverity Scan.
3 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent 
build analyzed by Coverity Scan.

New defect(s) Reported-by: Coverity Scan
Showing 20 of 30 defect(s)


** CID 1372734:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 1133 in insertdict_clean()



*** CID 1372734:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 1133 in insertdict_clean()
1127 insertdict_clean(PyDictObject *mp, PyObject *key, Py_hash_t hash,
1128  PyObject *value)
1129 {
1130 size_t i, perturb;
1131 PyDictKeysObject *k = mp->ma_keys;
1132 size_t mask = (size_t)DK_SIZE(k)-1;
>>> CID 1372734:  Memory - corruptions  (OVERRUN)
>>> "&mp->ma_keys->dk_indices.as_1[mp->ma_keys->dk_size * 
>>> ((mp->ma_keys->dk_size <= 255L) ? 1UL : ((mp->ma_keys->dk_size <= 65535L) ? 
>>> 2UL : ((mp->ma_keys->dk_size <= 4294967295L) ? 4UL : 8UL)))]" evaluates to 
>>> an address that is at byte offset 255 of an array of 8 bytes.
1133 PyDictKeyEntry *ep0 = DK_ENTRIES(mp->ma_keys);
1134 PyDictKeyEntry *ep;
1135 
1136 assert(k->dk_lookup != NULL);
1137 assert(value != NULL);
1138 assert(key != NULL);

** CID 1372733:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 1557 in _PyDict_DelItem_KnownHash()



*** CID 1372733:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 1557 in _PyDict_DelItem_KnownHash()
1551 mp->ma_used--;
1552 mp->ma_version_tag = DICT_NEXT_VERSION();
1553 if (_PyDict_HasSplitTable(mp)) {
1554 mp->ma_keys->dk_usable = 0;
1555 }
1556 else {
>>> CID 1372733:  Memory - corruptions  (OVERRUN)
>>> "&mp->ma_keys->dk_indices.as_1[mp->ma_keys->dk_size * 
>>> ((mp->ma_keys->dk_size <= 255L) ? 1UL : ((mp->ma_keys->dk_size <= 65535L) ? 
>>> 2UL : ((mp->ma_keys->dk_size <= 4294967295L) ? 4UL : 8UL)))]" evaluates to 
>>> an address that is at byte offset 255 of an array of 8 bytes.
1557 ep = &DK_ENTRIES(mp->ma_keys)[ix];
1558 dk_set_index(mp->ma_keys, hashpos, DKIX_DUMMY);
1559 ENSURE_ALLOWS_DELETIONS(mp);
1560 old_key = ep->me_key;
1561 ep->me_key = NULL;
1562 Py_DECREF(old_key);

** CID 1372732:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 871 in lookdict_split()



*** CID 1372732:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 871 in lookdict_split()
865 lookdict_split(PyDictObject *mp, PyObject *key,
866Py_hash_t hash, PyObject ***value_addr, Py_ssize_t 
*hashpos)
867 {
868 size_t i, perturb;
869 size_t mask = DK_MASK(mp->ma_keys);
870 Py_ssize_t ix;
>>> CID 1372732:  Memory - corruptions  (OVERRUN)
>>> "&mp->ma_keys->dk_indices.as_1[mp->ma_keys->dk_size * 
>>> ((mp->ma_keys->dk_size <= 255L) ? 1UL : ((mp->ma_keys->dk_size <= 65535L) ? 
>>> 2UL : ((mp->ma_keys->dk_size <= 4294967295L) ? 4UL : 8UL)))]" evaluates to 
>>> an address that is at byte offset 255 of an array of 8 bytes.
871 PyDictKeyEntry *ep, *ep0 = DK_ENTRIES(mp->ma_keys);
872 
873 /* mp must split table */
874 assert(mp->ma_values != NULL);
875 if (!PyUnicode_CheckExact(key)) {
876 ix = lookdict(mp, key, hash, value_addr, hashpos);

** CID 1372731:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 3433 in dictiter_iternextitem()



*** CID 1372731:  Memory - corruptions  (OVERRUN)
/Objects/dictobject.c: 3433 in dictiter_iternextitem()
3427 } else {
3428 result = PyTuple_New(2);
3429 if (result == NULL)
3430 return NULL;
3431 }
3432 di->len--;
>>> CID 1372731:  Memory - corruptions  (OVERRUN)
>>> "&d->ma_keys->dk_indices.as_1[d->ma_keys->dk_size * 
>>> ((d->ma_keys->dk_size <= 255L) ? 1UL : ((d->ma_keys->dk_size <= 65535L) ? 
>>> 2UL : ((d->ma_keys->dk_size <= 4294967295L) ? 4UL : 8UL)))]" evaluates to 
>>> an address that is at byte offset 255 of an array of 8 bytes.
3433 key = DK_ENTRIES(d->ma_keys)[i].me_key;
3434 value = *value_ptr;
3435 Py_INCREF(key);
3436 Py_INCREF(value);
3437 PyTuple_SET_ITEM(result, 0, key);  /* steals reference */
3438 PyTuple_SET_ITEM(result, 1, value);  /* steals reference */

** CID 1372730:  Memory - illegal accesses  (OVERRUN)

[issue28022] SSL releated deprecation for 3.6

2016-09-09 Thread Christian Heimes

Christian Heimes added the comment:

In the mean time I have reconsidered my position. How about we *document* that 
a future version of Python will very all TLS/SSL connections by default. Users 
have to explicitly pass an unverified context if they still want the old 
behavior.

--

___
Python tracker 

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



[issue27948] f-strings: allow backslashes only in the string parts, not in the expression parts

2016-09-09 Thread Eric V. Smith

Eric V. Smith added the comment:

Updated patch, works against HEAD. I added a few tests and tweaked some 
comments. My goal is to commit this today, before the 3.6b1 cutoff. I don't 
think there's much risk to it.

I still need to update the PEP.

--
Added file: http://bugs.python.org/file44499/27948-2.diff

___
Python tracker 

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



[issue28043] Sane defaults for SSLContext options and ciphers

2016-09-09 Thread Christian Heimes

New submission from Christian Heimes:

I like to introduce sane defaults for SSLContext options and ciphers:

Changed in version 3.6: The context is created with more secure default values. 
PROTOCOL_TLS is the default protocol. The options OP_NO_COMPRESSION, 
OP_CIPHER_SERVER_PREFERENCE, OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE, OP_NO_SSLv2 
(except for PROTOCOL_SSLv2), and OP_NO_SSLv3 (except for PROTOCOL_SSLv3) are 
set by default. The initial cipher suite list contains only HIGH ciphers, no 
NULL ciphers and MD5 ciphers (except for PROTOCOL_SSLv2).

--
components: Extension Modules, Library (Lib)
files: Sane-defaults-for-SSLContext-options-and-ciphers.patch
keywords: patch
messages: 275310
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, ncoghlan
priority: high
severity: normal
stage: patch review
status: open
title: Sane defaults for SSLContext options and ciphers
type: security
versions: Python 3.6, Python 3.7
Added file: 
http://bugs.python.org/file44500/Sane-defaults-for-SSLContext-options-and-ciphers.patch

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Xiang Zhang added the comment:

Are you sure INADA? The previous dict implementation has the same constraint 
but does merge in dict_pop.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Xiang Zhang added the comment:

does should be does not. Sorry.

--

___
Python tracker 

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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2016-09-09 Thread Eric V. Smith

Changes by Eric V. Smith :


--
assignee:  -> eric.smith
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



[issue27910] Doc/library/traceback.rst — references to tuples should be replaced with new FrameSummary object

2016-09-09 Thread Petr Viktorin

Petr Viktorin added the comment:

This was a deliberate change in 3.5.

Issue: https://bugs.python.org/issue17911
News entry: https://docs.python.org/3/whatsnew/3.5.html#traceback

Why do you think it is a regression?
Who would be the person that can decide if it is a doc bug or regression?

--
nosy: +encukou

___
Python tracker 

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



[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

I am attaching the patch.

Yury, I also added you here, just in case you have time for this.

Btw, while working on this I have found that the second restriction:

"""
Names listed in a global statement must not be ... in a for loop control 
target, class definition, function definition, or import statement.
"""

is not enforced at all, it does not give even a SyntaxWarning.
Is it something worth fixing?

--
keywords: +patch
nosy: +yselivanov
Added file: http://bugs.python.org/file44501/patch-v1.diff

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-09 Thread Batiste

New submission from Batiste:

Hi,

Here is a small patch for the documentation that make the sidebar follow the 
headers while scrolling through a long page.

http://imgur.com/UsrFAti

Test on Chrome and Firefox. Seems to work like a charm.

--
assignee: docs@python
components: Documentation
files: following-sidebar.patch
keywords: patch
messages: 275315
nosy: batiste, docs@python
priority: normal
severity: normal
status: open
title: Make the sidebar in the documentation follow the section automatically
type: enhancement
Added file: http://bugs.python.org/file44502/following-sidebar.patch

___
Python tracker 

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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The problem can be reproduced as follows:

Run the following commands to install python with a site configuration file 
that installs the libraries to lib64:

  export INSTALL_DIR=/some/path/to/install
  mkdir -p $INSTALL_DIR/share
  echo "test \"\$libdir\" = '\${exec_prefix}/lib' && 
libdir='\${exec_prefix}/lib64'" > $INSTALL_DIR/share/config.site
  ./configure --prefix=$INSTALL_DIR && make install

Check that the libraries have been installed to lib64 and that python fails to 
find them:

$ find $INSTALL_DIR -name lib-dynload
/some/path/to/install/lib64/python3.6/lib-dynload

$ $INSTALL_DIR/bin/python3 -E
Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Python 3.6.0a4+ (default:98a57845c8cc, Sep  9 2016, 15:34:27) 
[GCC 6.1.1 20160707] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
Traceback (most recent call last):
  File "", line 1, in 
  File "/some/path/to/install/lib/python3.6/base64.py", line 10, in 
import struct
  File "/some/path/to/install/lib/python3.6/struct.py", line 13, in 
from _struct import *
ModuleNotFoundError: No module named '_struct'
>>>

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread INADA Naoki

INADA Naoki added the comment:

> Xiang Zhang added the comment:
>
> Are you sure INADA? The previous dict implementation has the same constraint 
> but does merge in dict_pop.
>

Yes.  New dict implementation preserves insertion order.

class A:
...

a, b = A(), A()
a.a, a.b, a.c = 1, 2, 3
b.a, b.b, b.c = 4, 5, 6
del a.b  # or a.pop('b')
a.b = 7

assert list(a.__dict__) == ["a", "c", "b"]
assert list(b.__dict__) == ["a", "b", "c"]

This is difficult for key-sharing dict (aka. split table).

We may be able to allow some simple del and pop operation for split table.
But we should keep best balance between simplicity and efficiency.
And we don't have enough time before 3.6b1.

--

___
Python tracker 

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



[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Ivan Levkivskyi

Ivan Levkivskyi added the comment:

Added few tests to the patch

--
Added file: http://bugs.python.org/file44503/patch-v2.diff

___
Python tracker 

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



[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-09-09 Thread Xavier de Gaye

Xavier de Gaye added the comment:

The problem is that Makefile and Modules/getpath.c are not consistent:
* Makefile uses $(LIBDIR)/python$(VERSION)/lib-dynload as the location of the 
installed shared libraries and in this issue, it happens that LIBDIR is not 
${exec_prefix}/lib but is ${exec_prefix}/lib64 instead.
* Py_GetPath() in Modules/getpath.c uses the concatenation of EXEC_PREFIX with 
"lib/python", VERSION and "lib-dynload" to construct the corresponding sys.path 
entry when falling back to using the EXEC_PREFIX preprocessor variable.

Another problem may be that with this issue, Py_GetPath() constructs the string 
"/some/path/to/install/lib/lib-dynload" missing entirely the python$(VERSION) 
component part (as shown by sys.path in the interpreter).

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Matthias Bussonnier

Matthias Bussonnier added the comment:

> I'm sorry, and thanks to finding it.

No worries, that's what nightly are for right ? And I only dug up a failing 
tests :-) Thanks to you for writing this !

> [snip]
> This is difficult for key-sharing dict (aka. split table).

I'm not going to pretend I understand the details, though I applied the latest 
patch: 
fix-compact-dict-deletion.patch methane, 2016-09-09 04:11

And it does fix this issue for me (at least on my local machine)

Looking at the code the only thing I see is that you seem to return NULL in Pop 
and -1 in Clear. Not sure if this what you meant, I'm un familar with all this; 
but thanks a lot again for the your work and the quick response.

--

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Changes by Xiang Zhang :


Removed file: http://bugs.python.org/file44493/issue28040.patch

___
Python tracker 

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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread Xiang Zhang

Changes by Xiang Zhang :


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

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-09 Thread SilentGhost

SilentGhost added the comment:

I get the following warning in Firefox's Developer console: 

This site appears to use a scroll-linked positioning effect. This may not work 
well with asynchronous panning; see 
https://developer.mozilla.org/docs/Mozilla/Performance/ScrollLinkedEffects for 
further details and to join the discussion on related tools and features!

It would also be good to clear up a patch a little bit: the first chunk in 
sidebar.js seems spurious, the '.headerlink .headerlink' selector also looks 
odd. The nested menu items (e.g. in os.html) seem to confuse your code and make 
navigation non-functional.

--
nosy: +SilentGhost
stage:  -> needs patch
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



[issue28040] compact dict : SystemError: returned NULL without setting an error.

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

I would really appreciate if someone can write an unit test.

I'm not confident to fix a bug without unit test, on such tricky part of Python 
internals (splitted/combined dict).

--

___
Python tracker 

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



[issue27959] Add 'oem' encoding

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e80a157ea66 by Steve Dower in branch 'default':
Revert #27959: ImportError within an encoding module should also skip the 
encoding
https://hg.python.org/cpython/rev/4e80a157ea66

--

___
Python tracker 

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



[issue27959] Add 'oem' encoding

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

Last commit was supposed to be for issue28005

--

___
Python tracker 

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



[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 801634d3c105 by Steve Dower in branch 'default':
Issue #27781: Fixes uninitialized fd when !MS_WINDOWS and !HAVE_OPENAT
https://hg.python.org/cpython/rev/801634d3c105

--

___
Python tracker 

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



[issue28008] PEP 530, asynchronous comprehensions implementation

2016-09-09 Thread Yury Selivanov

Changes by Yury Selivanov :


Added file: http://bugs.python.org/file44504/asyncomp.patch

___
Python tracker 

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



[issue28005] Broken encoding modules are silently skipped.

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

I reverted the change but wrote the wrong issue number. Also added a comment so 
the next person to encounter this realises it is the correct behaviour.

New changeset 4e80a157ea66 by Steve Dower in branch 'default':
Revert #27959: ImportError within an encoding module should also skip the 
encoding
https://hg.python.org/cpython/rev/4e80a157ea66

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

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 35447332ab19 by Guido van Rossum in branch 'default':
Issue #28038: Remove Tools/parser/com2ann.py and its unit test.
https://hg.python.org/cpython/rev/35447332ab19

--
nosy: +python-dev

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Guido van Rossum

Guido van Rossum added the comment:

I just deleted it, lest people try to report bugs here or make changes.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue28038] Remove com2ann script (will be in separate repo)

2016-09-09 Thread Guido van Rossum

Guido van Rossum added the comment:

(The reason for the removal is that development of this tool is moving
to https://github.com/ilevkivskyi/com2ann -- it was committed briefly
as part of the PEP 526 patch.)

On Fri, Sep 9, 2016 at 9:07 AM, Guido van Rossum  wrote:
>
> Guido van Rossum added the comment:
>
> I just deleted it, lest people try to report bugs here or make changes.
>
> --
> resolution:  -> fixed
> status: open -> closed
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue22257] PEP 432: Redesign the interpreter startup sequence

2016-09-09 Thread Eric Snow

Eric Snow added the comment:

It may be worth refactoring the patch relative to the new C99 support.

--
nosy: +eric.snow

___
Python tracker 

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



[issue27781] Change sys.getfilesystemencoding() on Windows to UTF-8

2016-09-09 Thread Mark Dickinson

Mark Dickinson added the comment:

That seems to have done the trick. Thanks!

--

___
Python tracker 

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



[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Guido van Rossum

Guido van Rossum added the comment:

I'll commit this.

--
assignee: docs@python -> gvanrossum

___
Python tracker 

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



[issue28039] x86 Tiger buildbot needs __future__ with_statement

2016-09-09 Thread Ned Deily

Ned Deily added the comment:

We could also ask David, the buildbot owner, if he could update the Python used 
for hg.  I'm pretty sure it's not the system Python since that's too old.

--
nosy: +db3l, ned.deily

___
Python tracker 

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



[issue12619] Automatically regenerate platform-specific modules

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

The platform-specific modules have been removed.

--
nosy: +zach.ware
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
superseder:  -> Remove Lib/plat-*/* files

___
Python tracker 

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



[issue24254] Make class definition namespace ordered by default

2016-09-09 Thread Ethan Furman

Ethan Furman added the comment:

Is this going to be added back?  Should I add __definition_order__ to Enum?

--

___
Python tracker 

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



[issue1565071] update Lib/plat-linux2/IN.py

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

This file was moved long ago and has now been completely removed.

--
nosy: +zach.ware
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Remove Lib/plat-*/* files

___
Python tracker 

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



[issue25257] In subject line email library inserts unwanted space after a thousands comma in a number

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

No, that is python3 code, it doesn't work on python2.  There's no workaround 
other than to back port the fix.

--

___
Python tracker 

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



[issue1602] windows console doesn't print or input Unicode

2016-09-09 Thread Steve Dower

Changes by Steve Dower :


--
dependencies:  -Python interactive console doesn't use sys.stdin for input
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



[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

The platform-specific modules have been removed.

--
nosy: +zach.ware
resolution:  -> out of date
stage: needs patch -> resolved
status: open -> closed
superseder:  -> Remove Lib/plat-*/* files

___
Python tracker 

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



[issue26513] platform.win32_ver() broken in 2.7.11

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aeb39d4475c5 by Steve Dower in branch '3.5':
Issue #26513: Fixes platform module detection of Windows Server
https://hg.python.org/cpython/rev/aeb39d4475c5

New changeset 67c50dd3fcea by Steve Dower in branch 'default':
Issue #26513: Fixes platform module detection of Windows Server
https://hg.python.org/cpython/rev/67c50dd3fcea

--

___
Python tracker 

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



[issue26513] platform.win32_ver() broken in 2.7.11

2016-09-09 Thread Steve Dower

Steve Dower added the comment:

We now use 'product_type' on 3.5+ and 'product' on 2.7, so we should be good.

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



[issue19554] Enable all freebsd* host platforms

2016-09-09 Thread Zachary Ware

Zachary Ware added the comment:

The platform-specific modules have been removed.

--
nosy: +zach.ware
resolution:  -> out of date
stage:  -> resolved
status: open -> closed
superseder:  -> Remove Lib/plat-*/* files

___
Python tracker 

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



[issue24646] Python accepts SSL certificate that should be rejected on OSX

2016-09-09 Thread Ned Deily

Ned Deily added the comment:

We will no longer use the OS X system OpenSSL for 3.6.

--
resolution: not a bug -> third party
stage:  -> resolved
status: pending -> closed

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

-1.  I don't like sites that do this, and don't want ours to be one of them.

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



[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Guido van Rossum

Guido van Rossum added the comment:

Thanks again Ivan!

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue27999] Make "global after use" a SyntaxError

2016-09-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 804b71d43c85 by Guido van Rossum in branch 'default':
Issue #27999: Make "global after use" a SyntaxError, and ditto for nonlocal.
https://hg.python.org/cpython/rev/804b71d43c85

--
nosy: +python-dev

___
Python tracker 

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



[issue24254] Make class definition namespace ordered by default

2016-09-09 Thread Brett Cannon

Brett Cannon added the comment:

Nope, PEP 520 has been updated to drop __definition_order__ and instead state 
that cls.__dict__ is an ordered mapping.

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

> I'm going to push the patch today.

I'm going to push the patch in ~10 min since I don't see it pushed yet.

> But changes to test_extcall look as a regression to me.

I agree that it looks like a regression, but it might be tricky to
retrieve the function name from the stack. I'm not even sure that the
function name is always already on the stack.

Again, I have to rush before of the feature freeze, but I hope that we
will find a smart solution for this error message.

--

___
Python tracker 

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



[issue27945] Various segfaults with dict

2016-09-09 Thread Emanuel Barry

Emanuel Barry added the comment:

Ping. The built-in dict was considerably changed in #27350; do any of these 
issues still persist?

--

___
Python tracker 

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



[issue28044] Make the sidebar in the documentation follow the section automatically

2016-09-09 Thread R. David Murray

R. David Murray added the comment:

But thanks for the interest and writing the patch.  Others may disagree with me 
and it may go in anyway :)

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-09 Thread STINNER Victor

STINNER Victor added the comment:

> Please wait. I just have sat down at my computer.

Oh, you are here :-) Go ahead!

--

___
Python tracker 

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



[issue27213] Rework CALL_FUNCTION* opcodes

2016-09-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Please wait. I just have sat down at my computer.

--

___
Python tracker 

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



  1   2   3   4   >