[issue892902] problem with pickling newstyle class instances

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9ad1fd251ddf by Serhiy Storchaka in branch '2.7': Issue #892902: Fixed pickling recursive objects. https://hg.python.org/cpython/rev/9ad1fd251ddf New changeset 2071d16ed5e6 by Serhiy Storchaka in branch '3.4': Issue #892902: Added new tests for

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi alex, Thank you for your feeback, I will propose an other patch with your remarks. Stephane -- ___ Python tracker

[issue25577] os.path.dirname leave left quote and remove right one

2015-11-07 Thread Zachary Ware
Zachary Ware added the comment: As far as os.path.dirname is concerned, you have a file named 'ciao.pdf"' in a directory called '"ciao/come/stai', which is what you're seeing. Since those are legal names, there's no way for os.path.dirname to know what you actually want. The solution is to

[issue25558] Use static asserts in C code

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 45a404d33c2d by Serhiy Storchaka in branch 'default': Issue #25558: Use compile-time asserts. https://hg.python.org/cpython/rev/45a404d33c2d -- ___ Python tracker

[issue25558] Use static asserts in C code

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > By the way, I don't know what happens if you pass a variable to > Py_BUILD_ASSERT_EXPR() rather than a constant. If the compiler can't calculate it at compile time (e.g. int_var <= INT_MAX), your are out of luck. > Maybe we could use

[issue25577] os.path.dirname leave left quote and remove right one

