[issue21270] unittest.mock.call object has inherited count method

2014-07-08 Thread Kushal Das

Kushal Das added the comment:

To start with I am overriding count and index method. Do you think this is 
enough?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21270
___
___
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-08 Thread Mark Dickinson

Mark Dickinson added the comment:

 IMO you must discuss the GMP license on the python-dev mailing list

I think the maintenance implications of having another external dependency  
would also need discussion on python-dev.

--

___
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



[issue21922] PyLong: use GMP

2014-07-08 Thread Mark Dickinson

Mark Dickinson added the comment:

Hmm.  Looking back at my previous comments, I should explain my negativity a 
bit better.

1. Like Victor's issue 1814 work, this is great stuff, and very impressive.

2. I'm really not convinced that it belongs in the Python core.

To expand on 2: we already have a simple, highly portable, battle-tested 
implementation of big integers that's reasonably efficient for normal uses and 
requires little day-to-day maintenance.  We'd be replacing that with something 
that's a lot more complicated, less thoroughly tested, and *not* significantly 
more efficient in normal use-cases.  Apart from the pain of the transition (and 
any refactor of this size is bound to involve some pain), I'm particularly 
worried about future headaches involved in maintaining the external GMP 
dependency:  keeping up with bugfixes, managing the binary builds, etc.  I 
anticipate that that would add quite of a lot of work for the core team in 
general and those building releases in particular.  (And that's another reason 
that we should have a python-dev discussion, so that those involved in the 
release process get a chance to weigh in.)  To offset that, there needs to be a 
clear *benefit* to making this change.

A couple of specific questions for Hristo Venev:

- What's the current status of GMP on Windows?  IIUC, one of the motivations 
for the MPIR unfriendly fork of GMP was better Windows support.  Does your 
patch already build cleanly on Windows?

- Whom do you see this change benefiting?  Those doing serious large-number 
stuff on Python (SAGE users, for example) are presumably already using gmpy2 or 
something similar.

- Do you want to initiate the python-dev discussion, or leave that to someone 
else?

[I'm deliberately steering clear of the licensing issues; it needs discussion, 
but IANAL and I have nothing useful to contribute here.]

--

___
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



[issue15133] tkinter.BooleanVar.get() behavior and docstring disagree

2014-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Here is a patch.

1) getboolean() and BooleanVar.get() now always return bool. Wrapping the 
result of getboolean() into bool() is not more needed.

2) getboolean() and BooleanVar.get() now works with Tcl_Obj. This makes Tkinter 
more robust against future Tcl/Tk changes.

3) An exception is raised if an argument to BooleanVar.set() couldn't be 
considered as boolean value. An argument is converted to canonized 0/1 values. 
This makes errors to be exposed earlier.

Similar changes should be made for getint() and getdouble().

--
keywords: +patch
stage:  - patch review
Added file: http://bugs.python.org/file35897/tkinter_getboolean.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15133
___
___
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-08 Thread Mark Dickinson

Mark Dickinson added the comment:

Previous python-dev discussions:

https://mail.python.org/pipermail/python-dev/2008-November/083315.html
https://mail.python.org/pipermail/python-3000/2007-September/010718.html

[Regarding the ancient mpz module, which used to be part of Python]

https://mail.python.org/pipermail/python-dev/2001-December/018967.html

--

___
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



[issue21772] platform.uname() not EINTR safe

2014-07-08 Thread Stefano Borini

Stefano Borini added the comment:

You can't use subprocess. platform is used during build. subprocess needs 
select, but select is a compiled module and at that specific time in the build 
process is not compiled yet.

--
nosy: +stefanoborini

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



Re: [issue21772] platform.uname() not EINTR safe

2014-07-08 Thread M.-A. Lemburg
On 08.07.2014 11:40, Stefano Borini wrote:
 
 You can't use subprocess. platform is used during build. subprocess needs 
 select, but select is a compiled module and at that specific time in the 
 build process is not compiled yet.

Good point :-)

