[issue11429] ctypes is highly eclectic in its raw-memory support

2011-03-06 Thread benrg
New submission from benrg : ctypes accepts bytes objects as arguments to C functions, but not bytearray objects. It has its own array types but seems to be unaware of array.array. It doesn't even understand memoryview objects. I think that all of these types should be passable to C code. Addi

[issue11427] ctypes from_buffer no longer accepts bytes

2011-03-06 Thread Georg Brandl
Changes by Georg Brandl : -- keywords: +3.2regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11428] with statement looks up __exit__ incorrectly

2011-03-06 Thread Georg Brandl
Georg Brandl added the comment: The bug is actually in 3.1 and fixed in 3.2: special methods (those with __underscore__ names) are supposed to be looked up on the class, not the instance. -- nosy: +georg.brandl resolution: -> invalid status: open -> closed __

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Georg Brandl
Georg Brandl added the comment: I made the c -> cls change in 88fe1ac48460. Some other fixes have already been made in py3k (like removing the duplicate index keyword), and for the others I completely agree with Raymond. -- nosy: +georg.brandl resolution: rejected -> fixed __

[issue8847] crash appending list and namedtuple

2011-03-06 Thread benrg
benrg added the comment: The bug is still present in 3.2. -- versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing

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

2011-03-06 Thread Daniel Urban
Daniel Urban added the comment: I'm attaching an updated patch. Instead !PyIter_Check() this patch checks for tp_iter == NULL && !PySequence_Check. If this condition is false, PyObject_GetIter has a chance to succeed (and if it fails, we shouldn't mask the exception). I also added more test

[issue11428] with statement looks up __exit__ incorrectly

2011-03-06 Thread benrg
New submission from benrg : class MakeContextHandler: def __init__(self, enter, exit): self.__enter__ = enter self.__exit__ = exit with MakeContextHandler(lambda: None, lambda *e: None): pass In 3.1.3 this worked; in 3.2 it raises AttributeError('__exit__'), which appears to be a bug

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, but I think many of these changes should not be made. Sometime the tight spacing is used for visual grouping. The following look fine and should not be changed because adding spaces around the + or * operator makes the whole sentence harder to ment

[issue11427] ctypes from_buffer no longer accepts bytes

2011-03-06 Thread benrg
New submission from benrg : In Python 3.1.3, (c_char*5).from_buffer(b'abcde') worked. In 3.2 it fails with "TypeError: expected an object with a writable buffer interface". This seems to represent a significant decrease in the functionality of ctypes, since, if I understand correctly, it has n

[issue11426] CSV examples can't close their files

2011-03-06 Thread Graham Wideman
New submission from Graham Wideman : On the csv doc page (.../library/csv.html) most of the examples show creation of an anonymous file object within the csv.reader or csv.writer function, for example... spamWriter = csv.writer(open('eggs.csv', 'w'), delimiter=' ', This anonymity prevent

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
INADA Naoki added the comment: This patch inserts spaces around ** operator but I prefer no spaces around **. Any thoughts? -- ___ Python tracker ___ ___

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

2011-03-06 Thread Victor
Victor added the comment: Thanks, people. Now I understood that both "if" and "else" should be always at the beginning of the lines they are sitting on. -- ___ Python tracker _

[issue11425] Cleanup sample codes in tutorial.

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki : * 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 KeyboardInterrupt/raise Ke

[issue11424] logging fileConfig may not correctly detect children

2011-03-06 Thread Mark Hammond
New submission from Mark Hammond : 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 like "bar", "bar.child" and "ba

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

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger 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 makes the else-clause visually l

[issue11423] .py file does not open on click

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis 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 resolution: -> invalid

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

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis 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 ___

[issue11423] .py file does not open on click

2011-03-06 Thread Victor
New submission from Victor : 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 clicking it. I do so

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

2011-03-06 Thread Victor
New submission from Victor : 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 line, the following wor

[issue1559549] ImportError needs attributes for module and file name

2011-03-06 Thread Andreas Stührk
Andreas Stührk 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") - `ImportError_clear()` doesn't clear ``self->

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
Skip Montanaro 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 ___

[issue11414] Add import fix for email.Message

2011-03-06 Thread Scott Kitterman
Scott Kitterman 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. -- ___

[issue3982] support .format for bytes

2011-03-06 Thread Terry J. Reedy
Terry J. Reedy 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 the contents of f

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

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya 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 _

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis 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? Security releases wil

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

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya 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, console, printer, serial por

[issue11410] Use GCC visibility attrs in PyAPI_*

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

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Thomas Wouters 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 sense to.) -

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
Skip Montanaro 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 ___ _

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis 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 2011. -- nosy:

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Martin v . Löwis
Martin v. Löwis 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 shouldn't get comm

[issue11421] Subversion keywords missing on 2.5 checkout

2011-03-06 Thread Skip Montanaro
New submission from Skip Montanaro : 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 dynamic_looku

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

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry, ncoghlan stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2011-03-06 Thread John Cary
John Cary 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 Christoph Gohlke's ex

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

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou 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 _

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

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

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

