[issue23883] __all__ lists are incomplete

2016-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks for caring for this Martin.

> Should we add anything into What's New, maybe warning of new symbols from 
> "import *"?

I think yes.

--

___
Python tracker 

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



[issue13743] xml.dom.minidom.Document class is not documented

2016-01-16 Thread Mark Lawrence

Changes by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue22995] Restrict default pickleability

2016-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Nice.

Did you considered the possibility to implement the pickling compatible with 
non-accelerated Python classes with __dict__ for every Cython class? I.e. 
__getstate__ that returns a dict that maps field names to values and 
__setstate__ that unpacks such dict?

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Win 10, 2.7.11, from IDLE editor: 1.py take several seconds, nothing printed.  
Add 'print' in front of call and 
Traceback (most recent call last):
  File "F:\Python\mypy\tem.py", line 3, in 
print strop.replace("\x100"*0xEAAA,"\x100","AA"*0x)
  File "C:\Programs\Python27\lib\idlelib\PyShell.py", line 1356, in write
return self.shell.write(s, self.tags)
MemoryError

strop gone in 3.5.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue26077] Make slicing of immutable structures return a view instead of a copy

2016-01-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Proposals for strings views have be rejected precisely because of the 
keep-alive effect.

I do not remember if tuples were explicitly part of earlier discussions. One 
could make the argument that million-item tuples, and especially slicing 
thereof is rarer than the same for strings.  On the other hand, copying short 
slices of short to medium tuples is not a big deal.

Because of previous discussions, I think this issue should be either closed or 
suspended for python-ideas discussion.

--
nosy: +terry.reedy

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Are you sure that you use 2.7.11 Ramin?

Can anyone else confirm the issue?

--
status: open -> pending

___
Python tracker 

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



[issue22995] Restrict default pickleability

2016-01-16 Thread Stefan Behnel

Stefan Behnel added the comment:

For reference, the bug in Cython is fixed here:

https://github.com/cython/cython/commit/ececb3e9473f6aaa65f29467921594c316ec2f06

--

___
Python tracker 

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



[issue23883] __all__ lists are incomplete

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 62e925be0aff by Serhiy Storchaka in branch 'default':
Issue #23883: Removed redundant names from blacklists.
https://hg.python.org/cpython/rev/62e925be0aff

--

___
Python tracker 

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



[issue24905] Allow incremental I/O to blobs in sqlite3

2016-01-16 Thread SilentGhost

Changes by SilentGhost :


--
components: +Extension Modules
nosy: +ghaering

___
Python tracker 

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



[issue26132] 2.7.11 Windows Installer issues on Win2008R2

2016-01-16 Thread SilentGhost

Changes by SilentGhost :


--
components: +Windows
nosy: +paul.moore, steve.dower, 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



[issue25251] Unknown MS Compiler version 1900

2016-01-16 Thread Marcelo Duarte

Marcelo Duarte added the comment:

I hava a problem with others packages, like cchardet and aiohttp.
Aplying the patch changed the error message, then I generate a lib for 
vcruntime140, and finally, it is installed:

#go to python installation dir
cd M:\Applications\Python35-32
pexports vcruntime140.dll >libs\vcruntime140.def
dlltool -dllname vcruntime140.dll --def libs\vcruntime140.def --output-lib 
libs\libvcruntime140.a

--
nosy: +marcelotduarte

___
Python tracker 

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



[issue26135] Documentation Recommends Deprecated `imp` Module

2016-01-16 Thread Cameron Conn

New submission from Cameron Conn:

The documentation detailing modules recommends using the deprecated `imp` 
module in section 6.1. Instead, it should recommend `importlib`, which `imp` 
was deprecated in favor of in Python 3.4.

The portion of the documentation that says this is in the gray aside box at the 
bottom of Section 6.1 immediately before Section 6.1.1.

These are the pages that have this issue:
Python 3.4: https://docs.python.org/3.4/tutorial/modules.html#more-on-modules
Python 3.5: https://docs.python.org/3.5/tutorial/modules.html#more-on-modules
Python 3.6: https://docs.python.org/3.6/tutorial/modules.html#more-on-modules

--
assignee: docs@python
components: Documentation
messages: 258438
nosy: camconn, docs@python
priority: normal
severity: normal
status: open
title: Documentation Recommends Deprecated `imp` Module
type: enhancement
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



[issue24780] unittest assertEqual difference output foiled by newlines

2016-01-16 Thread Emanuel Barry

Changes by Emanuel Barry :


--
components: +Tests
stage: test needed -> needs patch

___
Python tracker 

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



[issue21762] update the import machinery to only use __spec__

2016-01-16 Thread Nick Coghlan

Nick Coghlan added the comment:

That approach sounds good to me.

The main problem cases I'm aware of are:

__name__:

