[issue25211] Error message formatting errors in int object unit-test script

2015-09-22 Thread s-wakaba

New submission from s-wakaba:

I've found some parts there are illegal message formatting in int object unit 
test script "Lib/test/test_long.py" when hacking the interpreter.

because they were an easy problem, I already fixed them to promote my work.
Therefore, the patch has been attacked.

thanks

--
components: Tests
files: test_long.py.patch
keywords: patch
messages: 251291
nosy: s-wakaba
priority: normal
severity: normal
status: open
title: Error message formatting errors in int object unit-test script
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file40543/test_long.py.patch

___
Python tracker 

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



[issue25185] Inconsistency between venv and site

2015-09-22 Thread Vinay Sajip

Vinay Sajip added the comment:

Seems like the right fix would be to change site.py to read it using UTF-8.

--

___
Python tracker 

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



[issue24295] Backport of #17086 causes regression in setup.py

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

doko wrote:
"I'll look at this in June."

@doko: ping? :-)

@moritzs: Does Python 3.5 have the same issue?

--
nosy: +haypo

___
Python tracker 

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



[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 8317796ca004 by Victor Stinner in branch 'default':
Issue #24870: revert unwanted change
https://hg.python.org/cpython/rev/8317796ca004

--

___
Python tracker 

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



[issue25194] Register of Financial Interests for core contributors

2015-09-22 Thread Nick Coghlan

Nick Coghlan added the comment:

Ezio's right I ended up mixing together a few different objectives here, which 
is an artifact of how the idea came about:

* my starting point was wanting a list of folks that already have commit access 
(and hence are demonstrably familiar to the core development community) that 
the PSF can either contract with directly for work on the toolchain (and 
perhaps for devoting time to the tracker patch backlog), or else refer 
companies to. At the moment we do this based on personal knowledge, which means 
there are going to be missed opportunities to make connections with folks the 
current Board of Directors don't know personally.

* in the ensuing discussion, I realised the "we're all volunteers here" 
disclaimer isn't true at the moment, and is unlikely to ever be true again, and 
that's something that would be good to disclose to help folks understand the 
sustaining engineering model that has emerged around CPython

The draft patch ended up being framed as the latter, while still covering the 
former, which I agree is confusing.

As a result, I like the idea of making the page title "Motivations and 
Affiliations" to focus on the "Why are we here?" aspect.

At the end, we can then have a section "Availability for PSF Referrals" and ask 
core developers that are potentially able to take on contract and freelance 
work to let the PSF Board know. We can then maintain that list in confidence, 
rather than requiring people to broadcast their availability for contract work 
to the entire internet.

--

___
Python tracker 

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



[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

I pushed utf8.patch by mistake :-/ The advantage is that buildbots found bugs. 
Attached utf8-2.patch fixed bugs.

The bug was how the "s" variable was set in the error handler. It's now set 
with:

   s = starts + endinpos;

Bugs found by the buildbots:

==
FAIL: test_invalid_cb_for_3bytes_seq (test.test_unicode.UnicodeTest)
--
Traceback (most recent call last):
  File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_unicode.py", line 
1897, in test_invalid_cb_for_3bytes_seq
'invalid continuation byte')
  File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_unicode.py", line 
1772, in assertCorrectUTF8Decoding
self.assertEqual(seq.decode('utf-8', 'replace'), res)
AssertionError: '��\x00' != '�\x00'
- ��
? -
+ �

==
FAIL: test_unquote_with_unicode (test.test_urllib.UnquotingTests)
--
Traceback (most recent call last):
  File "/opt/python/3.x.langa-ubuntu/build/Lib/test/test_urllib.py", line 1016, 
in test_unquote_with_unicode
"using unquote(): %r != %r" % (expect, result))
AssertionError: '�' != '��'
- �
+ ��
? +
 : using unquote(): '�' != '��'

--
Added file: http://bugs.python.org/file40544/utf8-2.patch

___
Python tracker 

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



[issue25211] Error message formatting errors in int object unit-test script

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

Thanks for the patch, it looks correct. The Frm class takes a variable number 
of *args, and then returns “format % args”. It should at least be applied to 
the 2.7 branch.

For 3.4+, perhaps we can eliminate the need for the Frm class altogether, by 
using TestCase.subTest():

def check_bitop_identities_1(self, x):
eq = self.assertEqual
with self.subTest(x=x):
eq(x & 0, 0)
...
for n in range(2*SHIFT):
p2 = 2 ** n
with self.subTest(n=n, p2=p2):
eq(x << n >> n, x)
...
eq(x & -p2, x & ~(p2 - 1))

--
nosy: +martin.panter
stage:  -> patch review
versions: +Python 2.7, Python 3.4, Python 3.6

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-09-22 Thread Mark Shannon

Mark Shannon added the comment:

+1 for special casing None.

--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-22 Thread STINNER Victor

Changes by STINNER Victor :


Added file: http://bugs.python.org/file40546/bench_utf8.py

___
Python tracker 

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



