[issue28512] PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject() always set the offset attribute to None

2016-12-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, it was a remnants of backporting to 3.5. Commented-out lines are used in 
3.6. The line above these lines was used in 3.5. Test is passed with both 
variants. I commented out the 3.6 variant, but forgot to remove it (or remove 
old 3.5 variant and keep 3.6 variant). Do you think I should remove commented 
out lines, or left the code as is?

--

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread arpit arora

arpit arora added the comment:

Hi Steve,

I only installed the mentioned version and if there is any update for the same 
then i may not be aware of that.

Thanks & Regards
Arpit Arora

--

___
Python tracker 

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



[issue28958] Python should return comperhansive error when SSLContext cannot be created

2016-12-12 Thread Ilya Kulakov

New submission from Ilya Kulakov:

When SSLContext cannot be created, python raises an SSLError exception with 
"failed to allocate SSL context".

https://hg.python.org/cpython/file/4def2a2901a5/Modules/_ssl.c#l2260

This is completely useless to debug the error. In fact many errors raised from 
_ssl.c are non-helpful.

Python's SSLError should be extended to include comprehensive information about 
OpenSSL's error stack which can be extracted with `ERR_get_error_line`.

--
assignee: christian.heimes
components: SSL
messages: 283078
nosy: Ilya.Kulakov, christian.heimes
priority: normal
severity: normal
status: open
title: Python should return comperhansive error when SSLContext cannot be 
created
type: enhancement
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



[issue26110] Speedup method calls 1.2x

2016-12-12 Thread INADA Naoki

INADA Naoki added the comment:

> Technically the patch LGTM. But we should find the cause of the regression in 
> some benchmarks.

The benchmark is on Sandy Bridge (Core i5 2400) and I didn't use PGO build.
perf_event reported branch-miss rate increase at cpickle's save function.

I'll rerun benchmark with PGO build. I hope PGO is friendly with CPU branch
prediction, like L1/L2 cache.

Anyway, recent amd64 CPUs have more large branch history.

> And would be nice to extend the optimization to C functions.
> In any case this optimization is worth mentioning in What's New.

I'll do them.

--

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Julien Palard

Julien Palard added the comment:

Hi Larry,

Do you mean a new converter in clinic.py like Nullable_Py_ssizze_t, or a 
converter that I copy/paste every time I need it like 
http://bugs.python.org/review/28754/patch/19417/76440 ?

--

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Technically the patch LGTM. But we should find the cause of the regression in 
some benchmarks.

And would be nice to extend the optimization to C functions.

In any case this optimization is worth mentioning in What's New.

--

___
Python tracker 

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



[issue28957] undefined symbol: PyUnicodeUCS2_FromUnicode when executing any command with pip2.7

2016-12-12 Thread Ramakrishna Kommineni

New submission from Ramakrishna Kommineni:

Hi,

I have installed python from source in the directory 
/home/rkommine/software/python2.7.
During installation there are no errors seen.
I have added the below environment variables to my bashrc

export 
PATH=/home/rkommine/software/python2.7.12/bin:/home/rkommine/software/tcltk8.6.6/bin:$PATH
export 
LD_LIBBRARY_PATH=/home/rkommine/software/python2.7.12/lib:$LD_LIBBRARY_PATH

rkommine@rubuntu:~/Downloads$ which python2.7
/home/rkommine/software/python2.7.12/bin/python2.7
rkommine@rubuntu:~/Downloads$ python2.7 --version
Python 2.7.12
rkommine@rubuntu:~/Downloads$ which pip2.7
/home/rkommine/software/python2.7.12/bin/pip2.7

But when I execute any command with pip2.7 I am getting the below errors

rkommine@rubuntu:~/Downloads$ pip2.7 --version
Traceback (most recent call last):
  File "/home/rkommine/software/python2.7.12/bin/pip2.7", line 7, in 
from pip import main
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/__init__.py",
 line 16, in 
from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/vcs/subversion.py",
 line 9, in 
from pip.index import Link
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/index.py",
 line 30, in 
from pip.wheel import Wheel, wheel_ext
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/wheel.py",
 line 32, in 
from pip import pep425tags
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/pep425tags.py",
 line 9, in 
import ctypes
  File "/home/rkommine/software/python2.7.12/lib/python2.7/ctypes/__init__.py", 
line 7, in 
from _ctypes import Union, Structure, Array
ImportError: 
/home/rkommine/software/python2.7.12/lib/python2.7/lib-dynload/_ctypes.so: 
undefined symbol: PyUnicodeUCS2_FromUnicode
rkommine@rubuntu:~/Downloads$ pip2.7 install robotframework
Traceback (most recent call last):
  File "/home/rkommine/software/python2.7.12/bin/pip2.7", line 7, in 
from pip import main
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/__init__.py",
 line 16, in 
from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/vcs/subversion.py",
 line 9, in 
from pip.index import Link
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/index.py",
 line 30, in 
from pip.wheel import Wheel, wheel_ext
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/wheel.py",
 line 32, in 
from pip import pep425tags
  File 
"/home/rkommine/software/python2.7.12/lib/python2.7/site-packages/pip/pep425tags.py",
 line 9, in 
import ctypes
  File "/home/rkommine/software/python2.7.12/lib/python2.7/ctypes/__init__.py", 
line 7, in 
from _ctypes import Union, Structure, Array
ImportError: 
/home/rkommine/software/python2.7.12/lib/python2.7/lib-dynload/_ctypes.so: 
undefined symbol: PyUnicodeUCS2_FromUnicode
rkommine@rubuntu:~/Downloads$ 

Could you please help to fix this error?
Thanks in advance.

--
components: ctypes
files: Installation.Log.txt
messages: 283074
nosy: Ramakrishna Kommineni
priority: normal
severity: normal
status: open
title: undefined symbol: PyUnicodeUCS2_FromUnicode when executing any command 
with pip2.7
type: crash
versions: Python 2.7
Added file: http://bugs.python.org/file45869/Installation.Log.txt

___
Python tracker 

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



[issue25458] ftplib: command response shift - mismatch

2016-12-12 Thread Ivan Pozdeev

Ivan Pozdeev added the comment:

I tried to fix `urllib' and ultimately failed. In a nutshell, handling of the 
aftermath of an `ntransfercmd' is broken.

