[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2021-11-11 Thread Rodrigo
Change by Rodrigo : -- keywords: +patch nosy: +rtobar nosy_count: 2.0 -> 3.0 pull_requests: +27779 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29529 ___ Python tracker <https://bugs.python.org/i

[issue45790] Inaccurate phrasing in extending/newtypes_tutorial

2021-11-11 Thread Rodrigo Tobar
New submission from Rodrigo Tobar : In `extending/newtypes_tutorial.rst` the following phrase appears: "[...], containing a pointer to a type object and a reference count (these can be accessed using the macros :c:macro:`Py_REFCNT` and c:macro:`Py_TYPE` respectively)." I believe

[issue45386] xmlrpc.client unimportable due to strfmt ValueError

2021-10-06 Thread Rodrigo
Change by Rodrigo : -- keywords: +patch nosy: +rtobar nosy_count: 1.0 -> 2.0 pull_requests: +27105 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28765 ___ Python tracker <https://bugs.python.org/i

[issue45328] http.client.HTTPConnection doesn't work without TCP_NODELAY

2021-09-30 Thread Rodrigo
Change by Rodrigo : -- nosy: +rtobar nosy_count: 1.0 -> 2.0 pull_requests: +27014 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28646 ___ Python tracker <https://bugs.python.org/i

[issue34087] django: segmentation fault on random places

2018-07-13 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: I can reproduce the segmentation fault using 'testproj.tar.gz' with homebrew and compiled from source. MacOS X High Sierra 10.13.5 (17F77). -- ___ Python tracker <https://bugs.python.

[issue34087] django: segmentation fault on garbage collection in visit_decref()

2018-07-12 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: I did remove PyYAML, lxml and Pillow here but segfault still happen -- ___ Python tracker <https://bugs.python.org/issue34

[issue34087] django: segmentation fault on garbage collection in visit_decref()

2018-07-12 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: Extensions: ./_cffi_backend.cpython-37m-darwin.so ./_mssql.cpython-37m-darwin.so ./_yaml.cpython-37m-darwin.so ./Crypto/Cipher/_AES.cpython-37m-darwin.so ./Crypto/Cipher/_ARC2.cpython-37m-darwin.so ./Crypto/Cipher/_ARC4.cpython-37m

Re: Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-11 Thread Rodrigo Bistolfi
You may want to check Urwid instead. 2018-07-11 16:22 GMT-03:00 Jim Lee : > On 07/11/18 07:09, jkn wrote: > >> Hi All >> This is more of a Tkinter question rather than a python one, I >> think, but >> anyway... >> >> I have a Python simulator program with a Model-View_Controller >>

[issue34087] django: segmentation fault on garbage collection in visit_decref()

2018-07-11 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: Unfortunately with 'PYTHONMALLOC=debug' the segmentation fault do not happen. -- ___ Python tracker <https://bugs.python.org/issue34

[issue34087] Segmentation fault on visit_decref

2018-07-11 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: Running with `-X faulthandler` Fatal Python error: Segmentation fault Current thread 0x7fff89cf2380 (most recent call first): File "/Users/rodrigo/root/lib/python3.7/site-packages/django/urls/resolvers.py", line 526

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread Rodrigo Pinheiro Marques de Araújo
Rodrigo Pinheiro Marques de Araújo added the comment: Sorry for that. I’m not able to make a little example to reproduce this bug. It’s happens during Django tests on a very large code base. A interest thing is that not happens with “-X dev” parameters. Please, any suggestions how I can get

[issue34087] Segmentation fault on visit_decref

2018-07-10 Thread Rodrigo Pinheiro Marques de Araújo
New submission from Rodrigo Pinheiro Marques de Araújo : * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x656d6f6e2236) frame #0: 0x00010014c819 python3`visit_decref(op=0x656d6f6e222e, data=0x) at gcmodule.c:271 [opt

Re: best way to remove leading zeros from a tuple like string

