[issue23616] Conflict between generic cycle and undo shortcut.

2015-03-09 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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

___
Python tracker 

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



[issue23616] Idle: conflict between generic cycle and undo shortcut.

2015-03-09 Thread Terry J. Reedy

Terry J. Reedy added the comment:

(Duplicate message unlinked).  I do not know what you mean by a 'cycle', 
'generic cycle', or 'cycle declaration'.  Python's only declarations are global 
and nonlocal statements.  The image does not help me except to specify OSX 
(latest version) an 3.4.2.  Please describe what you actually did in enough 
detail that I could do the same.  What is the undo shortcut on OSX, or 
specifically your machine?

--
stage:  -> test needed
title: Conflict between generic cycle and undo shortcut. -> Idle: conflict 
between generic cycle and undo shortcut.
versions:  -Python 3.2, Python 3.3, Python 3.6

___
Python tracker 

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



[issue12916] Add inspect.splitdoc

2015-03-09 Thread Berker Peksag

Berker Peksag added the comment:

pydoc doesn't have public API other than its CLI and the help() function. I'd 
cleanup or even rewrite pydoc before declare anything public in it. On the 
other hand, there are already functions related to splitdoc() in the inspect 
module: https://docs.python.org/3/library/inspect.html#retrieving-source-code 
See also issue 18956.

There is no rush to make splitdoc() public. We can improve pydoc in 3.5 and 3.6 
timeline and then decide what's should be part of the public API.

--

___
Python tracker 

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



[issue23616] Idle: conflict between loop execution and undo shortcut.

2015-03-09 Thread Davide Okami

Davide Okami added the comment:

Sorry for my bad technical acknowledgment, i will try to be more understandable.
Declaring a while loop statement, and launching the loop pressing enter, it is 
possible to delete loop results and return to the while declaration statement 
deleting it [1] or it's possibile to make it disappear from the line in which 
it was declared [2] [[2] making it appear on the loop result (overlaying it)] 
without breaking the loop execution [1][2]. Both are possible keeping pressed 
the shortcut command+z (⌘+z) after that loop runs (keeping it pressed until the 
loop statement is reached and deleted [1], or keeping it pressed for a little 
less time than before, to manifest the second behavior). The bug afflicts 
Python IDLE for OS X (i tried with a clean installation of Python 3.4.3 and i 
tried it also on Windows without results) in versions 2.7.8, 3.4.x (as i tried).

--
title: Idle: conflict between generic cycle and undo shortcut. -> Idle: 
conflict between loop execution and undo shortcut.
versions: +Python 3.2, Python 3.3 -Python 3.5

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread Mark Lawrence

Changes by Mark Lawrence :


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



[issue20233] Re-enable buffer API slots for heap types

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

I've updated the nosy list with the names from #10181 as that's referenced in 
msg208002.

--
nosy: +BreamoreBoy, haypo, jcon, joshtriplett, kristjan.jonsson, loewis, 
mark.dickinson, petri.lehtinen, pitrou, pmoore, pv, python-dev, rupole, skrah, 
teoliphant

___
Python tracker 

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



[issue12916] Add inspect.splitdoc

2015-03-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

My opposition against moving splitdoc() to the inspect module is not strict and 
I don't want to fight for it. In an case two-and-a-half votes are larger than 
one-and-a-half.

When you move splitdoc(), you should get rid of the use pydoc.splitdoc() in the 
stdlib and add DeprecatedWarning assertion to the test of pydoc.splitdoc(). The 
existence of pydoc.splitdoc() test is an argument to keep splitdoc() in the 
pydoc module.

--

___
Python tracker 

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



[issue20233] Re-enable buffer API slots for heap types

2015-03-09 Thread Paul Moore

Changes by Paul Moore :


--
nosy:  -pmoore

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

I don't understand this bug report. Can you elaborate? What is the current 
behaviour? What is the expected behaviour?

--

___
Python tracker 

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



[issue23309] Hang on interpreter shutdown if daemon thread prints to stdout

2015-03-09 Thread Marien Zwart

Marien Zwart added the comment:

I'm afraid I don't have real-world code I can confirm is fixed, since I 
reported this on behalf of someone on irc in #python.

I think I'd prefer the Py_FatalError version of the patch. It's definitely 
possible to see writes to stdout/stderr at this time. If I read the first 
version right, it'll succeed the ENTER_BUFFERED without actually grabbing the 
lock, which seems problematic. But failing ENTER_BUFFERED is probably also more 
problematic, as it will probably lead to another exception that Python'll try 
to write to stderr, which fails the same way... If stdout/stderr are in a 
broken state during shutdown, Python is probably better off calling 
Py_FatalError rather than intermittently discarding messages.

