[issue7061] Improve 24.5. turtle doc

2010-10-27 Thread Georg Brandl

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

If you do a full build, you'll get a warning; however, currently documents that 
reference a label will not be recognized as out of date when that label changes 
or is removed.

--
status: pending - open

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



[issue5688] inability to ignore multiline warnings -- request to add re.DOTALL to re.compile

2010-10-27 Thread Georg Brandl

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


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

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



[issue2703] SimpleXMLRPCDispatcher.__init__ is not python2.4-backward-compatible

2010-10-27 Thread Georg Brandl

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

Seems to have been changed in 2.6 and 2.7 already.

--
nosy: +georg.brandl
status: open - closed

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



[issue4828] patch suggestion for webbrowser

2010-10-27 Thread Georg Brandl

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


--
resolution:  - wont fix
status: open - closed

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



[issue4828] patch suggestion for webbrowser

2010-10-27 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

Any explanations?

--

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



[issue5975] csv unix file format ('\n' line terminator)

2010-10-27 Thread Georg Brandl

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

Added in r85856.

--
nosy: +georg.brandl
resolution:  - fixed
status: open - closed

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



[issue7167] Smarter FTP passive mode

2010-10-27 Thread Georg Brandl

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

Closing following Giampaolo's suggestion.

--
nosy: +georg.brandl
resolution:  - wont fix
status: open - closed

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



[issue4828] patch suggestion for webbrowser

2010-10-27 Thread Georg Brandl

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

Oh, sorry.  Shouldn't do too many things at once.

Well, I think there aren't many webbrowsers that come as a .com file, for 
example.  And as Amaury shows, the patch can't be applied as is anyway.

--
nosy: +georg.brandl

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



[issue7911] unittest.TestCase.longMessage should default to True in Python 3.2

2010-10-27 Thread Georg Brandl

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

Michael: ping? Will you do this before beta1?

--
nosy: +georg.brandl

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



[issue10208] add mazovia.py to encodings/

2010-10-27 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Piotr Matuszewski wrote:
 
 New submission from Piotr Matuszewski pythl...@farmatex.com.pl:
 
 mazovia is an old encoding for Polish language, it's modified cp437 (more 
 info at http://en.wikipedia.org/wiki/Mazovia_encoding and (in Polish, but 
 tables are useful anyway) http://pl.wikipedia.org/wiki/Mazovia_(kod) )

Is this still in common use ?

The wikipedia pages suggest that it was used in the MS-DOS days,
but those are long over.

Please note that we don't want to add every single existing code
page to Python, just because we can. If their use is marginal,
it's better to maintain them externally.

--
nosy: +lemburg

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



[issue10211] BufferObject doesn't support new buffer interface

2010-10-27 Thread Kristján Valur Jónsson

New submission from Kristján Valur Jónsson krist...@ccpgames.com:

The BufferObject in 2.7 doesn't support the new buffer interface.
This makes it useless for use with the new memoryview object.
This simple patch adds that support.

--
components: Interpreter Core
files: buffer_newbuf.patch
keywords: easy, patch
messages: 119683
nosy: krisvale
priority: normal
severity: normal
status: open
title: BufferObject doesn't support new buffer interface
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file19381/buffer_newbuf.patch

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



[issue10201] Fix building of socket module under Solaris

2010-10-27 Thread Antoine Pitrou

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

 Jesús Cea Avión j...@jcea.es added the comment:
 
 Could this to be considered a bug in OpenSolaris?.

That's a good question. Perhaps Laca (who wrote the original patch) can
chime in.

 If not, I think this fix should be backported to 2.5/2.6/2.7/3.1.

It's not a security fix, so I think 2.5 and 2.6 are not applicable.

--

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



[issue10108] ExpatError not property wrapped

2010-10-27 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. fdr...@acm.org:


--
nosy: +fdrake

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



[issue10202] ftplib doesn't check close status after sending file

2010-10-27 Thread Giampaolo Rodola'

Giampaolo Rodola' g.rod...@gmail.com added the comment:

 Proper behavior for ftplib when sending is to send all desired data, 
 then call sock.shutdown(socket.SHUT_RDWR).  This indicates that no 
 more data will be sent, and blocks until the receiver has acknowledged 
 all their data. 

I'm not sure about this. Such a requirement should be respected by both peers 
and AFAICR there's no FTP-related RFC which explicitly states that shutdown() 
should be used.

http://www.rfc-archive.org/getrfc.php?rfc=4217 chapter 12.4 should reflect the 
same use case we're talking about: a client sending a file (STOR).
In the example only close() is used, which perhaps should lead this discussion 
to question whether socket's close() method is implemented properly, as your 
linux man quote suggests.

--

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



[issue1813] Codec lookup failing under turkish locale

2010-10-27 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

