[issue10320] printf %qd is nonstandard

2011-10-18 Thread Ezio Melotti

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


--
nosy: +ezio.melotti

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



[issue13185] Why does Python interpreter care about curvy quotes in comments?

2011-10-18 Thread Phillip M. Feldman

Phillip M. Feldman phillip.m.feld...@gmail.com added the comment:

I'm beginning to understand the reasoning.  This is quite a bit more complex
than I initially thought, and I appreciate the explanations.

Phillip

On Sun, Oct 16, 2011 at 10:53 PM, Raymond Hettinger
rep...@bugs.python.orgwrote:


 Raymond Hettinger raymond.hettin...@gmail.com added the comment:

 I concur with Martin and Ezio.
 This report was correctly closed as invalid.

 --
 nosy: +rhettinger

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


--

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



[issue13206] while loop vs for loop test

2011-10-18 Thread R Blackmore

New submission from R Blackmore squan...@yahoo.com:

Using Python 3.2.2 on Windows 7

See attached file
Was having problem with a program I was doing... couldn't get around issue 
unless I changed from while loop to for loop... WTF???
 
So restarted computer and then Python Shell and IDLE I wrote a very simple loop 
file... The 1st loop is a while loop that hangs and only prints divisor 1 and 
divisor 2 (Should also print divisor 5)

For loop works as expected printing
divisor 1
divisor 2
divisor 3

Unless I'm missing something both loops should return (i.e. print) same!

Cheers

--
components: IO
files: LOOP_Test1.py
messages: 145775
nosy: JavaJunkie
priority: normal
severity: normal
status: open
title: while loop vs for loop test
versions: Python 3.2
Added file: http://bugs.python.org/file23436/LOOP_Test1.py

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



[issue13206] while loop vs for loop test

2011-10-18 Thread R Blackmore

R Blackmore squan...@yahoo.com added the comment:

for loop works correctly

prints

divisor 1
divisor 2
divisor 5 (original post incorrectly listed divisor 3,)

--

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



[issue13206] while loop vs for loop test

2011-10-18 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Your 'i = i + 1' is at the wrong indentation level.

--
nosy: +mark.dickinson
resolution:  - invalid
status: open - closed

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



[issue12568] Add functions to get the width in columns of a character

2011-10-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

 I'm -1 on using wcswidth, though.
 
 When you write text into a console on Linux (e.g. displayed by
 gnome-terminal or konsole), I suppose that wcswidth() can be used to
 compute the width of a line. It would help to fix #2382.
 
 Or do you think that wcswidth() gives the wrong result for this use
 case?

No, I think that using it is not necessary. If you want to compute the
width of a line, use unicodedata.east_asian_width. And yes, wcswidth
may sometimes produce incorrect results (although it's probably
correct most of the time).

--

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



[issue13206] while loop vs for loop test

2011-10-18 Thread R Blackmore

R Blackmore squan...@yahoo.com added the comment:

I knew it was late...

Should have slept on it

Thanks

--- On Tue, 10/18/11, Mark Dickinson rep...@bugs.python.org wrote:

 From: Mark Dickinson rep...@bugs.python.org
 Subject: [issue13206] while loop vs for loop test
 To: squan...@yahoo.com
 Date: Tuesday, October 18, 2011, 12:13 AM
 
 Mark Dickinson dicki...@gmail.com
 added the comment:
 
 Your 'i = i + 1' is at the wrong indentation level.
 
 --
 nosy: +mark.dickinson
 resolution:  - invalid
 status: open - closed
 
 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue13206
 ___


--

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



[issue12174] Multiprocessing logging levels unclear

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Should there be another issue opened to do something about the extra logging 
levels?

--

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



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

I need Python compiled with Visual Studio 2010 because I use it embedded in an 
application compiled with Visual Studio 2010.

I am pretty sure there are quite a lot of people who would like to compile 
Python with this compiler.

I have compiled Python 2.7.2 with this version of the compiler as well as many 
extensions, but this required to patch quite a few things. I also intend to 
setup a buildbot running Python tests using this compiler.

If I can provide the patch to support Visual Studio 2010 and setup a builtbot 
that will pass most of the tests, could we get Python supported on this 
platform?

I intended to announce all of that on python-dev soon, but the buildbot is not 
quite ready yet.

--

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



[issue868845] Need unit tests for ... reprs

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Ping? I wonder whether closing an issue from 2004 would result in Achievement 
unlocked: archaeological issue management

--
keywords: +patch
nosy: +petri.lehtinen

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



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

 If I can provide the patch to support Visual Studio 2010 and setup a
 builtbot that will pass most of the tests, could we get Python
 supported on this platform?

Yes. Even if VS2008 remains the preferred compiler to build Python, and the 
only one used for official binary distributions, there are already project 
files for VS8 and even VC6 (in PC/VS8.0 and PC/VC6).  They are not guaranteed 
to always work, but are updated from time to time by volunteers.
Please open another issue.

--

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



[issue12277] Missing comma in os.walk docs

2011-10-18 Thread Boštjan Mejak

Boštjan Mejak bostjan.me...@gmail.com added the comment:

Yes, Eric, please fix this already. :)

--

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



[issue12296] Minor clarification in devguide

2011-10-18 Thread Jyrki Pulliainen

Jyrki Pulliainen jy...@dywypi.org added the comment:

