[issue13791] Other versions

2012-01-15 Thread Matt Joiner

New submission from Matt Joiner anacro...@gmail.com:

The navigation region at http://docs.python.org/dev/ should list Other 
versions instead of Old versions as the in development docs are also 
available here.

Docs for other versions
Python 2.7 (stable)
Python 3.2 (stable)
Old versions

Unreleased, development versions of the documentation. This may contain more 
information than the current released documentation.

http://www.python.org/doc/versions/

--
assignee: docs@python
components: Documentation
messages: 151281
nosy: anacrolix, docs@python
priority: normal
severity: normal
status: open
title: Other versions
type: enhancement
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/issue13791
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue13788] os.closerange optimization

2012-01-15 Thread Charles-François Natali

Changes by Charles-François Natali neolo...@free.fr:


--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - subprocess close_fds behavior should only close open fds

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



[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-15 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe tshep...@gmail.com added the comment:

 New submission from Georg Brandl ge...@python.org:

 Why is that a concern?  It is not needed for the doc build and intended to be 
 used on python.org only.

It's mentioned in
http://hg.python.org/devguide/file/5d4a90e568ed/docquality.rst, so I
got curious and found it missing in my 'default' branch.

--

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



[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-15 Thread Tshepang Lekhonkhobe

Tshepang Lekhonkhobe tshep...@gmail.com added the comment:

ok, the url is http://hg.python.org/devguide/file/5d4a90e568ed/docquality.rst

--

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



[issue13781] gzip module does the wrong thing with an os.fdopen()'ed fileobj

2012-01-15 Thread Jed Davis

Changes by Jed Davis j...@panix.com:


--
nosy: +jld

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



[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb

Ferringb ferri...@gmail.com added the comment:

In #13788, I've uploaded a patch modifying closerange along the same lines as 
this discussion; someone w/ appropriate rights should set dependencies as 
needed.

Either way, here's a question: does anyone actually know of a unix that does 
procfs, and has a daft opendir implementation as described below?  Aka, are we 
actually worrying about something relevant, or just hypotheticals?

Strikes me any scenario where this actually would occur, we're already in hell 
from broken implementations- meaning we probably don't support them.  In the 
same angle, has anyone asked opengroup (forums, ml, etc), or moreso figured out 
*where* to ask for the given reasoning here?

Regardless, if we're dead set on adhering to the standards there (and using 
re-entrant readdir_r and friends isn't enough to make people happy), a few 
hacks come to mind:

1) in the child (child1), split a pipe, fork/exec (child2) an ls -l (or 
equivalent) of /proc/$PID/fd, feeding it back to child1 which then acts on it.
2) grab the fd list pre-fork along w/ the link count for /proc/$PID/fd; child 
re-stats /proc/$PID/fd, if link count is the same, the results should be able 
to be acted upon.  I'm *reasonably* sure there is a retarded FS or two out 
there that doesn't set link count for a directory correctly, but I've never 
heard of it for a procfs.  Regardless, should be detectable- nlinks would be 0. 
 If it is, and len(fds) != 0, then you know you can't trust the results and 
have to fallback to brute force close the range.  Additionally, we ought to be 
able to test for this... so... score.

Addressing: signal handlers can open files.  Yes, they can, and our current 
implementation doesn't handle that case /anyways/, so it's orthogonal to 
speeding up closerange.

Finally, doing some codesearching, here's the rough list of heavy hitters 
spotted using this:
*) java (as mentioned)
*) chrome's seccomp sandbox uses it
*) glibc's nscd uses it (pretty strong indication this is safe in that case to 
say the least)
*) gdm
*) pulseaudio (limited to linux)
*) opensolaris actually does this, although from reading the code it sounds as 
if there is an issue w/ vfork- thus they use getdents directly.  Look for 
spawn_closefrom for details.

So.. seems a bit linuxy.  Could possibly enable it just there (whitelist).

--
nosy: +ferringb

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



