[issue6119] Confusing DeprecationWarning

2009-05-26 Thread Alejandro
New submission from Alejandro : Comparing a lambda and a built-in by equality ("==") raises a DeprecationWarning when the "-3" flag is used on Python 2.6.2: $ python2.6 -3 Python 2.6.2 (r262:71600, Apr 28 2009, 16:17:29) [GCC 4.3.2] on linux2 Type "help", &quo

[issue6119] Confusing DeprecationWarning

2009-05-26 Thread Alejandro
Changes by Alejandro : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue6119> ___ ___ Python-bugs-list mailing list Unsubscri

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
New submission from Alejandro : I'm porting a project to Py3k wich contains a "commands.py" script on the project's module. Inside "a.py" there is an "import commands" statement: /mymodule/commands.py /mymodule/a.py The 2to3 tool replaces the

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro
Alejandro added the comment: The one included on Python 3.1-rc2. -- ___ Python tracker <http://bugs.python.org/issue6400> ___ ___ Python-bugs-list mailin

[issue4311] Race condition on Multiprocessing module documentation

2008-11-12 Thread Alejandro
New submission from Alejandro <[EMAIL PROTECTED]>: The "devel" documentation of the "Multiprocessing" module at the "Exchanging objects between processes" section has the following example snippet: from multiprocessing import Process, Queue def f(q):

[issue4311] Race condition on Multiprocessing module documentation

2008-11-12 Thread Alejandro
Alejandro <[EMAIL PROTECTED]> added the comment: Ups. My mistake. Sorry ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4311> ___ ___ Python

[issue12484] The Py_InitModule functions no longer exist, but remain in the docs

2011-07-03 Thread Alejandro Santos
New submission from Alejandro Santos : While the "Py_InitModule" does not exists on Py3k it is still mentioned on the docs: http://docs.python.org/py3k/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/py3k/extending/windows.html#a-cookboo

[issue12484] The Py_InitModule functions no longer exist, but remain in the docs

2011-07-03 Thread Alejandro Santos
Alejandro Santos added the comment: The call is also present on the older 3.1 and "dev" release of the docs: http://docs.python.org/release/3.1.3/extending/extending.html#keyword-parameters-for-extension-functions http://docs.python.org/release/3.1.3/extending/windows.html#a-cookboo

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Sorry. Yes, there is an "__init__.py" script on the same level as the "commands.py". I forgot to mention it. /mymodule/commands.py /mymodule/a.py /mymodule/__init__.py This is the real repository: http://selenic.com/repo/hg/file/b8

[issue6400] incorrect commands import

2009-07-02 Thread Alejandro Santos
Alejandro Santos added the comment: Thanks! -- ___ Python tracker <http://bugs.python.org/issue6400> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6406] NameError on 2to3 tool

2009-07-03 Thread Alejandro Santos
New submission from Alejandro Santos : Using the -j switch of the 2to3 tool shiped with Python 3.1 final i'm getting: Traceback (most recent call last): File "/home/alejo/apps/local/bin/2to3", line 6, in sys.exit(main("lib2to3.fixes")) File "/home/alejo/ap

[issue6406] NameError on 2to3 tool

2009-07-03 Thread Alejandro Santos
Alejandro Santos added the comment: Thanks!! -- ___ Python tracker <http://bugs.python.org/issue6406> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6408] 2to3: Local package import

2009-07-03 Thread Alejandro Santos
New submission from Alejandro Santos : The 2to3 tool shipped with Python 3.1 final doesn't handle correctly a local package import (fixer fix_import). Test case: $ find . -name '*.py' ./__init__.py ./a.py ./b/__init__.py ./b/m.py $ 2to3 a.py RefactoringTool: Skipping implici

[issue6408] 2to3: Local package import

2009-07-03 Thread Alejandro Santos
Alejandro Santos added the comment: Nice, Thanks! -- ___ Python tracker <http://bugs.python.org/issue6408> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6845] Restart support in binary upload for ftplib

2009-09-21 Thread Alejandro Santos
Changes by Alejandro Santos : -- nosy: +alejolp ___ Python tracker <http://bugs.python.org/issue6845> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas
Alejandro Rodas added the comment: I have made a patch to zoom in and out with and events, respectively. I'll upload it soon since the test suite is giving me an error in test_multiprocessing, even before writing the patch. I have taken a look at ZoomFont.py of IdleX and it also ha

