[issue17506] Improve IDLE news handling

2014-07-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset aa059a8fb55a by Terry Jan Reedy in branch '2.7':
Issue #17506: Synchronize Misc/NEWS and idlelib/NEWS.txt for 2.7.
http://hg.python.org/cpython/rev/aa059a8fb55a

--
nosy: +python-dev

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



[issue17506] Improve IDLE news handling

2014-07-14 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The items in Misc/NEWS and idlelib/NEWS.text were mostly disjoint.

--

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



[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread William Orr

New submission from William Orr:

Currently, test_ssl.py requires the version information to match the OpenSSL 
format exactly, and to be less than 2.0. LibreSSL, a drop-in replacement for 
OpenSSL, has started its version numbers at 2.0.0, and reports it slightly 
differently. This patch addresses that.

Tested on Exherbo Linux amd64 with LibreSSL portable 2.0.1.

--
components: Tests
files: libressl-tests.diff
keywords: patch
messages: 222996
nosy: worr
priority: normal
severity: normal
status: open
title: Fix test_ssl.py to handle LibreSSL versioning appropriately
type: behavior
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35949/libressl-tests.diff

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



[issue16786] argparse doesn't offer localization interface for version action

2014-07-14 Thread paul j3

paul j3 added the comment:

In this patch I added the '_()' localization to the '_VersionAction' default 
'help'.

While this is a straight forward change, I haven't tested it.  It does run 
test_argparse.py, but that doesn't have any tests for localization.

According to the discussion here:
https://mail.python.org/pipermail/python-dev/2010-May/100215.html
this default help was originally None, and adding this string was seen
as a worthwhile convenience.  Localization was not considered.

Does this use of _() really save the user effort?  May be it would if they are 
already using the depricated version.  Otherwise they could just give the 
version argument their own non default help line.  I haven't used localization 
enough to know.

--
keywords: +patch
Added file: http://bugs.python.org/file35950/patch_1.diff

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



[issue20010] time.strftime('%z') didn't make +HHMM return in windows xp

2014-07-14 Thread Alexandr Nevskiy

Alexandr Nevskiy added the comment:

The same odd behavior for Windows 7

C:\Python34\python.exe
Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit 
(Intel)] on win32
Type help, copyright, credits or license for more information.
 import time
 time.strftime('%z', time.localtime(time.time()))
'Russian Standard Time'
 time.strftime('%Z', time.localtime(time.time()))
'Russian Standard Time'

--
nosy: +kepkin
versions: +Python 3.4

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



[issue21922] PyLong: use GMP

2014-07-14 Thread Case Van Horsen

Case Van Horsen added the comment:

I've successfully tested the patch. The patch works fine but there are a couple 
of issues:

1) The patch relies on several new low-level functions that were introduced in 
the latest release of GMP 6.0.0. Most Linux distributions are still providing 
older versions.

2) The new functions are not available in any version of MPIR so I can't try a 
Windows build.

I've done some basic tests but I'll wait until Hristo updates the patch with 
his improvements before I run detailed tests.

--

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread py.user

New submission from py.user:

https://docs.python.org/3/library/re.html#writing-a-tokenizer

There are redundant escapes in the regex:

('OP',  r'[+*\/\-]'),# Arithmetic operators

Sequence -+*/ is sufficient.

It makes the loop to do all steps on every 4 spaces:

('SKIP',r'[ \t]'),   # Skip over spaces and tabs

Sequence [ \t]+ is faster.


Applied patch.

--
assignee: docs@python
components: Documentation, Regular Expressions
files: re_ex_tok.diff
keywords: patch
messages: 223000
nosy: docs@python, ezio.melotti, mrabarnett, py.user
priority: normal
severity: normal
status: open
title: In the re's token example OP and SKIP regexes can be improved
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35951/re_ex_tok.diff

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa

Claudiu Popa added the comment:

Hi, thanks for the report. Here's a patch which implements __setstate__ and 
__getstate__ for Row objects.

--
keywords: +patch
nosy: +Claudiu.Popa, ghaering
stage:  - patch review
versions: +Python 3.5 -Python 3.3
Added file: http://bugs.python.org/file35952/issue21975.patch

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: docs@python - rhettinger
nosy: +rhettinger

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



[issue21901] test_selectors.PollSelectorTestCase.test_above_fd_setsize reported killed by shell

2014-07-14 Thread STINNER Victor