[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 Either way, here's a question: does anyone actually know of a unix that does 
 procfs, and has a daft opendir implementation as described below?  Aka, are 
 we actually worrying about something relevant, or just hypotheticals?

I think it's more theoretical.
Since dirent have per-struct locks, the only reason why
opendir/readdir would not be async-safe would be because malloc() is
not async-safe. Since we already allow running Python code after
fork(), we implicitely assume that malloc() (and actually most of the
libc) is async-safe, which is true in practice because malloc() uses
pthread_atfork to reset its internal locks after fork().
So IMHO, calling opendir() should be safe (and as noted, many code out
there already does this).
The only question is: do other Unix also have /proc/pid/fd? e.g.
FreeBSD, OpenBSD. That's especially important because FreeBSD can have
a huge RLIMIT_NOFILE by default.

--

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



[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ferringb

Ferringb ferri...@gmail.com added the comment:

The only question is: do other Unix also have /proc/pid/fd? e.g.
FreeBSD, OpenBSD. That's especially important because FreeBSD can have
a huge RLIMIT_NOFILE by default.

Unless the OS gives some way to optimize the process (whether inferring from 
procfs, or making use of spawn_closefrom), there really isn't anything we can 
do.  O_CLOEXEC is one option, but that's basically the same as the close loop 
in terms of syscalls- specifically post fork looping over the range and setting 
it.  Beyond that, it's linux specific, so only would be used if the root python 
was invoked from lacked procfs.

I'm willing to extend my original patch to handle alternate OS hints as needed; 
in the same way, the nlinks trick I can implement although I'd be more inclined 
to just limit my original closerange patch to OSs that have a sane opendir and 
procfs.

--

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



[issue13788] os.closerange optimization

2012-01-15 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

fwiw, s/MSDOS_WINDOWS/MS_WINDOWS/.

--
nosy: +georg.brandl

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



[issue13521] Make dict.setdefault() atomic

2012-01-15 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

No more double lookup.

--
Added file: http://bugs.python.org/file24244/13521_27_3.patch

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



[issue13788] os.closerange optimization

2012-01-15 Thread Gregory P. Smith

Gregory P. Smith g...@krypto.org added the comment:

Reopening.  Comments added to the code review.

This issue is independent of the subprocess module issue in #8052.  The 
_posixsubprocess.c has its own fd closing loop.

 http://hg.python.org/cpython/file/050c07b31192/Modules/_posixsubprocess.c#l118

--
assignee:  - gregory.p.smith
nosy: +gregory.p.smith
resolution: duplicate - 
status: closed - open
superseder: subprocess close_fds behavior should only close open fds - 

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



[issue13722] distributions can disable the encodings package

2012-01-15 Thread Antoine Pitrou

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

Actually, that code is from bc861add5d71.
But the error was also muted in the initial checkin in d0e06efb3165.
In any case, the silencing should be removed, both in 3.2 and 3.3 IMO.

--

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



[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Filip Gruszczyński

Filip Gruszczyński grusz...@gmail.com added the comment:

Bump! It's almost 3 months since I posted the patch, so I would like to remind 
about this bug.

--

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



[issue8052] subprocess close_fds behavior should only close open fds

2012-01-15 Thread Ross Lagerwall

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

FreeBSD has a /dev/fd as well as a procfs (deprecated AFAIK).
However, both may not be mounted so a patch would *need* to at least fallback 
to the current functionality.

--

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



[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Looks good to me.

--
nosy: +georg.brandl

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



[issue11694] xdrlib raises ConversionError in inconsistent way

2012-01-15 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
stage: test needed - patch review

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



[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


Added file: http://bugs.python.org/file24245/2b7bf4e5cb9f.diff

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



[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs

Changes by Jason R. Coombs jar...@jaraco.com:


Added file: http://bugs.python.org/file24246/1cdb64480494.diff

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



[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I've created yet another patch (1cdb64480494) which adds a regression test 
under Python 2.7 to demonstrate that the fix works (based on 
test_import_symlink_package.py).

--

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



[issue6727] ImportError when package is symlinked on Windows

2012-01-15 Thread Jason R. Coombs

Jason R. Coombs jar...@jaraco.com added the comment:

I've created yet another patch (1cdb64480494) which adds a regression test 
under Python 2.7 to demonstrate that the fix works (based on 
test_import_symlink_package.py).

--

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



[issue13521] Make dict.setdefault() atomic

2012-01-15 Thread Antoine Pitrou

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

 No more double lookup.

Your patch doesn't check hashed2.eq_count.
Since the dict specification doesn't say on which instance __eq__ will
be called when doing a lookup, the patch should either check
``hashed1.eq_count + hashed2.eq_count``, or make eq_count a class
attribute.

A nit: be careful not to use tabs in C files.

--

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



[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Martin v . Löwis

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

See PCbuild/readme.txt, and follow its instructions scrupulously. If you use a 
different build procedure, or different Tcl sources, you are on your own.

--

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



[issue13589] Aifc low level serialization primitives fix

2012-01-15 Thread Antoine Pitrou

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

For the record, can you explain why infinity and NaN can end up in AIFC files?
That said, the patch looks ok to me.

--
nosy: +pitrou

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



[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Juan Javier

Juan Javier jjdomingu...@gmail.com added the comment:

Hello,

You're right, explaining the difference between CANCELLED and 
CANCELLED_AND_NOTIFIED is gong to be hard and might be confusing. I also agree 
that there is no precedent for storing the history of something, and I don't 
like either the idea of having a futures factory (that was my first idea).

But, what about using callbacks? it is possible to add done callbacks, why 
can't we have a list of callbacks attached to each public state.

Something like:

Future.append_callback(self, state: One of PENDING, RUNNING, CANCELLED, 
FINISHED, fn)

--

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user

py.user port...@yandex.ru added the comment:

also strange(unobvious) behavior:
 '{0:.3s}'.format((i for i in (1, 2, 3)))
'ge'
 '{0:.3s}'.format(range(10))
'ran'
 '{0:.3s}'.format(None)
'Non'


it would be better to print an error:
ValueError: Unknown format code 's' for object of type 'generator'

like in this:
 '{0:d}'.format(4.5)
Traceback (most recent call last):
  File stdin, line 1, in module
ValueError: Unknown format code 'd' for object of type 'float'


in the documentation there is nothing about it

--

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

No, it wouldn't.  I expect

  {}.format(x)

to produce something for an arbitrary x.  Breaking that would break a 
fundamental Python contract.

Improving the error message for 'd' is more possible.  Perhaps the format code 
'd' is not implemented by objects of type type?

--
nosy: +r.david.murray

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Oh, and when you say there is nothing in the documentation about the 's' case 
for arbitrary objects, it is made clear in various places that every object has 
an str, which defaults to its repr if it has no specific __str__.  Combine that 
with the description of what happens when you use a fixed field length for 's', 
and you get the results you see.  There should be nothing surprising about this 
to anyone who has read the tutorial, I think.  (But specific suggestions for 
improving the docs are always welcome.)

--

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



[issue13785] Make concurrent.futures.Future state public

2012-01-15 Thread Antoine Pitrou

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

 The idea is to have access to the current state of the Future using a 
 property instead of calling several methods (done, cancelled, etc.).

I think one point of having methods is that querying is decoupled from 
implementation. The internal states could for example be finer-grained than 
what is exposed by the API.

 Also, a history property that returns a list of Event(state, timestamp) 
 objects is written, the list stores the timestamp every time the state of a 
 future changes.

Uh, what is the use case exactly?

--
nosy: +pitrou

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



[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Kay Hayen

New submission from Kay Hayen kayha...@gmx.de:

Hello,

I am the author of the Python compiler Nuitka. It has the ability to 
immediately execute the created executable file. For that I am using os.execl 
to immediately replace the compiler and run the freshly created binary instead.

This worked well so far, but as of late, I am also checking the exit codes, and 
it turns out that even for failing programs, the exit code is 0 on Windows, 
even though the compiled binary is exiting with 1.

Investigating further, I made a simple program:

---
import os
os.execl( FailingProgram.exe, lala )
---

And it turns out, it's giving me 0, whereas when executed directly 
FailingProgram.exe gives 1. Checking %errorlevel% manually that is, my test 
framework uses subprocess module and gets 0.

The same code works fine (preserves exit code) under Linux. I didn't find the 
windows specific code responsible for implementing os.execv under Win32. I am 
suspecting that somehow cmd.exe may not be propagating the error code, but 
for that to confirm I would need pointers.

Thanks in advance,
Kay

--
components: Library (Lib)
messages: 151304
nosy: kayhayen
priority: normal
severity: normal
status: open
title: The os.execl call doesn't give programs exit code
type: behavior
versions: Python 2.7

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



[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Antoine Pitrou

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

Python's os.execl simply calls Windows' execv() function, which AFAIK has 
nothing to do with cmd.exe.

--
nosy: +brian.curtin, pitrou, tim.golden

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user

py.user port...@yandex.ru added the comment:

R. David Murray wrote:
 it is made clear in various places that every object has an str

here:
http://docs.python.org/py3k/library/string.html#format-specification-mini-language

3rd paragraph:
A general convention is that an empty format string () produces the same 
result as if you had called str() on the value. A non-empty format string 
typically modifies the result.

an empty format string () what does it mean ?

.format(value) or {}.format(value) or {0}.format(value) ?

--

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user

py.user port...@yandex.ru added the comment:

also here:
http://docs.python.org/py3k/library/string.html#format-examples

there is no example with list or tuple to know exactly how they are formatted

--

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

an empty format string is exactly what I was talking about.  Putting nothing 
between the {}'s is an empty format string.  I can't think of any way to make 
that wording clearer.

The format docs should not contains examples of the repr of all possible python 
objects.  The examples of what tuples and lists and dicts c look like are 
shown in the docs for those objects.

--

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



[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Roundup Robot

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

New changeset 95b704cb7f7c by Terry Jan Reedy in branch '2.7':
#13039 allow proper deletion of ' ' in IDLE editor windows.
http://hg.python.org/cpython/rev/95b704cb7f7c

New changeset c6e7473b1fb5 by Terry Jan Reedy in branch '3.2':
#13039 allow proper deletion of ' ' in IDLE editor windows.
http://hg.python.org/cpython/rev/c6e7473b1fb5

New changeset 6099d9dd0c26 by Terry Jan Reedy in branch 'default':
Merge with 3.2 #13039 allow proper deletion of ' ' in IDLE editor windows.
http://hg.python.org/cpython/rev/6099d9dd0c26

--
nosy: +python-dev

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



[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Terry J. Reedy

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

I tested with 3.2.2 on Win7. Deletes prompt in editor window with both 
backspace and delete keys, but not prompt in shell. EditorWindow.py is 
identical in all three branches, at least in this area, so pushed. One nuisance 
gone. Thanks Roger.

--
assignee:  - terry.reedy
resolution:  - fixed

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



[issue13039] IDLE editor: shell-like behaviour on line starting with

2012-01-15 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage: needs patch - committed/rejected
status: open - closed

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



[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-15 Thread Jim Jewett

Jim Jewett jimjjew...@gmail.com added the comment:

Why was the delta-processing removed from the casing functions?

As best I can tell, the whole point of going through multiple levels of 
indirection (courtesy splitbins) is to maximize compression and minimize the 
amount of cache that unicode might occupy.

By using deltas, only one record is needed for each combination of (upper - 
lower, upper - title), which is generally only one or two combinations per 
script.  

Without deltas, nearly every cased letter needs its own record, and the index 
tables also get bigger. (It seems to be about 2.6 times as large, but cache 
effects may be worse, since letters from the same script will no longer be in 
the same record or the same index chain.)

If it is a concern about not enough room for flags, then the decimal/digit 
chars could be combined.  They are always the same, unless the number isn't 
decimal (in which case the flag is enough).

--

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



[issue13588] Change name of internal closure functions in importlib

2012-01-15 Thread Berker Peksag

Berker Peksag berker.pek...@gmail.com added the comment:

Hi Brett, did you have a chance to review the patch I submitted?

--

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



[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Roundup Robot

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

New changeset 1c0c6fa7341c by Meador Inge in branch '3.2':
Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames 
indexes.
http://hg.python.org/cpython/rev/1c0c6fa7341c

New changeset c0660d7cc1fe by Meador Inge in branch 'default':
Issue #13629: Renumber the tokens in token.h to match the _PyParser_TokenNames 
indexes.
http://hg.python.org/cpython/rev/c0660d7cc1fe

--
nosy: +python-dev

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



[issue13629] _PyParser_TokenNames does not match up with the token.h numbers

2012-01-15 Thread Meador Inge

Changes by Meador Inge mead...@gmail.com:


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

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



[issue12736] Request for python casemapping functions to use full not simple casemaps per Unicode's recommendation

2012-01-15 Thread Roundup Robot

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

New changeset 03ea95e3b497 by Benjamin Peterson in branch 'default':
delta encoding of upper/lower/title makes a glorious return (#12736)
http://hg.python.org/cpython/rev/03ea95e3b497

--

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



[issue13766] explain the relationship between Lib/lib2to3/Grammar.txt and Grammar/Grammar

2012-01-15 Thread Roundup Robot

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

New changeset 8f7e707ab729 by Benjamin Peterson in branch '3.2':
explain why we need this grammar file (closes #13766)
http://hg.python.org/cpython/rev/8f7e707ab729

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

New changeset 5d1c177c585b by Benjamin Peterson in branch '2.7':
explain why we need this grammar file (closes #13766)
http://hg.python.org/cpython/rev/5d1c177c585b

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

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



[issue13790] In str.format an incorrect error message for list, tuple, dict, set

2012-01-15 Thread py.user

py.user port...@yandex.ru added the comment:

R. David Murray wrote:
 Putting nothing between the {}'s is an empty format string.

this is an empty replacement field

here:
http://docs.python.org/py3k/library/string.html#format-string-syntax

the definition of format string:
Format strings contain “replacement fields” surrounded by curly braces {}. 
Anything that is not contained in braces is considered literal text, which is 
copied unchanged to the output.

The grammar for a replacement field is as follows:
replacement_field ::=  { [field_name] [! conversion] [: format_spec] }

--

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



[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Éric Araujo

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

To avoid repetition (“Docs for other versions” — “Other versions”), I’d propose 
changing “Old versions” to “All versions”.

--
nosy: +eric.araujo, ezio.melotti, sandro.tosi, terry.reedy
title: Other versions - Reword “Old versions” in the doc sidebar
versions:  -Python 2.6, Python 3.1, Python 3.4

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



[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Terry J. Reedy

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

I believe this should be closed in favor of #13122. The sidebar needs more 
change than just this one thing. See my proposal for a version-independent 
sidebar in msg150907, which Georg B. approved of.

--

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



[issue12705] Make compile('1\n2\n', '', 'single') raise an exception instead of silently truncating?

2012-01-15 Thread Éric Araujo

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

IMO this is a bug and should be fixed in stable versions too.

--
nosy: +eric.araujo

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



[issue13793] hasattr, delattr, getattr fail with unnormalized names

2012-01-15 Thread Jim Jewett

New submission from Jim Jewett jimjjew...@gmail.com:

The documentation for hasattr, getattr, and delattr state that they are 
equivalent to object.attribute access; this isn't quite true, because 
object.attribute uses a NFKC-normalized version of the string as only the 
secondary location, while hasattr, getattr, and delattr (assuming an object 
rather than an Identifier or string) don't seem to do the normalization at all.

I think the simplest fix would be to normalize and retry when hasattr, getattr, 
and delattr fail with a string, but I'm not sure that normalization shouldn't 
be the only string tried. 

 o.º
Traceback (most recent call last):
  File pyshell#820, line 1, in module
o.º
AttributeError: 'Object' object has no attribute 'o'
 o.o
Traceback (most recent call last):
  File pyshell#821, line 1, in module
o.o
AttributeError: 'Object' object has no attribute 'o'
 o.º=[]
 hasattr(o, º)
False
 getattr(o, º)
Traceback (most recent call last):
  File pyshell#824, line 1, in module
getattr(o, º)
AttributeError: 'Object' object has no attribute 'º'
 delattr(o, º)
Traceback (most recent call last):
  File pyshell#825, line 1, in module
delattr(o, º)
AttributeError: º
 o.º
[]
 o.º is o.o
True
 o.o
[]
 del o.º
 o.o
Traceback (most recent call last):
  File pyshell#830, line 1, in module
o.o
AttributeError: 'Object' object has no attribute 'o'

 o.º = 5
 hasattr(o, º)
False
 hasattr(o, o)
True
 hasattr(o, o)
True
 o.º
5
 delattr(o, o)
 o.º

--
components: Unicode
messages: 151320
nosy: Jim.Jewett, ezio.melotti
priority: normal
severity: normal
status: open
title: hasattr, delattr, getattr fail with unnormalized names

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



[issue13794] Copyright Year - Chnage it to 2012 please

2012-01-15 Thread AJ

New submission from AJ amanj...@gmail.com:

Copyright in the footer on *.python.org says -2011. I believe this can be 
changed to 2012?

--
components: None
messages: 151321
nosy: amanjeev
priority: normal
severity: normal
status: open
title: Copyright Year - Chnage it to 2012 please

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



[issue6528] builtins colored as keyword at beginning of line

2012-01-15 Thread Ezio Melotti

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


--
nosy: +terry.reedy
priority: low - normal
stage:  - patch review

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



[issue13078] IDLE: Python Crashes When Saving Or Opening

2012-01-15 Thread Ezio Melotti

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


--
status: open - pending

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



[issue13052] IDLE: replace ending with '\' causes crash

2012-01-15 Thread Ezio Melotti

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

How difficult would it be to add tests for this?

--

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



[issue2134] Add new attribute to TokenInfo to report specific token IDs

2012-01-15 Thread Ezio Melotti

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


--
stage: needs patch - patch review

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



[issue13465] A Jython section in the dev guide would be great

2012-01-15 Thread Ezio Melotti

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


--
stage:  - committed/rejected

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



[issue13791] Reword “Old versions” in the doc sidebar

2012-01-15 Thread Éric Araujo

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

Agreed (I’d just suggest finding something better than “Everything else” :-)

--
resolution:  - duplicate
stage:  - committed/rejected
status: open - closed
superseder:  - Out of date links in the sidebar of the documentation index of 
versions 3.1 and 3.2

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



[issue13794] Copyright Year - Change it to 2012 please

2012-01-15 Thread Ezio Melotti

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


--
assignee:  - ezio.melotti
components:  -None
nosy: +ezio.melotti
stage:  - needs patch
title: Copyright Year - Chnage it to 2012 please - Copyright Year - Change it 
to 2012 please
type:  - enhancement

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



[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-15 Thread Ezio Melotti

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

Here's a patch.
I found a similar instance that says unicode string or integer address 
expected instead of %s instance, but it's inside an if 
(!PyUnicode_Check(value)) {} so it should be ok (unicode string could be 
replaced to 'str' though).

--
keywords: +patch
stage: needs patch - commit review
Added file: http://bugs.python.org/file24247/issue13665.diff

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



[issue13792] The os.execl call doesn't give programs exit code

2012-01-15 Thread Kay Hayen

Kay Hayen kayha...@gmx.de added the comment:

Well, I saw that code, but expected that there must be more to it. But I found 
out, the bug is actually caused by at least MinGW. See below how I build a 
program with it, that does execl on an error exiting program and then the 
errorlevel variable is 0, whereas direct execution gives 1.

I don't have MSVC installed, so I cannot tell if it is affected as well. I will 
report this as a bug to MinGW then.

c:\Users\hayen\Nuitkagcc -v
Es werden eingebaute Spezifikationen verwendet.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=c:/mingw/lib/../libexec/gcc/mingw32/4.6.2/lto-wrapper.exe
Ziel: mingw32
Konfiguriert mit: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,ob
jc,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libg
omp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-
runtime-libs --build=mingw32 --prefix=/mingw
Thread-Modell: win32
gcc-Version 4.6.2 (GCC)

c:\Users\hayen\Nuitkagcc exec_sample.cpp

c:\Users\hayen\Nuitkatype exec_sample.cpp

#include unistd.h
#include stdio.h


int main()
{
puts( Hello bad world! );

execl( badprogram.exe, badprogram, what );

puts( Look, this is not happening! );
return 2;
}


c:\Users\hayen\Nuitka.\a.exe
Hello bad world!

c:\Users\hayen\NuitkaTraceback (most recent call last):
  File tests\syntax\RelativeNonPackageImport.py, line 20, in module
from . import whatever
ValueError: Attempted relative import in non-package

c:\Users\hayen\Nuitkaecho %errorlevel%
0

c:\Users\hayen\Nuitka.\badprogram.exe
Traceback (most recent call last):
  File tests\syntax\RelativeNonPackageImport.py, line 20, in module
from . import whatever
ValueError: Attempted relative import in non-package

c:\Users\hayen\Nuitkaecho %errorlevel%
1

--

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



[issue13695] type specific to type-specific

2012-01-15 Thread Roundup Robot

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

New changeset 2dd96cf324ee by Ezio Melotti in branch '2.7':
#13695: fix a couple of typos in the doc.
http://hg.python.org/cpython/rev/2dd96cf324ee

New changeset bff9ab281385 by Ezio Melotti in branch '3.2':
#13695: fix a couple of typos in the doc.
http://hg.python.org/cpython/rev/bff9ab281385

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

--
nosy: +python-dev

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



[issue13695] type specific to type-specific

2012-01-15 Thread Ezio Melotti

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

I fixed both 'type-specific' and 'Python 3'.  The python-distribute link is not 
part of our documentation so I can't fix it.

--
assignee: docs@python - ezio.melotti
resolution:  - fixed
stage: needs patch - committed/rejected
status: open - closed

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



[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo

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


--
Removed message: http://bugs.python.org/msg150397

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



[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo

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


--
Removed message: http://bugs.python.org/msg150399

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



[issue13789] _tkinter does not build on Windows 7

2012-01-15 Thread Terry J. Reedy

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

I have read readme.txt, more than once. It seems a bit out-of-date. Parts of it 
I have trouble understanding, or at least, being sure I have understood. It 
seems to disagree with the devguide about whether to build debug or release 
builds. I though of opening an issue for possible readme.txt revisions.

However, my goal at the moment is to be able to test patches to IDLE .py files 
in repository builds on Win7, with the least fuss necessary. I have several 
questions:

About _tkinter, readme.txt says:
Wraps the Tk windowing system.  Unlike _sqlite3, there's nocorresponding 
tcltk.vcproj-type project that builds Tcl/Tk fromvcproj's within our 
pcbuild.sln, which means this module expects to find a pre-built Tcl/Tk in 
either ..\..\tcltk for 32-bit or   ..\..\tcltk64 for 64-bit (relative to this 
directory).  See below for instructions to build Tcl/Tk.

I interpret 'this module expects to find' to mean 'after _tkinter is 
built'. If building _tkinter requires tcltk first, it should says so. (And I 
did try to build it, see below.)

I interpret 'this directory' to mean, on my system, '.../dev/cpython/pcbuild'. 
I therefore interpret '../../tcltk' to mean '.../dev/tcltk'. Experiments in 
Command Prompt support this.

I interpret 'pre-built Tcl/Tk' to include the pre-built Tcl/Tk already 
installed on my system, just as it does on *nix. I tried copying the contents 
of /tcl and dlls/t*.pyd from installed 3.2.2 into dev/tcltk, but that does not 
work. Is there any way to use the existing tcl/tk build?

As for rebuilding, the readme says run either external.bat or 
external-amd64.bat in the ..\Tools\buildbot directory from ..\, i.e.:

C:\..\svn.python.org\projects\python\trunk\PCbuildcd ..
C:\..\svn.python.org\projects\python\trunkTools\buildbot\external.bat

That exact file builds 8.5.2 instead of 8.5.9, so the above could be updated to 
refer to the current hg version: 'whatever/cpython Tools...'.

external.bat runs external-common.bat. That brings all the external 
dependencies, which is more than I need or really want. Can I comment out the 
other dependencies if I want?

In any case, the file has near the top '''
@rem XXX: If you need to force the buildbots to start from a fresh environment, 
uncomment
@rem the following, check it in, then check it out, comment it out, then check 
it back in.
@rem if exist tcltk rd /s/q tcltk
@rem if exist tcltk64 rd /s/q tcltk64
'''
I do not really understand this. Does 'rd' mean 'remove directory? Can I just 
remove the tcltk directory I made and ignore this?

Each dependency has a line like
   svn export http://svn.python.org/projects/external/tcl-8.5.9.0;
Can I use hg export or do I need to find and install (tortoise)svn?
Are the svn urls still correct or is there an hg equivalent?

--

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



[issue13715] typo in unicodedata documentation

2012-01-15 Thread Roundup Robot

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

New changeset b4dac315feef by Ezio Melotti in branch '2.7':
#13715: fix typo in unicodedata doc.  Patch by Eli Collins.
http://hg.python.org/cpython/rev/b4dac315feef

New changeset f50ff6dd6b41 by Ezio Melotti in branch '3.2':
#13715: fix typo in unicodedata doc.  Patch by Eli Collins.
http://hg.python.org/cpython/rev/f50ff6dd6b41

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

--
nosy: +python-dev

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



[issue13715] typo in unicodedata documentation

2012-01-15 Thread Ezio Melotti

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

Fixed, thanks for the report and the patch!

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

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



[issue13443] wrong links and examples in the functional HOWTO

2012-01-15 Thread Éric Araujo

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

Sorry, my messages could be confusing.  What I meant is: While I think that 
Antoine’s doc changes were clear improvements, in the specific case of the 
functional howto there were good arguments in favor of keeping the part about 
the functional module.

--

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



[issue13695] type specific to type-specific

2012-01-15 Thread Boštjan Mejak

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

There's also one more typo in the doc for cmp_to_key() function. Fix the first 
sentence Transform an old-style comparison function to a key-function. to 
Transform an old-style comparison function to a key function. (note the 
removal of the hyphen between words key and function)

http://docs.python.org/library/functools.html#functools.cmp_to_key

--
resolution: fixed - remind
status: closed - open

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



[issue13695] type specific to type-specific

2012-01-15 Thread Georg Brandl

Changes by Georg Brandl ge...@python.org:


--
assignee: ezio.melotti - rhettinger
nosy: +rhettinger

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



[issue11906] test_argparse failure in interactive mode

2012-01-15 Thread Ezio Melotti

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

This was committed on py3k in 4f8c24830a5c. Terry, can the issue be closed?

--

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



[issue13795] CDATA Element missing

2012-01-15 Thread Pedro Andres Aranda Gutierrez

New submission from Pedro Andres Aranda Gutierrez paag...@gmail.com:

When creating ElementTree objects that hold SVG drawings, I need a CDATA object 
similar to the ProcessingInstruction object. There was a circumvention of the 
problem for Python 2.6:

http://stackoverflow.com/questions/174890/how-to-output-cdata-using-elementtree

This workaround doesn't work in Python 2.7 and above

--
messages: 151334
nosy: paaguti
priority: normal
severity: normal
status: open
title: CDATA Element missing
versions: Python 3.4

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



[issue13691] pydoc help (or help('help')) claims to run a help utility; does nothing

2012-01-15 Thread jbitcm-

jbitcm- chakrapacka...@gmail.com added the comment:

I am working on it

--
nosy: +jbitcm-

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



[issue13796] use 'text=...' to define the text attribute of and xml.etree.ElementTree.Element

2012-01-15 Thread Pedro Andres Aranda Gutierrez

New submission from Pedro Andres Aranda Gutierrez paag...@gmail.com:

I have extended the xml.etree.ElementTree.Element class and pass the text 
attribute in the arguments. This creates much more compact code:

import xml.etree.ElementTree as xml


class Element(xml.Element):
def __init__(self,tag,attrib={},**attrs):
super(xml.Element,self).__init__()
self.tag = tag
self.attrib = attrib
self.attrib.update(attrs)
self.text = self.attrib.pop('text',None)
self.tail = self.attrib.pop('tail',None)
self._children = []

if __name__ == '__main__':
from sys import stdout

test = Element('Hello',)
test2 = Element('World',{'humour':'excelent'},text = 'How do you do', 
tail=Fine)
test.append(test2)

xml.ElementTree(test).write(stdout,encoding=utf-8,xml_declaration=yes,method=xml)

--
messages: 151336
nosy: paaguti
priority: normal
severity: normal
status: open
title: use 'text=...' to define the text attribute of and 
xml.etree.ElementTree.Element
type: enhancement

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



[issue12600] Support parameterized TestCases in unittest

2012-01-15 Thread Mark Diekhans

Mark Diekhans ma...@kermodei.com added the comment:

The lack of the ability to pass a parameter to a test case is a very
frustrating restriction with unittest. The frequent need if for a database
connection for testing database related classes.

Yes, there are lots of other ways to work around it, but they tend to involved 
need to understand and subclass several pieces of the unittest
framework.

An enthusiastic yes on this.

--
nosy: +diekhans

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



[issue13275] Recommend xml.etree for XML processing

2012-01-15 Thread Éric Araujo

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

(I haven’t found an elegant XML lib, and have not yet needed to look for one as 
I touch very little XML.)

--

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