[PIPython] Compilare script .py

Carlo C8E Miron carlo.miron
Gio 23 Giu 2005 15:33:33 CEST


Il 23/06/05, M.Buso<mbposta a postino.it> ha scritto:
> Io lo scaricato ieri. Lo sto studiando.
> Ma da quanto ho capito non compila nella maniera tradizionale, cioè creando
> un exe.
> credo ottimizzi solo l'esecuzione del codice.
> Forse mi sbaglio.

Non sbagli, si tratta di un compilatore JIT (just-in-time).
Per utilizzarlo e' sufficiente aggiungere in cima al tuo script::

try:
    import psyco
    psyco.full()
except ImportError:
    pass

(o qualcosa del genere, RTFM).

HAND
(c)

> Mauro
> 
> 
> ----- Original Message -----
> From: <pierugo.massolo a itc.alstom.com>
> To: <python a lists.python.it>
> Sent: Thursday, June 23, 2005 2:58 PM
> Subject: [PIPython] Compilare script .py
> 
> Scusate,
> ho cercato di compilare con Psyco ma non ho capito come si fa, qualcuno può
> darmi una dritta?
> Grazie mille
> ciao
> pierugo
> 
> _______________________________________________
> La mailing list di python.it
> python a lists.python.it
> http://lists.python.it/cgi-bin/mailman/listinfo/python
> 
> _______________________________________________
> La mailing list di python.it
> python a lists.python.it
> http://lists.python.it/cgi-bin/mailman/listinfo/python
> 


-- 
Disclaimer:
If I receive a message from you, you are agreeing that:
1. I am by definition, "the intended recipient".
2. All information in the email is mine to do with as I see fit and
 make such financial profit, political mileage, or good joke as it
 lends itself to. In particular, I may quote it on USENET or the WWW.
3. I may take the contents as representing the views of your company.
4. This overrides any disclaimer or statement of confidentiality that
 may be included on your message.


More information about the Python mailing list