[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

Added this issue as a place for discussion and release blocker for 3.5.

--
assignee: yselivanov
components: Documentation
messages: 250549
nosy: larry, serhiy.storchaka, yselivanov
priority: release blocker
severity: normal
status: open
title: Editing What's New In Python 3.5
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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings

Larry Hastings added the comment:

You wait until the day of release for 3.5.0 final, then create a "release 
blocker" because some items in the What's New documentation aren't 
lexographically sorted?

We tagged the release yesterday.  The installers are already built.  I am not 
holding up the release for this.

--
priority: release blocker -> normal

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Personally I found few interesting Python 3.5 features just reading recent 
commit log for Doc/whatsnew/3.5.rst. Without this they would be unknown for me.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Sorry, but I thought that such issue already exist.

Yury and Elvis made a lot of changes in What's New in few last days and 
continue to edit it. Are these changes included in 3.5.0 final? Without their 
What's New just isn't ready.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Some modules in the "Improved Modules" section are out of lexicographic order: 
csv, ssl.

--

___
Python tracker 

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



[issue25087] Type variable substitution in type instances

2015-09-13 Thread Stefan Krah

New submission from Stefan Krah:

If a type scheme is instantiated, should the type variables in the
class body be substituted?  This is an example (typed by hand on
a locked down Windows machine, may contain errors):


alpha = TypeVar('alpha')
beta = TypeVar('beta')

class ABTuple(Generic[alpha, beta]):
def __init__(self, a : alpha, b : beta):
self.value = (a, b)

get_type_hints(ABTuple.__init__)
 ==> {'b': ~beta, 'a': ~alpha}


IntIntTuple = ABTuple[int, int]

IntIntTuple
 ==> __main__.ABTuple[int, int]

get_type_hints(IntIntTuple.__init__)
{'b': ~beta, 'a': ~alpha}
  ^^  ^^


Since the type has been specialized, these should ideally be 'int'.

--
components: Interpreter Core
messages: 250565
nosy: gvanrossum, skrah
priority: normal
severity: normal
status: open
title: Type variable substitution in type instances
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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Stefan Behnel

Stefan Behnel added the comment:

Thanks, Yury!

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Elvis Pranskevichus

Elvis Pranskevichus added the comment:

Larry, it looks like the "Detailed Release Information" link on the release 
page still points to rc3, which is a 404 now.

Also, there doesn't seem to be a link to the "What's new" document, only a 
Misc/NEWS link.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov

Yury Selivanov added the comment:

And can we point https://docs.python.org/3/ to 3.5 docs?

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Larry,

Please rebuild the documentation, we've pushed the last round of edits in 
746add37495c.

Also, could you please merge 3.5 into default -- I don't know how to resolve 
some conflicts after your 3.5.0 -> 3.5 merge.

> I could add a "What's New" link somewhere.

Thanks for adding it! Can we make it a bit more prominent by moving it to the 
top of the page?  PEP links are important, but what's new is more digestible.

Stefan, I've added a link to your package.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings

Larry Hastings added the comment:

I don't know how to do it.  I asked the Documentation Expert member of the 
Python 3.5 release team, but it seems he's afk at the moment.  I'm trying to 
find someone else who knows how to do it.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

ssl should be between sqlite3 and subprocess.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Stefan Behnel

Stefan Behnel added the comment:

Could I get a little note in the collections.abc section that the new ABCs 
"Generator", "Coroutine" and "Awaitable" are available as backports in the 
"backports_abc" package on PyPI?

https://pypi.python.org/pypi/backports_abc

I'd like to prevent others from innocently feeling a needless need to roll 
their own solution.

--
nosy: +scoder

___
Python tracker 

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



[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Naveen Togar

New submission from Naveen Togar:

SciPy install using pip fails with the following error:

Running from scipy source directory.

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/distutils/system_info.py:594:
 UserWarning: Specified path /usr/local/include/python3.5m is invalid.
  warnings.warn('Specified path %s is invalid.' % d)

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/distutils/system_info.py:594:
 UserWarning: Specified path /usr/include/python3.5m is invalid.
  warnings.warn('Specified path %s is invalid.' % d)
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
"object of type 'type' has no len()" in evaluating 'len(list)' (available 
names: [])
error: library dfftpack has Fortran sources but no Fortran compiler found


Command "/Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -c 
"import setuptools, 
tokenize;__file__='/private/var/folders/jg/dd63x6c54t9g3qcr2c1xk968gn/T/pip-build-kb3aqu9u/scipy/setup.py';exec(compile(getattr(tokenize,
 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" 
install --record 
/var/folders/jg/dd63x6c54t9g3qcr2c1xk968gn/T/pip-dljex650-record/install-record.txt
 --single-version-externally-managed --compile" failed with error code 1 in 
/private/var/folders/jg/dd63x6c54t9g3qcr2c1xk968gn/T/pip-build-kb3aqu9u/scipy

I didn't have any issues on Python 3.4.  I am on OS X Yosemite.

--
components: Installation
messages: 250573
nosy: ntogar
priority: normal
severity: normal
status: open
title: scipy (0.16.0) install fails on 3.5
type: compile error
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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aa288ad94089 by Yury Selivanov in branch '3.5':
whatsnew/3.5: Fix typo (issue #25082)
https://hg.python.org/cpython/rev/aa288ad94089

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings

Larry Hastings added the comment:

I'm hoping to release 3.5.0 final in the next hour or two.  I don't want to 
hold up the release for your changes.  However, when you're done making changes 
to the document, and they're all checked in, let me know and I'll manually 
build it and push it to the web site.

--

___
Python tracker 

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



[issue25085] Windows x86-64 embeddable zip file contains test directorys

2015-09-13 Thread Wolfgang Langner

New submission from Wolfgang Langner:

The Windows x86-64 embeddable zip file (and possible the one for 32bit)
includes some unnecessary test folders in python35.zip with test scripts.

python35.zip\distutils\tests\
python35.zip\unittest\test\
python35.zip\lib2to3\tests\
python35.zip\ctypes\test\
python35.zip\sqlite3\test\

Python Version 3.5 rc4

This is only a minor issue, because it affects only size not functionality.

--
components: Installation, Windows
messages: 250563
nosy: paul.moore, steve.dower, tds333, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows x86-64 embeddable zip file contains test directorys
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



[issue25086] Windows x86-64 embeddable zip file, lot of big EXE files in distuils

2015-09-13 Thread Wolfgang Langner

New submission from Wolfgang Langner:

In the Windows x86-64 embeddable zip file in
python35.zip\distutils\command\
are a lot of big EXE files. Possible during build for different
VC compilers.

I don't know the exact structure but thing there should only be EXE's
for the actual used compiler to build Python.

But there are:

wininst-10.0-amd64.exe
wininst-10.0.exe
wininst-14.0-amd64.exe
wininst-14.0.exe
wininst-6.0.exe
wininst-7.1.exe
wininst-8.0.exe
wininst-9.0-amd64.exe
wininst-9.0.exe

These files are really big, and some or all? possible not needed for
and embeddable zip distributed Python.

--
components: Distutils, Installation, Windows
messages: 250564
nosy: dstufft, eric.araujo, paul.moore, steve.dower, tds333, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Windows x86-64 embeddable zip file, lot of big EXE files in distuils
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



[issue24665] CJK support for textwrap

2015-09-13 Thread Florent Gallaire

Changes by Florent Gallaire :


Added file: http://bugs.python.org/file40451/CJK+fix.patch

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Elvis Pranskevichus

Changes by Elvis Pranskevichus :


--
nosy: +Elvis.Pranskevichus

___
Python tracker 

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



[issue25084] remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)

2015-09-13 Thread Flavio Grossi

New submission from Flavio Grossi:

threading.Condition.wait(timeout=x) is implemented in python 2  as a semi-busy 
loop which causes cpu wakeups and unexpected cpu use.

I think this is somewhat problematic since it causes problems in all modules 
which use that method, such as Queue.get() when used with a timeout.

This issue has been reported and "fixed" in red hat based distributions in a 
way which i find problematic, as detailed here:
https://bugzilla.redhat.com/show_bug.cgi?id=1230802

The attached patch backports the following change from py3 to fix the problem:
https://hg.python.org/cpython/rev/01d1fd775d16/

--
components: Library (Lib)
files: timedlock.patch
keywords: patch
messages: 250562
nosy: flavio, pitrou
priority: normal
severity: normal
status: open
title: remove semi-busy loop in py2.7 threading.Condition.wait(timeout=x)
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file40450/timedlock.patch

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Larry Hastings

Larry Hastings added the comment:

The "Detailed Release Information" link is correct.  You probably just have an 
old cached copy of something.

I could add a "What's New" link somewhere.

Though both of these things are interesting, neither of them is relevant to 
this issue.  Maybe you could jump on IRC and report them in real time?

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov

Yury Selivanov added the comment:

> Some modules in the "Improved Modules" section are out of lexicographic 
> order: csv, ssl.

Yes, these two weren't properly ordered by *2nd* letter.  Fixed.

>>-constructor.  All converters defined in config parser (either by subclassing 
>>or

Good catch.  Both Elvis and I are going to do a final thorough pass over the 
whatsnew to fix hiccups like this one.  In no way this should be a release 
blocker.

> Second, if the What's New was really that horribly out of date, and we wanted 
> people who download the documentation to get a fresh one, we could easily 
> update the downloadable documentation; it ships separately.  There would be 
> no need to hold up the release for this.

I'd say it's in a ready shape.  We've spent tons of time refining it, syncing 
NEWS items first, looking for undocumented changes in commits without NEWS 
updates, syncing docs by versionadded/changed (both ways), etc.  I'm fairly 
confident that 99% of changes are now documented.  We'll fix the remaining 
typos/formatting issues in a few hours.

> And finally, I actually backported the What's New in 3.5 to the 3.5.0 release 
> yesterday.

Thanks for doing that, Larry!

--

___
Python tracker 

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



[issue24965] Implement PEP 498: Literal String Formatting

2015-09-13 Thread Yury Selivanov

Changes by Yury Selivanov :


--
nosy: +elvis

___
Python tracker 

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



[issue25061] Add native enum support for argparse

2015-09-13 Thread paul j3

paul j3 added the comment:

I'm not quite sure what you mean by 'the enum type to be stored directly'.

With my type function, the string input is converted to an enum object and that 
is stored in the Namespace.  You can't be any more direct than that.

Or are you thinking that `argparse` has some catalog of 'types' that it uses to 
check for value validity and conversion?  There isn't such a collection.  The 
value of the 'type' parameter has to be a callable.  (There is a registry 
mechanism, but that just maps strings on to callables.)

My suggestion does not provide help, but that isn't hard to write that for 
yourself.  A help parameter like:

help='Enum: {%s}'%','.join([t.name for t in CustomEnumType])

would display:

usage: ipython3 [-h] [-p P]

optional arguments:
  -h, --help  show this help message and exit
  -p PEnum: {VAL1,VAL2,VAL3}

For really long lists you could write a multiline help and display it with a 
RAW formatter.

I wouldn't use 'choices' with a type function like this.  The type function 
takes care of all the necessary testing and error messaging.  As you write, 
displaying the enum values would just be confusing.


If we define a dictionary wrapper for the enum class, the use of 'choices' 
might not seem so hacky:

 enumDict = {t.name.lower():t for t in CustomEnumType}
 parser.add_argument("-q", default="val1", choices=enumDict)

 parser.print_help()

producing:

usage: ipython3 [-h] [-p P] [-q {val1,val3,val2}]

optional arguments:
  -h, --help   show this help message and exit
  -p P Enum: {VAL1,VAL2,VAL3}
  -q {val1,val3,val2}

The keys of a 'choices' dictionary are used automatically in the usage and 
help.  That's nice when there are a few choices, but not so good when there are 
many.  Those problems have been discussed in other bug issues.

This dictionary can be used just like your code to convert the Namespace string 
to an enum object:

In [57]: parser.parse_args([])
Out[57]: Namespace(p=, q='val1')
In [58]: enumDict[_.q]
Out[58]: 

And of course 'choices' handles the error listing as well - a plus or minus:

In [59]: parser.parse_args(['-q','test'])
usage: ipython3 [-h] [-p P] [-q {val1,val3,val2}]
ipython3: error: argument -q: invalid choice: 'test' (choose from 'val1', 
'val3', 'val2')
...

If we are going add anything to streamline the handling of 'enums', it should 
also streamline the handling of any mapping.  The main thing that 'enums' adds 
to Python is a uniqueness constraint - which is an insignificant issue in the 
argparse context.  My custom type function would work just as well with a 
dictionary.  And a dictionary would allow the use of aliases, as well as the 
upper/lower tweaking.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov

Yury Selivanov added the comment:

> ssl should be between sqlite3 and subprocess.

It makes sense that ssl module description follows the socket module.

--
resolution:  -> fixed
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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Many thanks to Yury and Elvis for your work on What's New.

--

___
Python tracker 

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



[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Carol Willing

Carol Willing added the comment:

I am unable to pip install scipy, numpy, or pandas using 3.5.0 on OS X 10.10.4.

After installing Python 3.5 using the installer downloaded from Python.org 
page, I created a virtualenv using `pyvenv myscipy` and activated with `source 
myscipy\bin\activate`. `python -V` returns 3.5.0.

`pip install scipy` succeeds in `Collecting scipy` and downloading 100% of 
file. It hangs after that indication for 1m 21s with no warnings or errors. 
Cancelled the operation. I tried with scipy, numpy, pandas with no success. I 
also tried `python -m pip install scipy==0.16` and it also stalled with no 
warning or errors.

`pip search` and `pip install flask` worked fine in the 3.5 virtualenv.

--
nosy: +willingc
priority: normal -> high
stage:  -> needs patch

___
Python tracker 

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



[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-13 Thread desbma

desbma added the comment:

If I understand you correctly, a naive implementation like this:

use_chunk_copy = False
try:
  fdsrc = fsrc.fileno()
  fddst = fdst.fileno()
except OSError:
  # fallback on current chunk based Python copy
  use_chunk_copy = True
else:
  # we have 2 fd, try sendfile
  try:
os.sendfile(fdsrc, fddst)
  except AttributeError:
# sendfile not available
use_chunk_copy = True
if use_chunk_copy:
  # use current Python based chunk copy

...would not work because some file like objects expose fileno(), even though 
it does not accurately represent the file because they wrap it to add special 
behavior (like GzipFile).

I don't understand, if they alter the file behavior, why do they expose 
fileno()?

--

___
Python tracker 

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



[issue25087] Type variable substitution in type instances

2015-09-13 Thread Guido van Rossum

Guido van Rossum added the comment:

Good question. Let's discuss this in the type hinting / pep 484 tracker:

https://github.com/ambv/typehinting/issues/156

--

___
Python tracker 

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



[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Ned Deily

Ned Deily added the comment:

For 3.4 and 2.7, the SciPy and matplotlib projects supply pre-compiled wheels 
for their distributions.  As of this moment, they haven't yet updated their 
PyPI entries with 3.5 wheels (.whl files).  Until they do, pip would fall back 
to trying to build them from source, which as Carol points out, will likely 
require installing additional non-Apple build tools, like gfortran.  Suggest 
you check on the mailing lists or other support forums for the SciPy and 
matplotlib projects to see when each expects to have OS X wheels available for 
3.5. I'd guess it won't be long since both are popular downloads.

--
nosy: +ned.deily
resolution:  -> third party
stage: test needed -> resolved
status: open -> closed
type: compile error -> 

___
Python tracker 

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



[issue25061] Add native enum support for argparse

2015-09-13 Thread desbma

desbma added the comment:

I would like the enum type to be stored directly.

With your approach, the user does not know what are the possible choices, until 
he/she tries a invalid value and get the exception. If I pass the enum type to 
the choice parameter, the help message is not very user friendly 
(""...) and does not accurately represent possible 
input strings.

Anyway, my first example snippet works and does what I need, but it feels a bit 
like a hack.
In my opinion this is a classic use case for enums, that should be handled more 
naturally by the argparse module.

--

___
Python tracker 

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



[issue25082] Editing What's New In Python 3.5

2015-09-13 Thread Yury Selivanov

Yury Selivanov added the comment:

Thanks, Serhiy!

--

___
Python tracker 

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



[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-13 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Naveen Togar

Naveen Togar added the comment:

I didn't have any issues with either numpy or pandas.  I just tried installing 
matplotlib and that failed too.

--

___
Python tracker 

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



[issue25088] scipy (0.16.0) install fails on 3.5

2015-09-13 Thread Carol Willing

Carol Willing added the comment:

Naveen, I was able to resolve this problem for installation by installing 
gfortran using the instructions here: http://hpc.sourceforge.net/


After gfortran is successfully installed, I was able to ``pip install scipy 
-v`` the libraries that depend on gfortran. It did take 8m 39s to execute the 
install of scipy which is why I used the -v (verbose) option so that I could 
see that it was still working.

It would be good for numpy and scipy to indicate more clearly the absence or 
inability to find gfortran with a more obvious error message.

My recommendation is to close this issue if you are able to successfully 
install.

--
priority: high -> normal
stage: needs patch -> test needed

___
Python tracker 

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



[issue25063] shutil.copyfileobj should internally use os.sendfile when possible

2015-09-13 Thread Martin Panter

Martin Panter added the comment:

I don’t know the exact reasoning, but fileno() could be useful for other 
purposes, e.g. passing to stat() to find the last modification time, passing to 
select() to see if data is available.

--

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Mark Lawrence

New submission from Mark Lawrence:

I first asked a few days ago, see this thread 
http://www.gossamer-threads.com/lists/python/python/1216917.  You can work 
around it by running "repair" but it takes an age to run for what, to me 
anyway, is a minor irritant.

--
components: Windows
messages: 250588
nosy: BreamoreBoy, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Can't run Python Launcher on Windows
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



[issue6691] Support for nested classes and function for pyclbr

2015-09-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
type:  -> enhancement
versions: +Python 3.6 -Python 3.2

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Steve Dower

Steve Dower added the comment:

Yeah, it's basically impossible to manage PATH automatically. You've probably 
installed 3.5 just for yourself while 3.4 is installed for all users. In this 
case, 3.5 will always lose because Windows puts user paths after system paths.

You could modify 3.4 to remove it from PATH or use py.exe, which resolves 
versions correctly. Or you can modify your PATH manually.

--

___
Python tracker 

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



[issue24965] Implement PEP 498: Literal String Formatting

2015-09-13 Thread Martin Panter

Martin Panter added the comment:

Regarding the null terminator, I was mainly smoke testing your code. :) Maybe 
it would be too hard to support properly. Although I could imagine someone 
doing things like this:

>>> d = {b"key\x00": "value"}
>>> f"key={d[b'key\x00']}"  # Oops, escape code at wrong level
  File "", line 1
(d[b'key
   ^
SyntaxError: EOL while scanning string literal
>>> rf"key={d[b'key\x00']}"  # Corrected
'key=value'

I also finished quickly reading over the C code, with a couple more review 
comments. But I am not familiar with the files involved to thoroughly review.

--

___
Python tracker 

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



[issue25090] IDLE: remove noisy icons from class (module) browser

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Adding function arguments to the module browser, misnamed Class Browser, is 
#20827.  That leaves removing the noisy icons from class and def entries (where 
they do not fit anyway), as the concrete appearance change proposal here.  
Better to use the space for arguments.

Adding nested classes is #1612262 (9 years ago).  I just noticed that there is 
a 6 year old patch that needs to be reviewed.

The TextMate box has a checkmark at the current location. Having an editor know 
about an attached module browser and inform it of the cursor's location would 
be a separate issue. It would be relatively easy when code context is active.  
But nested classes and functions cannot be marked until they are displayed.

A module browser, even enhanced to display nested classes and functions, could 
not replace code context since the latter includes nested compound statements 
within functions.  I think code context would be even more useful if it were to 
display the complete context, using as many lines as needed, instead of some 
fixed number.  But I have not written a patch yet or opened an issue.

--
title: IDLE: alternative to class browser / code context -> IDLE: remove noisy 
icons from class (module) browser

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Steve Dower

Steve Dower added the comment:

I don't understand what you did and what the result was from that thread.

* What options did you select when installing 3.5?
* What other Python versions did you have? What options were used to install 
them?
* Where was py.exe before installing 3.5?
* Can you attach all of the logs from your 3.5 install (from your %TEMP%)?

--

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

For anyone else reading this, Mark says he already re-tried with 3.5.0.

The only problem I had with the install on my Win7, with 2.7.10, 3.4.3, and 
3.5.0rc3 already present, is that 3.4.3 is still the default python (started by 
'python') in spite of checking everything relevant when installing 3.5.0.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue25090] IDLE: alternative to class browser / code context

2015-09-13 Thread Mark Roseman

New submission from Mark Roseman:

Proposal for an alternative or perhaps replacement of both the code context 
extension, as well as the class browser (rooted at a particular file, not the 
path browser).

I'll direct your attention to the attached browser.png. On the right is IDLE's 
class browser window of ClassBrowser.py. On the left, I've got the same file 
loaded into TextMate. 

In the TextMate status bar, it shows you where you're currently located (here, 
in the __init__ function). When you click on that part of the status bar, it 
brings up a scrollable menu showing the structure of the file. I think it's 
easier to read than IDLE's, despite having more information (description of the 
parameters), thanks to reduction in 'chart junk'.

Downside of this approach is that you can't have a window along the side so you 
can navigate the code while seeing the class display. Though that might best be 
achieved if IDLE added a sidebar, rather than a true separate window.

--
components: IDLE
files: browser.png
messages: 250589
nosy: kbk, markroseman, roger.serwy, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: alternative to class browser / code context
type: enhancement
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40452/browser.png

___
Python tracker 

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



[issue25090] IDLE: alternative to class browser / code context

2015-09-13 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I don't see anything that replaces Code Context.   That extension is priceless 
for people editing classes and methods that extend more than one screen.

ISTM, there are too many sweeping change proposals that seem to base on general 
look and feel but disregard how people actually use these tools.

--
nosy: +rhettinger

___
Python tracker 

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



[issue25091] Please revert the Windows Installer swithch to micro type.

2015-09-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
title: Please revert the Windows Installer to micro type. -> Please revert the 
Windows Installer swithch to micro type.

___
Python tracker 

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



[issue1612262] Class Browser doesn't show internal classes

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Class Browser is now a module browser as it includes functions not in classes. 
I guess pyclbr does this. Enhancing this for current versions would require 
adding a private copy of enhanced pyclbr to idlelib.

--
nosy: +terry.reedy
priority: low -> normal
versions: +Python 2.7, Python 3.5, Python 3.6 -Python 3.2

___
Python tracker 

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



[issue25091] Windows Installer uses small font

2015-09-13 Thread Steve Dower

Steve Dower added the comment:

Thanks for pointing this out. I'll take a look before 3.5.1.

--
title: Please revert the Windows Installer swithch to micro type. -> Windows 
Installer uses small font

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

PS C:\Users\Terry> py -3 -m test test_datetime
[1/1] test_datetime
test test_datetime failed -- Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\test\datetimetester.py", line 1154, in 
test_strftime
self.assertEqual(t.strftime(""), "") # SF bug #761337
ValueError: Invalid format string

Same result 3 times.

--
components: Library (Lib)
messages: 250600
nosy: belopolsky, terry.reedy
priority: normal
severity: normal
stage: needs patch
status: open
title: Regression: test_datetime fails on 3.5, Win 7, works on 3.4
type: behavior

___
Python tracker 

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



[issue25078] Document InstallAllUsers installer parameter default 0

2015-09-13 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 399b7d5616f1 by Steve Dower in branch '3.5':
Closes #25078: Document InstallAllUsers installer parameter default 0
https://hg.python.org/cpython/rev/399b7d5616f1

--
nosy: +python-dev
resolution:  -> fixed
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



[issue25091] Please revert the Windows Installer to micro type.

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

The 3.4.3 installer used normal size type (10 point, I believe) in the dialog 
boxes.  I can more or less read this with by non 20/20 eyes.  The new 3.5.0 
installer uses a smaller type (8? 7? point), which for even more people will 
mean using a magnifier. Please revert this anti-accessibility change.  Instead, 
increase to 12 point if possible.

I noticed that the Python logo picture is also shrunken by about 20%.  I 
checked side-by-side with the 3.4.3 box, so all system settings were the same 
for both.

--
components: Installation, Windows
messages: 250593
nosy: paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Please revert the Windows Installer to micro type.
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



[issue25091] Windows Installer uses small font

2015-09-13 Thread Steve Dower

Steve Dower added the comment:

Actually, what DPI setting are you using? With new UI, it's possible that we're 
not scaling the same way as before.

--

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I did installed 3.5 for all users.  Logging into another user and back changed 
'python' association. So ok now.

--

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

Looks like an issue with a space in the path.  That test has been flaky in the 
past, though, I assume it's failed multiple times?

--

___
Python tracker 

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



[issue25096] test_gdb failed to read version for gdb >= 7.10

2015-09-13 Thread Felix Yan

New submission from Felix Yan:

The regex in test_gdb reads only one digit of gdb's minor version, which would 
fail for gdb >= 7.10, and skip the test as 7.1 < 7.4.

Original commit: https://hg.python.org/cpython/rev/b71cda2f48c6#l1.9

Patch attached.

--
components: Tests
files: test_gdb-version-fix.patch
keywords: patch
messages: 250608
nosy: felixonmars
priority: normal
severity: normal
status: open
title: test_gdb failed to read version for gdb >= 7.10
type: behavior
versions: Python 3.4, Python 3.5
Added file: http://bugs.python.org/file40453/test_gdb-version-fix.patch

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I tried more that once before submitting.  That directory was a mistake. I 
since reinstalled 3.5.0 to put it in \Python35 (no space, ) and it works. Does 
it fail dependable in 'Program Files'?

--

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2015-09-13 Thread Mark Lawrence

Mark Lawrence added the comment:

"Unable to find vcvarsall.bat" is raised when Visual Studio isn't installed or 
it's the incorrect version, so I don't believe these are the same at all.

--
components:  -Distutils2
nosy: +dstufft

___
Python tracker 

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



[issue25083] Python can sometimes create incorrect .pyc files

2015-09-13 Thread Gregory P. Smith

Gregory P. Smith added the comment:

we'll need a test case .pyc where this happens.

--

___
Python tracker 

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



[issue25094] Test_tools not working on Windows.

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

Interesting, I got a different failure on 3.5.0:

==
ERROR: test_sundry (test.test_tools.test_sundry.TestSundryScripts)
--
Traceback (most recent call last):
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1386, in parse_args
stop = self._process_args(largs, rargs, values)
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1430, in 
_process_args
self._process_short_opts(rargs, values)
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1512, in 
_process_short_opts
raise BadOptionError(opt)
optparse.BadOptionError: no such option: -u

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\Python 3.5\lib\test\test_tools\test_sundry.py", line 
36, in test_sundry
import_tool(name)
  File "C:\Program Files\Python 3.5\lib\test\test_tools\__init__.py", line 22, 
in import_tool
return importlib.import_module(toolname)
  File "C:\Program Files\Python 3.5\lib\importlib\__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 662, in exec_module
  File "", line 222, in _call_with_frames_removed
  File "C:\Program Files\Python 3.5\Tools\scripts\2to3.py", line 5, in 
sys.exit(main("lib2to3.fixes"))
  File "C:\Program Files\Python 3.5\lib\lib2to3\main.py", line 179, in main
options, args = parser.parse_args(args)
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1388, in parse_args
self.error(str(err))
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1568, in error
self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
  File "C:\Program Files\Python 3.5\lib\optparse.py", line 1558, in exit
sys.exit(status)
SystemExit: 2


I had no failures on 3.4.3.

--
nosy: +zach.ware

___
Python tracker 

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



[issue25083] Python can sometimes create incorrect .pyc files

2015-09-13 Thread Gregory P. Smith

Gregory P. Smith added the comment:

Inspecting the 2.7 code:

https://hg.python.org/cpython/file/2.7/Python/import.c#l761
following that down to 
https://hg.python.org/cpython/file/2.7/Python/marshal.c#l1126

it looks like it does the right thing on EOF error (from either getc or from 
fread) and raises an exception which aborts load_compiled_module.

--
nosy: +gregory.p.smith

___
Python tracker 

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



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-13 Thread Zachary Ware

New submission from Zachary Ware:

==
ERROR: test_write_with_optimization (test.test_zipfile.PyZipFileTests)
--
Traceback (most recent call last):
  File "C:\Program Files\Python 3.5\lib\test\test_zipfile.py", line 771, in 
test_write_with_optimization
zipfp.writepy(packagedir)
  File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1756, in writepy
fname, arcname = self._get_codename(initname[0:-3], basename)
  File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1882, in _get_codename
if not _compile(file_py, optimize=self._optimize):
  File "C:\Program Files\Python 3.5\lib\zipfile.py", line 1819, in _compile
py_compile.compile(file, doraise=True, optimize=optimize)
  File "C:\Program Files\Python 3.5\lib\py_compile.py", line 143, in compile
importlib._bootstrap_external._write_atomic(cfile, bytecode, mode)
  File "", line 106, in _write_atomic
PermissionError: [Errno 13] Permission denied: 'C:\\Program Files\\Python 
3.5\\lib\\email\\__pycache__\\__init__.cpython-35.opt-1.pyc.755404532528'

--
components: Tests, Windows
messages: 250624
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_zipfile failure when run by unprivileged user with installed Python
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



[issue25102] Windows installer: 'precompile standard library' option should pre-compile with -O and -OO

2015-09-13 Thread Zachary Ware

New submission from Zachary Ware:

Since the default all-users install location is now Program Files and thus not 
world-writable and with the advent of optimization-tagged .pyc files, the 
'precompile' option in the installer should also precompile with -O and -OO.

--
assignee: steve.dower
components: Installation, Windows
messages: 250625
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: Windows installer: 'precompile standard library' option should 
pre-compile with -O and -OO
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



[issue25101] test_zipfile failure when run by unprivileged user with installed Python

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Ah, os.access() doesn't work on Windows.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

The patch works, with an added 'import subprocess' and after removing the 
'f.close()' check.

I hadn't realized this test was still using os.popen, that's fairly horrible :)

--

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The following failures on new 3.5.0 seems related as they all end with the same 
message about vcvarsall.bat (slightly different from 3.4 failures).

==
ERROR: test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase)
--

==
ERROR: test_optional_extension (distutils.tests.test_build_ext.BuildExtTestCase)
--

==
ERROR: test_get_outputs 
(distutils.tests.test_build_ext.ParallelBuildExtTestCase)
--

==
ERROR: test_optional_extension 
(distutils.tests.test_build_ext.ParallelBuildExtTestCase)
--

==
ERROR: test_compiler_options 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
ERROR: test_vcruntime_copy 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
ERROR: test_vcruntime_skip_copy 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
FAIL: test_customize_compiler_before_get_config_vars 
(distutils.tests.test_sysconfig.SysconfigTestCase)
--
Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\distutils\tests\test_sysconfig.py", line 
197, in test_customize_compiler_before_get_c
onfig_vars
self.assertEqual(0, p.returncode, "Subprocess failed: " + outs)
AssertionError: 0 != 1 : Subprocess failed: Traceback (most recent call last):
  File "@test_5504_tmp", line 5, in 
rc = config.try_compile('int x;')
  File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 227, in 
try_compile
self._compile(body, headers, include_dirs, lang)
  File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 133, in 
_compile
self.compiler.compile([src], include_dirs=include_dirs)
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 315, in 
compile
self.initialize()
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 208, in 
initialize
vc_env = _get_vc_env(plat_spec)
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 83, in 
_get_vc_env
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat


--
Ran 234 tests in 1.108s

FAILED (failures=1, errors=7, skipped=28)
Warning -- threading._dangling was modified by test_distutils
Warning -- files was modified by test_distutils

--
nosy: +steve.dower, zach.ware

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

[324/397/3] test_tcl
'\\TEJAREX\C$\Programs\Python' is not recognized as an internal or external 
command,
operable program or batch file.
test test_tcl failed -- Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\test\test_tcl.py", line 247, in 
testLoadWithUNC
self.assertIn('tkinter', f.read())
AssertionError: 'tkinter' not found in ''

I am pretty sure test ran fine in .0rc about a month ago, as it does in 3.4.3.

--
components: Tkinter, Windows
messages: 250602
nosy: paul.moore, serhiy.storchaka, steve.dower, terry.reedy, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: New 3.5.0 failure in test_tcl on win7
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



[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-09-13 Thread Zachary Ware

New submission from Zachary Ware:

With an installed Python with pywin32 installed, running the test as a 
non-privileged user:

==
ERROR: test_basic (test.test_logging.NTEventLogHandlerTest)
--
Traceback (most recent call last):
  File "C:\Python34\lib\test\test_logging.py", line 4108, in test_basic
h = logging.handlers.NTEventLogHandler('test_logging')
  File "C:\Python34\lib\logging\handlers.py", line 1011, in __init__
self._welu.AddSourceToRegistry(appname, dllname, logtype)
  File "C:\Python34\lib\site-packages\win32\lib\win32evtlogutil.py", line 35, 
in AddSourceToRegistry
"SYSTEM\\CurrentControlSet\\Services\\EventLog\\%s\\%s" % (eventLogType, 
appName))
pywintypes.error: (5, 'RegCreateKey', 'Access is denied.')


The test should skip in the case of 'Access is denied'.

Assumed to affect 2.7 and up, but haven't checked anything but 3.4.

--
components: Library (Lib), Windows
keywords: easy
messages: 250610
nosy: paul.moore, steve.dower, tim.golden, vinay.sajip, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_logging may fail with 'Access is denied' when pywin32 is installed
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue25089] Can't run Python Launcher on Windows

2015-09-13 Thread Mark Lawrence

Mark Lawrence added the comment:

I install for all users, don't put Python on the PATH, other than that I think 
everything is selected.

I've 2.6, 2.7. 3.3 and 3.4.  I had 3.5.0rc4 and upgraded the existing 
installation to 3.5.0 full release.

I've no idea where py.exe was, but it is now in C:\Windows.  This is what I 
expect having just read PEP397.

Do you really want all logs from the 3.5.0 install and the repair, that's 21 
files?  It's an odd number as there is no log file for the launcher in the 
install but there is in the repair.  The same is true for the rc4 logs.

--

___
Python tracker 

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



[issue12420] distutils tests fail if PATH is not defined

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

Agreed with Mark; I don't see anywhere that lack of PATH would affect the 
failures you're seeing, Terry.  Do you have VS2015 installed?  If not, the 
failure of distutils to skip the tests that need it should be raised as a 
separate issue.

--

___
Python tracker 

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



[issue25094] Test_tools not working on Windows.

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

When run at part of test suite on 3.5.0 (win7)
[341/397/4] test_tools
Usage: 2to3 [options] file|dir ...

regrtest.py: error: no such option: --slaveargs
test test_tools failed -- Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1386, in parse_args
stop = self._process_args(largs, rargs, values)
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1426, in _process_args
self._process_long_opt(rargs, values)
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1479, in _process_long_opt
opt = self._match_long_opt(opt)
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1464, in _match_long_opt
return _match_abbrev(opt, self._long_opt)
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1669, in _match_abbrev
raise BadOptionError(s)
optparse.BadOptionError: no such option: --slaveargs

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\test\test_tools\test_sundry.py", line 36, in 
test_sundry
import_tool(name)
  File "C:\Programs\Python 3.5\lib\test\test_tools\__init__.py", line 22, in 
import_tool
return importlib.import_module(toolname)
  File "C:\Programs\Python 3.5\lib\importlib\__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 662, in exec_module
  File "", line 222, in _call_with_frames_removed
  File "C:\Programs\Python 3.5\Tools\scripts\2to3.py", line 5, in 
sys.exit(main("lib2to3.fixes"))
  File "C:\Programs\Python 3.5\lib\lib2to3\main.py", line 179, in main
options, args = parser.parse_args(args)
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1388, in parse_args
self.error(str(err))
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1568, in error
self.exit(2, "%s: error: %s\n" % (self.get_prog_name(), msg))
  File "C:\Programs\Python 3.5\lib\optparse.py", line 1558, in exit
sys.exit(status)
SystemExit: 2

run by itselt (-m test test_tools)
PS C:\Users\Terry> py -3 -m test  test_tools
[1/1] test_tools
RefactoringTool: Skipping optional fixer: buffer
RefactoringTool: Skipping optional fixer: idioms
RefactoringTool: Skipping optional fixer: set_literal
RefactoringTool: Skipping optional fixer: ws_comma
RefactoringTool: Can't open test_tools: [Errno 2] No such file or directory: 
'test_tools'
RefactoringTool: No files need to be modified.
RefactoringTool: There was 1 error:
RefactoringTool: Can't open test_tools: [Errno 2] No such file or directory: 
'test_tools'
Warning -- logging._handlerList was modified by test_tools
test test_tools failed -- Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\test\test_tools\test_sundry.py", line 36, in 
test_sundry
import_tool(name)
  File "C:\Programs\Python 3.5\lib\test\test_tools\__init__.py", line 22, in 
import_tool
return importlib.import_module(toolname)
  File "C:\Programs\Python 3.5\lib\importlib\__init__.py", line 126, in 
import_module
return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in _find_and_load_unlocked
  File "", line 673, in _load_unlocked
  File "", line 662, in exec_module
  File "", line 222, in _call_with_frames_removed
  File "C:\Programs\Python 3.5\Tools\scripts\2to3.py", line 5, in 
sys.exit(main("lib2to3.fixes"))
SystemExit: 1

With 3.4.3, shorter message about multiple errors

--
messages: 250603
nosy: terry.reedy
priority: normal
severity: normal
status: open
title: Test_tools not working on Windows.
type: behavior
versions: Python 3.4, Python 3.5

___
Python tracker 

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



[issue25095] test_httpservers hangs on 3.5.0, win 7

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

test_httpservers ok on 3.4.3, hangs indefinitely (over an hour) on 3.5.0, win 7.

--
components: Library (Lib), Tests, Windows
messages: 250606
nosy: paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
priority: normal
severity: normal
status: open
title: test_httpservers hangs on 3.5.0, win 7
type: crash
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



[issue25098] test_uuid fails with pywin32 installed

2015-09-13 Thread Zachary Ware

New submission from Zachary Ware:

With installed Python with pywin32 installed:

==
ERROR: test_netbios_getnode (test.test_uuid.TestInternals)
--
Traceback (most recent call last):
  File "C:\Python34\lib\test\test_uuid.py", line 479, in test_netbios_getnode
node = uuid._netbios_getnode()
  File "C:\Python34\lib\uuid.py", line 432, in _netbios_getnode
adapters._pack()
  File "C:\Python34\lib\site-packages\win32\lib\netbios.py", line 219, in _pack
self._buffer_[:] = struct.pack(*(self._format,) + tuple(vals))
struct.error: argument for 's' must be a bytes object

Assumed to affect all 3.x versions, but only confirmed on 3.4.

--
components: Library (Lib), Windows
messages: 250612
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_uuid fails with pywin32 installed
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue25099] test_compileall fails when run by unprivileged user on installed Python

2015-09-13 Thread Zachary Ware

New submission from Zachary Ware:

==
FAIL: test_no_args_respects_force_flag (test.test_compileall.CommandLineTests)
--
Traceback (most recent call last):
  File "C:\Program Files\Python 3.5\lib\test\test_compileall.py", line 229, in 
test_no_args_respects_force_flag
self.assertRunOK('-f', PYTHONPATH=self.directory)
  File "C:\Program Files\Python 3.5\lib\test\test_compileall.py", line 179, in 
assertRunOK
*self._get_run_args(args), **env_vars)
  File "C:\Program Files\Python 3.5\lib\test\support\script_helper.py", line 
135, in assert_python_ok
return _assert_python(True, *args, **env_vars)
  File "C:\Program Files\Python 3.5\lib\test\support\script_helper.py", line 
121, in _assert_python
err))
AssertionError: Process return code is 1
command line: ['C:\\Program Files\\Python 3.5\\python.exe', '-X', 
'faulthandler', '-S', '-m', 'compileall', '-f']