-- 
Marc-Andre Lemburg
eGenix.com

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



[issue17153] tarfile extract fails when Unicode in pathname

2014-07-08 Thread Lars Gustäbel

Lars Gustäbel added the comment:

IIRC, tarfile under 2.7 has never been explicitly unicode-safe, support for 
unicode objects is heterogeneous at best. The obvious work-around is to work 
exclusively with str objects.

What we can't do is to decode the utf-8 pathname from the archive to a unicode 
object, because we have no way to detect an archive's encoding. We can either 
emit a warning if the user passes a unicode object to extract() or we 
implicitly encode the passed unicode object using TarFile.encoding, so that the 
os.path.join() succeeds.

Unfortunately, I am not entirely sure if there was possibly a rationale behind 
the current behaviour of extract(). This needs more inspection.

--

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



[issue21365] asyncio.Task reference misses the most important fact about it, related info spread around intros and example commentary instead

2014-07-08 Thread STINNER Victor

STINNER Victor added the comment:

Hi,

I pushed my change to add a new BaseEventLoop.create_task() method. For that, I 
also updated the documentation:
http://hg.python.org/cpython/rev/66f06fbf8a2f

I rewrote the documentation of the Task method, and more generally all places 
describing how to create a Task object. I changed the first sentence to 
Schedule the execution of a coroutine object to be the most explicit.

The documentation will be readable online in a few hours:
https://docs.python.org/dev/library/asyncio-task.html#task

Thanks for your report.

--
resolution:  - fixed
status: open - closed

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



