[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2011-03-06 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4806 ___ ___ Python-bugs-list

[issue7689] Pickling of classes with a metaclass and copy_reg

2011-03-06 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7689 ___ ___ Python-bugs-list

[issue11400] Remove reference to pre 1.5 assignment behavior

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in f7e04a9566c4. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11400

[issue11337] Nothing refers to footnote [1] on page 6. Simple Statements in Language Reference

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 949a099a87ca. The detection of unused footnotes would be a docutils thing, not a Sphinx thing. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11338] No list of Python hg repositories

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Does this need any more action? -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11338 ___

[issue11392] Turtle - better explain 'chaos' demo

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Applied in e6d9a8e38cc8. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11392

[issue11405] Wrong reference to string module in tutorial/inputoutput.rst

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 59e464a1bbf0. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11405

[issue11373] Fix 2 new typos in the docs

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed the built-in spelling in 13bc0511b3d3. I did not do the other change; having two-level relative clauses is not really readable. -- nosy: +georg.brandl resolution: - fixed status: open - closed

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This looks fine to me -- isn't it a mere stylistic issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11412 ___

[issue11223] interruption of locks by signals not guaranteed when the semaphore implementation is not used

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11223 ___ ___ Python-bugs-list mailing

[issue11227] [DOC] asyncore - use 'Host' header in HTTP example

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in b630a135a86c. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11227

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 3ec0a764ab5c. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11239

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I did some tests: os.write(1, b'X'*length) does always fail with length = 63842. It does sometimes fail with length 35000. The maximum looks completly random: as written in Microsoft documentation, The maximum size of the buffer

[issue11292] Curses - add A_REVERSE to attributes table

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in d9292abe80da. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11292

[issue11294] Locale - update uniform ERA_*_FMT doc

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in 6f861f98a3c5. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11294

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Actually '}' is not a metachar, the metachars should be only |()[{.+*?^$\. re.match('^a+(}+)b+$', '}bbb') _sre.SRE_Match object at 0xb77aa860 re.match('^a+(}+)b+$', '}bbb').group(1) '}' -- nosy: +ezio.melotti

[issue11239] regexp-howto - add missing } to metachars

2011-03-06 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Since ] was in the list, I've added } as well. (It's never a bad idea to quote ] and } unconditionally.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11239

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why the cygwin changes? Are they related? Also, is the change in Python/getargs.c necessary? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___

[issue11185] test_wait4 error on AIX

2011-03-06 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: If test_wait3 and test_fork1 pass, then yes, it's probably an issue with AIX's wait4. See http://fixunix.com/aix/84872-sigchld-recursion.html: Replace the wait4() call with a waitpid() call... like this: for(n=0;waitpid(-1,

[issue11413] Idle doesn't start

2011-03-06 Thread Chris
New submission from Chris ceonnbo...@yahoo.com: Hi, I just installed Python 3.1.1 via link in the book Python Programming for the absolute beginner third edition. But Idle won't start. When I try to open Idle the Windows hourglass just flash briefly but nothing happens after that. No error

[issue11411] Fix typo in Makefile

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks fine, please commit. -- assignee: - twouters nosy: +pitrou stage: - commit review versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2011-03-06 Thread Vetoshkin Nikita
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment: Generator listdir() could be useful if I have a directory with several millions of files and I what to process just a hundred. -- nosy: +nvetoshkin ___ Python tracker

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2011-03-06 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: I think the patch isn't entirely correct. It uses PyIter_Check for detecting the case when an *iterable* raises TypeError, but that function actually checks for an *iterator*. The check on the tp_iter member mentioned by Amaury Forgeot

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Here's the single-file patch against the revision. -- Added file: http://bugs.python.org/file21016/issue5800.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19681/test_wsgiref.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19797/headers.py.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: Removed file: http://bugs.python.org/file19804/wsgiref.rst.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___

[issue11387] Tkinter, callback functions

2011-03-06 Thread Nikolay Fomichev
Nikolay Fomichev morphsa...@gmail.com added the comment: Here it is... import sys if sys.version_info[0] == 3: import tkinter as tk from tkinter import messagebox from tkinter import filedialog else: import Tkinter as tk import tkMessageBox as messagebox import

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Above-mentioned fix was commited in rev 62994662676a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
SilentGhost ghost@gmail.com added the comment: Above-mentioned fix was committed in 0586c699d467 and 62994662676a -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue10924] Adding salt and Modular Crypt Format to crypt library.

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- Removed message: http://bugs.python.org/msg130171 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10924 ___