2018-05-21 Thread Rodrigo Bistolfi
>>> repr(tuple(int(i) for i in s[1:-1].split(','))) '(128, 20, 8, 255, -1203, 1, 0, -123)' 2018-05-21 4:26 GMT-03:00 Peter Otten <__pete...@web.de>: > bruceg113...@gmail.com wrote: > > > Looking over the responses, I modified my original code as follows: > > > s = "(128, 020, 008, 255,

Determining whether a package or module should be installed globally using pip

2018-04-25 Thread Rodrigo Acosta
Is there a rule of thumb in deciding where to install a package? What makes a package, other than security vulnerabilities, better to install globally e.g. using sudo pip install, or by changing directory to tmp folder, or by using virtualenv? Thank you python users, you're my only hope, RAR

Re: Clickable hyperlinks

2017-01-06 Thread Rodrigo Bistolfi
2017-01-04 7:39 GMT-03:00 Steve D'Aprano : > On Wed, 4 Jan 2017 08:32 pm, Deborah Swanson wrote: > > Aside: you've actually raised a fascinating question. I wonder whether > there > are any programming languages that understand URLs as native data types, so > that

Re: Clickable hyperlinks

2017-01-04 Thread Rodrigo Bistolfi
2017-01-04 7:39 GMT-03:00 Steve D'Aprano : > On Wed, 4 Jan 2017 08:32 pm, Deborah Swanson wrote: > > Aside: you've actually raised a fascinating question. I wonder whether > there > are any programming languages that understand URLs as native data types, so > that

Re: OT: limit number of connections from browser to my server?

2016-05-17 Thread Rodrigo Bistolfi
Long shot here: Create a JS framework for loading resources in a better way: 1. Load HTTP and your JS core. 2. Load the rest of the resources via JS (maybe using promises for chaining the requests one after the other) -- https://mail.python.org/mailman/listinfo/python-list

[issue25333] .1 + .2 == .3 should be True

2015-10-07 Thread Rodrigo Souto
New submission from Rodrigo Souto: print(.1 + .2 == .3) should be True like the others >>> print(.1 + .2 == .3) False >>> print(.1 + .3 == .4) True >>> print(.1 + .4 == .5) True >>> print(.1 + .1 == .2) True -- messages: 252470 nosy: Rodrigo Sou

[issue20392] Inconsistency with uppercase file extensions in MimeTypes.guess_type

2014-01-25 Thread Rodrigo Parra
New submission from Rodrigo Parra: The functions looks up for the file extension in three maps: types_map, suffix_map and encodings_map. Lookup in types_map is case insensitive (by calling lower() first). Lookup in both suffix_map and encodings_map is case sensitive. These can lead to some

[issue20208] Clarify some things in porting HOWTO

2014-01-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel added the comment: I've created a patch that addresses the first criticism (explaining unicode_literals), as well as the first mention of print_function. It also addresses a small concern regarding map, which I've mentioned in my G+ comment: Also, a friend

[issue20208] Clarify some things in porting HOWTO

2014-01-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel added the comment: BTW, there remains another concern I mentioned on G+: A note on formatting: I found some of 4th- and 5th-level headings too subtle. For instance, http://docs.python.org/dev/howto/pyporting.html#from-future-import-absolute-import got me thinking

[issue12023] non causal behavior

2011-05-06 Thread Rodrigo Ventura
New submission from Rodrigo Ventura rodrigo.ventura@gmail.com: Consider these two functions: --- def nok(): a = None def f(): if a: a = 1 f() def ok(): a = None def f(): if a: b = 1 f() --- Function ok() executes fine

[issue12023] non causal behavior

2011-05-06 Thread Rodrigo Ventura
Rodrigo Ventura rodrigo.ventura@gmail.com added the comment: Ezio, thank you for the explanation. Is it possible to access variable a in nok's scope from function f without using the global keyword in f? (so that variable a remains local to nok, rather than global to python) Rodrigo

[issue10351] Add autocompletion for keys in dictionaries

2010-11-21 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10351 ___ ___ Python-bugs-list

[issue10427] 24:00 Hour in DateTime