[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread Xavier de Gaye

Xavier de Gaye added the comment:

Python 3.5 is still crashing with this test:

$ python jump.py
 jump.py(7)module()
- for i in gen():
(Pdb) break 3
Breakpoint 1 at jump.py:3
(Pdb) continue
 jump.py(3)gen()
- yield i
(Pdb) step
--Return--
 jump.py(3)gen()-0
- yield i
(Pdb) jump 2
 jump.py(2)gen()-0
- for i in range(1):
(Pdb) continue
Segmentation fault (core dumped)


It is true that frame_setlineno() assumes incorrectly that f-f_stacktop is not 
NULL, but the reason of the crash or of the SystemError: unknown opcode is 
that PyEval_EvalFrameEx() expects on its invocation f-f_lasti to refer to the 
index of the last instruction executed and sets (and assumes this instruction 
does not have argument) 'next_instr' accordingly to the next byte, while by 
jumping to line 2 we set f-f_lasti to zero and 'SETUP_LOOP', the opcode at 
this index, has an argument.

The attached patch is a slight improvement over the last one.

--
type: behavior - crash
versions: +Python 3.5 -Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file35898/default_2.patch

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



[issue17288] cannot jump from a return after setting f_lineno

2014-07-08 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Xavier de Gaye

New submission from Xavier de Gaye:

The Py_XDECREF statement in gen_iternext() at Objects/genobject.c is not needed 
since val is NULL (may be optimized out by the compiler).
Actually, the whole function could be written as:

return gen_send_ex(gen, NULL, 0);

--
components: Interpreter Core
messages: 222556
nosy: xdegaye
priority: normal
severity: normal
status: open
title: Py_XDECREF statement in gen_iternext()
type: enhancement
versions: Python 3.5

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



[issue21937] IDLE interactive window doesn't display unsaved-indicator

2014-07-08 Thread Saimadhav Heblikar

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


--
nosy: +sahutd

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



[issue1610654] cgi.py multipart/form-data

2014-07-08 Thread Hynek Schlawack

Hynek Schlawack added the comment:

I would have long ago if I had any domain knowlege on this topic, but alas….

--

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



[issue21772] platform.uname() not EINTR safe

2014-07-08 Thread Stefano Borini

Stefano Borini added the comment:

Wouldn't it make sense to use the same strategy used in the subprocess fix 
(that is, retry?). See http://hg.python.org/cpython/rev/6e664bcc958d/

--

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



[issue19608] devguide needs pictures

2014-07-08 Thread Ezio Melotti

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


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

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



[issue21927] BOM appears in stdin when using Powershell

2014-07-08 Thread Ezio Melotti

Ezio Melotti added the comment:

I would argue that adding the BOM is a Powershell issue, and I'm not sure 
Python should do anything about it.
There are probably cases where people expects the BOM to be received by python, 
so stripping it is probably not an option.
As for detecting, it should happen automatically only if sys.stdin.encoding is 
set to 'utf-8-bom', but, by default, Python 3 uses 'UTF-8'.

--
nosy: +lemburg, loewis
type:  - behavior

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



[issue15759] make suspicious doesn't display instructions in case of failure

2014-07-08 Thread Ezio Melotti

Ezio Melotti added the comment:

Serhiy, your patch LGTM.
Can you apply a similar fix for the linkcheck and doctest target and commit it?

FWIW the patch produces a slightly different output (in addition to showing the 
missing message), but I don't think it's a problem:
Without patch:
  ...
  build finished with problems, 8 warnings.
  make: *** [build] Error 1
With patch:
  ...
  build finished with problems, 8 warnings.
  make[1]: *** [build] Error 1
  make[1]: Leaving directory `/home/wolf/dev/py/py3k/Doc'
  Suspicious check complete; ...
  make: *** [suspicious] Error 1

--
versions: +Python 3.5 -Python 3.3

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



[issue21939] IDLE - Test Percolator

2014-07-08 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

Attached is a unittest for idlelib.Percolator.
2.7 version will be added once this is OK.

--
components: IDLE
files: test_percolator-34.diff
keywords: patch
messages: 222561
nosy: jesstess, sahutd, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - Test Percolator
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35899/test_percolator-34.diff

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



[issue21270] unittest.mock.call object has inherited count method

2014-07-08 Thread Michael Foord

Michael Foord added the comment:

Those are the only ones I think. Thanks.

--

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



[issue21940] IDLE - Test WidgetRedirector

2014-07-08 Thread Saimadhav Heblikar

New submission from Saimadhav Heblikar:

Attached is unittest for idlelib.WidgetRedirector
2.7 version will be uploaded once this is OK.

--
components: Extension Modules
files: test-widgetredir-34.diff
keywords: patch
messages: 222563
nosy: jesstess, sahutd, taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE - Test WidgetRedirector
versions: Python 2.7, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35900/test-widgetredir-34.diff

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



[issue21907] Update Windows build batch scripts

2014-07-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 06589e81fd56 by Zachary Ware in branch 'default':
Issue #21907: Make the buildbot clean script always return 0.
http://hg.python.org/cpython/rev/06589e81fd56

--

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



[issue15759] make suspicious doesn't display instructions in case of failure

2014-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Oh, I forgot about this patch.

Here is more correct patch. It now works with non-default make command and 
make suspicious now returns success return code if no suspicious markups were 
found. Made similar fix for the linkcheck and doctest target.

--
Added file: http://bugs.python.org/file35901/make_suspicious_2.patch

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



[issue21907] Update Windows build batch scripts

2014-07-08 Thread Zachary Ware

Zachary Ware added the comment:

The XP buildbot seems to have choked on this change, I suspect because of the 
'clean' script exiting with a non-zero error code.  I'm not certain why it 
can't recover, though.  David, can you tell what's going on with it?

--
nosy: +db3l

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



[issue14953] Reimplement subset of multiprocessing.sharedctypes using memoryview

2014-07-08 Thread Richard Oudkerk

Richard Oudkerk added the comment:

Updated version of the patch.  Still needs docs.

--
Added file: http://bugs.python.org/file35902/memoryview-array-value.patch

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



[issue21844] Fix HTMLParser in unicodeless build

2014-07-08 Thread Ezio Melotti

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


--
dependencies:  -Fix unicodeless build of Python
stage: patch review - resolved
status: open - closed

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



[issue21844] Fix HTMLParser in unicodeless build

2014-07-08 Thread Ezio Melotti

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


--
dependencies: +Fix unicodeless build of Python

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



[issue21704] _multiprocessing module builds incorrectly when POSIX semaphores are disabled

2014-07-08 Thread koobs

Changes by koobs koobs.free...@gmail.com:


--
nosy: +koobs

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



[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-07-08 Thread koobs

Changes by koobs koobs.free...@gmail.com:


--
nosy: +koobs

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



[issue20981] ssl doesn't build anymore with OpenSSL 0.9.7 or older: X509_check_ca

2014-07-08 Thread Stefan Krah

Stefan Krah added the comment:

FreeBSD 6.4 is EOL though, for quite some time already:

http://lists.freebsd.org/pipermail/freebsd-announce/2010-September/001344.html


Maybe we should ask the buildbot owner to upgrade to something
newer.

--
nosy: +skrah

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Som Veettil

Som Veettil added the comment:

@Serhiy Storchaka - its Python 2.7.6

--

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



[issue20104] expose posix_spawn(p)

2014-07-08 Thread Danek Duvall

Danek Duvall added the comment:

Our project (the Solaris packaging system, IPS), relies on posix_spawn() 
primarily for the ability to fork without making a large memory reservation 
(and possibly failing) because the forking process was itself very large.  
That's the (a?) bug benefit of posix_spawn() -- it's not a benefit for the 
programmer using it (who might have to fall back to fork/exec), but for the 
end-user that benefits from its streamlined operation.

You're right that it doesn't handle everything that subprocess.Popen() does -- 
though at least on Solaris there's a way to change the cwd in the file actions, 
and I'm sure we'd consider adding a way to do the setsid() as well.  The rest 
should be possible cross-platform.

--
nosy: +dhduvall

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



[issue20104] expose posix_spawn(p)

2014-07-08 Thread Alex Gaynor

Alex Gaynor added the comment:

Danek, you might find https://github.com/dreid/posix_spawn/ useful, it provides 
bindings and a public API over posix_spawn (it's not complete yet, but if 
there's stuff missing, feel free to file a ticket!)

--

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



[issue20104] expose posix_spawn(p)

2014-07-08 Thread Danek Duvall

Danek Duvall added the comment:

Cool.  We implemented our own version as a straight-up native module 
(https://java.net/projects/ips/sources/pkg-gate/content/src/modules/pspawn.c), 
and our Popen replacement is not at present a complete replacement for the one 
in the stdlib, but it does what we need it to do.  We'd absolutely switch if it 
came in to the stdlib, though, and I think there would be plenty of programs 
that would benefit from it (certainly a number of large Python programs in 
Solaris have run into exactly this problem).

--

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



[issue5712] tkinter - askopenfilenames returns string instead of tuple in windows 2.6.1 release

2014-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

This bug was fixed in 2.7.7.

--
resolution:  - duplicate
status: open - closed
superseder:  - Regression: Windows-tkinter-idle, unicode, and 0xxx filename

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



[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen

David Bolen added the comment:

Interesting - it's got a Visual Studio Just-In-Time Debugger dialog on the 
screen for an unhandled win32 exception in the compiler (cl.exe).

That's a dialog my pop-up AutoIt script wasn't expecting, so I've added it to 
the other (RTL error) checks, and it'll clear automatically going forward.  But 
I'm not sure what triggered the error.

-- David

--

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



[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen

David Bolen added the comment:

Ok, the last spurt of exceptions on the XP buildbot in the 3.x branch were all 
related to the fact that somehow the .hg folder in the 3.x branch build tree 
was missing.  The rest of the build files seemed present.  I've removed the 
build tree completely to let a new checkout take place and restarted the most 
recent build.

There does also appear to have been a test file beneath the build tree that the 
new clean script couldn't remove 
(build/test_python_580/@test_580_tmp-?L???.py).  I was able to remove it myself 
interactively from cmd.exe, but I've had problems like this myself when 
cleaning up temp files on the buildbots sometimes, and believe it has something 
to do with filename character encodings, depending on the tool being used to 
reference the file.  That might explain the non-zero error on XP though, and I 
agree that making sure such failures don't propagate seems right.

-- David

--

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



[issue18540] imaplib.IMAP4() ends with Name or service not known on Fedora 18

2014-07-08 Thread Milan Oberkirch

Milan Oberkirch added the comment:

I patched it as you suggested (9 lines added/changed in total).

--
Added file: 
http://bugs.python.org/file35903/imaplib_interpret_empty_string_as_None.patch

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



[issue18540] imaplib.IMAP4() ends with Name or service not known on Fedora 18

2014-07-08 Thread Milan Oberkirch

Milan Oberkirch added the comment:

Ignore what I just did (the test is obviously dump; it fails if you run it on 
an IMAP server). I'll make a new attempt after a coffee break ;)

--

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



[issue18540] imaplib.IMAP4() ends with Name or service not known on Fedora 18

2014-07-08 Thread Milan Oberkirch

Milan Oberkirch added the comment:

I'm still wondering if the test could be done better. At least it fixes the bug.

--
Added file: 
http://bugs.python.org/file35904/imaplib_interpret_empty_string_as_NoneV2.patch

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



[issue21918] Convert test_tools to directory

2014-07-08 Thread Zachary Ware

Zachary Ware added the comment:

How about this?

--
keywords: +patch
Added file: http://bugs.python.org/file35905/test_tools.diff

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



[issue21918] Convert test_tools to directory

2014-07-08 Thread Zachary Ware

Zachary Ware added the comment:

Here's the same patch in --git format, which should make the actual changes 
clearer (though probably not in Rietveld).

--
Added file: http://bugs.python.org/file35906/test_tools.diff--git

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



[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Mark Lawrence

Mark Lawrence added the comment:

Looking at PEP 11 and this http://support.microsoft.com/lifecycle/?c2=1163 it 
seems to depend on which service pack you've got as to whether or not Win2003 
is supported by 2.7.  Can one of our Windows gurus take a look please, it's as 
clear as mud to me.

--
nosy: +BreamoreBoy, steve.dower, tim.golden, zach.ware

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



[issue21918] Convert test_tools to directory

2014-07-08 Thread Berker Peksag

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


--
assignee:  - zach.ware
stage: needs patch - patch review

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



[issue15011] Change Scripts to bin on Windows

2014-07-08 Thread Mark Lawrence

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


--
nosy: +steve.dower, zach.ware
versions: +Python 3.5 -Python 3.4

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



[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Zachary Ware

Zachary Ware added the comment:

Windows Server 2003, XP, and 2000 are all officially supported by Python 2.7, 
as they were all current (for certain values of current) at the time Python 
2.7 was released.

That said, it's not completely clear to me what the bug is but it strikes me as 
being something that's not all that likely to be hit, and either way about it, 
I don't have any way to test it.

--

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



[issue21518] Expose RegUnloadKey in winreg

2014-07-08 Thread Claudiu Popa

Claudiu Popa added the comment:

Here's the patch with only the change for winreg.UnloadKey. I'll have the patch 
with windows_helper soon.

--
Added file: http://bugs.python.org/file35907/winreg_unload_key.patch

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



[issue21680] asyncio: document event loops

2014-07-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3f1381e3a68f by Victor Stinner in branch '3.4':
Issue #21680: Document asyncio event loops
http://hg.python.org/cpython/rev/3f1381e3a68f

New changeset 2c9d5f32f6c5 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21680: Document asyncio event loops
http://hg.python.org/cpython/rev/2c9d5f32f6c5

--
nosy: +python-dev

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



[issue21680] asyncio: document event loops

2014-07-08 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/issue21680
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21437] document that asyncio.ProactorEventLoop doesn't support SSL

2014-07-08 Thread STINNER Victor

STINNER Victor added the comment:

Done in these commits:

New changeset 3f1381e3a68f by Victor Stinner in branch '3.4':
Issue #21680: Document asyncio event loops
http://hg.python.org/cpython/rev/3f1381e3a68f

New changeset 2c9d5f32f6c5 by Victor Stinner in branch 'default':
(Merge 3.4) Issue #21680: Document asyncio event loops
http://hg.python.org/cpython/rev/2c9d5f32f6c5

--
resolution:  - fixed
status: open - closed

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



[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 5cfa919609a0 by Antoine Pitrou in branch 'default':
Issue #21938: simplify gen_iternext()
http://hg.python.org/cpython/rev/5cfa919609a0

--
nosy: +python-dev

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



[issue21938] Py_XDECREF statement in gen_iternext()

2014-07-08 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Good point, thanks :)

--
nosy: +pitrou
resolution:  - fixed
stage:  - resolved
status: open - closed

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne

Christopher Cabanne added the comment:

I ran into the slowness of difflib.HtmlDiff.make_table yesterday, and see this 
issue is three years stale now; is there any update or chance that the fix will 
be applied?

--
nosy: +Christopher.Cabanne

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne

Christopher Cabanne added the comment:

Here is a timeit command to test with the attached test files: 

python -m timeit -n 10 import difflib; 
difflib.HtmlDiff().make_table(open('left500.txt').readlines(), 
open('righ500.txt').readlines())

--

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Christopher Cabanne

Christopher Cabanne added the comment:

Sorry about the typo; here is the corrected timeit command: 

python -m timeit -n 10  import difflib; 
difflib.HtmlDiff().make_table(open('left500.txt').readlines(), 
open('right500.txt').readlines())

--

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



[issue12815] Coverage of smtpd.py

2014-07-08 Thread Milan Oberkirch

Changes by Milan Oberkirch milan...@oberkirch.org:


--
nosy: +zvyn

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



[issue1610654] cgi.py multipart/form-data

2014-07-08 Thread Chui Tey

Chui Tey added the comment:

Hi,

I'm still available. There's a test case in the patch, would you like
me to separate that to another file? Would that help with assessing
it?

Best,

On 8 July 2014 22:05, Hynek Schlawack rep...@bugs.python.org wrote:

 Hynek Schlawack added the comment:

 I would have long ago if I had any domain knowlege on this topic, but alas….

 --

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

--
nosy: +Chui.Tey

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



[issue21907] Update Windows build batch scripts

2014-07-08 Thread David Bolen

David Bolen added the comment:

I'm seeing an apparent side-effect of the new clean script (or it seems to 
correlate).  Since it started running, the Windows buildbots (both 7 and XP) 
seem to always perform a full clone of the master repository for each build 
rather than just a pull/update.  That's a noticeable performance difference 
(15-20 minutes per clone rather than the more typical 1-2 minutes for 
pull/update) and seems like it should be unnecessary.

I'm not quite sure how the buildbot task makes the decision between the two 
approaches, but could the new clean be removing a file that's relevant to how 
the decision is made?

--

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



[issue6916] Remove deprecated items from asynchat

2014-07-08 Thread Berker Peksag

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


--
stage: needs patch - resolved

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



[issue6916] Remove deprecated items from asynchat

2014-07-08 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 486c1a81ee32 by Berker Peksag in branch 'default':
Issue #6916: Use assertWarns in test_asynchat.
http://hg.python.org/cpython/rev/486c1a81ee32

--

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Gregory P. Smith

Changes by Gregory P. Smith g...@krypto.org:


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

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



[issue21323] CGI HTTP server not running scripts from subdirectories

2014-07-08 Thread Zach Byrne

Zach Byrne added the comment:

Hi, I'm new. I wrote a test for nested directories under cgi-bin and got that 
to pass without failing the test added for 19435 by undoing most of the changes 
to run_cgi() but building path from the values in self.cgi_info. Thoughts?

--
keywords: +patch
nosy: +zbyrne
Added file: http://bugs.python.org/file35908/21323.patch

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



[issue21925] ResouceWarning sometimes doesn't display

2014-07-08 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Well, it's unclear to me why we would want to remove the __main__ module first, 
rather than last.

--
nosy: +pitrou

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



[issue20513] Python 2.7. Script interruption on logoff from 0 session under Win2003 and earlier

2014-07-08 Thread Steve Dower

Steve Dower added the comment:

Looks like a legitimate issue to me, and the patch is fine. It's probably 
something that ought to be fixed in default too, since I don't see how it is 
restricted to session 0 - any Python service will incorrectly treat these 
notifications as interruptions.

Sent from my Windows Phone

From: Zachary Waremailto:rep...@bugs.python.org
Sent: ‎7/‎8/‎2014 15:45
To: Steve Dowermailto:steve.do...@microsoft.com
Subject: [issue20513] Python 2.7. Script interruption on logoff from 0 session 
under Win2003 and earlier

Zachary Ware added the comment:

Windows Server 2003, XP, and 2000 are all officially supported by Python 2.7, 
as they were all current (for certain values of current) at the time Python 
2.7 was released.

That said, it's not completely clear to me what the bug is but it strikes me as 
being something that's not all that likely to be hit, and either way about it, 
I don't have any way to test it.

--

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

--
title: Python 2.7. Script interruption on logoff from 0 session under Win2003 
and earlier - Python 2.7. Script interruption on logoff from 0 session   under 
Win2003 and earlier

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



[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-08 Thread Josh Rosenberg

Josh Rosenberg added the comment:

Looking at a single lookup performed over and over isn't going to get you a 
very good benchmark. If your keys are constantly reused, most of the losses 
won't show themselves. A more fair comparison I've used before is the 
difference between using the bytes object produced by bytes.maketrans as the 
mapping object for str.translate vs. using the dictionary produced by 
str.maketrans. That gets you the dynamically generated lookups that don't hit 
the dict optimizations for repeatedly looking up the same key, don't 
predictably access the same memory that never leaves the CPU cache, etc.

Check the timing data I submitted with #21118; the exact same translation 
applied to the same input strings, with the only difference being whether the 
table is bytes or dict, takes nearly twice as long using a dict as it does 
using a bytes object. And the bytes object isn't actually being used 
efficiently here; str.translate isn't optimized for the buffer protocol or 
anything, so it's constantly retrieving the cached small ints; a tuple might be 
even faster by avoiding that minor additional cost.

--

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



[issue21941] Clean up turtle TPen class

2014-07-08 Thread ingrid

New submission from ingrid:

There are a lot of methods in the TPen class that are defined but not used 
because all the child classes overwrite almost all the functions and TPen 
itself isn't used directly a whole lot. This patch removes the unused code so 
it's less confusing to read turtle.py.

--
components: Library (Lib)
files: TPen_cleanup.patch
keywords: patch
messages: 222598
nosy: ingrid, jesstess
priority: normal
severity: normal
status: open
title: Clean up turtle TPen class
type: enhancement
versions: Python 3.5
Added file: http://bugs.python.org/file35909/TPen_cleanup.patch

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



[issue21942] pydoc source not displayed in browser on Windows

2014-07-08 Thread Eric Galloway

New submission from Eric Galloway:

In Python 3 on Windows, pydoc fails to display source file listings in the 
browser.

To reproduce in Python 3.4:

   1. start pydoc:
   
   python -m pydoc -p 

   2. Navigate to the url: 
   
   http://127.0.0.1:/getfile?key=///C:/python34/lib/pydoc.py

The error message:

getfile?key=///C:/python34/lib/pydoc.py
FileNotFoundError: [Errno 2] No such file or directory: 
'///C:/python34/lib/pydoc.py'

The url passed to html_getfile needs to be converted into a NT pathname.

--
components: Library (Lib)
files: diff.txt
messages: 222599
nosy: Eric.Galloway
priority: normal
severity: normal
status: open
title: pydoc source not displayed in browser on Windows
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35910/diff.txt

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



[issue6931] dreadful performance in difflib: ndiff and HtmlDiff

2014-07-08 Thread Raymond Hettinger

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


--
nosy: +tim.peters

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