[issue13206] while loop vs for loop test

2011-10-17 Thread R Blackmore

R Blackmore  added the comment:

for loop works correctly

prints

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

--

___
Python tracker 

___
___
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-17 Thread R Blackmore

New submission from R Blackmore :

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 

___
___
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-17 Thread Phillip M. Feldman

Phillip M. Feldman  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
wrote:

>
> Raymond Hettinger  added the comment:
>
> I concur with Martin and Ezio.
> This report was correctly closed as invalid.
>
> --
> nosy: +rhettinger
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

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



[issue10320] printf %qd is nonstandard

2011-10-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue10320] printf %qd is nonstandard

2011-10-17 Thread bugs-pyt...@vendor.thewrittenword.com

bugs-pyt...@vendor.thewrittenword.com  
added the comment:

Objects/stringobject.c already does something similar:
else if (longlongflag)
sprintf(s, "%" PY_FORMAT_LONG_LONG "d",
va_arg(vargs, PY_LONG_LONG));
so it makes sense to do the same in Modules/_ctypes/callproc.c.

--
nosy: +bugs-pyt...@vendor.thewrittenword.com

___
Python tracker 

___
___
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-17 Thread David Barnett

David Barnett  added the comment:

The ConfigTestCase.test_parse_extensions_in_config failure is a manifestation 
of http://bugs.python.org/issue6988.

--

___
Python tracker 

___
___
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-17 Thread David Barnett

David Barnett  added the comment:

I looked into the ConfigTestCase.test_config failure, and it looks like it just 
needs the righthand edited to match the left. "package_data" lines are supposed 
to allow comma-separated lists of paths on the righthand.

--
nosy: +mu_mind

___
Python tracker 

___
___
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-17 Thread David Barnett

David Barnett  added the comment:

I'm getting this exact error when I run "python setup.py sdist", no matter what 
I do. Even if I just create a new project, type "1.0.0" for version, type "a" 
in all the other fields, and say "no" to every question; then run "pysetup 
generate-setup" and "python setup.py sdist".

--
nosy: +mu_mind

___
Python tracker 

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



[issue1757072] Zipfile robustness

2011-10-17 Thread antitree

antitree  added the comment:

I'm still affected by this issue. A workaround or patch would be appreciated.

--
nosy: +antitree

___
Python tracker 

___
___
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-17 Thread David Barnett

New submission from David Barnett :

The setup.py file currently generated by "pysetup generate-setup" fails to 
import the "codecs" module, and also uses a split_multiline function from 
distutils2/utils.py that's undefined in the setup script.

--
assignee: tarek
components: Distutils2
files: fix_nameerrors.patch
keywords: patch
messages: 145768
nosy: alexis, eric.araujo, mu_mind, tarek
priority: normal
severity: normal
status: open
title: NameErrors in generated setup.py (codecs, split_multiline)
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file23435/fix_nameerrors.patch

___
Python tracker 

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



[issue8668] Packaging: add a 'develop' command

2011-10-17 Thread David Barnett

Changes by David Barnett :


--
nosy: +mu_mind

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file23430/mbcs6.patch

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

Version 7 of my patch. This patch is ready for a review: I implemented all TODO.

Summary of the patch (of this issue):

 - fix mbcs encoding to handle correctly ignore & replace error handlers on all 
Windows version
 - the mbcs encoding now supports any error handler (not only ignore and/or 
replace to encode/decode)
 - Add codecs.code_page_encode() and codecs.code_page_decode()

With the patch, Python 3.3 will give different results than Python 3.2 with 
replace and ignore error handlers (which was required to fix bugs). I consider 
that the new behaviour is more correct than the previous behaviour. It doesn't 
use Windows "replace" mode which is different than Python "replace" mode.

codecs.code_page_encode() and codecs.code_page_decode() are currently used for 
unit tests, but they can be used to implement the cp65001 encoding in Python 
(or any other Windows code page). This encoding is regulary asked for: see 
issues #6058, #7441 and #10920.

Changes between since the patch version 6:

 - handle multibyte encodings (cp932 and CP_UTF8)
 - the "replace" error handler doesn't use Windows replace and ignore modes. 
Use Windows strict mode and replace undecodable bytes by '?'. This change 
removes some differencies between Windows versions (in some corner cases).
 - add more checks for integer overflow
 - add more tests

I only tried my patch on Windows Seven.

--

The codec works byte per byte / character per character if the stringcannot be 
decoded/encoded in strict mode, so handling errors (with an error handler 
different than strict) can be slow. I didn't implement optimizations suggested 
by Martin. Since the patch has a long test suite, it may be possible to 
implement it later.

--