2011-03-06 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[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 : -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2011-03-06 Thread Thomas Wouters
New submission from Thomas Wouters : 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 #11417, which is a f

[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 : 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 the files they

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

2011-03-06 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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. --

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

2011-03-06 Thread R. David Murray
Changes by R. David Murray : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-03-06 Thread INADA Naoki
Changes by INADA Naoki : -- 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 _

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

2011-03-06 Thread INADA Naoki
New submission from INADA Naoki : 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 class itself is never us

[issue11414] Add import fix for email.Message

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

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

2011-03-06 Thread Raymond Hettinger
Raymond Hettinger 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 unintended. -- ___

[issue11417] distutils' bdist_rpm fails when running with PYTHONDONTWRITEBYTECODE

2011-03-06 Thread Thomas Wouters
New submission from Thomas Wouters : 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 PYTHONDONTWRITEBYTECODE environm

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

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya 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 32767 (4 * 1024 - 1) when

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

2011-03-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2011-03-06 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> invalid stage: test needed -> committed/rejected ___ Python tracker ___ ___ Python-bugs-lis

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou 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 opinion. I bet he'

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

2011-03-06 Thread Ryan Kelly
Ryan Kelly 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 __

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Thomas Wouters
Thomas Wouters 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 that block are not d

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

2011-03-06 Thread saffroy
New submission from saffroy : 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 'import netrc; print n

[issue8594] Add a "source_address" option to ftplib

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou 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

[issue8594] Add a "source_address" option to ftplib

2011-03-06 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks. Committed in r88761. -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-

[issue1559549] ImportError needs attributes for module and file name

2011-03-06 Thread Filip Gruszczyński
Filip Gruszczyński 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 literally no experien

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

2011-03-06 Thread Santoso Wijaya
Santoso Wijaya 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 3.3, as well)? Actually, t

[issue8594] Add a "source_address" option to ftplib

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8594] Add a "source_address" option to ftplib

2011-03-06 Thread Nadeem Vawda
Nadeem Vawda 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

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

2011-03-06 Thread STINNER Victor
STINNER Victor 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 error (errno 12) on writing in

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

2011-03-06 Thread STINNER Victor
STINNER Victor 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) evoles. - I don't want to commit

[issue11411] Fix typo in Makefile

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

[issue11298] unittest discovery needs better explanation

2011-03-06 Thread blokeley
blokeley 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 ` or directly importable :ref:`module

[issue11338] No list of Python hg repositories

2011-03-06 Thread blokeley
blokeley 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 to the correct r

[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 : 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 data using ZipFile

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-03-06 Thread Phillip J. Eby
Phillip J. Eby added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue2771] test issue

2011-03-06 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21018/a.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2011-03-06 Thread Michael Foord
Michael Foord 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 -> versions: +Python 3.3 _

[issue11414] Add import fix for email.Message

2011-03-06 Thread Scott Kitterman
New submission from Scott Kitterman : 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: kitterma priority: n

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

2011-03-06 Thread anatoly techtonik
anatoly techtonik 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

[issue11385] TextTestRunner methods are not documented

2011-03-06 Thread anatoly techtonik
anatoly techtonik added the comment: Something to think about for future examples. -- ___ Python tracker ___ ___ Python-bugs-list mai

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

2011-03-06 Thread anatoly techtonik
anatoly techtonik 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. -- ___

[issue4350] Remove dead code from Tkinter.py

2011-03-06 Thread Guilherme Polo
Guilherme Polo 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 http://www.mail

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

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

[issue11387] Tkinter, callback functions

2011-03-06 Thread Guilherme Polo
Guilherme Polo 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 (revision 88757)

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

2011-03-06 Thread SilentGhost
Changes by SilentGhost : -- Removed message: http://bugs.python.org/msg130171 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-03-06 Thread SilentGhost
SilentGhost added the comment: Above-mentioned fix was committed in 0586c699d467 and 62994662676a -- ___ Python tracker ___ ___ Pytho

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

2011-03-06 Thread SilentGhost
SilentGhost added the comment: Above-mentioned fix was commited in rev 62994662676a -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue11387] Tkinter, callback functions

2011-03-06 Thread Nikolay Fomichev
Nikolay Fomichev 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 tkFileDialog as filedialog

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

2011-03-06 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file19804/wsgiref.rst.diff ___ Python tracker ___ ___ Python-bugs-list mailing li

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

2011-03-06 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file19797/headers.py.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2011-03-06 Thread SilentGhost
Changes by SilentGhost : Removed file: http://bugs.python.org/file19681/test_wsgiref.py.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2011-03-06 Thread SilentGhost
SilentGhost added the comment: Here's the single-file patch against the revision. -- Added file: http://bugs.python.org/file21016/issue5800.diff ___ 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 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 d'Arc probably would be

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

2011-03-06 Thread Vetoshkin Nikita
Vetoshkin Nikita 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 _

[issue11411] Fix typo in Makefile

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue11413] Idle doesn't start

2011-03-06 Thread Chris
New submission from Chris : 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 messages. My operati

[issue11185] test_wait4 error on AIX

2011-03-06 Thread Charles-Francois Natali
Charles-Francois Natali 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, &status, WNOHANG) >

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> feature request versions: +Python 3.3 ___ Python tracker ___ ___ Pyth

[issue11410] Use GCC visibility attrs in PyAPI_*

2011-03-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why the cygwin changes? Are they related? Also, is the change in Python/getargs.c necessary? -- nosy: +pitrou ___ Python tracker ___ _

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

2011-03-06 Thread Georg Brandl
Georg Brandl 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 ___

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

2011-03-06 Thread Ezio Melotti
Ezio Melotti 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

[issue11294] Locale - update & uniform ERA_*_FMT doc

2011-03-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in 6f861f98a3c5. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue11292] Curses - add A_REVERSE to attributes table

2011-03-06 Thread Georg Brandl
Georg Brandl added the comment: Fixed in d9292abe80da. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2011-03-06 Thread STINNER Victor
STINNER Victor 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 will depend on heap usage"

  1   2   >