[issue6906] Tkinter sets an unicode environment variable on win32

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: I cannot reproduce it with the python.org version: Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. py>

[issue6895] locale._parse_localename fails when localename does not contain encoding information

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: If you provide a test case the patch has a greater chance of being accepted. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6

[issue6880] class needs forward reference

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6880> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue4749> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2320] Race condition in subprocess using stdin

2009-09-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: @Robert: Yes, I'd say this is the same problem as issue4749 -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/i

[issue6829] Frendly error message when inheriting from function

2009-09-16 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue6829> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7069] inspect.isabstract to return boolean values only

2009-10-05 Thread Gabriel Genellina
New submission from Gabriel Genellina : Currently, inspect.isabstract() may return an integer like 1048576 instead of True, or 0 instead of False. Although technically correct, no other isXXX function behaves that way; also, isgeneratorfunction() uses a similar code construct but casts the

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Gabriel Genellina
Gabriel Genellina added the comment: Tests added. -- Added file: http://bugs.python.org/file15057/inspect.diff ___ Python tracker <http://bugs.python.org/issue7

[issue7069] inspect.isabstract to return boolean values only

2009-10-06 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file15052/inspect.diff ___ Python tracker <http://bugs.python.org/issue7069> ___ ___ Python-bugs-list m

[issue7078] struct help in the interpreter does not explain about the fmt option

2009-10-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: The module docstring (for _struct) already existed, but was not exposed as struct.__doc__ This patch fixes the problem; also, there was a missing format character ("?") -- keywords: +patch nosy: +gagenellina Added file: http://bugs.

[issue7069] inspect.isabstract to return boolean values only

2009-10-08 Thread Gabriel Genellina
Gabriel Genellina added the comment: I don't think we should test the actual type returned (bool); that would be overspecifying. The documentation doesn't promise it IS a boolean, and no other test for any isXXX() function checks the type either. I'd remove the last

[issue7095] Multiprocessing.Array(lock=False) fails

2009-10-09 Thread Gabriel Genellina
Gabriel Genellina added the comment: Fixed in r68708 - upgrading to 2.6.2 should solve this. -- nosy: +gagenellina ___ Python tracker <http://bugs.python.org/issue7

[issue7089] shlex behaves unexpected if newlines are not whitespace

2009-10-09 Thread Gabriel Genellina
Gabriel Genellina added the comment: If you could add some tests to lib/test/test_shlex.py, there are more chances for this patch to be accepted. Also, consider the case when the comment is on the last line of input and there is no \n ending character. -- nosy: +gagenellina

[issue7196] Clarify str.split() behavior

2009-10-23 Thread Gabriel Genellina
New submission from Gabriel Genellina : Clarify str.split() behavior; see discussion at http:// comments.gmane.org/gmane.comp.python.general/641120 -- assignee: georg.brandl components: Documentation files: stdtypes.diff keywords: patch messages: 94401 nosy: gagenellina, georg.brandl

[issue7259] Documentation update for operator module

2009-11-03 Thread Gabriel Genellina
New submission from Gabriel Genellina : This patch fixes some issues with the documentation of the operator module: - docstrings for all augmented assignments incorrectly stated, e.g., `operator.iadd(a,b)` is the same as `a += b`. The main documentation shows `a = operator.iadd(a,b)` instead

[issue7268] 2to3 execfile conversion changes behavior

