[issue21926] Bundle C++ compiler with Python on Windows

2014-07-06 Thread Ben Lucato

New submission from Ben Lucato:

I am wondering if it is at all on the roadmap to bundle a C compiler with 
Python on Windows, given that installing libraries with C extensions is very 
confusing on Windows.

For example, to install NumPy on Windows you end up either having to download 
the right version of Visual Studio or install it from the list of precompiled 
libraries at http://www.lfd.uci.edu/~gohlke/pythonlibs/. The problem is, either 
of those solutions feel quite bloated and aren't easily apparent when searching 
for fixes online.

BTW, since this is my first issue I looked around for a guide on how to submit 
issues but I couldn't find one - so I hope I'm raising it right.

--
components: Windows
messages: 222395
nosy: Ben.Lucato
priority: normal
severity: normal
status: open
title: Bundle C++ compiler with Python on Windows
versions: Python 3.5

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



[issue9554] test_argparse.py: use new unittest features

2014-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset f240ca6345c8 by Berker Peksag in branch 'default':
Issue #9554: Use modern unittest features in test_argparse.
http://hg.python.org/cpython/rev/f240ca6345c8

--
nosy: +python-dev

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



[issue9554] test_argparse.py: use new unittest features

2014-07-06 Thread Berker Peksag

Berker Peksag added the comment:

Thanks Denver and Radu. And thanks for the review, Ezio.

--
assignee:  - berker.peksag
resolution:  - fixed
stage: commit review - resolved
status: open - closed

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



[issue2403] Add figleaf coverage metrics

2014-07-06 Thread Berker Peksag

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


--
status: open - closed

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



[issue21597] Allow turtledemo code pane to get wider.

2014-07-06 Thread Lita Cho

Lita Cho added the comment:

Hey Terry,

So the reason why the tearing is a lot slower in 06/09 patch is because the 
canvas is using the turtle.ScrolledCanvas widget. Everytime the window resizes, 
it is calling a callback to `onResize` - `adjustScrolls` to update the 
scrollbars. When I comment out that binding in turtle.py (line 358) it still 
tears, but it snaps back a lot quicker.

The main widget is already a 2x2 grid (ScrolledCanvas). I tried just returning 
the ScrolledCanvas, but that didn't work either.

I will try to ask in stackoverflow tomorrow and seeing what they say!

--

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



[issue14121] add a convenience C-API function for unpacking iterables

2014-07-06 Thread Stefan Behnel

Stefan Behnel added the comment:

Ok. This has been idling long enough to just close it.

--
resolution:  - rejected
status: open - closed

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



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Ned Deily

Ned Deily added the comment:

Thanks for the patch, Alex, and sorry about the bug.  The fix looks good.  I've 
added a test that should be valid whether or not a compiler is available and, I 
hope, on Windows (I haven't tested it there).

--
stage:  - patch review
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file: http://bugs.python.org/file35872/issue21923_3x.patch

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



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


Added file: http://bugs.python.org/file35873/issue21923_27.patch

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



[issue12523] 'str' object has no attribute 'more' [/usr/lib/python3.2/asynchat.py|initiate_send|245]

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

Just close this as asynchat is deprecated from 3.2.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12523
___
___
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-06 Thread Konstantin S. Solnushkin

Konstantin S. Solnushkin added the comment:

Hi, I am curious about the fate of this issue -- whether it will be recognised 
as a bug (possibly a regression bug). Remember, it worked in Python 3.3 but 
stopped working in 3.4.

--

___
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



[issue21052] Consider dropping ImportWarning for empty sys.path_hooks and sys.meta_path

2014-07-06 Thread Masami HIRATA

Masami HIRATA added the comment:

Hi,

I can reproduce this issue with the following steps.

$ uname -a
Linux ashrose 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:03:29 UTC 2014 
x86_64 x86_64 x86_64 GNU/Linux
$ python3.4 --version
Python 3.4.1
$ touch spam.txt
$ python3.4 -Wa -c class A: pass; a = open('spam.txt')
sys:1: ResourceWarning: unclosed file _io.TextIOWrapper name='spam.txt' 
mode='r' encoding='UTF-8'
_frozen_importlib:2150: ImportWarning: sys.meta_path is empty
_frozen_importlib:2150: ImportWarning: sys.meta_path is empty
_frozen_importlib:2150: ImportWarning: sys.meta_path is empty
_frozen_importlib:2150: ImportWarning: sys.meta_path is empty
_frozen_importlib:2150: ImportWarning: sys.meta_path is empty
...
$ python3.4 -Wa -c a = open('spam.txt')
sys:1: ResourceWarning: unclosed file _io.TextIOWrapper name='spam.txt' 
mode='r' encoding='UTF-8'
$ python3.4 -Wa -c class A: pass; open('spam.txt')
-c:1: ResourceWarning: unclosed file _io.TextIOWrapper name='spam.txt' 
mode='r' encoding='UTF-8'
$

--
nosy: +msmhrt

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



[issue1602742] itemconfigure returns incorrect text property of text items

2014-07-06 Thread Francisco Martín Brugué

Francisco Martín Brugué added the comment:

Hi,
just a question:

the status of this issue is pending but it seems to be already
resolved/duplicated. Means that this issue can be closed?

Thansk in advance!

--
nosy: +francismb
status: pending - open

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



[issue1602742] itemconfigure returns incorrect text property of text items

2014-07-06 Thread Berker Peksag

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


--
status: open - closed

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



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Alex Gaynor

Alex Gaynor added the comment:

Test looks reasonable to me.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___
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-06 Thread Jason R. Coombs

New submission from Jason R. Coombs:

Consider this simple example in Powershell (Windows 8.1):

C:\Users\jaraco cat .\print-input.py
import sys
print(next(sys.stdin))

C:\Users\jaraco echo foo | .\print-input.py
foo

The BOM (byte order mark) appears in the standard input stream. When using 
cmd.exe, the BOM is not present. This behavior occurs in CP1252 as well as 
CP65001.

I suspect that Python should be detecting/stripping and possibly honoring the 
BOM when decoding input on stdin.

This issue is present in Python 3.4.0 and Python 3.4.1. I have not tested other 
Python versions.

--
components: Unicode, Windows
messages: 222406
nosy: ezio.melotti, haypo, jason.coombs
priority: normal
severity: normal
status: open
title: BOM appears in stdin when using Powershell
versions: Python 3.4

___
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



[issue10374] distutils[2] should recreate scripts in the build tree

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

I always find distutils anything but easy :)