Updated the existing patch with the new wording

--
nosy: +Jyrki.Pulliainen
Added file: http://bugs.python.org/file23437/clarify-bwcompat-devguide_v2.diff

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



[issue12448] smtplib's __main__ doesn't flush when prompting

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Raymond: Would you also like to commit the patch? :)

--
keywords:  -needs review

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



[issue10197] subprocess.getoutput fails on win32

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue10881] test_site and macframework builds fails

2011-10-18 Thread Ronald Oussoren

Ronald Oussoren ronaldousso...@mac.com added the comment:

On 11 Oct, 2011, at 22:28, Ned Deily wrote:

 
 Ned Deily n...@acm.org added the comment:
 
 I forgot to mention that one advantage of using another framework and root 
 location, say, under your home directory somewhere, is that it is unnecessary 
 to use sudo.  And you don't need to use the special target in any case, 
 simply make install.

Make install always works, the frameworkinstall target is a leftover from a 
time when you couldn't use make install.

--
Added file: http://bugs.python.org/file23438/smime.p7s

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

smime.p7s
Description: S/MIME cryptographic signature
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1757072] Zipfile robustness

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue3067] setlocale error message is confusing

2011-10-18 Thread Jyrki Pulliainen

Jyrki Pulliainen jy...@dywypi.org added the comment:

Added a patch that implements two things:

setlocale now raises locale.Error('Locale must be None, a string, or an 
iterable of two strings -- language code, encoding.'). I decided to remove the 
proposed .format(locale), as it wasa a bit confusing when passing a tuple 
containing invalid items.

I also added two tests, one for bytes and another for a tuple of two bytes.

--
keywords: +patch
nosy: +nailor
Added file: http://bugs.python.org/file23439/issue3067.patch

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



[issue12277] Missing comma in os.walk docs

2011-10-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Done.

--
assignee: eric.araujo - ezio.melotti
nosy: +ezio.melotti
resolution: accepted - fixed
stage: commit review - committed/rejected
status: open - closed

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



[issue12277] Missing comma in os.walk docs

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset b41def1851b6 by Ezio Melotti in branch '3.2':
#12277: add missing comma.
http://hg.python.org/cpython/rev/b41def1851b6

New changeset 7e57c95898d3 by Ezio Melotti in branch 'default':
#12277: merge with 3.2.
http://hg.python.org/cpython/rev/7e57c95898d3

New changeset 09a1bd44d96f by Ezio Melotti in branch '2.7':
#12277: add missing comma.
http://hg.python.org/cpython/rev/09a1bd44d96f

--
nosy: +python-dev

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



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

I don't think a buildbot will be necessary - like the earlier compilers, they 
may have basic support but they don't all get buildbot support.  The problem 
isn't the lack of ability/will to get things working with VS2010 - it is more 
the lack of incentive to add another compiler to the mix.  OTOH, seeing it is 
nearly 2012, a case could certainly be made to move 3.3 to that compiler :)

I'm interested to see the patch required to get it working - almost every other 
upgrade has been almost handled completely by the VS upgrade process so it 
would be good to see how different this one is - so please CC me on any new 
issue you create.

I'm also interested to know how mixing the CRTs is causing problems - are you 
using the very few Python APIs impacted by such mixing, or is the issue more 
about needing to redistribute both, or something else entirely?

--

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



[issue12448] smtplib's __main__ doesn't flush when prompting

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 2c50343d0500 by Ezio Melotti in branch '3.2':
#12448: smtplib now flushes stdout while running ``python -m smtplib``
http://hg.python.org/cpython/rev/2c50343d0500

New changeset e08397a5537a by Ezio Melotti in branch 'default':
#12448: merge with 3.2.
http://hg.python.org/cpython/rev/e08397a5537a

--
nosy: +python-dev

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



[issue12448] smtplib's __main__ doesn't flush when prompting

2011-10-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Fixed, thanks for the patch!

--
assignee: rhettinger - ezio.melotti
nosy: +ezio.melotti
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
versions: +Python 3.3

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



[issue13125] test_all_project_files() expected failure

2011-10-18 Thread Mikhail Novikov

Mikhail Novikov freikse...@gmail.com added the comment:

I modified the tests so that they don't do prints to stdout. For that I 
replaced print with warnings in the ParseError exception except and replaced 
os.system with subprocess.getoutput.

--
keywords: +patch
nosy: +freiksenet
Added file: http://bugs.python.org/file23440/i13125.patch

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



[issue13201] Implement comparison operators for range objects

2011-10-18 Thread Sven Marnach

Sven Marnach s...@marnach.net added the comment:

Mark, thanks again for your comments.  (I never looked at the Python source 
code before, so tey are highly appreciated.)  I uploaded a new version of the 
patch hopefully.

--
Added file: http://bugs.python.org/file23441/range-compare-v3.patch

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

 I made the
 decision to raise a ValueError decision because __contains__ of both
 bytes and bytearray raise a ValueError when passed an integer not in
 range(0, 256).

That sounds reasonable. OverflowError would have been another choice, but I 
agree that consistency with __contains__ is sensible.

--
nosy: +pitrou

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



[issue13207] os.path.expanduser brakes when using unicode character in the username

2011-10-18 Thread Manuel de la Pena

New submission from Manuel de la Pena man...@canonical.com:

During our development we have experience the following:

