[issue44906] Crash on deep call stack under Windows

2021-08-12 Thread Alejandro Reimondo
New submission from Alejandro Reimondo : The py8.py file starts a S8 system, a Smalltalk system running on Python runtime, I am actually developing (in Beta). The system is running w/o problems on OSX systems, but crash (fast exit w/o any information) when running on Windows. The crash occurs

[issue42360] In the namedtuple documentation, mention that typename should match the variable name for the class to be pickle-able

2020-11-15 Thread Alejandro Gonzalez
New submission from Alejandro Gonzalez : I think the namedtuple documentation should mention that, for classes created with it to be pickle-able, the typename argument must match the name of the variable the class is being assigned to. Otherwise you get an error like this

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-07-22 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: I see, that’s an interesting point. In that case, Serhiy’s approach is indeed better. PR 14166 seems stalled. I’d like to help if there’s anything left to do, if possible :) -- ___ Python tracker <ht

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-07-20 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: Hello, Could anyone take a look at the PR 14126 submitted? Sorry for the trouble and thank you in advance. -- ___ Python tracker <https://bugs.python.org/issue28

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-16 Thread Luis Alejandro Martínez Faneyth
Luis Alejandro Martínez Faneyth added the comment: Thanks Christian for the suggestion and Matthias. -- ___ Python tracker <https://bugs.python.org/issue37

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-12 Thread Luis Alejandro Martínez Faneyth
Luis Alejandro Martínez Faneyth added the comment: New information on this: python3-distutils for 3.8 exists on Debian (experimental) but python3 (which is kind of a meta-package) for 3.8 doesn't exist. It depends on python3.8 or python3.7, resulting in the installation on pyth

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-12 Thread Luis Alejandro Martínez Faneyth
New submission from Luis Alejandro Martínez Faneyth : Hello everyone, I've been building some minimal python docker images for a while and a few days ago an error popped out in my CI when building python 3.8 on debian sid. The error happens when trying to install pip with the usual:

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-17 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: >It can be fixed in general if deduce __module__ in type.__call__() instead of >type.__new__(). But wouldn't we have the same problem if a metaclass overrides type.__call__ instead? Also, wouldn't that reset the __module__ value anyt

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-16 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: >Getting the module name from the caller's frame is an expensive operation. It >is safe to set __module__ to None. In such case the pickle module is able to >find the proper module containing the definition of the class. Wow, indeed it

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-16 Thread Alejandro Gonzalez
Change by Alejandro Gonzalez : -- keywords: +patch pull_requests: +13973 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14126 ___ Python tracker <https://bugs.python.org/issu

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-12 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: >I think we can proceed with option A, but only if doesn't cause visible >slow-down for creating ABCs (which is already slower that normal classes). >TBH, I don't want to document A as "official" recipe (maybe however mention

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-06-08 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: Hello, I would like to add further on this issue. (I'm new to bpo. Please advise if this report could be better) Issue - Pickling breaks when attempting to dump an instance of a class that was defined by calling ABCMeta directly, becau

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-03-13 Thread DAVID ALEJANDRO Pineda
DAVID ALEJANDRO Pineda added the comment: Hello Again. The problem can be replicated in the same structure when call the 'functools.partial' feature I wrote a simple example. It uses the asyncio and multiprocessing structure. https://github.com/dpineiden/async_multiprocessing

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-02-15 Thread DAVID ALEJANDRO Pineda
DAVID ALEJANDRO Pineda added the comment: Now I try again with different ways to run a method with args, without args works fine to insert in the executor. I find there are big differences with file functools betwen versions 3.5.1 to 3.6.0. Here a more simple example for test the functools

[issue29517] "Can't pickle local object" when uses functools.partial with method and args...

2017-02-09 Thread DAVID ALEJANDRO Pineda
New submission from DAVID ALEJANDRO Pineda: Hello. I'm working in a real time data collector project. I'm using asyncio and multiprocessing (run_in_executor). In python 3.5 worked fine but in python 3.6 not, gave to me this error: "Traceback (most recent call last): File

[issue26550] documentation minor issue : "Step back: WSGI" section from "HOWTO Use Python in the web"

2016-03-12 Thread Alejandro Soini
New submission from Alejandro Soini: Bad article usage in the following sentence from the WSGI section on HOWTO Use Python in the web (https://docs.python.org/2/howto/webservers.html#wsgi) : "Authentication is another a problem easily solved using existing middleware." sugges

[issue22041] http POST request with python 3.3 through web proxy

2014-07-28 Thread Alejandro MJ
Alejandro MJ added the comment: Thanks a lot for your help, as you suggested the problem was because of the method set_tunnel. I've tested the code that you have posted and now works perfectly. I'll keep in mind this for future works. We can conclude that it's not really a bu

[issue22041] http POST request with python 3.3 through web proxy

2014-07-25 Thread Alejandro MJ
Alejandro MJ added the comment: I've wrote these sentences on my SUSE, python is installed on path: /usr/local/pr/python computer002:/usr/local/pr/python # patch -p1 --dry-run <http://bugs.python.org/is

[issue22041] http POST request with python 3.3 through web proxy

2014-07-25 Thread Alejandro MJ
Alejandro MJ added the comment: Thanks a lot for your help! I've tested it in Linux, Python version 3.3.5 and the message obtained is this: [404 Not Found]. The script is this one (changing of course the ip_address and the proxy_url values): import http.client, urllib.parse

[issue22041] http POST request with python 3.3 through web proxy

2014-07-23 Thread Alejandro Mj
Changes by Alejandro Mj : -- nosy: -AlexMJ ___ Python tracker <http://bugs.python.org/issue22041> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22041] http POST request with python 3.3 through web proxy

2014-07-22 Thread Alejandro MJ
New submission from Alejandro MJ: I'm trying this specific method with python, in order to use a different ip source, to do a POST request: import http.client, urllib.parse data = urllib.parse.urlencode({'QLastname': 'DIAZ HERNANDEZ', 'QFirstname':

[issue21950] import sqlite3 not running after configure --prefix=/alt/path; make; make install

2014-07-18 Thread Alejandro
Alejandro added the comment: Here you have make_install.log Thanks -- Added file: http://bugs.python.org/file35989/make_install.log ___ Python tracker <http://bugs.python.org/issue21

[issue21950] import sqlite3 not running

2014-07-11 Thread Alejandro
Alejandro added the comment: we have /usr/local/lib/python3.4/lib-dynload/_sqlite3.cpython-34m.so but we didn't have it in /soft/pyt341/lib/python3.4/lib-dynload/ After copying it into /sofy/pyt341 the problem was solved!! ;) /soft/pyt341/bin/python3 -c "import sqlite3;pri

[issue21950] import sqlite3 not running

2014-07-11 Thread Alejandro
Alejandro added the comment: I've downloaded UBUNTU 12.04. I've compiled python3 and I got the same error. Seleccionando el paquete sqlite3 previamente no seleccionado. Desempaquetando sqlite3 (de .../sqlite3_3.7.9-2ubuntu1.1_i386.deb) ... Procesando disparadores para man-db ... Co

[issue21950] import sqlite3 not running

2014-07-10 Thread Alejandro
Alejandro added the comment: Here you have (attached): make.log Thanks! -- Added file: http://bugs.python.org/file35920/make.log ___ Python tracker <http://bugs.python.org/issue21

[issue21950] import sqlite3 not running

2014-07-10 Thread Alejandro
Alejandro added the comment: Yes. We have these packages installed: rpm -qa | grep sqlite sqlite3-3.7.6.3-1.4.4.1 libsqlite3-0-3.7.6.3-1.4.4.1 sqlite3-devel-3.7.6.3-1.4.4.1 -- ___ Python tracker <http://bugs.python.org/issue21

[issue21950] import sqlite3 not running

2014-07-10 Thread Alejandro
New submission from Alejandro: We have compile python 3.4.1 in Suse Linux Enterprise Server 11 SP2 We have compiled it using --prefix as args : ./configure --prefix=/soft/pyt341 make make install We check python has been properly installed: /soft/pyt341/bin/python3 --version Python 3.4.1

[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

[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:

[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:

[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

[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-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

[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-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: 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
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

[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&

[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
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

[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

[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

[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
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

[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

[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

[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

[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

[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:

[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:

[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:

[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

[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:

[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

[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:

[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
Alejandro added the comment: The one included on Python 3.1-rc2. -- ___ Python tracker <http://bugs.python.org/issue6400> ___ ___ Python-bugs-list mailin

[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

[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

[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

[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

[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):

[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

[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

[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