[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

Ok, here is a patch which optimizes surrogatepass too.

Result of bench_utf8.py.

Common platform:
CFLAGS: -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g 
-fwrapv -O3 -Wall -Wstrict-prototypes
Timer info: namespace(adjustable=False, 
implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, 
resolution=1e-09)
CPU model: Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz
Bits: int=32, long=64, long long=64, size_t=64, void*=64
Timer: time.perf_counter
Platform: Linux-4.1.6-200.fc22.x86_64-x86_64-with-fedora-22-Twenty_Two
Python unicode implementation: PEP 393

Platform of campaign before:
SCM: hg revision=8317796ca004 tag=tip branch=default date="2015-09-22 10:46 
+0200"
Python version: 3.6.0a0 (default:8317796ca004, Sep 22 2015, 11:33:04) [GCC 
5.1.1 20150618 (Red Hat 5.1.1-4)]
Date: 2015-09-22 11:33:12
Timer precision: 73 ns

Platform of campaign after:
SCM: hg revision=8317796ca004+ tag=tip branch=default date="2015-09-22 10:46 
+0200"
Python version: 3.6.0a0 (default:8317796ca004+, Sep 22 2015, 11:31:04) [GCC 
5.1.1 20150618 (Red Hat 5.1.1-4)]
Date: 2015-09-22 11:31:58
Timer precision: 54 ns

--+-+---
ignore|  before |  after
--+-+---
100 x 10**1 bytes | 8.85 us (*) |  857 ns (-90%)
100 x 10**3 bytes |  780 us (*) | 45.5 us (-94%)
100 x 10**2 bytes | 78.7 us (*) | 4.81 us (-94%)
100 x 10**4 bytes | 8.13 ms (*) |  456 us (-94%)
--+-+---
Total |9 ms (*) |  507 us (-94%)
--+-+---

--+-+---
replace   |  before |  after
--+-+---
100 x 10**1 bytes |   10 us (*) |  939 ns (-91%)
100 x 10**3 bytes |  898 us (*) | 54.1 us (-94%)
100 x 10**2 bytes | 90.5 us (*) | 5.72 us (-94%)
100 x 10**4 bytes | 9.55 ms (*) |  536 us (-94%)
--+-+---
Total | 10.6 ms (*) |  597 us (-94%)
--+-+---

--+-+---
surrogateescape   |  before |  after
--+-+---
100 x 10**1 bytes | 10.4 us (*) |  919 ns (-91%)
100 x 10**3 bytes |  930 us (*) | 55.2 us (-94%)
100 x 10**2 bytes | 93.1 us (*) | 5.84 us (-94%)
100 x 10**4 bytes | 9.85 ms (*) |  552 us (-94%)
--+-+---
Total | 10.9 ms (*) |  614 us (-94%)
--+-+---

--+-+---
surrogatepass |  before |  after
--+-+---
100 x 10**1 bytes | 4.83 us (*) |  963 ns (-80%)
100 x 10**3 bytes |  353 us (*) | 42.6 us (-88%)
100 x 10**2 bytes | 36.5 us (*) | 4.69 us (-87%)
100 x 10**4 bytes | 4.17 ms (*) |  424 us (-90%)
--+-+---
Total | 4.56 ms (*) |  472 us (-90%)
--+-+---

--+-+--
backslashreplace  |  before | after
--+-+--
100 x 10**1 bytes | 10.9 us (*) | 10.1 us (-7%)
100 x 10**3 bytes |  944 us (*) | 853 us (-10%)
100 x 10**2 bytes | 93.8 us (*) | 87.5 us (-7%)
100 x 10**4 bytes | 9.92 ms (*) | 9.04 ms (-9%)
--+-+--
Total |   11 ms (*) | 9.99 ms (-9%)
--+-+--

-+-+---
Summary  |  before |  after
-+-+---
ignore   |9 ms (*) |  507 us (-94%)
replace  | 10.6 ms (*) |  597 us (-94%)
surrogateescape  | 10.9 ms (*) |  614 us (-94%)
surrogatepass| 4.56 ms (*) |  472 us (-90%)
backslashreplace |   11 ms (*) |  9.99 ms (-9%)
-+-+---
Total|   46 ms (*) | 12.2 ms (-73%)
-+-+---

--
Added file: http://bugs.python.org/file40545/utf8-3.patch

___
Python tracker 

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



[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa766b6f12b5 by Berker Peksag in branch '3.5':
Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial calls
https://hg.python.org/cpython/rev/fa766b6f12b5

New changeset ed694938c61a by Berker Peksag in branch 'default':
Issue #25137: Add a note to whatsnew/3.5.rst for nested functools.partial calls
https://hg.python.org/cpython/rev/ed694938c61a

--
nosy: +python-dev

___
Python tracker 

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



[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-22 Thread Berker Peksag

Berker Peksag added the comment:

Added a note to Doc/whatsnew/3.5.rst.

--
nosy: +berker.peksag
stage:  -> resolved

___
Python tracker 

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



[issue25210] Special-case NoneType() in do_richcompare()

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

> TypeError: unorderable types: int() < NoneType()

The error message looks good to me: NoneType is the type of the None singleton:

>>> type(None)

>>> x=type(None)()
>>> x is None
True

Do you propose to use the message "TypeError: unorderable types: int() < None"? 
This message looks wrong to me, None is not a type.

The strange thing is the trailing parenthesis!? Why not "int < NoneType"?

--
nosy: +haypo

___
Python tracker 

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



[issue25159] Regression in time to import a module

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

I tested on Linux.

(1) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 -s "import sys; 
sys.modules.clear()" -- "import enum"; done

(shortest timing)

Python 3.4: 6.93 msec
Python 3.6: 7.05 msec (+2%)


(2) for i in `seq 5`; do ./python -I -m timeit "import enum"; done

Python 3.4: 0.331 usec
Python 3.6: 0.341 usec (+%3)

These numbers are nanoseconds, it's too short to run a real benchmark.


(3) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 "import enum"; done

Python 3.4: 801 usec
Python 3.6: 774 usec (-3%)


Sorry, I don't see major differences like you showed. Can you explain exactly 
how to reproduce them? Exact Python version? OS?

I used the development branches (branch 3.4 and branch default).

--

___
Python tracker 

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



[issue17781] optimize compilation options

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

> For the record, the gain for LTO+PGO (with "-flto -O3") over PGO alone seems 
> to be between 0% and 10% for most benchmarks.

Hum, does it make sense to enable LTO without PGO?

--
nosy: +haypo

___
Python tracker 

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



[issue24165] Free list for single-digits ints

2015-09-22 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



[issue17781] optimize compilation options

2015-09-22 Thread Antoine Pitrou

Antoine Pitrou added the comment:

> Hum, does it make sense to enable LTO without PGO?

Probably not.

By the way, I now have a small ARM system to play with, and there the gain of 
LTO+PGO over PGO alone is around 10%.

Also note LTO can make compilation times much longer (it's the linking step 
actually, which can take minutes).

--

___
Python tracker 

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



[issue25137] Behavioral change / regression? with nested functools.partial

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

Thanks for the doc Berker :-)

--

___
Python tracker 

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



[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-22 Thread Alecsandru Patrascu

Changes by Alecsandru Patrascu :


Added file: http://bugs.python.org/file40547/regrtest_36_v02.patch

___
Python tracker 

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



[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-22 Thread Alecsandru Patrascu

Alecsandru Patrascu added the comment:

Thank you for the link. I modified regrtest.py for Python3 according to the 
specifications.

--

___
Python tracker 

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



[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2015-09-22 Thread Petr Prikryl

Petr Prikryl added the comment:

@eryksun: Thanks for your help. I have finaly ended with your...

"Call setlocale(LC_CTYPE, ''), and then call time.strftime('%Z') to get the 
timezone name."

--

___
Python tracker 

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



[issue25186] Don't duplicate _verbose_message in importlib._bootstrap and _bootstrap_external

2015-09-22 Thread Eric Snow

Eric Snow added the comment:

I'm fairly sure this was just an oversight on my part.

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

New submission from Stéphane Wirtel:

Remove the double spaces in the C-API intro in the documentation.

--
assignee: docs@python
components: Documentation
files: remove_double_space_capi.patch
keywords: patch
messages: 251310
nosy: docs@python, matrixise
priority: normal
severity: normal
status: open
title: Remove the double spaces in the C-API Intro
versions: Python 3.6
Added file: http://bugs.python.org/file40548/remove_double_space_capi.patch

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Ezio Melotti

Ezio Melotti added the comment:

Thanks for your contribution, however double spaces after a full stop should be 
kept, since they are intentional (they make the .rst source more readable).  
Your patch also seems to include other instances that are not after a full 
stop.  In theory those could be kept, but I'm not sure if it's worth spending 
time preparing and applying a new patch.

--
nosy: +ezio.melotti
priority: normal -> low
status: open -> pending
type:  -> enhancement

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

Hi Ezio,

What's a full stop ?

Thanks

--
status: pending -> open

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

ok, found: http://www.edufind.com/english-grammar/period-full-stop-or-point/

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Ezio Melotti

Ezio Melotti added the comment:

The `.` at the end of a sentence.

In the following example, the double space between "is" and "an" could be fixed 
(even though is not a big problem), whereas the one between "example." and 
"This" is OK and should be kept:

This is  an example.  This too.
   ^^   ^^
 Not OK OK

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

And in this case:

“This is  an example.  This too”   will become “This is an 
example.  This too”

Is it right?
Stef
On 22 Sep 2015, at 14:36, Ezio Melotti wrote:

> Ezio Melotti added the comment:
>
> The `.` at the end of a sentence.
>
> In the following example, the double space between "is" and "an" could 
> be fixed (even though is not a big problem), whereas the one between 
> "example." and "This" is OK and should be kept:
>
> This is  an example.  This too.
>^^   ^^
>  Not OK OK
>
> --
>
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

The vim editor *adds* two spaces between a full stop and the beginning of a new 
sentence. As a french, I was always distributed by this, but it's correct in 
english :-) As Ezio wrote, it may even be better to have two spaces than one, 
for readability.

Well well well, this issue is really border line because users don't read the 
.rst files but the HTML output which uses a single space.

Seriously, why really cares? Just close the issue as WONTFIX and try to enhance 
the doc differently ;-)

--
nosy: +haypo

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

If you would like to contribute to the Python doc, please help to make the 
asyncio doc simpler for new comers. Maybe add a few more examples. Or explain 
better asyncio concepts like tasks, coroutines and futures.

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

PEP 8: You should use two spaces after a sentence-ending period.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

PEP 9: You must adhere to the Emacs convention of adding two spaces at the end 
of every sentence.

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

Stéphane Wirtel added the comment:

ok, can I close this useless issue ?

Thank you for the details about the emacs convention and the rest.

--

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Nick Evans

New submission from Nick Evans:

Python 3.5.0 shutil.copy2 doesn't raise PermissionError when it does not have 
permission to copy a file (tested on Windows 7):

C:\Users\X\Desktop>C:\Users\X\AppData\Local\Programs\Python\Python35-32\python.exe
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) [MSC v.1900 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2("test.txt", "/")
'/test.txt'
>>> shutil.copy2("test.txt", "C:\\")
'C:\\test.txt'

NB: The file is not copied.

Python 3.4.3 does raise PermissionError:

C:\Users\X\Desktop>C:\Python34\python.exe
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2("test.txt", "/")
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python34\lib\shutil.py", line 245, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Python34\lib\shutil.py", line 109, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/test.txt'
>>> shutil.copy2("test.txt", "C:\\")
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python34\lib\shutil.py", line 245, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Python34\lib\shutil.py", line 109, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\test.txt'

--
components: Library (Lib)
messages: 251322
nosy: nre3976
priority: normal
severity: normal
status: open
title: Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on 
Windows 7
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



[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-22 Thread Bernard Spil

Bernard Spil added the comment:

ALPN was removed originally but added again later
http://marc.info/?l=openbsd-announce&m=142193407304782

--

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Stéphane Wirtel

Changes by Stéphane Wirtel :


--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue25214] asyncio ssl transport regression

2015-09-22 Thread Andrew Svetlov

New submission from Andrew Svetlov:

Before using SSL BIO (which is great itself BTW) I has a way to access peers 
certificate by `ssl_transp.get_extra_info('socket').getpeercert()` call.

Now socket is a regular socket without `.getpeercert()` method.
I use hack like `ssl_transp._ssl_protocol._sslpipe.ssl_object.getpeercert()` as 
workaround but really interesting in the proper way to do this using public API 
only.

I suggest adding 'ssl_object' key to `ssl_proto` for BIO-based SSL.

Thoughts?

P.S.
See aiohttp commit for workaround bugfix: 
https://github.com/KeepSafe/aiohttp/commit/e286d4f9fb1993de2438bdca40712cf1660faf9e

--
components: asyncio
keywords: 3.5regression
messages: 251323
nosy: asvetlov, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio ssl transport regression
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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage:  -> resolved

___
Python tracker 

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



[issue25215] Simple extension to iter(): iter() returns empty generator

2015-09-22 Thread Jurjen N.E. Bos

New submission from Jurjen N.E. Bos:

When looking for a "neat" way to create an empty generator, I saw on 
stackOverflow that the crowd wasn't sure what was the "least ugly" way to do it.
Proposals where:
def emptyIter(): return; yield
or
def emptyIter(): return iter([])

Then it struck me that a trivial extension to the iter() built-in would be to 
allow to call it without arguments, thus giving a simple to understand empty 
iterator, and allowing:
def emptyIter(): return iter()
(And, of course, this function would not need to exist in any reasonable 
program in that case.)

The implementation would be trivial, I assume.

--
components: Library (Lib)
messages: 251324
nosy: jneb
priority: normal
severity: normal
status: open
title: Simple extension to iter(): iter() returns empty generator
type: enhancement
versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6

___
Python tracker 

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



[issue25215] Simple extension to iter(): iter() returns empty generator

2015-09-22 Thread Zachary Ware

Changes by Zachary Ware :


--
versions:  -Python 2.7, Python 3.2, Python 3.3, 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



[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset df19ba9217e4 by Eric V. Smith in branch 'default':
More on issue 25206: typo.
https://hg.python.org/peps/rev/df19ba9217e4

--

___
Python tracker 

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



[issue25206] PEP 498: Minor mistakes/outdateness

2015-09-22 Thread Eric V. Smith

Eric V. Smith added the comment:

Thanks for the feedback.

On the 
f"{expr3!s}" → format(str(expr3))
issue, I'm trying to show the 1 argument version of format (which is what the 
code generator actually calls). Although I realize that's not a great example, 
since the string conversion is implicit in format(). Maybe I'll have the !r 
example be the 1 argument format() call.

I'll fix the exceptions, eventually. But I don't want the PEP to become a exact 
specification of what the exception text will actually be.

On this one:
f'x={!x}'
I'll probably change it to be an error with the empty expression, not with the 
invalid conversion character.

--

___
Python tracker 

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



[issue25215] Simple extension to iter(): iter() returns empty generator

2015-09-22 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm not sure that python needs a neater way to make an empty generator.  It 
isn't a common use case and there isn't anything wrong with iter([]).

There are downsides to expanding an API.  It creates yet another thing to learn 
and remember.  Even now, few developers know about the two-argument form of 
iter().

--
assignee:  -> rhettinger
nosy: +rhettinger

___
Python tracker 

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



[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett

New submission from Jim Jewett:

warnings.warn(stacklevel=2) is a longstanding idiom.

It broke in 3.3 because python itself added some additional infrastructure 
frames in between; now stacklevel should be 8 or 10 in some releases.

issue24305 adds a workaround for 3.5, to ignore internal frames -- defined as 
those which contain both 'importlib' and '_bootstrap' in filename.

I would prefer to see a supported hook, so that either the caller or the 
program setup could list other modules or packages to ignore when counting 
frames.  That way, I could write

mycall(otherlib(foo))

and otherlib could ensure that the warning pointed to mycall, rather than to 
something internal to otherlib, even if otherlib were refactored to a different 
stack depth.

Ignoring just the import machinery would of course be a good default.

--
components: Library (Lib)
messages: 251328
nosy: Jim.Jewett
priority: normal
severity: normal
status: open
title: Warnings stacklevel frames to skip
type: enhancement
versions: Python 3.6

___
Python tracker 

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



[issue25216] Warnings stacklevel frames to skip

2015-09-22 Thread Jim Jewett

Changes by Jim Jewett :


--
stage:  -> needs patch

___
Python tracker 

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



[issue25215] Simple extension to iter(): iter() returns empty generator

2015-09-22 Thread Brett Cannon

Brett Cannon added the comment:

I agree with Raymond. Allowing a non-argument iter() runs the risk of someone 
messing up and forgetting the arguments and yet having no error that they did 
so. And considering how easy it is to get an iterator of an empty list or tuple 
I don't see a benefit.

Thanks for the suggestion, Jurjen, but I'm closing this as rejected.

--
nosy: +brett.cannon
resolution:  -> rejected
status: open -> closed

___
Python tracker 

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



[issue25157] Installing Python 3.5.0 32bit on Windows 8.1 64bit system gives Error 0x80240017

2015-09-22 Thread Shirshendu Bhowmick

Shirshendu Bhowmick added the comment:

I am the person with this problem, i have tired the installation on another 
Windows 8.1 machine but faced the same error. Is there any update on this issue.

--
nosy: +Shirshendu Bhowmick

___
Python tracker 

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



[issue25177] OverflowError in statistics.mean when summing large floats

2015-09-22 Thread Steven D'Aprano

Steven D'Aprano added the comment:

Bar, thanks for the time you put into diagnosing this error, it is 
definitely a bug. The intention is for mean([huge, huge]) to return 
huge, not raise OverflowError.

I'm reluctant to say that mean() will *never* raise OverflowError, but 
it certainly shouldn't do so for this case if it can be avoided. I think 
Mark's diagnosis is probably correct that refactoring the code will fix 
this.

--

___
Python tracker 

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



[issue25209] Append space after completed keywords

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Good catch Martin. Indeed, "pass", "break" and "continue" don't need a space, 
and "True", "False" and "None" need a space only in rare cases like "None in 
collection". Some keywords ("else", "finally", "try") need a colon. But while 
"return" and "lambda" not always need a space, I think that needing a space is 
more common case, and in any case the redundant space doesn't make a harm.

Here is revised patch that doesn't add a space in some cases and instead adds a 
colon in some cases.

--
Added file: http://bugs.python.org/file40549/rlcompleter_keyword_space_2.patch

___
Python tracker 

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



[issue25212] Remove the double spaces in the C-API Intro

2015-09-22 Thread Georg Brandl

Georg Brandl added the comment:

> As a french, I was always distributed by this, but it's correct in english :-)

You know what you have to tell LaTeX to not put extra space after all full 
stops? \frenchspacing :)

--
nosy: +georg.brandl

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread W deW

W deW added the comment:

Thanks for the ref to issue14029. I think I see how it works. As long as the 
object's __dict__ accepts the attributeName as a key, it needs not be a valid 
string nor a string at all. Though the latter *is* checked for, and that in 
turn can be circumvented by adding the attribute to the __dict__ directly. An 
object can be made attribute to itself.

However, the documentation falls short here. So far, I haven't found where it 
defines "attribute". Is there any point in defining an attribute that cannot be 
addressed as an attribute if the parser doesn't allow it?

It seems to me that in order to catch programing errors early, the default 
behaviour should include checking the valid syntax of the attribute's name.

--
components:  -Documentation
versions: +Python 2.7

___
Python tracker 

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



[issue17781] optimize compilation options

2015-09-22 Thread Matthias Klose

Matthias Klose added the comment:

On 22.09.2015 12:31, Antoine Pitrou wrote:
> Also note LTO can make compilation times much longer (it's the linking step 
> actually, which can take minutes).

use -flto=jobserver

--

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread eryksun

eryksun added the comment:

This issue doesn't pertain to the 64-bit version.

C:\Temp>py -3.5
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) 
[MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import shutil
>>> shutil.copy2('test.txt', 'C:\\')
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python 3.5\lib\shutil.py", line 251, in copy2
copyfile(src, dst, follow_symlinks=follow_symlinks)
  File "C:\Program Files\Python 3.5\lib\shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: 'C:\\test.txt'

In the 32-bit version, creating a file in the system root directory gets 
virtualized when the user doesn't have write access. It's not specific to 
shutil.copy2.

C:\Temp>py -3.5-32
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:16:59) 
[MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> open('C:\\test.txt', 'w').close()
>>> import pathlib
>>> pathlib.Path('C:\\test.txt').resolve()
WindowsPath('C:/Users/usradm/AppData/Local/VirtualStore/test.txt')

You can verify in the task manager's details tab that UAC Virtualization is 
enabled for 32-bit python.exe and disabled for 64-bit python.exe. The problem 
is that the manifest is missing the requestedExecutionLevel, which should be 
present and set to "asInvoker". This is discussed in the MSDN article [New UAC 
Technologies for Windows Vista][1].

>>> os.system('sigcheck -q -m "%s"' % sys.executable)
c:\users\usradm\appdata\local\programs\python\python35-32\python.exe:
Verified:   Signed
Signing date:   2:17 AM 9/13/2015
Publisher:  Python Software Foundation
Description:Python
Product:Python
Prod version:   3.5.0
File version:   3.5.0
MachineType:32-bit
Manifest:


  

  
  
  
  
  

  


3.4's manifest sets the requestedExecutionLevel:

C:\Temp>py -3.4-32
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:43:06) 
[MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os, sys
>>> os.system('sigcheck -q -m "%s"' % sys.executable)
c:\users\usradm\appdata\local\programs\python\python34-32\python.exe:
Verified:   Unsigned
Link date:  9:43 PM 2/24/2015
Publisher:  n/a
Description:n/a
Product:n/a
Prod version:   n/a
File version:   n/a
MachineType:32-bit
Manifest:

  

  

  

  
 

[1]: https://msdn.microsoft.com/en-us/library/bb756960

--
components: +Windows -Library (Lib)
keywords: +3.5regression
nosy: +eryksun, paul.moore, steve.dower, tim.golden, zach.ware
priority: normal -> high

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread eryksun

eryksun added the comment:

This is a documentation issue and not specific to a particular version  of 
Python. What's the rule on version tagging in this case?

--
components: +Documentation

___
Python tracker 

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



[issue25214] asyncio ssl transport regression

2015-09-22 Thread STINNER Victor

STINNER Victor added the comment:

The specific case of getpeercert(), there is an extra info. For other info,
did you notice that I just added ssl_object to extra info? :-)

http://bugs.python.org/issue25114

--

___
Python tracker 

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



[issue10717] Multiprocessing module cannot call instance methods across processes

2015-09-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> wont fix
stage: needs patch -> resolved
status: pending -> closed

___
Python tracker 

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



[issue23513] Add support for classes/object model in multiprocessing/pickle

2015-09-22 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
status: open -> pending

___
Python tracker 

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



[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-22 Thread Remi Pointel

Remi Pointel added the comment:

Maybe we could check if the functionality is available instead of checking a 
version? What do you think about that?

--

___
Python tracker 

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



[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Is this issue fixed?

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

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



[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Antoine Pitrou

New submission from Antoine Pitrou:

In the following gdb backtrace you'll see that if Python code is executed from 
the PyInterpreterState_Clear() step in Py_Finalize() (apparently when clearing 
the builtins), _PyType_Lookup() can be executed and crash on a NULL entry in 
the method cache.

Note the reason this happens is that we set a weakref callback on the global 
print() function, and for some reason the weakref is able to survive longer 
than the global print() function. We don't have the crash on previous versions 
of Python (< 3.5).

Here is the backtrace:

#0  0x7fc17dba90cf in _PyType_Lookup (type=type@entry=0x291e0d8, 
name=name@entry='_globals') at Objects/typeobject.c:2913
#1  0x7fc17db90346 in _PyObject_GenericGetAttrWithDict (obj=
, 
attributes={<_TypeMetaclass(_abc_negative_cache_version=30, 
__module__='numba.types', _abc_registry=, data=set()) 
at remote 0x7fc175c366d8>, __doc__=None, __abstractmethods__=frozenset(), 
_abc_negative_cache=, data=set()) at remote 
0x7fc175c36878>, _abc_cache=, data=set()) at remote 
0x7fc175c367a8>) at remote 0x2809e18>: ) at 
remote 0x7fc1741c2948>, <_TypeMetaclass(_abc_negative_cache_version=30, 
_abc_cache=, data=set()) at remote 0x7fc175c286d8>, key=, __init__=, can_convert_to=, 
name=) at Objects/object.c:1119
#3  0x7fc17db8e3c4 in PyObject_GetAttr (
v=v@entry=, 
attributes={<_TypeMetaclass(_abc_negative_cache_version=30, 
__module__='numba.types', _abc_registry=, data=set()) 
at remote 0x7fc175c366d8>, __doc__=None, __abstractmethods__=frozenset(), 
_abc_negative_cache=, data=set()) at remote 
0x7fc175c36878>, _abc_cache=, data=set()) at remote 
0x7fc175c367a8>) at remote 0x2809e18>: ) at 
remote 0x7fc1741c2948>, <_TypeMetaclass(_abc_negative_cache_version=30, 
_abc_cache=, data=set()) at remote 0x7fc175c286d8>, key=, __init__=, can_convert_to=)
at Objects/object.c:889
#4  0x7fc17dc37e9d in PyEval_EvalFrameEx (
f=f@entry=Frame 0x7fc17c7887f8, for file 
/home/antoine/numba/numba/typing/context.py, line 238, in on_disposal 
(wr=), throwflag=throwflag@entry=0) at 
Python/ceval.c:2688
#5  0x7fc17dc3c56c in _PyEval_EvalCodeWithName (_co=, globals=, locals=locals@entry=0x0, 
args=args@entry=0x7fc174b5e428, argcount=1, kws=kws@entry=0x0, kwcount=0, 
defs=0x0, defcount=0, kwdefs=0x0, 
closure=(,), name=0x0, qualname=0x0) at 
Python/ceval.c:3962
#6  0x7fc17dc3c659 in PyEval_EvalCodeEx (_co=, 
globals=, locals=locals@entry=0x0, 
args=args@entry=0x7fc174b5e428, 
argcount=, kws=kws@entry=0x0, kwcount=0, defs=0x0, 
defcount=0, kwdefs=0x0, closure=(,))
at Python/ceval.c:3983
#7  0x7fc17db66f08 in function_call (func=, arg=(,), kw=0x0)
at Objects/funcobject.c:632
#8  0x7fc17db30ce1 in PyObject_Call (func=func@entry=, arg=arg@entry=(,), 
kw=kw@entry=0x0) at Objects/abstract.c:2147
#9  0x7fc17db318e8 in PyObject_CallFunctionObjArgs 
(callable=callable@entry=) at 
Objects/abstract.c:2427
#10 0x7fc17dc04228 in handle_callback (ref=ref@entry=0x7fc1741bd2d8, 
callback=callback@entry=)
at Objects/weakrefobject.c:868
#11 0x7fc17dc047aa in PyObject_ClearWeakRefs (object=object@entry=)
at Objects/weakrefobject.c:913
#12 0x7fc17db8b57c in meth_dealloc (m=m@entry=0x7fc17e1b2d00) at 
Objects/methodobject.c:155
#13 0x7fc17db8ee49 in _Py_Dealloc (op=) at Objects/object.c:1786
#14 0x7fc17db79ca0 in free_keys_object (keys=keys@entry=0x221cef0) at 
Objects/dictobject.c:354
#15 0x7fc17db7bb63 in dict_dealloc (mp=mp@entry=0x7fc17e1d62f8) at 
Objects/dictobject.c:1567
#16 0x7fc17db8ee49 in _Py_Dealloc (
op={'FileExistsError': , 
'NotImplementedError': , 'eval': , 
'SystemError': , 'max': , 'repr': , 'sum': , 'ValueError': , 'Ellipsis': , 'next': 
, 'tuple': , 'StopIteration': 
, 'ReferenceError': , 'OverflowError': , 
'RuntimeWarning': , 'issubclass': , 'range': , filename@entry=0x7fc17e152550 "numba/pycc/pycc", 
closeit=closeit@entry=1, flags=flags@entry=0x7ffc35eb0970) at 
Python/pythonrun.c:401
#24 0x7fc17dc6900c in PyRun_AnyFileExFlags (fp=fp@entry=0x22bce90, 
filename=0x7fc17e152550 "numba/pycc/pycc", closeit=closeit@entry=1, 
flags=flags@entry=0x7ffc35eb0970) at Python/pythonrun.c:80
#25 0x7fc17dc83e57 in run_file (fp=fp@entry=0x22bce90, 
filename=filename@entry=0x21f4300 L"numba/pycc/pycc", 
p_cf=p_cf@entry=0x7ffc35eb0970)
at Modules/main.c:318
#26 0x7fc17dc84a9b in Py_Main (argc=argc@entry=3, 
argv=argv@entry=0x21f3020) at Modules/main.c:769
#27 0x00400bea in main (argc=3, argv=0x7ffc35eb0b88) at 
./Programs/python.c:69