stdout:
---
(... truncated stdout ...)rror: [Errno 13] Permission denied: 'C:\\Program 
Files\\Python 3.5\\lib\\__pycache__\\sre_compile.cpython-35.pyc.978608563184'
Compiling 'C:\\Program Files\\Python 3.5\\lib\\sre_constants.py'...



No such problem on installed 3.4.3.

--
components: Tests, Windows
messages: 250614
nosy: paul.moore, steve.dower, tim.golden, zach.ware
priority: normal
severity: normal
stage: needs patch
status: open
title: test_compileall fails when run by unprivileged user on installed Python
type: behavior
versions: Python 3.5, Python 3.6

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

Yes, installation in 'Program Files' produces the failure.  Looks like it's 
probably just bad quoting in the test, but I haven't looked at the code yet.  
This probably affects 2.7 and up, I don't think there have been any changes to 
that test in recent branches.

--
keywords: +easy
stage:  -> needs patch

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread Terry J. Reedy

Changes by Terry J. Reedy :


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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Looks like something related to issue 24917.

--
nosy: +JohnLeitch, steve.dower

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread John Leitch

Changes by John Leitch :


--
nosy: +brycedarling

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

I can reproduce.  I'm bewildered as to why none of the buildbots are 
complaining about this.

--
nosy: +zach.ware

