Re: Popen

2009-07-24 Thread Francesco Bochicchio
On Jul 24, 6:24 pm, Tim wrote: > Thanks! > Yes I mean subprocess.Popen. > > I was wondering the meaning of "asynchronously" > Here is some code I am reading recently: > " > result = Popen(cmdline,shell=True,stdout=PIPE).stdout > for line in result.readlines(): >     if find(line,"Cross") != -1: >

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On Jul 30, 5:52 am, NighterNet wrote: > I am trying to figure out how to send text or byte in python 3.1. I am > trying to send data to flash socket to get there. I am not sure how to > work it. > > buff= 'id=' , self.id , ':balive=False\n' > clientSock.send(buff); Try putting a 'b' before the co

Python processors? : WAS Re: Does python have the capability for driver development ?

2009-07-30 Thread Francesco Bochicchio
On Jul 30, 11:10 am, Christian Heimes wrote: > Martin P. Hellwig wrote: > > Well the pyc, which I thought was the Python bytecode, is then > > interpreted by the VM. > > Python is often referred as byte-code interpreted language. Most modern > languages are interpreted languages. The list [1] is r

Re: No PyPI search for 3.x compatible packages

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 01:55, Neil Hodgson wrote: >    There appears to be no way to search PyPI for packages that are > compatible with Python 3.x. There are classifiers for 'Programming > Language' including 'Programming Language :: Python :: 3' but that seems > to be for implementation language since there

Re: socket send

2009-07-30 Thread Francesco Bochicchio
On 30 Lug, 18:06, NighterNet wrote: > On Jul 30, 6:56 am, "Mark Tolonen" wrote: > > > > > > > "NighterNet" wrote in message > > >news:55aba832-df6d-455f-bf34-04d37eb06...@i4g2000prm.googlegroups.com... > > > >I am trying to figure out how to send text or byte in python3.1. I am > > > trying to s

Re: socket send

2009-07-31 Thread Francesco Bochicchio
On Jul 30, 10:16 pm, "Jan Kaliszewski" wrote: > 30-07-2009 o 12:29:24 Francesco Bochicchio wrote: > > > On Jul 30, 5:52 am, NighterNet wrote: > >> I am trying to figure out how to send text or byte in python 3.1. I am > >> trying to send data to flash s

Re: variable & scoping question.

2009-08-10 Thread Francesco Bochicchio
On Aug 10, 5:12 pm, "Diez B. Roggisch" wrote: > Cornelius Keller wrote: > > Hi, > > > I'm a quite fresh python programmer, (6 Month python experience). > > Today I found something I absolotly don'nt understand: > > > given the following function: > > > def test_effect(class_id=None,class_ids=[]):

Re: Why does my ftp script quit after couple of hours?

2009-08-14 Thread Francesco Bochicchio
On 14 Ago, 18:03, kk wrote: > Hi > This way the first time I did something with ftp stuff. I think that > generally it works but it stops working(quits or disappears) after > couple of hours of running. > > This was a personal test-trial script for my own needs which was to > get my dynamic ip and

Re: flatten a list of list

2009-08-16 Thread Francesco Bochicchio
On Aug 16, 1:25 pm, Steven D'Aprano wrote: ... > Chris' suggestion using itertools seems pretty good: > > >>> from timeit import Timer > >>> setup = """\\ > > ... L = [ [None]*5000 for _ in xrange(%d) ] > ... from itertools import chain > ... """>>> Timer("list(chain.from_iterable(L))", setup %

Re: How to create ones own lib

2009-08-19 Thread Francesco Bochicchio
On 19 Ago, 11:00, Horst Jäger wrote: > Hi, > > I would like to create my own lib "hotte.py" which I can import like > >         import string,hotte > > . How do I do that? > > I'm working on MacOS 10.5.6 . > > Thanks in advance Just create the file 'hotte.py' and place it somewhere python can fin

Re: your favorite debugging tool?

2009-08-23 Thread Francesco Bochicchio
On Aug 22, 4:25 pm, Esmail wrote: > Hi all, > > What is your favorite tool to help you debug your > code? I've been getting along with 'print' statements > but that is getting old and somewhat cumbersome. > > I'm primarily interested in utilities for Linux (but > if you have recommendations for Wi

Re: conditional for-statement

2009-08-23 Thread Francesco Bochicchio
On Aug 23, 10:09 am, seb wrote: > Hi, > > i was wondering if there is a syntax alike: > > for i in range(10) if i > 5: >     print i > > equivalent to > > for i in (for i in range(10) if i>5): >     print i > > sebastien AFAIK, no syntax fo that. But the standard syntax is not too different: for

Re: Newbie: list comprehension troubles..

2009-08-24 Thread Francesco Bochicchio
On 24 Ago, 01:27, mm wrote: > Hi, I'm trying to replace this... > >         # this works but there must be a more pythonic way, right? >         tlist = [] >         for obj in self.objs: >             t = obj.intersect(ray) >             if (t != None): >                 tlist.append((obj,t)) > >

Re: The future of Python immutability

2009-09-04 Thread Francesco Bochicchio
On Sep 3, 9:07 pm, Nigel Rantor wrote: > > Right, this is where I would love to have had more experience with Haksell. > > Yes, as soon as you get to a situation where no thread can access shared > state that is mutable your problems go away, you're also getting no work > done becasue the threads,

Re: VTK install

2009-09-15 Thread Francesco Bochicchio
On Sep 15, 6:29 am, Gib wrote: > As part of the MayaVi install, I need to install VTK.   ... > Since VTK appears to be installed, I'm guessing that either the path > setting is wrong, or python is not using PYTHONPATH.  How can I check > that PYTHONPATH is being used? The paths in PYTHONPATH sh

tool per conversione e trasformazione dati

2009-09-23 Thread Francesco Stablum
mework per effetturare operazioni di questo tipo e, allargando il discorso al di la di python, se esiste una disciplina teorica da dove possiamo attingere informazioni per riorganizzare i nostri programmi e script. ringrazio per l'attenzione, Francesco Stablum -- The generation of random

Re: tool per conversione e trasformazione dati

2009-09-23 Thread Francesco Stablum
of "fixes"... a very complex job. I was wondering if there are any tool/frameworks to do such operations and if there exist a theoretical scientific branch where we can get some more informations to reorganize our scripts and programs. thanks for the attention, Francesco Stablum 2009/9/23

python server?

2005-10-11 Thread Francesco Marchetti-Stasi
rd something of this kind? Or maybe there is something almost-ready in the amazing python library (as you understand, I am rather new to python), and I missed it? Thanks, Francesco. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3