Some inspection of local variables at the crash point:

(gdb) p type
$1 = (PyTypeObject *) 0x291e0d8
(gdb) p type->tp_flags
$2 = 808449
(gdb) p type->tp_version_tag 
$3 = 1769
(gdb) p method_cache
$4 = {{version = 0, name = 0x0, value = 0x0} , {version = 
1769, name = 0x0, value = 0x0}, {version = 0, name = 0x0, 
value = 0x0} }
(gdb) p method_cache[h]
$5 = {version = 1769, name = 0x0, value = 0x0}

--
c

[issue25217] Method cache can crash at shutdown in _PyType_Lookup

2015-09-22 Thread Mark Shannon

Changes by Mark Shannon :


--
nosy: +Mark.Shannon

___
Python tracker 

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



[issue9051] Improve pickle format for timezone aware datetime instances

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

For stability it is better to use public name 'timezone.utc' instead of '_utc'. 
Dotted names now are supported with all protocols.

> but there is still room for improvement:

Don't worry about this. When you pickle a number of datetime objects with the 
same timezone, the timezone is pickled only once and for all other datetime 
objects only a reference is used.

--
nosy: +serhiy.storchaka
type: behavior -> enhancement
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



[issue16251] pickle special methods are looked up on the instance rather than the type

2015-09-22 Thread Benjamin Peterson