___
Python tracker 

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



[issue25100] Test_distutils fails instead of skipping if no VS2015

2015-09-13 Thread Terry J. Reedy

New submission from Terry J. Reedy:

Moved here from #12420 as a new and separate issue after diagnosis by  Mark 
Lawrence and Zack Ware. The following failures on new 3.5.0 all end with the 
same message about vcvarsall.bat (slightly different from 3.4 failures).

==
ERROR: test_get_outputs (distutils.tests.test_build_ext.BuildExtTestCase)
--

==
ERROR: test_optional_extension (distutils.tests.test_build_ext.BuildExtTestCase)
--

==
ERROR: test_get_outputs 
(distutils.tests.test_build_ext.ParallelBuildExtTestCase)
--

==
ERROR: test_optional_extension 
(distutils.tests.test_build_ext.ParallelBuildExtTestCase)
--

==
ERROR: test_compiler_options 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
ERROR: test_vcruntime_copy 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
ERROR: test_vcruntime_skip_copy 
(distutils.tests.test_msvccompiler.msvccompilerTestCase)
--

==
FAIL: test_customize_compiler_before_get_config_vars 
(distutils.tests.test_sysconfig.SysconfigTestCase)
--
Traceback (most recent call last):
  File "C:\Programs\Python 3.5\lib\distutils\tests\test_sysconfig.py", line 