[issue11387] Tkinter, callback functions

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I have a different problem here on Mac, but I can manage to reproduce your issue if I apply the following patch: Index: Lib/tkinter/__init__.py === --- Lib/tkinter/__init__.py

[issue11290] ttk.Combobox['values'] String Conversion to Tcl

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: Does the attached patch work for you ? -- keywords: +patch Added file: http://bugs.python.org/file21017/patch11290.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11290

[issue4350] Remove dead code from Tkinter.py

2011-03-06 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: If we consider the meaning of dead code as that used in compilers, then I meant out of date code. If you want to add support for tk::ButtonEnter then I believe you should open a new issue and raise your points there. Anyway, have you read

[issue11394] No Tools/demo, etc, on Windows

2011-03-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Explicit request for inclusion? What kind of bureaucracy are you up to? Do you have a full list of missing or not included directories for various distributions? I'm sure many are curious to review them. --

[issue11385] TextTestRunner methods are not documented

2011-03-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Something to think about for future examples. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11385 ___

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: I need to execute doctests along with unit tests from test suite contained in tests.py file and control verbosity parameter in case something goes wrong. -- ___ Python tracker

[issue11414] Add import fix for email.Message

2011-03-06 Thread Scott Kitterman
New submission from Scott Kitterman skl...@kitterman.com: email.Message was dropped in python3. from email.Message import Message now fails. Changing email.Message to email.message seems to be all that's needed. -- components: 2to3 (2.x to 3.0 conversion tool) messages: 130179 nosy:

[issue11389] unittest: no way to control verbosity of doctests from cmd

2011-03-06 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Anatoly, does the verbosity parameter work for you? If not then any feature request / change needs to be for the DocFileSuite as the information is coming from there rather than unittest itself. -- assignee: docs@python -

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Added file: http://bugs.python.org/file21018/a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue5800] make wsgiref.headers.Headers accept empty constructor

2011-03-06 Thread Phillip J. Eby
Phillip J. Eby p...@telecommunity.com added the comment: Looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5800 ___ ___

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___

[issue11415] ZipFile don't overwrite compresed files at create

2011-03-06 Thread Jesús Leganés Combarro
New submission from Jesús Leganés Combarro pira...@gmail.com: I've created a new, compresed ZipFile in memory (using StringIO) and added several files to it with ZipFile.write(), later i've added a new file with the same name of one of the previous ones just to overwrite it with some dinamic

[issue11338] No list of Python hg repositories

2011-03-06 Thread blokeley
blokeley bloke...@gmail.com added the comment: Closed because the issue is solved by: 1. The devguide http://docs.python.org/devguide/ has a Browse online link that points to the correct repositories at http://hg.python.org/ 2. Any attempt to access http://code.python.org/ redirects the user

[issue11298] unittest discovery needs better explanation