We've included this patch in Gentoo for about two years now. Can we get some 
discussion going on doing something like this?

--
nosy: +djc

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



[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2010-10-27 Thread Kristján Valur Jónsson

New submission from Kristján Valur Jónsson krist...@ccpgames.com:

When doing socket IO, it is beneficial to use a bytearra() and then using 
sock.recv_into() to avoid moving data about.
However, many useful functions still don't accept new style buffers, such as 
the bytearray and memoryview.  In particular, the struct module cannot unpack 
from them, and the StringIO doesn't accept them as input.

The attached patch adds new-buffer support to the struct module and cStringIO.

--
components: Interpreter Core
files: newbuffer.patch
keywords: needs review, patch
messages: 119687
nosy: krisvale
priority: normal
severity: normal
status: open
title: struct.unpack and cStringIO.StringIO don't support new buffer
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file19382/newbuffer.patch

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



[issue10201] Fix building of socket module under Solaris

2010-10-27 Thread John Levon

John Levon movem...@users.sourceforge.net added the comment:

This is not a bug in Solaris - the interfaces Python is trying to use are not 
standardized.

(It's a reasonable RFE for Solaris to fully support these, though - I'll follow 
up on that.)

WRT the patch, at least the PACKET_* defined would be better done via a 
specific guard (#ifdef PACKET_LOOPBACK ...).

--

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



[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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



[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2010-10-27 Thread Antoine Pitrou

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

You can't add buffer protocol support to cStringIO in a bugfix release, since 
it would be a new feature.

--
nosy: +pitrou

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



[issue9913] Misc/SpecialBuilds.txt is out of date

2010-10-27 Thread Éric Araujo

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

Agreed the file needs updating.  Can you do it?

I’m not sure the contents of this file should be moved under Doc.  There is no 
build/installation guide on docs.python.org, probably because most users don’t 
build themselves.  Having advanced docs under Misc with a reference in the 
README seems okay to me.

--
nosy: +eric.araujo

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



[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2010-10-27 Thread Éric Araujo

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


--
components: +Extension Modules -Interpreter Core
nosy: +benjamin.peterson, eric.araujo
status: open - pending

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



[issue10211] BufferObject doesn't support new buffer interface

2010-10-27 Thread Éric Araujo

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

Unless there is a mismatch between the documentation and the code, I suspect 
this will be rejected by the release manager.

--
nosy: +benjamin.peterson, eric.araujo

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



[issue1813] Codec lookup failing under turkish locale

2010-10-27 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Looking at this again, I think we should change the codec registry C code to 
use Py_TOLOWER() and the encoding search function code to use the .translate() 
approach that Antoine suggested.

--

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



[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2010-10-27 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

I'm also unable to reproduce this.

--
nosy: +djc

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



[issue10205] Can't have two tags with the same QName

2010-10-27 Thread Éric Araujo

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


--
nosy: +flox

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



[issue10201] Fix building of socket module under Solaris

2010-10-27 Thread Antoine Pitrou

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

Actually, there's a better patch in #8852.

--
resolution:  - duplicate
status: open - closed
superseder:  - _socket fails to build on OpenSolaris x64

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



[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread Antoine Pitrou

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

David's patch works here (OpenSolaris build 134).

--
components: +Build, Extension Modules
nosy: +laca, movement, pitrou
resolution:  - accepted
stage:  - commit review
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

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



[issue10213] tests shouldn't fail with unset timezone

2010-10-27 Thread Dirkjan Ochtman

New submission from Dirkjan Ochtman dirk...@ochtman.nl:

test_strptime in test_time fails when the timezone is not set:

==
FAIL: test_strptime (test.test_time.TimeTestCase)
--
Traceback (most recent call last):
  File
/var/tmp/portage/dev-lang/python-2.6.4/work/Python-2.6.4/Lib/test/test_time.py,
line 117, in test_strptime
(format, strf_output))
AssertionError: conversion specifier '%Z' failed with 'Local time zone must be 
set--see zic manual page' input.

--
Ran 14 tests in 1.206s
Maybe something like this is good enough?

Index: test_time.py
===
--- test_time.py(revision 85856)
+++ test_time.py(working copy)
@@ -111,6 +111,8 @@
 try:
 time.strptime(strf_output, format)
 except ValueError:
+if 'Local time zone must be set' in strf_output:
+continue
 self.fail(conversion specifier %r failed with '%s' input. %
   (format, strf_output))

--
components: Tests
messages: 119696
nosy: belopolsky, djc
priority: normal
severity: normal
status: open
title: tests shouldn't fail with unset timezone
versions: Python 2.6

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



[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread John Levon

John Levon movem...@users.sourceforge.net added the comment:

The posted patch: better if the PACKET_* tests were just at the two missing 
ones rather than removing all of the ones that are actually there like 
PACKET_OUTGOING.

--

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2010-10-27 Thread Éric Araujo

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

Hello Paul, thanks for the report.  The doc only describe Row as a tuple-like 
object, but tuple does implement the Sequence ABC, so I’m inclined to agree 
with you this is a bug and not a feature request (my first reaction).

Adding Georg, the maintainer of the module, to the nosy list (found his 
username in Misc/maintainers.rst).

--
nosy: +eric.araujo, ghaering
versions: +Python 3.1, Python 3.2 -Python 2.6

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2010-10-27 Thread Éric Araujo

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

(Gerhard, sorry, not well awake :)

--

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



[issue10210] os.get_exec_path() should not produce any warning

2010-10-27 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Éric Araujo

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

+1.  This is a small but nice improvement for the added readability and 
foremost for the removal of obscure code (testing for varargs is easier to 
understand than “if co_flags  0x4”).

(“=%r % (name,)” reminds me I never remember to protect my RHS with 
%-formatting, good job :) I wonder about the name “name”, since we’re looping 
other default values here.)

--
nosy: +eric.araujo

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



[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread Antoine Pitrou

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

Ok, here is an updated patch with finer-grained constants injection.

--
Added file: http://bugs.python.org/file19383/buildsocket.patch

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



[issue10203] sqlite3.Row doesn't support sequence protocol

2010-10-27 Thread Marc-Andre Lemburg

Marc-Andre Lemburg m...@egenix.com added the comment:

Just as data point: the DB-API 2.0 requires that the row objects returned by 
the various .fetch*() methods are sequences, i.e. they need to implement the 
sequence protocol.

--
nosy: +lemburg

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



[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-27 Thread Dirkjan Ochtman

Dirkjan Ochtman dirk...@ochtman.nl added the comment:

Still, shouldn't this also be fixed in 2.7?

--
nosy: +djc

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



[issue4769] b64decode should accept strings or bytes

2010-10-27 Thread Éric Araujo

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


--
status: pending - closed

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



[issue949667] setblocking() method on file objects

2010-10-27 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Prototype to test nonblocking file objet:
 - add getblocking() and setblocking() methods to _io._FileIO and all _pyio 
classes
 - fileio_setblocking() is implemented using fcntl(fd, F_SETFL, flags | 
O_NONBLOCK) (POSIX only?)
 - BufferedReader.read() uses read1() if the file is blocking

Use test_process.py to test it: this script runs a Python interpreter in a 
subprocess. It uses select() to check if there is data or not. Eg. type '1+1\n' 
and then 'exit()\n'. Set PYIO_HAVE_BLOCKING constant to False (in 
test_process.py) to test the script without io_blocking.patch.

I'm not sure that select() is required, but it doesn't work without it (read() 
blocks).

--
keywords: +patch
nosy: +haypo
Added file: http://bugs.python.org/file19384/io_blocking.patch

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



[issue949667] setblocking() method on file objects

2010-10-27 Thread STINNER Victor

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


Added file: http://bugs.python.org/file19385/test_process.py

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



[issue9939] Add a pipe type (FIFO) to the io module

2010-10-27 Thread Éric Araujo

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


--
nosy: +eric.araujo

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



[issue9916] errno module is missing some symbols

2010-10-27 Thread Éric Araujo

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

You could ask python-ideas about -m support.  This test seems to reveal that 
runpy does not support extension modules:

 $ python -m sys
 /usr/bin/python: No code object available for sys

This may be another bug or feature request to open.

--
nosy: +eric.araujo

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



[issue10207] test_file2k crashes under Windows

2010-10-27 Thread Antoine Pitrou

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

There's a patch in issue9295 which might fix a similar problem 
(test_close_open_print_buffered sometimes crashes). Could you try it?

--

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



[issue9281] Race condition in distutils.dir_util.mkpath()

2010-10-27 Thread Éric Araujo

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

Yes, it should, that’s why the versions field lists 2.7 too.

I’ll get to this in some days.

--
assignee: tarek - eric.araujo
status: open - pending

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



[issue9916] errno module is missing some symbols

2010-10-27 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I'm not surprised -m doesn't work with extension modules.  It would certainly 
be a new feature to implement such a thing, so it would only be possible for 
3.2.  It's not a priority for me to add this support.

--

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



[issue10214] Misc/python-mode.el is out of date.

2010-10-27 Thread Barry A. Warsaw

New submission from Barry A. Warsaw ba...@python.org:

Misc/python-mode.el is pretty far out of date.  
http://launchpad.net/python-mode has the latest versions.  Of course, there's 
also python.el that comes with GNU Emacs.

I will replace Misc/python-mode.el with Misc/README.Emacs

--
assignee: barry
messages: 119709
nosy: barry
priority: normal
severity: normal
status: open
title: Misc/python-mode.el is out of date.
versions: Python 2.7, Python 3.1, Python 3.2

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



[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

On Wed, Oct 27, 2010 at 8:10 AM, Éric Araujo rep...@bugs.python.org wrote:
..
 I wonder about the name “name”, since we’re looping other default values 
 here.)

Good point.  I changed that and committed in revision 85857.

--

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



[issue10193] Simplify instrospection used by turtle module

2010-10-27 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


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

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



[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2010-10-27 Thread Alexander Belopolsky

Alexander Belopolsky belopol...@users.sourceforge.net added the comment:

Same error occurs when the python -m turtle demo is interrupted by closing the 
window.  I think the correct fix is to exit when the window is closed, but I 
cannot figure out the best way to achieve that.  This probably should be done 
at the application/test level.

--
nosy: +gregorlingl

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



[issue7074] Turtle module crashes python

2010-10-27 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +gregorlingl

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



[issue1702036] Make Turtle thread-safe so it does not crash

2010-10-27 Thread Alexander Belopolsky

Changes by Alexander Belopolsky belopol...@users.sourceforge.net:


--
nosy: +gregorlingl

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



[issue10214] Misc/python-mode.el is out of date.

2010-10-27 Thread Georg Brandl

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

+1

--
nosy: +georg.brandl

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



[issue2001] Pydoc interactive browsing enhancement

2010-10-27 Thread Nick Coghlan

Nick Coghlan ncogh...@gmail.com added the comment:

Unassigning from ping given the lack of comments - I should be able to have a 
look at this in time for beta 1

--
assignee: ping - ncoghlan

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



[issue10206] python program starting with unmatched quote spews spaces to stdout

2010-10-27 Thread Eric Smith

Eric Smith e...@trueblade.com added the comment:

This is caused by r85814. I've got a fix, as soon as I get it in a presentable 
state I'll post it.

--
nosy: +eric.smith

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



[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-10-27 Thread Antoine Pitrou

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

According to http://www.w3.org/TR/xml-names/:

“The prefix xml is by definition bound to the namespace name 
http://www.w3.org/XML/1998/namespace. It MAY, but need not, be declared, and 
MUST NOT be bound to any other namespace name. Other prefixes MUST NOT be bound 
to this namespace name, and it MUST NOT be declared as the default namespace.”

The patch looks good to me.

--
nosy: +pitrou
resolution:  - accepted
stage: patch review - commit review

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



[issue10199] Move Demo/turtle under Lib/

2010-10-27 Thread Gregor Lingl

Gregor Lingl gregorli...@users.sourceforge.net added the comment:

Imho it is very important to clarify the name convention for demoscripts to be 
added to the demo before committing (or at least before the apperance of 
beta1). It decides about adding scripts to the Examples Menu of the viewer.

We all know, that things once they have found their way into Lib cannot be 
changed easily afterwards. Guidos argument on backwards compatibility applies. 
So now is the only point in time to decide about this.

Should we 
- stick with the tdemo_ prefix or 
- change to another pre- or postfix (like eg. bytedesign_demo)
- or should we allow for arbitrary *.py filenames with some exception (e.g. 
filenames that contain an underscore) to mark files that are not meant as demos 
for the viewer?

Please note that there are other constraints also for demo_files anyway, like 
the size of the graphics window and the presence of a main()-function to be 
called by the viewer. 

I'd like this to be decided actively. 

What do you think?
Best regards,
Gregor

--

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



[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-10-27 Thread Antoine Pitrou

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

Committed in r85858 (3.2), r85859 (3.1) and r85860 (2.7). Thank you!

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

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



[issue10213] tests shouldn't fail with unset timezone

2010-10-27 Thread R. David Murray

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

Well, djc's patch (turned into a skip) would only skip if the specific system 
error checked for was found.

The message is a system message, you'll see it in the 'date' command output if 
the timezone isn't set.  A little googling indicates that it is not Gentoo 
specific.  (Oddly, if I rename my /etc/localtime file date falls back to UTC, 
but I know I've seen this error when initially installing Gentoo, before I've 
set /etc/localtime).

--

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



[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-10-27 Thread Ralph Gauges

Ralph Gauges ralph.gau...@bioquant.uni-heidelberg.de added the comment:

I tried to apply the minidom.diff patch below, but it seems that removing the 
two lines that replace the  and  characters is not a good idea.
It least in some files I now suddenly get  and  characters in text 
elements where there should be gt; and lt;

At least the part with the tabs seems to work now and if I add the two lines 
with the replace calls that got deleted by the patch, everything seems fine.

--
nosy: +gauges

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



[issue9942] Allow memory sections to be OS MERGEABLE

2010-10-27 Thread Konstantin Svist

Konstantin Svist fry@gmail.com added the comment:

This issue sounds very interesting to me for a somewhat different reason.
My problem is that I'm trying to run multiple processes on separate CPUs/cores 
with os.fork(). In short, the data set is the same (~2GB) and the separate 
processes do whatever they need, although each fork treats the data set as 
read-only.
Right after the fork, data is shared and fits in RAM nicely, but after a few 
minutes each child process runs over a bunch of the data set (thereby modifying 
the ref counters) and the data is copied for each process. RAM usage jumps from 
15GB to 30GB and the advantage of a fork is gone.

It would be great if there was an option to separate out the ref counters for 
specific data structures, since it's obviously a bad idea to turn it on by 
default for everything and everyone.

--
nosy: +Fry-kun

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



[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2010-10-27 Thread Boštjan Mejak

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

I'm reopening this and I am making it a feature request for Python 3.2

--
components: +Interpreter Core -Documentation
resolution: wont fix - 
status: closed - open
type:  - feature request
versions:  -Python 2.6, Python 2.7, Python 3.1

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



[issue7351] Documentation typos found in zipfile — Work with ZIP archives

2010-10-27 Thread Georg Brandl

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


--
assignee: georg.brandl - 

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



[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread Bruce Sherwood

New submission from Bruce Sherwood bruce.sherw...@gmail.com:

For Python 2.x on Macs, the installer added PATH code to .profile and switched 
/Library/Framework/Python.framework/Versions/Current to point to the newly 
installed version of Python. Neither of these actions is carried out by the 
3.1.2 installer, and I wonder whether this is intentional or an oversight. 
Also, it's not clear to me what command one could issue in a terminal to 
execute the new Python (you can of course start the new Python from the 
Applications folder).

--
components: Installation
messages: 119731
nosy: Bruce.Sherwood
priority: normal
severity: normal
status: open
title: Mac Python 3.1 installer does less than earlier installers
type: feature request
versions: Python 3.1

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



[issue10216] json.loads() on str erroneously returns str

2010-10-27 Thread Barry A. Warsaw

New submission from Barry A. Warsaw ba...@python.org:

json is defined as mapping the JSON string type into unicodes.  This works as 
advertised in Python 2.6 and 3, but in Python 2.7 it returns a str.

% python2.6 -c import json; print json.loads('{\foo\:\bar\}')
{u'foo': u'bar'}
% python2.7 -c import json; print json.loads('{\foo\:\bar\}')
{'foo': 'bar'}

Platform tested so far: Ubuntu 10.10 amd64.

--
messages: 119732
nosy: barry
priority: critical
severity: normal
status: open
title: json.loads() on str erroneously returns str
type: behavior
versions: Python 2.7

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



[issue10216] json.loads() on str erroneously returns str

2010-10-27 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

BTW, the workaround for Python 2.7 is to pass a unicode to json.loads().

--

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



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Éric Araujo

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

Boštjan, you need to update your patch to add the missing alias to the old 
name, as well as docs and test updates.

I’m +0 on the change.

--
stage: committed/rejected - patch review
title: Documentation typos found in zipfile — Work with ZIP archives - 
Rename BadZipfile to BadZipFile for consistency

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



[issue10216] json.loads() on str erroneously returns str

2010-10-27 Thread Antoine Pitrou

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

Duplicate of issue10038.

--
nosy: +pitrou
resolution:  - duplicate
status: open - closed
superseder:  - Returntype of json.loads() on strings

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



[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread Antoine Pitrou

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

Committed in r85868 (3.2), r85869 (3.1) and r85870 (2.7). Thank you.

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

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



[issue9942] Allow memory sections to be OS MERGEABLE

2010-10-27 Thread Dave Malcolm

Dave Malcolm dmalc...@redhat.com added the comment:

One possible use for this: mark the str buffers of PyUnicodeObject instances 
when demarshalling docstrings from disk; in theory these ought not to change, 
and can be quite large: the bulk of the memory overhead is stored in a separate 
allocation from the object, and thus isn't subjected to the ob_refcnt twiddling.

No idea if it's worth it though; the syscall overhead might slow down module 
import; also, KSM works at the level of 4K pages, and it's not clear that the 
allocations would line up nicely with pages.

FWIW, various related ideas here:
  http://dmalcolm.livejournal.com/4183.html
Again, no idea if these are worthwhile, this was a brainstorm on my blog, and 
some of the ideas would involve major surgery to CPython to implement.

--
nosy: +dmalcolm

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



[issue10216] json.loads() on str erroneously returns str

2010-10-27 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Yay.  I guess I have to submit a tracker bug now because searching for json 
unicode didn't turn up the original bug. ;/

Thanks for duping it __ap__.

--

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



[issue10038] Returntype of json.loads() on strings

2010-10-27 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

I completely agree with Fred; this is a regression and a bug in Python 2.7 and 
should be fixed.  I have a doctest in Mailman 3 for example that cannot pass in 
both Python 2.6 and 2.7 (without IMO ugly hackery).  Not only that, but json is 
documented as converting JSON str to unicode, which it does fine in Python 2.6, 
3.1 and 3.2.  Why should Python 2.7 be different (and broken)?

--
nosy: +barry

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



[issue10038] json.loads() on str erroneously returns str. should return unicode

2010-10-27 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
title: Returntype of json.loads() on strings - json.loads() on str erroneously 
returns str.  should return unicode

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



[issue10038] json.loads() on str should return unicode, not str

2010-10-27 Thread Barry A. Warsaw

Changes by Barry A. Warsaw ba...@python.org:


--
title: json.loads() on str erroneously returns str.  should return unicode - 
json.loads() on str should return unicode, not str

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



[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread Antoine Pitrou

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


--
assignee:  - ronaldoussoren
nosy: +ronaldoussoren

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



[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread R. David Murray

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

Yes this is deliberate.  On linux, 'python' is Python2, and 'python3' is 
Python3.  I'm not a mac user, so I don't know exactly how the naming 
conventions work there, but I certainly wouldn't expect the 'current version' 
of 'python' to change to python3.  I think perhaps the command name you use 
from the terminal is the same as it is on linux: python3, but I'm not positive.

--
nosy: +r.david.murray

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



[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread R. David Murray

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


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

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



[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2010-10-27 Thread Rodrigue Alcazar

Rodrigue Alcazar rodriguealca...@gmail.com added the comment:

 someone wanting to get to know the process of working on CPython without 
 having to deal with anything that is particularly tricky to understand.

That sounds exactly like me :)

I can have a look at this ticket.

--
nosy: +Rodrigue.Alcazar

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



[issue6715] xz compressor support

2010-10-27 Thread Per Øyvind Karlsen

Per Øyvind Karlsen peroyv...@mandriva.org added the comment:

I've (finally) finalized the api and prepared pyliblzma to be ready for 
inclusion now.

The code can be found in the 'py3k' branch referred to earlier.

Someone else (don't remember who:p) volunteered for writing the PEP earlier, so 
I leave it up to that person to write the PEP, I won't be able to get around to 
do so myself in the near future..

--

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



[issue6715] xz compressor support

2010-10-27 Thread Antoine Pitrou

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


--
versions: +Python 3.3 -Python 3.2

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



[issue6715] xz compressor support

2010-10-27 Thread Amaury Forgeot d'Arc

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

As promised, here is a quick review of the module.
https://code.launchpad.net/~proyvind/pyliblzma/py3k looks ready for a new entry 
in the PyPI, but for inclusion in core python it needs some cleanup:

- I suppose that src/pyliblzma.c is the only interesting file. In CPython it 
will be named Modules/lzmamodule.c
- There are some calls to malloc(), calloc() and free() that are incorrect 
(there is even a call to free() on a PyObject*!); in any case, functions like 
PyMem_Malloc() are preferred.
- please don't use alloca (and it has another name on Windows)
- snprintf is not available everywhere; use PyOS_snprintf instead.
- The module does not compile on Windows: types like uint8_t don't exist,  
__attribute__((unused)) is GCC-specific.
- Don't use PyBytesObject*; PyObject* is enough and avoids many casts.
- PyLong_FromLong(LZMA_FILTER_LZMA1) truncates the value on 32bit platforms
- You could use LZMA_VERSION_STRING to fill the version attribute.

Also, I did not find any documentation.
Otherwise the code follows CPython conventions and is easy to read. Good job!

3.2beta1 is scheduled for November 13, 2010, and no new feature will be 
accepted after. Do you think you can update it before the limit? otherwise the 
package could live in PyPI before it is shipped with Python.

--

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



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Boštjan Mejak

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

I am -1 for the alias. I want that this gets renamed in Python 3.2, not
aliased. I don't care about old pickles. Anyway, who has BadZipfile object
pickled? Just incorporate my patch and fix the docs and any test
cases/units. Thanks.

On Wed, Oct 27, 2010 at 10:43 PM, Éric Araujo rep...@bugs.python.orgwrote:


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

 Boštjan, you need to update your patch to add the missing alias to the old
 name, as well as docs and test updates.

 I’m +0 on the change.

 --
 stage: committed/rejected - patch review
 title: Documentation typos found in zipfile — Work with ZIP archives -
 Rename BadZipfile to BadZipFile for consistency

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


--
Added file: http://bugs.python.org/file19387/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7351
___I am -1 for the alias. I want that this gets renamed in Python 3.2, not 
aliased. I don#39;t care about old pickles. Anyway, who has BadZipfile object 
pickled? Just incorporate my patch and fix the docs and any test cases/units. 
Thanks.br
brdivbrdiv class=gmail_quoteOn Wed, Oct 27, 2010 at 10:43 PM, Éric 
Araujo span dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:brblockquote class=gmail_quote style=margin:0 0 0 
.8ex;border-left:1px #ccc solid;padding-left:1ex;
br
Éric Araujo lt;a href=mailto:mer...@netwok.org;mer...@netwok.org/agt; 
added the comment:br
br
Boštjan, you need to update your patch to add the missing alias to the old 
name, as well as docs and test updates.br
br
I’m +0 on the change.br
br
--br
stage: committed/rejected -gt; patch reviewbr
title: Documentation typos found in quot;zipfile — Work with ZIP 
archivesquot; -gt; Rename BadZipfile to BadZipFile for consistencybr
br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue7351; 
target=_blankhttp://bugs.python.org/issue7351/agt;br
___br
/blockquote/divbr/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Boštjan Mejak

Changes by Boštjan Mejak bostjan.me...@gmail.com:


Removed file: http://bugs.python.org/file19387/unnamed

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



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Stephen Hansen

Stephen Hansen me+pyt...@ixokai.io added the comment:

You may not care about backwards compatibility, but introducing a breaking 
change in 3.2 for mere style-conformity is not OK, IMO. If the patcher insists 
on it being a breaking change, it should be rejected.

FWIW, this casing is sufficiently bizarre and inconsistent in the module 
itself, that it seems clearly wrong and likely to produce difficulties for 
people using it-- so although I'm not upgrading to Python3 anytime soon, I'd 
really like to change my code to be BadZipFile when I do, so I'd be +1 with an 
alias. :)

--
nosy: +ixokai

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



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Boštjan Mejak

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

No alias. Be stubborn and let the stdlib die in inconsistency.

On Thu, Oct 28, 2010 at 2:11 AM, Stephen Hansen rep...@bugs.python.orgwrote:


 Stephen Hansen me+pyt...@ixokai.io me%2bpyt...@ixokai.io added the
 comment:

 You may not care about backwards compatibility, but introducing a
 breaking change in 3.2 for mere style-conformity is not OK, IMO. If the
 patcher insists on it being a breaking change, it should be rejected.

 FWIW, this casing is sufficiently bizarre and inconsistent in the module
 itself, that it seems clearly wrong and likely to produce difficulties for
 people using it-- so although I'm not upgrading to Python3 anytime soon, I'd
 really like to change my code to be BadZipFile when I do, so I'd be +1 with
 an alias. :)

 --
 nosy: +ixokai

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


--
Added file: http://bugs.python.org/file19388/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7351
___No alias. Be stubborn and let the stdlib die in inconsistency.brbrdiv 
class=gmail_quoteOn Thu, Oct 28, 2010 at 2:11 AM, Stephen Hansen span 
dir=ltrlt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;/span 
wrote:br
blockquote class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
solid;padding-left:1ex;br
Stephen Hansen lt;a 
href=mailto:me%2bpyt...@ixokai.io;me+pyt...@ixokai.io/agt; added the 
comment:br
br
You may quot;not carequot; about backwards compatibility, but introducing a 
breaking change in 3.2 for mere style-conformity is not OK, IMO. If the patcher 
insists on it being a breaking change, it should be rejected.br

br
FWIW, this casing is sufficiently bizarre and inconsistent in the module 
itself, that it seems clearly wrong and likely to produce difficulties for 
people using it-- so although I#39;m not upgrading to Python3 anytime soon, 
I#39;d really like to change my code to be BadZipFile when I do, so I#39;d be 
+1 with an alias. :)br

br
--br
nosy: +ixokaibr
divdiv/divdiv class=h5br
___br
Python tracker lt;a 
href=mailto:rep...@bugs.python.org;rep...@bugs.python.org/agt;br
lt;a href=http://bugs.python.org/issue7351; 
target=_blankhttp://bugs.python.org/issue7351/agt;br
___br
/div/div/blockquote/divbr
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Stephen Hansen

Stephen Hansen me+pyt...@ixokai.io added the comment:

Considering I do use zipfiles a lot, I slightly care about this (at least, 
eventually)-- I'm attaching a new patch, with doc and test changes as well (and 
the compatibility alias).

What convinced me was looking at test_zipfile, and noticing how often it 
actually confused the issue in comments at least, between typing BadZipfile and 
BadZipFile.

Dunno if I worded the doc-change well, so you may want to adjust that.

--
Added file: http://bugs.python.org/file19389/issue7351-complete.patch

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



[issue7351] Rename BadZipfile to BadZipFile for consistency

2010-10-27 Thread Stephen Hansen

Stephen Hansen me+pyt...@ixokai.io added the comment:

Oh: and I tested it against branches/py3k in the head, it applies cleanly and 
builds, and test_zipfile runs without error.

--

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



[issue6639] turtle: _tkinter.TclError: invalid command name .10170160

2010-10-27 Thread Ned Deily

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


--
nosy: +ned.deily -BreamoreBoy

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



[issue10211] BufferObject doesn't support new buffer interface

2010-10-27 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

Do you mean that we should disable writing for the new style buffer interface?  
Currently the patch respects the Buffer object's read-only flag 
(self-b_readonly):

static int buffer_getbuffer(PyBufferObject *self, Py_buffer *buf, int flags)
{
void *ptr;
Py_ssize_t size;
if (!get_buf(self, ptr, size, ANY_BUFFER))
return -1;
return PyBuffer_FillInfo(buf, (PyObject*)self, ptr, size,
self-b_readonly, flags);
}

--

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



[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2010-10-27 Thread Kristján Valur Jónsson

Kristján Valur Jónsson krist...@ccpgames.com added the comment:

I disagree.  It's not a new feature.  We're merely completing an old feature 
(adding new-style buffers from 3.x to 2.7) that wasn't fully implemented. by 
the core.  The new buffer isn't accepted in a lot of places where you'd expect 
it to be.

The good alternative, of course, would be to add this to trunk but for some 
reason that is frowned upon.

See also issue 10211

--
status: pending - open

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



[issue10116] Sporadic failures in test_urllibnet

2010-10-27 Thread Stephen Hansen

Stephen Hansen me+pyt...@ixokai.io added the comment:

The attached patch wraps all the calls to the internet in 
support.transient_internet; I ran it against 3.x and it passed, and then I ran 
it for quite awhile with the -F option, and encountered one event that I 
believe would previously had resulted in one of these sporadic failures, and it 
resulted in a skipped 'resource not available' message. 

I left in the previous 'retry' code, just by virtue of changing as little as 
possible. I can adjust if its desired.

I believe that transient_internet won't capture EBADF: so if that particular 
sporadic failure happens again, I'll post up a new issue about it.

--
keywords: +patch
Added file: http://bugs.python.org/file19390/issue10116.patch

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



[issue10038] Returntype of json.loads() on strings

2010-10-27 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. fdr...@acm.org added the comment:

I'll note that it seems relevant that this package is not considered
externally maintained by the terms of PEP 360:

http://www.python.org/dev/peps/pep-0360/

Given the level of attention this has received from the originator of
the code, we should not hesitate to commit technically acceptable
changes to the Python repository,

--
title: json.loads() on str should return unicode, not str - Returntype of 
json.loads() on strings

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



[issue10217] python-2.7.amd64.msi install fails

2010-10-27 Thread Manfred Bartz

New submission from Manfred Bartz manfred.ba...@gmail.com:

python-2.7.amd64.msi as well as python-2.6.6.amd64.msi fail to install on a 
Windows7-64 system.  In both cases with: An error occurred during the 
installation of assembly 'Microsoft.VC90.CRT,version=9.0.21022.8 ...'

See attached screen-cap.

The installer succeeds with its automatic roll-back.

python-2.7.msi (32bit installer) succeeds without any problems.

--
components: Installation, Windows
files: Python-64bit_on_Win7-64_install_fails.png
messages: 119753
nosy: Manfred.Bartz
priority: normal
severity: normal
status: open
title: python-2.7.amd64.msi install fails
type: crash
versions: Python 2.6, Python 2.7
Added file: 
http://bugs.python.org/file19391/Python-64bit_on_Win7-64_install_fails.png

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



[issue10217] python-2.7.amd64.msi install fails

2010-10-27 Thread Brian Curtin

Changes by Brian Curtin cur...@acm.org:


--
nosy: +brian.curtin
type: crash - behavior

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



[issue10217] python-2.7.amd64.msi install fails

2010-10-27 Thread Manfred Bartz

Manfred Bartz manfred.ba...@gmail.com added the comment:

since the error msg suggests that the installer detected a 32 bit system, I 
attached a partial screen cap of system properties -- it really is a Win7-64 
system, Enterprise edition.

--
Added file: 
http://bugs.python.org/file19392/Python-64bit_on_Win7-64_sysProperties.png

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



[issue10217] python-2.7.amd64.msi install fails

2010-10-27 Thread Brian Curtin

Brian Curtin cur...@acm.org added the comment:

The 2.6, 2.7, and 3.1 amd64 installers work on my 64-bit Windows 7 machines.

Can you follow the steps in msg83923 on #4735?

--

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



[issue10038] json.loads() on str should return unicode, not str

2010-10-27 Thread Fred L. Drake, Jr.

Changes by Fred L. Drake, Jr. fdr...@acm.org:


--
title: Returntype of json.loads() on strings - json.loads() on str should 
return unicode, not str

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