2009-11-07 Thread Gabriel Genellina
Gabriel Genellina added the comment: This is a patch for the execfile fixer, so it converts execfile("fn") into this: exec(compile(open("fn").read()+'\n', "fn", 'exec')) (Yes, it looks ugly. A better way would be to fix the

[issue7313] 2to3 fails when source file starts with BOM

2009-11-13 Thread Gabriel Genellina
New submission from Gabriel Genellina : If the source file is encoded in UTF-8 with a BOM, 2to3 cannot parse it: C:\APPS\python\trunk\PCbuild>.\python ..\Tools\scripts \2to3 c:\temp\test_2to3.py root: Generating grammar tables from C:\APPS\python \trunk\lib\lib2to3\PatternGrammar.txt r

[issue4722] _winreg.QueryValue fault while reading mangled registry values

2009-11-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: I've noticed this depends on the user privileges. When logged in as a normal user, I get the internal error as originally reported. When logged in as an administrator, there is no error and I get an empty s

[issue6666] List of dirs to ignore in trace.py is applied only for the first file

2009-11-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- versions: +Python 3.1 ___ Python tracker <http://bugs.python.org/issue> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6804] IDLE: Detect Python files even if name doesn't end in .py

2009-11-14 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file14803/EditorWindow.diff ___ Python tracker <http://bugs.python.org/issue6804> ___ ___ Python-bug

[issue6804] IDLE: Detect Python files even if name doesn't end in .py

2009-11-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: This new patch addresses the previous comments. -- Added file: http://bugs.python.org/file15334/EditorWindow.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6906] Tkinter sets an unicode environment variable on win32

2009-11-14 Thread Gabriel Genellina
Gabriel Genellina added the comment: This patch may solve this issue, but I don't have a Vista install to test it. -- keywords: +patch Added file: http://bugs.python.org/file15335/FixTk.diff ___ Python tracker <http://bugs.python.org/i

[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2009-11-15 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file12774/mimetypes.diff ___ Python tracker <http://bugs.python.org/issue4969> ___ ___ Python-bug

[issue4969] mimetypes on Windows should read MIME database from registry (w/patch)

2009-11-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: A new patch taking into account M. Pitrou comments: - name changed to read_windows_registry() - read_windows_registry() does nothing on non-Windows platforms; same as read_mime_types(filename) when the file does not exist. - I hope the coding style is

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-11-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: An updated version of the make_msgid patch. Includes a random part plus a sequential part. Testing takes at most 3 seconds now (we're interested in those msgids generated in a whole second) -- Added file: http://bugs.python.org/file

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-11-15 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file14644/test_email.diff ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bug

[issue6598] calling email.utils.make_msgid frequently has a non-trivial probability of generating colliding ids

2009-11-15 Thread Gabriel Genellina
Changes by Gabriel Genellina : Removed file: http://bugs.python.org/file14676/utils.diff ___ Python tracker <http://bugs.python.org/issue6598> ___ ___ Python-bugs-list m

[issue2304] subprocess under windows fails to quote properly when shell=True

2009-11-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: An up-to-date patch; same contents, but this one can be cleanly applied to trunk (as of r76294) -- versions: +Python 2.7, Python 3.1, Python 3.2 Added file: http://bugs.python.org/file15340/subprocess.diff

[issue6647] warnings.catch_warnings is not thread-safe

2009-11-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: Document that warnings.catch_warnings is not thread safe. -- keywords: +patch Added file: http://bugs.python.org/file15341/warnings.diff ___ Python tracker <http://bugs.python.org/issue6

[issue6031] BaseServer.shutdown documentation is incomplete

2009-11-15 Thread Gabriel Genellina
Gabriel Genellina added the comment: Documentation patch for BaseServer.server_forever() and shutdown() -- keywords: +patch Added file: http://bugs.python.org/file15342/socketserver.rst.diff ___ Python tracker <http://bugs.python.org/issue6

[issue3881] IDLE won't start in custom directory.

2009-11-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: This patch had unintended consequences; see #6906 -- ___ Python tracker <http://bugs.python.org/issue3881> ___ ___ Python-bug

[issue7329] global statements outside functions/methods should raise SyntaxError

2009-11-16 Thread Gabriel Genellina
Gabriel Genellina added the comment: The compiler doesn't know how the code is going to be used apart from the "mode" parameter: py> c=compile("x=1","","exec") py> import dis py> dis.dis(c) 1 0 LOAD_CONST

[issue7634] next/previous links in documentation skip some sections

2010-01-04 Thread Gabriel Genellina
New submission from Gabriel Genellina : The next/previous links in the documentation skip some sections. This happens both in HTML format and the CHM Windows help file. e.g.: in the Library Reference, section "8.5 StringIO" [next] points to "8.7 textwrap", skipping se

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
New submission from Gabriel Genellina : The operator precedence table is wrong. <http://docs.python.org/reference/ expressions.html#summary> shows "in"/"not in" having less priority than comparisons like "==", but that's not true: py> 2 in (1,2) ==

[issue5310] operator precedence table is wrong

2009-02-18 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- keywords: +patch Added file: http://bugs.python.org/file13135/expressions.diff ___ Python tracker <http://bugs.python.org/issue5

[issue5370] unpickling vs. __getattr__

2009-02-27 Thread Gabriel Genellina
Gabriel Genellina added the comment: The __getattr__ method, as written, assumes that an attribute 'args' already exists. That's unsafe - a more robust approach would be: def __getattr__(self, name): if 'attrs' in self.__dict__ and name in self.attrs:

[issue5392] stack overflow after hitting recursion limit twice

2009-02-28 Thread Gabriel Genellina
New submission from Gabriel Genellina : Set sys.setrecursionlimit to 50 or lower. Then, the second time the recursion limit is reached, the interpreter crashes with a stack overflow. This happens both with released 3.0.1 and the py3k branch, on Windows. At least on my PC, 51 appears to be the

[issue5370] unpickling vs. __getattr__

2009-03-01 Thread Gabriel Genellina
Gabriel Genellina added the comment: Perhaps this should be made more clear in the documentation for the pickle module. Probably here: http://docs.python.org/library/pickle.html#the-pickle- protocol Could you come with some enhancements? (Note that it already states that __init__ is not

[issue5392] stack overflow after hitting recursion limit twice

2009-03-01 Thread Gabriel Genellina
Gabriel Genellina added the comment: It is an artificial value, I don't require a recursion limit so low in any application. I found it when looking into #5370. If there is a lower limit to sys.setrecursionlimit, maybe it should be enforced. But since it fails only the second time, it

[issue5444] .chm build process on Windows doesn't use the right filename

2009-03-08 Thread Gabriel Genellina
New submission from Gabriel Genellina : doc/make.bat on Windows doesn't correctly build the right .chm filename. This patch does the same as the unix Makefile: run patchlevel.py and set the output as the DISTVERSION environment variable, so it can be used in the final file

[issue5446] doc building progress on Windows doesn't show any color

2009-03-08 Thread Gabriel Genellina
Changes by Gabriel Genellina : -- versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/issue5446> ___ ___ Python-bugs-list mailin

[issue5446] doc building progress on Windows doesn't show any color

2009-03-08 Thread Gabriel Genellina
New submission from Gabriel Genellina : The documentation building progress on Windows doesn't show any colorized output, unlike the linux environment. This patch to console.py provides minimal color support on Windows. -- assignee: georg.brandl components: Documentation

[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: Are you sure you uploaded the right patch? I've not tested it, but I don't think this actually fixes the reported bug. __setstate__ is *very* unlikely to be found in the instance's dict, so you end up not calling __setstate__ at all. If

[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: I think that trying to emulate all "getattr" details in the middle of unpickling (but omiting calls to __getattr__) isn't the right thing to do. What if in some cases __getattr__ (or __getattribute__) *does* the right thing, but pickle

[issue5370] unpickling vs. __getattr__

2009-03-13 Thread Gabriel Genellina
Gabriel Genellina added the comment: This doc update should warn people about the need to implement __getinitargs__ / __getnewargs__ when the instance relies on some internal invariants that must be preserved, and reiterates the important fact that __init__ / __new__ are NOT normally invoked

[issue5765] stack overflow evaluating eval("()" * 30000)

2009-04-15 Thread Gabriel Genellina
New submission from Gabriel Genellina : Originally reported by Juanjo Conti at PyAr: http://blog.gmane.org/gmane.org.user-groups.python.argentina/ day=20090415 Evaluating this expression causes a stack overflow, and the Python interpreter exits abnormally: eval("()" * 3) 3.0.1

[issue6031] BaseServer.shutdown documentation is incomplete

2009-05-15 Thread Gabriel Genellina
New submission from Gabriel Genellina : BaseServer.shutdown is documented as "Tells the serve_forever() loop to stop and waits until it does." The docstring is much more explicit: """Stops the serve_forever loop. Blocks until the loop has finished. This must be ca

<    1   2   3