The patch doesn't expose custom options (MB_COMPOSITE, MB_PRECOMPOSED, 
MB_USEGLYPHCHARS, ...). I consider that Python builtin error handlers (strict, 
ignore, replace, backslashreplace, ...) are enough.

--

I deferred my idea of decoding bytes filenames from the ANSI code page in 
posixmodule.c (and patch Python os.fsencode/fsdecode functions). I should be 
discussed in another issue.

--
Added file: http://bugs.python.org/file23434/mbcs7.patch

___
Python tracker 

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



[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread STINNER Victor

Changes by STINNER Victor :


--
nosy: +haypo

___
Python tracker 

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



[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee: docs@python -> rhettinger

___
Python tracker 

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



[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Raymond Hettinger

Raymond Hettinger  added the comment:

I think this is over-explaining an implementation detail and it makes the docs 
for id() harder to understand.

Possibly there can be a FAQ entry about identity but the id() function itself 
is no place to go into the quirks of when new objects are created or destroyed.

Also, "getting confused" is often a step in the learning process -- it can't be 
taken out entirely.

--

___
Python tracker 

___
___
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-17 Thread STINNER Victor

Changes by STINNER Victor :


--
versions: +Python 3.3

___
Python tracker 

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



[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Ned Deily

Changes by Ned Deily :


--
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-17 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

Fixed for 2.7, 3.2 and 3.3. Thanks for the bug report!

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

___
Python tracker 

___
___
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-17 Thread bpoaugust

Changes by bpoaugust :


--
versions:  -Python 3.3

___
Python tracker 

___
___
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-17 Thread bpoaugust

bpoaugust  added the comment:

A better fix, which supports multiple windows commands:

if mswindows:
pipe = os.popen('( ' + cmd + ' ) 2>&1', 'r') # Windows uses () rather 
than { }
else:
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')

This works with the command

subprocess.getoutput("echo before & python -V & echo after")

Note that python -V writes to stderr, so without the enclosing ( ) the version 
information is not captured.

--
Added file: http://bugs.python.org/file23433/subprocess.patch

___
Python tracker 

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



[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Mark Bucciarelli

Changes by Mark Bucciarelli :


--
resolution:  -> invalid

___
Python tracker 

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



[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread Andreas Stührk

Changes by Andreas Stührk :


Added file: http://bugs.python.org/file23432/sys_flags__new__crash_2.7.patch

___
Python tracker 

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



[issue13204] sys.flags.__new__ crashes

2011-10-17 Thread Andreas Stührk

New submission from Andreas Stührk :

It's not possible (by intention) to instantiate a new instance of sys.flags. 
This is achieved by setting the "tp_new" slot to NULL (in `_PySys_Init()`), 
after `PyType_Ready()` is called, which means that a slot wrapper is added to 
the type dict for the "tp_new" slot (because the slot != NULL at that time). 
The problem is now that if one calls `sys.flags.__new__` directly, a null 
pointer dereference occurs in `tp_new_wrapper()`.

Attached is a patch that fixes the crash and adds a test.

--
files: sys_flags__new__crash.patch
keywords: patch
messages: 145763
nosy: Trundle
priority: normal
severity: normal
status: open
title: sys.flags.__new__ crashes
type: crash
versions: Python 2.7, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file23431/sys_flags__new__crash.patch

___
Python tracker 

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-17 Thread Ned Deily

Ned Deily  added the comment:

What do you do for platforms like OS X where we support one set of binary files 
that contain multi-architecture C-files that can run as Intel-64, Intel-32 or 
PPC-32 on the same machine at user option at run time?  For example, the 
Apple-suppled system Python on OS X 10.6 has all three and you can use `arch` 
to specify which to run (PPC is emulated on the Intel machines supported by 
10.6):

$ file /usr/bin/python2.6
/usr/bin/python2.6: Mach-O universal binary with 3 architectures
/usr/bin/python2.6 (for architecture x86_64):   Mach-O 64-bit executable x86_64
/usr/bin/python2.6 (for architecture i386): Mach-O executable i386
/usr/bin/python2.6 (for architecture ppc7400):  Mach-O executable ppc

The static IN.py currently shipped in plat-darwin is misleading at best. And 
you can't improve the situation by regenerating at installation time.

--
nosy: +ned.deily

___
Python tracker 

___
___
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-17 Thread Carl Meyer

Carl Meyer  added the comment:

> Carl: Can you tell us how pip removes directories?

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, which in itself was the subject of recent controversy re Twisted's 
custom namespace packages implementation.

Please, let's have directories recorded in RECORD, and yes, if a directory 
would have been created but already existed, it should also be recorded (so 
that shared directories are in the RECORD file for both/all of the sharing 
distributions).

--

___
Python tracker 

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



[issue12997] sqlite3: PRAGMA foreign_keys = ON doesn't work

2011-10-17 Thread Ned Deily

Ned Deily  added the comment:

Mark, you don't say what version of OS X or which Python you are using but, if 
you are using an Apple-supplied Python on 10.6 or 10.7 or if you are using 
python.org 64-bit/32-bit installers for 2.7 or 3.2, the Python standard library 
sqlite3 modules dynamically links to the system-supplied 
/usr/lib/libsqlite3.dylib.  On 10.6.8 Snow Leopard that is 3.6.12.  On Lion 
(10.7.2) that has been updated by Apple to 3.7.5.  (BTW, the most recent 
32-bit-only python.org installers for 3.2.x and 2.7.x statically link a version 
of 3.7.4 sqlite3 in order to work on older versions of OS X which have much 
older or even no system versions of sqlite3.)

Can this issue be closed?

--
nosy: +ned.deily

___
Python tracker 

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



[issue12619] Automatically regenerate platform-specific modules

2011-10-17 Thread Roumen Petrov

Roumen Petrov  added the comment:

Related :  #1565071 and #3990  . There is no reason to keep plat-xxx files if 
cannot be managed properly.

--
nosy: +rpetrov

___
Python tracker 

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-17 Thread Roumen Petrov

Roumen Petrov  added the comment:

May be last report is not related to initial two years old . It seems to me it 
is introduced recently after some optimization related to creation of pyc files 
and this is not OpenSUSE related.

--
nosy: +rpetrov

___
Python tracker 

___
___
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-17 Thread Paul Moore

Paul Moore  added the comment:

First one - the problem is in packaging.manifest._translate_pattern, which uses 
os.path.join on regex parts. That won't work on Windows where os.sep is a 
backslash, as the backslash is a RE metacharacter.

Actually, the file list seems to only use '/' as a path separator, so you can 
just use

pattern_re = "^" + prefix_re + '/' + ".*" + pattern_re

Whether this is right or not depends on whether the test is correctly supplying 
the expected file list as always /-separated. I don't know enough to be certain 
on that. An alternative would be to use '[/\\]' in the above, to catch both / 
and \ separators. Technically wrong, but robust enough to do for now if needed.

--

___
Python tracker 

___
___
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-17 Thread Paul Moore

Paul Moore  added the comment:

I'm not getting the second error on my home PC. As the failing buildbot is 
mine, I'll have a look on there to see if I can reproduce when I get the chance.

--

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file22389/mbcs5.patch

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor

Changes by STINNER Victor :


Removed file: http://bugs.python.org/file22374/mbcs4.patch

___
Python tracker 

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



[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

mbcs6.patch: update patch to tip.

--
Added file: http://bugs.python.org/file23430/mbcs6.patch

___
Python tracker 

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



[issue12367] select.error has no errno attribute

2011-10-17 Thread STINNER Victor

Changes by STINNER Victor :


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

___
Python tracker 

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



[issue12451] open: avoid the locale encoding when possible

2011-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

Ok, it should be enough :-)

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

___
Python tracker 

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



[issue13144] Global Module Index link in the offline documentation is incorrect

2011-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

2.x docs are supposed to be built with Sphinx 0.6.x -- there the link is 
correct.

If Ubuntu chooses to ignore this and build with 1.0.x, they will have to 
include a patch fixing the link.

--
nosy: +georg.brandl
resolution:  -> invalid
status: open -> closed

___
Python tracker 

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



[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

I kept Python 2.7 and 3.2 unchanged because I'm not completly sure that the fix 
is correct :-)

--

___
Python tracker 

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



[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

I gave a maximum addition. The first sentence may be enough (or even just the 
second half of it). What people do not get is that the lifetime of new arg 
objects is the duration of the function call -- and that the output of id for 
departed objects is uniquely useless and invalid.

--

___
Python tracker 

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



[issue12454] mailbox: use ASCII to read/write .mh_sequences files

2011-10-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 5ea81e4c58a7 by Victor Stinner in branch 'default':
Close #12454: The mailbox module is now using ASCII, instead of the locale
http://hg.python.org/cpython/rev/5ea81e4c58a7

--
nosy: +python-dev
resolution:  -> fixed
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue12517] Large file support on Windows: sizeof(off_t) is 32 bits

2011-10-17 Thread STINNER Victor

STINNER Victor  added the comment:

changeset:   72869:32b1999410de
user:Victor Stinner 
date:Tue Oct 11 22:45:02 2011 +0200
files:   Modules/_io/fileio.c
description:
Fix io.FileIO.readall() on Windows 64 bits

Use Py_off_t type (64 bits) instead of off_t (32 bits).

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

___
Python tracker 

___
___
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-17 Thread STINNER Victor

STINNER Victor  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?

--

___
Python tracker 

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



[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Georg Brandl

Georg Brandl  added the comment:

If we add something at all, it should be much shorter. After all, the current 
doc already states "unique during its lifetime".

--
nosy: +georg.brandl, rhettinger
priority: normal -> low

___
Python tracker 

___
___
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-17 Thread Mark Dickinson

Mark Dickinson  added the comment:

The new patch looks fine;  I'd still like to have the more explicit reference 
counting in range_hash (see replies on Rietveld).

A few more things:

- The patch needs a Misc/NEWS entry before committing;  it probably deserves a 
line in Doc/whatsnew/3.3.rst, too.

- The doc update should have a ".. versionchanged:: 3.3" note.

- Maybe the range_compare function could be renamed to something that makes it 
clearer it's just doing an equality comparison rather than a generalized 
comparison.  'range_equality_check'?  Or just 'range_equal' or 'range_equality'?

--

___
Python tracker 

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



[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah

Stefan Krah  added the comment:

I'm not sure it's exactly the same FreeBSD bug as in kern/155606,
since I can also reproduce the test_errno failure --without-threads.

Seems good to skip the test though.

--

___
Python tracker 

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



[issue12367] select.error has no errno attribute

2011-10-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset f6b8e4226260 by Victor Stinner in branch 'default':
Issue #12367: Test test_select.test_errno() on FreeBSD
http://hg.python.org/cpython/rev/f6b8e4226260

--

___
Python tracker 

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



[issue13203] Doc: say id() is only useful for existing objects

2011-10-17 Thread Terry J. Reedy

New submission from Terry J. Reedy :

Newbies too often do something like (3.2.2, )

>>> id(getattr(x, 'pop')) == id(x.pop)
True

and get confused by the (invalid) result, whereas

>>> a,b=getattr(x, 'pop'),x.pop
>>> id(a)==id(b)
False

works properly. I think we should add a sentence or two or three to the id() 
doc, such as

Since a newly created argument object is either destroyed or becomes 
inaccessible before the function returns, *id(obj)* is only useful and valid if 
*obj* exists prior to the call and therefore after its return.
The value of an expression such as *id(666)== id(667)* is arbitrary and 
meaningless. The id of the first int object might or might not be reused for 
the second one.

--
assignee: docs@python
components: Documentation
messages: 145743
nosy: docs@python, terry.reedy
priority: normal
severity: normal
status: open
title: Doc: say id() is only useful for existing objects
versions: Python 2.7, Python 3.2, Python 3.3

___
Python tracker 

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



[issue13194] zlib (de)compressobj copy() method missing on Windows

2011-10-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 80f0accd by Nadeem Vawda in branch '2.7':
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now 
available on Windows.
http://hg.python.org/cpython/rev/80f0accd

New changeset fc7ee478ed3b by Nadeem Vawda in branch '3.2':
Issue #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now 
available on Windows.
http://hg.python.org/cpython/rev/fc7ee478ed3b

New changeset 80de33021488 by Nadeem Vawda in branch 'default':
Merge #13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are now 
available on Windows.
http://hg.python.org/cpython/rev/80de33021488

--
nosy: +python-dev

___
Python tracker 

___
___
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-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Attached is a patch which adds dirfd= as a keyword argument.

Thanks. Although, on second thought, I'm not sure whether Amaury's idea 
(allowing a custom opener) is not better... Thoughts?

--

___
Python tracker 

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



[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah

Stefan Krah  added the comment:

Hmm, maybe this is a FreeBSD bug:

http://osdir.com/ml/freebsd-bugs/2011-03/msg00201.html

--

___
Python tracker 

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



[issue13146] Writing a pyc file is not atomic

2011-10-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

Should be fixed now. Thanks for the reviews!

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

___
Python tracker 

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



[issue13146] Writing a pyc file is not atomic

2011-10-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset c16063765d3a by Antoine Pitrou in branch 'default':
Issue #13146: Writing a pyc file is now atomic under POSIX.
http://hg.python.org/cpython/rev/c16063765d3a

--
nosy: +python-dev

___
Python tracker 

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



[issue6715] xz compressor support

2011-10-17 Thread Nadeem Vawda

Nadeem Vawda  added the comment:

After disabling a bunch of services and skipping the tests that are
failing on the Windows buildbots, it seems that the failures I was
getting last week have disappeared. It looks like they were due to the
Windows search indexer preventing temp directories from being deleted... >_>

> I have imported xz-5.0.3 into the externals repository now.

I tried to test this out, but it looks like liblzma.a is missing from the
SVN repo. There should be files with that name in the bin_i486 and
bin_x86-64 directories.

Apart from this, is there anything else that needs to be done before this
change can be committed to the main repo?

--

___
Python tracker 

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



[issue12367] select.error has no errno attribute

2011-10-17 Thread Stefan Krah

Stefan Krah  added the comment:

test_errno fails quite often on FreeBSD:

==
FAIL: test_errno (test.test_select.SelectTestCase)
--
Traceback (most recent call last):
  File 
"/usr/home/buildbot/buildarea/3.x.krah-freebsd/build/Lib/test/test_select.py", 
line 35, in test_errno
self.fail("exception not raised")
AssertionError: exception not raised

--
Ran 4 tests in 11.132s

--
nosy: +skrah
status: closed -> open

___
Python tracker 

___
___
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-17 Thread bpoaugust

bpoaugust  added the comment:

subprocess.getoutput does not currently work at all on Windows.
So it's not necessary to maintain backwards compatibility.

The following fix works for me on WinXP/Python 3.2.2.

Replace

pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r') # line 613 of subprocess.py

with

if mswindows:
pipe = os.popen(cmd + ' 2>&1', 'r') # Windows does not support { }
else:
pipe = os.popen('{ ' + cmd + '; } 2>&1', 'r')

--
nosy: +bpoaugust
versions: +Python 3.3

___
Python tracker 

___
___
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-17 Thread Senthil Kumaran

Senthil Kumaran  added the comment:

Hi Eric, 

The changes suggested in the patch are good for readability, I
shall include them all. Thanks!

--

___
Python tracker 

___
___
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-17 Thread Paul Moore

Paul Moore  added the comment:

> Would you be satisfied with a more helpful traceback that would point you 
> immediately to missing msi?  Do you prefer that bdist_msi
> catch an ImportError for _msi and print a short error message instead of a 
> traceback in all its glory?

I'd be happy with a more explicit error. As you say, it's a broken
build so not worth worrying too much about, but it did take me quite a
while to work out what the problem was, including having to raise this
bug report. (The existing traceback doesn't even mention _msi).

So yes, a simple error would be ideal.

--

___
Python tracker 

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



[issue13192] ImportError silences low-level OS errors

2011-10-17 Thread Antoine Pitrou

Antoine Pitrou  added the comment:

> Are you suggesting raising the OSError (or something else) rather than
> an ImportError?  If so, would it make sense to chain the exception
> instead.  That way the existing code that expects ImportError
> continues to work

Does any existing code rely on ImportError being raised when there's a
rare OS error of some sort?

--

___
Python tracker 

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



[issue13181] pysetup install creates .pyc files but pysetup remove doesn't delete them

2011-10-17 Thread Paul Moore

Paul Moore  added the comment:

> That’s odd.  Are the pyc files in RECORD?

Yes, but not in __pycache__ where they should be.

PS D:\Data\python-sample\python> type
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\RECORD
D:\Data\cpython\Lib\site-packages\hello.py,798c341fba13dcecba260e25d2b976b6,42
D:\Data\cpython\Lib\site-packages\hello.pyc,,
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\METADATA,bcae83fd032d0c33cea5dc14a1ca1bc5,206
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\INSTALLER,44e3fde05f3f537ed85831969acf396d,9
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\REQUESTED,d41d8cd98f00b204e9800998ecf8427e,0
D:\Data\cpython\Lib\site-packages\hello-0.1.dist-info\RECORD,,

--

___
Python tracker 

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



[issue13199] slice_richcompare() might leak an object in rare cases

2011-10-17 Thread Roundup Robot

Roundup Robot  added the comment:

New changeset 53c87a0275ab by Benjamin Peterson in branch '3.2':
plug possible refleak (closes #13199)
http://hg.python.org/cpython/rev/53c87a0275ab

New changeset 7bf70519795c by Benjamin Peterson in branch 'default':
merge 3.2 (#13199)
http://hg.python.org/cpython/rev/7bf70519795c

--
nosy: +python-dev
resolution:  -> fixed
stage: test needed -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13192] ImportError silences low-level OS errors

2011-10-17 Thread Eric Snow

Eric Snow  added the comment:

Are you suggesting raising the OSError (or something else) rather than an 
ImportError?  If so, would it make sense to chain the exception instead.  That 
way the existing code that expects ImportError continues to work, while still 
allowing access to the original error through __cause__.

--

___
Python tracker 

___
___
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-17 Thread Vinay Sajip

Vinay Sajip  added the comment:

> Let me rephrase my example with real paths.

Okay, now I see what you're getting at.

> Python creates /usr/lib/python3.3/site-packages.  (I’ll call this $stdlib.)
> 
> pysetup3.3 install paste.script creates $stdlib/paste/script/ and files 
> therein.  The paste and paste/script directories are recorded.
> 
> pysetup3.3 install PasteUtil creates $stdlib/paste/util/ and files therein.  
> Only the paste/script directory is recorded.

I think you mean "Only the paste/util directory is recorded."

> The $stdlib/paste directory is created by either distribution when it is 
> installed, but if it’s recorded only by one of the distributions, then it 
> can’t 
> be removed when the other distribution is removed last.  This is the problem 
> I’m 
> seeing.

Yes, it's a valid point. 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 (paste/util in your 
example), because you're checking for emptiness (not including bytecode files 
and directories).

--

___
Python tracker 

___
___
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-17 Thread Sven Marnach

Sven Marnach  added the comment:

Mark, thanks for your comments.  Here's a new version of the patch, I answer on 
Rietveld.

--
Added file: http://bugs.python.org/file23429/range-compare-v2.patch

___
Python tracker 

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



[issue13195] subprocess: args with shell=True is not documented on Windows

2011-10-17 Thread anatoly techtonik

anatoly techtonik  added the comment:

On Mon, Oct 17, 2011 at 3:24 PM, STINNER Victor  wrote:
>
>> Certainly not right now as I don't have development environment setup
>
> See our development guide to get such environment:
> http://docs.python.org/devguide/setup.html

I know. There is better tool at
https://bitbucket.org/techtonik/devinabox but I have only 500Mb left
on my system drive and there are still more problems I need to handle.

>> It could be a lot easier with online editor
>
> Would like like to work on this project? (provide an online editor)

Do you mean would I like to work on it? Actually, I made a prototype
on AppEngine that waits for JS guru to tune CodeMirror interface. If
somebody is interested to help, I've just uploaded the code to
http://code.google.com/p/pydotorg/source/browse/?repo=doceditor

--

___
Python tracker 

___
___
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-17 Thread Éric Araujo

Éric Araujo  added the comment:

Let me rephrase my example with real paths.

Python creates /usr/lib/python3.3/site-packages.  (I’ll call this $stdlib.)

pysetup3.3 install paste.script creates $stdlib/paste/script/ and files 
therein.  The paste and paste/script directories are recorded.

pysetup3.3 install PasteUtil creates $stdlib/paste/util/ and files therein.  
Only the paste/script directory is recorded.

pysetup3.3 remove PasteScript deletes the $stdlib/paste/script dir, but not its 
parent, as it’s not empty after removing all files and dirs in PasteScript’s 
RECORD.

pysetup3.3 remove PasteUtil deletes the $stdlib/paste/util dir.

The $stdlib/paste directory is created by either distribution when it is 
installed, but if it’s recorded only by one of the distributions, then it can’t 
be removed when the other distribution is removed last.  This is the problem 
I’m seeing.

--

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Éric Araujo

Changes by Éric Araujo :


Removed file: http://bugs.python.org/file23425/range-members.patch

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

> (Could I also edit the old one?)
If you want to remove the older version, follow the edit link on the right.  In 
case you don’t have the permissions, I’ll do it.

--

___
Python tracker 

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



[issue13175] packaging uses wrong line endings in RECORD files on Windows

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

>>> The file passed to csv.writer should be opened with newline=''.
>> How will we port this to 2.x?
> No idea :-( The 2.7 documentation says use the 'b' flag, but that
> probably doesn't allow an encoding parameter (it doesn't on 3.x).

Ah, I see that newline controls newline translation.  We use codecs.open in 
distutils2; I think it uses universal newlines mode.  We’ll figure it out, the 
important part is to have good tests.

> The test fails before the fix, passes after. It's a no-op on platforms
> where text and binary files are the same, (i.e., non-Windows systems).
> So it's harmless.

Great.  I’ll look at your patch and try to port it to distutils2.

--

___
Python tracker 

___
___
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-17 Thread Rémy HUBSCHER

Rémy HUBSCHER  added the comment:

Here is the patch for the test case.

--
hgrepos: +84
Added file: http://bugs.python.org/file23428/test_util.patch

___
Python tracker 

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



[issue13202] subprocess __exit__ attribute missing

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

To clarify: Python 2.5 and higher support the with statement syntax, but not 
all classes that could benefit from it have the __enter__ and __exit__ methods. 
 So you don’t get a SyntaxError in Python 2.7 when you write “with Popen(...)”, 
but you get an AttributeError because Popen in 2.7 does not do its part to 
support context management.  The built-in open function, on the contrary, 
supports with in 2.5 and higher.

--
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed

___
Python tracker 

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



[issue13144] Global Module Index link in the offline documentation is incorrect

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

Can you clone the repository, build the doc with “make html” as explained in 
http://docs.python.org/documenting/building and tell us if the bug is there?  
If not, it’s specific to Debian or Ubuntu.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue13132] distutils sends non-RFC compliant HTTP request

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

http://tools.ietf.org/html/rfc2616#section-3.7.1

> When in canonical form, media subtypes of the "text" type use CRLF as
> the text line break. HTTP relaxes this requirement and allows the
> transport of text media with plain CR or LF alone representing a line
> break when it is done consistently for an entire entity-body. HTTP
> applications MUST accept CRLF, bare CR, and bare LF as being
> representative of a line break in text media received via HTTP

--

___
Python tracker 

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



[issue13011] Frozen programs require the original build directory in order to run.

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

Thanks for the report.  In 2.7 and 3.2, Python initialization was changed to 
use the new sysconfig module, which depends on the sysconfig.cfg file.  freeze 
needs to special-case the sysconfig module in its detection code to include the 
cfg file.

Do you want to work on a patch?

--
nosy: +eric.araujo
stage:  -> needs patch

___
Python tracker 

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



[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2011-10-17 Thread Éric Araujo

Changes by Éric Araujo :


--
nosy: +eric.araujo
versions: +Python 3.3 -Python 3.2

___
Python tracker 

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



[issue13191] Typo in argparse documentation

2011-10-17 Thread Éric Araujo

Changes by Éric Araujo :


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

___
Python tracker 

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



[issue5875] test_distutils failing on OpenSUSE 10.3, Py3k

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

The patch from #11599 should let us get the full error message, for a start.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue13189] New bdist_simple binary distribution format for packaging

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

I have to catch up with the discussion on python-dev.  I’ll also want the 
opinion from our Windows experts.  We still have time :)

--
assignee: tarek -> 
versions: +3rd party

___
Python tracker 

___
___
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-17 Thread Vinay Sajip

Vinay Sajip  added the comment:

> I did not propose such a thing.

Sorry, I misunderstood your reference to /usr/lib/python2.7/site-packages.

--

___
Python tracker 

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



[issue13190] ConfigParser uses wrong newline on Windows

2011-10-17 Thread Éric Araujo

Changes by Éric Araujo :


--
assignee:  -> lukasz.langa
components: +Library (Lib) -None
nosy: +lukasz.langa
versions: +Python 3.3 -Python 2.6

___
Python tracker 

___
___
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-17 Thread Mark Dickinson

Changes by Mark Dickinson :


--
assignee:  -> mark.dickinson

___
Python tracker 

___
___
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-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +needs review, patch
nosy: +ezio.melotti

___
Python tracker 

___
___
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-17 Thread Mark Dickinson

Mark Dickinson  added the comment:

Nice patch!  I put some comments on Rietveld.

--

___
Python tracker 

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



[issue9896] Introspectable range objects

2011-10-17 Thread Ezio Melotti

Ezio Melotti  added the comment:

See also #13200.

--
nosy: +ezio.melotti -BreamoreBoy

___
Python tracker 

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



[issue11445] python.exe on OS X shared-llbrary build erroneously linked to MacPorts python library

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

> I'm not committing this yet though as this will affect all platforms
> that use Makefiles to build, and I'm not sure if this change save for
> all compilers we effectively support.
I can test with GCC on Debian (linux kernel); I don’t know if it would be easy 
to ask all buildbots to test your branch, if not you could call for volunteers 
on python-dev.

--

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Ezio Melotti

Ezio Melotti  added the comment:

There's actually a similar proposal with a patch and a few comments in #9896.

--
nosy: +durban, pitrou, rhettinger, terry.reedy

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Sven Marnach

Sven Marnach  added the comment:

Thanks, Éric.  Added new version of the patch.  (Could I also edit the old one?)

--
Added file: http://bugs.python.org/file23427/range-members.patch

___
Python tracker 

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



[issue11610] Improved support for abstract base classes with descriptors

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

I noticed this in an older message:

> test_abc.py prints deprecation warnings for abstractproperty. I'm not
> familiar with the protocol here, do we continue to include unit tests
> for deprecated features until they are removed?
We try to keep the test warning-free.  If your patch deprecates something, the 
tests should not use deprecated API, except in one method that tests the 
deprecation itself.  There are helpers in test.support and warnings to catch 
and inspect warnings.

3.3 is still months away; there’s time for your patch.  If nobody replies here, 
ping python-dev again.

--

___
Python tracker 

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



[issue13202] subprocess __exit__ attribute missing

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

Context management support was added in 3.2.  It is not supported in 2.7.

--
nosy: +eric.araujo

___
Python tracker 

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



[issue13202] subprocess __exit__ attribute missing

2011-10-17 Thread David W. Lambert

New submission from David W. Lambert :

There are a number of issues with subprocess and __exit__ , 12494 status fixed 
among them.

Program (which doesn't work as I had hoped, but that's not the issue):


'file p.py'

import subprocess as S

with 
S.Popen(('cat','-n',),shell=False,stdin=S.PIPE,stdout=S.PIPE,bufsize=1,universal_newlines=True)
 as p:
p.stdin.write('these\n')
print(p.stdout.readline())




Use:

$ python3 p.py

Traceback (most recent call last):
  File "p.py", line 5, in 
print(p.stdout.readline())
KeyboardInterrupt
$
$ python p.py
Traceback (most recent call last):
  File "p.py", line 3, in 
with 
S.Popen(('cat','-n',),shell=False,stdin=S.PIPE,stdout=S.PIPE,bufsize=1,universal_newlines=True)
 as p:
AttributeError: __exit__
$
$ python
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>

--
components: Interpreter Core, Library (Lib)
messages: 145707
nosy: LambertDW
priority: normal
severity: normal
status: open
title: subprocess __exit__ attribute missing
versions: Python 2.7

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

I would add tests that check the read-only-ness.

--
nosy: +eric.araujo

___
Python tracker 

___
___
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-17 Thread Mark Dickinson

Changes by Mark Dickinson :


--
components: +Interpreter Core
nosy: +mark.dickinson
stage:  -> patch review
type:  -> feature request
versions: +Python 3.3

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Mark Dickinson

Changes by Mark Dickinson :


--
nosy: +mark.dickinson

___
Python tracker 

___
___
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-17 Thread Sven Marnach

New submission from Sven Marnach :

It seems some sort of consensus on how to compare range objects has emerged 
from the python-ideas discussion on comparison of range objects [1].

The attached patch defines '==' and '!=' for range object equality based on the 
sequence of values they represent.  The other comparison operators are left 
NotImplemented.

[1]: http://mail.python.org/pipermail/python-ideas/2011-October/012376.html

--
files: range-compare
messages: 145705
nosy: smarnach
priority: normal
severity: normal
status: open
title: Implement comparison operators for range objects
Added file: http://bugs.python.org/file23426/range-compare

___
Python tracker 

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



[issue13180] pysetup silently ignores invalid entries in setup.cfg

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

Agreed.  Doc/packaging/setupcfg.rst defines that custom fields need to start 
with X-, so we can refuse everything that is not built-in and does not start 
with X-.  (I’m going toward error rather than warning.)

--
assignee: tarek -> eric.araujo
keywords: +easy
nosy: +erik.bray
stage:  -> needs patch
versions: +3rd party

___
Python tracker 

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



[issue13183] pdb skips frames after hitting a breakpoint and running step

2011-10-17 Thread Meador Inge

Changes by Meador Inge :


--
nosy: +meador.inge

___
Python tracker 

___
___
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-17 Thread Éric Araujo

Éric Araujo  added the comment:

> IMO there is no need to remember any directory which isn't actually
> created by pysetup3

I did not propose such a thing.

--

___
Python tracker 

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



[issue12344] Add **kwargs to get_reinitialized_command

2011-10-17 Thread Éric Araujo

Éric Araujo  added the comment:

No, thank you for contributing :)  I don’t know all internals by heart either, 
I just needed to step back from the patch and look hard at the tests to make 
them look good.

I didn’t say that the patch was finished by the way, I haven’t covered all 
combinations (getting a command already initialized or getting a 
never-created-before command, giving kwargs or not, what we discussed on IRC).

--

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Ezio Melotti

Changes by Ezio Melotti :


--
keywords: +needs review, patch
nosy: +ezio.melotti
stage:  -> patch review
versions: +Python 3.3

___
Python tracker 

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



[issue13200] Add start, stop and step attributes to range objects

2011-10-17 Thread Sven Marnach

New submission from Sven Marnach :

As discussed on python-ideas [1], range objects should expose their start, stop 
and step values as read-only data attributes.  I've attached a patch to this 
end.

I'll open a separate issue for range comparison.

[1]: http://mail.python.org/pipermail/python-ideas/2011-October/012356.html

--
components: Interpreter Core
files: range-members
messages: 145701
nosy: smarnach
priority: normal
severity: normal
status: open
title: Add start, stop and step attributes to range objects
type: feature request
Added file: http://bugs.python.org/file23425/range-members

___
Python tracker 

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



  1   2   >