Benjamin Peterson added the comment:

I don't think so.

On Tue, Sep 22, 2015, at 11:52, Serhiy Storchaka wrote:
> 
> Serhiy Storchaka added the comment:
> 
> Is this issue fixed?
> 
> --
> nosy: +serhiy.storchaka
> status: open -> pending
> 
> ___
> Python tracker 
> 
> ___

--
status: pending -> open

___
Python tracker 

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



[issue24295] Backport of #17086 causes regression in setup.py

2015-09-22 Thread Moritz Sichert

Moritz Sichert added the comment:

No this isn't an issue in Python 3.5. It was caused by the backport that was 
diffed against an older version that didn't include 7955d769fdf5 and thus 
reverted that.

--

___
Python tracker 

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



[issue25205] setattr accepts invalid identifiers

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

Eryksun: If you mean tagging the bug report, I think we usually tag all the 
applicable open branches that are due for another release.

I’m not sure anything needs to be documented regarding setattr(). At best it is 
an implementation detail that should not be relied on, although making the 
implementation stricter could be a compatibility problem.

There are other places where troublesome names are allowed. One that caught my 
eye recently is os.sendfile(in=..., ...) is a syntax error, but you can still 
pass the “in” keyword via os.sendfile(**{"in": ...}, ...).

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

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Confirmed. I have a trivial fix coming to restore the requestedExecutionLevel.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25209] Append space after completed keywords