--
components:  -Distutils2
nosy: +BreamoreBoy, dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 2.7, Python 3.2, Python 3.3

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



[issue16438] Numeric operator predecence confusing

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

I find the numeric operator predecence simply wrong, not confusing, so +1 from 
me for applying the attached patch from ktt3ja.  It's as simple as possible but 
no simpler :)

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

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



[issue1565071] update Lib/plat-linux2/IN.py

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

Related issues via #12619 include #3990 and #19554.

--
nosy: +BreamoreBoy

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



[issue4256] argparse: provide a simple way to get a programmatically useful list of options

2014-07-06 Thread Mark Lawrence

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


--
nosy: +paul.j3
versions: +Python 3.5 -Python 3.3

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



[issue6114] distutils build_ext path comparison only based on strings

2014-07-06 Thread Mark Lawrence

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


--
components:  -Distutils2
nosy: +dstufft
versions: +Python 3.4, Python 3.5 -3rd party, Python 3.2, Python 3.3

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



[issue20135] FAQ need list mutation answers

2014-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 3881c12fa3ae by Ezio Melotti in branch '2.7':
#20135: move FAQ about mutable default arguments to the programming FAQs page.
http://hg.python.org/cpython/rev/3881c12fa3ae

New changeset 3b7b0f5aac1e by Ezio Melotti in branch '3.4':
#20135: move FAQ about mutable default arguments to the programming FAQs page.
http://hg.python.org/cpython/rev/3b7b0f5aac1e

New changeset f2a36b01ac02 by Ezio Melotti in branch 'default':
#20135: merge with 3.4.
http://hg.python.org/cpython/rev/f2a36b01ac02

--
nosy: +python-dev

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



[issue21597] Allow turtledemo code pane to get wider.

2014-07-06 Thread Lita Cho

Lita Cho added the comment:

I also put this patch out there. This doesn't have the PaneWindow, but I 
manually widen the text pane. This would be the compromise if I can't figure 
out the tearing due to the sash moving.

--
Added file: http://bugs.python.org/file35874/turtledemo_grid.patch

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



[issue20135] FAQ need list mutation answers

2014-07-06 Thread Ezio Melotti

Ezio Melotti added the comment:

I moved the FAQ about mutable default arguments to the programming FAQs page.  
I was going to do a review about new FAQ, but it since I had several comments I 
just tried to rewrite it and make a new patch.
Do you think this is clear enough?

--
Added file: http://bugs.python.org/file35875/issue20135.diff

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



[issue20135] FAQ need list mutation answers

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

+1 from me, I thought it was crystal clear.

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

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



[issue1581182] Definition of a character is wrong

2014-07-06 Thread Ezio Melotti

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


--
resolution:  - duplicate
stage: needs patch - resolved
status: languishing - closed
superseder:  - Issues in Unicode HOWTO

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



[issue20906] Issues in Unicode HOWTO

2014-07-06 Thread Ezio Melotti

Ezio Melotti added the comment:

See also #1581182.

--
stage:  - needs patch
versions: +Python 3.5 -Python 3.3

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



[issue1660009] continuing problem with httplib multiple set-cookie headers

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

msg179391 states this is fixed in Python 3 so we can close this as out of 
date.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1660009
___
___
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-06 Thread Mark Lawrence

Mark Lawrence added the comment:

@Hynek could you port the patch as you've shown some interest in it?

--
nosy: +BreamoreBoy

___
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



[issue12602] Missing cross-references in Doc/using

2014-07-06 Thread Ezio Melotti

Ezio Melotti added the comment:

Patch LGTM.

--
stage: needs patch - commit review

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12602
___
___
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-06 Thread Tal Einat

Tal Einat added the comment:

Indeed, I seem to have been misinterpreting the grammar, despite taking care 
and reading it several times. This strengthens my opinion that we should use 
str.isidentifier() rather than attempt to correctly re-implement just the parts 
that we need.

Attached is a patch which fixes HyperParser._eat_identifier(), to the extent of 
my testing (tests included).

When non-ASCII characters are encountered, this patch uses Terry's suggestion 
of checking for valid identifier characters using ('a' + 
string_part).isidentifier(). It also employs his suggestion of how to avoid 
executing this check at every index, by skipping 4 characters at a time.

However, even with this fix, HyperParser.get_expression() still fails with 
non-ASCII Unicode strings. This is because it uses PyParse, which doesn't 
support Unicode! For example, it apparently replaces all non-ASCII characters 
with 'x'. I've added (in this patch) a few tests for this, which currently fail.

FWIW, PyParse includes a comment to this effect[1]:

quote
The parse functions have no idea what to do with Unicode, so
replace all Unicode characters with x.  This is safe
so long as the only characters germane to parsing the structure
of Python are 7-bit ASCII.  It's *necessary* because Unicode
strings don't have a .translate() method that supports
deletechars.
/quote

Properly resolving this issue will apparently require fixing PyParse to 
properly support Unicode.

.. [1]: 
http://hg.python.org/cpython/file/d25ae22cc992/Lib/idlelib/PyParse.py#l117

--
keywords: +patch
Added file: 
http://bugs.python.org/file35876/taleinat.20140706.IDLE_HyperParser_unicode_ids.patch

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



[issue614557] LookupError etc. need API to get the key

2014-07-06 Thread Mark Lawrence

Mark Lawrence added the comment:

See also #18156, #18163, #18165 and #18166, possibly others?

--
nosy: +BreamoreBoy

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



[issue21597] Allow turtledemo code pane to get wider.

2014-07-06 Thread Lita Cho

Lita Cho added the comment:

?! After debugging for awhile, I got it so that PanedWindow doesn't cause the 
rightmost widget to tear! I had to disable the resizing binding on Turtle to 
make it work. 

However, now it seems like the canvas is no longer centered. Is there anyway 
for me to get around this? Maybe I disable the binding on the demo side and 
re-adjust the center when we initialize the canvas?

I want to make sure it works for you guys first before digging into it.

--
Added file: http://bugs.python.org/file35877/turtledemo_pane_srcoll_fix.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21597
___
___
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-06 Thread Ned Deily

Ned Deily added the comment:

The change in behavior is definitely caused by the changes for Issue19435.  The 
code added there does not work correctly if there are nested directories in the 
cgi-bin directory; for one thing, the initial os.path.isdir(scriptdir) test 
in run_cgi is failing because the path in nextdir is missing the dir component: 
it's testing /path/to/test instead of /path/to/cgi-bin/test.  I didn't look 
further.  Along with a fix, there should be a test for nested directories.  And 
decide whether to fix the regression it presumably caused in the security 
branches as well.

http://hg.python.org/cpython/file/d25ae22cc992/Lib/http/server.py#l1009

--
keywords: +buildbot
nosy: +benjamin.peterson, ned.deily
priority: normal - high
stage:  - needs patch
versions: +Python 2.7, Python 3.5

___
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



[issue20187] The Great Argument Clinic Conversion Derby Meta-Issue

2014-07-06 Thread Mark Lawrence

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


--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20187
___
___
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-06 Thread Ned Deily

Ned Deily added the comment:

BTW, if someone is looking for an issue to help out with, this might be a good 
choice.

--
keywords: +easy -buildbot

___
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



[issue21597] Allow turtledemo code pane to get wider.

2014-07-06 Thread Ned Deily

Ned Deily added the comment:

Lita, turtledemo_pane_srcoll_fix.patch definitely solves the tearing problems 
(when viewed with OS X Cocoa and X11 Tk's): yay!  Good luck with getting the 
centering working!

--

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



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset bdbfbb57e37e by Ned Deily in branch '2.7':
Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
http://hg.python.org/cpython/rev/bdbfbb57e37e

New changeset 78fa18e95445 by Ned Deily in branch '3.4':
Issue #21923: Prevent AttributeError in distutils.sysconfig.customize_compiler
http://hg.python.org/cpython/rev/78fa18e95445

New changeset 12546bfa1f4f by Ned Deily in branch 'default':
Issue #21923: merge from 3.4
http://hg.python.org/cpython/rev/12546bfa1f4f

--
nosy: +python-dev

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



[issue21597] Allow turtledemo code pane to get wider.

2014-07-06 Thread Lita Cho

Lita Cho added the comment:



I think I have a fix!! I made it so that centering works while fixing the 
tearing.

For some reason, in the Turtle API, the adjustScrolls method creates a new 
scroll widget for x and y and deletes the old one. I am not sure why it does it 
this way. I'm sure there is a reason for it though.

For the demo, I overwrote the onResize method so that it centers canvas but 
doesn't instantiate a new scroll widget and throws away the old one, which 
fixes the tearing!

I would love for someone to review the patch. Thanks!

--
Added file: http://bugs.python.org/file35878/turtledemo_pane_srcoll_fix.patch

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



[issue21928] Incorrect reference to partial() in functools.wraps documentation

2014-07-06 Thread Dustin Oprea

New submission from Dustin Oprea:

functools.wraps docs say This is a convenience function for invoking 
partial(update_wrapper, wrapped=wrapped, assigned=assigned, updated=updated) as 
a function decorator when defining a wrapper function. The referenced function 
should be update_wrapper(), not partial().

--
assignee: docs@python
components: Documentation
messages: 222426
nosy: Dustin.Oprea, docs@python
priority: normal
severity: normal
status: open
title: Incorrect reference to partial() in functools.wraps documentation
versions: Python 2.7, Python 3.4

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



[issue9571] argparse: Allow the use of -- to break out of nargs and into subparser

2014-07-06 Thread paul j3

paul j3 added the comment:

In elsdoerfer's example, the '--' effectively ends the argument list for 
'--ignore'.  '--' are not allowed in the arguments of an optional (see the end 
of '_get_nargs_pattern()').

Rather the problem is at the start of _get_values()

if action.nargs not in [PARSER, REMAINDER]:
arg_strings = [s for s in arg_strings if s != '--']

'--' is not stripped out of the 'parser' input, hence the error message:

error: invalid choice: '--'

You can see this by replacing the subparsers with an argument with 
'nargs=PARSER'.  The argument will get `['--','COMMAND',...]`.

http://bugs.python.org/issue13922 tries to rework how '--' are handled.  
Ideally only the current '--' should be removed, leaving the rest to be handled 
by the subparser (or whoever else gets the strings).

Looks like the 13922 fix needs another fix, one that removes '--' if it is the 
1st string for a REMAINDER or PARSER argument.

With that fix:

./script.py --ignore one two -- COMMAND arg1 arg2

should work, assigning ['one','two'] to 'ignore', and ['arg1','arg2'] to 
'COMMAND's positional.

(I've tested this in a development version with many other changes.  I'll try 
to write a simpler patch.)



If a 'end of a list' flag is still needed (as between 2 * positionals), a 
'counter' or 'store_true' optional could be used.  Or a new action class that 
doesn't write anything to the namespace could be written.

--

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



[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0d84855861ff by Antoine Pitrou in branch '3.4':
Issue #20639: calling Path.with_suffix('') allows removing the suffix again.
http://hg.python.org/cpython/rev/0d84855861ff

--
nosy: +python-dev

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



[issue21714] Path.with_name can construct invalid paths

2014-07-06 Thread Roundup Robot

Roundup Robot added the comment:

New changeset c2636b5816a3 by Antoine Pitrou in branch '3.4':
Issue #21714: Disallow the construction of invalid paths using 
Path.with_name().  Original patch by Antony Lee.
http://hg.python.org/cpython/rev/c2636b5816a3

--
nosy: +python-dev

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



[issue20639] pathlib.PurePath.with_suffix() does not allow removing the suffix

2014-07-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Sorry for the delay! The patch is now applied. Thank you for contributing!

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

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



[issue21714] Path.with_name can construct invalid paths

2014-07-06 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Ok, patch now applied (as well as the original patch for with_suffix()). Thank 
you very much!

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

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



[issue21923] distutils.sysconfig.customize_compiler will try to read variable that has not been initialized

2014-07-06 Thread Ned Deily

Ned Deily added the comment:

Committed for release in 2.7.9, 3.4.2, and 3.5.0.

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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21923
___
___
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-06 Thread Claudiu Popa

Claudiu Popa added the comment:

Any type of feedback will be appreciated.

--
stage:  - patch review

___
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