STINNER Victor added the comment:

 Killed process python(28623:#112) vsz:340800kB, anon-rss:330764kB, 
 file-rss:3864kB

340 MB to run test_selectors sounds high.

What is the value of NUM_FDS? And what is the result of this command in your 
vserver?

$ python -c 'import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))'
(1024, 4096)

--

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I will keep the \- because the - at the front of the character range is a 
non-obvious special case.  The other changes look reasonable.

--
priority: normal - low
stage:  - commit review
type: enhancement - performance
versions: +Python 2.7, Python 3.4

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bb28542af060 by Raymond Hettinger in branch '3.4':
Issue 21977:  Minor improvements to the regexes in the tokenizer example.
http://hg.python.org/cpython/rev/bb28542af060

--
nosy: +python-dev

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
resolution:  - fixed
status: open - closed
versions:  -Python 2.7

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
assignee: docs@python - bob.ippolito
nosy: +bob.ippolito

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



[issue16620] Avoid using private function glob.glob1() in msi module and tools

2014-07-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Martin, this patch touches some of your code.  Do you care to take a look at it?

--
assignee:  - loewis
nosy: +loewis, rhettinger

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



[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2014-07-14 Thread Ram Rachum

New submission from Ram Rachum:

Implement `__getitem__` on `OrdredDict.keys`, `OrdredDict.values` and 
`OrdredDict.items`, so the following code snippet wouldn't error:

 from collections import OrderedDict
 o = OrderedDict(((1, 2), (3, 4), (5, 6)))
 o
OrderedDict([(1, 2), (3, 4), (5, 6)])
 o.keys()
KeysView(OrderedDict([(1, 2), (3, 4), (5, 6)]))
 o.keys()[0]
Traceback (most recent call last):
  File string, line 1, in fragment
builtins.TypeError: 'KeysView' object does not support indexing
 o.values()[0]
Traceback (most recent call last):
  File string, line 1, in fragment
builtins.TypeError: 'ValuesView' object does not support indexing
 o.items()[0]
Traceback (most recent call last):
  File string, line 1, in fragment
builtins.TypeError: 'ItemsView' object does not support indexing

--
components: Library (Lib)
messages: 223006
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Support index access on OrderedDict views (e.g. o.keys()[7])
versions: Python 3.5

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



[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-14 Thread wjssz

wjssz added the comment:

I suggest don't change the content of file, just give a message such as:

IDLE can't display non-BMP character (codepoint above 0x).
A non-BMP character found in Line 23, position 8 of .py, please open this 
file with other editor.

--

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



[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2014-07-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'm not sure this would make sense given that the ordered dict itself isn't 
indexable, given that keys/values/items on regular dicts aren't indexable, and 
given that keys/items views are set-like rather than sequence-like.

The one obvious way to get sequence behavior is to build a list:

   s = list(od)
   s = list(od.values())
   s = list(od.items())

--
assignee:  - rhettinger
nosy: +rhettinger
priority: normal - low
type:  - enhancement

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



[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2014-07-14 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
priority: normal - high

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Mika Eloranta

New submission from Mika Eloranta:

The following are expected to raise SyntaxError, but they don't:

 0xfor python is weird in ways
15
 [0xaor 1, 0xbor 1, 0xcor 1, 0xdor 1, 0xeor 1, 0xfor 1]
[10, 11, 12, 13, 14, 15]

Verified on v2.7.1 and v3.3.2. Probably affects all versions.

--
components: Interpreter Core
messages: 223009
nosy: mel
priority: normal
severity: normal
status: open
title: SyntaxError not raised on 0xaor 1
type: behavior
versions: Python 2.7, Python 3.3

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Mark Dickinson

Mark Dickinson added the comment:

Surprisingly, this is valid syntax.  Your first line is parsed as:

0xf or (python is weird in ways)

Because `or` is short-circuiting, its right-hand operand (which is also valid 
syntactically, being a chained comparison) is never evaluated, so we don't see 
the `NameErrors` that you might expect.

 python is weird in ways
Traceback (most recent call last):
  File stdin, line 1, in module
NameError: name 'python' is not defined

Your second example is similar.  Closing as 'not a bug'.

--
nosy: +mark.dickinson
resolution:  - not a bug
status: open - closed

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Mika Eloranta

Mika Eloranta added the comment:

Mark, can you explain why the first example is valid syntax, but the second one 
is not:

 0xaor 1
10

 0xaand 1
  File stdin, line 1
0xaand 1
 ^
SyntaxError: invalid syntax


I do understand how 0xaor 1 is currently parsed, but I'm not still convinced 
it should be valid syntax (0xa or 1 or (0xa)or 1 would be ok).

--

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Eric V. Smith

Eric V. Smith added the comment:

0xaand 1
is parsed as
0xaa nd 1

which is not valid syntax.

--
nosy: +eric.smith

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Eric V. Smith

Changes by Eric V. Smith e...@trueblade.com:


--
stage:  - resolved

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Mika Eloranta

Mika Eloranta added the comment:

OK, I see... 0xfand 1 is ambiguous (0xfa)nd 1 vs. (0xf)and 1.

So, while a bit weird, the behavior is consistent:

 123not in [], 0xfnot in [], 0xfor 1, 0xafor 1, 0xfin []
(True, True, 15, 175, False)

--

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Eric V. Smith

Eric V. Smith added the comment:

To be more clear: the parser takes the longest token that could be valid. Since 
n can't be part of a hex number, parsing stops there, returning 0xaa as the 
first token.

So:

 0xaaif 1 else 0
170
 hex(0xaaif 1 else 0)
'0xaa'


--

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

The issue is not in pickling/unpickling, but in sqlite3.Row.__new__ which 
creates object in invalid state. Simple example:

 import sqlite3
 r = sqlite3.Row.__new__(sqlite3.Row)
 len(r)
Segmentation fault (core dumped)

--
assignee:  - serhiy.storchaka
nosy: +serhiy.storchaka
stage: patch review - 
versions: +Python 2.7

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



[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Ram Rachum

Changes by Ram Rachum r...@rachum.com:


--
components: Library (Lib)
nosy: cool-RR
priority: normal
severity: normal
status: open
title: Implement `logging.LogRecord.__repr__`
type: enhancement
versions: Python 3.5

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



[issue21981] Idle problem

2014-07-14 Thread Thomas Kember

New submission from Thomas Kember:

Hello Terry,

Thank you for your explanation of the bug in Idle. I know Idle has limitations, 
but it is quite adequate for the programming I want to do. I agree that when 
this error occurs there should only be a warning, so the user can decide what 
he wants to do about it. There is however one fault in Idle that would be good 
if it were fixed. That is, it does not show line numbers. Since errors all 
indicate the line number the error occured, having the line numbers on the 
listing would be very useful.

One other thing. Now the problem is solved but it is still showing status 
'open' on the problem site, how do I change the status?

Regards,

Thomas

--
messages: 223016
nosy: Tomk
priority: normal
severity: normal
status: open
title: Idle problem

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



[issue21979] SyntaxError not raised on 0xaor 1

2014-07-14 Thread Mark Dickinson

Mark Dickinson added the comment:

 Mark, can you explain why the first example is valid syntax, but the second 
 one is not:

Looks like Eric beat me to it!  As he explained, it's the maximal munch rule 
at work: the tokenizer matches as much as it can for each token.

You see similar effects with integer or float literals followed by a keyword 
starting with 'e' (or 'j', but I don't think we have any of those).

 3if 1else 2
  File stdin, line 1
3if 1else 2
 ^
SyntaxError: invalid token
 3if 1 else 2
3

--

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



[issue21981] Idle problem

2014-07-14 Thread SilentGhost

Changes by SilentGhost ghost@gmail.com:


--
nosy: +terry.reedy

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



[issue21981] Idle problem

2014-07-14 Thread Eric V. Smith

Eric V. Smith added the comment:

Please respond to the other bug. No need to open a new bug when responding to 
an existing issue. Thanks.

--
nosy: +eric.smith
resolution:  - not a bug
stage:  - resolved
status: open - closed

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa

Claudiu Popa added the comment:

Using your example, I can't make it to crash using the tip, nor with Python 3.4.

--

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa

Claudiu Popa added the comment:

Nevermind, I didn't see the len call.

--

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch which fixes crash.

--
stage:  - patch review
Added file: http://bugs.python.org/file35953/sqlite3_row_new.patch

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa

Claudiu Popa added the comment:

It doesn't crash anymore with your patch, but the pickle.load fails:

Traceback (most recent call last):
  File a.py, line 19, in module
load = pickle.loads(dump)
TypeError: function takes exactly 2 arguments (0 given)

--
stage: patch review - 

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



[issue19806] smtpd crashes when a multi-byte UTF-8 sequence is split between consecutive data packets

2014-07-14 Thread R. David Murray

R. David Murray added the comment:

As Milan said, the problem doesn't arise in 3.5 with decode_data=False, since 
there's no decoding.  His patch doesn't actually fix the bug for the 
decode_data=True case, though, since the bug is a *valid* utf-8 sequence 
getting split across tcp buffers.

To fix it, we would need to change the implementation of decode_data.  Instead 
of conditionally decoding in collect_data, we'd need to postpone decoding to 
found_terminator.  This would have the undesirable affect of changing what is 
in the received_lines attribute, which is why we didn't do it in the 
decode_data patch.  Using an incremental decoder won't solve that problem, 
since it too would change what gets stored in received_lines.

Since decode_data=True is really not a legitimate mode for smtpd (it is an 
historical accident/bug) and we are planning on removing it eventually, I think 
we should go ahead and apply Milan's patch as is, since it does improve the 
error reporting.  The message would need to be adjusted though, since it can 
trigger on valid utf-8 data.  It should say that smtpd should be run with 
decode_data=False in order to fix the decode problem.

That would leave the bug as-is in 3.4, but a similar patch with an error 
message suggesting an upgrade to 3.5/decode_data=True could be applied.  That 
feels a little weird, though :).

--

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

For pickling open other issue.

--

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



[issue8849] python.exe problem with cvxopt

2014-07-14 Thread R. David Murray

R. David Murray added the comment:

True.  Since there was no response from the OP to my question, let's close 
this.  It can be reopened if he's still having a problem, which seems unlikely.

--
resolution:  - third party
stage:  - resolved
status: open - closed
type:  - behavior

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



[issue21964] inconsistency in list-generator comprehension with yield(-from)

2014-07-14 Thread hakril

hakril added the comment:

I found something else, I think it worth mentioning it.

This side-effect allows to create generators that return other values that 
None. And the CPython's behavior is not the same for all versions:

 {(yield i) : i for i in range(2)}
generator object dictcomp at 0x7f0b98f41410
 list(_)
# python3.(3,4,5)
[0, 1]
# python3.2
[0, 1, {None: 1}] #  python3.2 appends the generator's return value.

--
versions: +Python 3.2, Python 3.3

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



[issue21981] Idle problem

2014-07-14 Thread Thomas Kember

Thomas Kember added the comment:

Hello Eric V. Smith,

I reported only one bug and it has been fixed. I can't find out how I am to 
reset the status of it to closed.

Thomas Kember


 From: Eric V. Smith rep...@bugs.python.org
To: t.kemb...@btinternet.com 
Sent: Monday, 14 July 2014, 13:31
Subject: [issue21981] Idle problem

Eric V. Smith added the comment:

Please respond to the other bug. No need to open a new bug when responding to 
an existing issue. Thanks.

--
nosy: +eric.smith
resolution:  - not a bug
stage:  - resolved
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21981
___

--

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



[issue21975] Using pickled/unpickled sqlite3.Row results in segfault rather than exception

2014-07-14 Thread Claudiu Popa

Claudiu Popa added the comment:

Ups, I accidentally removed the patch review stage, sorry for that.

--
stage:  - patch review

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



[issue21947] `Dis` module doesn't know how to disassemble generators

2014-07-14 Thread Clement Rouault

Clement Rouault added the comment:

Updated some docstrings in the new patch after the review comments.
Thanks kushou for the code review.

--
Added file: http://bugs.python.org/file35954/dis_generator3.patch

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



[issue21982] Idle: Regression introduced in configDialog by rev 91509

2014-07-14 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

The concerned part : http://hg.python.org/cpython/rev/b836a0cd68f7#l4.15

NameError: name 'keySet' is not defined.

--
messages: 223031
nosy: sahutd, terry.reedy
priority: normal
severity: normal
status: open
title: Idle: Regression introduced in configDialog by rev 91509
versions: Python 3.4

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



[issue21982] Idle: Regression introduced in configDialog by rev 91509

2014-07-14 Thread Saimadhav Heblikar

Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com:


--
type:  - crash

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



[issue16561] bdist_wininst installers don't use UAC, then crash

2014-07-14 Thread Martin v . Löwis

Martin v. Löwis added the comment:

I just noticed that I misread the original issue: it's not about the Python 
Windows installer, but about bdist_wininst packages.

--
title: Windows installer doesn't use UAC, then crashes - bdist_wininst 
installers don't use UAC, then crash

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



[issue16561] bdist_wininst installers don't use UAC, then crash

2014-07-14 Thread Steve Dower

Changes by Steve Dower steve.do...@microsoft.com:


--
nosy: +steve.dower

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



[issue21977] In the re's token example OP and SKIP regexes can be improved

2014-07-14 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
stage: commit review - resolved

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



[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +vinay.sajip

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



[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Berker Peksag

Changes by Berker Peksag berker.pek...@gmail.com:


--
nosy: +christian.heimes, dstufft, giampaolo.rodola, pitrou
versions:  -Python 3.1, Python 3.2, Python 3.3

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



[issue17480] pyvenv should be installed someplace more obvious on Windows

2014-07-14 Thread Steve Dower

Steve Dower added the comment:

Automatically quoting arguments is more complicated than simply concatenating 
quotes, unfortunately, and people are guaranteed to have come up with ways to 
make it work already.

My vote is for leaving this alone and letting the higher level functions be 
more clever. Changing this function is certain to break existing code in 
unpredictable ways.

--

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



[issue17480] pyvenv should be installed someplace more obvious on Windows

2014-07-14 Thread Steve Dower

Steve Dower added the comment:

That last message should have been on #20451 :)

My thoughts on pyvenv are that it should be in Scripts\ if anywhere, but I'm 
not desperate to have it on PATH. I would rather not start putting more files 
alongside python.exe.

--

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



[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)

2014-07-14 Thread Steve Dower

Steve Dower added the comment:

Automatically quoting arguments is more complicated than simply concatenating 
quotes, unfortunately, and people are guaranteed to have come up with ways to 
make it work already.

My vote is for leaving this alone and letting the higher level functions be 
more clever. Changing this function is certain to break existing code in 
unpredictable ways.

--

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



[issue15883] Add Py_errno to work around multiple CRT issue

2014-07-14 Thread Steve Dower

Steve Dower added the comment:

Also agreed with not exposing a side-channel to set errno.

I'd expect this to no longer be an issue with the stable CRT, but I'm not 100% 
confident about saying that yet. In theory, there will only ever be one CRT 
loaded in the future, but there's probably going to still be situations where 
explicitly providing errno is necessary.

--

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



[issue17056] Support Visual Studio 2012

2014-07-14 Thread Steve Dower

Steve Dower added the comment:

msvc9compiler should not look for any versions of MSVC other than 9.0, since 
extensions built using other versions will be subtly (or dramatically) 
incompatible with Python unless you also rebuild Python itself with the same 
MSVC version.

You can set DISTUTILS_USE_SDK=1 and run from the VS 2012 Developer Command 
Prompt (or otherwise configure your environment) if you are willing to accept 
the risk, but ensure you test the built extension thoroughly.

Hopefully, 3.5 will switch to the next version of MSVC (14) and will be able to 
detect and use all later releases, so this particular problem won't exist in 
the future. There's nothing we can/will do for 2.x at this stage.

--

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



[issue7687] Bluetooth support untested

2014-07-14 Thread Tim Tisdall

Changes by Tim Tisdall tisd...@gmail.com:


--
nosy: +Tim.Tisdall

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



[issue7687] Bluetooth support untested

2014-07-14 Thread Brian Curtin

Changes by Brian Curtin br...@python.org:


--
nosy:  -brian.curtin

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



[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2014-07-14 Thread Tim Tisdall

Changes by Tim Tisdall tisd...@gmail.com:


--
nosy: +Tim.Tisdall

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Bob Ippolito

Bob Ippolito added the comment:

This patch looks reasonable to me as-is.

With regard to Infinite and NaN number values are accepted and output; 
there's an option for that (allow_nan=False in encoding, 
parse_constant=some_function_that_raises in decoding). Since an exception can't 
be raised in a lambda there's no simple one-liner to ensure compliant decode.

--

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



[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Niklas Claesson

Niklas Claesson added the comment:

I would like to add a use case. Control systems for particle accelerators. We 
have ns, sometimes ps precision on timestamped data acquisitions and we would 
like to use Python to do calculations.

--
nosy: +Niklas.Claesson

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Chris Rebert

Chris Rebert added the comment:

Thanks for the speedy review!

Those NaN-related arguments are already mentioned in the docs (see last 2 
sentences of 
https://docs.python.org/3/library/json.html#infinite-and-nan-number-values ), 
and this patch doesn't touch that subsection.

--

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Bob Ippolito

Bob Ippolito added the comment:

Good call, I was just doing a quick review of the patch in isolation. Now I 
don't have anything at all to comment on :)

--

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



[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Given that struct timespec defined as 

   struct timespec {
   time_t   tv_sec;/* seconds */
   long tv_nsec;   /* nanoseconds */
   };

is slowly becoming the prevailing standard to represent time in system 
interfaces, Python's inability to faithfully store it in a high level object 
will increasingly become a handicap.

People are starting to put nanoseconds in their databases not because they 
really need such precision, but because this is what they get from their 
devices and at the collection time cannot do anything smart.

The program that collects the events may simply not have time to do anything 
other than store raw data, or not have the higher level knowledge of what is 
the proper rounding.

The proper rounding is best to be done at the analysis time and by a program 
written in a higher level language such as Python.

--
assignee:  - belopolsky
stage:  - needs patch
versions: +Python 3.5 -Python 3.4

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



[issue21956] Doc files deleted from repo are not deleted from docs.python.org.

2014-07-14 Thread Brandon Rhodes

Brandon Rhodes added the comment:

Now that I am back at a full keyboard, I see that my previous response
to @BreamoreBoy about this issue is too short and too cryptic to really
serve as a fair answer to his question.  And, with some embarrassment, I
note that my words did not even achieve the dignity of forming an actual
English sentence.  Alas for cramped travel laptop keyboards and airport
wi-fi!

Might I be allowed another try?  If so, then: @BreamoreBoy, I think that
your confusion (How does that translate?) can be blamed squarely on
the document in question.  Instead of introducing and maintaining a
consistent terminology, it manages to burden the reader with two
parallel and redundant sets of terms for exactly the same idea.

In short, the document title does not match the document itself.

The title of the document sets forth the terms Idiom and Anti-idiom
as its subject.  But then it completely drops the ball.  The terms are
not defined in the document itself.  They are not clarified anywhere in
its text.  Nor are they even *used* anywhere in its body, with a single
lonely exception buried down somewhere around the middle (second
paragraph under Exceptions).

Instead, the body uses the simpler phrases Do, do not, and should
not.  It is running in its do not / don't mode when it reaches the
sentence you quote, Mark, about from...import statements.

So the answer to your How does that translate question is that what
the title promises as Idioms and Anti-idioms actually come out
verbally in the text as do and don't instead.  When someone jumps
into the middle of the document without context, they see only do or
don't and are left wondering where the terminology of idioms is even
coming from.  But it comes directly from the title, as the only possible
mapping between the document's terms and those of its title.

So when the document says:

from module import name1, name2. - This is a don’t...

the careful reader who has noticed and remembered the title will
simultaneously read:

from module import name1, name2. - This is an anti-idiom...

Which is almost exactly the text of Audrey's tweet.

--

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



[issue21922] PyLong: use GMP

2014-07-14 Thread Mark Dickinson

Mark Dickinson added the comment:

 When GMP encounters a memory allocation failure (exceeding the limits above 
 or when running our of scratch space), it will just abort.

Ouch; that's not friendly.  Seems like this is part of the reason that Armin 
Rigo abandoned the attempt to use GMP in PyPy.  

https://bitbucket.org/pypy/pypy/issue/892/

--

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



[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Vinay Sajip

New submission from Vinay Sajip:

LogRecord has a lot of attributes. You can normally show what you want using a 
Formatter. I could implement something that just shows name and levelName. How 
does that sound?

--

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



[issue21980] Implement `logging.LogRecord.__repr__`

2014-07-14 Thread Ram Rachum

Ram Rachum added the comment:

Sounds good.

--

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



[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
nosy: +barry

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



[issue16807] argparse group nesting lost on inheritance

2014-07-14 Thread paul j3

paul j3 added the comment:

To put this issue in perspective:

- There's nothing in the documentation about nesting a mutually exclusive group 
in an argument group.

- There are prominent notes in the documentation about MEGs not taking title 
and description.  The '_add_container_actions' code has a warning that 
something needs to change if they do acquire such attributes.

- However there is a class in test_argparse.py that does nest an MEG in an 
argument group, which in effect gives it a title.
TestMutuallyExclusiveInGroup
That's the pattern that Dougal is using.

- http://bugs.python.org/issue17218 support title and description in argparse 
add_mutually_exclusive_group

proposes adding these attributes to MEG.  There I proposed doing so via this 
nested group mechanism.  So that patch requires this one to work correctly with 
parents.

- http://bugs.python.org/issue11588 I am exploring the implementation of 
UsageGroups, a generalization of MEG that allow other group tests, and nesting. 
 There too title and description come via nesting in an ArgumentGroup.

- Groups and parents are confusing to beginning users.  In StackOverflow 
questions 'argparse' users often confuse argument groups and mutually exclusive 
groups, expecting to be able to nest one inside the other.  Currently that 
nesting only works one way, and for the limited purpose illustrated here.

--

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



[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Barry A. Warsaw

Barry A. Warsaw added the comment:

Aren't negative indexes well defined in Python?  E.g.

 p = Path('/tmp/tmp123/foo/bar/baz.xz')
 p.parents[len(p.parents)-2]
PosixPath('/tmp')

p.parents[-2] should == p.parents[len(p.parents)-2]

--

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



[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2014-07-14 Thread Mark Lawrence

Changes by Mark Lawrence breamore...@yahoo.co.uk:


--
nosy: +eric.araujo

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



[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset a0e6a370755f by Victor Stinner in branch 'default':
Issue #21645: Add debug code to analyze a failure on FreeBSD 9
http://hg.python.org/cpython/rev/a0e6a370755f

--

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



[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Antoine Pitrou

Changes by Antoine Pitrou pit...@free.fr:


--
stage:  - patch review

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



[issue21981] Idle problem

2014-07-14 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Thomas, PLEASE stop quoting messages when you post by email. Use your mouse 
selection and delete key.

There is an open issue for adding lines numbers in the editor: #17535. It has a 
patch waiting for review.

The bug you reported has not been fixed. Silent Ghost showed you how to work 
around the problem. Other people have reported the the same problem before, and 
have been given the same workaround (delete the file), and the problem 
forgotten about until the next person runs into it.  This time the 'next 
person' was you. But the problem has never been fixed. There should not be a 
'next person'.  The issue should stay open until the bug is fixed (or I fine a 
duplicate open issue).

The headers are mostly for Python developers. After users make an initial 
report, they should usually leave them alone.

--

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Thanks Bob.  If you want me to apply the patch, just assign this back to me.

--

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



[issue21514] update json module docs in light of RFC 7159 ECMA-404

2014-07-14 Thread Bob Ippolito

Changes by Bob Ippolito b...@redivi.com:


--
assignee: bob.ippolito - rhettinger

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



[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread Roundup Robot

Roundup Robot added the comment:

New changeset dbf991650441 by Victor Stinner in branch 'default':
Issue #21645: test_asyncio, log debug trace into sys.__stderr__, not in
http://hg.python.org/cpython/rev/dbf991650441

--

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



[issue21645] test_read_all_from_pipe_reader() of test_asyncio hangs on FreeBSD 9

2014-07-14 Thread STINNER Victor

STINNER Victor added the comment:

Buildbot where the issue occurs:
http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.0%203.x/

--

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



[issue12955] urllib.request example should use with ... as:

2014-07-14 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread akira

akira added the comment:

 Aren't negative indexes well defined in Python?  

yes. I've provided the link to Python docs [1] in msg214642 that 
explicitly defines the behavior:

 If i or j is negative, the index is relative to the end of the string: 
 len(s) + i or len(s) + j is substituted. But note that -0 is still 0.

[1]: 
https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range

--

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



[issue14379] Several traceback docs improvements

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

As nobody has even commented on this, let alone proposed a patch, I'd be 
inclined to close as won't fix or out of date.

--
nosy: +BreamoreBoy

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



[issue15117] Please document top-level sqlite3 module variables

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

@wchlm sorry about the delay in responding, but would you like to propose a 
patch for this?

--
nosy: +BreamoreBoy

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



[issue17250] argparse: Issue 15906 patch; positional with nargs='*' and string default

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

Slipped under the radar?

--
nosy: +BreamoreBoy

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



[issue15552] gettext: if looking for .mo in default locations, also look in locale-bundle location

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

@Dominique please accept our apologies for the delay in replying.  Can someone 
please review the attached patch as it's only five extra lines.  I'd do it 
myself but I know nothing about openSUSE, internationalization or gettext.

--
nosy: +BreamoreBoy

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



[issue21041] pathlib.PurePath.parents rejects negative indexes

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

#7951 has an interesting debate on negative indexes that is possibly applicable 
here.

--
nosy: +BreamoreBoy

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



[issue16895] Batch file to mimic 'make' on Windows

2014-07-14 Thread Zachary Ware

Zachary Ware added the comment:

Still relevant, but the current patch is overkill (Brian was right, it's just 
way more batch than is healthy to check in).  Things are changing rapidly, 
though; I'll close it as postponed for now, with the expectation of reopening 
someday.

--
assignee:  - zach.ware
components: +Build
resolution:  - postponed
status: open - closed

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



[issue18397] Python with MinGW

2014-07-14 Thread Mark Lawrence

Mark Lawrence added the comment:

Nothing has been done with #17605 or the associated issues to my knowledge.  
I've no idea as to whether or not the originator will be picking them up again 
or if he is open to another user picking them up.  I do know that there are 56 
open issues with mingw in the title.

--
nosy: +BreamoreBoy

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



[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre

New submission from Anthony LaTorre:

I get a segfault when trying to cast a string to a structure. 
 import ctypes
 class Struct(ctypes.Structure):
... _fields_ = [('a', ctypes.c_uint32)]
... 
 s = '0'*100
 ctypes.cast(s,Struct)
Segmentation fault

The docs (https://docs.python.org/2/library/ctypes.html#ctypes.cast) say that 
`obj` must be an object that can be interpreted as a pointer, so I assume 
this should return the same exception you get when trying to cast a list:

 ctypes.cast(range(10),Struct)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/local/lib/python3.4/ctypes/__init__.py, line 488, in cast
return _cast(obj, obj, typ)
ctypes.ArgumentError: argument 1: class 'TypeError': wrong type

--
messages: 223062
nosy: Anthony.LaTorre
priority: normal
severity: normal
status: open
title: segfault in ctypes.cast
type: crash
versions: Python 2.7, Python 3.4

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



[issue21983] segfault in ctypes.cast

2014-07-14 Thread Anthony LaTorre

Changes by Anthony LaTorre tlator...@gmail.com:


--
components: +ctypes

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



[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread James Paget

New submission from James Paget:

In Python 3.4, type:

 import itertools
 list(itertools.repeat(1))

The system will hang, and a cold reboot is necessary (at least on Windows).  I 
expected some sort of infinite list exception to be thrown.

--
components: Extension Modules
messages: 223063
nosy: James.Paget
priority: normal
severity: normal
status: open
title: list(itertools.repeat(1)) causes the system to hang
type: crash
versions: Python 3.4

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



[issue17390] display python version on idle title bar

2014-07-14 Thread Terry J. Reedy

Terry J. Reedy added the comment:

I agree that the repeated 'Python x.y.z:  in the listing is too much.  #21588 
has a patch but I am not ready to push it or do the review and revision needed 
. So I propose to reduce the current prefix to the minimum needed to know what 
version F5 will run the file with, x.y with minimal dressing, and put it in the 
middle or at the end. Your example Windows listing would then look like

  *Python 2.7.7 Shell*
  demo.py (2.7) /Users/raymond/class/demo.py
  download.py (2.7) /Users/raymond/class/download.py
or
  *Python 2.7.7 Shell*
  demo.py - /Users/raymond/class/demo.py (2.7)
  download.py - /Users/raymond/class/download.py (2.7)
or
  *Python 2.7.7 Shell*
  demo.py - /Users/raymond/class/demo.py | 2.7
  download.py - /Users/raymond/class/download.py | 2.7

Which do you like best?  I am trying out the second one in my 3.4 installation, 
and will switch to the third later.

--

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



[issue21815] imaplib truncates some untagged responses

2014-07-14 Thread Lita Cho

Changes by Lita Cho lita@gmail.com:


--
nosy: +Lita.Cho, jesstess

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



[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread Josh Rosenberg

Josh Rosenberg added the comment:

It's unlikely to have hung the system entirely. It will slow down a lot though, 
as it will consume ridiculous amounts of RAM, and occasionally involve copying 
the existing data due to reallocation. The cost of performing this pointless 
work may consume enough system resources that the OS responsiveness becomes 
intermittent, messages drop, etc. That's an inevitable consequence of running a 
program without a quota that intentionally consumes system resources 
indefinitely.

Python has no mechanism for identifying the difference between an infinitely 
long generator and a long but finite generator. Eventually, if you left the 
code running, it should eventually exhaust physical memory and the page file, 
then die with a MemoryError. But how long it takes to die is going to depend on 
the OS, page file configuration, etc.

--
nosy: +josh.rosenberg

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



[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

For the record, numpy's datetime and timedelta types have theoretical support 
for attoseconds.

--
nosy: +pitrou

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



[issue21976] Fix test_ssl.py to handle LibreSSL versioning appropriately

2014-07-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

I don't have LibreSSL to test but the patch sounds fine to me.

--

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



[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

numpy's datetime64 and timedelta64 types are so utterly broken that I would 
only recommend studying them as a negative example of how not to design a 
date-time library.

--

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



[issue21983] segfault in ctypes.cast

2014-07-14 Thread eryksun

eryksun added the comment:

You need to cast to a pointer type, i.e. POINTER(Struct). Trying to cast to 
just Struct should raise a TypeError. Instead this revealed a bug in 
cast_check_pointertype (3.4.1):

http://hg.python.org/cpython/file/c0e311e010fc/Modules/_ctypes/_ctypes.c#l5225

dict-proto is NULL in the Struct type's stgdict, so 
PyUnicode_Check(dict-proto) segfaults. A simple fix is to add a check for this 
on line 5235:

if (dict  dict-proto) {

Then cast will raise the expected TypeError from line 5242 on return from line 
5255.

--
nosy: +eryksun

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



[issue21815] imaplib truncates some untagged responses

2014-07-14 Thread Lita Cho

Lita Cho added the comment:

I was reading the RFC spec, and it looks like it doesn't specificy '[' and ']' 
are not allowed in the PERNANENTFLAGS names. 

I can try to add a fix for this. But if anyone else knows if you are not 
allowed to have '[' or ']' in flag names, please let me know.

--

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



[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Tim Peters

Tim Peters added the comment:

A note from Guido, from about 2 years ago:

https://mail.python.org/pipermail/python-dev/2012-July/121127.html


TBH, I think that adding nanosecond precision to the datetime type is
not unthinkable. You'll have to come up with some clever backward
compatibility in the API though, and that will probably be a bit ugly
(you'd have a microsecond parameter with a range of 0-100 and a
nanosecond parameter with a range of 0-1000). Also the space it takes
in memory would probably increase (there's no room for an extra 10
bits in the carefully arranged 8-byte internal representation).


Add pickle, etc.

--
nosy: +tim.peters

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



[issue20117] subprocess on Windows: wrong return code with shell=True

2014-07-14 Thread eryksun

eryksun added the comment:

For what it's worth, an explicit exit will set the return code to the last 
error.

 subprocess.call(nonex  exit, shell=True, stderr=subprocess.DEVNULL)  

9009

--
nosy: +eryksun

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



  1   2   >