[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Martin Panter

Martin Panter added the comment:

Added a new test for the invalid response case. Now both tests are included in 
test2.patch.

I separated the actual fix into a separate close3.4.patch (refreshed for the 
3.4 branch). This way it is easier for me to make sure the tests work before 
applying the fix, but it should be easy to combine the patches again if you 
prefer it that way.

--
Added file: http://bugs.python.org/file35981/close3.4.patch

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Martin Panter

Changes by Martin Panter :


Added file: http://bugs.python.org/file35980/test2.patch

___
Python tracker 

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



[issue3068] IDLE - Add an extension configuration dialog

2014-07-16 Thread Ned Deily

Ned Deily added the comment:

Tal, I'm working on something to make that easier.

--

___
Python tracker 

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



[issue3068] IDLE - Add an extension configuration dialog

2014-07-16 Thread Tal Einat

Tal Einat added the comment:

Bah, my original message was truncated!

I could use some help figuring out how to test with various Tk versions. I have 
a Mac with OSX 10.8, and I've found the "IDLE and tkinter with Tcl/Tk on Mac OS 
X" page[1], but I'm still not sure how to actually go about installing and 
running IDLE with the different versions.

--

___
Python tracker 

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



[issue21868] Tbuffer in turtle allows negative size

2014-07-16 Thread Jessica McKellar

Changes by Jessica McKellar :


--
keywords: +needs review
stage:  -> patch review

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Ezio Melotti

Changes by Ezio Melotti :


--
stage: patch review -> resolved

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Guido van Rossum

Guido van Rossum added the comment:

(Had to switch identities to close it.)

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Guido van Rossum

Guido van Rossum added the comment:

I don't see the value in this complication. Please close as won't fix.

--
nosy: +Guido.van.Rossum

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Tim Peters

Tim Peters added the comment:

I'm afraid "microoptimizations" aren't worth measuring to begin with, since, 
well, they're "micro" ;-)  Seriously, switch compilers, compilation flags, or 
move to a new release of a single compiler, and a micro-optimization often 
turns into a micro-pessimization.  If I _want_ to measure something unrolled, 
I'll unroll it myself.  But since I almost never want to measure something 
unrolled anyway, an option to do so would just be "yet another attractive 
nuisance" to me.

--

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
nosy: +gvanrossum, rhettinger, tim.peters

___
Python tracker 

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



[issue18355] Merge super() guide into documentation

2014-07-16 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue18355] Merge super() guide into documentation

2014-07-16 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I'll translate it into a How-to guide when I get a chance.  Right now, the 
content is in great shape, but the tone is somewhat "blog-posty".  For now, the 
external link will have to suffice.

--
priority: normal -> low

___
Python tracker 

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



[issue17101] __main__.py Multiprocessing on Windows

2014-07-16 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +sbt

___
Python tracker 

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



