[issue892902] problem with pickling newstyle class instances

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Alexandre's comments. -- Added file: http://bugs.python.org/file40947/pickle_recursive-2.7_2.patch ___ Python tracker

[issue25555] Fix parser and AST: fill lineno and col_offset when compiling AST from Python objects

2015-11-05 Thread STINNER Victor
New submission from STINNER Victor: I wrote an AST optimizer which build AST from source code using ast.parse(), modify AST in place, and then compile the AST to bytecode. The problem is that the lineno and col_offset attributes of the "arg" AST node are uninitialized when AST is rebuild from

[issue25545] email parsing docs need to be clear that only ASCII strings are supported

2015-11-05 Thread Christian Tanzer
Christian Tanzer added the comment: > Yes, the port from python2 to python3 of the email package > was...suboptimal. > ... > The whole concept of using unicode as a 7bit data channel only is > just...weird. +100 to both. > But, we are now stuck with maintaining that API for backward >

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
New submission from Jeroen van der Heijden: When compiling a regular expression with groups (subpatterns), circular references are created. Here is an example to illustrate the problem: >>> import gc >>> import re >>> gc.disable() # disable garbage collector >>> gc.collect() # make sure we

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
New submission from STINNER Victor: Attached patch adds assertions to PyObject_GetItem() to ensure that an exception is raised if the function failed. _Py_CheckFunctionResult() could be used to implement such check, but it might adds a little overhead, whereas I really don't think that such

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Where is a patch? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. The fix for LOAD_GLOBAL should be applied for all versions. -- assignee: -> haypo stage: patch review -> commit review ___ Python tracker

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e87bcf20707 by Victor Stinner in branch '3.5': Issue #25556: Fix LOAD_GLOBAL bytecode when globals type is not dict and the https://hg.python.org/cpython/rev/1e87bcf20707 New changeset c1414f80ebc9 by Victor Stinner in branch 'default': Issue

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed versions: +Python 3.5 ___ Python tracker ___

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What about 3.4? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25557] Optimize LOAD_NAME bytecode

2015-11-05 Thread STINNER Victor
New submission from STINNER Victor: The LOAD_GLOBAL bytecode has a fast-path when globals and builtins have exactly the type 'dict'. It calls the _PyDict_LoadGlobal() function. I propose to implement a similar optimization for LOAD_NAME, see attached patch. The patch also fixes LOAD_GLOBAL

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: Oops, sorry. It's now attached to the issue :-) -- keywords: +patch Added file: http://bugs.python.org/file40951/pyobject_getitem.patch ___ Python tracker

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___

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

2015-11-05 Thread Alex Champandard
Alex Champandard added the comment: I agree this makes --system-site-packages a useless option unless it's fixed. We just had many beginners install pyvenv's and get very confused because of this. Passing ensurepip a new option to force it to install within a venv I think would work. What

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > LGTM. The fix for LOAD_GLOBAL should be applied for all versions. Thanks for the review. I applied the LOAD_GLOBAL fix to Python 3.5 and 3.6. Python 2.7 doesn't support globals not being dict. -- ___ Python

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > What about 3.4? I consider it as almost dead (no more bugfixes), and this really is really a corner case. Except me, I don't think that anyone uses globals which are not dict :-D (It never worked...) -- ___

[issue25557] Optimize LOAD_NAME bytecode

2015-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report and patch Jeroen. Indeed, there is a regression, and your patch fixes it. But I don't like the idea of using weakref. For now sre_parse has very little dependencies, but weakref depends on collections that depends on a number of

[issue25495] binascii documentation incorrect

2015-11-05 Thread Martin Panter
Martin Panter added the comment: Perhaps we can focus on the Python 2 version where there is always a newline appended. Here is a possible patch. -- Added file: http://bugs.python.org/file40953/issue25495.base64.2.7.patch ___ Python tracker