* reliably wrong in __main__
* the attribute you mess with if you want __qualname__ on functions and classes 
to be different so that pickle will import them from somewhere else (e.g. a 
parent package)

__path__:

* used for dynamic package definitions (including namespace package emulation)

__package__:

* AFAIK, mainly useful as a workaround for other people doing "bad things" 
(TM), like running package submodules directly as __main__ rather than using 
the -m switch

--

___
Python tracker 

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



[issue26069] Remove the Deprecated API in trace module

2016-01-16 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Thanks for the pointers, Berker. That was very helpful and I will keep in mind 
when evaluating other deprecated apis. 

For the trace module, I will add this removal information in 
Doc/whatsnew/3.6.rst

--

___
Python tracker 

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



[issue24780] unittest assertEqual difference output foiled by newlines

2016-01-16 Thread anchal agarwal

Changes by anchal agarwal :


Added file: http://bugs.python.org/file41636/test.py

___
Python tracker 

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



[issue26134] HTTPPasswordMgrWithPriorAuth does not work with DigestAuthentication

2016-01-16 Thread Martin Panter

Martin Panter added the comment:

Despite the title of the other report, it looks like we ended up having a 
HTTPPasswordMgrWithPriorAuth class instead, and there is no longer a 
HTTPBasicPriorAuthHandler class. Also, if this proposal could work, it would 
have to go into a new version of Python; 3.5 has already been released.

With Basic authentication, the client can easily pre-empt an Authorization 
field, because it sends the username and password in the clear. I have less 
understanding of Digest authentication, but it is described in 
. I understand the client first needs a 
“nonce” value issued by the server before it can generate the Authorization 
field.

You gave some demonstration code. Can you explain what the code should be doing 
at the HTTP level? Do you have any example server, use case, or something that 
this would work with? What were you looking for with Wireshark? I suspect you 
would need to include the nonce or some previous session object with the 
password manager.

The code to generate the Authorization field with Basic authentication is in 
AbstractBasicAuthHandler.http_request(): 
. For 
comparison, the Digest data for the Authorization field is generated in 
AbstractDigestAuthHandler.get_authorization(). See how it requires the “chal” 
parameter, derived from an Authorization response field.

--
nosy: +martin.panter
stage:  -> test needed
title: urllib2.HTTPBasicPriorAuthHandler does not work with 
DigestAuthentication -> HTTPPasswordMgrWithPriorAuth does not work with 
DigestAuthentication
type:  -> 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



[issue25458] ftplib: command response shift - mismatch

2016-01-16 Thread SilentGhost

Changes by SilentGhost :


--
nosy: +giampaolo.rodola
versions: +Python 3.6 -Python 3.4

___
Python tracker 

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



[issue26077] Make slicing of immutable structures return a view instead of a copy

2016-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The support of sharing a content between different tuples requires changing the 
structure of the tuple object, allocating additional block for every tuple, 
adding a level of indirection and reference counting. This will increase memory 
consumption, creating and access time for all tuples. All this is critically 
important for Python interpreter. I think this idea has no a chance.

--
nosy: +serhiy.storchaka
resolution:  -> rejected
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

Yes!I use python version 2.7.11 and my Windows machine stop and crashed, on cmd 
Windows,

--
status: pending -> open

___
Python tracker 

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



[issue26049] Poor performance when reading large xmlrpc data

2016-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
stage:  -> patch review

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

i test python version 2.7.11 32 bit i get your error , but 64 bit no crashed,