[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas
Alejandro Rodas added the comment: I have uploaded my patch as well, it doesn't make use of tkfont (just vanilla Tkinter methods) and it works both in Python 2.7 and 3.4 without the need of any import. I think the main difference with Abhishek Kumar's version is that mine doe

[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas
Changes by Alejandro Rodas : Removed file: http://bugs.python.org/file30053/ZoomInOut.patch ___ Python tracker <http://bugs.python.org/issue17642> ___ ___ Python-bug

[issue17642] IDLE add font resizing hot keys

2013-04-28 Thread Alejandro Rodas
Alejandro Rodas added the comment: Sorry, I submitted a patch which only works on Windows. This one has been tested on Ubuntu too. -- ___ Python tracker <http://bugs.python.org/issue17

[issue17642] IDLE add font resizing hot keys

2013-04-29 Thread Alejandro Rodas
Changes by Alejandro Rodas : Added file: http://bugs.python.org/file30074/ZoomInOut.patch ___ Python tracker <http://bugs.python.org/issue17642> ___ ___ Python-bugs-list m

[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2013-05-04 Thread Alejandro Rodas
Changes by Alejandro Rodas : -- nosy: +alex.rodas ___ Python tracker <http://bugs.python.org/issue3405> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17642] IDLE add font resizing hot keys

2013-05-13 Thread Alejandro Rodas
Alejandro Rodas added the comment: I have merged the two patches: Now it queries the font size as I did in the original patch, and it also stores the position of the cursor based on Abhishek Kumar's modification of ZoomFont.py. -- Added file: http://bugs.python.org/file

[issue15392] Create a unittest framework for IDLE

2013-05-17 Thread Alejandro Rodas
Changes by Alejandro Rodas : -- nosy: +alex.rodas ___ Python tracker <http://bugs.python.org/issue15392> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13657] IDLE doesn't support sys.ps1 and sys.ps2.

2013-05-19 Thread Alejandro Rodas
Alejandro Rodas added the comment: I have reviewed the patch, and apart from setting the promt, I think it would be possible to set it at the beginning with the same approach: def getprompt(self): self.interp.runcommand(textwrap.dedent("""\ try:

[issue16809] Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)

2013-07-22 Thread alejandro autalan
alejandro autalan added the comment: Hello. I tried 'tkinter_split.patch' patch against 3.3.2, but a fix for grid_info function is also needed. #test.py import tkinter as tk root = tk.Tk() b = tk.Button(root, text='Button') b.grid() print(b.grid_info()) root.mainlo

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-04 Thread alejandro david weil
New submission from alejandro david weil : Python's documentation includes 2 source codes for alternate xrange implementations, which, at least in my tests, give unexpected results. # from file:///usr/share/doc/python2.6-doc/html/library/functions.html#xrange takewhile(lambda x:

[issue12003] documentation: alternate version of xrange seems to fail.

2011-05-06 Thread alejandro david weil
alejandro david weil added the comment: Yes it is. I copied both versions but forgot to specify the second is in 2.7. This is read in the current (2.7) documentation: # from: http://docs.python.org/library/functions.html?highlight=xrange#xrange islice(count(start, step), (stop-start+step-1

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-23 Thread alejandro david weil
New submission from alejandro david weil : python 2.7 documentation: file:///usr/share/doc/python-doc/html/library/stringio.html#StringIO.StringIO.close (or: http://docs.python.org/library/stringio.html#StringIO.StringIO.close ) says: """StringIO.close() Free the memory buffer

[issue16474] More code coverage for imp module

2012-11-14 Thread alejandro david weil
New submission from alejandro david weil: Add some 5% more code-coverage for imp module in tests. -- components: Tests files: imp_test_patch.diff keywords: patch messages: 175597 nosy: brett.cannon, tenuki priority: normal severity: normal status: open title: More code coverage for imp

[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Alejandro Marco Ramos
New submission from Alejandro Marco Ramos: hi, when use the param 'funcName' in the logging module (version 0.4.9.6 for python 2.6) the module crash. Researching in the code (__init__.py) i see that the code for get the function name is in method '_log' in the class &#x

[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Alejandro Marco Ramos
Alejandro Marco Ramos added the comment: is not related to 16778 -- ___ Python tracker <http://bugs.python.org/issue16844> ___ ___ Python-bugs-list mailin

[issue16844] funcName in logging module for python 2.6

2013-01-02 Thread Alejandro Marco Ramos
Alejandro Marco Ramos added the comment: In response to msg178860. When use the module logging and in the definition of the format string appear '%(funcName)s' the module crash. (Extract): File "/Library/Python/2.6/site-packages/logging-0.4.9.6-py2.6.egg/logging/__init__.py&

[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-06-21 Thread alejandro david weil
alejandro david weil <[EMAIL PROTECTED]> added the comment: Shorter trigger code.. -- nosy: +tenuki Added file: http://bugs.python.org/file10698/test_broken3.py ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-06-21 Thread alejandro david weil
alejandro david weil <[EMAIL PROTECTED]> added the comment: Some debugging helper code and my conclutions of one work day: debughelper.tgZ: -test_broken1/2.py one does triggers the bug, the other doesn't) -rtest.sh executes boths and compares its outputs -frameob

[issue3447] itertools.izip_longest docs don't specify default fillvalue

2008-07-25 Thread Alejandro J. Cura
New submission from Alejandro J. Cura <[EMAIL PROTECTED]>: izip_longest default fillvalue is None, but the docs don't specify it. I'm attaching a diff that fixes this. -- assignee: georg.brandl components: Documentation files: itertools.izip_longest-default-fillval

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
New submission from Alejandro Javier Peralta Frías: New to python-dev; I grab a beginner tasks "increase test coverage" and I decided to add coverage to this bit of code in the quopri module: # quopri.py L138while n > 0 and line[n-1:n] in b" \t\r": L139

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
Changes by Alejandro Javier Peralta Frías : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue16473> ___ ___ Python-bugs-list mailin

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
Alejandro Javier Peralta Frías added the comment: I think I can answer your last question. There are two quopri algorithms, > one where spaces are allowed (message body) and one where they aren't > (email headers). > > OK, thank