2015-11-07 Thread Raffaele Mancuso
New submission from Raffaele Mancuso: Python 3.4.3 (default, Jun 29 2015, 12:16:01) [GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> dir = "\"ciao/come/stai/ciao.pdf\"" >>> dir '"ciao/come/stai/ciao.pdf"'

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It looks to me that all issues are related to floating points. == FAIL: test_add (test.test_audioop.TestAudioop) --

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Stéphane Wirtel
New submission from Stéphane Wirtel: For tokenize.py, 'def' is not a keyword but just a simple identifier. >>> tokens = tokenize.generate_tokens(io.StringIO('async def foo(): >>> pass').readline) >>> pprint.pprint(list(tokens)) [TokenInfo(type=55 (ASYNC), string='async', start=(1, 0), end=(1,

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-11-07 Thread Tim Peters
Tim Peters added the comment: If it were treating doubles as floats, you'd get a lot more failures than this. Many of these look like clear cases of treating _denormal_ doubles as 0.0, though. I have no experience with ICC, but a quick Google search suggests ICC flushes denormals to 0.0 by

[issue25455] Some repr implementations don't check for self-referential structures

2015-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file40972/etree_recursive_repr.patch ___ Python tracker ___

[issue25455] Some repr implementations don't check for self-referential structures

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are patches for io classes and for ElementTree. -- stage: needs patch -> patch review versions: +Python 2.7, Python 3.4 Added file: http://bugs.python.org/file40971/io_recursive_repr.patch ___ Python tracker

[issue25455] Some repr implementations don't check for self-referential structures

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There is also a crash with Python implementation of TextIOWrapper. >>> import _pyio as io >>> t = io.TextIOWrapper(io.BytesIO()) >>> t.mode = t >>> t Fatal Python error: Cannot recover from stack overflow. Current thread 0xb74a9700 (most recent call first):

[issue22643] Integer overflow in case_operation

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5fae49ef94fd by Serhiy Storchaka in branch '3.4': Issue #22643: Skip test_case_operation_overflow on computers with low memory. https://hg.python.org/cpython/rev/5fae49ef94fd New changeset 6b00bee218ff by Serhiy Storchaka in branch '3.5': Issue

[issue25578] Memory leak in SSLSocket.getpeercert() with 0-length AIA extension

2015-11-07 Thread Alex Gaynor
New submission from Alex Gaynor: Test. Put this certificate in a file: -BEGIN CERTIFICATE- MIICjTCCAXWgAwIBAgIBADANBgkqhkiG9w0BAQsFADAAMB4XDTE1MTEwNzE1MTAw NVoXDTE1MTEwNzE1MTAwNVowADCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC ggEBAKiZ3rzOM1m6toThRtkwgZzjuVVdapwU63yoXmp91f14pfO1z5XIkVAP1Sz/

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-07 Thread Christian Tanzer
Christian Tanzer added the comment: Terry J. Reedy wrote at Fri, 06 Nov 2015 22:49:57 +: > email parsing docs: clarify that only ASCII strings are supported If that is the decision, `message_from_string` should raise an exception if it gets a non-ASCII argument! --

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

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: One post-commit comment: I would use ValueError instead of Exceptions in tests for 3.5+. This will help to avoid regression and can catch incompatibilities in other implementations. -- ___ Python tracker

[issue25576] Remove “Content-Type: application/x-www-form-urlencoded; charset” advice

2015-11-07 Thread Martin Panter
New submission from Martin Panter: I understand using a “charset” parameter with “Content-Type: application/x-www-form-urlencoded” is not standardized. Since Issue 11082, the documentation advises to use it, but I propose to remove this advice. HTML 5 mentions setting a _charset_ parameter,

[issue892902] problem with pickling newstyle class instances

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Alexandre. In 3.x old tests test_recursive_set and test_recursive_frozenset now are implemented in test_recursive_set_and_inst and test_recursive_frozenset_and_inst. Instead new test_recursive_set now tests protocol 4 ability of

[issue25580] async and await missing from token list

2015-11-07 Thread SilentGhost
New submission from SilentGhost: With introduction of async and await tokens in 3.5 the token documentation needs updating. -- assignee: docs@python components: Documentation files: token.diff keywords: patch messages: 254281 nosy: SilentGhost, docs@python priority: normal severity:

[issue24805] Python installer having problem in installing Python for all users in Windows

2015-11-07 Thread Steve Dower
Steve Dower added the comment: Also, this is not a bug (and even if it was, wouldn't be fixed for 3.4), but feel free to keep discussing how to do these installs. -- resolution: -> not a bug stage: test needed -> status: open -> closed ___ Python

[issue25581] Python -U raises error during site import

2015-11-07 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows -Interpreter Core, Regular Expressions nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker

[issue25575] idle not working

2015-11-07 Thread G
G added the comment: Hi, Thanks for getting back to me,. I will try this first thing Monday when I'm back at work. George > On Nov 6, 2015, at 8:29 PM, Zachary Ware wrote: > > > Zachary Ware added the comment: > > Check the traceback carefully, it shows exactly

[issue25179] PEP 498 f-strings need to be documented

2015-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: It does not currently work, because the docstring logic looks for a string, not an expression. And an f-string is an expression. It would require changing the compiler to evaluate the f-string expression. -- ___

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Emanuel Barry
Emanuel Barry added the comment: He probably mistook this for #25179 -- nosy: +ebarry ___ Python tracker ___

[issue3559] IDLE: Pasted \n doesn't trigger execution when typed \n would

2015-11-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: ppperry, your title revision was wrong. Multiple line statements are pasted just fine, like single line statements. My original title was correct and the new one better exposes the essential point of this issue by elaborating 'not same as'. --

[issue25462] Avoid repeated hash calculation in C implementation of OrderedDict

2015-11-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: The patch looks correct, and it improves the integrity of the C implementation. -- ___ Python tracker ___

[issue25582] Fixed memory leaks in test_ctypes

2015-11-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: POINTER() saves its result in internal cache. test_pointer_type_name and test_pointer_type_str_name use large names and resulting types consume much memory. This can be one of the causes of tests failure on the AIX buildbot with very limited memory. If

[issue25179] PEP 498 f-strings need to be documented

2015-11-07 Thread Emanuel Barry
Emanuel Barry added the comment: I think f-strings should be valid as docstrings. I don't know the exact details, but I think it would be harder to prevent rather than allow them. It would be exactly the same as doing func.__doc__ = func.__doc__.format(foo=foo, bar=bar) It probably wouldn't

[issue25179] PEP 498 f-strings need to be documented

2015-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Since f-strings are not constant strings, they cannot be used as docstrings without some modifications to the compiler. I'm not sure it's worth evaluating a docstring f-string at compile time to make them become docstrings: I can't think of a use case where

[issue25569] Memory leak in SSLSocket.getpeercert()

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sorry for the delay. here is a new version of my patch, if I can have feedback about this patch, I will really appreciate. thank you -- Added file: http://bugs.python.org/file40976/issue25569-2.patch ___ Python

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ?? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: Oops, wrong issue. Ignore my last comment. I shouldn't do two things at once. -- ___ Python tracker ___

[issue25582] Fixed memory leaks in test_ctypes

2015-11-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +amaury.forgeotdarc, belopolsky, meador.inge ___ Python tracker ___

[issue3559] IDLE does not handles pasted multiline statements

2015-11-07 Thread ppperry
Changes by ppperry : -- title: Pasted \n not same as typed \n -> IDLE does not handles pasted multiline statements ___ Python tracker

[issue25179] PEP 498 f-strings need to be documented

2015-11-07 Thread Emanuel Barry
Emanuel Barry added the comment: I was under the impression that they would work without any additional work (as they'd have access to the outer scope). Of course, trying to access a local variable would be an error as it's not yet defined. My point is more that we shouldn't have to account

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Eric V. Smith
Eric V. Smith added the comment: I think the error here is that tokenize returns type=ASYNC for 'async', instead of type=NAME. -- nosy: +eric.smith ___ Python tracker

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: how to know if it's an issue or not? we can ask to Yury -- nosy: +yselivanov ___ Python tracker ___

[issue25580] async and await missing from token list

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: With python 3.5, async is a token with the ASYNC type. >>> tokens = tokenize.generate_tokens(io.StringIO('async def foo').readline) >>> pprint.pprint(list(tokens)) [TokenInfo(type=55 (ASYNC), string='async', start=(1, 0), end=(1, 5), line='async def foo'),

[issue25263] test_tkinter fails randomly on the buildbots "AMD64 Windows10" (3.4, 3.5, 3.x)

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d70026504feb by Serhiy Storchaka in branch 'default': Issue #25263: Trying to fix test_use on Windows. https://hg.python.org/cpython/rev/d70026504feb -- nosy: +python-dev ___ Python tracker

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-07 Thread Ronald Oussoren
Ronald Oussoren added the comment: If I read the issue correctly the OSX 10.11 SDK doesn't include OpenSSL headers. There's not a lot we can do about that beyond documenting this in the build instructions. It might be interesting to look into using Apple's crypto APIs instead of OpenSSL

[issue24306] Backport py.exe to 3.4

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6181476b5534 by Steve Dower in branch '3.4': Issue #24306: Sets component ID for launcher to match 3.5 and later to avoid downgrading. https://hg.python.org/cpython/rev/6181476b5534 -- nosy: +python-dev

[issue24306] Backport py.exe to 3.4

2015-11-07 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: test_audioop fails because (int)((double)0x12345678+0.0) is truncated to 0x12345680 and (int)((double)-0x456789ab+0.0) to -0x45678980. -- ___ Python tracker

[issue25345] Unable to install Python 3.5 on Windows 10

2015-11-07 Thread Gowtham N.M
Gowtham N.M added the comment: Hi Eryksun, I have attached the appropriate log as requested by you. I still get the same installation error even after following the workaround suggested by you. -- nosy: +Gowtham N.M Added file: http://bugs.python.org/file40975/Python 3.5.0

[issue25345] Unable to install Python 3.5 on Windows 10

2015-11-07 Thread Steve Dower
Steve Dower added the comment: It sounds like something went wrong during a previous installation (probably not Python 3.5) and your system is stuck in an "installing" state (hence system restore being disabled and the install mutex being held). Those two logs are a month apart but the error

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread SilentGhost
SilentGhost added the comment: >>> keyword.iskeyword('pass') True There doesn't seem anything particular about def, none of the keywords have "keyword" type, because there doesn't seem to be one: https://docs.python.org/3.6/library/token.html -- nosy: +SilentGhost resolution: -> not

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: why do you close it ? def is not a keyword and it's a problem, how do you define a function is def is not a keyword. async is not a keyword but if you used it before 'def', async will become a keyword. have you checked the output from the tokenizer ? in

[issue25579] def is not a keyword with tokenize.py

2015-11-07 Thread SilentGhost
SilentGhost added the comment: Perhaps, my example wasn't as self-explanatory as I hoped. def is not DEF in the token list, because there isn't such a token DEF, as there isn't a token PASS or a token for any other keyword. The fact that there is an ASYNC and AWAIT tokens is something

[issue24805] Python installer having problem in installing Python for all users in Windows

2015-11-07 Thread Steve Dower
Steve Dower added the comment: I use /i, ADDLOCAL=ALL and ALLUSERS=1 with success all the time (/a does not do a real install - avoid it unless you know you'll be deploying the reduced size MSI to the rest of your network, and *especially* avoid it if you don't know why you'd want to do

[issue892902] problem with pickling newstyle class instances

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 77184a429dae by Serhiy Storchaka in branch '2.7': Issue #892902: Disable newly added tests in test_xpickle. https://hg.python.org/cpython/rev/77184a429dae -- ___ Python tracker

[issue25581] Python -U fails with traceback

2015-11-07 Thread ppperry
New submission from ppperry: C:\Documents and Settings\Perry>python -U Traceback (most recent call last): File "C:\Python27\lib\site.py", line 548, in main() File "C:\Python27\lib\site.py", line 537, in main aliasmbcs() File "C:\Python27\lib\site.py", line 465, in aliasmbcs

[issue25581] Python -U raises error during site import

2015-11-07 Thread ppperry
Changes by ppperry : -- components: +Interpreter Core, Library (Lib), Regular Expressions nosy: +ezio.melotti, mrabarnett title: Python -U fails with traceback -> Python -U raises error during site import type: -> behavior versions: +Python 2.7

[issue25576] Remove “Content-Type: application/x-www-form-urlencoded; charset” advice

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Although I didn't read through the whole thing, the mozilla bug discussion indicates this is the correct way to specify the charset, it's just that there was lots of buggy software that didn't handle setting it to latin-1. Is the same true for setting it to

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-07 Thread R. David Murray
R. David Murray added the comment: My understanding is that when we build an osx release, we bundle openssl. So I think the appropriate solution here from our point of view is to include a pointer in the devguide about downloading and installing openssl-with-headers however it is we do that

[issue3559] IDLE: Pasted newline doesn't trigger execution when typed newline would

2015-11-07 Thread ppperry
Changes by ppperry : -- title: IDLE: Pasted \n doesn't trigger execution when typed \n would -> IDLE: Pasted newline doesn't trigger execution when typed newline would ___ Python tracker

[issue25017] htmllib deprecated: Which library to use? Missing sane default in docs

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Yes, though I hadn't looked at it before this :) -- ___ Python tracker ___

[issue19065] sqlite3 timestamp adapter chokes on timezones

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Just open an issue to propose the deprecation, if they aren't part of the DBAPI. We wouldn't actually remove them, though, until after 2.7 goes out of maintenance (if then...we still haven't quite decided what we're going to do about removals post 2.7).

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Except that that might break code that is currently working, so I can't do that, even though I'd like to. -- ___ Python tracker

[issue24999] Segfault in test_re.test_sre_character_class_literals() when Python is compiled by ICC

2015-11-07 Thread R. David Murray
R. David Murray added the comment: FYI Intel provided us with a workaround that disables a compiler optimization for re and allows the test to not crash. Zach, can you test no-ftz? Maybe we need to apply that to the entire python compile. Also, can you make sure the appropriate person from

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

2015-11-07 Thread Bar Harel
Bar Harel added the comment: Anyway, yes, it should be quite the same. I can provide some benchmarks tomorrow if you wish. -- ___ Python tracker ___

[issue25581] Python -U raises error during site import

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Interesting, I didn't even know (remember?) about the -U flag, and it isn't documented. I guess we don't test it, and I suppose that it is effectively deprecated. (So others who don't remember don't need to repeat my research: it turns all string literals

[issue25581] Python -U raises error during site import

2015-11-07 Thread Matthew Barnett
Matthew Barnett added the comment: So, you write a string literal without a 'u' (or 'b') prefix, and there's no 'from __future__ import unicode_literals' in the module, so you expect it to be a bytestring, but it's not, it's a Unicode string. I'm not surprised that something breaks!

[issue25572] _ssl doesn't build on OSX 10.11

2015-11-07 Thread Ned Deily
Ned Deily added the comment: "My understanding is that when we build an osx release, we bundle openssl." Well, no, we don't exactly do that today. We have recently been doing that for the 10.5 installer because the 10.5 system version of OpenSSL is so old as to be unusable for PyPI downloads

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Issuing a warning is an interesting idea. Basically, deprecate using a non-ASCII string with message_from_string etc formally by issuing a deprecation warning as well as the doc note. -- ___ Python tracker

[issue21935] Implement AUTH command in smtpd.

2015-11-07 Thread R. David Murray
R. David Murray added the comment: I used some of this code in writing tests for the auth_login failure in issue 25446 (thanks, Milan, you saved me a bunch of work :) Now that we have asyncio and asynchat is deprecated, we've decided that the only real purpose of smtpd going forward is the

[issue25545] email parsing docs: clarify that only ASCII strings are supported

2015-11-07 Thread John Mark Vandenberg
John Mark Vandenberg added the comment: Could it issue a UnicodeWarning? -- nosy: +John.Mark.Vandenberg ___ Python tracker ___

[issue25581] Python -U raises error during site import

2015-11-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is worse, you write a string literal with a 'b' prefix, and you get a Unicode string. >>> b'' u'' I tried to use Python with -U (it could be good way to test compatibility with Python 3), but it is totally broken, and there is no hope to fix it.

[issue25581] Python -U raises error during site import

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Well, in this case *he* didn't write the string, it is embedded somewhere in the stdlib. 'python -U' gets you to the python prompt on unix, but apparently not on windows. But this isn't a feature we support any more, so I'm closing this as won't fix.

[issue21935] Implement AUTH command in smtpd.

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d13263ecf0c6 by R David Murray in branch '3.5': #25446: Fix regression in smtplib's AUTH LOGIN support. https://hg.python.org/cpython/rev/d13263ecf0c6 -- nosy: +python-dev ___ Python tracker

[issue25446] smtplib.py AUTH LOGIN code messed up sending login and password data since 3.5

2015-11-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d13263ecf0c6 by R David Murray in branch '3.5': #25446: Fix regression in smtplib's AUTH LOGIN support. https://hg.python.org/cpython/rev/d13263ecf0c6 New changeset 7368b86432c6 by R David Murray in branch 'default': Merge: #25446: Fix regression

[issue25446] smtplib.py AUTH LOGIN code messed up sending login and password data since 3.5

2015-11-07 Thread R. David Murray
R. David Murray added the comment: Fixed. I figured it was better not to wait for a review in this case...the fix is straightforward, but writing the test took quite a bit of work. The auth tests in smtplib are now much more robust, thanks in large part to Milan's code in issue 21935.

[issue1650090] doctest doesn't find nested functions

2015-11-07 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : -- versions: +Python 3.4, Python 3.5, Python 3.6 -Python 3.1, Python 3.2 Added file: http://bugs.python.org/file40977/doctest_nested_functions-py3.6.diff ___ Python tracker

[issue1650090] doctest doesn't find nested functions

2015-11-07 Thread John Mark Vandenberg
Changes by John Mark Vandenberg : Added file: http://bugs.python.org/file40978/doctest_nested_functions-py3.6.diff ___ Python tracker ___