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

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 *source code* starting with http:

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 *source code* starting with http:

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

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 = s

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.pyt

Re: Does python have the capability for driver development ?

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

Re: which datastructure for fast sorted insert?

2008-05-25 Thread Rodrigo Lazo
structure is best for this? > > Keep the data redundantly 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

Entering username & password automatically using urllib.urlopen

2007-10-14 Thread rodrigo
the user/ pass 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

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: 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! -- http://mail.python

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: 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
on my own. 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 b

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

"persistent" plot windows

2007-03-24 Thread Rodrigo Lopez-Negrete
I closed the figures. 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

web programming with mod_python

2005-07-01 Thread Rodrigo Dominguez
want some 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. Di

ANN: Brazil organises its first PyConDayBrasil

2005-03-27 Thread Rodrigo Dias Arruda Senra
pes Mendes) - 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