197, in test_customize_compiler_before_get_c
onfig_vars
self.assertEqual(0, p.returncode, "Subprocess failed: " + outs)
AssertionError: 0 != 1 : Subprocess failed: Traceback (most recent call last):
  File "@test_5504_tmp", line 5, in 
rc = config.try_compile('int x;')
  File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 227, in 
try_compile
self._compile(body, headers, include_dirs, lang)
  File "C:\Programs\Python 3.5\lib\distutils\command\config.py", line 133, in 
_compile
self.compiler.compile([src], include_dirs=include_dirs)
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 315, in 
compile
self.initialize()
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 208, in 
initialize
vc_env = _get_vc_env(plat_spec)
  File "C:\Programs\Python 3.5\lib\distutils\_msvccompiler.py", line 83, in 
_get_vc_env
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat


--
Ran 234 tests in 1.108s

FAILED (failures=1, errors=7, skipped=28)
Warning -- threading._dangling was modified by test_distutils
Warning -- files was modified by test_distutils

--
components: Distutils, Tests, Windows
messages: 250620
nosy: dstufft, eric.araujo, paul.moore, steve.dower, terry.reedy, tim.golden, 
zach.ware
priority: normal
severity: normal
status: open
title: Test_distutils fails instead of skipping if no VS2015
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



