[issue6648] codecs documentation does not mention surrogateescape

2009-08-18 Thread Alexey Shamrin

Alexey Shamrin sham...@gmail.com added the comment:

Georg, it would also be nice to give a link to 'surrogateescape'
information in os module [1]. Yes, you gave a link to PEP 383, but PEP
harder to follow and more lengthy.

[1]:
http://docs.python.org/3.1/library/os.html#file-names-command-line-arguments-and-environment-variables

--
nosy: +ash

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



[issue6722] collections.namedtuple: confusing example

2009-08-18 Thread Alexey Shamrin

New submission from Alexey Shamrin sham...@gmail.com:

Maybe it's just me, but it took me several attempts  to understand
namedtuple example in the documentation [1]. The problem is that the
first example uses verbose=True. It's very unusual to get Python source
as the output in Python shell. At first I thought there's some syntax
error in documentation source.

I know that several lines above one can read: If verbose is true, the
class definition is printed just before being built. But during first
several attempts to understand namedtuple, I skipped it and directly
scrolled to the first example.

I think the first example on namedtuple usage shouldn't use verbose=True.

You could argue I had to try using namedtuple inside Python shell. I
agree. But unfortunately Python 2.6 was not installed on the computer I
was at.

[1]: http://docs.python.org/library/collections.html#collections.namedtuple

--
assignee: georg.brandl
components: Documentation
messages: 91680
nosy: ash, georg.brandl
severity: normal
status: open
title: collections.namedtuple: confusing example
versions: Python 2.6, Python 2.7, Python 3.0, Python 3.1, Python 3.2

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



[issue6723] csv.writer: example does not work

2009-08-18 Thread Nicolas Goutte

New submission from Nicolas Goutte nicolas.gou...@extragroup.de:

In the documentation for csv.writer, the example
spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ',
quotechar='|', quoting=QUOTE_MINIMAL)
does not work, as Python complains about SyntaxError: invalid syntax,
as QUOTE_MINIMAL is not a global identifier.

By replacing QUOTE_MINIMAL by csv.QUOTE_MINIMAL there is no syntax error
anymore.

