[issue24873] Add full cleanup checkbox to uninstaller

2015-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: There are two problem scenarios, which might meed different solutions. 1. Cannot install x.y(.z) for the first time, or if it does install, it does not run. Zap all may be appropriate. 2, Cannot upgrade installed x.y.z. This seems to be due to corruption of

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- Removed message: http://bugs.python.org/msg248657 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: When a cycle object has fully consumed its input iterable, __reduce__ method uses the returns a space-inefficient result when space-efficient alternative is available. # Current way of restoring a cycle object with excess info in setstate: c =

[issue24873] Add full cleanup checkbox to uninstaller

2015-08-15 Thread Steve Dower
Steve Dower added the comment: #2 should be fixed with the new installer (not necessarily the 3.5.0a/b/rc versions, but final 3.5.0-3.5.1 and upwards should be fine). The problems with 3.4's installer seem to be largely due to the pip bootstrap being a critical part of uninstall. I've

[issue21167] float('nan') returns 0.0 on Python compiled with icc

2015-08-15 Thread R. David Murray
R. David Murray added the comment: Here's the pull request: https://bitbucket.org/larry/cpython350/pull-requests/4/21167-fix-definition-of-nan-when-icc-used/diff -- status: closed - open ___ Python tracker rep...@bugs.python.org

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +alexandre.vassalotti, pitrou, serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-15 Thread Brett Cannon
Brett Cannon added the comment: Here is a pure Python patch that skips any frames that mentions 'importlib' and '_bootstrap' in the filename (it also skips _warnings.warn for easy testing since I didn't implement the C part). The only side-effect is that negative stack levels won't be the

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added an updated patch that passes all tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___ ___

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-15 Thread Steve Dower
Steve Dower added the comment: I've made a build of rc1 with the installer fix that's currently being considered for 3.5.0: https://pythonbuilds.blob.core.windows.net/temp/python-24847-1.exe (This is a test-marked build that *should not* affect another 3.5 install, but if it does please tell

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-08-15 Thread STINNER Victor
STINNER Victor added the comment: Oh. I restored the old title because i replied by email with an old email. -- title: surrogateescape is too slow - Optimize coding with surrogateescape and surrogatepass error handlers ___ Python tracker

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-15 Thread Steve Dower
Steve Dower added the comment: A second test build with the attached patches applied directly to 3.5.0rc1. (You'll need to remove the first test build before installing this). https://pythonbuilds.blob.core.windows.net/temp/python-24847-2.exe Any confirmation that these work would be

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, looking at the source for itertools.cycle(), it looks like the overall speed could be boosted considerably by looping over the saved list directly rather than allocating a new list iterator every time the cycle loops around. --

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2015-08-15 Thread Nicolas Demarchi
New submission from Nicolas Demarchi: When Envbuilder creates a new virtualenv with system_site_packages=True, in the process of installing pip itself it actually doesn't install it inside the virtualenv because it is already there in the system. However when you do it manually using

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file40188/cycle9.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching a partial patch: * More than doubles the speed of cycle() * Cuts size of __reduce__ result by about a third (on average) * Still needs work on __setstate__ for a correct restore. -- keywords: +patch Added file:

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
New submission from Raymond Hettinger: When a cycle object has fully consumed its input iterable, __reduce__ method uses the returns a space-inefficient result when space-efficient alternative is available. # Current way of restoring a cycle object with excess info in setstate: c =

[issue24859] ctypes.Structure bit order is reversed - counts from right

2015-08-15 Thread eryksun
eryksun added the comment: No, ctypes.Structure should use native endianness. So on a little-endian it's the same as ctypes.LittleEndianStructure, and on a big-endian system it's the same as ctypes.BigEndianStructure. ARM processors can work in either mode. IIRC, the Raspberry Pi is built as

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-15 Thread Steve Dower
Steve Dower added the comment: Yeah, should have mentioned the smartscreen warning. The official builds are Authenticode signed, which prevents that warning appearing. I promise the installers are safe :) -- ___ Python tracker

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-15 Thread Ryan Gonzalez
Ryan Gonzalez added the comment: What if you run: bt ? On August 15, 2015 7:32:37 PM CDT, Cyd Haselton rep...@bugs.python.org wrote: Cyd Haselton added the comment: I thought porting gdb would be the difficult part of getting debug info. I was so wrong. Here is what I have so far, after

[issue24870] surrogateescape is too slow

2015-08-15 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: maybe we can start with ascii? -- title: Optimize coding with surrogateescape and surrogatepass error handlers - surrogateescape is too slow ___ Python tracker rep...@bugs.python.org

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2015-08-15 Thread Tal Einat
Tal Einat added the comment: I'll commit #3 (unicodeobject.c) when I first get the chance, which should be in a few days. I'll be happy to improve the rest as needed if someone can find the time to review them! -- ___ Python tracker

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: Added file: http://bugs.python.org/file40185/time_cycle.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24874 ___

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-08-15 Thread Cyd Haselton
Cyd Haselton added the comment: I thought porting gdb would be the difficult part of getting debug info. I was so wrong. Here is what I have so far, after lengthy consultation of the gdb manual. Bear with me...it's basically a copy paste of gdb session output: (gdb) run Starting program:

[issue24874] Improve pickling efficiency of itertools.cycle

2015-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Current cycle implementation is simple and clever, but can be optimized. The part about iterating LGTM (but looks the firstpass field can be eliminated at all). But __reduce__ doesn't look so optimal. It makes a copy of a list and makes iterating an

[issue24847] Can't import tkinter in Python 3.5.0rc1

2015-08-15 Thread Matthew Barnett
Matthew Barnett added the comment: On running the installer, Windows reports: Windows SmartScreen prevented an unrecognised application from starting. Running this application might put your PC at risk. Application: Python-24847-2.exe Publisher: Unknown Publisher When installed, Tkinter

[issue24305] The new import system makes it impossible to correctly issue a deprecation warning for a module

2015-08-15 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yeah, yours is probably better in fact, I was just trying to make the semantics as obvious as explicit as possible for a comment :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24305

[issue24868] Python start

2015-08-15 Thread jack
jack added the comment: Thanks a lot for the tip. This revealed that Python 3.4.3 was looking for tcl from Python 2.2 on my machine. That version had been on my machine more than 10 years ago, but was no longer there. It had left behind a whole bunch of registry crumbs, which I removed. I

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-08-15 Thread Steve Dower
Steve Dower added the comment: Rereading the discussion, there seems to be agreement that this is an enhancement. It does not apply for Python 3.5 (which requires a compiler without the bug that causes this), and Python 3.4 is no longer eligible for enhancements. I'm closing this as out of

[issue24859] ctypes.Structure bit order is reversed - counts from right

2015-08-15 Thread eryksun
eryksun added the comment: It seems you want a BigEndianStructure: from ctypes import * class SAEJ1939MsgId(BigEndianStructure): _fields_ = (('reserved', c_uint8, 3), ('priority', c_uint8, 3), ('extended_data_page',

[issue24870] surrogateescape is too slow

2015-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few months ago I wrote a patch that drastically speeds up encoding and decoding with surrogateescape and surrogatepass error handlers. However it causes 25% regression in decoding some UTF-8 data (U+0100-U+07FF if I remember correct) with strict error

[issue24870] surrogateescape is too slow

2015-08-15 Thread R. David Murray
R. David Murray added the comment: Why are bytes being escaped in a binary blob? The reason to use surrogateescape is when you have data that is mostly text, should be processed as text, but can have occasional binary data. That wouldn't seem to apply to a database binary blob. But that

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2015-08-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: commit review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21718 ___

[issue21718] sqlite3 cursor.description seems to rely on incomplete statement parsing for detection

2015-08-15 Thread R. David Murray
R. David Murray added the comment: Attached is the patch ported to python2.7. However, the test doesn't fail for me before I apply (compile) the fix. -- Added file: http://bugs.python.org/file40184/f67fa9c898a4713850e16934046f0fe2cba8c44c.patch

[issue24862] subprocess.Popen behaves incorrect when moved in process tree

2015-08-15 Thread Andre Merzky
Andre Merzky added the comment: Looking a little further, it seems indeed to be a problem with ignoring SIGCHLD. The behavior has been introduced with [1] at [2] AFAICS, which is a response to issue15756 [3]. IMHO, that issue should have been resolved with raising an exception instead of

[issue24870] Optimize coding with surrogateescape and surrogatepass error handlers

2015-08-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- keywords: +patch title: surrogateescape is too slow - Optimize coding with surrogateescape and surrogatepass error handlers Added file: http://bugs.python.org/file40183/faster_surrogates_hadling.patch

[issue24862] subprocess.Popen behaves incorrect when moved in process tree

2015-08-15 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24862 ___ ___

[issue17797] Visual C++ 11.0 reports fileno(stdin) == 0 for non-console program

2015-08-15 Thread Ilya Kulakov
Ilya Kulakov added the comment: I see issue to be fixed but patch wasn't applied yet. Is it still supposed to be included in 3.5 or there is something wrong? -- nosy: +Ilya.Kulakov ___ Python tracker rep...@bugs.python.org

[issue24859] ctypes.Structure bit order is reversed - counts from right

2015-08-15 Thread zeero
zeero added the comment: Thanks for the advise. I'll give it a try. So ctypes.Structure is always little endian regardless from the underlying architecture. I just checked on a raspberry pi 2 that should be a big endian device, and got the same results as before. I'm still not sure if it's

[issue24868] Python start

2015-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: ... why would installing 3.4.3 or other versions be contaminated by stuff from another version, especially an ancient one? I don't know. Steve has revamped the installer for 3.5. Steve: This issue is solved and I am closing it, but I hope you either have

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-15 Thread Steve Dower
Changes by Steve Dower steve.do...@python.org: -- nosy: +larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24872 ___ ___ Python-bugs-list

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-15 Thread Steve Dower
New submission from Steve Dower: The C Runtime used for Python 3.5 and later consists of two DLLs. One, ucrtbase.dll, is an operating system component that can be assumed to be available and up to date (or will be installed by the Python installer). The second DLL is vcruntimeXXX.dll, where

[issue24868] Python start

2015-08-15 Thread Steve Dower
Steve Dower added the comment: Actually, that's a pretty good idea (I'd certainly use it), though it would come with a big fat warning sign. I'll add an issue for it. Whether it would fix this particular issue is unclear. I suspect this one is due to environment variables (TCL_LIBRARY

[issue24873] Add full cleanup checkbox to uninstaller

2015-08-15 Thread Steve Dower
New submission from Steve Dower: On uninstallation, we should display a checkbox to aggressively clean up the install. This would include: * delete the main registry key and all children, regardless of whether we created them or not * delete the main install directory and all subdirectories

[issue24868] Python start

2015-08-15 Thread jack
jack added the comment: If you zap all existing traces of Python and tcl it would affect users who need to run multiple versions. I would suggest completely encapsulating each version and all its dependencies, in order to avoid mutual interference. On 8/15/2015 2:55 PM, Steve Dower wrote:

[issue24873] Add full cleanup checkbox to uninstaller

2015-08-15 Thread Steve Dower
Steve Dower added the comment: (Terry - FYI as it was your suggestion, but feel free to un-nosy yourself if you want.) -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24873

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-15 Thread Christoph Gohlke
Christoph Gohlke added the comment: Thank you for looking into this. I just tried '/NODEFAULTLIB:msvcrt.lib' with Pillow and matplotlib but still get the linker errors: tiff.lib(jbig.obj) : error LNK2001: unresolved external symbol __imp_memchr freetype.lib(ftbase.obj) : error LNK2001:

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-15 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: What effect does this static linking of the VC runtime have on libraries that extension modules link at dynamically ? E.g. say I have an extension which links against an ODBC driver DLL using a different VC runtime than the one used to build Python. In

[issue24868] Python start

2015-08-15 Thread Steve Dower
Steve Dower added the comment: I can't vouch for Python 2.2, but Python 3.5 and later should not have any interference with other Python versions unless you choose to add it to PATH. We have kept all installed files and registry keys in their own versioned paths for a long time now.

[issue24872] Add /NODEFAULTLIB:MSVCRT to _msvccompiler

2015-08-15 Thread Steve Dower
Steve Dower added the comment: I guess those imports are expected to come from vcruntime. Rebuilding the static libraries may be the only option then, sorry (on the bright side, VC 14 has much better C99 support than earlier versions, so things should be better once we get past the problems