If you have a user in your Windows machine with a name hat uses Japanese 
characters like “雄鳥お人好し” you will have the following in your system:

* The Windows Shell will show the path correctly, that is: “C:\Users\雄鳥お人好し”
* cmd.exe will show: “C:\Users\??”
* All the env variables will be wrong, which means they will be similar to the 
info shown in cmd.exe

The above is a problem because the implementation of expanduser in ntpath.py 
uses the env variables to get expand the path which means that in this case the 
returned path will be wrong. 

I have attached a small example of how to get the user profile path (~) on 
Windows using SHGetFolderPathW or SHGetKnownFolderPathW to fix the issue. 

PS: I don't know if this issue also occurs on python 3.

--
components: Windows
files: expanduser.py
messages: 145798
nosy: mandel
priority: normal
severity: normal
status: open
title: os.path.expanduser brakes when using unicode character in the username
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file23442/expanduser.py

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Doc/library/stdtypes.rst needs a versionadded tag for the additional 
semantics.

Also, the patch doesn't compile fine on current default:

In file included from Objects/unicodeobject.c:487:0:
Objects/stringlib/find.h: In function ‘stringlib_parse_args_finds_byte’:
Objects/stringlib/find.h:158:5: attention : implicit declaration of function 
‘stringlib_parse_args_finds’
In file included from Objects/unicodeobject.c:497:0:
Objects/stringlib/find.h: Hors de toute fonction :
Objects/stringlib/find.h:151:1: erreur: redefinition of 
‘stringlib_parse_args_finds_byte’
Objects/stringlib/find.h:151:1: note: previous definition of 
‘stringlib_parse_args_finds_byte’ was here

I'd say you need to either define your function as 
STRINGLIB(parse_args_finds_byte) (to avoid name collisions), or avoid defining 
it if STRINGLIB_IS_UNICODE.

--

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



[issue13209] Refactor code using unicode_encode_call_errorhandler() in unicodeobject.c

2011-10-18 Thread STINNER Victor

New submission from STINNER Victor victor.stin...@haypocalc.com:

It's difficult to use unicode_encode_call_errorhandler() because the caller has 
to:

 - resize the output buffer (and check for integer overflow on the new size)
 - handle bytes and str for the replacement string: PyUnicode_EncodeDecimal() 
doesn't support bytes for example
 - encode replacement str: some encoders uses ASCII, unicode_encode_ucs1() uses 
Latin1, PyUnicode_EncodeCharmap() uses a recursive call (without check for 
infinite loop!), ... ; and raise a UnicodeEncodeError if the encoding fails

It would be nice to factorize this code.

I plan this implement this refactoring, it's just a reminder for me :-)

--
components: Unicode
messages: 145801
nosy: haypo
priority: normal
severity: normal
status: open
title: Refactor code using unicode_encode_call_errorhandler() in unicodeobject.c
versions: Python 3.3

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



[issue13208] Problems with urllib on windows

2011-10-18 Thread Deepak Dodo

New submission from Deepak Dodo deepakd...@gmail.com:

When I try to read the contents of the webpage: 
http://www.ai-class.com/course/json/filter/QuizQuestion
using urllib.read, it doesn't read the entire content. 
This behavior is only seen on windows and the same operation works fine on 
linux machines.

--
components: Windows
messages: 145800
nosy: Deepak.Dodo
priority: normal
severity: normal
status: open
title: Problems with urllib on windows
type: behavior
versions: Python 2.6, Python 2.7

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



[issue13209] Refactor code using unicode_encode_call_errorhandler() in unicodeobject.c

2011-10-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

+1

--
nosy: +ezio.melotti
stage:  - needs patch

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