I have discovered the issue with python 2.6.2. All online documentation
version (2.6, 2.7, 3.1, 3.2) seem to have the same documentation (e.g.
http://docs.python.org/library/csv.html )

--
assignee: georg.brandl
components: Documentation
messages: 91682
nosy: georg.brandl, nicolasg
severity: normal
status: open
title: csv.writer: example does not work
versions: Python 2.6

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



[issue4879] Allow buffering for HTTPResponse

2009-08-18 Thread R. David Murray

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

And that update causes failures in test_xmlrpc.

--
nosy: +r.david.murray

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



[issue4879] Allow buffering for HTTPResponse

2009-08-18 Thread R. David Murray

Changes by R. David Murray rdmur...@bitdance.com:


--
priority:  - normal
stage:  - commit review
status: closed - open

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



[issue4879] Allow buffering for HTTPResponse

2009-08-18 Thread R. David Murray

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

I think I'll open a new ticket instead.

--
stage: commit review - committed/rejected
status: open - closed

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



[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread R. David Murray

New submission from R. David Murray rdmur...@bitdance.com:

The title says it all.

--
assignee: gregory.p.smith
components: Library (Lib), Tests
messages: 91685
nosy: gregory.p.smith, r.david.murray
priority: high
severity: normal
stage: needs patch
status: open
title: r74463 causes failures in test_xmlrpc
type: behavior
versions: Python 2.7

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



[issue6720] multiprocessing logging

2009-08-18 Thread Jesse Noller

Jesse Noller jnol...@gmail.com added the comment:

Christian is managing the back port.

--
assignee: jnoller - christian.heimes
nosy: +christian.heimes

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



[issue1119673] ScrolledText allows Frame.bbox to hide Text.bbox

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

This has been fixed on r74507 now.

--
resolution:  - accepted
status: open - closed

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



[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

Fix has been committed on r74508.

--
resolution:  - accepted
status: open - closed

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



[issue1259434] Tix CheckList 'radio' option cannot be changed

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

Committed on r74509.

--
resolution:  - accepted
status: open - closed

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



[issue1522587] Tix.Grid patch

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

New constants and methods have been commited on r74510. I've added only
the tix commands that are actually supported by tix.

The fixes for some of the methods have been committed on r74511.

--
resolution:  - accepted
status: open - closed

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



[issue6723] csv.writer: example does not work

2009-08-18 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

Thanks for the report.  Fixed for 2.6, 2.7, 3.0, 3.2. Can't seem to check
out a 3.1 branch (tried release31-maint but was rebuffed by svn).

--
nosy: +skip.montanaro

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



[issue6722] collections.namedtuple: confusing example

2009-08-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

It seems that it is the API you don't like, not the example.

What is your suggested improvement to the docs?

--
assignee: georg.brandl - rhettinger
nosy: +rhettinger

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



[issue6723] csv.writer: example does not work

2009-08-18 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

figured out my checkout problem.  will have 3.1 fixed shortly.

--
assignee: georg.brandl - skip.montanaro

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



[issue6723] csv.writer: example does not work

2009-08-18 Thread Skip Montanaro

Skip Montanaro s...@pobox.com added the comment:

3.1 corrected as well.

--
resolution:  - fixed
status: open - closed

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



[issue1356969] Tix.py class HList missing info_bbox, info_dragsite and info_dropsite

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

Committed on r74517.

--
resolution:  - fixed
status: open - closed

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



[issue6725] Inconsistency in Documentation: Name Spaces vs Namespaces

2009-08-18 Thread CarGuy37

New submission from CarGuy37 tom.macl...@analog.com:

Why is there an inconsistency in the usage of Name Spaces vs Namespaces?

After import this, Python returns ...Namespaces are ...

I would suggest conjoining the two words and being consistent (9.2 Title
and beginning sentence of the 6th paragraph thereof).

--
assignee: georg.brandl
components: Documentation
messages: 91696
nosy: CarGuy37, georg.brandl
severity: normal
status: open
title: Inconsistency in Documentation: Name Spaces vs Namespaces
versions: Python 2.6

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



[issue6726] pyuic4.bat has bad path to python.exe and pyuic.py

2009-08-18 Thread Marcin

New submission from Marcin maar...@gmail.com:

I have found bug in pyuic4.bat. I have installed python to directory
c:\programs. The path to 'python.exe' is c:\programs\python.exe. Content
of file pyuic4.bat is:

@C:\Python25\python.exe
C:\Python25\Lib\site-packages\PyQt4\uic\pyuic.py %1 %2 %3 %4 %5 %6 %7
%8 %9

In this file, during installation process it must be changed path to
python.exe.

In my example it must be done like that:

@C:\programs\Python25\python.exe
C:\programs\Python25\Lib\site-packages\PyQt4\uic\pyuic.py %1 %2 %3 %4
%5 %6 %7 %8 %9

--
components: Demos and Tools
messages: 91697
nosy: maar
severity: normal
status: open
title: pyuic4.bat has bad path to python.exe and pyuic.py
versions: Python 2.5

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



[issue5961] Missing labelside option for Tix option menu (fix included)

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

Hi Cary,

Where can I find the most up-to-date Tix manual ? Would it be
http://tix.sourceforge.net/man/html/contents.htm ?

I don't know much about Tix so maybe you can help me a bit here. Are all
of these widget specific options considered as static options by Tix ?
If so, shouldn't command, disablecallback, label, state, value
and variable be added here as well ?

--
nosy: +gpolo
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5961
___
___
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

2009-08-18 Thread Jason R. Coombs

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

Python reports an import error, even when a valid package exists on
sys.path, if that package is a symlink directory and would otherwise be
importable.

The attached test script demonstrates the limitation on Python 2.6.2 and
3.1.0.

I suspect that the underlying import routines have some assumptions
about the file system that exclude symlinked directories.

--
components: Interpreter Core, Windows
files: test_import_symlink_package.py
messages: 91699
nosy: jaraco
severity: normal
status: open
title: ImportError when package is symlinked on Windows
type: behavior
versions: Python 2.6, Python 3.1
Added file: http://bugs.python.org/file14741/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



[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-08-18 Thread Jason R. Coombs

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

Can this fix be considered for inclusion in 3.1.2?

--

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



[issue1119673] ScrolledText allows Frame.bbox to hide Text.bbox

2009-08-18 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
resolution: accepted - fixed

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



[issue1119673] ScrolledText allows Frame.bbox to hide Text.bbox

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

 This has been fixed on r74507 now.

py3k branch: r74518.

--

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



[issue1250469] Tix: PanedWindow.panes nonfunctional

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

py3k branch: r74518.

--
resolution: accepted - fixed

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



[issue1259434] Tix CheckList 'radio' option cannot be changed

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

py3k branch: r74518.

--
resolution: accepted - fixed

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



[issue1356969] Tix.py class HList missing info_bbox, info_dragsite and info_dropsite

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

py3k branch: r74518.

--

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



[issue1356969] Tix.py class HList missing info_bbox, info_dragsite and info_dropsite

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

py3k branch: r74518.

--

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



[issue1522587] Tix.Grid patch

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

py3k branch: r74518.

--
resolution: accepted - fixed

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



[issue1356969] Tix.py class HList missing info_bbox, info_dragsite and info_dropsite

2009-08-18 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--

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



[issue6728] To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x

2009-08-18 Thread Yang

New submission from Yang stud...@live.cn:

The mismatched content length will cause hang up in sys.stdin.read(). 
The reason is probably described in Issue 1214 as well as 1725295.

length = int(os.environ.get('CONTENT_LENGTH', None))
Length fix for IIS 7.x to avoid hang up
length=length-2

I would appreciate if someone can create a diff or patch file for the 
code above.

--
components: Library (Lib)
messages: 91707
nosy: sjtuer
severity: normal
status: open
title: To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x
type: feature request
versions: Python 2.6

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



[issue5961] Missing labelside option for Tix option menu (fix included)

2009-08-18 Thread Cary R.

Cary R. cygc...@yahoo.com added the comment:

That is the manual I am referencing and the last time I looked it was
the most recent.

I'm not to familiar with the Python port of Tix, but I am using the
command, label, state, and variable options and they already work fine.
I could try the other options if that would help.

I needed the labelside functionality so I hacked Tix.py to get it to
work. I mimicked the code from other objects that have a labelside
option. My assumption was that some base class knew how to handle many
of the standard options, but did not know about labelside. It is
possible that there is a better way to handle this (add it to the same
place the others are implemented), but that would have required
understanding the class hierarchy and much more work. At the time I just
needed to get it to work and what I proposed does work and is consistent
with other objects. Since I was not using the other options I did not
check them.

Let me know if there is anything else I can do to help.

--

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



[issue5961] Missing labelside option for Tix option menu (fix included)

2009-08-18 Thread Guilherme Polo

Guilherme Polo ggp...@gmail.com added the comment:

 That is the manual I am referencing and the last time I looked it was
 the most recent.


Thanks for clarifying that.

 I'm not to familiar with the Python port of Tix, but I am using the
 command, label, state, and variable options and they already work fine.
 I could try the other options if that would help.


Now I see, it is a problem in the Tix manual. Some commands around
there document which options are static and which are not. For
OptionMenu, 'labelside' is an static option but is not described as
such.

Fixed on r74519.

 I needed the labelside functionality so I hacked Tix.py to get it to
 work. I mimicked the code from other objects that have a labelside
 option. My assumption was that some base class knew how to handle many
 of the standard options, but did not know about labelside. It is
 possible that there is a better way to handle this (add it to the same
 place the others are implemented), but that would have required
 understanding the class hierarchy and much more work. At the time I just
 needed to get it to work and what I proposed does work and is consistent
 with other objects. Since I was not using the other options I did not
 check them.

 Let me know if there is anything else I can do to help.

It looks like Tix.py might need a review on this area of static
options. Tix's documentation doesn't help much, so it will require
some manual testing.

--

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



[issue5961] Missing labelside option for Tix option menu (fix included)

2009-08-18 Thread Guilherme Polo

Changes by Guilherme Polo ggp...@gmail.com:


--
resolution:  - fixed
status: open - closed
type: feature request - 

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



[issue6726] pyuic4.bat has bad path to python.exe and pyuic.py

2009-08-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Please report this to the _PyQt_ maintainers.

--
nosy: +benjamin.peterson
resolution:  - invalid
status: open - closed

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



[issue4661] email.parser: impossible to read messages encoded in a different encoding

2009-08-18 Thread Timothy Farrell

Changes by Timothy Farrell tfarr...@swgen.com:


--
nosy: +tercero12

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



[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2009-08-18 Thread Timothy Farrell

Timothy Farrell tfarr...@swgen.com added the comment:

I thought I'd take a crack at this today.  I soon figured out the real
issue.  It is the email.parser module that handles the decoding of
Multipart/form-data things...and it is also still quote broken w.r.t.
handling Bytes.  So this issue is dependent on
http://bugs.python.org/issue4661 before it can be fixed.

--

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



[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread Brett Cannon

Brett Cannon br...@python.org added the comment:

David, care to just revert r74463? If it breaks tests should be reverted 
until it can be fixed by whomever made the commit.

--
nosy: +brett.cannon

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



[issue6729] Add support for ssize_t

2009-08-18 Thread Nikolaus Rath

New submission from Nikolaus Rath nikol...@rath.org:

ctypes currently has a datatype c_size_t which corresponds to size_t in
C, but there is no datatype for the C ssize_t.

--
assignee: theller
components: ctypes
messages: 91713
nosy: Nikratio, theller
severity: normal
status: open
title: Add support for ssize_t
type: feature request
versions: Python 2.6

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



[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-18 Thread Maxime Lemonnier

New submission from Maxime Lemonnier maxime.lemonn...@gmail.com:

Consider the following code sample :

keys = ['x', 'y', 'z']
d = dict.fromkeys(keys, [])
d['x'].append('dont')
d['y'].append('mix')
d['z'].append('me!')
print d['x']

 ['dont', 'mix', 'me!']

It is very unatural and dangerous to have all dict keys poining to the
same mutable object reference. 

The way it should behave : 
if value is mutable, create a new copy of value for each keys
else, it doesn't matter

--
components: Interpreter Core
messages: 91714
nosy: maxlem
severity: normal
status: open
title: dict.fromkeys() should not cross reference mutable value by default
type: behavior
versions: Python 2.6

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



[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-18 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

This behavior will never change. Use collections.defaultdict for your case.

--
nosy: +benjamin.peterson
resolution:  - wont fix
status: open - closed

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



[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-18 Thread Raymond Hettinger

Raymond Hettinger rhettin...@users.sourceforge.net added the comment:

I concur.

--
nosy: +rhettinger

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



[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-18 Thread Maxime Lemonnier

Maxime Lemonnier maxime.lemonn...@gmail.com added the comment:

It does not suits my needs.

what if keys are passed as an argument?

I have to add this ugly loop :

for key in keys:
d[key] = [] 


I really think that :
1) The doc should warn about it, since it is a very weird behaviour
2) There could at least be a third argument allowing the user to choose,
with a default value that maintains the current behaviour (for
compatibility, even though I think the default should be a deep copy)

--

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



[issue6730] dict.fromkeys() should not cross reference mutable value by default

2009-08-18 Thread R. David Murray

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

The docs very clearly say the second argument is the value that will be
assigned to the keys.  It doesn't matter whether or not that object is
mutable, it is that object that gets assigned.  This is just the way
that Python works:

 a = b = []
 a.append(1)
 b.append(2)
 a
[1, 2]

That is exactly analogous to what you are doing in your example.

--
nosy: +r.david.murray

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



[issue6731] Non-zero exit status of setup.py when building of extensions has failed

2009-08-18 Thread Arfrever Frehtes Taifersar Arahesis

New submission from Arfrever Frehtes Taifersar Arahesis 
arfrever@gmail.com:

sharedmods rule of Makefile calls setup.py which doesn't fail even
building of extensions has failed.

--
components: Build
files: python-non-zero_exit_status_on_failure.patch
keywords: patch
messages: 91719
nosy: Arfrever
severity: normal
status: open
title: Non-zero exit status of setup.py when building of extensions has failed
versions: Python 2.4, Python 2.5, Python 2.6, Python 2.7, Python 3.0, Python 
3.1, Python 3.2
Added file: 
http://bugs.python.org/file14742/python-non-zero_exit_status_on_failure.patch

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



[issue5528] Unable to launch IDLE on Windows

2009-08-18 Thread Sridhar Ratnakumar

Changes by Sridhar Ratnakumar sridh...@activestate.com:


--
nosy: +srid

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



[issue6732] PyInit_shoddy() in shoddy.c does not return anything on success

2009-08-18 Thread KAJIYAMA, Tamito

New submission from KAJIYAMA, Tamito rd6t-k...@asahi-net.or.jp:

Section 2.1.4, Subclassing other types, of Extending and Embedding 
the Python Interpreter (Release: 3.1, Date: June 26, 2009) has a 
complete list of shoddy.c, in which PyInit_shoddy() does not have a 
return statement at the end to return a pointer to the created shoddy 
module on success.  Simply adding the missing return m; statement 
would be fine.

--
assignee: georg.brandl
components: Documentation
messages: 91720
nosy: georg.brandl, kajiyama
severity: normal
status: open
title: PyInit_shoddy() in shoddy.c does not return anything on success
versions: Python 3.1

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



[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2009-08-18 Thread fugounashi

New submission from fugounashi fugounashi+pyt...@gmail.com:

when printing a full width unicode character near the end of a line when
only a single (half-width) space remains, the character is printed at
the start of the current line rather than the start of the next line. 
the following character is printed in the following space on the next
line as it should be.  same behaviour in both mlterm and xterm

thanks!

python deb 2.5.2-3

--
messages: 91721
nosy: fugounashi
severity: normal
status: open
title: curses line wrap broken when mixing full- and half-width unicode 
characters
type: behavior
versions: Python 2.5

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



[issue6716] Windows install error when choosing to compile .py files

2009-08-18 Thread pds

pds pirdir...@gmail.com added the comment:

The same problems I reported persist in python-3.1.1.msi, too.

--

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



[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread Gregory P. Smith

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

hmm apparently the bug i was fixing in r74463 is not actually a bug, the 
httplib module does not support streaming requests in any way so even with 
a new socket buffer being constructed per request, the buffer is 
guaranteed to be empty at the end of completed request.

I'll undo the change and/or fix it to only close the connection if there 
was left over received data in the buffer after the response is finished.

--

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



[issue6724] r74463 causes failures in test_xmlrpc

2009-08-18 Thread Gregory P. Smith

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

reverted in r74522

--

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