[issue2661] Mapping tests cannot be passed by user implementations

2014-06-29 Thread Walter Dörwald

Walter Dörwald added the comment:

Here is a patch that implements suggestion 2 and 3.

--
keywords: +patch
Added file: http://bugs.python.org/file35800/mapping-tests.diff

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



[issue18588] timeit examples should be consistent

2014-06-29 Thread Ezio Melotti

Ezio Melotti added the comment:

I tried to run those timings again and the values I got from the terminal are 
close to the ones I got from the interactive interpreter.
I'm not sure why when I wrote those examples I got such different values.
It would be fine with me to update them and avoid confusion.

 In command-line invocation the gc is disabled.
 And timit.repeat() is used instead of timit.timit().

Looking at the current code it seems to me that the command-line uses 
timeit.repeat(), that repeat calls timeit.timeit(), and that timeit.timeit() 
disables the gc.  Maybe back then it was different; that would explain why I 
got different results.

--

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



[issue13963] dev guide has no mention of mechanics of patch review

2014-06-29 Thread Ezio Melotti

Ezio Melotti added the comment:

If someone familiar with rietveld wants to propose a patch I will review and 
apply it, otherwise it might take a while before I can get to it.

The patch should include these things:
1) how to make a patch that works with rietveld (this might already be 
mentioned somewhere in the devguide);
2) how to reach rietveld once the patch is uploaded (by clicking the review 
link);
3) how to use rietveld to review a patch.  This should briefly explain:
  a) the side-by-side view, the unified diff view, and the delta view;
  b) how to use the start review link and how to move between files using the 
keyboard shortcut or links;
  c) how to leave inline and general comments;
  d) how to go back to the issue (by clicking on the issue number on the main 
rietveld page)

--

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



[issue10765] Build regression from automation changes on windows

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +haypo, steve.dower, zach.ware

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



[issue21575] list.sort() should show arguments in tutorial

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - resolved
type:  - enhancement

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



[issue21429] Input.output error with multiprocessing

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
status: open - pending

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



[issue7094] Add alternate float formatting styles to new-style formatting.

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage: patch review - resolved

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