[issue25557] Optimize LOAD_NAME bytecode

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > When LOAD_NAME is generated? Is it worth to optimize this case? Aren't > LOAD_FAST and LOAD_GLOBAL used in performance critical code? I guess that it's only used to execute the body of modules. > Is it worth to optimize this case? Hum, I don't know :-) >

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-11-05 Thread gul916
gul916 added the comment: Hi, Just a few words to tell you that I had the same problem to compile scipy 0.16.0 with mkl libraries under python 3.5 and linux fedora 22. Pyatomic-2.patch solved the problem. Thanks -- nosy: +gul916 ___ Python tracker

[issue25150] 3.5: Include/pyatomic.h is incompatible with OpenMP (compilation of the third-party yt module fails on Python 3.5)

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: "Pyatomic-2.patch solved the problem." Great! The good news is that the Python 3.5.1 release has now a schedule: https://www.python.org/dev/peps/pep-0478/ "3.5.1 final: December 6, 2015" -- ___ Python tracker

[issue25557] Optimize LOAD_NAME bytecode

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When LOAD_NAME is generated? Is it worth to optimize this case? Aren't LOAD_FAST and LOAD_GLOBAL used in performance critical code? It looks to me that there is a bug in fast path of _PyDict_LoadGlobal. If the first lookup fails, it can raise an exception.

[issue25495] binascii documentation incorrect

2015-11-05 Thread Mouse
Mouse added the comment: Unfortunately, NO. The problem (and this bug report) is for Python-3 documentation, so trying to address it in Python-2 rather than in Python-3 does not make sense. We seem to both understand and agree that there is no length limitation on b2a_base64() input, either

[issue25558] Use static asserts in C code

2015-11-05 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch converts some dynamic assert to static asserts (Py_BUILD_ASSERT_EXPR). This allows to check static invariants at compile time. -- components: Extension Modules, Interpreter Core files: use_Py_BUILD_ASSERT_EXPR.patch keywords: patch

[issue25553] SMTP.data(msg) function may cause the last CRLF of msg lost if msg is quoted-printable encoding.

2015-11-05 Thread R. David Murray
R. David Murray added the comment: RFC 2812 says: Note that the first of this terminating sequence is also the that ends the final line of the data (message text) So, smtplib is correct. If you have a server that is not respecting this, then that server is out of compliance and there

[issue25558] Use static asserts in C code

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: OK, I'll exclude Modules/_decimal/_decimal.c. -- ___ Python tracker ___

[issue25558] Use static asserts in C code

2015-11-05 Thread Stefan Krah
Stefan Krah added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25558] Use static asserts in C code

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > This is a public name and can be used in third-party code. Do you mean that a library can really rely on the result!? It would be insane :-) -- ___ Python tracker

[issue25558] Use static asserts in C code

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: A library can follow the example in the comment. #define foo_to_char(foo) \ ((char *)(foo)\ + Py_BUILD_ASSERT_EXPR(offsetof(struct foo, string) == 0)) -- ___ Python tracker

[issue25558] Use static asserts in C code

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: +(void)Py_BUILD_ASSERT_EXPR(INT_MAX <= _PyTime_MAX / SEC_TO_NS); Hum, maybe the existing macro should be renamed to Py_BUILD_ASSERT_EXPR and a new Py_BUILD_ASSERT_EXPR macro should add the (void) to ignore the result? It would avoid to have to repeat

[issue25559] signal.siginterrupt description has typo

2015-11-05 Thread Tom Meagher
New submission from Tom Meagher: "if flag is False, system calls will be restarted when interrupted by signal signalnum, otherwise system calls will be interrupted." This sentence doesn't make any sense as written. I assume there should be a "not" in there somewhere, but I'm unclear if

[issue25558] Use static asserts in C code

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: Hum, maybe I wasn't clear: I propose attached macro.patch. -- Added file: http://bugs.python.org/file40956/macro.patch ___ Python tracker

[issue25559] signal.siginterrupt description has typo