2010-11-21 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: I was writing tests for this issue, when something struck me: ok, datetime(year, month, day, 24) is valid. But is datetime(year, month, day, 24, 1) valid? Or datetime(year, month, day, 24, 0, 0, 1)? I would say those aren't valid

[issue9063] TZ examples in datetime.rst are incorrect

2010-11-21 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9063 ___ ___ Python-bugs-list

[issue9305] Don't use east/west of UTC in date/time documentation

2010-11-20 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9305 ___ ___ Python-bugs-list

[issue9305] Don't use east/west of UTC in date/time documentation

2010-11-20 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: 1. Done (it's on the patch I'm uploading). Sorry. 3. Ok, we've rewritten that sentence. As Henrique mentioned, we're working on a larger patch to make datetime documentation clearer, and we can include a definition of standard

[issue10220] Make generator state easier to introspect

2010-11-20 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10220 ___ ___ Python-bugs-list

[issue5131] pprint doesn't know how to print a defaultdict

2010-11-08 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5131 ___ ___ Python-bugs-list

[issue10047] python-2.6.6 coredump running newspipe

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: Does this always happen with a particular feed? Could you provide us with a configuration that reproduces the problem? Also, as R. David Murray asked, does this happen with 2.7? -- nosy: +rbp

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: FWIW, the problem still occurs on the most recent release31-maint checkout (as of r85323), and does not happen on py3k (3.2a2). -- nosy: +rbp ___ Python tracker rep...@bugs.python.org

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: If I'm understanding this correctly, this fails on 3.1 and not (although, actually, it does) on py3k/3.2 because: * pprint._safe_key.__lt__ checks rv = self.obj.__lt__(other.obj) and falls back to id comparison if rv

[issue3976] pprint._safe_repr is not general enough in one instance

2010-10-08 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: Armin: this has the problem that, if the object you're trying to compare is a class, self.obj.__lt__ expects a different number of parameters (i.e., it expects the instance). See issue 10017 . Testing with works. -- nosy

[issue9891] Minor doc typo at datamodel.rst: list - alist

2010-09-18 Thread Rodrigo Bernardo Pimentel
New submission from Rodrigo Bernardo Pimentel r...@isnomore.net: The Built-in methods item of the The standard type hierarchy section of Doc/reference/datamodels.rst uses a list instance called alist as an example, and it says __self__ is set to the object denoted by *list*. It should read

[issue9891] Minor doc typo at datamodel.rst: list - alist

2010-09-18 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: Added file: http://bugs.python.org/file18915/alist_doc-3.x.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9891

[issue2516] Instance methods are misreporting the number of arguments

2010-05-28 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2516 ___ ___ Python-bugs-list

[issue6583] 2to3 fails to fix test.test_support

2010-05-27 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: Pascal is correct, trunk Doc/library/test.rst still says: The 2to3 tool will automatically adapt imports when converting your sources to 3.0. Perhaps this should simply be changed to The 2to3 tool will not automatically convert

[issue7583] Improve explanation of tab expansion in doctests

2010-05-05 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel r...@isnomore.net added the comment: I've just been bitten by this, and I agree the language in the docs is very inappropriate (made me angry for a minute :)). One suggestion: While not everyone might believe tabs should mean that, doctests are primarily aimed

pyserial ser.write('string') TypeError in OS X

2009-10-20 Thread Rodrigo
Maybe this is not a bug at all, but i have installed python2.5. 3.01 and 3.1.1. In python 2.5 ser. write('this is a string') works just fine. On the other hand, with 3.01 and 3.1.1 (pyserial 2.5 rc1) when i do a ser.write('this is a string') i get the following error import serial ser =

[issue6582] test_telnetlib doesn't test Telnet.write

2009-09-03 Thread Rodrigo Steinmuller Wanderley
Rodrigo Steinmuller Wanderley rwander...@rsw.digi.com.br added the comment: On Thu, 03 Sep 2009 20:38:49 + Jack Diederich rep...@bugs.python.org wrote: Jack Diederich jackd...@gmail.com added the comment: applied in r74638 and I've added you to Misc/ACKS Thanks again for the patch