CommandLine: python.exe
Symbol search path is: 
srv*c:\pubsymbols*http://msdl.microsoft.com/download/symbols
Executable search path is:
ModLoad: 1c3c 1c3cb000   python.exe
ModLoad: 7702 77199000   ntdll.dll
ModLoad: 76d0 76df   C:\Windows\SysWOW64\KERNEL32.DLL
ModLoad: 76ea 77016000   C:\Windows\SysWOW64\KERNELBASE.dll
ModLoad: 5fd7 5fffe000   C:\Windows\SysWOW64\python27.dll
ModLoad: 71de 71e83000   
C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.9158_none_5091b51ebcb97cdc\MSVCR90.dll
ModLoad: 7697 76ab   C:\Windows\SysWOW64\USER32.dll
ModLoad: 7614 7628d000   C:\Windows\SysWOW64\GDI32.dll
ModLoad: 76b1 76b8b000   C:\Windows\SysWOW64\ADVAPI32.dll
ModLoad: 76c4 76cfe000   C:\Windows\SysWOW64\msvcrt.dll
ModLoad: 75c2 75c63000   C:\Windows\SysWOW64\sechost.dll
ModLoad: 76df 76e9c000   C:\Windows\SysWOW64\RPCRT4.dll
ModLoad: 7413 7414e000   C:\Windows\SysWOW64\SspiCli.dll
ModLoad: 7412 7412a000   C:\Windows\SysWOW64\CRYPTBASE.dll
ModLoad: 740c 74119000   C:\Windows\SysWOW64\bcryptPrimitives.dll
ModLoad: 7415 7550e000   C:\Windows\SysWOW64\SHELL32.dll
ModLoad: 7551 759ec000   C:\Windows\SysWOW64\windows.storage.dll
ModLoad: 75c8 75e3a000   C:\Windows\SysWOW64\combase.dll
ModLoad: 76bf 76c34000   C:\Windows\SysWOW64\shlwapi.dll
ModLoad: 7629 7629c000   C:\Windows\SysWOW64\kernel.appcore.dll
ModLoad: 768e 7696d000   C:\Windows\SysWOW64\shcore.dll
ModLoad: 76ac 76b04000   C:\Windows\SysWOW64\powrprof.dll
ModLoad: 76ab 76abf000   C:\Windows\SysWOW64\profapi.dll
ModLoad: 768b 768db000   C:\Windows\SysWOW64\IMM32.DLL
ModLoad: 75fb 760d   C:\Windows\SysWOW64\MSCTF.dll
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:32:19) [MSC v.1500 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import strop
>>> strop.replace("\x100"*0xEAAA,"\x100","AA"*0x)
Traceback (most recent call last):
  File "", line 1, in 
MemoryError

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

here version :

C:\python2711>python.exe
Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec  5 2015, 20:40:30) [MSC v.1500 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import strop
>>> strop.replace("\x100"*0xEAAA,"\x100","AA"*0x)

--

___
Python tracker 

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



[issue25791] Raise an ImportWarning when __spec__.parent/__package__ isn't defined for a relative import

2016-01-16 Thread Brett Cannon

Brett Cannon added the comment:

As I commented on another issue, I think I'm going to tweak the change to 
continue to prefer __package__, but raise ImportWarning when it doesn't match 
__spec__.parent. Once we do that for all attributes we can wait until Python 
2.7 is done and then swap priority to __spec__ and raise a DeprecationWarning 
if __spec__ is missing. That way post-Python 2.7 we can move entirely to a 
spec-based import system.

--
status: closed -> open

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

i try install windows on VMWare and get video for you, in primary OS i my 
system crash i can't save video or image for you ,

--

___
Python tracker 

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



[issue25234] test_eintr.test_os_open hangs under Xcode 7

2016-01-16 Thread Brett Cannon

Brett Cannon added the comment:

Sure, that test can be skipped as well if it is hanging.

--
status: closed -> open

___
Python tracker 

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



[issue21762] update the import machinery to only use __spec__

2016-01-16 Thread Brett Cannon

Brett Cannon added the comment:

I totally agree proper notes in the What's New doc need to be in place to 
explain that people need to update.

How about I tweak the __package__ change to continue to prefer __package__ over 
__spec__.parent, but raise an ImportWarning when they differ? It can also fall 
back to __spec__.parent if __package__ isn't defined and simply not worry about 
the lack of __package__? Then we can do an ImportWarning for all of the other 
attributes when we discover a difference so people have time to migrate to 
updating both locations, and then eventually we can invert the priority and 
then after that drop the module attributes.

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

i trust me ,i don't undrestand :( , work for me this print 
strop.replace("\x100"*0xEAAA,"\x100","AA"*0x) .

now test again my system machine crash and i restart windows,


my info system :


Host Name: DESKTOP-84QSQQ8
OS Name:   Microsoft Windows 10 Enterprise
OS Version:10.0.10240 N/A Build 10240
OS Manufacturer:   Microsoft Corporation
OS Configuration:  Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner:  RaminFP
Registered Organization:
Product ID:00329-0-3-AA066
Original Install Date: 11/6/2015, 6:12:53 AM
System Boot Time:  1/16/2016, 6:57:16 PM
System Manufacturer:   ASUSTeK Computer Inc.
System Model:  K52DY
System Type:   x64-based PC
Processor(s):  1 Processor(s) Installed.
   [01]: AMD64 Family 16 Model 5 Stepping 3 
AuthenticAMD ~1800 Mhz
BIOS Version:  American Megatrends Inc. K52DY.207, 1/27/2011
Windows Directory: C:\Windows
System Directory:  C:\Windows\system32
Boot Device:   \Device\HarddiskVolume2
System Locale: en-us;English (United States)
Input Locale:  en-us;English (United States)
Time Zone: (UTC+03:30) Tehran
Total Physical Memory: 4,094 MB
Available Physical Memory: 1,967 MB
Virtual Memory: Max Size:  6,270 MB
Virtual Memory: Available: 4,152 MB
Virtual Memory: In Use:2,118 MB
Page File Location(s): C:\pagefile.sys
Domain:WORKGROUP
Logon Server:  \\DESKTOP-84QSQQ8
Hotfix(s): 5 Hotfix(s) Installed.
   [01]: KB3087040
   [02]: KB3106932
   [03]: KB3116869
   [04]: KB3124266
   [05]: KB3133431
Network Card(s):   6 NIC(s) Installed.
   [01]: Qualcomm Atheros AR9002WB-1NG Wireless Network 
Adapter
 Connection Name: Wi-Fi
 DHCP Enabled:Yes
 DHCP Server: 192.168.1.1
 IP address(es)
 [01]: 192.168.1.101
 [02]: fe80::1d3d:b7fa:e576:7111
   [02]: JMicron PCI Express Gigabit Ethernet Adapter
 Connection Name: Ethernet
 Status:  Hardware not present
   [03]: Kerio Virtual Network Adapter
 Connection Name: Ethernet 5
 Status:  Media disconnected
   [04]: VMware Virtual Ethernet Adapter for VMnet1
 Connection Name: Ethernet 2
 Status:  Hardware not present
   [05]: Cisco AnyConnect Secure Mobility Client 
Virtual Miniport Adapter for Windows x64
 Connection Name: Ethernet 6
 Status:  Hardware not present
   [06]: VMware Virtual Ethernet Adapter for VMnet8
 Connection Name: Ethernet 3
 Status:  Hardware not present
Hyper-V Requirements:  VM Monitor Mode Extensions: Yes
   Virtualization Enabled In Firmware: Yes
   Second Level Address Translation: Yes
   Data Execution Prevention Available: Yes

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

also work it , windows 7 OS 64bit with python 2.7.11 64bit,

this is a vulnerability in python 2.7.11 64bit version,

please look video,

https://drive.google.com/file/d/0B0zktfkIvV-LajlIQ0p0eWZjd0U/view

--

___
Python tracker 

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



[issue9006] xml-rpc Server object does not propagate the encoding to Unmarshaller

2016-01-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

xmlrpc uses XML. This format includes information about the encoding and 
doesn't need external specification.

The server in the example is not correct. It generates XML with default XML 
declaration that implies the UTF-8 encoding, but the body is encoded with 
non-UTF-8 encoding. If add the argument encoding='UTF-8' the example works.

But this feature is not covered by tests. Proposed patch adds tests for 
non-default client and server encodings. No changes for the xmlrpc module 
itself is needed.

--
assignee:  -> serhiy.storchaka
components: +Tests
keywords: +patch
nosy: +serhiy.storchaka
stage:  -> patch review
type: behavior -> enhancement
versions: +Python 3.5, Python 3.6 -Python 3.1, Python 3.2
Added file: http://bugs.python.org/file41633/test_xmlrpc_encoding-2.7.patch

___
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

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

I've added a brief doc section on modifying and removing the install, so 
hopefully that suffices for this issue. If the original issue occurs again, 
feel free to reopen, but I think it'll be okay.

I have a few ideas about changing the installer to be more intuitive, but those 
would be separate.

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



[issue25287] test_crypt fails on OpenBSD

2016-01-16 Thread Cédric Krier

Changes by Cédric Krier :


--
nosy: +ced

___
Python tracker 

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



[issue25850] Building extensions with MSVC 2015 Express fails

2016-01-16 Thread Steve Dower

Changes by Steve Dower :


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



[issue25850] Building extensions with MSVC 2015 Express fails

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset fc117df27143 by Steve Dower in branch '3.5':
Issue #25850: Use cross-compilation by default for 64-bit Windows.
https://hg.python.org/cpython/rev/fc117df27143

New changeset 37dc870175be by Steve Dower in branch 'default':
Issue #25850: Use cross-compilation by default for 64-bit Windows.
https://hg.python.org/cpython/rev/37dc870175be

--
nosy: +python-dev

___
Python tracker 

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



[issue25993] Crashed when call time.time() after using _mm_xor_si64

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

This is something that you need to fix in the code using MMX. I don't recall 
the details, but there is an instruction that needs to be executed between 
using MMX and using the FPU.

Python can't make this judgement every time it calls into native code, so the 
external code has to do it.

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



[issue26073] Update the list of magic numbers in launcher

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Thanks!

--
assignee:  -> steve.dower
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue26070] Launcher fails to find in-place built binaries from earlier Python versions