2015-09-22 Thread Martin Panter

Martin Panter added the comment:

“Else” doesn’t always use a colon. Consider “1 if x else 2”. Again, if Python 
started adding unwanted spaces and colons I imagine users could be annoyed and 
think Python is being too smart and complicated for its own good. But maybe see 
what others say.

--

___
Python tracker 

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



[issue20519] Replace uuid ctypes usage with an extension module.

2015-09-22 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



[issue25124] No single .msi available for 3.5 release

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The decision cannot reasonably be reversed now - this sort of passionate 
feedback was really needed during the alphas to have any impact. I'm sorry you 
didn't feel the need to participate in Python's development, as this extra 
feedback would have been useful.

For most users who are installing Python for themselves, the bundle launcher 
provides a much better experience. As well as CRT detection, it also allows 
true per-user installation as well as decoupling tasks such as precompiling 
.pyc files from installing components and enabling the web installers. There is 
also a more reliable upgrade mechanism that retains previous settings and the 
launcher is now correctly reference counted (though there will be conflicts 
with the 2.7 and 3.4 installer...).

After discussions at PyCon US in April, I chose to make the per-user 
installation the default as it best fits the user segment we (as a development 
team) are most concerned about. Administrators who are deploying across a 
network do now need to work harder than before, which we considered a fair 
tradeoff for non-admin users to be able to install and use Python.