Any Softphone wrote in Python?

2009-08-24 Thread Rodrigo do Carmo
Hi python-community, I would like to ask you if someone know any open source softphone wrote entirely in Python. The thing is that I want to write a honeyphone but starting from a softphone. Sorry if you think that I haven't googled enough. Regards, Rodrigo. -- http://mail.python.org/mailman

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-10 Thread Rodrigo Steinmuller Wanderley
Changes by Rodrigo Steinmuller Wanderley rwander...@rsw.digi.com.br: Removed file: http://bugs.python.org/file14668/write_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6582

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-10 Thread Rodrigo Steinmuller Wanderley
Changes by Rodrigo Steinmuller Wanderley rwander...@rsw.digi.com.br: Added file: http://bugs.python.org/file14686/telnetlib_writetest.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6582

[issue6582] test_telnetlib doesn't test Telnet.write

2009-08-06 Thread Rodrigo Steinmuller Wanderley
Rodrigo Steinmuller Wanderley rodrigoswander...@gmail.com added the comment: Did only minor modifications to TelnetSocketSendall class. Please review the following patch. -- keywords: +patch nosy: +rwanderley Added file: http://bugs.python.org/file14668/write_test.patch

[issue2637] urllib.quote() escapes characters unnecessarily and contrary to docs

2009-08-06 Thread Rodrigo Steinmuller Wanderley
Rodrigo Steinmuller Wanderley rodrigoswander...@gmail.com added the comment: Unreserved characters can be escaped without changing the semantics of the URI, but this should not be done unless the URI is being used in a context that does not allow the unescaped character to appear. How can we

Re: Does python have the capability for driver development ?

2009-07-29 Thread Rodrigo S Wanderley
through the user space API. Is there a Python module for that? -- Rodrigo S. Wanderley rwander...@rsw.digi.com.br -- Blog: http://rsw.digi.com.br -- http://mail.python.org/mailman/listinfo/python-list

[issue1293741] doctest runner cannot handle non-ascii characters

2009-01-27 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel r...@isnomore.net: -- nosy: +rbp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1293741 ___ ___ Python-bugs

[issue3417] make the fix_dict fixer smarter

