potential feature "Yield in "

2022-11-15 Thread Ismael Harun
This is about a feature suggestion regarding having the ability to have parallel generators. Currently you can have generators and iterators that can yield a single value. or a collection of values (still a single value). But what if you could yield to multiple objects. In a sense build multi

Re: how to do draw pattern with python?

2012-09-21 Thread Ismael Farfán
ooks like those line coloring scape sequences for bash. Ismael -- Do not let me induce you to satisfy my curiosity, from an expectation, that I shall gratify yours. What I may judge proper to conceal, does not concern myself alone. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to get the list of all my open file(descriptor)s and locks?

2012-09-19 Thread Ismael Farfán
> http://code.google.com/p/psutil/#Process_management > > Christian > > -- > http://mail.python.org/mailman/listinfo/python-list Unfortunately I'm not allowed to install 3rd party SW unless it's absolutely necessary, but thanks for sharing, I'll have a look at the

Re: How to get the list of all my open file(descriptor)s and locks?

2012-09-19 Thread Ismael Farfán
2012/9/19 Ian Kelly : > On Wed, Sep 19, 2012 at 2:36 PM, Ismael Farfán wrote: >> It seems like I can use os.fstat to find out if a fd exists and also >> get it's type and mode (I'm getting some pipes too : ) > > Sure, because files and pipes both use the file des

Re: How to get the list of all my open file(descriptor)s and locks?

2012-09-19 Thread Ismael Farfán
2012/9/19 Ismael Farfán : > Hello list > > From man 2 EXECVE > "By default, file descriptors remain open across an execve()" > > And from man 2 FCNTL > "Record locks are... preserved across an execve(2)." > > So the question: > * If I execve a pyth

Re: Passing arguments to & executing, a python script on a remote machine from a python script on local machine (using ssh ?)

2012-09-19 Thread Ismael Farfán
tem ("ssh remoteuser@remote python remote.py arg1 arg2 arg3") > > This worked, but if the arguments i tried to pass, had spaces, i was not able > to 'escape' the spaces. How about something like this: os.system ( 'ssh remoteuser@remote python remote.py "arg

How to get the list of all my open file(descriptor)s and locks?

2012-09-19 Thread Ismael Farfán
expect to get (at least) std(in/out/err). If more information is needed in order to help me, please let me know. Cheers Ismael -- Do not let me induce you to satisfy my curiosity, from an expectation, that I shall gratify yours. What I may judge proper to conceal, does not concern myself alone

RE: File and directory permissions in windows

2006-10-23 Thread ismael
Perl and what happens? the same problem... Thanks for all. Best regards. Tim Golden wrote: > [ismael] > > | I have some problems to get the the permissions on windows. I > | use a simple code that run perfectly in UNIX but give me wrong > | information on Windows. I found th

File and directory permissions in windows

2006-10-23 Thread ismael
Hi all I have some problems to get the the permissions on windows. I use a simple code that run perfectly in UNIX but give me wrong information on Windows. I found this code searching by google: import os import stat print os.stat('fichero.txt') st = os.stat('fichero.txt') mode = st[stat.ST_MOD