If you much prefer MSIs, you can pass the /layout option to the wrapper and 
obtain the raw MSIs and install them individually (passing 
"TARGETPATH=location" as a property). However, I think the documentation for 
the launcher options (https://docs.python.org/3.5/using/windows.html) is much 
better than anything we had in the past (I had nothing to do with the old 
installer, but had to regularly decompile it to diagnose installation issues).

So thankyou for the feedback, but on balance between administrators and 
individual users we've decided to help save individual users from having to 
read documentation, at the expense of needing administrators to refer to the 
instructions to do automated installation.

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

___
Python tracker 

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



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

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Arguably it's because of the platforms that don't reliably set errno. (I don't 
know exactly which those are, but I'm not about to enable it everywhere right 
now. If someone else wants to do it and deal with the fallout they're welcome.)

--

___
Python tracker 

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



[issue25159] Regression in time to import a module

2015-09-22 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I just have rebuilt my Python's in development brances after made distclean to 
avoid possible effects of incremental building, and got the same results.

(1) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 -s "import sys; 
sys.modules.clear()" -- "import enum"; done

Python 3.4: 29 msec
Python 3.5: 43.4 msec (+50%)
Python 3.6: 44.4 msec (+2%, +53%)


(2) for i in `seq 5`; do ./python -I -m timeit "import enum"; done

Python 3.4: 3.02 usec
Python 3.5: 3.14 usec (+4%)
Python 3.6: 3.34 usec (+6%, +10%)


(3) for i in `seq 5`; do ./python -I -m timeit -n1 -r1 "import enum"; done

Python 3.4: 3.49 msec
Python 3.5: 4.19 msec (+20%)
Python 3.6: 4.45 msec (+6%, +28%)


32-bit Ubuntu 14.04, Linux 3.16, gcc 4.8.4, Intel(R) Atom(TM) CPU N570   @ 
1.66GH.

--

___
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-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25116] It failed to install Py3.5 on win2008R2

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

If you could provide more information, that would be helpful.

In particular, there may be some entries in the Event Log around the time you 
were trying to install 3.5, if nothing popped up at all. There may also be log 
files in your %TEMP% directory.

--
components: +Windows
nosy: +paul.moore, tim.golden, zach.ware

___
Python tracker 

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



[issue23630] support multiple hosts in create_server/start_server

2015-09-22 Thread Yann Sionneau

Yann Sionneau added the comment:

Thanks a lot Victor for your numerous reviews and your help on this!
Also thanks for all other who commented.

--

___
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-22 Thread Steve Dower

Steve Dower added the comment:

Good catch, none of the bdist_wininst command is really needed. I'll drop it.

--
assignee:  -> steve.dower

___
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-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
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-22 Thread Steve Dower

Steve Dower added the comment:

True, those files aren't needed in the embeddable distro.

Terry - you're right, if someone chooses to install Tcl/Tk/idle then they'll 
get the tests for them as well, regardless of their test suite selection. Since 
we're not really talking about a lot of files, I'd rather leave them this way 
(which I think is what you're also suggesting?) than deal with the 
cross-installer dependencies that would exist otherwise.

--

___
Python tracker 

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



[issue25103] 3.5.0 installed standard library on Windows has LF line endings

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Yeah, this was just me forgetting to enable eol when I last recreated my build 
machine. It's on now, so the next release will be fine.

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

___
Python tracker 

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



[issue25112] Windows installer assigns non-existent icons to Python file types

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The file associations are actually part of the launcher, which *technically* is 
independent of the Python install it is bundled with. So it doesn't have any 
references to the Python install directory, and double-clicking Python files 
with shebang lines will work properly.

For 3.5.1 I'm considering making the launcher an independent uninstall item (in 
response to another issue), so if you install 3.5.1 and then remove it, you can 
keep the launcher. For this to work, it has to be independent of the main 
install, so it can't refer to the DLLs directory.

--

___
Python tracker 

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



[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Yeah, changing the item description is a good suggestion.

It basically doubles the size of the download to include everything all at once.

--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25148] Windows registry PythonCore key changed inconsistent with other releases

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

It was changed to be consistent with the PEP 397 launcher (and the launcher was 
actually updated to match the registry key directly, rather than special-casing 
the "-32" suffix).

The original naming ("3.5") can't be used because you can't simultaneously 
install 32-bit and 64-bit per-user Pythons with the same key name. (Previously 
it would "work", but you couldn't find both of them through the registry. Now, 
because of other changes, it will have more serious issues.)

Changing to "3.5-64" and "3.5-32" and not use "3.5" anymore was inconsistent 
with the launcher, but that's a fairly weak reason. There just didn't seem to 
be a stronger reason to change.

(I don't consider this a bug, so I'm closing, but if Barry or someone else 
wants to argue that it should be changed then I'm willing to consider it for 
3.6. I don't think changing it for 3.5.1 is a good move at this point.)

--
components: +Windows
nosy: +paul.moore, tim.golden, zach.ware
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

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



[issue15347] IDLE - does not close if the debugger was active

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

Figured out the cause of this hang, it was to do with the nested event loops.

It turns out that mainloop() really should just be for the mainloop. Or at 
least quit() should only be used to quit the outer loop, as it relies on 
setting a static variable, so is not reentrant, i.e. does not handle nested 
event loops.

I changed the nested loop to use a different mechanism to start the nested 
event loop (vwait, which waits for a tcl variable to be set) and terminate the 
nested loop (setting that variable). Have attached fix-nested-mainloop.patch.

Fixes the problem here, and in #15348, and another case I was using (start, 
enable debugger, open module, run module, quit).

The one in #24455 is something different, I'll look into it.

--
keywords: +patch
Added file: http://bugs.python.org/file40550/fix-nested-mainloop.patch

___
Python tracker 

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



[issue17942] IDLE Debugger: Improve GUI

2015-09-22 Thread Mark Roseman

Mark Roseman added the comment:

Have attached debugger-ui.patch, which greatly updates the user interface for 
the existing debugger.  

This also relies on some images that should be downloaded and unpacked into the 
'Icons' directory: http://www.tkdocs.com/images/debugicons.zip

Summary of changes:
 * works with both Tk 8.4 and 8.5+
 * paned window separates left and right, allowing adjusting relative sizes
 * on left, toolbar with graphical/text buttons, plus message, and stack
 * on right, local and global variables of selected stack frame
 * running program can be interrupted via 'stop' button
 * stack and variables use listbox (8.4) or tree (with resizable columns)
 * removed locals, globals, and stack 'view' options
 * source option changed to auto-open windows to see source
 * can always view source by double-clicking or context menu in stack
 * full value of variable can be seen via tooltip in variable list
 
In future, this will also replace the 'stack viewer' feature for displaying
exceptions, but this has not yet been integrated.

--
keywords: +patch
Added file: http://bugs.python.org/file40551/debugger-ui.patch

___
Python tracker 

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



[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-22 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower

___
Python tracker 

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



[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Can you try executing the following command (fix the paths as necessary, but 
leave all the quotes where they are):

"C:\Program Files (x86)\Python 3.5\python.exe" -m idlelib "C:\test.py"

That's what should be launched by the menu, with a minor change to use 
python.exe instead of pythonw.exe to show up any errors you are hitting.

I couldn't reproduce the issue on Windows 10, but when I'm back at work I'll 
try with some other OS versions.

--

___
Python tracker 

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



[issue25213] Regression: Python 3.5.0 shutil.copy2 doesn't raise PermissionError on Windows 7

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b7f0f1d1e923 by Steve Dower in branch '3.5':
Issue #25213: Restores requestedExecutionLevel to manifest to disable UAC 
virtualization.
https://hg.python.org/cpython/rev/b7f0f1d1e923

--
nosy: +python-dev

___
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-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 812e30f67d6e by Steve Dower in branch '3.5':
Closes #25085 and #25086: Exclude distutils and test directories from 
embeddable distro.
https://hg.python.org/cpython/rev/812e30f67d6e

--
nosy: +python-dev

___
Python tracker 

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



[issue25126] Non-web installer fails without a connection when doing debug install

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 4e98c622ab20 by Steve Dower in branch '3.5':
Issue #25126: Clarifies that the non-web installer will download some 
components.
https://hg.python.org/cpython/rev/4e98c622ab20

--
nosy: +python-dev

___
Python tracker 

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



[issue25081] Windows installer Upgrade->Customize->Back goes to Install page

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 94ea3e05817f by Steve Dower in branch '3.5':
Issue #25081: Makes Back button in installer go back to upgrade page when 
upgrading.
https://hg.python.org/cpython/rev/94ea3e05817f

--
nosy: +python-dev

___
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-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aa6b9205c120 by Steve Dower in branch '3.5':
Issue #25092: Fix datetime.strftime() failure when errno was already set to 
EINVAL.
https://hg.python.org/cpython/rev/aa6b9205c120

--
nosy: +python-dev

___
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-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31b230e5517e by Steve Dower in branch '3.5':
Issue #25102: Windows installer does not precompile for -O or -OO.
https://hg.python.org/cpython/rev/31b230e5517e

--
nosy: +python-dev

___
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-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 07a3d804c6ea by Steve Dower in branch '3.5':
Issue #25091: Increases font size of the installer.
https://hg.python.org/cpython/rev/07a3d804c6ea

--
nosy: +python-dev

___
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-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 812e30f67d6e by Steve Dower in branch '3.5':
Closes #25085 and #25086: Exclude distutils and test directories from 
embeddable distro.
https://hg.python.org/cpython/rev/812e30f67d6e

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset d8453733cc0c by Steve Dower in branch '2.7':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/d8453733cc0c

--
nosy: +python-dev

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fa869ccf9368 by Steve Dower in branch '3.5':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/fa869ccf9368

New changeset 2f55d73e5ad6 by Steve Dower in branch 'default':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/2f55d73e5ad6

--

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2f57270374f7 by Steve Dower in branch '3.4':
Issue #19143: platform module now reads Windows version from kernel32.dll to 
avoid compatibility shims.
https://hg.python.org/cpython/rev/2f57270374f7

--

___
Python tracker 

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



[issue19143] Finding the Windows version getting messier (detect windows 8.1?)

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Done. As this is (meant to be) a purely informational/diagnostic module, seems 
like a good idea to fix every version we're supporting in any way.

--
assignee:  -> steve.dower
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior
versions: +Python 3.6

___
Python tracker 

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



[issue25117] Windows installer: precompiling stdlib fails with missing DLL errors

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

The problem here is probably that installing the CRT update required a restart 
(see the line below from the log), but we didn't interrupt installation to make 
you restart before continuing.

>From the first log file:

[0A68:0EC8][2015-09-14T05:54:24]i319: Applied execute package: 
crt_14.0_v6.2_x64, result: 0x0, restart: Required


Handling this nicely could be some work. We would want to force the restart 
immediately if the user is installing pip or precompiling the stdlib, but 
otherwise they can finish installation and then restart. I'll try and look into 
this soon, but I don't think it needs to hold up a 3.5.1.

--

___
Python tracker 

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



[issue25144] 3.5 Win install fails with "TARGETDIR"

2015-09-22 Thread Steve Dower

Steve Dower added the comment:

Well, I made this happen once, but not a second time. That's better than most 
setup issues I get to deal with :)

Still working on it - will post when I figure it out.

--
assignee:  -> steve.dower

___
Python tracker 

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



  1   2   >