2008-09-07 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: (I've just realized it's not working properly for fix_dict; I'm fixing it and will drop a note here when it is) ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3417

[issue3417] make the fix_dict fixer smarter

2008-09-05 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: I haven't managed to successfully complete the summer of code, due to some personal problems, but I'm still working on 2to3 and on confidence ranking for it. There's a bzr branch with its current implementation at http

Re: which datastructure for fast sorted insert?

2008-05-25 Thread Rodrigo Lazo
in two data structures. Use collections.deque() to append and remove as in a queue, and set() to find duplicates. what about heapq for sorting? -- Rodrigo Lazo (rlazo) -- http://mail.python.org/mailman/listinfo/python-list

[issue1713041] fix for 1712742: corrects pprint's handling of 'depth'

2008-05-11 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: It seems that somewhere along the road between revision 55144 (where the first patch was generated) and current trunk (revision 63129), PrettyPrinter._format has stopped handling depth! I've attached a patch that fixes this, along

[issue2805] 2to3 doesn't correct divisions

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: +1 for going ahead and writing a fixer. -- nosy: +rbp __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2805

[issue2803] heapq.heappush called with too few arguments in sched.py

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: +1 on the patch. IIRC, there won't be any more bugfix releases for 2.5.x, but, just in case: the patch doesn't work on 2.5 (though the issue lists it as an affected version - and it is!), so I'm uploading a patch for it (svn tag

[issue2798] Crash on non-Windows if Python runs from a non-ASCII directory

2008-05-10 Thread Rodrigo Bernardo Pimentel
Rodrigo Bernardo Pimentel [EMAIL PROTECTED] added the comment: The patch works for me, and I agree the test_xmlrpc is an xmlrpc issue. Perhaps unrelated to this issue, but I think it makes this whole unicode getargs situation fragile: I could not understand why the 'z' case (on the switch where

[issue2532] file that breaks 2to3 (despite being correct python)

2008-05-07 Thread Rodrigo Bernardo Pimentel
Changes by Rodrigo Bernardo Pimentel [EMAIL PROTECTED]: -- nosy: +rbp __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2532 __ ___ Python-bugs-list mailing list

Entering username password automatically using urllib.urlopen

2007-10-14 Thread rodrigo
into the script so I can get the page automatically? (This is not a cracking attempt, I am trying to retrieve a page I have legitimate access to, just doing it automatically when certain conditions are met.) Thanks, Rodrigo -- http://mail.python.org/mailman/listinfo/python-list

Check for dict key existence, and modify it in one step.

2007-08-28 Thread rodrigo
] = 1 else: dict[whatever]={} dict[whatever][someother] = 1 there must be a more compact, readable and less redundant way to do this, no? Thanks, Rodrigo -- http://mail.python.org/mailman/listinfo/python-list

Re: Check for dict key existence, and modify it in one step.

2007-08-28 Thread rodrigo
evan, yes, it does help. Works like it should: class CountingDictionary(dict): def increment(self, key, delta=1): self[key] = self.get(key, 0) + delta d = CountingDictionary() d.increment('cat') d.increment('dog',72) print d {'dog': 72, 'cat': 1} Thanks! --

Re: Check for dict key existence, and modify it in one step.

2007-08-28 Thread rodrigo
You're right of course, I was unclear. I wasn't using 'dict' to override the dict clas, but just as a standin for the example (the actual dictionary names are varied). Thanks, Rodriog -- http://mail.python.org/mailman/listinfo/python-list

Re: Retrieving a variable's name.

2007-08-21 Thread rodrigo
You're right, Paul, Evan, James, I should just use a dictionary. Thanks! Rodrigo -- http://mail.python.org/mailman/listinfo/python-list

Retrieving a variable's name.

2007-08-20 Thread rodrigo
. Thanks, Rodrigo -- http://mail.python.org/mailman/listinfo/python-list

Third PyConBrasil takes place in August 2007

2007-06-03 Thread Rodrigo Senra
We are glad to announce the Third PyConBrasil organised by the Brazilian Python Community. The event will take place from 2007-08-30 to 2007-09-01 at Joinville city in Santa Catarina State (SC) in the Brazil's south region. The event home page is http://pyconbrasil.com.br/ We apologize

persistent plot windows

2007-03-24 Thread Rodrigo Lopez-Negrete
. My question is: is there a way to open those windows in the background without blocking the shell and without running it interactively?? something like gnuplot -persist? Thanks all, Rodrigo Lopez-Negrete -- http://mail.python.org/mailman/listinfo/python-list

Re: persistent plot windows

2007-03-24 Thread Rodrigo Lopez-Negrete
Hi James, Thanks for the answer, the ampersand only works if I use the show() command at the end of my script. I guess that helps although I haven't tested it with plotting subroutines. cheers, Rodrigo On Mar 24, 6:50 pm, James Stroud [EMAIL PROTECTED] wrote: Rodrigo Lopez-Negrete wrote

web programming with mod_python

2005-07-01 Thread Rodrigo Dominguez
classes to manage some kind of themplates (for MVC), sessions, and if possible data persistence. I don't have root on these servers and the admins won't install any application if I ask them, I need to use just plain python files. Thank you -- Rodrigo Domínguez Consultor Av. Directorio 183 1º Piso

ANN: Brazil organises its first PyConDayBrasil

2005-03-27 Thread Rodrigo Dias Arruda Senra
) - Exploring Boa Constructor (Luciano Pacheco) - Python refreshes your thinking (Osvaldo Santana Neto) - Plone for Pythonistas (Fabiano Xiru Weimar dos Santos) - Python-Fu inside Gimp (Joao S. O. Bueno Calligaris) - The Language Boo by its Creator (Rodrigo Bamboo de Oliveira) - Zope 3: Reality