[issue12420] distutils tests fail if PATH is not defined

2015-09-13 Thread Terry J. Reedy

Terry J. Reedy added the comment:

No VS2015 yet.  New issue #25100.  Thanks.

--

___
Python tracker 

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



[issue25092] Regression: test_datetime fails on 3.5, Win 7, works on 3.4

2015-09-13 Thread Zachary Ware

Zachary Ware added the comment:

Interestingly, the re-run performed by regrtest's '-w' flag did not fail.

--

___
Python tracker 

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



[issue25093] New 3.5.0 failure in test_tcl on win7

2015-09-13 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Could you please test with following patch?

--
keywords: +patch
stage: needs patch -> patch review
Added file: http://bugs.python.org/file40454/testLoadWithUNC.diff

___
Python tracker 

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



[issue25104] Wrong documentation for "chr(i)" function.

2015-09-13 Thread m

New submission from m:

The documentation of the "chr(i)" function is not correct, it states that The 
valid range for the argument is from 0 through 1,114,111 (0x10 in base 16).

Correction: The valid range for the argument is from 0 through 255 (0xFF in 
base 16).

--
assignee: docs@python
components: Documentation
messages: 250630
nosy: docs@python, m
priority: normal
severity: normal
status: open
title: Wrong documentation for "chr(i)" function.
type: compile error

___
Python tracker 

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