2016-01-16 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> mhammond
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



[issue25694] test.libregrtest not installed

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

@Victor - is there anything else to be done for this issue or can we close it?

--

___
Python tracker 

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



[issue25878] CPython on Windows builds with /W3, not /W4

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

libmpdec/memory.c keeps pointers to customisable memory functions (malloc/free) 
and initialises them to  and  These functions are dllimport'd from 
the CRT, and so they trigger a warning letting you know that " == 
" may not always be true.

(That trivial comparison should always be true, but if you indirect one of the 
values through a few other modules it may be an address of a different stub 
function that calls the real malloc, and hence the addresses may not match.)

--

___
Python tracker 

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



[issue26133] TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object in

2016-01-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Victor, if the signal module has been cleared, how could it emit that error
message? signal.signal itself would no longer exist.

(I do agree with the solution you suggest -- though note that it may be
tricky to close the loop from inside the signal callback for SIGTERM, which
is presumably what is going on here.)

--

___
Python tracker 

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



[issue25694] test.libregrtest not installed

2016-01-16 Thread Steve Dower

Changes by Steve Dower :


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



[issue26133] TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object in

2016-01-16 Thread Alex Brandt

New submission from Alex Brandt:

When using the suggested practice of setting a stop loop signal handler with:

loop.add_signal_handler(signal.SIGTERM, loop.stop)