--

___
Python tracker 

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



[issue23617] Incorrect plural "includes" on Python Standard Library front page

2015-03-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 17253605eca4 by Ned Deily in branch '2.7':
Issue #23617: Correct plurals typo noted by Kentrell Johnson.
https://hg.python.org/cpython/rev/17253605eca4

New changeset e623283e4dd6 by Ned Deily in branch '3.4':
Issue #23617: Correct plurals typo noted by Kentrell Johnson.
https://hg.python.org/cpython/rev/e623283e4dd6

New changeset 82df13f0ea9b by Ned Deily in branch 'default':
Issue #23617: Correct plurals typo noted by Kentrell Johnson.
https://hg.python.org/cpython/rev/82df13f0ea9b

--
nosy: +python-dev

___
Python tracker 

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



[issue23617] Incorrect plural "includes" on Python Standard Library front page

2015-03-09 Thread Ned Deily

Ned Deily added the comment:

Thanks for the report!

--
nosy: +ned.deily
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
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



[issue19909] Best practice docs for new SSL features

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

check_hostname and create_default_context have been documented and there are a 
number of references to both of them so I'm assuming that this can be closed.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

New submission from STINNER Victor:

The PEP 475 has been accepted and is partialy implemented. The socket module is 
not fully patched to handle EINTR. For example, socket.socket.connect() doesn't 
handle EINTR yet.

Attached patch fixes socket.connect() to handle EINTR. It should fix issue 
#11266 and #20611 in Python 3.5 (Python 2.7 and 3.4 will need to be patched to 
handle explicitly InterruptedError/OSError(EINTR) in Python).

By the way, some socket functions handle EINTR but don't recompute the timeout 
yet. _PyTime_monotonic() should be used.

--
components: Extension Modules
files: connect_eintr.patch
keywords: patch
messages: 237609
nosy: haypo, neologix, serhiy.storchaka
priority: normal
severity: normal
status: open
title: PEP 475: handle EINTR in the socket module
versions: Python 3.5
Added file: http://bugs.python.org/file38402/connect_eintr.patch

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread Charles-François Natali

Charles-François Natali added the comment:

If EINTR is received during connect, the socket is unusable, that's why i
didn't implement it.

--

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

test_setitimer.patch: hack unittest.TestCase.run() to inject signals every 1 
ms, send the first signal in 100 ms.

This patch helped me to find that socket.connect() doesn't handle EINTR yet: 
see issue #23618 "PEP 475: handle EINTR in the socket module".

--
Added file: http://bugs.python.org/file38403/setitimer.patch

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

For the record, it seems test_eintr sometimes left zombie processes in my 
machine where I run reference leak tests every night. I didn't investigate and 
just disabled the tests.

--

___
Python tracker 

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



[issue23285] PEP 475 - EINTR handling

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

(I'll add that that machine is hosted on an OpenVZ-based VPS, so perhaps there 
are issues with the old patched kernel and whatnot?)

--

___
Python tracker 

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



[issue19909] Best practice docs for new SSL features

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I think so as well, but I'll let Christian decide.

--
nosy: +pitrou

___
Python tracker 

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



[issue23309] Hang on interpreter shutdown if daemon thread prints to stdout

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Thank you for the feedback. Yes, I now also think the fatal error is the 
preferrable way. I'll see if I can add a reliable test.

--

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

> If EINTR is received during connect, the socket is unusable,
> that's why i didn't implement it.

Can you elaborate?

socket.connect() should be modified according to the PEP 475:
https://www.python.org/dev/peps/pep-0475/#modified-functions

What do you mean by "unusable"? Is it possible to retry connect()? Is it safe 
to call getsockopt(fd, SOL_SOCKET, SO_ERROR) until it returns EISCONN?

For high-level functions for socket.create_connection(), how should we handle 
InterruptedError?

See also this change in asyncio to handle InterruptedError in asyncio:
https://hg.python.org/cpython/rev/ad67f66a5f3c
(I wrote it and I didn't test my change, I didn't know how to test it.)
Tulip issue: https://code.google.com/p/tulip/issues/detail?id=205

--

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

The behaviour is explained in the subject line and in the linked changeset: for 
some reason sys.flags and sys.float_info are explicitly wiped during shutdown. 
But those are simple immutable objects, there is no reason to wipe them.

The expected behaviour is, of course, that those objects keep their proper 
value during shutdown (e.g. when looked up from destructors).

--

___
Python tracker 

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



[issue23415] add-to-pydotorg does not support .exe installers for Windows

2015-03-09 Thread Larry Hastings

Larry Hastings added the comment:

Using it with 3.5.0a2, it still printed the "could not be processed" error 
message, but there's a new wrinkle: the one executable it processed, it added 
incorrectly.  The "-amd64-webinstall" exe was identified as "Windows x86 
executable installer".

--

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

About EINTR and connect(), I've found the following insightful page:
http://www.madore.org/~david/computers/connect-intr.html

Official POSIX wording is this:

"""If connect() is interrupted by a signal that is caught while blocked waiting 
to establish a connection, connect() shall fail and set errno to [EINTR], but 
the connection request shall not be aborted, and the connection shall be 
established asynchronously."""

--
nosy: +pitrou

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

sys_at_exit.py: script to reproduce the issue.

The changeset 9639a73afa47 explicitly added sys.flags and sys.float_info to 
sys_deletes, list of symbols that must be cleared at exit.

So if I understand correctly the issue, the question is why the change was 
made. Antoine wants to keep these symbols alive during Python shutdown.

--
Added file: http://bugs.python.org/file38404/sys_at_exit.py

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

@Antoine: Can you maybe propose a patch to fix this issue?

I see that you selected Python 3.4 & 3.5. Why Python 3.4 and not 2.7? (Maybe 
fixing Python 3.5 is enough?)

--

___
Python tracker 

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



[issue20602] sys.flags and sys.float_info disappear at shutdown