Since `ntransfercmd'/`transfercmd' returns a socket, handling of an 
end-of-transmission response is done in independently invoked code - upon the 
socket's close. So, if any other operation on the command connection is 
attempted before that, `ftplib's handling of the session breaks.

The plan to fix follows, but first, some background:

According to 
http://stackoverflow.com/questions/2549829/using-ftplib-for-multithread-uploads 
, FTP actually doesn't, and is not designed to, handle transfers in 
"background". In that you surely can send a further command on the socket, but 
the server won't actually read it until it's done with the transfer.

According to 
http://stackoverflow.com/questions/31560701/ftp-data-connections-reuse , data 
connections cannot be reused.

(RFC959 is vague on both points)

Now, the proposed fix design:

* upon starting a transfer, an FTP object sets a flag, `transfer_in_progress'.
* any public subroutine that would send a further command checks the flag. 
Then, there are a few options:
a) refuse any further commands outright until the user explicitly closes 
the socket (whose close handler would also handle the end-of-transfer response)
b) check the wire for an end-of-transfer response and if it's there, handle 
it and allow the command. Closing the socket may or may not handle the response 
in its own right.
c) allow the command even if there's no end-of-transfer response. Then 
handling of the transfer response is done with the function parsing the 
response for the new command - which will hang until the transfer is complete.
* the code handling the end-of-transfer response clears the flag.

Each option has drawbacks, so I'm not sure which one is the most pythonic.
I would go with b) because it would allow syntax like 
urllib.urlopen(<...>).read() which it does allow for HTTP.

--

___
Python tracker 

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



[issue28091] Document PEP 525

2016-12-12 Thread Eric Appelt

Eric Appelt added the comment:

I believe that I addressed all the comments in the previous review (although 
its always possible I missed something), and have a new patch with the 
improvements and fixes.

I also noticed that in asyncio, loop.shutdown_asyncgens() is a coroutinemethod 
and fixed the markup to reflect that as I previously labeled it a method. The 
example I added here is as suggested, but it differs from the example in PEP525 
in that shutdown_asyncgens() is run in a finally clause, which makes sense to 
me.

When applying the comments to sys.set_asyncgen_hooks() I verified that the 
keywords are optional but it is apparently not keyword only. I couldn't find 
many good examples of referencing source, so you may want to closely check how 
I linked to the shutdown_asyncgens() implementation.

--
Added file: http://bugs.python.org/file45868/pep525_pep530_docs_v1.patch

___
Python tracker 

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



[issue28956] return minimum of modes for a multimodal distribution instead of raising a StatisticsError

2016-12-12 Thread Srikanth Anantharam

New submission from Srikanth Anantharam:

return minimum of modes for a multimodal distribution

instead of raising a StatisticsError

--
components: Library (Lib)
messages: 283071
nosy: Srikanth Anantharam
priority: normal
pull_requests: 3
severity: normal
status: open
title: return minimum of modes for a multimodal distribution instead of raising 
a StatisticsError
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue28955] Not matched behavior of numeric comparison with the documentation

2016-12-12 Thread woo yoo

woo yoo added the comment:

Maybe the description should be changed into "all order comparisons of 
not-a-number and any number will return False"

--

___
Python tracker 

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



[issue28955] Not matched behavior of numeric comparison with the documentation

2016-12-12 Thread woo yoo

New submission from woo yoo:

According to the documentation, which said "Additionally, comparing any number 
to a not-a-number value will return False. ",the comparison of `float('nan')!= 
1`should yield False, while the result is True.

Small errors like this in documentation should be corrected?

The related link 
https://docs.python.org/3/reference/expressions.html#value-comparisons

--
assignee: docs@python
components: Documentation
messages: 283069
nosy: docs@python, woo yoo
priority: normal
severity: normal
status: open
title: Not matched behavior of numeric comparison with the documentation
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I forget if there was a reason for choosing RawConfigParser over ConfigParaer 
with interpolation=None. I'd like to know that before choosing the latter. I'd 
also like to see if appropriate the implementation patched in Setuptools, 
providing compatibility for older Pythons. 

Also, +1 for a test.

--

___
Python tracker 

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



[issue28950] regrtest: -j0 fails the check -j is not allowed together with -T/-l

2016-12-12 Thread Xiang Zhang

Changes by Xiang Zhang :


--
versions: +Python 2.7
Added file: 
http://bugs.python.org/file45867/test-command-line-j0-with-test.patch

___
Python tracker 

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



[issue26110] Speedup method calls 1.2x

2016-12-12 Thread INADA Naoki

Changes by INADA Naoki :


Added file: http://bugs.python.org/file45866/call_method_5.patch

___
Python tracker 

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



[issue28954] Incorrect EBNF rule of keywords_arguments

2016-12-12 Thread woo yoo

New submission from woo yoo:

This is the documented rule, which lacks a comma within the last line.
keywords_arguments   ::=  (keyword_item | "**" expression)
  ("," keyword_item | "**" expression)*
The correct form should be:
keywords_arguments   ::=  (keyword_item | "**" expression)
  ("," keyword_item |",""**" expression)*

The original documentation is 
https://docs.python.org/3/reference/expressions.html#calls

--
assignee: docs@python
components: Documentation
messages: 283067
nosy: docs@python, woo yoo
priority: normal
severity: normal
status: open
title: Incorrect EBNF rule of keywords_arguments
versions: Python 3.5

___
Python tracker 

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



[issue28944] A lack of line 6

2016-12-12 Thread Josh Rosenberg

Josh Rosenberg added the comment:

You're reusing the same issue for completely different things. Make a separate 
issue for separate docs issues.

--
nosy: +josh.r

___
Python tracker 

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



[issue26876] Extend MSVCCompiler class to respect environment variables

2016-12-12 Thread Steve Dower

Steve Dower added the comment:

I'd rather only take the change to _msvccompiler and not the ones that are 
there for historical interest (a.k.a. backwards compatibility with people who 
never expect internal implementation details to change).

If any tools break because they're using the wrong compiler class, please file 
a bug against them.

I didn't check the 2.7 file, but the one for master is fine.

--

___
Python tracker 

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



[issue28923] Nonexisting encoding specified in Tix.py

2016-12-12 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I am a little puzzled as to how a file rename changed the content, but the 
annotation history seems to show that.  Anyway, ...

When I load the file in IDLE 2.7, I get a warning.  I am a bit surprised as 
this is not a proper encoding declaration.  IDLE's re must be a bit loose.

In 3.x, the file starts with

# -*-mode: python; fill-column: 75; tab-width: 8 -*-
#
# $Id$
#

This is all ancient, obsolete, junk specific to some editor.  (The file itself 
not used 4 space indents.) I think it should be removed from all current 
versions.  As near as I can tell, there are no non-ascii chars in the file.

--

___
Python tracker 

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



[issue28949] Stdlib modules disappear from file system

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I've reinstalled Dropbox, downgrading to 15.4.22. I'll see if that helps.

--

___
Python tracker 

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



[issue28949] Stdlib modules disappear from file system

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I don't think hard links are involved. I see symlinks in the .tox/python 
virutalenv, and virtualenv defaults to creating symlinks 
(https://github.com/pypa/virtualenv/blob/master/virtualenv.py#L565-L570) and 
falls back to copying files rather than hard linking.

--

___
Python tracker 

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



[issue28949] Stdlib modules disappear from file system

2016-12-12 Thread Ned Deily

Ned Deily added the comment:

That's sounding better, thanks.  Out of curiosity, are there hard links 
involved?

--

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Larry Hastings

Larry Hastings added the comment:

I don't want this change committed to CPython, you can do what you need with a 
converter so do that.

--

___
Python tracker 

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



[issue28091] Document PEP 525

2016-12-12 Thread Eric Appelt

Eric Appelt added the comment:

Yes - I'll work on the patch tonight.

--

___
Python tracker 

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



[issue28949] Stdlib modules disappear from file system

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I've just encountered what appears to be a different manifestation of the same 
issue. I unlinked the .tox directory and that rendered importlib broken.

$ pwd
/Users/jaraco/yg/queso
$ rm -R .tox
$ python
Python 3.6.0rc1 (v3.6.0rc1:29a273eee9a5, Dec  6 2016, 16:24:13) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
$ python -m tox
Could not import runpy module
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", 
line 15, in 
import importlib.util
ModuleNotFoundError: No module named 'importlib.util'
$ ls /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/importlib
__init__.py __pycache__ _bootstrap.py   
_bootstrap_external.py  abc.py  machinery.py

Although I'm not certain that another process wasn't involved, I'm confident 
that it was the removal of the .tox directory (and interaction with Dropbox) 
that caused the corruption.

--
title: Unable to launch Python interpreter -> Stdlib modules disappear from 
file system

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Before disabling SIP, I found I could use fs_usage to get some visibility into 
fs changes:

sudo fs_usage -w -f filesys | grep aliases.py

To test my understanding of fs_usage, I deleted aliases.py (also confirming 
that triggers the error). When I did so, I noticed something interesting - my 
Dropbox account detected deletion of 34 instances of a file called aliases.py. 
A quick search reveals that I have about 34 virtualenvs created by tox, each of 
which links .tox/python/lib/python3.6/encodings to 
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings.

Now I'm suspecting that there's a race condition where Dropbox ends up deleting 
the system file. Either that, or there's a buggy piece of code somewhere that's 
deleting encodings/aliases.py (and possibly other files) in one of these 
virtualenvs, causing the file to be deleted in the system.

I'm using Dropbox v16.3.27 
(https://www.dropboxforum.com/t5/Desktop-client-builds/Beta-Build-16-3-27/td-p/197057).

I'll continue to investigate, but I'm becoming increasingly suspicious of this 
being an environmental problem.

--

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

First, it looks weird if the default value affects accepted types. Second, how 
many use cases for your converter besides the bisect module?

--

___
Python tracker 

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



[issue28512] PyErr_SyntaxLocationEx() and PyErr_SyntaxLocationObject() always set the offset attribute to None

2016-12-12 Thread Berker Peksag

Berker Peksag added the comment:

Hi Serhiy, there are two commented-out lines in 
https://hg.python.org/cpython/rev/ea1c49ea8136#l3.10 (only in 3.5)


+#with self.assertRaises(AssertionError):
+#support.check_syntax_error(self, "x=1")

--
nosy: +berker.peksag

___
Python tracker 

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



[issue28089] asyncio: Document that TCP_NODELAY is now used by default

2016-12-12 Thread Yury Selivanov

Yury Selivanov added the comment:

> Yury, look good to you?

Yes; committed the patch with a small addition.  Thanks, Mariatta!

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



[issue28089] asyncio: Document that TCP_NODELAY is now used by default

2016-12-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 853e3f4d6cd9 by Yury Selivanov in branch '3.6':
Issue #28089: Document TCP_NODELAY in asyncio
https://hg.python.org/cpython/rev/853e3f4d6cd9

New changeset 0d209cc7ffdc by Yury Selivanov in branch 'default':
Merge 3.6 (issue #28089)
https://hg.python.org/cpython/rev/0d209cc7ffdc

--

___
Python tracker 

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



[issue28953] Use `raise from` when raising new IncompleteRead

2016-12-12 Thread Ram Rachum

Changes by Ram Rachum :


--
type:  -> behavior

___
Python tracker 

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



[issue28953] Use `raise from` when raising new IncompleteRead

2016-12-12 Thread Ram Rachum

New submission from Ram Rachum:

I had this error come up in my code, and because it doesn't use `raise ... 
from` I thought that the second error was unexpected, while in fact it wasn't. 
This patch should fix that.

--
components: Library (Lib)
files: 1.patch
keywords: patch
messages: 283052
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Use `raise from` when raising new IncompleteRead
versions: Python 3.7
Added file: http://bugs.python.org/file45865/1.patch

___
Python tracker 

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



[issue28919] Simplify `_copy_func_details` in unittest.mock

2016-12-12 Thread Michael Foord

Michael Foord added the comment:

Yep, looks good to me to.

--

___
Python tracker 

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



[issue28932] Fail compile Python 3.6.0rc1 on OpenBSD 6.0

2016-12-12 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +haypo
stage:  -> patch review
versions: +Python 3.7

___
Python tracker 

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



[issue28089] asyncio: Document that TCP_NODELAY is now used by default

2016-12-12 Thread Ned Deily

Ned Deily added the comment:

Yury, look good to you?

--
stage: patch review -> commit review
versions: +Python 3.7

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Julien Palard

Julien Palard added the comment:

> for just one use case

I don't think that using None in a default argument is "one use case", nor a 
"special case" it's more like a "widly used pattern" that I'd like to make 
simple to implement (also see http://bugs.python.org/issue28754#msg282891).

I'm not sure you're against my idea of accepting None like:

something: Py_ssize_t(c_default="-1") = None

Or you're against my implementation, which I can understand, I'm not a fan of 
modifying getargs.c for this, it may be doable by implementing a new converter 
in clinic.py like "Py_ssize_t_optional", and it may not require more work than 
modifying getargs.c.

But AC is already defining 4 different "default values", counting the "= value" 
from the AC DSL, I'm not sure that adding the "optional" string somewhere make 
any of this clearer, typically what about the semantic difference between:

something: Py_ssize_t_optional()

and

something: Py_ssize_t() = None

So my original idea was to accept "= None" indistinctly of the used type, I 
mean allowing:

something: Py_ssize_t(c_default=…) = None
something: float(c_default=…) = None
something: double(c_default=…) = None
…
…

Which is, I think, one of the clearest way to express "It's an optional 
parameter, on the Python side the default value is None, but c-side the default 
value is of the right type an is …".

In other words, I'm proposing to optionally extend the "c_default" usage from 
"not given" to "not given or given None".

I failed to implement if for any types, mainly because AC is delegating to 
getargs for Py_ssize_t, so I though starting with my specific need (Py_ssize_t 
for issue28754) was a good start and POC.

Another solution may be to change the Py_ssize_t_converter to drop the 
format_unit, allowing us to implement the converter in clinic instead of 
getargs.c. It's opening a long term door of completly dropping non-"O" format 
units. I mean, if we drop every non-"O" format units in clinic we'll be able to 
use a faster implementation of _PyArg_ParseStack, one not parsing a 
mini-arg-definition-language at runtime (the "OO|nO&:").

I'm willing to implement something clean for this but please be more precise in 
your feedback.

--

___
Python tracker 

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



[issue28923] Nonexisting encoding specified in Tix.py

2016-12-12 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +serhiy.storchaka, terry.reedy
stage:  -> patch review
type: compile error -> behavior

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Looks like I can [disable 
SIP](http://internals.exposed/blog/dtrace-vs-sip.html) and dtrace will be 
viable.

--

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I thought I was on to something when I found this technique for using dtrace to 
detect a file deletion: 
https://blogs.oracle.com/zoneszone/entry/who_keeps_removing_that_file

However, I don't seem to have privilege to run it.

$ cat trap-aliases-delete 
#! /usr/sbin/dtrace -wqs

syscall::unlinkat:entry
/cleanpath(copyinstr(arg1)) == 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/aliases.py"/
{
stop();
printf("%s[%d] caught removing aliases.py\n", execname, pid);
system("ptree %d; pstack %d; prun %d", pid, pid, pid);
}
$ sudo ./trap-aliases-delete
dtrace: system integrity protection is on, some features will not be available

dtrace: could not enable tracing: Permission denied

--

___
Python tracker 

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



[issue28919] Simplify `_copy_func_details` in unittest.mock

2016-12-12 Thread Berker Peksag

New submission from Berker Peksag:

Thanks for the patch. I only did a quick review, but it looks good to me.

--
nosy: +berker.peksag, michael.foord
stage:  -> patch review

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

I am using the python.org rc1 installer, confirmed to match the public md5 sum:

$ md5 ~/Downloads/python-3.6.0rc1-macosx10.6.pkg 
MD5 (/Users/jaraco/Downloads/python-3.6.0rc1-macosx10.6.pkg) = 
404c390ae27f067aaab34f168cf913eb

I downloaded ClamXav and had it scan my entire system. It found nothing of 
interest, only two Windows exploits, one in a driver from Asus and another in 
an attachment to an e-mail that was already filed as junk. It also found two 
"Eicar-Test-Signature" hits in old IRC logs.

So if my Mac has a virus, it's new enough that it's not being detected by 
ClamXav.

I'm going to continue to investigate and see if I can detect what event 
triggers the removal of that file.

--

___
Python tracker 

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



[issue28845] Clean up known issues for AIX

2016-12-12 Thread Julien Palard

Julien Palard added the comment:

LGTM but no AIX to test it.

--

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Agreed with Larry. "Special cases aren't special enough to break the rules." 
General converter shouldn't be changed for just one use case. Write your own 
special converter. Or just use the "O" converter and manually convert Python 
object to C value. That can be simpler and more readable.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue28933] AC: Accept None as a Py_ssize_t default value

2016-12-12 Thread Julien Palard

Julien Palard added the comment:

Hi Larry,

Did you take more time to review this patch and my last comments? I don't think 
it that awful as it does _not_ apply until explicitly asked for, but I'm open 
to discuss it.

--

___
Python tracker 

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



[issue28952] csv.Sniffer().sniff(0 returns a value without the "strict" attribute

2016-12-12 Thread kevin

New submission from kevin:

In 
  
https://docs.python.org/3.5/library/csv.html#dialects-and-formatting-parameters 

the Dialect objects are described as supporting, among others, the 
Dialect.strict attribute, with a default value of False.  However, the
sniff() returns an object lacking this attribute entirely, not even with the 
value None.  At least on my inputs, which I'd include but they have personnel 
information.  I can redact it if required.

--
components: Library (Lib)
messages: 283041
nosy: 4Dummies
priority: normal
severity: normal
status: open
title: csv.Sniffer().sniff(0 returns a value without the "strict" attribute
type: behavior
versions: Python 3.5

___
Python tracker 

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-12 Thread Steve Dower

Steve Dower added the comment:

And that commit removes WindowsRegistryFinder from sys.meta_path on startup (as 
well as fixing regeneration of importlib when building on Windows).

It should *not* be cherry picked for 3.6.0.

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



[issue28896] Embeddable zip allows Windows registry to override module location

2016-12-12 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5bd248c2cc75 by Steve Dower in branch '3.6':
Issue #28896: Disable WindowsRegistryFinder by default.
https://hg.python.org/cpython/rev/5bd248c2cc75

New changeset 4bd131b028ce by Steve Dower in branch 'default':
Issue #28896: Disable WindowsRegistryFinder by default.
https://hg.python.org/cpython/rev/4bd131b028ce

--

___
Python tracker 

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



[issue11874] argparse assertion failure with brackets in metavars

2016-12-12 Thread paul j3

Changes by paul j3 :


--
priority: normal -> high

___
Python tracker 

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



[issue28941] Update the link to Source Code in Python Docs from hg to github

2016-12-12 Thread Mariatta Wijaya

Mariatta Wijaya added the comment:

There's source code of the documentation itself 
https://github.com/python/cpython/blob/master/Doc/library/abc.rst ) for 

and source code of abc.py 
https://github.com/python/cpython/blob/master/Lib/abc.py

Maybe I misunderstood, I figured issue #28929 is for fixing the docs url only.

--

___
Python tracker 

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



[issue28951] re.flags not documented in Module Contents as promised.

2016-12-12 Thread R. David Murray

R. David Murray added the comment:

When I follow the link to module contents, I find a list of the flags with 
their descriptions.  (re.A, re.I, etc, etc).  Perhaps you are confusing the 
letters used in the regular expression to represent the flags with the flags 
themselves?  I'm not sure how we could make that clearer.

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



[issue26876] Extend MSVCCompiler class to respect environment variables

2016-12-12 Thread Zachary Ware

Zachary Ware added the comment:

Steve, does the latest patch look good to you?

--

___
Python tracker 

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



[issue28941] Update the link to Source Code in Python Docs from hg to github

2016-12-12 Thread Brett Cannon

Brett Cannon added the comment:

How is this different from issue #28929?

--

___
Python tracker 

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



[issue28951] re.flags not documented in Module Contents as promised.

2016-12-12 Thread kevin

New submission from kevin:

In the online documentation of module re 
  (https://docs.python.org/3.5/library/re.html) 
under 
  6.2.1. Regular Expression Syntax
for item
  (?aiLmsux)
we are promised "The flags are described in Module Contents"
but no description is found there.  In fact a number of other references are 
found to flags, but no description of the individual flags.  AFAICT the closest 
thing to a description is found at the original reference -- at least it gives 
a code and name for each one.

--
assignee: docs@python
components: Documentation
messages: 283034
nosy: 4Dummies, docs@python
priority: normal
severity: normal
status: open
title: re.flags not documented in Module Contents as promised.
type: enhancement
versions: Python 3.5

___
Python tracker 

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



[issue28950] regrtest: -j0 fails the check -j is not allowed together with -T/-l

2016-12-12 Thread Xiang Zhang

Changes by Xiang Zhang :


--
title: regrtest: -j0 fails the check -j are not allowed together with -T/-l -> 
regrtest: -j0 fails the check -j is not allowed together with -T/-l

___
Python tracker 

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



[issue28950] regrtest: -j0 fails the check -j are not allowed together with -T/-l

2016-12-12 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
nosy: +haypo
title: -j0 fails the check -j are not allowed together with -T/-l -> regrtest: 
-j0 fails the check -j are not allowed together with -T/-l

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread Steve Dower

Steve Dower added the comment:

I don't support you have a file named "ucrtbase.dll" in your downloads 
directory? That would be a really simple explanation, and I'd know how to fix 
it.

If not, I don't have enough information from the logs to guess what the problem 
may be. For some reason, we thought you had already installed that update and 
so didn't try to install it again.

--

___
Python tracker 

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



[issue28950] -j0 fails the check -j are not allowed together with -T/-l

2016-12-12 Thread Xiang Zhang

New submission from Xiang Zhang:

For python test command line arguments, -j is not allowed together with -T/-l 
(don't know why):

[cpython]$ ./python -m test -j4 -T
usage: python -m test [options] [test_name1 [test_name2 ...]]
python path/to/Lib/test/regrtest.py [options] [test_name1 [test_name2 ...]]
regrtest.py: error: -T and -j don't go together!
Pass -h or --help for complete help.
[cpython]$ ./python -m test -j4 -l
usage: python -m test [options] [test_name1 [test_name2 ...]]
python path/to/Lib/test/regrtest.py [options] [test_name1 [test_name2 ...]]
regrtest.py: error: -l and -j don't go together!
Pass -h or --help for complete help.

But -j0 which also spawns multiple progresses fails the check.

--
components: Tests
files: test-command-line-j0.patch
keywords: patch
messages: 283032
nosy: xiang.zhang
priority: normal
severity: normal
stage: patch review
status: open
title: -j0 fails the check -j are not allowed together with -T/-l
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7
Added file: http://bugs.python.org/file45864/test-command-line-j0.patch

___
Python tracker 

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



[issue28947] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread Steve Dower

Changes by Steve Dower :


--
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Facing issue while running Python 3.6.0rc1 windows x86-64 web 
based installer

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Vedran Čačić

Vedran Čačić added the comment:

I think Guido's mistake is relevant here. It tripped me too. Too much 
negatives, and "prune" is not really well-known verb. Besides, we already have 
str.splitlines' keepends, which works the opposite way.

--

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Ned Deily

Ned Deily added the comment:

Jason, assuming you are using the python.org 3.6.0r1 installer, let us know 
what you find out!

--
nosy: +ned.deily

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Guido van Rossum

Guido van Rossum added the comment:

> except the other way around

Whoops. Indeed. So all's well here.

> x.split(tuple(string.whitespace))

Yes, that's what I was after. (But it can be a separate PR.)

--

___
Python tracker 

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



[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-12-12 Thread Ned Deily

Ned Deily added the comment:

@S Safihre. See the ReadMe included with the python.org 2.7.x installers.  (It 
is displayed at installation and a copy is installed to /Applications/Python 
2.7/ReadMe.rtf)  As explained there, for 2.7.13rc1 as in recent previous 2.7.x 
releases, only the 10.5+ installer variant is linked with the private copy of 
OpenSSL; the 10.6+ installer uses the Apple-supplied system version.

--

___
Python tracker 

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



[issue28921] Make str.count one character for latin1 string faster

2016-12-12 Thread Xiang Zhang

Xiang Zhang added the comment:

> The code looks too complex.

It is if looking at the patch alone. But the skill is used across stringlib and 
the only thing new is the bitwise operation.

str/bytes.count is not critical but not bad if it could be optimized and 
especially the effect is significant for long data.

I am not favour of rejecting it now but set priority to low.

--
priority: normal -> low

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Hmm. Looks like I may [have a trojan](http://stackoverflow.com/a/4707258).

--

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Emanuel Barry

Emanuel Barry added the comment:

Barry: Sure, the docs example was just a quick write-up, you can word it 
however you want!

Guido: Pretty much, except the other way around (when prune is False, i.e. 
"don't remove empty strings").

The attached patch exposes the behaviour (it's identical to last night's, but 
I'm re-uploading it as an unrelated file went in), except that the `prune` 
argument isn't keyword-only (I didn't know how to do this, and didn't bother 
searching for just a proof-of-concept).

--
Added file: http://bugs.python.org/file45863/split_prune_1.patch

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Emanuel Barry

Changes by Emanuel Barry :


Removed file: http://bugs.python.org/file45853/split_prune_1.patch

___
Python tracker 

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



[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Berker Peksag

Berker Peksag added the comment:

Thanks! We also need a test case for the new behavior.

--
stage: resolved -> patch review

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Indeed it seems that aliases.py is missing.

$ ls 
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/a*
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/ascii.py

--

___
Python tracker 

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> resolved
superseder:  -> Distribution.parse_config_files uses interpolation since Python 
3

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Spontaneously, this issue has arisen again. Without a system restart or any 
system-level configuration changes, launching the interpreter is once again 
causing crashes. In addition to the crash log I pasted earlier, I see this in 
the console when launching the interpreter:

$ python3.6
Fatal Python error: Py_Initialize: unable to load the file system codec
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/__init__.py",
 line 33, in 
ImportError: cannot import name 'aliases'
zsh: abort  python3.6

--
resolution: works for me -> 
status: closed -> open

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

On Dec 12, 2016, at 04:16 PM, Guido van Rossum wrote:

>So the proposal would be: prune=False -> empty strings stay, prune=True,
>empty strings are dropped, prune=None (default) use True if sep is None,
>False otherwise. Right?

Yep!

>Some end cases:
>
>- ''.split(None, prune=True) -> ['']
>- 'x  x'.split(None, prune=True) -> ['x', '', 'x']
>
>Right?

Isn't that what you'd expect if prune=False instead?  (i.e. prune=True always
drops empty strings from the results)

>While we're here I wish there was a specific argument we could translate
>.split(None) into, e.g. x.split() == x.split((' ', '\t', '\n', '\r', '\f')) #
>or whatever set of strings

Is that the sep= idea that @syeberman suggested earlier?  If so,
then you could do:

>>> x.split(tuple(string.whitespace))

Would that suffice?

--

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread arpit arora

arpit arora added the comment:

Hi Steve,

Please neglect my last message, find the zip attached with this message.

Thanks
Arpit Arora

--
Added file: http://bugs.python.org/file45862/Python 3.6.0rc1 (64-bit)_zip.zip

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Guido van Rossum

Guido van Rossum added the comment:

I like the proposal. I agree that filter(None, ...) is not discoverable (and 
has its own magic).

So the proposal would be: prune=False -> empty strings stay, prune=True, empty 
strings are dropped, prune=None (default) use True if sep is None, False 
otherwise. Right?

Some end cases:

- ''.split(None, prune=True) -> ['']
- 'x  x'.split(None, prune=True) -> ['x', '', 'x']

Right?

While we're here I wish there was a specific argument we could translate 
.split(None) into, e.g. x.split() == x.split((' ', '\t', '\n', '\r', '\f')) # 
or whatever set of strings

--

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread arpit arora

arpit arora added the comment:

Hi Steve,

Please find attached the required logs along with this message.

Thanks
Arpit Arora

--
Added file: http://bugs.python.org/file45861/Python 3.6.0rc1 
(64-bit)_20161212154459_010_path_JustForMe.log

___
Python tracker 

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



[issue16255] subrocess.Popen needs /bin/sh but Android only has /system/bin/sh

2016-12-12 Thread Xavier de Gaye

Xavier de Gaye added the comment:

New patch using sys.getandroidapilevel() that is only defined for Android.
getandroidapilevel() is only available in 3.7, so only 3.7 is being fixed.

--
assignee:  -> xdegaye
dependencies:  -add function to os module for getting path to default shell
versions: +Python 3.7 -Python 3.6
Added file: http://bugs.python.org/file45860/unix_shell_16255_3.patch

___
Python tracker 

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



[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

I just attached the patch submitted on issue28935.

The fix is to simply give interpolation=None as ConfigParser parameter (as 
documented in the official Python 3.x ConfigParser documentation)

--
keywords: +patch
nosy: +noirbizarre
Added file: 
http://bugs.python.org/file45859/disable-distutils-string-interpolation.patch

___
Python tracker 

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



[issue28091] Document PEP 525

2016-12-12 Thread Yury Selivanov

Yury Selivanov added the comment:

Guido, Nick,  

OK, let's keep using the current terminology.

Eric,

Will you have time to make a new version of the patch (addressing the review 
comments)?

--

___
Python tracker 

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



[issue28942] await expressions in f-strings

2016-12-12 Thread Yury Selivanov

Yury Selivanov added the comment:

> I was going to say "no", but given that "yield" works, I think it is
reasonable to allow "await" as well. (And what about "yield from"?)

Agree.

I suspect the reason is that async/await aren't proper keywords in 3.5/3.6, and 
the hacks we have in tokenizer to recognize them aren't working in f-strings.

I'll assign this issue to myself to make sure it's resolved in 3.7 once we make 
async/await keywords.

--
assignee: docs@python -> yselivanov

___
Python tracker 

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

Sorry, it is effectively a duplicate of the second one.
But I submitted a patch which is not present in the other.
What should I do ? (I'll attach the patch to the other one instead)

--

___
Python tracker 

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

No it's not. Same problem but on a different part: the two cited issues are 
about the .pypirc file not the setup.cfg.
The parsing does not occurs at the same place and the fix does not works for 
setup.cfg (I tried before submitting this issue).

In this specific case, setuptools calls distutils to parse the file so the fix 
has to be in distutils not setuptools (whereas for .pypirc, this is setuptools 
which is parsing the file)

--

___
Python tracker 

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



[issue28759] access to mkfifo, mknod and hard links is controled by SELinux MAC on Android

2016-12-12 Thread Xavier de Gaye

Changes by Xavier de Gaye :


--
stage: patch review -> commit review

___
Python tracker 

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



[issue28937] str.split(): remove empty strings when sep is not None

2016-12-12 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

I really appreciate all the feedback.  Here are some thoughts.

I'm well aware of the filter(), re, and other options, and certainly those can
be made to work, but they're non-obvious.  The reason I suggested an
enhancement to str.split() is because I've seen the replace().split() being used
far too often, and what I think is happening is that people take the most
natural path to accomplish their goals: they know they just want to do a
simple string split on a token (usually one character) so they start out with
the obvious str.split(',') or whatever.  Then they notice that it doesn't work
consistent with their mental model in some corner cases.

The next common step isn't from there to filter() or re.  The former isn't a
well-known API and the latter is viewed as "too complex".  Their next mental
step is "oh, so providing a sep has different behavior that I don't want, so
I'll just replace the comma with a space and now don't have to provide sep".
And now str.split() does what they want.  Done.  Move along.

I do wish the str.split() API was consistent w.r.t. to sep=None, but it's what
we have and is a very well known API.

@rhettinger: I'm of mixed opinion on it too!  I really wanted to get this in
the tracker and see if we could come up with something better, but so far I
still like `prune` the best.

@ebarry: Thanks for the draft docs, but that's not how I think about this.
I'd be utilitarian and get right to the point, e.g.:

"""
The value of `prune` controls whether empty strings are removed from the
resulting list.  The default value (None) says to use the default behavior,
which for backward compatibility reasons is different whether sep is None or
not (see above).  Regardless of the value of sep, when prune is True empty
strings are removed and when prune is False they are not.
"""

So @mrabarnett, +1 on the suggested defaults.

Lastly, as for Guido's admonition against boolean arguments, I would make
prune a keyword-only argument, so that forces the code to be readable and
should alleviate those concerns.  The trade-off is the extra typing, but
that's actually besides the point.  The win here is that the solution is
easily discoverable and avoids the intermediate string object.

--

___
Python tracker 

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



[issue28942] await expressions in f-strings

2016-12-12 Thread Guido van Rossum

Guido van Rossum added the comment:

I was going to say "no", but given that "yield" works, I think it is
reasonable to allow "await" as well. (And what about "yield from"?)

--

___
Python tracker 

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



[issue26936] android: test_socket fails

2016-12-12 Thread Xavier de Gaye

Xavier de Gaye added the comment:

New patch using sys.getandroidapilevel().
getandroidapilevel() is only available in 3.7, so only 3.7 is being fixed.

--
stage: commit review -> patch review
versions:  -Python 3.6
Added file: http://bugs.python.org/file45858/test_socket_3.patch

___
Python tracker 

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-12 Thread Guido van Rossum

Changes by Guido van Rossum :


--
nosy:  -gvanrossum

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

A simple re-install corrected the issue and survived a restart. I suspect one 
or more components weren't properly upgraded or were corrupted for unrelated 
reasons. I suspect that it was an environmental issue and not an issue with the 
package itself.

--
resolution:  -> works for me
status: open -> closed

___
Python tracker 

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



[issue28949] Unable to launch Python interpreter

2016-12-12 Thread Jason R. Coombs

New submission from Jason R. Coombs:

I recently upgraded Python 3.6.0rc1 over 3.6.0b4. Python would invoke just fine 
after the update, but following a system restart, I'm experiencing crashes on 
any invocation of Python. I suspect it's just a bad/corrupted install. I will 
do more investigation, but here's the report from MacOS.

Process:   Python [3211]
Path:  
/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
Identifier:Python
Version:   3.6.0rc1 (3.6.0rc1)
Code Type: X86-64 (Native)
Parent Process:zsh [990]
Responsible:   Python [3211]
User ID:   501

Date/Time: 2016-12-12 09:36:50.115 -0500
OS Version:Mac OS X 10.12.1 (16B2657)
Report Version:12
Anonymous UUID:31F72BE9-33AC-23C5-6CC1-DA2C20DDA3B2


Time Awake Since Boot: 1400 seconds

System Integrity Protection: enabled

Crashed Thread:0  Dispatch queue: com.apple.main-thread

Exception Type:EXC_CRASH (SIGABRT)
Exception Codes:   0x, 0x
Exception Note:EXC_CORPSE_NOTIFY

Application Specific Information:
abort() called

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libsystem_kernel.dylib  0x7fffc65e0dda __pthread_kill + 10
1   libsystem_pthread.dylib 0x7fffc66cc787 pthread_kill + 90
2   libsystem_c.dylib   0x7fffc6546420 abort + 129
3   org.python.python   0x0001001280d1 Py_FatalError + 65
4   org.python.python   0x000100129e21 
_Py_InitializeEx_Private + 1377
5   org.python.python   0x000100146c60 Py_Main + 1376
6   org.python.python   0x00010dfe 0x1 + 3582
7   org.python.python   0x00010c34 0x1 + 3124

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x  rbx: 0x0006  rcx: 0x7fff5bfff448  
rdx: 0x
  rdi: 0x0307  rsi: 0x0006  rbp: 0x7fff5bfff470  
rsp: 0x7fff5bfff448
   r8: 0x   r9: 0x0006  r10: 0x0800  
r11: 0x0206
  r12: 0x7fffcf286a20  r13: 0x0002  r14: 0x7fffcf2a23c0  
r15: 0x7fff5bfff4d0
  rip: 0x7fffc65e0dda  rfl: 0x0206  cr2: 0x7fffcf284128
  
Logical CPU: 0
Error Code:  0x02000148
Trap Number: 133


Binary Images:
   0x1 -0x10ff7 +org.python.python (3.6.0rc1 - 
3.6.0rc1) <581ACC12-D39B-9ED6-E4C0-DC4709F9A849> 
/Library/Frameworks/Python.framework/Versions/3.6/Resources/Python.app/Contents/MacOS/Python
   0x13000 -0x100225ff7 +org.python.python (3.6.0rc1, [c] 
2001-2016 Python Software Foundation. - 3.6.0rc1) 
<57D55331-6C7E-012A-47A2-5CA85BB2ECAC> 
/Library/Frameworks/Python.framework/Versions/3.6/Python
0x7fff60b9d000 - 0x7fff60bda287  dyld (421.2) 
 /usr/lib/dyld
0x7fffb11c3000 - 0x7fffb165cff7  com.apple.CoreFoundation (6.9 - 
1348.15)  
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7fffc4cdc000 - 0x7fffc4cddff3  libDiagnosticMessagesClient.dylib 
(102) <422911A4-E273-3E88-BFC4-DF6470E48242> 
/usr/lib/libDiagnosticMessagesClient.dylib
0x7fffc4f1b000 - 0x7fffc4f1cff3  libSystem.B.dylib (1238) 
 /usr/lib/libSystem.B.dylib
0x7fffc502c000 - 0x7fffc502cff3  libauto.dylib (187) 
<5BBF6A00-CC76-389D-84E7-CA88EDADE683> /usr/lib/libauto.dylib
0x7fffc504d000 - 0x7fffc50a3ff7  libc++.1.dylib (307.4) 
 /usr/lib/libc++.1.dylib
0x7fffc50a4000 - 0x7fffc50cefff  libc++abi.dylib (307.2) 
<1CEF8ABB-7E6D-3C2F-8E0A-E7884478DD23> /usr/lib/libc++abi.dylib
0x7fffc560a000 - 0x7fffc582  libicucore.A.dylib (57132.0.1) 
<063DBF01-CEF8-3C2E-9917-A08358BB006D> /usr/lib/libicucore.A.dylib
0x7fffc5bbf000 - 0x7fffc5f8fd97  libobjc.A.dylib (706) 
 /usr/lib/libobjc.A.dylib
0x7fffc63b6000 - 0x7fffc63c7ff3  libz.1.dylib (67) 
<46E3FFA2-4328-327A-8D34-A03E20BFFB8E> /usr/lib/libz.1.dylib
0x7fffc63d6000 - 0x7fffc63daff7  libcache.dylib (79) 
<84E55656-FDA9-3B29-9E4F-BE31B2C0AA3C> /usr/lib/system/libcache.dylib
0x7fffc63db000 - 0x7fffc63e5fff  libcommonCrypto.dylib (60092.20.1) 
 /usr/lib/system/libcommonCrypto.dylib
0x7fffc63e6000 - 0x7fffc63edfff  libcompiler_rt.dylib (62) 
<486BDE52-81B4-3446-BD72-23977CAE556F> /usr/lib/system/libcompiler_rt.dylib
0x7fffc63ee000 - 0x7fffc63f6fff  libcopyfile.dylib (138) 
<0DA49B77-56EC-362D-98FF-FA78CFD986D6> /usr/lib/system/libcopyfile.dylib
0x7fffc63f7000 - 0x7fffc6479fdb  libcorecrypto.dylib (442.20.2) 
<9846F683-6CED-3CE5-AE8A-B0A681F7FEEF> /usr/lib/system/libcorecrypto.dylib
0x7fffc647a000 - 0x7fffc64acfff  libdispatch.dylib (703.20.1) 
 /usr/lib/system/libdispatch.dylib
0x7fffc64ad000 - 0x7fffc64b2ff3  

[issue20754] Distribution.parse_config_files uses interpolation since Python 3

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

Looking more closely now and as a result of the report in issue28935, I see 
that this issue is another separate manifestation of the issue addressed in 
issue20120.

--
resolution: out of date -> 
status: closed -> open
title: distutils should use SafeConfigParser -> Distribution.parse_config_files 
uses interpolation since Python 3
versions: +Python 3.5, Python 3.6, Python 3.7 -Python 2.7, Python 3.3, Python 
3.4

___
Python tracker 

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Jason R. Coombs

Jason R. Coombs added the comment:

This looks to be another manifestation of issue20120 and is a duplicate of 
issue20754.

--
resolution:  -> duplicate
status: open -> closed

___
Python tracker 

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



[issue28248] Upgrade installers to OpenSSL 1.0.2j

2016-12-12 Thread S Safihre

S Safihre added the comment:

>From the changelog I interpreted this to mean that Python would now use 
>OpenSSL 1.0.2j on macOS for it's ssl module.
But this is not the case?
On a fresh macOS Sierra VM I get:

Python 2.7.13rc1 (v2.7.13rc1:4d6fd49eeb14, Dec  3 2016, 13:01:23) 
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
>>> ssl.OPENSSL_VERSION
'OpenSSL 0.9.8zh 14 Jan 2016'

--
nosy: +S Safihre

___
Python tracker 

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



[issue28874] test_logging fails and freezes

2016-12-12 Thread Whitequill Riclo

Whitequill Riclo added the comment:

my OS is Ubuntu on Windows 10
. The new Linux
subsystem for Windows 10
Linux version 3.4.0-Microsoft (micros...@microsoft.com) (gcc version 4.7
(GCC) ) #1 SMP PREEMPT Wed Dec 31 14:42:53 PST 2014

Distributor ID: Ubuntu
Description:Ubuntu 14.04.5 LTS
Release:14.04
Codename:   trusty

ldd (Ubuntu EGLIBC 2.19-0ubuntu6.9) 2.19

Windows 10 is running on bare metal.
I have included a log file with the results from the test.

On Thu, Dec 8, 2016 at 8:55 PM, STINNER Victor 
wrote:

>
> STINNER Victor added the comment:
>
> What is your OS? A Linux on bare metal? Or a container? What are versions
> of Linux kernel, libc and C compiler? Or more generally the name and
> verison of your Linux distro?
>
> There are many errors:
>
> * test_fcntl failed
> * test_import failed
> * test_epoll failed
>
> Can you please run only these tests in verbose mode, and attach the output?
>
> Example:
>
> ./python -m test -v test_fcntl test_import test_epolls
>
> --
> nosy: +haypo
>
> ___
> Python tracker 
> 
> ___
>

--
Added file: http://bugs.python.org/file45857/python37err.log

___
Python tracker 

___Could not find platform dependent libraries 
Consider setting $PYTHONHOME to [:]
Traceback (most recent call last):
  File "/home/brazg/py3/lib/python3.7/runpy.py", line 193, in 
_run_module_as_main
"__main__", mod_spec)
  File "/home/brazg/py3/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
  File "/home/brazg/py3/lib/python3.7/test/__main__.py", line 1, in 
from test.libregrtest import main
  File "/home/brazg/py3/lib/python3.7/test/libregrtest/__init__.py", line 4, in 

from test.libregrtest.cmdline import _parse_args, RESOURCE_NAMES
  File "/home/brazg/py3/lib/python3.7/test/libregrtest/cmdline.py", line 1, in 

import argparse
  File "/home/brazg/py3/lib/python3.7/argparse.py", line 93, in 
from gettext import gettext as _, ngettext
  File "/home/brazg/py3/lib/python3.7/gettext.py", line 49, in 
import locale, copy, io, os, re, struct, sys
  File "/home/brazg/py3/lib/python3.7/struct.py", line 13, in 
from _struct import *
ModuleNotFoundError: No module named '_struct'
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread Steve Dower

Steve Dower added the comment:

Arpit, could you look in your %TEMP% directory for the Python logs when you 
originally installed it? There may be some information in those about why the 
update didn't install properly the first time, and I'd like to fix it.

You can just zip up all the logs you find and attach here. I know how to read 
them.

--

___
Python tracker 

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



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread Berker Peksag

Changes by Berker Peksag :


--
stage:  -> resolved

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread arpit arora

arpit arora added the comment:

Hi Marc,

It worked. Thanks a lot :)

Regards
Arpit Arora

--

___
Python tracker 

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



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread dd

dd added the comment:

Yeah, I'm stupid. I named my file signal.py…

Sorry for the trouble and thanks for your help!

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



[issue5322] Python 2.6 object.__new__ argument calling autodetection faulty

2016-12-12 Thread Jeroen Demeyer

Jeroen Demeyer added the comment:

Wouldn't it be possible to fix assignment of __new__ without breaking backwards 
compatibility (and then apply the same patch for all Python versions)? I have a 
feeling that breaking the auto-detection of tp_new is a new bug introduced by 
this patch and not a fundamental feature needed to fix assignment of __new__.

--

___
Python tracker 

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



[issue28946] AttributeError: module 'signal' has no attribute 'SIGALRM'

2016-12-12 Thread Chi Hsuan Yen

Chi Hsuan Yen added the comment:

Can you import _signal? And what's the output of dir(_signal)?

Another possibility is that there's another signal.py in the search path. Could 
you also paste the output of repr(signal)?

By the way, here on Arch Linux, both signal.SIGINT and signal.SIGALRM are there.

--
nosy: +Chi Hsuan Yen

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread Marc-Andre Lemburg

Marc-Andre Lemburg added the comment:

Please try to install this update from MS:

https://support.microsoft.com/en-us/kb/2999226

it includes the missing DLL.

--
nosy: +lemburg

___
Python tracker 

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



[issue28935] distutils use ConfigParser in Python 3.x and fails to parse setup.cfg with percent sign

2016-12-12 Thread Axel Haustant

Axel Haustant added the comment:

You're welcome.

I understand the backward compatibility point. But I think that the current 
state is breaking existing code as it's not documented anywhere and it's a 
side-effect of another change, not something intentionnal.
(this is why I submitted this issue because I'm developing a tool which use the 
setup.cfg file to store data and it is broken in Python 3. I saw a lot of bug 
reports on different tools with the same issue (ex: nosetest configuration)

I cannot use %% for many reason:
- it will not work with Python 2.x (problematic for 2/3 cross compatibility)
- it needs every tools to know that in Python 3, they have to change their 
parser

Right now, I'm supporting configuration into an external file for Python 3.x

Thanks for your response ! I hope that it can be integrated into future 
releases (noted the point on 3.3/3.4).

--

___
Python tracker 

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



[issue28948] Facing issue while running Python 3.6.0rc1 windows x86-64 web based installer

2016-12-12 Thread arpit arora

New submission from arpit arora:

Hi,

Post installing 'Python 3.6.0rc1 windows x86-64 web based installer' on my 
Windows 7 64 bit system, i am not able to start python. Each time i start it, i 
get a pop up saying that "the program can't start because 
'api-ms-win-crt-runtime-|1-1-0.dll' is missing from your computer. Try 
reinstalling this program to fix this problem."
I have reinstalled Python but still i get the same error message while starting 
it. I am stuck here. Please help me with this. Thanks in advance.

Regards
Arpit Arora

--
components: Windows
messages: 282995
nosy: arpit arora, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Facing issue while running Python 3.6.0rc1 windows x86-64 web based 
installer
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



  1   2   >