The following stack trace is given when the signal runs:

ligament_1 | Exception ignored in: >
ligament_1 | Traceback (most recent call last):
ligament_1 |   File "/usr/lib/python3.5/asyncio/base_events.py", line 387, in 
__del__
ligament_1 |   File "/usr/lib/python3.5/asyncio/unix_events.py", line 58, in 
close
ligament_1 |   File "/usr/lib/python3.5/asyncio/unix_events.py", line 139, in 
remove_signal_handler
ligament_1 |   File "/usr/lib/python3.5/signal.py", line 47, in signal
ligament_1 | TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, 
or a callable object

Since this happens during shutdown of the application I wouldn't consider this 
a high priority bug but it is quite annoying.  I've also not investigated if 
this interrupts the loop stopping procedure yet.

--
components: asyncio
messages: 258401
nosy: Alex Brandt, gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a 
callable object in >
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



[issue26133] TypeError: signal handler must be signal.SIG_IGN, signal.SIG_DFL, or a callable object in

2016-01-16 Thread Guido van Rossum

Guido van Rossum added the comment:

Heh, this is weird. If the signal being removed is SIGTERM, the logic looks 
like it is definitely going to call signal.signal(signal.SIGTERM, 
signal.SIG_DFL). And it doesn't look like the signal module's globals have been 
eradicated yet (or you'd have gotten something like "TypeError: 'NoneType' 
object is not callable" instead).

You seem to be using Python 3.5.0.  Can you repro this with 3.5.1 or with the 
asyncio from github? Do you have a small self-contained program that repos it?

--

___
Python tracker 

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



[issue25799] 2.7.11rc1 not added to Win10 app list (start menu)

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Terry, have you had a chance to try this with 2.7.11 final? (We didn't change 
anything, so I have no reason to expect anything difference.)

Without broader confirmation that this is an issue, I don't see how we can keep 
it as a release blocker. I also have no idea how to investigate or resolve it 
without a machine that regularly repros.

--

___
Python tracker 

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



[issue25850] Building extensions with MSVC 2015 Express fails

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

For anyone interested, there's no issue with using the cross compilers even on 
a 64-bit system. The same code will be generated, the only difference is that 
the native 64-bit compilers can keep more in memory than the 32-bit cross 
compilers. For most Python extensions this won't matter (it matters for 
building huge projects like an operating system).

--

___
Python tracker 

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



[issue24840] implement bool conversion for enums to prevent odd edge case

2016-01-16 Thread Ethan Furman

Ethan Furman added the comment:

New changeset e4c22eadc25c:

use public 'value'

--

___
Python tracker 

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



[issue25778] winreg.EnumValue does not truncate strings correctly

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Zach - you still got this or do you want me to commit it?

--

___
Python tracker 

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



[issue24505] shutil.which wrong result on Windows

2016-01-16 Thread Toby Tobkin

Toby Tobkin added the comment:

Steve, yeah I saw that and started playing with Clinic last night. I'll have 
the updated patch out soon--I've just been slow because I've been flying around 
to interviews trying to get my first job out of college and it's been eating 
all my free time.

--

___
Python tracker 

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