[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox
title: os.path.expanduser brakes when using unicode character in the username 
- os.path.expanduser breaks when using unicode character in the username

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



[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Sébastien Sablé

New submission from Sébastien Sablé sa...@users.sourceforge.net:

Python for Windows is currently compiled with Visual Studio 2008.
It is not possible to use Visual Studio 2010.

It would be great to be able to compile Python with Visual Studio 2010:

* some people may only have access to this compiler which is more recent

* when embedding Python in an application compiled with Visual Studio 2010, you 
mix 2 C Runtime Libraries (msvcr90.dll and msvcr100.dll) which will generally 
result in a crash

This is the parent issue. I have various patches to achieve that and I will try 
to open one issue by patch. I may also run a builtbot using that compiler.

--
assignee: tarek
components: Build, Distutils, Distutils2, Installation, Windows
messages: 145803
nosy: alexis, eric.araujo, mhammond, sable, tarek
priority: normal
severity: normal
status: open
title: Support Visual Studio 2010
type: feature request
versions: Python 2.7, Python 3.2

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



[issue4431] Distutils MSVC doesn't create manifest file

2011-10-18 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Amaury:
Great! I have opened issue 13210 to achieve that.

Mark:
Mixing the 2 CRTs results in plenty of crashes in our application. The 
application also uses a lot of Qt. It is not an option to use a prebuilt Python 
binary generated with VS2008.

I added you to issue 13210 and I will post the patches there soon.

--

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread STINNER Victor

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


--
nosy: +haypo

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread STINNER Victor

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


--
nosy: +brian.curtin

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread STINNER Victor

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


--
nosy: +loewis

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



[issue13211] urllib2.HTTPError does not have 'reason' attribute.

2011-10-18 Thread Jason R. Coombs

New submission from Jason R. Coombs jar...@jaraco.com:

The urllib2 docs indicate that HTTPError is a subclass of URLError and that 
URLError has an attribute of 'reason', but HTTPError does not have this 
attribute. The docs should be updated to reflect this deviance.

It appears the Python 3.2 docs no longer include documentation for URLError

Python 2.7.2
 try:urllib2.urlopen('http://api.wordnik.com/v4/word.json/foo/examples')
... except urllib2.HTTPError as exc:
...   print(dir(exc))
...
['_HTTPError__super_init', '__class__', '__delattr__', '__dict__', '__doc__', 
'__format__', '__getattribute__', '__getitem__', '__getslice__', '__hash__', 
'__init__', '__iter__', '__module__', '__new__', '__reduce__', '__reduce_ex__', 
'__repr__', '__setattr__', '__setstate__', '__sizeof__', '__str__', 
'__subclasshook__', '__unicode__', '__weakref__', 'args', 'close', 'code', 
'errno', 'filename', 'fileno', 'fp', 'getcode', 'geturl', 'hdrs', 'headers', 
'info', 'message', 'msg', 'next', 'read', 'readline', 'readlines', 'strerror', 
'url']

The same issue exists in Python 3.2.2.

Here's what I propose:
  - For Python 3.2 and 3.3, update HTTPError to supply a @property, aliasing 
.msg (will .msg always be a suitable .reason?).
  - For Python 2.7, document the deviance, such as by adding the following 
wording to the HTTPError docs: Unlike URLError, HTTPError does not supply a 
reason attribute. The reason can be retrieved through the msg attribute.

--
assignee: docs@python
components: Documentation
messages: 145805
nosy: docs@python, jason.coombs
priority: normal
severity: normal
status: open
title: urllib2.HTTPError does not have 'reason' attribute.
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue11085] expose _abcoll as collections.abc

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Attached a patch that fixes this. The test case is a bit ugly, as it only 
checks that the traceback's depth is correct.

--
keywords: +patch
nosy: +ezio.melotti, petri.lehtinen
stage:  - patch review
Added file: http://bugs.python.org/file23443/issue13188.patch

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



[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-18 Thread Jyrki Pulliainen

Jyrki Pulliainen jy...@dywypi.org added the comment:

Changed the code so that the content length is set as size if reporthook is not 
set and wrote two tests for it.

Note: I moved fakehttp behavior to a mixin, so that it's more reusable.

--
keywords: +patch
nosy: +nailor
Added file: http://bugs.python.org/file23444/issue10817.patch

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Thank you! There is a memory leak somewhere:

$ ./python -m test -R 3:2 test_generators
[1/1] test_generators
beginning 5 repetitions
12345
.
test_generators leaked [1945, 1945] references, sum=3890
1 test failed:
test_generators


Also, since the patch is so short, a stylistic nit:

+if(tb == NULL) {

There should be a space after the if.
(see PEP 7: http://www.python.org/dev/peps/pep-0007/)

--

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



[issue12458] Tracebacks should contain the first line of continuation lines

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Andreas Stührk

Andreas Stührk andy-pyt...@hammerhartes.de added the comment:

It leaks because `PyException_GetTraceback()` already returns a new reference, 
hence the Py_XINCREF(tb) is wrong.

--
nosy: +Trundle

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

We can make Python compile with Visual Studio 2010, but it will not be the 
platform Python is released on, it would be optional while 2008 stays the 
release target, at least through Python 3.3. In Python 3.4, we may re-evaluate 
this, and it's likely we would jump over 2010 and move to Visual Studio 2012 at 
that point (per discussions on python-dev).

As for your first point, Visual Studio 2008 is still available on the Microsoft 
site, it's just not the first thing you usually find. If you look here - 
http://msdn.microsoft.com/en-us/express/future/bb421473 - you can find it.


Anyway, I've done this port internally at my company, but I'm not able to 
release that patch. I am, however, willing to do it personally so it could be 
included here. If anyone else is interested in working on it, it should follow 
the same format as other VS version support, going in the PC/VS{version} folder.

Also, reclassified this to the proper version, 3.3, since it's a feature 
request.

--
assignee: tarek - 
components:  -Distutils, Distutils2, Installation
versions: +Python 3.3 -Python 2.7, Python 3.2

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Attached an updated patch.

I incref'd the return value of PyErr_GetTraceback() because PyErr_Restore() 
steals the reference. The documentation of PyErr_GetTraceback() doesn't tell 
whether it returns a new or borrowed reference, but apparently a new reference 
then?

--
Added file: http://bugs.python.org/file23445/issue13188_v2.patch

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Sébastien Sablé

Sébastien Sablé sa...@users.sourceforge.net added the comment:

Here is a quick and dirty draft of the modifications I had to do in order to 
get Python 2.7.2 to compile with VS2010 on the wiki:

http://wiki.python.org/moin/VS2010

I will improve/complete it as I progress.
I will also do a 64 bits version.

--

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Actually, it is documented:
“Return the traceback associated with the exception as a new reference (...)”
http://docs.python.org/dev/c-api/exceptions.html#PyException_GetTraceback

Thanks for the patch, will apply!

--

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset dcf5cc88d5c9 by Antoine Pitrou in branch '3.2':
Issue #13188: When called without an explicit traceback argument,
http://hg.python.org/cpython/rev/dcf5cc88d5c9

New changeset f4e3db1194e4 by Antoine Pitrou in branch 'default':
Issue #13188: When called without an explicit traceback argument,
http://hg.python.org/cpython/rev/f4e3db1194e4

--
nosy: +python-dev

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Antoine Pitrou

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


--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed

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



[issue12568] Add functions to get the width in columns of a character

2011-10-18 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue10860] Handle empty port after port delimiter in httplib

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset a3e48273dce3 by Łukasz Langa in branch '2.7':
Fixes #10860: Handle empty port after port delimiter in httplib
http://hg.python.org/cpython/rev/a3e48273dce3

--
nosy: +python-dev

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



[issue12405] packaging does not record/remove directories it creates

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

[Vinay]
 I think you mean Only the paste/util directory is recorded.
Obviously :)

 How about if you record all directories that you would create if they didn't 
 exist, as well
 as those actually created? That way, you would record the paste directory 
 under both
 distributions, but would only delete it when deleting the last distribution 
 which uses it
This is what I proposed earlier: we’d need to record all directories that would 
have been created, but I’m not sure if it will be possible.  For example, if 
one uses --prefix /tmp/usr and pysetup install creates /tmp/usr, /tmp/usr/lib, 
/tmp/usr/lib/python2.7, /tmp/usr/lib/python2.7/site-packages, 
/tmp/usr/lib/python2.7/site-packages/spam and 
/tmp/usr/lib/python2.7/site-packages/Spam-0.1.dist-info, then we pysetup should 
Spam, should packaging remove only the package and dist-info directories or 
also the site-packages, python2.7, lib and usr directories?

[Carl]
 In short - pip would _love_ to have directories recorded as well as files, 
 exactly as Vinay
 has proposed. We don't have that info (even the distutils --record option 
 currently doesn't
 record directories, thus installed-files.txt doesn't contain directories), so 
 we are reduced
 to some nasty things like referring to top-level.txt in order to avoid lots 
 of empty
 directories hanging about,
Oh.  Ouch.

 which in itself was the subject of recent controversy re Twisted's custom 
 namespace
 packages implementation.
Ah, I understand that better now.  Maybe now would be a good time to start an 
alpha pip-on-distutils2 branch, to see if the API we offer is good enough and 
to work out possible bugs in new features offered to pip by d2 (removing 
directories, installing setup.cfg-based projects, supporting bdists).

 Please, let's have directories recorded in RECORD,
Okay, so I will champion a patch to PEP 376.

--
assignee: tarek - eric.araujo

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



[issue868845] Need unit tests for ... reprs

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Original report:
 Samuele Pedroni points out in python-dev that the ... style reprs of Python 
 objects are
 not documented, standardized or even consistent (e.g. compare old-style and 
 new-style
 classes).

 Yet there is plenty of code out there that for various reasons parses these 
 things or a
 least depends on what they look like (the parrot benchmark being only the 
 latest example).

...-style reprs have been documented by Georg; for the consistency part, I 
just run the snippet from Nick on 3.2:

class 'array.array'
class 'dict'
class '__main__.foo'
__main__.foo object at 0x13fa810
function x at 0x1399050
bound method foo.x of __main__.foo object at 0x13fa850
function func at 0x132cf30

I would call that consistent.  (FWIW I like that the dict repr contains “dict” 
and not “builtins.dict”, as the common form for using it does not need the 
module part.)

For the standardization part, Alexander proposed this:
 For 3.0, I think it is feasible to standardize on the
 {type} object ['{name}'] ... at 0x{addr} pattern.

If there are tools out there that parse reprs, I think a change that would 
break them should have been in 3.0, now we’re bound by b/w compat.

To sum up: ...-style reprs are documented and consistent enough, so let’s 
close this.

--
nosy: +eric.araujo

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



[issue3067] setlocale error message is confusing

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks for the patch.  Exception messages are considered implementation 
details, so I would not test them.  Testing that an exception is raised is good 
enough IMO.

--
nosy: +eric.araujo

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



[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

On POSIX, Python 3 works correctly if my home dir is /tmp/éric, and Python 2.7 
returns a UTF-8-encoded (not locale-encoded!) bytes string.

For Windows, a patch would probably need to add a private function to the _nt 
module (in C): ctypes is too dangerous to be used in the standard library.

--
nosy: +eric.araujo, haypo

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Santoso Wijaya

Changes by Santoso Wijaya santoso.wij...@gmail.com:


--
nosy: +santa4nt

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The wiki page contains change to distutils, which I believe would not be 
allowed by the feature freeze.  New features (such as support for a new 
compiler) need to target packaging.

--

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



[issue12277] Missing comma in os.walk docs

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Sorry, I was too busy with real bugs to fix this minor one.

--

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



[issue13150] Most of Python's startup time is sysconfig

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 70160b53117f by Antoine Pitrou in branch 'default':
Issue #13150: sysconfig no longer parses the Makefile and config.h files
http://hg.python.org/cpython/rev/70160b53117f

--

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



[issue13150] Most of Python's startup time is sysconfig

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Done! If someone wants to give life to the C approach, they are welcome :)

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue10197] subprocess.getoutput fails on win32

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

If Windows shell syntax is similar to POSIX one, then () will run in a 
sub-shell, which would be a different behavior than using {} (which merely 
group statements and their streams).

--
versions:  -Python 3.1

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



[issue12296] Minor clarification in devguide

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I like it.  Terry, objections?

--

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



[issue12703] Improve error reporting for packaging.util.resolve_name

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks.  I’ll add more tests and commit.  (I also prefer to create modules in 
test methods instead of using another file, so that I can see right here what 
the module contains.)

--

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



[issue868845] Need unit tests for ... reprs

2011-10-18 Thread Guido van Rossum

Guido van Rossum gu...@python.org added the comment:

I think there's nothing to be done for a bug this general.

If you find a specific object whose repr() is awkward, go ahead and file a 
specific bug.

In most cases I think people who parse repr() output know they are on thin ice, 
and would prefer that the object whose repr() they are parsing had a method or 
attribute that returned what they were after.  Example: in 3.2, parsing 
repr(range(...)) is the only way to access the start/stop/step attributes; but 
we're fixing this for 3.3.  Exception: unittests that specifically verify the 
form of a repr().

Off-topic: I sometimes wish that the str() of a class would return the class 
name rather than its repr(); that way print(str) would print str instead of 
class 'str'.  (Use case: printing an exception and its message: I wish I 
could print(%s: %s % (err.__class__, err)) instead of having to use 
err.__class__.__name__.)  One could even claim that the repr() of a class could 
be the same, since one of the guiding principles for repr() is that it should, 
if possible, return an expression that (perhaps given a suitable environment) 
could reconstruct the value exactly (and otherwise it should have the ... 
form discussed in this issue).  But both of these wishes are debatable, and if 
anyone cares, they should open a new bug to discuss it.

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

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



[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-18 Thread Jyrki Pulliainen

Jyrki Pulliainen jy...@dywypi.org added the comment:

I had a bad patch, containing changes to locale.py, so I've uploaded a new 
patch for this.

--
Added file: http://bugs.python.org/file23446/issue10817.patch

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



[issue12296] Minor clarification in devguide

2011-10-18 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

LGTM.

(Actually you can still break someone's code by introducing new 
functions/classes, in case they get imported with 'from mod import *' and 
override some local function/class with the same name -- but this is such an 
obscure case that doesn't deserve to be mentioned (and 'import *' is bad 
practice anyway).)

--
nosy: +ezio.melotti

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



[issue3067] setlocale error message is confusing

2011-10-18 Thread Jyrki Pulliainen

Jyrki Pulliainen jy...@dywypi.org added the comment:

I modified the patch not to contain the tests against exception messages

--
Added file: http://bugs.python.org/file23447/issue3067_v2.patch

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



[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-10-18 Thread Jyrki Pulliainen

Changes by Jyrki Pulliainen jy...@dywypi.org:


Removed file: http://bugs.python.org/file23444/issue10817.patch

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



[issue11638] python setup.py sdist crashes if version is unicode

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

David:
I don’t think packaging and pysetup generate-setup have anything to do with 
this bug.  You can create a setup.py file manually and see the error with 
distutils in 2.7.

As I said before, I agree this is a bug.  I’m working on many things right now, 
so if someone volunteers to write a test and possibly a fix for this, it would 
help.  We have examples of creating tarball sdists in 
Lib/distutils/tests/test_sdist.py, one would just need to copy an example and 
pass version=u'1.0'.

--

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



[issue13170] distutils2 test failures

2011-10-18 Thread Roundup Robot

Roundup Robot devn...@psf.upfronthosting.co.za added the comment:

New changeset 5d858149df06 by Éric Araujo in branch 'default':
Synchronize config with packaging (fixes #13170)
http://hg.python.org/distutils2/rev/5d858149df06

--
nosy: +python-dev

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



[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Thanks!  I haven’t tested generate-setup for some time.  It would be great to 
add a regression test for this.  Would you like to do it?  To mock user input, 
just copy the Inputs class from test_command_register.  If not, I will do it.

--
assignee: tarek - eric.araujo
stage:  - test needed
versions: +3rd party, Python 3.3 -Python 2.7

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



[issue13193] test_packaging and test_distutils failures under Windows

2011-10-18 Thread Antoine Pitrou

Antoine Pitrou pit...@free.fr added the comment:

Similar test failure under x86 OpenIndiana:

==
ERROR: test_resources 
(packaging.tests.test_command_install_data.InstallDataTestCase)
--
Traceback (most recent call last):
  File 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/tests/test_command_install_data.py,
 line 129, in test_resources
with packaging.database.get_file('Spamlib', 'spamd') as fp:
  File 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/database.py,
 line 649, in get_file
return open(get_file_path(distribution_name, relative_path),
  File 
/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/packaging/database.py,
 line 644, in get_file_path
raise LookupError('no distribution named %r found' % distribution_name)
LookupError: no distribution named 'Spamlib' found

http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.x/builds/2153/steps/test/logs/stdio

--

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



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

2011-10-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
dependencies: +Automatically regenerate platform-specific modules
stage: test needed - needs patch
versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6

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



[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2011-10-18 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
versions: +Python 3.2, Python 3.3 -Python 2.6, Python 3.1

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



[issue10197] subprocess.getoutput fails on win32

2011-10-18 Thread bpoaugust

bpoaugust sebbaz+...@gmail.com added the comment:

I got the () syntax from:

http://technet.microsoft.com/en-us/library/cc737438%28WS.10%29.aspx

which refers to grouping, not subshell.

--

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



[issue3990] The Linux2 platform definition is incorrect for alpha, hppa, mips, sparc

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

If we keep the plat-* directories, I think too that introducing new 
sys.platform values seems a bit heavy-handed.

--
dependencies: +Automatically regenerate platform-specific modules
nosy: +eric.araujo

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



[issue13205] NameErrors in generated setup.py (codecs, split_multiline)

2011-10-18 Thread David Barnett

David Barnett davidbarne...@gmail.com added the comment:

Sure, I can give it a go. I'll probably have a chance sometime today.

--

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



[issue13150] Most of Python's startup time is sysconfig

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

BTW, distutils2 backports the sysconfig module and cfg file from 3.3, so now 
the two versions will diverge.

--

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



[issue868845] Need unit tests for ... reprs

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I sometimes wish that the str() of a class would return the class name
 rather than its repr(); that way print(str) would print str
 instead of class 'str'.  (Use case: printing an exception and its
 message: I wish I could print(%s: %s % (err.__class__, err)) instead
 of having to use err.__class__.__name__.)
Me too.  I have a small metaclass to do that :)  Given your tentative support, 
I’ll open a feature request for 3.3.

 One could even claim that the repr() of a class could be the same
I think of repr first as “string form for debugging”, so I like the angle 
brackets.

--
stage: test needed - committed/rejected

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



[issue1673007] urllib2 requests history + HEAD support

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Doc patch to fix a reST error and tweak a few things.

--
Added file: http://bugs.python.org/file23448/urllib.request-doc.diff

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



[issue13172] Improve detection of availability of bdist_msi command

2011-10-18 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 The existing traceback doesn't even mention _msi.

Looks like #12703, which I’m going to fix shortly.

--
dependencies: +Improve error reporting for packaging.util.resolve_name

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



[issue13150] Most of Python's startup time is sysconfig

2011-10-18 Thread Arfrever Frehtes Taifersar Arahesis

Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:


--
nosy: +Arfrever

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



[issue12296] Minor clarification in devguide

2011-10-18 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

To be more exact, optional arguments should be more extended to optional 
arguments whose default maintains the existing behavior

--

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

Antoine Pitrou wrote:
 Actually, it is documented:
 “Return the traceback associated with the exception as a new reference (...)”

Ah, you're right. It just doesn't have the green Return value: New
reference note.

Thanks for committing!

--

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



[issue13208] Problems with urllib on windows

2011-10-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

Can you please provide a test case? What exact source code you are using, and 
what exact result are you getting? Attach those pieces as files.

--
nosy: +loewis

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



[issue13210] Support Visual Studio 2010

2011-10-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think this issue urgently needs a scope defined. What *exactly* is it that 
you want to achieve? If it's merely being able to compile Python with VS 2010, 
many of the proposed changes are unnecessary.

If you propose that the patch should be used to replace VS 2008 with VS 2010, I 
suggest that instead of developing it as a patch, you create a hg clone that 
you maintain on your own.

If you propose that Python 3.3 be built and released with VS 2010, then we need 
to re-evaluate this question again. Wrt. VS 2012, my hope is that this will be 
available for 3.3 already. If that's not going to happen, I'd be open to switch 
to 2010 for 3.3 only (and to 2012 for 3.4).

--

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



[issue13188] generator.throw() ignores __traceback__ of exception

2011-10-18 Thread Petri Lehtinen

Petri Lehtinen pe...@digip.org added the comment:

BTW, shouldn't this be applied to 2.7 too?

--

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



[issue13212] json library is decoding/encoding when it should not

2011-10-18 Thread Tomasz Buchert

New submission from Tomasz Buchert thin...@gmail.com:

Hi there!
According to http://www.ietf.org/rfc/rfc4627.txt . The JSON object is either a 
list or a dictionary with other elements in it. However Python's implementation 
took liberty to parse also basic types, like integers, strings, floats, etc. 
For example:

 import json
 json.loads('42')
42
 json.dumps(3.141592)
'3.141592'

It wouldn't be a problem if other implementations would adhere to this 
behavior, but this is not true. Take Ruby for example:

irb(main):007:0 require 'rubygems';
irb(main):008:0* require 'json';
irb(main):009:0* JSON.parse '42'
JSON::ParserError: 743: unexpected token at '42'
from /var/lib/gems/1.8/gems/json-1.6.1/lib/json/common.rb:148:in `parse'
from /var/lib/gems/1.8/gems/json-1.6.1/lib/json/common.rb:148:in `parse'
from (irb):9
from :0
irb(main):010:0 JSON.generate(3.141592)
JSON::GeneratorError: only generation of JSON objects or arrays allowed
from /var/lib/gems/1.8/gems/json-1.6.1/lib/json/common.rb:216:in 
`generate'
from /var/lib/gems/1.8/gems/json-1.6.1/lib/json/common.rb:216:in 
`generate'
from (irb):10
from :0

Also http://jsonlint.com/ considers it an error.

I know this is not very important, but I've ran into this today when trying to 
parse JSON in Ruby which was produced in Python.

I've made a patch for that, but I still need to fix tests and there are many of 
them. I first would like to know if it is going to be fixed, then I will 
complete the patch.

Thanks for Python, anyway!

Tomek

--
components: Library (Lib)
messages: 145847
nosy: thinred
priority: normal
severity: normal
status: open
title: json library is decoding/encoding when it should not
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

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



[issue13213] generator.throw() behavior

2011-10-18 Thread Petri Lehtinen

New submission from Petri Lehtinen pe...@digip.org:

The documentation of generator.throw() gives this signature:

generator.throw(type[, value[, traceback]])

Looking at the code, it accepts the following arguments:

  g.throw(ExcType)  -- raise ExcType()

  g.throw(ExcType, None)  -- raise ExcType()

  g.throw(ExcType, None, tb)  -- raise ExcType().with_traceback(tb)

  g.throw(ExcType, instace_of_ExcType)  -- raise instance_of_ExcType

  g.throw(ExcType, instace_of_ExcType, tb)  -- raise 
instance_of_ExcType.with_traceback(tb)

  g.throw(ExcType, other_value)  -- raise ExcType(other_value)

  g.throw(ExcType, other_value, tb)  -- raise 
ExcType(other_value).with_traceback(tb)

Up to this point, I think everything is in line with the documentation. But it 
also accepts the following (now that issue 13188 is fixed):

  g.throw(exc_instance) -- raise exc_instance (preserving the traceback of 
exc_instance)

  g.throw(exc_instance, None) -- raise exc_instance (preserving the traceback 
of exc_instance)

  g.throw(exc_instance, None, tb) -- raise exc_instance.with_traceback(tb)

It does not accept these, throwing a TypeError:

  g.throw(exc_instance, some_value_other_than_None)
  g.throw(exc_instance, some_value_other_than_None, tb)
  g.throw(exc_instance, tb)

The documentation is really unclear on throwing existing exception instances 
with (exc_instance) or (exc_instance, None), and that calling with (type, 
value) or (type, value, tb) will create a new exception if not 
isinstance(value, type).

--
assignee: docs@python
components: Documentation, Interpreter Core
messages: 145848
nosy: docs@python, ezio.melotti, ncoghlan, petri.lehtinen, pitrou
priority: normal
severity: normal
status: open
title: generator.throw() behavior
type: behavior
versions: Python 2.7, Python 3.2, Python 3.3

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



[issue12797] io.FileIO and io.open should support openat

2011-10-18 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

I guess that would make it more general...

I'll play around with it for a bit. It mustn't become too hard to use though 
since the original point was to simplify the opening of files :-)

--

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



[issue12405] packaging does not record/remove directories it creates

2011-10-18 Thread Carl Meyer

Carl Meyer c...@dirtcircle.com added the comment:

 This is what I proposed earlier: we’d need to record all directories that 
 would have been created, but I’m not sure if it will be possible.  For 
 example, if one uses --prefix /tmp/usr and pysetup install creates /tmp/usr, 
 /tmp/usr/lib, /tmp/usr/lib/python2.7, /tmp/usr/lib/python2.7/site-packages, 
 /tmp/usr/lib/python2.7/site-packages/spam and 
 /tmp/usr/lib/python2.7/site-packages/Spam-0.1.dist-info, then we pysetup 
 should Spam, should packaging remove only the package and dist-info 
 directories or also the site-packages, python2.7, lib and usr directories?

I think it would make sense to draw a distinction between creating the prefix 
directories (including site-packages) and creating the distribution-specific 
directories within the prefix directories. And only record the latter in 
RECORD for the given installed distribution.

If I use --prefix and install some things, and then uninstall them, I would not 
consider it a bug to find the empty site-packages directory still remaining 
under that prefix. (In fact, I'd be surprised if it were removed).

 Okay, so I will champion a patch to PEP 376.

Thank you!

--

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



[issue1053687] PyOS_InputHook not called in IDLE subprocess

2011-10-18 Thread Roger Serwy

Roger Serwy roger.se...@gmail.com added the comment:

This is related to http://bugs.python.org/issue989712

--
nosy: +serwy

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



[issue13212] json library is decoding/encoding when it should not

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox
stage:  - needs patch
type:  - behavior
versions:  -Python 2.6, Python 3.1, Python 3.4

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



[issue13213] generator.throw() behavior

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
nosy: +flox

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



[issue3067] setlocale error message is confusing

2011-10-18 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I think the reported exception type is incorrect. Given that the error message 
is 'Locale must be None, a string, or an iterable of two strings -- language 
code, encoding.', it very much sounds like a TypeError is being reported here.

So I think all that's needed is that the ValueError is converted into a 
TypeError.

Also notice that the tuple unpacking may actually succeed:

py locale.setlocale(locale.LC_ALL,uen)
Traceback (most recent call last):
  File stdin, line 1, in module
  File /usr/lib/python2.6/locale.py, line 513, in setlocale
return _setlocale(category, locale)
locale.Error: unsupported locale setting

--

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



[issue13212] json library is decoding/encoding when it should not

2011-10-18 Thread Raymond Hettinger

Raymond Hettinger raymond.hettin...@gmail.com added the comment:

I don't see any way of changing this without breaking lots of code that 
currently works fine.  It may be possible to add a strict-mode (off by default) 
or to add warnings.

--
nosy: +rhettinger

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



[issue7723] sqlite only accept buffer() for BLOB objects (input/output)

2011-10-18 Thread Florent Xicluna

Changes by Florent Xicluna florent.xicl...@gmail.com:


--
status: pending - closed

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



  1   2   >