[SerialConnection] Help

2015-04-07 Thread Hugo Caldas
Hi. I want to connect to a serial port, read and write the port values with multi threading and save them in random variables in python 3.4. Where can I found information to do that? thank you -- https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Hugo Arts
echo hello ... echo hello | wc -l ... ps aux | grep python""" >>> b = subprocess.check_output(commands, shell=True) >>> print(b.decode('ascii')) hello 1 hugo 1255 1.0 0.6 777316 49924 ?Sl 09:14 0:08 /usr/bin/python2 /usr/bi hugo 6529 0.0 0.0 42408 7196

Changing interpolation

2012-01-20 Thread Hugo Léveillé
erpolation( nuke.selectedNode().knobs()['translate'].animations()[0].keys() , nuke.CONSTANT) -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net -- http://mail.python.org/mailman/listinfo/python-list

Newbie subprocess question

2010-11-25 Thread Hugo Léveillé
7;"Program File*..."'. No luck. How can I start a app inside this folder ? Thanks -- Hugo Léveillé TD Compositing, Vision Globale hu...@fastmail.net -- http://mail.python.org/mailman/listinfo/python-list

Random math op

2010-10-02 Thread Hugo Léveillé
Hi let say I have a simple math apps that randomize number X and number Y. How would you randomize between '/','*','+', and '-' for that math operation -- Hugo Léveillé hu...@fastmail.net -- http://mail.python.org/mailman/listinfo/python-list

Re: System idle time under Linux

2010-09-30 Thread Hugo Léveillé
19hl pts/12010-09-30 06:27 00:11 14084 (:0.0) vg0619hl pts/22010-09-30 06:54 . 14084 (:0.0) On Thu, 30 Sep 2010 02:26 -0700, "John Pinner" wrote: > On Sep 29, 7:36 pm, Hugo Léveillé wrote: > > Good point > > > > One I am looking for,

Re: System idle time under Linux

2010-09-29 Thread Hugo Léveillé
Good point One I am looking for, is time since last user mouse or keyboard action. So I guess I am looking for the exact same thing a screensaver is looking for On Wed, 29 Sep 2010 17:27 +, "Seebs" wrote: > On 2010-09-29, Hugo L?veill? wrote: > > I have found it for w

Re: System idle time under Linux

2010-09-29 Thread Hugo Léveillé
Sorry, I am not a linux guy. Did not know it was a text file On Wed, 29 Sep 2010 14:48 +, "Grant Edwards" wrote: > On 2010-09-29, Hugo L?veill? wrote: > > > > Thanks, will take a closer look on that > > > > But to get me started, how would you get, via

Re: System idle time under Linux

2010-09-29 Thread Hugo Léveillé
; http://mail.python.org/mailman/listinfo/python-list > -- Hugo Léveillé hu...@fastmail.net -- http://mail.python.org/mailman/listinfo/python-list

System idle time under Linux

2010-09-29 Thread Hugo Léveillé
I have found it for windows and mac, but no luck under linux. Any idea? Thanks -- Hugo Léveillé hu...@fastmail.net -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Arguments from the command line

2010-09-06 Thread Hugo Arts
a commit name" as the commit name) > sys.argv is a list of all arguments from the command line. However, you'll rarely deal with it directly, there's various modules that deal with handling arguments. I believe the current one is argparse: http://docs.python.org/library/argparse.html#module-argparse Hugo -- http://mail.python.org/mailman/listinfo/python-list

Re: Knob label justification

2009-11-11 Thread Hugo Leveille
Sorry, Im using the PythonPanel module of nuke. On 11/11/09 7:20 AM, "Chris Rebert" wrote: > On Wed, Nov 11, 2009 at 3:25 AM, Hugo Léveillé > wrote: >> By default, a boolean knob has the text label on the right. How can I make >> it on the left? > > We'

Knob label justification

2009-11-11 Thread Hugo Léveillé
By default, a boolean knob has the text label on the right. How can I make it on the left? thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Find class of an instance?

2008-08-06 Thread Hugo
Neal Becker schreef: Sounds simple, but how, given an instance, do I find the class? I always do that with .__class__, not sure whether it is the best way: >>> class A: ... pass ... >>> a = A() >>> a.__class__ >>> a.__class__ == A True -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.ps1 with formatting (linux)

2008-08-06 Thread Hugo
="\001\033[1m\033[32m\002spy>\001\033[0m\002" sys.ps2="\001\033[1m\033[32m\002 .\001\033[0m\002" Solution found in: http://hg.secdev.org/scapy/raw-file/tip/scapy.py: > ^A and ^B delimit invisible caracters for readline to count right Greetings, Hugo -- http://mail.python.org/mailman/listinfo/python-list

SIMD powered Python

2007-06-22 Thread Hugo Ferreira
Hi! Is there any I&D ongoing about using SIMD [1] instructions, like SSE [2], to speed up Python, especially regarding functional features, like list comprehension, map and reduce, etc.. ? Best regards, Hugo Ferreira -- [1] http://en.wikipedia.org/wiki/SIMD [2] http://en.wikipedia.org/

Re: Typed named groups in regular expression

2007-05-19 Thread Hugo Ferreira
t; wrote: > > On May 16, 6:58 pm, "Hugo Ferreira" <[EMAIL PROTECTED]> wrote: > > > > > Hi! > > > > > Is it possible to "automagically" coerce the named groups to python > > > types? e.g.: > > > > > >>>

Typed named groups in regular expression

2007-05-16 Thread Hugo Ferreira
Hi! Is it possible to "automagically" coerce the named groups to python types? e.g.: >>> type(re.match('(?P\d*)', '123').groupdict()['x']) But what I'm looking forward is for the type to be 'int'. Cheers! Hugo Ferreira -- http://mail.python.org/mailman/listinfo/python-list

Python Dijkstra Shortest Path

2007-05-15 Thread Hugo Ferreira
f anyone has any idea to make this faster (maybe map? list comprehension? some python trick?)... Profiling blames the heapq (eheh). On a my CoreDuo T2300, it takes 1.6seconds to find a path of 800 vertexes in an half a million mesh. Greetings! Hugo Ferreira -- http://mail.python.org/mailman/listinfo/python-list

Drawing Text on a Path

2007-05-12 Thread Hugo Ferreira
... Could someone give me an hand here? Thanks in advance! Hugo Ferreira -- http://mail.python.org/mailman/listinfo/python-list

Any Pythonistas in Mexico?

2007-04-12 Thread Hugo González Monteverde
Hola, Leí este mail viejísimo en una lista. Yo uso Python y también quería saber quién pythoneaba en México. Todavía estás por ahí? Saludos, Hugo G. -- http://mail.python.org/mailman/listinfo/python-list

Re: Synchronous shutil.copyfile()

2007-01-31 Thread Hugo Ferreira
one) Sometimes... Yes, the database is a %"#$"# MSAccess. This script is running under windows. Any ideas? On 1/31/07, Hugo Ferreira <[EMAIL PROTECTED]> wrote: Well.. Thx for the answers. The only way I had to make it work was to use a time.sleep(10) after the shutil.copyfile().

Re: Synchronous shutil.copyfile()

2007-01-30 Thread Hugo Ferreira
Well.. Thx for the answers. The only way I had to make it work was to use a time.sleep(10) after the shutil.copyfile(). Since this is a night-run script, I can waste 10 seconds, but it still knocks me out "why" it happens... Cheers! Hugo Ferreira On 30 Jan 2007 18:06:15 + (GMT

Synchronous shutil.copyfile()

2007-01-30 Thread Hugo Ferreira
but at run-time, it throws an exception. Is there anyway to force a sync copy of the file (make python wait for the completion)? Thanks in advance! Hugo Ferreira -- http://mail.python.org/mailman/listinfo/python-list

re.sub and empty groups

2007-01-16 Thread Hugo Ferreira
uld be an empty string instead of None). This is because I want to use re.sub() and when the group is None, it blows up with a stack trace... Maybe I'm not getting the essence of groups and non-grouping groups. Someone care to explain (and, give the correct solution :)) ? Thanks in advance, Hugo Ferreira -- GPG Fingerprint: B0D7 1249 447D F5BB 22C5 5B9B 078C 2615 504B 7B85 -- http://mail.python.org/mailman/listinfo/python-list

Best memory analyzer?

2006-12-06 Thread Hugo Ferreira
Hi! I'm using the BGL bindings, but I think I'm having a giant memory leak. Thing is, I'm not sure if it is the bound C++ variables that are not being trashed, or if the leak is inside my program. What is the best way to debug this? Thanks! Hugo Ferreira -- GPG Fingerprint:

Re: Best way for inter-process communication in Python

2006-12-04 Thread Hugo Ferreira
output. Which raises me the following question... How do I signal a python application under windows? (Is it possible to send something like a SIGHUP?) Cheers! On 12/4/06, Hugo Ferreira <[EMAIL PROTECTED]> wrote: > Hi everyone! > > Here's the current scenario: I have a pr

Best way for inter-process communication in Python

2006-12-04 Thread Hugo Ferreira
r... Just a few considerations: Python version is 2.4. PostgreSQL version is 8.2RC1, OS version is Windows Server 2003. Thanks in advance, Hugo Ferreira -- GPG Fingerprint: B0D7 1249 447D F5BB 22C5 5B9B 078C 2615 504B 7B85 -- http://mail.python.org/mailman/listinfo/python-list

Re: PyParsing and Headaches

2006-11-22 Thread Hugo Ferreira
me to do in just a couple of hours, including learning about it's API (minus this little inconvenient) what would have taken me a couple of days with, for example, ANTLR (in fact, I've already put aside ANTLR more than once in the past for a built-from-scratch parser). Cheers, Hugo

PyParsing and Headaches

2006-11-22 Thread Hugo Ferreira
7;], {}) # KO. It shouldn't recognize any token since I didn't said the SPACE was allowed between include_bool and literal. Can anyone give me an hand here? Cheers! Hugo Ferreira BTW, the following is the complete grammar I'm trying to implement with pyparsing: ## L ::= expr

Rendering Vector Graphics

2006-08-10 Thread Hugo Ferreira
Hi ppl,I need to render high-quality vector graphics with Python. I was thinking of something like 'cairo', though I need to run under win32 and can't find a pycairo package for it. Suggestions?Thanks, Hugo Ferreira-- GPG Fingerprint: B0D7 1249 447D F5BB 22C5  5B9B 078C 2615 504

Re: Proposal: [... for ... while cond(x)]

2006-08-06 Thread Hugo Ferreira
I actually like the proposal...If the argument to remove map, lambda and filter can be that list comprehension is more "readable", then why can't this one also use it?Which reminds me this discussion: http://awkly.org/archive/can-python-take-advantage-of-mapreduce/ Cheers!HugoOn 8/6/06, Slawomir N

ELF format reader

2006-07-31 Thread Hugo Venturini
Hi, I am looking for an ELF format reader written in python. Does anyone know if it exists?H. -- http://mail.python.org/mailman/listinfo/python-list

Re: Type signature

2006-07-24 Thread Hugo Ferreira
Which is expecially true when using IDEs with auto-completion.Using VisualStudio/MonoDevelop and C# I rarely need to look at the documentation because I can quickly see what a method accept and returns. And when I need to pass flags or options, enums are much more neat and encapsulated. With Python

[no subject]

2005-10-18 Thread hugo hernandez diaz
hola la vdd lei su documento pero no le entoendo bien mas que nada puedo crear algo con este programa si la respuesta es si mas o menos que si la respuesta en no entoncs pa que sirve a ademas no me pueden pasar oyta guia mas facil mmm soy medio lento de aprendizaje gracias -- http://mail.python.or