2015-03-09 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I really don't care about 2.7 for minor fixes is the reason why :-)
(also, I don't know if the bug exists there in the first place)

--

___
Python tracker 

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



[issue19547] HTTPS proxy support missing without warning

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

Should this be classifed as a security issue?

--
nosy: +BreamoreBoy
versions:  -Python 2.6, Python 3.1, Python 3.2, Python 3.3

___
Python tracker 

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



[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

It looks like test_os now pass on all buildbots, including OpenIndiana. I close 
the issue.

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



[issue23605] Use the new os.scandir() function in os.walk()

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

I reviewed your patch.

--

___
Python tracker 

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



[issue20454] platform.linux_distribution() returns empty value on Archlinux and python 2.7

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

Can Archlinux be added to _supported_dists as requested in msg209764, I've no 
understanding of the criteria involved here?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

FYI os.scandir() is part of Python 3.5 alpha 2 which is now available
(including installers for Windows):
https://www.python.org/downloads/release/python-350a2/

--

___
Python tracker 

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



[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-09 Thread Tim Golden

Tim Golden added the comment:

This is a duplicate of issue22028. 

Daiyue Weng: to move forward, can you apply the fix referred to in this post:

https://mail.python.org/pipermail/python-list/2015-January/696688.html

(ie the "removing corrupted keys" section from 
http://www.swarley.me.uk/blog/2014/04/23/python-pip-and-windows-registry-corruption/).

Steve: if you can, please commit your change from issue22028; I just don't have 
the time at the moment to run up a clone and test it, but it looks safe to me.

--

___
Python tracker 

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



[issue22028] Python 3.4.1 Installer ended prematurely (Windows msi)

2015-03-09 Thread Tim Golden

Tim Golden added the comment:

This has come up again in issue23604. Steve, please apply your patch. I think 
it should go against 2.7, 3.4 & 3.5 especially since all those versions now 
ship with ensurepip.

--

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Paul Moore

New submission from Paul Moore:

I just tried to install the 64-bit "full installer" version, for
all users with the default options. This is on a PC that hasn't had
3.5 installed before, and doesn't have Visual Studio 2015 installed.
When it got to the step "precompiling standard library" I got an error window 
pop up saying "python.exe - system error. The program can't start because 
api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try 
reinstalling the program to fix this problem." All there was was an "OK" 
button. Pressing that told me "Setup was successful" but then "py -3.5 -V" 
gives me nothing (no error, no version, just returns me to the command prompt). 
Same result if I do "& 'C:\Program Files\Python 3.5\python.exe' -V".

Python 3.5.0a2 (64-bit) is showing in my "Add/Remove Programs".

This is Windows 7, 64-bit.

--
assignee: steve.dower
components: Installation, Windows
messages: 237630
nosy: pmoore, steve.dower, tim.golden, zach.ware
priority: critical
severity: normal
status: open
title: Python 3.5.0a2 installer fails
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



[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

"""
Two important notes for Windows users about Python 3.5.0a2:

* If you have previously installed Python 3.5.0a1, you must manually uninstall 
it before installing Python 3.5.0a2 (issue23612).
* If installing Python 3.5.0a2 as a non-privileged user, you may need to 
escalate to administrator privileges to install an update to your C runtime 
libraries.
"""

--
nosy: +haypo

___
Python tracker 

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



[issue23620] cross-type comparison is different in python minor versions

2015-03-09 Thread David Vieira-Kurz

New submission from David Vieira-Kurz:

Python internal compare function does not verify if a comparison of two objects 
is done by using object of the same type.

In this case python does not know how to compare DECIMAL and FLOATS and returns 
a FALSE instead of returning an Error.

Python should have strict rules to only allow comparison between objects is 
aware of but depending on the version of Python we have different behaviors:

# Output:
# Python 2.6.5 32bit -- WRONG: FLOAT seems comparable with DECIMAL (WRONG)
# Python 2.7.2 32bit -- WRONG: FLOAT seems comparable with DECIMAL (WRONG)
# Python 3.1.2 32bit -- CORRECT: FLOAT is NOT comparable with DECIMAL (CORRECT)
# Python 3.4.0 ([GCC 4.8.2] on linux) 32bit -- WRONG: FLOAT seems comparable 
with DECIMAL (WRONG)

A proof of concept code-snippet is attached.

--
components: Interpreter Core
files: python-float-decimal-comparison.txt
messages: 237632
nosy: secalert
priority: normal
severity: normal
status: open
title: cross-type comparison is different in python minor versions
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file38405/python-float-decimal-comparison.txt

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Paul Moore

Paul Moore added the comment:

In this case as I said, no previous 3.50a1 installed. and I was doing an "all 
users" install (which prompted me for elevation, and I said OK)

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx

Michael Clerx added the comment:

Is there anyway to fix this without using setuptools? I'm using distutils to 
compile on the fly which has worked brilliantly for the last few years, not 
sure I want to destabilize everything by switching to setuptools.

--
nosy: +Michael Clerx

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

@Michael my very old work around here 
http://www.mail-archive.com/python-win32@python.org/msg06755.html may help.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue23605] Use the new os.scandir() function in os.walk()

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

Note: glob.glob() might be faster with os.scandir() on very large directories. 
But on my benchmarks, listdir() was always faster than scandir() when only the 
name of directory entries i used. Maybe we need an option glob.glob(pattern, 
scandir=True) :-p

--

___
Python tracker 

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



[issue23613] searchindex.js is annoying

2015-03-09 Thread R. David Murray

R. David Murray added the comment:

Martin's solution is similar to the one I use except that I made an alias for 
it and I also exclude topics.py.  Which is a tracked file.  It seems that what 
one wants to ignore is a bit of a personal decision, and so it is probably best 
left up to the individual to craft a solution (even though I also find it 
annoying :)

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



[issue23604] Python 3.4 and 2.7 installation no Script folder and no pip installed

2015-03-09 Thread Daiyue Weng

Daiyue Weng added the comment:

The fix that referred to another thread solved my issue completely.

thanks

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Cyd Haselton

Cyd Haselton added the comment:

Ryan,
What version of Android and KBOX are you using? Are you cross-compiling?
If not could you post the output of printenv from within KBOX here?

--

___
Python tracker 

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



[issue23621] Uninstalling Python 3.5 removes a "py.exe" that was installed with Python 3.4

2015-03-09 Thread Paul Moore

New submission from Paul Moore:

When I installed Python 3.4, I included the py.exe launcher. I have just 
installed Python 3.5a0, then uninstalled it again, and the py.exe launcher has 
gone.

Either the 3.5 installer should notice that py.exe is already present and 
remember *not* to uninstall it, or it should warn the user when installing that 
continuing will take ownership of the launcher from a previous installation.

(I understand why having the same file owned by 2 installers causes problems, 
and that there's no easy fix, but the current behaviour is not at all friendly 
- I now have to reinstall Python 3.4 to fix it, or at least re-download the 
installer and try a repair, which might work I guess).

--
assignee: steve.dower
components: Installation, Windows
messages: 237640
nosy: pmoore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Uninstalling Python 3.5 removes a "py.exe" that was installed with 
Python 3.4
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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Ben Hoyt

Ben Hoyt added the comment:

Same exact issue here. I didn't have a Python 3.5 alpha 1 previously installed, 
and I tried running the installer normally and also (after uninstalling) with 
right-click, "Run as administrator".

Both do the same thing for me: pop up a dialog box at the end of installation 
that says "The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is 
missing from your computer..."

I also get the same dialog box when I run "C:\Program Files\Python 
3.5\python.exe"

--
nosy: +benhoyt

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

If you look in your AppData\Local\Temp directory then you should find a whole 
pile of log files. Zipping those up and posting them here or emailing them to 
me would be great.

It sounds like the CRT update didn't install, since it's supposed to include 
that file.

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

Setuptools just does a monkey patch of distutils, so importing it is 
sufficient. Or you can find the patching in the setuptools source and copy it 
into your setup.py file.

--

___
Python tracker 

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



[issue23620] cross-type comparison is different in python minor versions

2015-03-09 Thread R. David Murray

R. David Murray added the comment:

In Python2, all objects were comparable (except DateTime stuff...and maybe 
there was one other exception, I forget).  We did indeed decide this was a bug 
and fixed it in Python3.  Now objects of different types are comparable if only 
if at least one of them supports being compared with the other.  Python does, 
however, know how to compare Float and Decimal correctly, since Python 3.2 (see 
the What's New document for Python 3.2).

--
nosy: +r.david.murray
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue23622] Deprecate unrecognized backslash+letter escapes

2015-03-09 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Regular expressions use the backslash character for two functions:
1) to indicate special forms;
2) to allow special characters to be used without invoking their special 
meaning.

If backslash + character is not recognized as special form (1), it interpreted 
in meaning (2).

Usually new special forms have form backslash + ASCII letter, because unlike to 
other characters single ASCII letters do not have special meaning in any 
regular expression engine or programming language. This using the backslash 
with inner ASCII letter dangerous. Currently it means just this letter 
literally, but in future it can mean special form. For example \u and \U forms 
were added in 3.3 and this could break regular expression patters that use \u 
and \U before.

To avoid possible breaking it makes sense to reject unrecognized backslash + 
ASCII letter sequences. Proposed patch adds deprecation warnings when unknown 
escape of ASCII letter is used. The idea was proposed by Matthew Barnett [1].

[1] http://permalink.gmane.org/gmane.comp.python.devel/151657

--
assignee: serhiy.storchaka
components: Library (Lib), Regular Expressions
files: re_deprecate_escaped_letters.patch
keywords: patch
messages: 237645
nosy: ezio.melotti, mrabarnett, pitrou, serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Deprecate unrecognized backslash+letter escapes
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file38406/re_deprecate_escaped_letters.patch

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails

2015-03-09 Thread Paul Moore

Paul Moore added the comment:

Sent via private email as it's a work PC and I didn't check what's logged in 
there...

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx

Michael Clerx added the comment:

Thanks! However, importing setuptools causes a string of errors about 
PYTHONPATH and .pth files (even on a linux system)

In addition, a monkeypatched version of find_vcvarsall allowed things to run, 
but it seems finding plain C libraries with Visual C++ for python is very 
different from finding libraries in mingw

I think I'll just start telling my windows users to install MinGW instead

--

___
Python tracker 

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



[issue19610] setup.py does not allow a tuple for classifiers

2015-03-09 Thread Éric Araujo

Éric Araujo added the comment:

I think classifiers and keywords are the only commonly used fields.  This issue 
could be limited to classifiers, or also include other list fields.

--

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

Same error on my Windows 7 VM. I have VS 2008 & 2010 installed, but also Python 
2.7, 3.3 and 3.4 (all installed twice: 32&64 bits). It's not a fresh Windows :-)

Here is a ZIP of Python 3.5* logs in my Temp directory. I cannot compress the 
whole directory, it's really huge :-) I have files which are 2 years old in 
this directory!?

Files:
Python 3.5.0a2 (64-bit)_20150309143635.log
Python 3.5.0a2 (64-bit)_20150309143635_001_...log
...
Python 3.5.0a2 (64-bit)_20150309143635_010_...log

Have fun!

--
title: Python 3.5.0a2 installer fails -> Python 3.5.0a2 installer fails on 
Windows
Added file: http://bugs.python.org/file38407/Installer.zip

___
Python tracker 

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



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

2015-03-09 Thread Paul Moore

New submission from Paul Moore:

With Python 3.5 on Windows defaulting (for all users installs) to the read-only 
"Program Files" directory, and with "Add Python to PATH" having problems adding 
the per-user "user scripts" directory to PATH, the Python 3.5 documentation 
needs to explain the recommended practice for running Python 3.5 from the 
command line on Windows. Issues that should be covered include:

- System installs with need to be run from an elevated prompt, are user 
installs now the recommended approach? (It's worth noting in that case that 
user installs re *not* recommended for older versions, as the user Scripts 
directory wasn't versioned until Python 3.5)
- How to add the correct directories to PATH (including the user scripts 
directory) - for both CMD and powershell users and in an existing shell as well 
as a new one (i.e, no "Python command prompt" shortcuts!)
- How to add the correct directories persistently, so they are available to all 
programs on startup.
- While the "py" launcher solves the problem of running Python, and some 
modules via -m (such as pip), many packages install console scripts which do 
not have an equivalent -m invocation, so "use the launcher" is not a complete 
solution.

The documentation should clarify where (or if) 3rd party documentation needs to 
comment on Windows path difficulties. For example, the pip documentation has 
for a long time said that the way to run pip is via the "pip" command, and 
until Python included the "Add to PATH" option in the installer, we regularly 
had to deal with user queries because the "pip" command didn't work out of the 
box - it would be unfortunate if Python 3.5 left 3rd parties back in that 
situation again.

--
assignee: docs@python
components: Documentation, Windows
messages: 237650
nosy: docs@python, pmoore, steve.dower, tim.golden, zach.ware
priority: release blocker
severity: normal
status: open
title: Python 3.5 docs need to clarify how to set PATH, etc
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



[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-09 Thread Demian Brecht

Demian Brecht added the comment:

I agree that the current implementation doesn't conform to standards, but do 
you think those cases are worth fixing as they can potentially break backwards 
compatibility? I think that the reported case makes sense to fix as the 
name/value pair are entirely unexpected. However, the current behaviour is 
logical for the cases that you've pointed out.

--

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

I definitely don't want the whole directory, especially from Windows 7 :) 
(Later versions are better at cleaning up unused files)

I'll take a look once I get to work. Thanks

--

___
Python tracker 

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



[issue21271] reset_mock needs parameters to also reset return_value and side_effect

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue23138] cookiejar parses cookie value as int with empty name-value pair and Expires

2015-03-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I think that for consistency either parse empty name-value pair as key="", 
value=None, or ignore all non-conformed cases. For backward compatibility I 
prefer first way.

--

___
Python tracker 

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



[issue21478] mock calls don't propagate to parent (autospec)

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah

Stefan Krah added the comment:

> ImportError: cannot import name 'module_from_spec'

The command line uses the system python3, which is "too old"
and does not have 'module_from_spec' yet.

Try running ...

   python3 -S -m sysconfig --generate-posix-vars

... and then continue with `make`.


We should open an issue for that, it's annoying.

--

___
Python tracker 

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



[issue21385] in debug mode, compile(ast) fails with an assertion error if an AST node has no line number information

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa
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



[issue22964] dbm.open(..., "x")

2015-03-09 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Mark Lawrence

Mark Lawrence added the comment:

@Michael in case you are not aware Python does not support MINGW.

--

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

connect_eintr.py: script calling socket.connect() in a loop and sending SIGARLM 
signal every millisecond.

--
Added file: http://bugs.python.org/file38408/connect_eintr.py

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

Oops, connect_eintr.py noticed me (thanks to my recent change of the issue 
#23571 !) that connect_eintr.patch is wrong: socket.connect() returned None 
with an exception sent, send connect() was interrupted by SIGINT (CTRL+c).

Fixed patch.

--
Added file: http://bugs.python.org/file38409/connect_eintr-2.patch

___
Python tracker 

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



[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-03-09 Thread Claudiu Popa

Claudiu Popa added the comment:

I find the new error messages clear and straight to the point. It would be nice 
if this would get into 3.5.

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

Python does not support being built with MinGW, but we have "support" to build 
extensions with MinGW. It isn't great support, and we're open to 
patches/contributions (none of our core Windows devs use MinGW AFAIK).

And yes, VC is different from MinGW because MinGW is trying to copy a different 
operating system. Where possible, Python generally tries to follow the 
conventions of the underlying operating system, which is why we build with VC 
and not gcc on Windows.

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

You could also distribute wheels for your Windows users, which they will 
appreciate much more than being told to install MinGW. (If you do go the latter 
route, WinPython is a pretty good distribution that sets that stuff up fairly 
transparently.)

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx

Michael Clerx added the comment:

@Mark I don't quite understand what you're saying. Distutils supports it, 
provided you add a line to distutils.cfg. I've been using the PythonXY versions 
of Python with MinGW (everything before 2.7.9.0) to happily compile for nearly 
4 years now.

Regarding your earlier suggestion about distutils and Visual C++ for Python, I 
hacked something together to do it dynamically in the script using distutils. 
Very ugly :-)

import platform
if platform.system() == 'Windows':
vcpath = os.environ['ProgramFiles']
vcpath = os.path.join(vcpath, 'Common Files', 'Microsoft',
'Visual C++ for Python', '9.0', 'vcvarsall.bat')
if os.path.isfile(vcpath):
import distutils.msvc9compiler
old_find = distutils.msvc9compiler.find_vcvarsall
def new_find(version):
path = old_find(version)
if path is None:
return vcpath
distutils.msvc9compiler.find_vcvarsall = new_find

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

> Very ugly :-)

And also incorrect on 64-bit interpreters (but not 32-bit interpreters on 
64-bit machines, oddly enough), and machines where the user has installed the 
compiler just for themselves.

I'd seriously suggest copying the monkey patch from 
https://bitbucket.org/pypa/setuptools/src/18eceee63709bc70c06b51a609f3dbd2eab07ef4/setuptools/msvc9_support.py?at=default

--

___
Python tracker 

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



[issue22189] collections.UserString missing some str methods

2015-03-09 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
keywords: +easy

___
Python tracker 

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



[issue21574] Port image types detections from PIL to the imghdr module

2015-03-09 Thread Claudiu Popa

Claudiu Popa added the comment:

In general, the patch looks good, I left a couple of comments on Rietvld. It 
should be applied to 3.5 only. Also, there are some image test files which 
aren't included in this patch, could you update it to include them? Thanks.

--

___
Python tracker 

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



[issue2211] Cookie.Morsel interface needs update

2015-03-09 Thread Demian Brecht

Demian Brecht added the comment:

New patch addresses most review comments. Thanks for the review Serhiy.

--
Added file: http://bugs.python.org/file38410/issue2211_1.patch

___
Python tracker 

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



[issue12916] Add inspect.splitdoc

2015-03-09 Thread Yury Selivanov

Yury Selivanov added the comment:

Berker, I agree. Let's wait till 3.6.

I still don't like having this function in the inspect module, and I still 
don't understand why it should be there.

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

> http://www.madore.org/~david/computers/connect-intr.html

This article contains a program connect_test.c to test how connect() behaves on 
EINTR. Since it's in the public domain, I attached a copy.

The program contains the comment: "All systems function as expected when 
TEST_TWO is set."

If TEST_TWO is defined, poll() is used to wait until the socket is writable, 
and then getsockopt(SO_ERROR) is used to check if the error is now zero, when 
connect() fails with EINTR.

--
Added file: http://bugs.python.org/file38411/connect_test.c

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Michael Clerx

Michael Clerx added the comment:

Thanks!

If I do copy this patch, do I need to add anything to my license text other 
than a reference in the file itself?

--

___
Python tracker 

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



[issue12916] Add inspect.splitdoc

2015-03-09 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Ok, so in this case, you are right to move this issue to the Python 3.6 
version, and it's too late for 3.5

Thank you for your help and feedbacks.

Stephane

--

___
Python tracker 

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



[issue23618] PEP 475: handle EINTR in the socket module

2015-03-09 Thread STINNER Victor

STINNER Victor added the comment:

connect_eintr-3.patch: Different patch, don't retry connect() if it returns 
EINTR, but poll using poll/select. The patch changes also the asyncio module.

--
Added file: http://bugs.python.org/file38412/connect_eintr-3.patch

___
Python tracker 

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



[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Mark Shannon

Mark Shannon added the comment:

The column offset has always been the offset of the start of the expression. 
Therefore the expression `x.y` should have the same offset as the 
sub-expresssion `x`.
Likewise for calls, `f(args)` should have the same offset as the `f` sub 
expression.

Our static analysis tool is a real-world use case:
http://semmle.com/2014/06/semmle-analysis-now-includes-python/

Presumably the submitter of this issue also had a real would use case.

--

___
Python tracker 

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



[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Aivar Annamaa

Aivar Annamaa added the comment:

Yes, I also need col_offset to work as advertised because of a real world use 
case: Thonny (http://thonny.cs.ut.ee/) is a visual Python debugger which 
highlights the (sub)expression about to be evaluated.

--

___
Python tracker 

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



[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Sven Brauch

Sven Brauch added the comment:

But if you need the start of the full expression, can't you just go up in the 
"parent" chain until the parent is not an expression any more?

Could additional API be introduced which provides the value I am looking for as 
well as the one you need?

I was not on the nosy list by the way, I just put myself there after I 
commented. And that was after 3.4.3, after I noticed my software was suddenly 
broken by a patch release of python.

--

___
Python tracker 

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



[issue23246] distutils fails to locate vcvarsall with Visual C++ Compiler for Python

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

Hard to be sure. It was my contribution originally, and I'm okay to remain 
unattributed, but I've nosied Jason so he can answer authoritatively 
(especially since he rewrote most of my original contribution to make it work 
better :) ).

--
nosy: +jason.coombs

___
Python tracker 

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



[issue12916] Add inspect.splitdoc

2015-03-09 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

It's not too late for 3.5. Just there is no consensus.

--

___
Python tracker 

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



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

2015-03-09 Thread David Linke

Changes by David Linke :


--
nosy: +dalito

___
Python tracker 

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



[issue21295] Python 3.4 gives wrong col_offset for Call nodes returned from ast.parse

2015-03-09 Thread Mark Shannon

Mark Shannon added the comment:

How do I get the start of `(x+y).bit_length()` in 
`total += (x+y).bit_length()`?
With your change, I can't get it from `x`, `x+y`, or from the whole statement.

The primary purpose of the locations are for tracebacks, not for static tools.
Also, most tools need to support earlier versions of Python and consistency 
between versions is the most important thing.

A third-party parser that supported full, accurate locations would be great, 
but I don't think the builtin parser is the place for it.

--

___
Python tracker 

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



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

2015-03-09 Thread Ethan Furman

Changes by Ethan Furman :


--
nosy: +ethan.furman

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0469af231d22 by Steve Dower in branch 'default':
Issue #23619: Ensure C variable is initialized before using it.
https://hg.python.org/cpython/rev/0469af231d22

--
nosy: +python-dev

___
Python tracker 

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



[issue23619] Python 3.5.0a2 installer fails on Windows

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

Well that was embarrassing, but it's fixed now :)

Larry, would you like me to rebuild the installer with the fix in it?

--
nosy: +larry

___
Python tracker 

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




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

2015-03-09 Thread Steve Dower

Steve Dower added the comment:

FYI, the docs in the Python 3.5.0a2 CHM are newer than what's on docs.p.o, 
specifically the "Using Python on Windows" section. (Apparently I need to do 
something other than commit changes to get the website updated?)

https://hg.python.org/cpython/file/tip/Doc/using/windows.rst

The section on setting environment variables has been updated since 3.4, but it 
could be extended further.

--

___
Python tracker 

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



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

2015-03-09 Thread Paul Moore

Paul Moore added the comment:

At a minimum, the example should show adding setting the 2 script directories 
to PATH, and not just sys.prefix.

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

Python really needs some way of separating the host C compiler and the target C 
compiler.

I'm giving up cross-compiling from my computer and am going to install KBOX on 
an Android virtual device. It worked for Cyd, it'll work for me. Beats 
compiling two separate versions of Python (one just to get host version of pgen 
and _freeze_importlib), passing 20+ arguments to configure segregated in flags 
and environment variables, etc.

Please bear with me.

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah

Stefan Krah added the comment:

Cross compiling worked for a while in 3.4. It broke again
because we don't have a buildbot for that.

You should not need 20 args for ./configure. At least on
Ubuntu the script from #5404 generally works, but indeed
pgen, importlib and the above issue are currently broken
(again).

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ryan Gonzalez

Ryan Gonzalez added the comment:

This is what I'm using:

PYTHON_FOR_BUILD=`realpath ../cpython/python` CC=arm-linux-androideabi-clang 
CXX=arm-linux-androideabi-clang++ ./configure --host=arm-linux-androideabi 
--build=x86_64 --disable-ipv6 ac_cv_file__dev_ptmx=no ac_cv_file__dev_ptc=no 
ac_cv_have_long_long_format=yes

I know I could use config.site, but I just popped all this in a shell script.

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Stefan Krah

Stefan Krah added the comment:

On Ubuntu, when I uploaded the script to #5404, I only needed:

  ./configure --prefix=/tmp/arm-install --without-ensurepip 
--host=arm-linux-gnueabi --build=x86_64 --disable-ipv6


(And config.site of course.)


We just have to fix the pgen etc. issues and someone has to provide
a buildbot, otherwise it's guaranteed to break again.

--

___
Python tracker 

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



[issue23496] Steps for Android Native Build of Python 3.4.2

2015-03-09 Thread Ethan Furman

Ethan Furman added the comment:

This would be a build-bot for cross-compiling?  As opposed to an android 
build-bot (which we'll also need) ?

--

___
Python tracker 

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



[issue11726] linecache becomes specific to Python scripts in Python 3

2015-03-09 Thread Thomas Kluyver

Thomas Kluyver added the comment:

Someone on reddit ran into this, expecting that linecache can be used for an 
arbitrary text file:
http://www.reddit.com/r/Python/comments/2yetxc/utf8_encoding_problems/

I was quite surprised that the docs say "allows one to get any line from any 
file." I've always understood that linecache is specifically for Python files, 
and the use of tokenize.open() means that it will only work for files that are 
UTF-8 or have the #coding: magic comment in the first two lines.

I think the docs should at least mention this; I'm happy to work on a patch for 
it at some point if people agree.

--
nosy: +takluyver

___
Python tracker 

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



[issue16318] FTP_TLS in ftplib not supporting prot_p storlines in FTP7.5

2015-03-09 Thread required field

Changes by required field :


--
nosy: +required field

___
Python tracker 

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



  1   2   >