[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Berker Peksag

Berker Peksag added the comment:

Fixed. Thanks for the report.

--
assignee: docs@python -> berker.peksag
nosy: +berker.peksag
resolution:  -> fixed
stage:  -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0045eec1e247 by Berker Peksag in branch '3.4':
Issue #21994: Fix SyntaxError in the SSLContext.check_hostname documentation.
http://hg.python.org/cpython/rev/0045eec1e247

New changeset 8039a20b18cc by Berker Peksag in branch 'default':
Issue #21994: Merge with 3.4.
http://hg.python.org/cpython/rev/8039a20b18cc

--
nosy: +python-dev

___
Python tracker 

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



[issue1598] unexpected response in imaplib

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

Has this been determine as a server bug or a bug with imaplib? I am not able to 
reproduce this bug with Gmail. Do I need to use it with Lotus Server to 
recreate it?

--
nosy: +Lita.Cho

___
Python tracker 

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



[issue18320] python installation is broken if prefix is overridden on an install target

2014-07-16 Thread Ned Deily

Ned Deily added the comment:

The problem you see is being caused by trying to override "prefix" on the 
"altinstall" or "install" targets.  While Makefiles for many products will let 
you do that successfully, you really can't do that with Python's.  
Unfortunately, the values for "prefix" and "exec_prefix" specified (or 
defaulted) on ./configure are used during the main make build targets.  This 
includes the customization of the shebangs lines for the scripts like "idle" 
and "pydoc".  If you change the "prefix" value for the "install" phase, most 
files do get installed at the changed location but there are various places 
where the original, configured values remain.  You can see this if you run 
"python -m sysconfig" and examine the prefix values.  One result is that any 
scripts installed via Distutils (including using pip) will get installed to the 
configured location, e.g. default /usr/local/bin.  This also affects ensurepip 
(new in 3.4): the pip and easy_install scripts are installed in the configured 
value of p
 refix, e.g. /usr/local/bin, rather than the overridden value.  That's not good.

Changing prefix on the install targets seems like a fairly esoteric use case 
and one with an easy workaround: don't do that, use ./configure 
--prefix=/path/to instead.  I don't think it's worth trying to support since it 
may require some major Makefile work to get all the right dependencies.  But, 
at a minimum, it would be worth adding a test to the various install targets 
that would check and abort if prefix is attempted to be changed so you don't 
end up with a silently broken installation.

--
components: +Build
keywords: +easy
nosy: +ned.deily
stage:  -> needs patch
title: idle, pydoc search python on wrong path at make altinstall with 
different exec- and prefix e.g. $HOME -> python installation is broken if 
prefix is overridden on an install target

___
Python tracker 

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



[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver

Thomas Kluyver added the comment:

This page also looks relevant: sqlite can be compiled or used in three 
different threading modes. Presumably Python compiles/initialises it in the 
serialised mode, which makes it safe to use a connection from different threads.

http://www.sqlite.org/threadsafe.html

--

___
Python tracker 

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



[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Thomas Kluyver

Thomas Kluyver added the comment:

The module docs do mention "Older SQLite versions had issues with sharing 
connections between threads." Presumably that means that sharing the connection 
between threads is safe so long as you're not using 'older versions', but it 
would be nice to have some more clarity about how old those versions are.

--

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

Updated my regex patch to include a comment about how we are violating the RFC 
and allowing all characters rather thane excluding the ] character.

--
Added file: http://bugs.python.org/file35979/imap_regex.patch

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

Updated the documentation in imaplib.rst to describe the RFC violation.

--
versions:  -Python 3.4, Python 3.5
Added file: http://bugs.python.org/file35978/imap_doc.patch

___
Python tracker 

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



[issue13837] test_shutil fails with symlinks enabled under Windows

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

I've asked for patch reviews on #9949 and #15411.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue15411] os.chmod() does not follow symlinks on Windows

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a patch review on this please as it's holding up #13837.

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

___
Python tracker 

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



[issue9949] os.path.realpath on Windows does not follow symbolic links

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Zach can you do a patch review on this as it's holding up #13837 ?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue13041] argparse: terminal width is not detected properly

2014-07-16 Thread paul j3

paul j3 added the comment:

The latest patch, using _shutil.get_terminal_size(), looks fine.  

It lets environ['COLUMNS'] have priority over the end user's terminal width, as 
demonstrated by the change to test_argparse.  test_argparse doesn't test 
changing the actual terminal size, but I imagine that would be a pain to 
implement.

--

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

Here is a patch for test_imaplib.py, adding the test for brackets. It should 
fail with the current version of imaplib, but should pass with the 
imap_regex.patch.

--
Added file: http://bugs.python.org/file35977/test_imaplib.patch

___
Python tracker 

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



[issue10305] Cleanup up ResourceWarnings in multiprocessing

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

I've looked at managers.py and can't see any evidence that the sockets are ever 
closed.  Please check this out as I can't believe that a technical problem like 
this could have been around for so long without someone else spotting it during 
testing, thus meaning that my eyesight is deficient.

--
nosy: +BreamoreBoy, jnoller, sbt
versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.2

___
Python tracker 

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



[issue18330] Fix idlelib.PyShell.build_subprocess_arglist use of __import__

2014-07-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

The problem with touching this stuff is that there is not only not an automatec 
test, there is not even a script for a manual test.

--

___
Python tracker 

___
___
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-16 Thread ingrid

ingrid added the comment:

Ah, I think I was mistaken about some things when I made the first patch but it 
looks like TPen have a few methods that don't work as you'd expect. Since 
_colorstr isn't implemented on TPen fillcolor and pencolor pen don't work as 
intended when you call them directly from TPen. Jesstess suggested raising a 
NotImplementedError on these functions. Would that be a good change to make?

--

___
Python tracker 

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



[issue18320] idle, pydoc search python on wrong path at make altinstall with different exec- and prefix e.g. $HOME

2014-07-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

3.3 only gets security fixes.

This looks to be a linux altinstall installation problem rather than an idle 
problem. Idle and pydoc only start if Python starts first.  One way to start 
idle is to start Python and then enter 'import idlelib.idle'.

How did you start python that worked.
How did you try to start idle or pydoc that failed.

--
components: +Installation -IDLE
versions: +Python 3.4, Python 3.5 -Python 3.3

___
Python tracker 

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



[issue21995] Idle: pseudofiles have no buffer attribute.

2014-07-16 Thread Terry J. Reedy

New submission from Terry J. Reedy:

sys.stdin on 3.4.1 is also 'missing' (among public names) 'line_buffering' 
(True) and 'mode' ('r'). It seems that these could be trivially added, so the 
focus of this issue is 'buffer'. The associated 
.detach method is a no-op, (It is also a bit dangerous for interactive 
operation.)

3.4.1 Console interpreter:
>>> import sys; b = sys.stdin.buffer.readline()
a line
>>> b
b'a line\r\n'

3.4.1 Idle:
>>> import sys; b = sys.stdin.buffer.readline()
Traceback (most recent call last):
  File "", line 1, in 
import sys; b = sys.stdin.buffer.readline()
AttributeError: 'PseudoInputFile' object has no attribute 'buffer'

https://docs.python.org/3/library/sys.html#sys.stdin
presents the idiom. It also warns (too narrowly -- 'if you are writing a 
library ...') that it might not.

As far as I could find, the Idle doc does not mention the standard streams, let 
alone Idle specific limitations.

I intentionally wrote the title as a statement of a problematical situation, 
rather than as a proposed solution, as there are two: change code and change 
doc.

Code: add .buffer as a bytes-oriented Pseudofile.

Doc: at least mention that standard streams are replaced by objects that ship 
text between processes, and use gui for input and display, and the consiquences 
of this.

--
assignee: docs@python
components: Documentation, IDLE
messages: 223292
nosy: docs@python, terry.reedy
priority: normal
severity: normal
stage: test needed
status: open
title: Idle: pseudofiles have no buffer attribute.
type: enhancement
versions: Python 2.7, Python 3.4, Python 3.5

___
Python tracker 

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



[issue21994] Syntax error in the ssl module documentation

2014-07-16 Thread Alex Gaynor

New submission from Alex Gaynor:

This can be seen at 
https://docs.python.org/3.4/library/ssl.html#ssl.SSLContext.check_hostname

It looks like the colon should be omitted, and the next line un-indented.

--
assignee: docs@python
components: Documentation
keywords: easy
messages: 223291
nosy: alex, christian.heimes, docs@python, dstufft, giampaolo.rodola, janssen, 
pitrou
priority: normal
severity: normal
status: open
title: Syntax error in the ssl module documentation
versions: Python 3.4, Python 3.5

___
Python tracker 

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



[issue14689] make PYTHONWARNINGS variable work in libpython

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a patch review please, I'm not touching C code at that level within 
Python.  Are people happy with the concept of moving code from main.c to 
pythonrun.c ?

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

___
Python tracker 

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



[issue14285] Traceback wrong on ImportError while executing a package

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

I've no idea what having a file called __main__.py is likely to do so can 
someone comment please.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier

Wolfgang Maier added the comment:

Right, forgot about that.

The consequence for the example is still far from satisfying, I think, but you 
can't change it without breaking compatibility then.

Thanks for the quick reply,
Wolfgang

--

___
Python tracker 

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



[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Ezio Melotti

Ezio Melotti added the comment:

'a' evaluates to true, but it's not equal to True:
  >>> bool('a')
  True
  >>> 'a' == True
  False
but 1 and True are equal (for historical reasons):
  >>> 1 == True
  True

Similarly '' evaluates to false, but it's not equal to False:
  >>> bool('')
  False
  >>> '' == False
  False
whereas 0 is equal to False:
  >>> 0 == False
  True

--

___
Python tracker 

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



[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier

Wolfgang Maier added the comment:

No, it's not that simple and I don't think this should be closed:

In my example:
>>> l = ['a', '', {}, 2.7, 1, 0, False, True]
>>> l.index(True)
4
>>> l.index(False)
5

if using __eq__ consistently, you'd expect the first call to return 0 and the 
second 1 (since the empty string evaluates to False).

--

___
Python tracker 

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



[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Ezio Melotti

Ezio Melotti added the comment:

It's using __eq__:
>>> l = [3, 1.0, 5, True, 7, 1]
>>> l.index(1)
1
>>> l.index(True)
1
>>> l.index(1.0)
1
>>> True == 1 == 1.0
True

--
nosy: +ezio.melotti
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue21993] counterintuitive behavior of list.index with boolean values

2014-07-16 Thread Wolfgang Maier

New submission from Wolfgang Maier:

>>> l = [False, True]
>>> l.index(True)
1
>>> l.index(False)
0

good, but:

>>> l = ['a', '', {}, 2.7, 1, 0, False, True]
>>> l.index(True)
4
>>> l.index(False)
5

Apparently, True and False get converted to int in comparisons to ints.
I would expect items to be compared either by:

a) object identity or
b) __eq__

but not this inconsistently.

Best,
Wolfgang

--
components: Interpreter Core
messages: 223284
nosy: wolma
priority: normal
severity: normal
status: open
title: counterintuitive behavior of list.index with boolean values
type: behavior
versions: Python 3.4

___
Python tracker 

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



[issue21935] Implement AUTH command in smtpd.

2014-07-16 Thread Milan Oberkirch

Milan Oberkirch added the comment:

We could solve issue 8503 at the same time by always calling 
'accept_recipient(mailfrom, rcptto, user=None)' and providing a default 
implementation for backwards compatibility.

--

___
Python tracker 

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



[issue18392] Doc: PyObject_Malloc() is not documented

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Any volunteers to document what appears to be a relatively obscure function :)

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

___
Python tracker 

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




[issue18330] Fix idlelib.PyShell.build_subprocess_arglist use of __import__

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Terry just a reminder for yourself and your band of merry men and women.

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

___
Python tracker 

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



[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Committed with rewritten tests. Thank you for your contribution Martin.

> I ran into a related issue with the gettarinfo() method. Would that fall 
> under the scope of this bug, or should I raise a separate one?

Yes, this looks as a separate bug.

--
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed
versions: +Python 2.7

___
Python tracker 

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



[issue21918] Convert test_tools to directory

2014-07-16 Thread Zachary Ware

Zachary Ware added the comment:

Sure, I'll work on that some time this week.

--

___
Python tracker 

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



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

2014-07-16 Thread R. David Murray

R. David Murray added the comment:

Oh, that's a good point, I hadn't thought of that.  Maybe I can come up with a 
better wording.

--

___
Python tracker 

___
___
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-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Thanks for your patch. Do you want to correct test_json's and others 
load_tests?

--

___
Python tracker 

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



[issue18320] idle, pydoc search python on wrong path at make altinstall with different exec- and prefix e.g. $HOME

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Terry is this something you can comment on please?

--
nosy: +BreamoreBoy, terry.reedy

___
Python tracker 

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



[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Claudiu Popa

Changes by Claudiu Popa :


--
nosy: +Claudiu.Popa

___
Python tracker 

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



[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 308f3c1e36d3 by Serhiy Storchaka in branch '2.7':
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
http://hg.python.org/cpython/rev/308f3c1e36d3

New changeset d6b71971b228 by Serhiy Storchaka in branch '3.4':
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
http://hg.python.org/cpython/rev/d6b71971b228

New changeset 4c2f3240ad65 by Serhiy Storchaka in branch 'default':
Issue 21044: tarfile.open() now handles fileobj with an integer 'name'
http://hg.python.org/cpython/rev/4c2f3240ad65

--
nosy: +python-dev

___
Python tracker 

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



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

2014-07-16 Thread Milan Oberkirch

Milan Oberkirch added the comment:

Agreed. It just feels a bit weird to send programming instructions for the 
server to the client (but it's probably the best we can do here).

--

___
Python tracker 

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



[issue13540] Document the Action API in argparse

2014-07-16 Thread Jason R. Coombs

Jason R. Coombs added the comment:

That's interesting that there's activity on this again. I had forgotten I'd 
filed it. It's particularly timely, as I just yesterday had this experience 
again. I looked at the documentation and found it inadequate for me to 
understand how to implement a custom action, so I went to the source to figure 
it out. The action I ended up creating was this one:

class SandboxAction(argparse.Action):
def __init__(self, *args, **kwargs):
super().__init__(*args, nargs=0, **kwargs)

def __call__(self, *args, **kwargs):
cls.use()

Where 'cls' is defined in the same scope where SandboxAction was defined. I'm 
not sure if my documentation patch would have been sufficient to allow me to 
write that Action without consulting the source, but this example represents 
another case where that should be possible.

I haven't made any tweaks to the patch as a result of Steven's comments, so I 
probably could do that. I don't now when I'll have the time to do that, but 
I'll keep a tab to remind me to revisit the issue again.

--

___
Python tracker 

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



[issue21059] idle_test.test_warning failure

2014-07-16 Thread Zachary Ware

Zachary Ware added the comment:

I believe I eventually figured out the reason for the failure, it had to do 
with the fact that the Tcl/Tk DLLs were copied into PCbuild to avoid adding 
..\tcltk[64]\bin to PATH and the persistent issue that tkinter._fix changes 
environment variables to make init.tcl findable, while regrtest unsets those 
variables at the end of each test.  The issue is successfully worked around in 
test[-amd64].bat, and should be fixed by #20035 (once reviewed :)).

Closing this issue.

--
dependencies:  -Clean up Tcl library discovery in Tkinter on Windows
resolution:  -> duplicate
stage:  -> resolved
status: open -> closed
superseder:  -> Clean up Tcl library discovery in Tkinter on Windows

___
Python tracker 

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



[issue18355] Merge super() guide into documentation

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Raymond what is your opinion on this proposal?

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

___
Python tracker 

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



[issue14945] Setup & Usage documentation for selected stdlib modules

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Where do we stand with this and #11260 ?

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

___
Python tracker 

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



[issue11260] smtpd-as-a-script feature should be documented and should use argparse

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Where do we stand with this and #14945 ?

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

___
Python tracker 

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



[issue13850] Summary tables for argparse add_argument options

2014-07-16 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag

___
Python tracker 

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



[issue15968] Incorporate Tcl/Tk/Tix into the Windows build process

2014-07-16 Thread Zachary Ware

Zachary Ware added the comment:

Terry: the difference you saw between using regrtest and using unittest.main 
from the interactive prompt was because of regrtest.saved_test_environment: 
tkinter._fix sets environment variables at the beginning of one test which are 
cleared at the end by saved_test_environment, and not reset at the beginning of 
the next.  #20035 has my preferred fix for that situation.

Mark: Glad this helped, and thanks for the ping.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



[issue21992] New AST node Else() should be introduced

2014-07-16 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +benjamin.peterson

___
Python tracker 

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



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

2014-07-16 Thread R. David Murray

R. David Murray added the comment:

No, I think the error return is better.  Crashing the server on bad input data 
(which, worse, could be perfectly valid if the server were standards compliant) 
is a bad thing, I think.  That is, if someone has an application that actually 
works with decode_data=True, I think it is better if it doesn't crash just 
because of different input data or TCP packet boundaries, as long as the error 
is reported.  I'm willing to be convinced otherwise, but that's how I'm leaning.

--

___
Python tracker 

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



[issue19355] Initial modernization of OpenWatcom support

2014-07-16 Thread Jeffrey Armstrong

Jeffrey Armstrong added the comment:

This patch is so old at this point, it doesn't apply.  Obviously its contents 
are of no interest to anyone.

--
resolution:  -> wont fix
status: open -> closed

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

Okay, sounds good. I will also create a patch in the documentation that 
explains this, as well as comment on the regex patch.

--

___
Python tracker 

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



[issue13041] argparse: terminal width is not detected properly

2014-07-16 Thread Berker Peksag

Changes by Berker Peksag :


--
nosy: +berker.peksag
type: behavior -> enhancement
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-07-16 Thread Brendan Moloney

Brendan Moloney added the comment:

Here is a script illustrating the issue.

--
Added file: http://bugs.python.org/file35976/tarfile_issue.py

___
Python tracker 

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



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

2014-07-16 Thread Milan Oberkirch

Milan Oberkirch added the comment:

Note that in this (and my previous) patch the message is sent to the client 
(the idea was not to raise an exception). Maybe it would be better to raise an 
exception with the information you mentioned?

--
Added file: 
http://bugs.python.org/file35975/smtpd_undecodable_data_does_not_raiseV2.patch

___
Python tracker 

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



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

2014-07-16 Thread Zachary Ware

Zachary Ware added the comment:

I think a pyvenv.exe would be overkill, but I think it would be reasonable to 
install the pyvenv script to \Scripts rather than 
\Tools\Scripts, possibly as both 'pyvenv.py' and 'pyvenv-X.Y.py'.  
Personally, I still prefer 'py -3 -m venv', but I understand the argument that 
that's not enough.

--

___
Python tracker 

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



[issue17924] Deprecate stat.S_IF* integer constants

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Should this have the same nosy list as #11016 ?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue17391] _cursesmodule Fails to Build on GCC 2.95 (static)

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Can we have a review of the one line patch please.

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

___
Python tracker 

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



[issue21044] tarfile does not handle file .name being an int

2014-07-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

___
___
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-16 Thread Zachary Ware

Zachary Ware added the comment:

Committed, thanks for the reviews!

I had modeled load_tests after test_json's load_tests.  The idiom used in 
test_email causes a warning from regrtest about sys.path being modified, so I 
modified the idiom slightly and used that.  I have declined to backport the 
patch to 2.7; it's more trouble than it's worth to me.

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

___
Python tracker 

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



[issue21918] Convert test_tools to directory

2014-07-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset e69f037332a6 by Zachary Ware in branch '3.4':
Issue #21918: Convert test_tools.py to a sub-package of test.
http://hg.python.org/cpython/rev/e69f037332a6

New changeset 1d0ca204c36f by Zachary Ware in branch 'default':
Issue #21918: Convert test_tools.py to a sub-package of test.
http://hg.python.org/cpython/rev/1d0ca204c36f

--
nosy: +python-dev

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
assignee:  -> serhiy.storchaka

___
Python tracker 

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



[issue19524] ResourceWarning when urlopen() forgets the HTTPConnection object

2014-07-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM. Do you want to write a test for the case when an invalid response is 
received?

--
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2014-07-16 Thread Olaf Hartmann

Olaf Hartmann added the comment:

Answering my own question, here is a workaround, that also produces reasonable 
results for the original test case. Basically just inserting an empty struct:

import ctypes

class Empty(ctypes.Structure):
_fields_ = []

class Struct(ctypes.Structure):
_fields_ = [
("uint8_0", ctypes.c_uint8, 8),
("uint8_1", ctypes.c_uint8, 8),
("_ignore", Empty),
("uint16_0", ctypes.c_uint16, 1),
("uint16_1", ctypes.c_uint16, 15),
]

for f in Struct._fields_:
print f[0], getattr(Struct, f[0])

> python bitfield.py
uint8_0 
uint8_1 
_ignore 
uint16_0 
uint16_1 

--

___
Python tracker 

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



[issue18144] FD leak in urllib2

2014-07-16 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
resolution:  -> duplicate
status: open -> closed
superseder:  -> test_urllib2net is triggering a ResourceWarning

___
Python tracker 

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



[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Claudiu Popa

Claudiu Popa added the comment:

TypeError is raised only in Python 2, in Python 3 it's PicklingError.

--

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread R. David Murray

R. David Murray added the comment:

Postel's Law says: be conservative in what you do, be liberal in what you 
accept from others.  So the client should not violate the RFC when sending data 
to the server.  The server, on the other hand, by that law could accept "dirty" 
data if it can do something reasonable with it...except that in general the 
IMAP RFC in particular says "don't do that".  IMAP servers are supposed to be 
IMAP RFC sticklers, even when accepting input.  So gmail is broken for some 
definition of broken, and so is imaplib.

Since the code has been this way for a long time, and gmail does in fact accept 
it, I think a doc warning about []s violating the RFC should be sufficient; a 
warning would probably just be annoying to little real benefit.

--
versions: +Python 3.4, Python 3.5

___
Python tracker 

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



[issue17750] allow the testsuite to run in the installed location

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

How do we stand with eight outstanding issues here?

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

___
Python tracker 

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



[issue17243] The changes made for issue 4074 should be documented

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Presumably the responsibility for this lies with the person who made the 
changes for #4074 ?

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

___
Python tracker 

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



[issue15119] ctypes mixed-types bitfield layout nonsensical; doesn't match compiler.

2014-07-16 Thread Olaf Hartmann

Olaf Hartmann added the comment:

I just run into this issue, so i'll bump it with another test case:

import ctypes

class Struct(ctypes.Structure):
_fields_ = [
("uint8_0", ctypes.c_uint8, 8),
("uint8_1", ctypes.c_uint8, 8),
("uint16_0", ctypes.c_uint16, 1),
("uint16_1", ctypes.c_uint16, 15),
]

for f in Struct._fields_:
print f[0], getattr(Struct, f[0])

> python bitfield.py 
uint8_0 
uint8_1 
uint16_0 
uint16_1 


Originally tested with Python 2.7.3, but also confirmed with later versions.

Is there any workaround by specifying ofs and bits manually?

--
nosy: +wbu
versions: +Python 2.7

___
Python tracker 

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



[issue13850] Summary tables for argparse add_argument options

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

At a quick glance the patch looks okay to me so as there's been a lot of 
positive comments can we have a formal patch review please.

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

___
Python tracker 

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



[issue20394] Coverity complains on audioop

2014-07-16 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Christian, what about 2.7?

--
status: open -> pending
versions:  -Python 3.3, Python 3.4

___
Python tracker 

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



[issue21955] ceval.c: implement fast path for integers with a single digit

2014-07-16 Thread Case Van Horsen

Changes by Case Van Horsen :


--
nosy: +casevh

___
Python tracker 

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



[issue10818] pydoc: Remove old server and tk panel

2014-07-16 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 2e578b80c2f3 by Zachary Ware in branch '3.4':
Remove Tools/scripts/pydocgui.pyw.
http://hg.python.org/cpython/rev/2e578b80c2f3

--

___
Python tracker 

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



[issue17101] __main__.py Multiprocessing on Windows

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Is it possible to backport the fix from #10845 to 2.7?  Is it actually worth 
doing?

--
components: +Library (Lib)
nosy: +BreamoreBoy
versions:  -Python 2.6

___
Python tracker 

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



[issue21935] Implement AUTH command in smtpd.

2014-07-16 Thread Milan Oberkirch

Milan Oberkirch added the comment:

Done. I added the keyarg 'enable_AUTH' and two abstract methods to the server:
process_auth(user, password) for authentication and accept_recipient(user, 
mailfrom, rcptto) for authorization.

--
Added file: http://bugs.python.org/file35974/smtpd_AUTH_full.patch

___
Python tracker 

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



[issue16509] sqlite3 docs do not explain check_same_thread

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Daniel could you provide a patch for this?

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21765] Idle: make 3.x HyperParser work with non-ascii identifiers.

2014-07-16 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution:  -> fixed
stage: test needed -> resolved
status: open -> closed

___
Python tracker 

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



[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

ppperry: Component Windows (or Macintosh) means Windows (or Mac) specific.  The 
rpc code is general to all systems.

--

___
Python tracker 

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



[issue17057] Data model documentation grammar

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

I'm not particularly interested in 2.7 documentation but is there anybody out 
there who could review this please.

--
nosy: +BreamoreBoy

___
Python tracker 

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



[issue21986] Pickleability of code objects is inconsistent

2014-07-16 Thread Terry J. Reedy

Terry J. Reedy added the comment:

There is no unittest module for rpc yet.

Should the pickle test include a test that pickling a code object fails, and 
with the proper exception?  Is ppperry correct about PicklingError?

Chainmap is new in 3.3 so 2.7 would need the copy version of the patch.

--
components: +IDLE -Library (Lib), Windows

___
Python tracker 

___
___
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-16 Thread eryksun

eryksun added the comment:

> PS C:\Users\jaraco> echo £ | py -3 -c "import sys; 
> print(repr(sys.stdin.buffer.read()))"
> b'?\r\n'

> Curiously, it appears as if powershell is actually receiving 
> a question mark from the pipe.

PowerShell calls ReadConsoleW to read the console input buffer, i.e. it reads 
"£" as a wide character from the command line. The default encoding when 
writing to the pipe should be ASCII [*]. If that's the case it explains the 
question mark that Python reads from stdin. It's the default replacement 
character (WC_DEFAULTCHAR) used by WideCharToMultiByte. 

[*] 
http://blogs.msdn.com/b/powershell/archive/2006/12/11/outputencoding-to-the-rescue.aspx

You can change PowerShell's output encoding to match the console:

$OutputEncoding = [Console]::OutputEncoding

If the console codepage is 65001, the above is equivalent to setting 

$OutputEncoding = [System.Text.Encoding]::UTF8

http://msdn.microsoft.com/en-us/library/system.text.encoding.utf8

As Victor mentioned, this setting always writes a BOM, and under codepage 65001 
it actually writes 2 BOMs (at least in PowerShell 2). Victor also mentioned 
that you can avoid the BOM by passing $False to the constructor:

$OutputEncoding = New-Object System.Text.UTF8Encoding($False)

http://msdn.microsoft.com/en-us/library/system.text.utf8encoding

There's still a BOM under codepage 65001, but maybe that's fixed in PowerShell 
3. 

I avoid setting the console to codepage 65001 anyway. ReadFile/WriteFile 
incorrectly return the number of characters read/written instead of the number 
of bytes because the call is actually handled by ReadConsoleA/WriteConsoleA. 
Maybe that's finally fixed in Windows 8.

--
nosy: +eryksun

___
Python tracker 

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



[issue21815] imaplib truncates some untagged responses

2014-07-16 Thread Lita Cho

Lita Cho added the comment:

>
> R. David Murray added the comment:
>
> Just to make sure I understand: the issue is that gmail may produce flags
> with [] in them, and imaplib currently fails to process such flags when it
> receives them from gmail?
>
> This is correct. Gmail allows you to create flags with [], and the
Response_code regex doesn't process them properly.

> In principle I think we would not want to allow imaplib to be used to
> create such flags unless the user specifies some sort of "I want to violate
> the RFC" flag (which they might want to do, for example, to run tests
> against gmail :)  But currently it looks like it can?  (I haven't looked at
> this in enough detail to be sure.)  If that's true we probably have to
> continue to allow it for backward compatibility reasons, but we should
> document the RFC violation and possible consequences (an IMAP server
> rejecting such flags).
>
> Yes, currently we can. I've posted the code in order to do this. This is
basically the result.

>>> first_id = msg_ids.split()[0]
>>> mail.store(first_id, "+FLAGS", "[test]")
('OK', [b'1 (FLAGS (\\Seen Answered [test] NotJunk $NotJunk [Brackets]
[testing2]))'])

However, I would think it would be the server's job to uphold this rule,
not the library. The server should return with a BAD response, but right
now, Gmail allows you to do this.

Should we throw a warning in the "store" method? Otherwise, I can update
the documenation in the "store" method stating that having '[]' is allowed
but violates the RFC protocol.

> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue21988] Decrease iterating overhead in timeit

2014-07-16 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Le 16/07/2014 12:43, Steven D'Aprano a écrit :
>
> I would *much* rather a parameter to timeit which controls whether or
> not to unroll, rather than timeit trying to guess whether you want it to
> unroll or not. PyPy can default to off, CPython to on, and other
> implementations can choose whichever default makes sense for them.

I think it is overkill. Apart from rather silly microbenchmarks, there 
isn't much point in adding the loop unrolling facility. In real world, 
even cheap operations such as "x = x + 1" will be surrounded by less 
cheap operations, so if an improvement cannot yield tangible benefits 
inside a simple for loop, then it doesn't deserve to be committed.

--

___
Python tracker 

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



[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Alex Gaynor

Changes by Alex Gaynor :


--
keywords: +needs review

___
Python tracker 

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



[issue21990] saxutils defines an inner class where a normal one would do

2014-07-16 Thread Ned Deily

Changes by Ned Deily :


--
nosy: +christian.heimes

___
Python tracker 

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



[issue13540] Document the Action API in argparse

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Paul what is your opinion of this documentation patch?

--
nosy: +BreamoreBoy, paul.j3
versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3

___
Python tracker 

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



[issue17026] pdb frames accessible after the termination occurs on uncaught exception

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

Nosy list set according to experts page.

--
nosy: +BreamoreBoy, georg.brandl
versions: +Python 3.5 -Python 3.3

___
Python tracker 

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



[issue10048] urllib.request documentation confusing

2014-07-16 Thread Mark Lawrence

Mark Lawrence added the comment:

@Senthil do you still intend to run with this or could somebody else pick it up?

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

___
Python tracker 

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



[issue21247] test_asyncio: test_subprocess_send_signal hangs on Fedora builders

2014-07-16 Thread STINNER Victor

STINNER Victor added the comment:

Here is a patch implementing a basic synchronization between the parent and the 
child processing, to wait until the child is sleeping.

Can you please try this patch?

If it doesn't work, we might add a small sleep of 500 ms after the readline().

--
keywords: +patch
Added file: http://bugs.python.org/file35973/test_send_signal.patch

___
Python tracker 

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



[issue21985] test_asyncio prints some junk

2014-07-16 Thread STINNER Victor

STINNER Victor added the comment:

I fixed last warnings in tests ran in debug mode. I close the issue.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

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



  1   2   >