[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
stage:  - resolved

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



[issue16701] Docs missing the behavior of += (in-place add) for lists.

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +rhettinger

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



[issue21358] Augmented assignment doc: clarify 'only evaluated once'

2014-06-29 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

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



[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2014-06-29 Thread Berker Peksag

Berker Peksag added the comment:

This has already been fixed in issue 3518:


https://docs.python.org/3.4/library/multiprocessing.html#using-a-remote-manager

--
nosy: +berker.peksag
resolution:  - duplicate
stage: needs patch - resolved
status: open - closed
superseder:  - multiprocessing: BaseManager.from_address documented but 
doesn't exist

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



[issue7506] multiprocessing.managers.BaseManager.__reduce__ references BaseManager.from_address

2014-06-29 Thread Berker Peksag

Berker Peksag added the comment:

This has already been fixed in c2910971eb86 (see issue 3518).

--
nosy: +berker.peksag
resolution:  - out of date
stage: needs patch - resolved
status: open - closed

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



[issue12378] smtplib.SMTP_SSL leaks socket connections on SSL error

2014-06-29 Thread Giampaolo Rodola'

Giampaolo Rodola' added the comment:

 @Giampaolo can you add anything to this?

As for smptd encoding error I think a reasonable thing to do would be to reply 
with 501 Can't decode command.. There's no way for the server to return a 
more specific error message (e.g. SSL is not supported). ...And just for 
clarity/completeness, smtpd module cannot support SSL because asyncore doesn't.

--

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



[issue20753] disable test_robotparser test that uses an invalid URL

2014-06-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0e08ca451b34 by Berker Peksag in branch '3.4':
Issue #20753: Skip PasswordProtectedSiteTestCase when Python is built without 
threads.
http://hg.python.org/cpython/rev/0e08ca451b34

New changeset 394e6bda5a70 by Berker Peksag in branch 'default':
Issue #20753: Merge with 3.4.
http://hg.python.org/cpython/rev/394e6bda5a70

--

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



[issue12660] test_gdb fails when installed

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

The changeset referenced in msg160074 is still in default, can someone pick 
this up please.

--
nosy: +BreamoreBoy

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



[issue11882] test_imaplib failed on x86 ubuntu

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Is there any work to be done here or can this be closed?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2, Python 3.3

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



[issue15933] flaky test in test_datetime

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

The patch LGTM, can we have a commit review please.

--
nosy: +BreamoreBoy

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



[issue14547] Python symlink to script behaves unexpectedly

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

I've removed Tests from the components list as I don't think it belongs there.

--
components:  -Tests
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue14817] pkgutil.extend_path has no tests

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Eric will you pick this up again?

--
nosy: +BreamoreBoy

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



[issue13617] Reject embedded null characters in wchar* strings

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Victor can you pick this up again please.

--
nosy: +BreamoreBoy

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



[issue13849] Add tests for NUL checking in certain strs

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

The type and versions fields have been set to what I think they ought to be, as 
I couldn't find any reference to this issue on python-dev.  Note that #13848 is 
closed as fixed and I've asked Victor if he can pick up #13617.

--
nosy: +BreamoreBoy
type:  - enhancement
versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3

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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-06-29 Thread Roy Smith

New submission from Roy Smith:

https://mail.python.org/pipermail/python-list/2014-June/674188.html

--
messages: 221846
nosy: roysmith
priority: normal
severity: normal
status: open
title: str.format() gives poor diagnostic on placeholder mismatch

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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-06-29 Thread Roy Smith

Roy Smith added the comment:

(ugh, hit return too soon)

 '{1}'.format()
Traceback (most recent call last):
  File stdin, line 1, in module
IndexError: tuple index out of range

This is a confusing error message.  The user hasn't written any tuples, so a 
message about a tuple index out of range will just leave them scratching their 
head.  We should either return a more specific subclass of IndexError, or at 
least a more descriptive text describing what went wrong.

See https://mail.python.org/pipermail/python-list/2014-June/674188.html for 
background.

--
type:  - behavior
versions: +Python 2.7

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



[issue14261] Cleanup in smtpd module

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Michele as 8739 has been implemented would you like to put up a patch for this?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3

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



[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2014-06-29 Thread R. David Murray

R. David Murray added the comment:

Ezio requested I comment on his suggestion: I still prefer the try/except form, 
but I don't feel strongly about it.

--

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



[issue14771] Occasional failure in test_ioctl when run parallel with test_gdb

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Antoine/Serhiy I believe that you'd want to follow up on this.

--
nosy: +BreamoreBoy

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



[issue11882] test_imaplib failed on x86 ubuntu

2014-06-29 Thread R. David Murray

R. David Murray added the comment:

Since we can't reproduce it and have had no response from the OP for over a 
year, it is indeed time to close this one.

--
resolution: not a bug - works for me
status: open - closed

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



[issue3170] test_pydoc has no way to regenerate pristine data

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Is this still an issue?  I'd try to reproduce it myself but there is very 
little data in the original report.

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.0

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



[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as out of date?

--
nosy: +BreamoreBoy

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



[issue7665] test_urllib2 and test_ntpath fail if path contains \

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can someone try to reproduce these on 2.7 as I no longer have it set up.  If 
both problems can be reproduced I think the test_urllib2 problem should be 
dealt with here and a new issue opened for test_ntpath.

--
nosy: +BreamoreBoy

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



[issue21879] str.format() gives poor diagnostic on placeholder mismatch

2014-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

IndexError should be caught and replaced with something like
ValueError('format string requests argument not passed') or
TypeError('arguments do not match format string') or more specific
TypeError('format string requests at least %d positional arguments, only %d 
passed')
In Roy's example (a good testcase), the numbers would be 1 and 0.

--
nosy: +eric.smith, terry.reedy
stage:  - needs patch
versions: +Python 3.4, Python 3.5

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



[issue15750] test_localtime_daylight_false_dst_true raises OverflowError: mktime argument out of range

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Are these tests still failing, can this issue be closed as out of date or 
what?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2014-06-29 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue15750] test_localtime_daylight_false_dst_true raises OverflowError: mktime argument out of range

2014-06-29 Thread STINNER Victor

STINNER Victor added the comment:

I don't see the issue anymore, I guess that it was fixed.

--
resolution:  - fixed
status: open - closed

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread R. David Murray

R. David Murray added the comment:

If deactivating the AV/firewall doesn't change the behavior, it is presumably a 
different problem.  But let's see what Claudiu has to say, since he was able to 
reproduce and then circumvent the original problem.

--

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Claudiu Popa

Claudiu Popa added the comment:

Terry is right, this patch doesn't completely work. But with this fix the 
problem is solved:

diff -r 394e6bda5a70 Lib/test/test_httpservers.py
--- a/Lib/test/test_httpservers.py  Sun Jun 29 15:56:21 2014 +0300
+++ b/Lib/test/test_httpservers.py  Sun Jun 29 19:27:16 2014 +0300
@@ -306,7 +306,7 @@
 response = self.request('/', method='FOO')
 self.check_status_and_reason(response, 501)
 # requests must be case sensitive,so this should fail too
-response = self.request('/', method='get')
+response = self.request('/', method='gets')
 self.check_status_and_reason(response, 501)
 response = self.request('/', method='GETs')
 self.check_status_and_reason(response, 501)

--

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Claudiu Popa

Claudiu Popa added the comment:

Although it is incorrect, because the test specifically tests case sensitivity.

--

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



[issue21429] Input.output error with multiprocessing

2014-06-29 Thread ProgVal

ProgVal added the comment:

The relevant piece of code: 
https://github.com/ProgVal/Limnoria/blob/master/plugins/Web/plugin.py#L85

commands.process is defined here: 
https://github.com/ProgVal/Limnoria/blob/master/src/commands.py#L76

callbacks.CommandProcess is defined at 
https://github.com/ProgVal/Limnoria/blob/master/src/callbacks.py#L1037 
(SupyThread is a small subclass of threading.Thread, which increments a count 
on initialization)

--
nosy: +Valentin.Lorentz
status: pending - open

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread R. David Murray

R. David Murray added the comment:

What if you use 'custom' instead?

--
resolution: fixed - 
stage: resolved - needs patch
status: closed - open

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Claudiu Popa

Claudiu Popa added the comment:

It works with 'custom'.

--

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



[issue21090] File read silently stops after EIO I/O error

2014-06-29 Thread ivank

ivank added the comment:

I managed to reproduce this again, this time by corrupting data on a btrfs 
filesystem.

$ cat read_error_file.py
import os

fname = /usr/bin/Xorg
size = os.stat(fname).st_size
print fname, stat size:, size

f = open(fname, rb)
print len(f.read()): , len(f.read())
f.close()

f = open(fname, rb)
for i in xrange(size):
try:
f.read(1)
except IOError:
print IOError at byte %d % i
break
f.close()

$ python read_error_file.py 
/usr/bin/Xorg stat size: 2331776
len(f.read()):  716800
IOError at byte 716800

Note how the first test does not throw an IOError, but the second one does.

The strace for the first test is:

open(/usr/bin/Xorg, O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
lseek(3, 0, SEEK_CUR)   = 0
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f1334bd6000
lseek(3, 0, SEEK_CUR)   = 0
mmap(NULL, 2334720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f1332ea6000
read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\265M\4\0\0\0\0\0..., 
2330624) = 716800
read(3, 0x7f1332f55034, 1613824)= -1 EIO (Input/output error)
mremap(0x7f1332ea6000, 2334720, 720896, MREMAP_MAYMOVE) = 0x7f1332ea6000
munmap(0x7f1332ea6000, 720896)  = 0
write(1, len(f.read()):  716800\n, 23len(f.read()):  716800
) = 23

Note the -1 EIO (Input/output error) that gets ignored somewhere.

--

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



[issue21090] File read silently stops after EIO I/O error

2014-06-29 Thread ivank

ivank added the comment:

This problem happens with Python 3.4 as well.

$ cat read_error_file.py 
from __future__ import print_function

import os

fname = /usr/bin/Xorg
size = os.stat(fname).st_size
print(fname, stat size:, size)

f = open(fname, rb)
print(len(f.read()): , len(f.read()))
f.close()

f = open(fname, rb)
for i in range(size):
try:
f.read(1)
except IOError:
print(IOError at byte %d % i)
break
f.close()

$ python3 --version
Python 3.4.1

$ python3 read_error_file.py
/usr/bin/Xorg stat size: 2331776
len(f.read()):  716800
IOError at byte 716800

strace for the first test is:

open(/usr/bin/Xorg, O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 
0x7fff323ac8b0) = -1 ENOTTY (Inappropriate ioctl for device)
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
lseek(3, 0, SEEK_CUR)   = 0
lseek(3, 0, SEEK_CUR)   = 0
fstat(3, {st_mode=S_IFREG|0755, st_size=2331776, ...}) = 0
mmap(NULL, 2334720, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x7f57884cc000
read(3, \177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0\0\1\0\0\0\265M\4\0\0\0\0\0..., 
2331777) = 716800
read(3, 0x7f578857b030, 1614977)= -1 EIO (Input/output error)
mremap(0x7f57884cc000, 2334720, 720896, MREMAP_MAYMOVE) = 0x7f57884cc000
munmap(0x7f57884cc000, 720896)  = 0
write(1, len(f.read()):  716800\n, 23len(f.read()):  716800
) = 23
close(3)

--
versions: +Python 3.4

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Both 'gets' and 'custom' work on my machine.

--

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



[issue3702] test_urllib2.test_trivial fails when run from another Windows drive

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

I no longer have a 2.7 setup so can someone else try to reproduce this problem.

--
nosy: +BreamoreBoy
versions: +Python 2.7 -Python 3.2, Python 3.3

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-29 Thread akira

akira added the comment:

 Can you explain why math.floor rather than builtin round is the correct 
 function to use?

To avoid breaking existing scripts that use `.strftime('%s')` on Linux, OSX,
see msg221385:

   from datetime import datetime, timezone
   dt = datetime(1969, 1, 1, 0,0,0, 60, tzinfo=timezone.utc)
   '%d' % dt.timestamp()
  '-31535999'
   round(dt.timestamp())
  -31535999
   dt.astimezone().strftime('%s') # -- existing behavior
  '-31536000'
   '%d' % math.floor(dt.timestamp())
  '-31536000'
   import calendar
   calendar.timegm(dt.astimezone(timezone.utc).timetuple())
  -31536000

--

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



[issue14904] test_unicode_repr_oflw (in test_bigmem) crashes

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Has anybody got a machine with enough RAM to be able to debug this now as I 
certainly haven't?

--
nosy: +BreamoreBoy

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



[issue15152] test_subprocess failures on awfully slow builtbots

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Does this issue need to be addressed, can it be closed as out of date or what?

--
nosy: +BreamoreBoy
title: test_subprocess fqailures on awfully slow builtbots - test_subprocess 
failures on awfully slow builtbots
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue15243] Misleading documentation for __prepare__

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Does the documentation need amending, yes or no?

--
components:  -Tests
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Here is the simpler demonstration of the floor behavior on Linux:

 from datetime import datetime
 datetime.fromtimestamp(-0.1).strftime('%s')
'-1'
 datetime.fromtimestamp(-1.1).strftime('%s')
'-2'
 datetime.fromtimestamp(0.1).strftime('%s')
'0'
 datetime.fromtimestamp(1.1).strftime('%s')
'1'

--

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Could you, please add tests for non-fixed offset timezones?  There are several 
defined in datetimetester.py already.

--
versions: +Python 3.5 -Python 3.3

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



[issue13413] time.daylight incorrect behavior in linux glibc

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Could one of our timezone gurus respond to this please.

--
components: +Library (Lib)
nosy: +BreamoreBoy
versions: +Python 2.7, Python 3.4, Python 3.5

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

The patch should update documentation.

See 
https://docs.python.org/3.5/library/datetime.html#strftime-and-strptime-behavior

--

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



[issue21880] IDLE: Ability to run 3rd party code checkers

2014-06-29 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

(This issue is continuation of http://bugs.python.org/issue18704)

This issue is about a feature to execute any 3rd party code checker from within 
IDLE.

I am attaching an initial patch(so as to get reviews, is functional logic wise, 
but missing a lot UI/UX wise.) 

It is implemented as an extension.

--
components: IDLE
files: 3rdpartychecker-v1.diff
keywords: patch
messages: 221876
nosy: jesstess, sahutd, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Ability to run 3rd party code checkers
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35801/3rdpartychecker-v1.diff

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



[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

+t = datetime(1969, 1, 1, 0,0,0, 60, tzinfo=timezone.utc)

Please add spaces after commas.

--

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



[issue13668] mute ImportError in __del__ of _threading_local module

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as a result of #9707 and r64543 ?

--
nosy: +BreamoreBoy

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



[issue21855] Fix decimal in unicodeless build

2014-06-29 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +skrah

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



[issue21855] Fix decimal in unicodeless build

2014-06-29 Thread Mark Dickinson

Mark Dickinson added the comment:

Looks fine to me.

--

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



[issue13649] termios.ICANON is not documented

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm inclined to close as won't fix as the third paragraph of the docs states 
This module also defines all the constants needed to work with the functions 
provided here; these have the same name as their counterparts in C. Please 
refer to your system documentation for more information on using these terminal 
control interfaces.

--
nosy: +BreamoreBoy

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



[issue13689] fix CGI Web Applications with Python link in howto/urllib2

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Footnote [1] here https://docs.python.org/3/howto/urllib2.html still refers to 
the pyzine link.  Can we have this changed please.

--
nosy: +BreamoreBoy

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



[issue7671] test_popen fails if path contains special char like ;

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can this be closed as out of date?

--
nosy: +BreamoreBoy

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



[issue15748] Various symlink test failures in test_shutil on FreeBSD

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Is any action needed here to take this forward, can it be closed as out of 
date or what?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.2, Python 3.3

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



[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm guessing that this would have been resolved some time ago, am I correct?

--
nosy: +BreamoreBoy
versions: +Python 3.4, Python 3.5 -Python 3.3

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



[issue13413] time.daylight incorrect behavior in linux glibc

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I think this is out-of-date.  On Mac OS X, I get

```
$ python3 -V
Python 3.4.1
$ TZ=Europe/Moscow python3 -c import time; print(time.daylight)
0
```

I'll check on Linux now ...

--

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



[issue13413] time.daylight incorrect behavior in linux glibc

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Same result on a freshly compiled

Python 3.4.1 (default, Jun 29 2014, 15:26:46)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux

$ TZ=Europe/Moscow ~/Apps/bin/python3 -c import time; print(time.daylight)
0

I suspect that the problem was with OP's system timezone database.

--

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



[issue21881] python cannot parse tcl value

2014-06-29 Thread Andreas Schwab

New submission from Andreas Schwab:

Lib/test/test_tcl.py fails with:

test test_tcl failed -- Traceback (most recent call last):
  File /home/abuild/rpmbuild/BUILD/Python-2.7.7/Lib/test/test_tcl.py, line 430
, in test_user_command
check(float('nan'), 'NaN', eq=nan_eq)
  File /home/abuild/rpmbuild/BUILD/Python-2.7.7/Lib/test/test_tcl.py, line 397
, in check
eq(result[0], expected2)
  File /home/abuild/rpmbuild/BUILD/Python-2.7.7/Lib/test/test_tcl.py, line 405
, in nan_eq
actual = float(actual)
ValueError: invalid literal for float(): NaN(7)

--
components: Tkinter
messages: 221887
nosy: schwab
priority: normal
severity: normal
status: open
title: python cannot parse tcl value
type: behavior
versions: Python 2.7

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



[issue13413] time.daylight incorrect behavior in linux glibc

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

 But python detect daylight flag as differences between January and July 
 localtime.

This is the best we can do because time.daylight is a constant and this does 
not work in locations like Moscow where daylight rules were adopted ~ 30 years 
ago and later abandoned.

If you need better timezone support - take a look at 
datetime.datetime.astimezone() method.

--
resolution:  - works for me
stage:  - resolved
status: open - closed

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



[issue13413] time.daylight incorrect behavior in linux glibc

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I suspect there will be another period soon when time.daylight logic will break 
after Europe/Moscow goes back to winter time (hopefully for good).

There is no solution of this issue within constraints of the time module.  See 
issue9527 for how it was solved in datetime.

--

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



[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset ee33d61f5e4b by Benjamin Peterson in branch '2.7':
add a test for access errors from OpenKey (closes #21871)
http://hg.python.org/cpython/rev/ee33d61f5e4b

--
nosy: +python-dev
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 1aafbdfba25a by Benjamin Peterson in branch '2.7':
don't allow unicode into type_map on Windows (closes #21652)
http://hg.python.org/cpython/rev/1aafbdfba25a

--
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue21652] Python 2.7.7 regression in mimetypes module on Windows

2014-06-29 Thread Benjamin Peterson

Benjamin Peterson added the comment:

Thanks Vladimir; I really appreciate your work on these issues.

--

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



[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-06-29 Thread Jeff Allen

Jeff Allen added the comment:

Disabling the AV/firewall did not stop the symptoms when I was investigating 
originally. In order to get the unmodified test to pass, I had to stop the BFE 
(base filtering engine), which I think may have been given new rules or 
behaviours as a result of installing the AV solution ... or maybe it was a 
Windows upgrade that did it.

I did wonder if this might be a moving target, as the test deliberately 
includes server abuse, while the products want to stop that.

If I try test_httpservers.py as amended 
(http://hg.python.org/cpython/file/ffdd2d0b0049/Lib/test/test_httpservers.py) 
on my machine with CPython 3.4.1, I do not get the error Terry reports. 
(test_urlquote_decoding_in_cgi_check fails but it should.)

--

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



[issue9051] Improve pickle format for aware datetime instances

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +alexandre.vassalotti, haypo, pitrou

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



[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
nosy: +lemburg

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



[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Reclassifying this as a doc issue.

--
components: +Documentation -Extension Modules
stage: test needed - needs patch
versions: +Python 3.5 -Python 3.3

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



[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2014-06-29 Thread STINNER Victor

STINNER Victor added the comment:

 I'm guessing that this would have been resolved some time ago, am I correct?

You should not guess but check last builds of SPARC Solaris 10 OpenCSW 3.x to 
see if the issue stil occurs.

http://buildbot.python.org/all/waterfall?category=3.x.stablecategory=3.x.unstable

--

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



[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
keywords: +easy

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



[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

David,

Is there anything left to do here that is not covered by issue 11024?

--

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



[issue10941] imaplib: Internaldate2tuple produces wrong result if date is near a DST change

2014-06-29 Thread R. David Murray

R. David Murray added the comment:

Not that I can see.

--
resolution:  - fixed
stage: patch review - resolved
status: open - closed

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



[issue1062277] Pickle breakage with reduction of recursive structures

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Problem B has been resolved, but problem A is still there.

Python 3.4.1 (default, Jun 29 2014, 15:26:46)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux
Type help, copyright, credits or license for more information.
 class C:
... def __init__(self, x=None):
... self.x = x if x is not None else self
... def __reduce__(self):
... return C, (self.x,)
...
 import pickle
 pickle.dumps(C())
Traceback (most recent call last):
  File stdin, line 1, in module
RuntimeError: maximum recursion depth exceeded while calling a Python object
 c = C([])
 c.x.append(c)
 c.x[0] is c
True
 c2 = pickle.loads(pickle.dumps(c))
 c2.x[0] is c2
True

--
assignee: belopolsky - 
versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4

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



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-29 Thread Éric Araujo

Éric Araujo added the comment:

I won’t have the time to do the docs/tests inspection I wanted to do.

--
assignee: eric.araujo - 

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



[issue9860] Building python outside of source directory fails

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
resolution:  - fixed
stage: needs patch - resolved
status: open - closed

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



[issue15617] FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer)

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

By following the link I finally get to see No current builds. Pending Build 
Requests: (Apr 30 15:07:05, waiting 1445 hrs, 32 mins, 26 secs).  Is there any 
way that I can tell from the display whether or not the failures are related to 
this issue?

--

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



[issue15907] move doctest test-data files into a subdirectory of Lib/test

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

@Chris can you provide a patch for this?

--
nosy: +BreamoreBoy
type:  - enhancement
versions: +Python 3.5 -Python 3.4

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



[issue21833] Fix unicodeless build of Python

2014-06-29 Thread Tshepang Lekhonkhobe

Changes by Tshepang Lekhonkhobe tshep...@gmail.com:


--
nosy: +tshepang

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



[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2014-06-29 Thread Stefan Krah

Stefan Krah added the comment:

Andrew, thanks for signing the agreement!


[Sunny]
 Is this what you expect?

I find the initialization in os.stat_result somewhat strange. Also,
a certain use of unnamed fields that worked in 2.5 is now broken,
which we should sort out before proceeding any further:


Apply structseq_repr_issue.diff, then:

 from _testcapi import mk_structseq
 s = mk_structseq(unnamed_end)
 s[3]
3
 tuple(s)
(0, 1, 2, 3, 4)
 s
Traceback (most recent call last):
  File stdin, line 1, in module
SystemError: In structseq_repr(), member 3 name is NULL for type 
_testcapi.struct_unnamed_end


Perhaps we should just add the missing field names, like namedtuple
does with rename=True:

(a=1, b=2, c=3, _4=4, _5=5)


In any case, in 2.5 the entire tuple was printed as the repr,
regardless of unnamed fields.

--
title: Enhance Object/structseq.c to match namedtuple and tuple api - Enhance 
Object/structseq.c to match namedtuple and tuple api
Added file: http://bugs.python.org/file35802/structseq_repr_issue.diff

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



[issue15873] datetime: add ability to parse RFC 3339 dates and times

2014-06-29 Thread karl

karl added the comment:

After inspections, the best library for parsing RFC3339 style date is 
definitely:
https://github.com/tonyg/python-rfc3339/

Main code at
https://github.com/tonyg/python-rfc3339/blob/master/rfc3339.py

--

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



[issue16510] Using appropriate checks in tests

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we follow up on this please as it's referenced from #9554 as well.

--
nosy: +BreamoreBoy

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



[issue18864] Implementation for PEP 451 (importlib.machinery.ModuleSpec)

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Given that PEP 451 is listed in the Finished PEPs (done, implemented in code 
repository) section of the PEP index can we close this and associated issues 
out?

--
nosy: +BreamoreBoy

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



[issue10541] regrtest.py -T broken

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
versions: +Python 3.5 -Python 3.2

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



[issue10541] regrtest.py -T broken

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
stage: patch review - commit review

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



[issue10541] regrtest.py -T broken

2014-06-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 10cf594ace4b by Alexander Belopolsky in branch 'default':
Fixes #10541: regrtest -T is broken
http://hg.python.org/cpython/rev/10cf594ace4b

--
nosy: +python-dev

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



[issue10541] regrtest.py -T broken

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
resolution:  - fixed
status: open - closed

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



[issue20858] Enhancements/fixes to pure-python datetime module

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

Brian,

I would like to apply your changes for 3.5.  Do you have any updates?

--
stage: patch review - commit review
versions: +Python 3.5 -Python 3.3, Python 3.4

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



[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 49cdb04bfcc6 by Stefan Krah in branch '3.4':
Issue #21778:  Clarify use of flags if PyBuffer_FillInfo() is used inside a
http://hg.python.org/cpython/rev/49cdb04bfcc6

--
nosy: +python-dev

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



[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-29 Thread Stefan Krah

Changes by Stefan Krah stefan-use...@bytereef.org:


--
resolution:  - fixed
status: open - closed

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



[issue8902] add datetime.time.now() for consistency

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

I would like to bring this issue to some conclusion.  Here is the summary:

Pro:

   datetime.time.now() is shorter than datetime.datetime.now().time()

Cons:

1.   date, time = datetime.date.today(), datetime.time.now() is attractive, but 
wrong.

2.   time detached from date is a strange object with limited support in 
datetime module (no timedelta arithmetics, issue 17267; tzinfo issues; etc.)

3.   No compelling use cases have been presented.

--
keywords: +easy
nosy: +lemburg
versions: +Python 3.5 -Python 3.4

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



[issue9554] test_argparse.py: use new unittest features

2014-06-29 Thread Mark Lawrence

Mark Lawrence added the comment:

Latest patch LGTM so can we have a commit review please.

--
nosy: +BreamoreBoy

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



[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
assignee: belopolsky - 

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



[issue3173] external strftime for Python?

2014-06-29 Thread Alexander Belopolsky

Changes by Alexander Belopolsky alexander.belopol...@gmail.com:


--
assignee: belopolsky - 

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



[issue10446] pydoc3 links to 2.x library reference

2014-06-29 Thread Alexander Belopolsky

Alexander Belopolsky added the comment:

MODULE DOCS section is no longer present in pydoc generated pages.

--
resolution: accepted - out of date
status: open - closed

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



  1   2   >