2015-11-05 Thread R. David Murray
R. David Murray added the comment: The first phase says "restarted when interrupted", the second phrase says "interrupted". So the difference is whether the system call is restarted or left in interrupted state (ie: the signal will propagate, which is confirmed by the second paragraph). I

[issue25495] binascii documentation incorrect

2015-11-05 Thread Mouse
Mouse added the comment: To add: I do not understand your attachment to that 57 "...(exactly 57 bytes of input data per line)", and request that this parenthesized sentence is removed from your Python-2.7 doc patch. Please give the reader the benefit of the doubt, and allow that *if* he

[issue25558] Use static asserts in C code

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is a public name and can be used in third-party code. -- ___ Python tracker ___

[issue25545] email parsing docs need to be clear that only ASCII strings are supported

2015-11-05 Thread R. David Murray
R. David Murray added the comment: I agree that the situation is not the best, but it is the one we have. I can't delete those methods now, they've existed in Python3 for too long, and initially were the only thing that worked (albeit only with ASCII only strings). If you can suggest ways

[issue25558] Use static asserts in C code

2015-11-05 Thread Stefan Krah
Stefan Krah added the comment: Serhiy, could you please not change stuff that I maintain? I know you have the best intentions, but I really don't like these kinds of changes (just like you don't like trailing whitespace :). -- nosy: +skrah ___

[issue24623] Parser: broken line numbers for triple-quoted strings

2015-11-05 Thread Stefan Krah
Stefan Krah added the comment: Victor, I'm adding you just in case this also affects your optimizer (like #2). -- ___ Python tracker ___

[issue24623] Parser: broken line numbers for triple-quoted strings

2015-11-05 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list

[issue25552] python turtle page does not run

2015-11-05 Thread R. David Murray
R. David Murray added the comment: This is not a place to get help with turtle programming, but rather a place to report bugs. We know turtle works, we have tests :). For help your best bet would be the python-list mailing list, or perhaps python-tutor. Probably the latter: I note that

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.4 ___ Python tracker

[issue18010] pydoc search chokes on import errors

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I were not expected that the test will be so complex, and now I'm not sure that want it. :-( But looks it can't be written simpler. The patch LGTM in any case. -- ___ Python tracker

[issue25560] Unhandled warning in test_unicode_file

2015-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25561] unstable result of time.monotonic

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > unstable result of time.monotonic I'm sorry, I don't understand your problem. What do you expect? Why do you consider that your results are a bug? You computed the duration of "import unicodedata" using the system clock and using the monotonic clock. So

[issue18010] pydoc search chokes on import errors

2015-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> commit review ___ Python tracker ___

[issue25561] unstable result of time.monotonic

2015-11-05 Thread Ivan Bykov
New submission from Ivan Bykov: Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import platform >>> platform.win32_ver() ('7', '6.1.7601', 'SP1', 'Multiprocessor Free') >>>

[issue24802] int and float constructing from non NUL-terminated buffer

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Great! Besides few nitpicks the patch LGTM. > However I don’t understand what you meant about restoring int(bytes, base) > behaviour. None of the patches here, nor in Issue 22896, touch long_new() in > /Objects/longobject.c. long_new() uses

[issue25560] Unhandled warning in test_unicode_file

2015-11-05 Thread ppperry
New submission from ppperry: >python -Wall -m test.regrtest test_unicode_file [1/1] test_unicode_file C:\Python27\lib\shutil.py:64: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal os.path.normcase(os.path.abspath(dst)))

[issue24424] xml.dom.minidom: performance issue with Node.insertBefore()

2015-11-05 Thread GuiHome
GuiHome added the comment: We have been running this patch for several month now without any issue. Would be glad if a maintainer could review it and merge it upstream. thanks -- nosy: +guihome ___ Python tracker

[issue12612] Valgrind suppressions

2015-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92dda5f00b0f by doko in branch '2.7': Issue #12612: Add some Valgrind suppressions for 64-bit machines. https://hg.python.org/cpython/rev/92dda5f00b0f -- ___ Python tracker

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-11-05 Thread Vilnis Termanis
Vilnis Termanis added the comment: I've added a regression test for the proposed patch along the lines of the example script (i.e. fails before and passes with patch). Apologies if the test is a bit clumsy - maybe there is a more elegant way? -- Added file:

[issue25563] Windows 10 IDLE / Tkinter startup problem

2015-11-05 Thread Martin Panter
Changes by Martin Panter : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: Windows 10 IDLE /Tniker startup problem -> Windows 10 IDLE / Tkinter startup problem ___ Python tracker

[issue25495] binascii documentation incorrect

2015-11-05 Thread Martin Panter
Martin Panter added the comment: Mouse, I know you originally opened this against 3.5. Apart from the module description at the bottom, my patch should be valid for 3.5 also. The relevant wording is identical to 2.7. I have resisted removing the magic number 57 for a couple of reasons.

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread ppperry
Changes by ppperry : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread ppperry
ppperry added the comment: `del __builtins__;min` only fails in IDLE if someone has previously set `__builtins__ to something else. >>>__builtins__ = 7 >>> min Traceback (most recent call last): File "", line 1, in min NameError: name 'min' is not defined >>>del

[issue25563] Windows 10 IDLE / Tkinter startup problem

2015-11-05 Thread ppperry
Changes by ppperry : -- nosy: -ppperry ___ Python tracker ___ ___ Python-bugs-list

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread ppperry
New submission from ppperry: In IDLE the following code silently works: >>> del __builtins__ >>> min In the standard interpreter, it produces an error: >>> del __builtins__ >>> min Traceback (most recent call last): File "", line 1, in NameError: name 'min' is not defined Note that saying

[issue25410] Clean up and fix OrderedDict

2015-11-05 Thread Eric Snow
Eric Snow added the comment: All 3 patches look fine to me. In "odict_resize_sentinel.patch", it would be nice if you could accomplish that with a single sentinel. However, fixing the bug is more critical. -- ___ Python tracker

[issue25410] Clean up and fix OrderedDict

2015-11-05 Thread Eric Snow
Changes by Eric Snow : -- stage: patch review -> commit review ___ Python tracker ___

[issue25562] Python 2 & 3 don't allow the user to disable ctypes SEH in windows

2015-11-05 Thread R. David Murray
R. David Murray added the comment: This would be a new feature and so would not be acceptable for python2.7. I wonder if cffi has such a switch. -- nosy: +r.david.murray type: behavior -> enhancement versions: -Python 2.7 ___ Python tracker

[issue25563] Windows 10 IDLE / Tkinter startup problem

2015-11-05 Thread ppperry
ppperry added the comment: This might be a duplicate of issue8820 -- nosy: +ppperry ___ Python tracker ___

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread ppperry
ppperry added the comment: If you type `del __builtins__;min` an error is raise in both IDLE and the standard interpreter. -- ___ Python tracker ___

[issue25465] Pickle uses O(n) memory overhead

2015-11-05 Thread Lukas Lueg
Lukas Lueg added the comment: I very strongly doubt that it actually crashes your kernel - it basically can't. Your desktop becomes unresponsive for up to several minutes as the kernel has paged out about every single bit of memory to disk, raising access times by several orders of magnitude.

[issue25563] Windows 10 IDLE /Tniker startup problem

2015-11-05 Thread Lester Veenstra
New submission from Lester Veenstra: C:\Users\lbv>python Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import Tkinter Traceback (most recent call last): File "", line 1, in File

[issue25559] signal.siginterrupt description has typo

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: For more information on how Python handles signals, you can also read the PEP 475 (which changed how Python 3.5 handles signals ;-)) -- nosy: +haypo ___ Python tracker

[issue25495] binascii documentation incorrect

2015-11-05 Thread Georg Brandl
Georg Brandl added the comment: issue25495.base64.2.7.patch looks good to me. A similar patch can be adapted for 3.x. -- nosy: +georg.brandl ___ Python tracker

[issue25562] Python 2 & 3 don't allow the user to disable ctypes SEH in windows

2015-11-05 Thread tzickel
New submission from tzickel: In Windows, there is a mechanizm called SEH that allows C/C++ programs to catch OS Exceptions (such as divide by zero, page faults, etc..). Python's ctypes module for some reason forces the user to wrap all ctypes FFI calls with a special SEH wrapper that converts

[issue25565] subprocess.Popen creates inheritable file descriptors on Windows, can leak to other child processes

2015-11-05 Thread Jack O'Connor
New submission from Jack O'Connor: The Windows implementation of Popen calls _make_inheritable(), which creates inheritable copies of Popen's file descriptors. If two Popen calls happen at the same time on different threads, these descriptors can leak to both child processes. Here's a

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-11-05 Thread Mark Summerfield
Mark Summerfield added the comment: No, I'm sorry I haven't tried with 3.5; in fact, there doesn't seem to be a cx_Freeze available for 3.5 yet. -- ___ Python tracker

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: pong patience is one key to success ;-) -- ___ Python tracker ___ ___

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Martin Panter
Martin Panter added the comment: Actually RFC 7230 says “A server may reject a request that contains a message body but not a Content-Length by responding with 411 (Length Required)”, so maybe it is only clients that have to support chunked decoding. So I take back my paragraph about POST

[issue3353] make built-in tokenizer available via Python C API

2015-11-05 Thread Rose Ames
Changes by Rose Ames : -- nosy: +superluser ___ Python tracker ___ ___ Python-bugs-list

[issue25555] Fix parser and AST: fill lineno and col_offset when compiling AST from Python objects

2015-11-05 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Victor, 1. Result of the compilation -> success 2. I have checked your patch, I think there is no problem. 3. How can I test it? currently, everything is fine. For me, this patch is ok and working, but I need the point 3. --

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

2015-11-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: Has anyone confirmed that this bug actually exists? I'm afraid that I cannot verify it. I get these results on three different computers: py> x = 8.988465674311579e+307 py> statistics.mean([x, x]) 8.988465674311579e+307 py> statistics.mean([x, x]) == x True

[issue25561] unstable result of time.monotonic

2015-11-05 Thread Eric V. Smith
Eric V. Smith added the comment: I agree that there's no bug here: the timers are working as expected. ivb: if you disagree, please explain what behavior you expected, versus what you see. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed

[issue25469] multiprocessing .Condition.notify(_all) function has O(N) time complexity where N is the number of wait() calls with a timeout since the last notify(_all) call

2015-11-05 Thread Davin Potts
Changes by Davin Potts : -- nosy: +davin versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue18010] pydoc search chokes on import errors

2015-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9098731de840 by Martin Panter in branch '3.4': Issue #18010: Fix pydoc web server search to handle package exceptions https://hg.python.org/cpython/rev/9098731de840 New changeset 8702efa1feb4 by Martin Panter in branch '3.5': Issue #18010: Merge

[issue18010] pydoc search chokes on import errors

2015-11-05 Thread Martin Panter
Martin Panter added the comment: In Python 2, it looks like instead of the web server search function there is a GUI search function. Here is a patch to fix the equivalent problem there. However I am not volunteering to make a test case; there does not seem to be any GUI tests to start with.

[issue21224] BaseHTTPRequestHandler, update the protocol version to http 1.1 by default?

2015-11-05 Thread Martin Panter
Martin Panter added the comment: What are the advantages of changing the default? Just that the user no longer has to set it manually? What do you think of the problem mentioned in the documentation? If an existing HTTP 1.0 server that works fine in Python 3.5 were to suddenly have

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- nosy: +terry.reedy ___ Python tracker ___ ___

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

2015-11-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I confirm the problem can be fixed by installing SP-1 (on Windows 7). Thanks eryksun. -- ___ Python tracker ___

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2015-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am puzzled at the following. Some reported today that IDLE crashed when pasting the Snake emoji U+1F40D . I copied from Thunderbird and pasted in IDLE on Win10, with same UnicodeDecodeError as before. I then ran this simple code from tkinter import *

[issue20607] multiprocessing cx_Freeze windows GUI bug (& easy fixes)

2015-11-05 Thread Davin Potts
Davin Potts added the comment: Mark: Patches to 3.3 are generally not being considered (due to its age) but patches to 3.5 (possibly 3.4) would be. You suggest the issue can't be reproduced in 3.4 but have to tried in the current 3.5 release? -- nosy: +davin type: -> behavior

[issue3559] Pasted \n not same as typed \n

2015-11-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #9618, it was pointed out that IDLE Shell inherits from code.InteractiveConsole, and that #7741 proposes to allow multiple statements there. In 3.5, this example from msg114561 now gives a SyntaxError, as it should. >>> x = 3 y = 7 Seven years

[issue25564] IDLE behaves differently that the standard interpreter when someone types `del __builtins__`

2015-11-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: __builtins__ is a private implementation detail in CPython. There is no guarantees made about whether it exists or not. E.g. it doesn't exist in Jython. steve@orac:~/python$ jython Jython 2.5.1+ (Release_2_5_1, Aug 4 2010, 07:18:19) [OpenJDK Server VM (Sun

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

2015-11-05 Thread Steven D'Aprano
Steven D'Aprano added the comment: > Has anyone confirmed that this bug actually exists? Confirmed. The initial report is not quite correct: you need three values to trigger the overflow, not two: py> x = 8.988465674311579e+307 py> statistics.mean([x]*2) == x True py> statistics.mean([x]*3)

[issue25563] Windows 10 IDLE / Tkinter startup problem

2015-11-05 Thread Lester Veenstra
Lester Veenstra added the comment: May well be a duplicate of issue 8820 but never the less it is still a real problem -- ___ Python tracker ___

[issue13153] IDLE crashes when pasting non-BMP unicode char on Py3

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is no the Snake emoji in my font, I use the Cat Face emoji U+1F431  (\xf0\x9f\x90\xb1 in UTF-8, \x3d\xd8\x31\xdc in UTF-16LE). Move cursor or press Backspace. I had needed to press Left 2 times to move cursor to the begin of the line, press Right 4

[issue25531] greenlet header file is missing inside virtualenv

2015-11-05 Thread Ned Deily
Ned Deily added the comment: I've looked at this some more using variations of Alexy's test case and I now think there are at least two problems here. And both issues have to do with confusion about exactly where a distribution's header files should be installed in venvs (created with the

[issue25531] greenlet header file is missing inside virtualenv

2015-11-05 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list

[issue18010] pydoc search chokes on import errors

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: gui-search.patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7f4fca8f13a2 by Serhiy Storchaka in branch '3.5': Issue #25554: Got rid of circular references in regular expression parsing. https://hg.python.org/cpython/rev/7f4fca8f13a2 New changeset 8621727dd9f7 by Serhiy Storchaka in branch 'default': Issue

[issue25554] memory leak (reference cycles) using re

2015-11-05 Thread Jeroen van der Heijden
Jeroen van der Heijden added the comment: Thanks Serhiy, I totally agree with your solution. Using a list with subpattern widths is definitely better compared to using weakref. -- ___ Python tracker

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In issue25557 I mentioned that there is the same error for globals which are dict. -- ___ Python tracker ___

[issue25556] Fixes for PyObject_GetItem()

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: > In issue25557 I mentioned that there is the same error for globals which are > dict. This issue fixed a bug for LOAD_GLOBAL bytecode bytecode when globals are not dict. (Sorry, I wrote LOAD_NAME bytecode in my first message, it was a mistake.) Please

[issue25557] Optimize LOAD_NAME bytecode

2015-11-05 Thread STINNER Victor
STINNER Victor added the comment: Rebased patch (ceval.c was modified by the changeset of c1414f80ebc9, issue #25556). -- Added file: http://bugs.python.org/file40954/pydict_loadname-2.patch ___ Python tracker