[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 pickling recursive collections.
https://hg.python.org/cpython/rev/2071d16ed5e6

New changeset f33ce913220b by Serhiy Storchaka in branch '3.5':
Issue #892902: Added new tests for pickling recursive collections.
https://hg.python.org/cpython/rev/f33ce913220b

New changeset 2c81a883d8ca by Serhiy Storchaka in branch 'default':
Issue #892902: Added new tests for pickling recursive collections.
https://hg.python.org/cpython/rev/2c81a883d8ca

--
nosy: +python-dev

___
Python tracker 

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



[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 

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



[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 handle the quotes yourself however you want.

--
nosy: +zach.ware
resolution:  -> not a bug
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



[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 

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



[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 __builtin_constant_p() on GCC?

Don't know if it will help.

--
stage: patch review -> resolved

___
Python tracker 

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



[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"'
>>> os.path.dirname(dir)
'"ciao/come/stai'

As you can see, dirname has removed the right quote, but not the left one.
The correct behaviour should be
'ciao/come/stai' (no quotes)
OR
'"ciao/come/stai"' (both quotes)
but never
'"ciao/come/stai' (only one quote)

This breaks other bash tools

--
components: Library (Lib)
messages: 254273
nosy: Raffaele Mancuso
priority: normal
severity: normal
status: open
title: os.path.dirname leave left quote and remove right one
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



[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)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_audioop.py",
 line 138, in test_add
datas[w])
AssertionError: b'\x00\x00\x00\x00\x80V4\x12\x80\x89gE\x80v\x98\xba\x00\x00[36 
chars]\xff' != b'\x00\x00\x00\x00xV4\x12\xab\x89gEUv\x98\xba\xff\xff\xff\x[30 
chars]\xff'

==
FAIL: test_tostereo (test.test_audioop.TestAudioop)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_audioop.py",
 line 438, in test_tostereo
self.assertEqual(audioop.tostereo(data1, w, 1, 0), data2)
AssertionError: b'\x00\x00\x00\x00\x00\x00\x00\x00\x80V4\x[165 chars]\x00' != 
bytearray(b'\x00\x00\x00\x00\x00\x00\x00\x[170 chars]x00')

--

audioop uses double for addition of 32-bit samples and converting to stereo. On 
this platforms it uses only highest 25 bits (including sign) and clears lowest 
7 bit.

Other tests also expose the lost of precision.

==
FAIL: test_from_hex (test.test_float.HexFloatTestCase)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_float.py",
 line 1228, in test_from_hex
self.identical(fromHex('0x0.d6p-1022'), MIN-3*TINY)
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_float.py",
 line 939, in identical
self.fail('%r not identical to %r' % (x, y))
AssertionError: 0.0 not identical to 2.2250738585072014e-308

--
==
ERROR: test_specific_values (test.test_cmath.CMathTests)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_cmath.py",
 line 355, in test_specific_values
actual = function(arg)
ValueError: math domain error

--
==
FAIL: fromhex (builtins.float)
Doctest: builtins.float.fromhex
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\doctest.py", line 
2189, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for builtins.float.fromhex
  File "builtins", line unknown line number, in fromhex

--
File "builtins", line ?, in builtins.float.fromhex
Failed example:
float.fromhex('-0x1p-1074')
Expected:
-5e-324
Got:
-0.0


--
==
FAIL: test_bigcomp (test.test_strtod.StrtodTests)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_strtod.py",
 line 213, in test_bigcomp
self.check_strtod(s)
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_strtod.py",
 line 104, in check_strtod
"expected {}, got {}".format(s, expected, got))
AssertionError: '0x0.00be3528cp-1022' != '0x0.0p+0'
- 0x0.00be3528cp-1022
+ 0x0.0p+0
 : Incorrectly rounded str->float conversion for 9854e-319: expected 
0x0.00be3528cp-1022, got 0x0.0p+0

==
FAIL: test_boundaries (test.test_strtod.StrtodTests)
--
Traceback (most recent call last):
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_strtod.py",
 line 190, in test_boundaries
self.check_strtod(s)
  File 
"C:\Users\buildbot\buildarea\3.x.intel-windows-icc\build\lib\test\test_strtod.py",
 line 104, in check_strtod
"expected {}, got {}".format(s, expected, got))
AssertionError: '0x0.ep-1022' != '0x0.0p+0'
- 0x0.ep-1022
+ 0x0.0p+0
 : Incorrectly rounded str->float conversion for 22250738585072001874e-327: 
expected 0x0.ep-1022, got 0x0.0p+0


[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, 5), 
line='async def foo(): pass'),
 TokenInfo(type=1 (NAME), string='def', start=(1, 6), end=(1, 9), line='async 
def foo(): pass'),
 TokenInfo(type=1 (NAME), string='foo', start=(1, 10), end=(1, 13), line='async 
def foo(): pass'),
 TokenInfo(type=53 (OP), string='(', start=(1, 13), end=(1, 14), line='async 
def foo(): pass'),
 TokenInfo(type=53 (OP), string=')', start=(1, 14), end=(1, 15), line='async 
def foo(): pass'),
 TokenInfo(type=53 (OP), string=':', start=(1, 15), end=(1, 16), line='async 
def foo(): pass'),
 TokenInfo(type=1 (NAME), string='pass', start=(1, 17), end=(1, 21), 
line='async def foo(): pass'),
 TokenInfo(type=0 (ENDMARKER), string='', start=(2, 0), end=(2, 0), line='')]
>>> 'def' in keyword.kwlist
True
>>> tokens = tokenize.generate_tokens(io.StringIO('def foo(): pass').readline)
>>> pprint.pprint(list(tokens))
[TokenInfo(type=1 (NAME), string='def', start=(1, 0), end=(1, 3), line='def 
foo(): pass'),
 TokenInfo(type=1 (NAME), string='foo', start=(1, 4), end=(1, 7), line='def 
foo(): pass'),
 TokenInfo(type=53 (OP), string='(', start=(1, 7), end=(1, 8), line='def foo(): 
pass'),
 TokenInfo(type=53 (OP), string=')', start=(1, 8), end=(1, 9), line='def foo(): 
pass'),
 TokenInfo(type=53 (OP), string=':', start=(1, 9), end=(1, 10), line='def 
foo(): pass'),
 TokenInfo(type=1 (NAME), string='pass', start=(1, 11), end=(1, 15), line='def 
foo(): pass'),
 TokenInfo(type=0 (ENDMARKER), string='', start=(2, 0), end=(2, 0), line='')]
>>>

Is it normal ?

--
messages: 254277
nosy: matrixise
priority: normal
severity: normal
status: open
title: def is not a keyword with tokenize.py

___
Python tracker 

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



[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 default, and the compiler flag "no-ftz" (no 
flush-to-zero) is needed to stop that; e.g., see

https://software.intel.com/sites/default/files/article/326703/fp-control-2012-08.pdf

--

___
Python tracker 

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



[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 

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



[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 

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



[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):
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1982 in __repr__
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__
[...]
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__
  File "/home/serhiy/py/cpython/Lib/_pyio.py", line 1992 in __repr__
  ...
Aborted (core dumped)

--

___
Python tracker 

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



[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 #22643: Skip test_case_operation_overflow on computers with low memory.
https://hg.python.org/cpython/rev/6b00bee218ff

New changeset b1c5949a3af4 by Serhiy Storchaka in branch 'default':
Issue #22643: Skip test_case_operation_overflow on computers with low memory.
https://hg.python.org/cpython/rev/b1c5949a3af4

--

___
Python tracker 

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



[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/
nK5Ti95LRmgPOzbIQHyNv2k2IOIbHL52y4AwWTa2G1EF3NvD9Tp6Zs85GFf7T5/N
WnlqHHPZhAHpgHL2xjBWnnhVojDm6fgxE6OI0aFarLlO0FBs3PLgIoxY4RRPVYaz
toP9G8ezbdGWGhaCqKO+ZjrCoQ2JNIdk4WsuGrZbCnGvGzFm+uhvs68IbJM4Mfm6
mAO85UfjdHsyacs5MYYsb7GyzrkGnLwWNcK5NdZiJwzwxBYpbchj5hYIsYjIVAL6
0BE4qG7wnJcHq1rvBeNgp7fP06kCAwEAAaMSMBAwDgYIKwYBBQUHAQEEAjAAMA0G
CSqGSIb3DQEBCwUAA4IBAQBS+2YG56erPLavJ3PvP+DekHOuIakT3l6GCiDGsufO
owdPxqsUZcCHlYjn6E50dLoKN0N6ECoKB0bIsA2EuwY08MSgtD4dA93jTXsdvWcX
2QMIM11LIGLyJIZRgUeMdHAbsb9qdpWFXX6smDGLBBKHCIFwu/4qSXU+Gf5d2DMl
edMDMkbgv3B8Q+7pCi7AgUOaZXPTbpHCdYnT2t+z3gNgyiXBH5wJNkrkK5tmawNb
88+Kxa00mbYoSEPaz7E/zBB/W1NpoZCOgEq4t9Uuk7hm10htbKoyM7FxVpBEJkPE
XpUdSNdClrHN36j1iB1NeFuOlxNVbD5FtMXx/wgX0B28
-END CERTIFICATE-


And run this script:

import _ssl

def main():
while True:
_ssl._test_decode_cert("/path/to/cert.pem")

main()


Patch is attached

--
files: aia.diff
keywords: needs review, patch
messages: 254275
nosy: alex, christian.heimes, dstufft, giampaolo.rodola, janssen, pitrou
priority: normal
severity: normal
status: open
title: Memory leak in SSLSocket.getpeercert() with 0-length AIA extension
versions: Python 2.7, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40973/aia.diff

___
Python tracker 

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



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

--

___
Python tracker 

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



[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 

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



[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, and mentions decoding with a 
default of UTF-8 (not Latin-1!), but does not mention any Content-Type 
parameters.

There seems to be confusion about what encoding it actually represents. 
According to , Mozilla 
briefly set this “charset” parameter a long time ago, but it would have 
corresponded to the urlencode(encoding=...) argument. The Python documentation 
currently suggests calling data.encode("utf-8"), which is misleading, because 
the urlencode() output is already guaranteed to be ASCII text. Any non-ASCII 
characters and bytes will already be character-encoded and percent-encoded by 
urlencode(). So I also propose to change the examples to data.encode("ascii").

--
assignee: docs@python
components: Documentation
files: urlencoded-charset.patch
keywords: patch
messages: 254263
nosy: docs@python, martin.panter, orsenthil
priority: normal
severity: normal
stage: patch review
status: open
title: Remove “Content-Type: application/x-www-form-urlencoded; charset” advice
versions: Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40970/urlencoded-charset.patch

___
Python tracker 

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



[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 pickling recursive sets itself.

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



[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: normal
stage: patch review
status: open
title: async and await missing from token list
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file40974/token.diff

___
Python tracker 

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



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

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



[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 

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



[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 where the problem is, though 
> it's not immediately obvious until it's bitten you a time or two. You are 
> running /Users/a5/Desktop/z.py which imports turtle, but you have a turtle.py 
> in /Users/a5/Desktop which is found before the standard library turtle. Your 
> command line test works because it is run from a different directory.  Just 
> remove or rename /Users/a5/Desktop/turtle.py and it will work.
> 
> There have been other reports about this lately, and there are on-going 
> discussions about what can be done to try to prevent this situation.
> 
> --
> nosy: +zach.ware
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
> 
> ___
> Python tracker 
> 
> ___

--

___
Python tracker 

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



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

--

___
Python tracker 

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



[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 

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



[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'.

--
nosy: +ppperry
title: IDLE does not handles pasted multiline statements -> IDLE: Pasted \n 
doesn't trigger execution when typed \n would

___
Python tracker 

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



[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 

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



[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 run tests repeatedly, the cache grows and can consume all memory even on the 
machine with enough memory.

Proposed patch fixes leaks.

--
components: Tests, ctypes
messages: 254295
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: Fixed memory leaks in test_ctypes
type: behavior
versions: Python 2.7, 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



[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 be useful in most cases, but I don't see why we should 
restrict the use of f-strings to non-docstrings (not counting users trying to 
do that and stumbling across this error).

--
nosy: +ebarry

___
Python tracker 

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



[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 this would be 
worthwhile. But maybe I'm not thinking hard enough.

--

___
Python tracker 

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



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

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



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

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



[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 

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



[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 

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



[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 for such a small case - if 
they can be used, then let them be used, and if they can't, then don't (unless 
the modification is straightforward, which it might not be).

--

___
Python tracker 

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



[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 

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



[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 

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



[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'),
 TokenInfo(type=1 (NAME), string='def', start=(1, 6), end=(1, 9), line='async 
def foo'),
 TokenInfo(type=1 (NAME), string='foo', start=(1, 10), end=(1, 13), line='async 
def foo'),
 TokenInfo(type=0 (ENDMARKER), string='', start=(2, 0), end=(2, 0), line='')]

--
nosy: +matrixise

___
Python tracker 

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



[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 

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



[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 but that is a significant amount of work with limited pay-off (and a 
risk of introducing subtle differences between the OS X port and other ports)

--
title: _ssl doesn't build on OS X 10.11 without third-party ssl headers -> _ssl 
doesn't build on OSX 10.11

___
Python tracker 

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



[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

___
Python tracker 

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



[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 

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



[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 

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



[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 
(32-bit)_20151107214149_000_core_JustForMe.log

___
Python tracker 

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



[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 remains. I assume you've 
installed Windows updates and rebooted during that time? That should have 
cleared up the state, but maybe you haven't been getting updates either?

--

___
Python tracker 

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



[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 a bug
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



[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 the output, def is a NAME 
and not DEF.

--

___
Python tracker 

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



[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 completely different and is not related to keywords 
as such. The link I provided lists all the tokens in the token module.

--

___
Python tracker 

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



[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 that).

The quotes are not necessary and neither is MSIINSTALLPERUSER. I generally use 
/quiet or /passive rather than /qb, so that may be part of the issue.

Also, your log output indicates that it was already installed when you ran that 
installation. Without the existing install it should be fine, but there's no 
way to change from a per-user install to a per-machine install with the 3.4 
installer. (The 3.5 installer, except for one bug that's probably not fixable 
before 3.5.2, should let a user install per-user and then per-machine if they 
want.)

--

___
Python tracker 

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



[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 

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



[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
import locale, codecs
  File "C:\Python27\lib\locale.py", line 182, in 
_percent_re = re.compile(r'%(?:\((?P.*?)\))?'
  File "C:\Python27\lib\re.py", line 194, in compile
return _compile(pattern, flags)
  File "C:\Python27\lib\re.py", line 249, in _compile
p = sre_compile.compile(pattern, flags)
  File "C:\Python27\lib\sre_compile.py", line 576, in compile
code = _code(p, flags)
  File "C:\Python27\lib\sre_compile.py", line 561, in _code
_compile(code, p.data, flags)
  File "C:\Python27\lib\sre_compile.py", line 151, in _compile
_compile(code, av[1], flags)
  File "C:\Python27\lib\sre_compile.py", line 132, in _compile
_compile(code, av[2], flags)
  File "C:\Python27\lib\sre_compile.py", line 107, in _compile
_compile_charset(av, flags, code, fixup, fixes)
  File "C:\Python27\lib\sre_compile.py", line 232, in _compile_charset
flags & SRE_FLAG_UNICODE):
  File "C:\Python27\lib\sre_compile.py", line 316, in _optimize_charset
p = charmap.find(b'\1', q)
TypeError: Type unicode doesn't support the buffer API

--
messages: 254293
nosy: ppperry
priority: normal
severity: normal
status: open
title: Python -U fails with traceback

___
Python tracker 

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



[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

___
Python tracker 

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



[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 utf-8?

Agreed about the encode call.

--
nosy: +r.david.murray

___
Python tracker 

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



[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 for a release build.

--
nosy: +r.david.murray

___
Python tracker 

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



[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 

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



[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 

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



[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).

--

___
Python tracker 

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



[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 

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



[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 Intel is nosy on this issue, assuming they have already 
registered?

Tim: any idea why would this only show up on Windows?  Also, if you want a copy 
of ICC to play with, we can arrange that.
 
I wonder if this issue has any effect on Intel's numpy support.

--

___
Python tracker 

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



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

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

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



[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 into unicode literals, which function was added as an 
experimental tool by Marc Andre in 2000.  I believe it was later superseded by 
'from __future__ import unicode_literals', but I didn't research that part.)

This works fine on linux, and the traceback looks like it involves some 
windows-specific code. 

I'm not sure if this is worth bothering to fix.

--
nosy: +r.david.murray

___
Python tracker 

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



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

--

___
Python tracker 

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



[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 (and pretty much everything else).  But the much 
more commonly used 10.6+ installer dynamically links with the latest (but 
deprecated) system OpenSSL libs shipped with OS X, libs that are old but usable 
and still receiving Apple security fixes on current systems.  The main reason 
for doing that is that this solution uses the Apple-provided system and user 
keychains for certificate management.  There are other drawbacks, though, and 
we have an open issue to deal with that.  (The python.org Pythons are not 
affected by the lack of headers since the libs are still shipped in OS X 
10.11.)  What I think this issue should address is making it easier to build 
Python on 10.11 (and earlier systems) with newer versions of OpenSSL.  It 
should be easier to use OpenSSL libs supplied by popular third-party distri
 butors like Homebrew and MacPorts.  Without having thought through all the 
details, I'm thinking it might be best to provide a configure-time check and 
option, possibly with standard options for the system,  Homebrew (default 
path), MacPorts (default path), and user-built SSL headers/libs.  It would also 
be good to provide something which will build the handful of important missing 
and/or newer third-party libs needed on OS X by the interpreter and standard 
library, like SSL libs, liblzma, and Tk.  But that's a separate issue.

--

___
Python tracker 

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



[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 

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



[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 smtplib tests.  Any other smtpd 
use should be converted to aiosmtpd instead.  Perhaps that library will 
eventually make its way into the stdlib and test_smtplib can use it as well.

So, I'm going to close this issue, but we may want to consider if and how auth 
fits into aiosmtpd (maybe as part of a 'testing server').

--
resolution:  -> out of date
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



[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 

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



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

--
nosy: +serhiy.storchaka

___
Python tracker 

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



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

--
resolution:  -> wont fix
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



[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 

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



[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 in smtplib's AUTH LOGIN support.
https://hg.python.org/cpython/rev/7368b86432c6

--
nosy: +python-dev

___
Python tracker 

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



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

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



[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 

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



[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 

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