2011-03-06 Thread blokeley
blokeley bloke...@gmail.com added the comment: Is this wording correct? In order to be compatible with test discovery, all of the test modules must be importable from the top level directory of the project (in other words, they must be part of the project :ref:`package tut-packages` or

[issue11411] Fix typo in Makefile

2011-03-06 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Checked into 2.7, 3.1, 3.2 and default (d121681ed1cc, 12f0da000dc4, 686df11f0a14, bb2a9ea5c7d0.) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Remarks about test_wconsole_binlarge.patch: - I don't know if isatty() is cheap or not. Is it a system call? If it might be slow, it should be only be called once in the constructor. On Windows, I don't think that isatty(fd)

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Other remarks about test_wconsole_binlarge.patch: - the patch doesn't apply on Python 3.3 - I would prefer 32767 instead of 32000 for the maximum length Suggestion for the comment in fileio.c: * Issue #11395: not enough space

[issue8594] Add a source_address option to ftplib

2011-03-06 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: test_source_address_passive_connection() raises a ResourceWarning. Fix attached. -- nosy: +nvawda Added file: http://bugs.python.org/file21019/test_ftplib-leak.diff ___ Python tracker

[issue8594] Add a source_address option to ftplib

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: closed - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8594 ___ ___ Python-bugs-list

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Thanks for the comment. It's my first patch. :-) - the patch doesn't apply on Python 3.3 That latest patch file I generated against the tip of 3.1 branch. Should I create two separate patches for 3.1 and 3.2+ (which will apply on

[issue1559549] ImportError needs attributes for module and file name

2011-03-06 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com added the comment: This is a draft of a patch. I have only used this new ImportError api in once place, so it would work with following code: try: ... import nosuchmodule ... except ImportError as e: ... print(e.module) ... nosuchmodule I have

[issue8594] Add a source_address option to ftplib

2011-03-06 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: Thanks. Committed in r88761. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8594 ___

[issue8594] Add a source_address option to ftplib

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Giampaolo, can you make your commit on the Mercurial repo instead? See http://mail.python.org/pipermail/python-dev/2011-March/108738.html -- status: closed - pending ___ Python tracker

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-06 Thread saffroy
New submission from saffroy saff...@gmail.com: I have a netrc file with two entries for the same host. The netrc module only returns the last entry. $ cat .netrc machine host.com login foo password foo machine host.com login bar password bar $ python -c

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: The cygwin changes are no-ops, just refactoring the needlessly nested if statement for clarity. I can revert them. The getargs.c change *is* necessary, although it doesn't have to be that exact change. The problem is that the functions in

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-06 Thread Ryan Kelly
Ryan Kelly r...@rfk.id.au added the comment: Thanks for the help, I have tracked this down to a bug in PyCrypto. It was increfing an object once but decrefing it twice. Sorry for the noise. -- ___ Python tracker rep...@bugs.python.org

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The cygwin changes are no-ops, just refactoring the needlessly nested if statement for clarity. I can revert them. Perhaps you can commit them separately? I don't think they need review. As for the getargs.c change, perhaps Martin has an

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-06 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- resolution: - invalid stage: test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5091 ___

[issue5091] Segfault in PyObject_Malloc(), address out of bounds

2011-03-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5091 ___ ___ Python-bugs-list

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attached a modified patch that should work against 3.2+ heads: - Added `isatty` bit field in isatty that's evaluated during its construction. This should eliminate the need to call `isatty()` on every write. - Cap buffer length to

[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE

2011-03-06 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: According to distutils' test_bdist_rpm, bdist_rpm fails when running Python with -B/PYTHONDONTWRITEBYTECODE. (bdist_rpm or its test doesn't pass -B along but also doesn't use -E, so the test-failure shows up when setting the

[issue11412] Section numbers in the Library Reference have a trailing period

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: This looks fine to me -- isn't it a mere stylistic issue? It must be. I just checked several of the books on my shelf. Most don't have the trailing period, but Knuth does. I raised the issue because I thought it was an

[issue11414] Add import fix for email.Message

2011-03-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that email.message works (and is the preferred spelling) since Python2.5. -- nosy: +benjamin.peterson, r.david.murray ___ Python tracker rep...@bugs.python.org

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: http://docs.python.org/py3k/tutorial/classes.html#random-remarks Methods may reference global names in the same way as ordinary functions. The global scope associated with a method is the module containing the class definition. (The

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-06 Thread INADA Naoki
Changes by INADA Naoki songofaca...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue11416] netrc module does not handle multiple entries for a single host

2011-03-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11416 ___ ___

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On Windows, isatty() is a cheap call: a simple lookup in the _ioinfo structure. And dup2() can still change the destination of a file descriptor, so the new attribute can be out of sync... I suggest to call isatty() on every write.

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-06 Thread Skip Montanaro
New submission from Skip Montanaro s...@pobox.com: I'm working my way through the steps necessary to check out and build all versions of Python since 2.4 using Mercurial checkouts. I encountered my first problem with 2.5. It seems the Mercurial checkout creates the Python-ast.[ch] files before

[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.

2011-03-06 Thread Thomas Wouters
New submission from Thomas Wouters tho...@python.org: This patch tweaks a few tests that currently rely on .pyc files being written, causing them to fail (or crash) when running 'make test TESTPYTHONOPTS=-B'. All these are purely test failures, not failures in the tested code (unlike issue

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-06 Thread Skip Montanaro
Changes by Skip Montanaro s...@pobox.com: -- versions: +Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11419 ___ ___ Python-bugs-list

[issue11418] Method's global scope is module containing function definition, not class.

2011-03-06 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11418 ___ ___

[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.

2011-03-06 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: Added file: http://bugs.python.org/file21023/py32-dontwritebytecode.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think SVN had the same issue. You just have to be lucky, or touch the files yourself. -- nosy: +pitrou resolution: - wont fix ___ Python tracker rep...@bugs.python.org

[issue7833] Bdist_wininst installers fail to load extensions built with Issue4120 patch

2011-03-06 Thread John Cary
John Cary jrobc...@gmail.com added the comment: Just to follow up. My case is an application that is almost all statically linked, but it loads in the python library, and at runtime it needs to load the tables module, and as distributed by Python, I get the load-time error on Windows. Using

[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11419 ___ ___ Python-bugs-list

[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry, ncoghlan stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
New submission from Skip Montanaro s...@pobox.com: Trying to build Python 2.5 from a fresh Mercurial checkout I get the following error trying to build modules using setup.py build: % nice make case $MAKEFLAGS in \ *-s*) CC='gcc' LDSHARED='gcc -L/opt/local/lib -bundle -undefined

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Exporting the SizeT functions on all systems is fine. It's not true that they aren't declared: they are declared in modsupport.h if PY_SSIZE_T_CLEAN is defined. Else they are not declared. The patch looks fine to. I agree that mere cleanup

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: -1. Changing the Mercurial tree will make it more difficult to maintain the subversion tree, which will be the tree from which future 2.5 releases will be made. So if anything is done with this issue, please defer that after September

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: Can you explain how I'm supposed to build Python 2.5 from a Mercurial checkout? What is magic about Sept 2011? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11421

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Windows/Cygwin parts of the patch reverted and new patch uploaded. My point about the _Py*_SizeT functions is that they're only declared when you define PY_SSIZE_T_CLEAN, and I don't know if we want to change that (I don't think it makes

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: Removed file: http://bugs.python.org/file21014/gcc-visibility.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11410 ___

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: FWIW, here's the Microsoft's source for isatty (in VC\crt\src\isatty.c): /*** *int _isatty(handle) - check if handle is a device * *Purpose: * Checks if the given handle is associated with a character device * (terminal,

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you explain how I'm supposed to build Python 2.5 from a Mercurial checkout? No, I can't. Just don't. Use subversion instead if you want to build Python 2.5 (or use one of the released versions). What is magic about Sept 2011?

[issue11395] print(s) fails on Windows with long strings

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Attached a version of the last patch without `.isatty` caching. -- Added file: http://bugs.python.org/file21025/winconsole_large_py33_direct.patch ___ Python tracker rep...@bugs.python.org

[issue3982] support .format for bytes

2011-03-06 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: For future reference, struct.pack, not mentioned here, is a binary bytes formatting function. It can mix ascii bytes with binary octets. It works the same in Python 2 and 3. Str.bytes does two things: convert objects to strings according to

[issue11414] Add import fix for email.Message

2011-03-06 Thread Scott Kitterman
Scott Kitterman skl...@kitterman.com added the comment: Agreed, but email.Message was never marked deprecated so there's likely old code out there that's never been updated (which is how I ran into this). This would be, I think, a very low risk transformation to apply. --

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
Skip Montanaro s...@pobox.com added the comment: The workaround turned out to be simple. I just expanded the $HeadURL$ subversion keyword as svn would have done it and committed the change locally. -- ___ Python tracker rep...@bugs.python.org

[issue1559549] ImportError needs attributes for module and file name

2011-03-06 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: There are some issues with the patch: - The check for size of `args` in `ImportError_init()` is wrong: You can't create an `ImportError` with 3 arguments now (TypeError: ImportError expected 2 arguments, got 3) -

[issue11422] indentation problem in if, elif, else statements

2011-03-06 Thread Victor
New submission from Victor victoryw...@yahoo.com: Hi dear developers, Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Hello, Several days ago I downloaded Python 3.2, the standard windows installer, for windows vista. Here's the bug: in the Python-command

[issue11423] .py file does not open on click

2011-03-06 Thread Victor
New submission from Victor victoryw...@yahoo.com: Hi dear developers, **Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32** (windows vista; standard python installer for windows) I am new to python. In the documentation I read that a .py file should run just on

[issue11422] indentation problem in if, elif, else statements

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It is consistent: the else goes *always* under the if. If the if is unindented, so must be the else. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11422

[issue11422] indentation problem in if, elif, else statements

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11422 ___

[issue11423] .py file does not open on click

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Yes, the behaviour you observe is perfectly normal. When you double-click a Python file, it is executed right away. If execution completes quickly, the window it opens is closed before you can even notice it. -- nosy: +loewis

[issue11422] indentation problem in if, elif, else statements

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: In both cases, if-clause and the else-clause are at the beginning of the line (from Python's point of view). The difference is that the Python command line interpreter adds a ... to the beginning of secondary lines. That

[issue11424] logging fileConfig may not correctly detect children

2011-03-06 Thread Mark Hammond
New submission from Mark Hammond mhamm...@users.sourceforge.net: fileConfig has code to detect existing child loggers and ensure they are enabled if the parent is configured. However, the approach it takes of sorting the log names can fail in some cases. eg, if 3 loggers exist with names

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki songofaca...@gmail.com: * Insert spaces around operators and after commas. * Split one liner blocks (ex. def foo(x, y): return x + y) to multi-line blocks. * Insert empty line after def block for scripts (not interactive mode). * Use new-style raise (s/ralse

  1   2   >