[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2016-01-16 Thread Steve Dower

Changes by Steve Dower :


--
assignee:  -> steve.dower
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



[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset b91c323a605e by Steve Dower in branch '2.7':
Issue #25824: Fixes sys.winver to not include any architecture suffix.
https://hg.python.org/cpython/rev/b91c323a605e

--
nosy: +python-dev

___
Python tracker 

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



[issue26073] Update the list of magic numbers in launcher

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1a2cfa52f749 by Steve Dower in branch '3.5':
Issue #26073: Update the list of magic numbers in launcher
https://hg.python.org/cpython/rev/1a2cfa52f749

New changeset cf868f77b400 by Steve Dower in branch 'default':
Issue #26073: Update the list of magic numbers in launcher
https://hg.python.org/cpython/rev/cf868f77b400

--
nosy: +python-dev

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Martin Panter

Martin Panter added the comment:

Looking at the 2.7.11 code, I think it should fail properly at this line 
, which 
checks if the change in size of all the replacements overflows. Is there a way 
to get a stack trace or similar on Windows?

Your video only shows the operation taking a long time or hanging as far as I 
can tell, not the Python program crashing. I would expect the call to raise 
MemoryError fairly quickly, after it has counted all 0xEAAA bytes to replace 
(but not actually replaced them).

--
nosy: +martin.panter

___
Python tracker 

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



[issue24505] shutil.which wrong result on Windows

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

I'm good with the patch, except we can't use ctypes in the standard library. 
NeedCurrentDirectoryForExePathW will need to be wrapped in Modules/_winapi.c.

Should be fairly simple to do, though it probably requires learning argument 
clinic (which admittedly I haven't done enough to write the function without 
copying from elsewhere). I may get back to it eventually, but if someone posts 
the implementation separately I'm happy to merge two patches to get this in.

--

___
Python tracker 

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



[issue25644] Unable to open IDLE on Windows 10 with Python 2.7.10

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Closing as norepro, but happy to reopen if it's still an issue with the 
official release.

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

___
Python tracker 

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



[issue26108] Calling PyInitialize with 2.7.11 on Windows x64 terminates process

2016-01-16 Thread Steve Dower

Changes by Steve Dower :


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



[issue26071] bdist_wininst created binaries fail to start and find 32bit Pythons

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset daa6fdaf9835 by Steve Dower in branch '3.5':
Issue #26071: bdist_wininst created binaries fail to start and find 32bit Python
https://hg.python.org/cpython/rev/daa6fdaf9835

New changeset db74f3a4cbeb by Steve Dower in branch 'default':
Issue #26071: bdist_wininst created binaries fail to start and find 32bit Python
https://hg.python.org/cpython/rev/db74f3a4cbeb

--
nosy: +python-dev

___
Python tracker 

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



[issue25878] CPython on Windows builds with /W3, not /W4

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

I made a new patch to replace all of the existing ones here with the two-line 
version of the change.

I also suppressed warning 4232 about dllimport addresses (essentially, you may 
get different values when taking the address of an imported function because of 
the way thunks are generated at compile time - this doesn't matter when you are 
calling them, only when comparing them), mainly because there's no other way to 
suppress them.

All warnings about conversions should be suppressed when you make the 
conversion explicit, and that's the preferable way to fix those.

--
Added file: http://bugs.python.org/file41635/25878_1.patch

___
Python tracker 

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



[issue26065] python embedded 3.5 amd64 crash when using venv

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 84101e587f47 by Steve Dower in branch '3.5':
Issue #26065: Excludes venv from library when generating embeddable distro.
https://hg.python.org/cpython/rev/84101e587f47

New changeset d3422b0e0cee by Steve Dower in branch 'default':
Issue #26065: Excludes venv from library when generating embeddable distro.
https://hg.python.org/cpython/rev/d3422b0e0cee

--
nosy: +python-dev

___
Python tracker 

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



[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Checked PCBuild/readme.txt and it's pretty clear that you can only use VS 2010+ 
with the SDK and the old compiler. So I'm closing this as wontfix as we will 
not be merging support to build Python 2 with VC10 or later.

--
resolution:  -> wont fix
stage: needs patch -> 
status: open -> closed

___
Python tracker 

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



[issue25878] CPython on Windows builds with /W3, not /W4

2016-01-16 Thread Stefan Krah

Stefan Krah added the comment:

Ah, thanks!  I guess this Visual Studio behavior is not compatible
with the C-standard, but indeed there are no function pointer
comparisons in libmpdec.

--

___
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

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5fc9bd33a712 by Steve Dower in branch '3.5':
Issue #25089: Adds short documentation section for modifying an install.
https://hg.python.org/cpython/rev/5fc9bd33a712

New changeset 4b06490cca47 by Steve Dower in branch 'default':
Issue #25089: Adds short documentation section for modifying an install.
https://hg.python.org/cpython/rev/4b06490cca47

--

___
Python tracker 

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



[issue25153] PCbuild/*.vcxproj* should use CRLF line endings

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

IMHO enabling the eol extension is the right way to deal with this. Especially 
once the GitHub migration happens - it really doesn't handle CRLF endings (or 
anything Windows) as well as Mercurial does.

--

___
Python tracker 

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



[issue25954] Python 3.5.1 installer fails on Windows 7

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Sorry for letting this slide for a while...

Can you check (in Programs and Features, View Installed Updates) whether you 
have KB2999226 installed? If not, you can get it from 
https://support.microsoft.com/en-us/kb/2999226

In the first install, this component failed (hence the missing DLL error), and 
then in subsequent installs it wasn't re-run. I'm not sure exactly what 
happened here, but it's possible that the installation was deferred until the 
next reboot automatically. Being a Windows Update, we don't have much control 
over how these are managed and the operating system can basically do what it 
likes.

--

___
Python tracker 

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



[issue25878] CPython on Windows builds with /W3, not /W4

2016-01-16 Thread Stefan Krah

Stefan Krah added the comment:

Could you explain warning #4232 in the case of libmpdec? I thought
all files are compiled and linked together. Why is the function
imported?

--
nosy: +skrah

___
Python tracker 

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



[issue26065] python embedded 3.5 amd64 crash when using venv

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

I'm declaring using venv from the embeddable distro as unsupported, and it will 
be removed completely from the next release.

To create virtual environments, use a regular install of Python.

--
assignee:  -> steve.dower
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
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



[issue26071] bdist_wininst created binaries fail to start and find 32bit Pythons

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Applied the patch and rebuilt the stubs, so this will show up in 3.5.2 and 3.6.

--
assignee:  -> steve.dower
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



[issue25765] Installation error

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

Closing as third-party, but happy to reopen if this turns out to be something 
specific to our installer and not the configuration of the target system.

--
resolution:  -> third party
status: open -> closed

___
Python tracker 

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



[issue25799] 2.7.11rc1 not added to Win10 app list (start menu)

2016-01-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

'Python 2.7.11' appeared in the 'All apps' list.  The .exe also appears in the 
local search, as just 'Python'.  So this was fixed by either you in one of the 
patches between rc1 and final, Microsoft in a Win 10 update, or randon 
happenstance.

--
resolution:  -> fixed
stage: needs patch -> resolved
status: open -> closed

___
Python tracker 

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



[issue25878] CPython on Windows builds with /W3, not /W4

2016-01-16 Thread Steve Dower

Steve Dower added the comment:

I don't think the C standard necessarily applies or defines what happens when 
you call/link a __declspec'd function, but it's certainly not going to be the 
same as static linking.

That said, maybe the subtle nature of this means we should suppress the warning 
locally with a comment, rather than suppressing it globally.

--

___
Python tracker 

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



[issue26135] Documentation Recommends Deprecated `imp` Module

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 31e6d4d25b8e by Senthil Kumaran in branch '3.5':
Issue26135 - In the tutorial section on modules, reference importlib.reload 
instead of imp.reload.
https://hg.python.org/cpython/rev/31e6d4d25b8e

New changeset 6636d688bbd3 by Senthil Kumaran in branch 'default':
merge from 3.5
https://hg.python.org/cpython/rev/6636d688bbd3

--
nosy: +python-dev

___
Python tracker 

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



[issue26135] Documentation Recommends Deprecated `imp` Module

2016-01-16 Thread Senthil Kumaran

Senthil Kumaran added the comment:

Thank you for the report. Fixed in the active versions of python (3.5 and 3.6). 
3.4 was in security fix mode. Although, it can see important documentation 
bug-fixes, this isn't bug-fix as far as 3.4 version is concerned. So, I didn't 
make the change in 3.4.

--
assignee: docs@python -> orsenthil
nosy: +orsenthil
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Martin Panter

Martin Panter added the comment:

My previous comment was assuming 32-bit Python on Windows; now I see it is 
64-bit.

At the end of the video, I see that the cursor stops blinking, and you can’t do 
anything (closing the window seems to do nothing). So maybe the OS has crashed 
or frozen, or maybe it is just being really slow.

In the video I also see you have about 8 GB of RAM. The Python strop code 
should try to allocate a temporary buffer of 0xEAAA * 2 * 0x bytes = 5.2 
GB, and then a second 5.2 GB object which is the final string result. It copies 
the temporary buffer into the string object, so it will temporarily require 
10.4 GB allocated. Does Windows use swap memory? I suspect what you see is 
normal Windows behaviour when it runs low on memory, and it is not Python’s 
fault.

--

___
Python tracker 

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



[issue26136] DeprecationWarning for PEP 479 (generator_stop)

2016-01-16 Thread Martin Panter

New submission from Martin Panter:

PEP 479 says “Python 3.6: Non-silent deprecation warning” if “StopIteration 
bubbles out of a generator not under __future__ import”. Currently I see a 
PendingDeprecationWarning in this case; I guess this should be changed to 
DeprecationWarning in the 3.6 branch.

--
components: Interpreter Core
messages: 258448
nosy: martin.panter
priority: normal
severity: normal
stage: needs patch
status: open
title: DeprecationWarning for PEP 479 (generator_stop)
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



[issue25905] IDLE fails to display the README file

2016-01-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 21356a5b8a5e by Terry Jan Reedy in branch '2.7':
Issue #25905: Specify 'ascii' encoding for README.txt and NEWS.txt.
https://hg.python.org/cpython/rev/21356a5b8a5e

New changeset 59852a79b508 by Terry Jan Reedy in branch '3.5':
Issue #25905: Specify 'ascii' encoding for README.txt and NEWS.txt.
https://hg.python.org/cpython/rev/59852a79b508

--

___
Python tracker 

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



[issue25905] IDLE fails to display the README file

2016-01-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I re-encoded CREDITS to utf-8 and specified 'ascii' for the other so *I* will 
see an error if a non-ascii chars gets in the file again.  Serhiy, I am 
confident that this will work on all OSes, but feel free to test AboutIDLE 
again sometime.

(Note to myself) To automate a test that the files will open, change
from idlelib import textView  # to
from idlelib.textView import view_text, view_file
and change display... and show.. methods to module functions so view_file can 
be replaced and the show functions called without involving tkinter.  This can 
be part of future refactoring in 3.5+.

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

Yes,

i have any idea,

Thanks,

--
resolution:  -> wont fix

___
Python tracker 

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



[issue26134] urllib2.HTTPBasicPriorAuthHandler does not work with DigestAuthentication

2016-01-16 Thread guesommer

New submission from guesommer:

My first bug reported here, so might not be perfectly following the rules :)

Similar to issue 19494 ("Add urllib2.HTTPBasicPriorAuthHandler for use with 
APIs that don't return 401 errors") - but related to digest authentication. 

The sending of the auth header at all times works when using basic 
authentication, but not with digest authentication (verified with wireshark).

IMHO it should be the same behaviour with digest authentication - I think the 
change needs to applied there as well.

example code to check:
password_mgr = urllib.request.HTTPPasswordMgrWithPriorAuth()
password_mgr.add_password(None , 'http://www.example.org;, 
"supercow","blablabla",is_authenticated=True)
auth_handler = urllib.request.HTTPDigestAuthHandler(password_mgr)
opener = urllib.request.build_opener(auth_handler)
urllib.request.install_opener(opener)

--
components: Library (Lib)
messages: 258435
nosy: guesommer
priority: normal
severity: normal
status: open
title: urllib2.HTTPBasicPriorAuthHandler does not work with DigestAuthentication
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



[issue25778] winreg.EnumValue does not truncate strings correctly

2016-01-16 Thread Zachary Ware

Zachary Ware added the comment:

Go for it :)

--

___
Python tracker 

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



[issue26059] Integer Overflow in strop.replace()

2016-01-16 Thread Ramin Farajpour Cami

Ramin Farajpour Cami added the comment:

"Your video only shows the operation taking a long time or hanging as far as I 
can tell," what your means?

i say my OS crash with run function strop i should restart manually for work 
again,

do you have idea for fix it ?

--

___
Python tracker 

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



[issue21762] update the import machinery to only use __spec__

2016-01-16 Thread Brett Cannon

Brett Cannon added the comment:

Yeah, which is why it will take a transition to get people to start mucking 
with __spec__ instead of the module attributes for their 
legitimate/questionable needs (although the whole `__name__ == '__main__'` 
idiom means __name__ will never go away while __path__, __package__, 
__loader__, __file__, and __cached__ could all slowly go away).

--

___
Python tracker 

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



[issue23795] argparse -- incorrect usage for mutually exclusive

2016-01-16 Thread Martin Panter

Martin Panter added the comment:

I just tried the test script on Arch Linux’s python-3.4.3-2-i686.pkg.tar.xz 
package (reinstalled just to be sure), and I get the correct help output. All I 
can suggest is make sure you really have the original files and haven’t 
accidentally edited the argparse.py file for instance.

--
nosy: +martin.panter
resolution:  -> works for me
status: open -> closed
type: enhancement -> behavior

___
Python tracker 

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



[issue14046] argparse: assertion failure if optional argument has square/round brackets in metavar

2016-01-16 Thread Martin Panter

Changes by Martin Panter :


--
status: open -> closed
type: crash -> behavior

___
Python tracker 

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



[issue25058] Right square bracket argparse metavar

2016-01-16 Thread Martin Panter

Changes by Martin Panter :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> argparse assertion failure with brackets in metavars

___
Python tracker 

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



[issue26132] 2.7.11 Windows Installer issues on Win2008R2

2016-01-16 Thread Eryk Sun

Eryk Sun added the comment:

Steve, is this something that can only be reproduced on Windows 7/2008 for some 
reason? My "just for me" installation on Windows 10 seems to work fine. I 
installed from "python-2.7.11.amd64.msi" with the MD5 sum 
25acca42662d4b02682eee0df3f3446d, which matches the MD5 sum posted on 
python.org. 

The resource #1 manifest embedded in python.exe uses the following assembly:




The resource #2 manifest embedded in python27.dll uses the same assembly. 

However, I can confirm the second problem. The extension modules in DLLs 
incorrectly have a resource #2 manifest. They should be relying on the 
activation context from the #2 manifest in python27.dll.

--
nosy: +eryksun

___
Python tracker 

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



[issue9006] xml-rpc Server object does not propagate the encoding to Unmarshaller

2016-01-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


Added file: http://bugs.python.org/file41634/test_xmlrpc_encoding-3.5.patch

___
Python tracker 

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