[Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione gheremedin.daniele
scusate di nuovo community ma perchè il comando 
eval(compile('Str='+Str,"",'exec')) non mi funziona sotto la funzione 
quando gli passo la variabile mentre se lo faccio senza funzione funziona 
(scusate il giro di parole)

def funzione2(diz,byte_list,valori_list):
f=open(diz,'r')   ### APRO STRUTTURA 
Str=f.read()  ### LEGGO STRUTTURA IN UNA 
STRINGA
f.close() ### CHIUDO STRUTTURA
eval(compile('Str='+Str,"",'exec'))    COMPILO STR  


funzione2("C:\Documents and Settings\Dany\Desktop\Dizionario",a[0],a[1])  ### 
CHIAMATA FUNZIONE

'''
f = open("C:\Documents and Settings\Dany\Desktop\Dizionario",'r')   
Str = f.read()  
  #  QUESTA FUNZIONA
f.close()   
 ##
eval(compile('Str = '+Str,"",'exec'))   
   
'



Distinti saluti
Daniele Gheremedin




___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione Davide Lo Re
Alle 15:48, sabato 18 novembre 2006, [EMAIL PROTECTED] ha scritto:
> scusate di nuovo community ma perchè il comando
> eval(compile('Str='+Str,"",'exec')) non mi funziona
che vuol dire non ti funziona?
solleva eccezioni? non fa quello che ti aspetteresti? sii piu' chiaro (che non 
vuol dire mandare 3 volte la stessa cosa :-) )
> Distinti saluti
> Daniele Gheremedin
Ciao
Davide

-- 

http://boyska.altervista.org/
Se il problema puo' essere risolto, perche' preoccuparsi?
E se non puo' essere risolto, perche' preoccuparsi?


pgpUjIRWIjGQG.pgp
Description: PGP signature
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione gheremedin.daniele
Effettivamente solleva eccezioni

Distinti saluti
Daniele Gheremedin



-Messaggio originale-
Da: [EMAIL PROTECTED] per conto di Davide Lo Re
Inviato: dom 19/11/2006 17:44
A: python@lists.python.it
Oggetto: Re: [Python] comando eval non funzionante con chiamata a metodo
 
Alle 15:48, sabato 18 novembre 2006, [EMAIL PROTECTED] ha scritto:
> scusate di nuovo community ma perchè il comando
> eval(compile('Str='+Str,"",'exec')) non mi funziona
che vuol dire non ti funziona?
solleva eccezioni? non fa quello che ti aspetteresti? sii piu' chiaro (che non 
vuol dire mandare 3 volte la stessa cosa :-) )
> Distinti saluti
> Daniele Gheremedin
Ciao
Davide

-- 

http://boyska.altervista.org/
Se il problema puo' essere risolto, perche' preoccuparsi?
E se non puo' essere risolto, perche' preoccuparsi?

<>___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


[Python] ordinamento dizionario

2006-11-19 Per discussione gheremedin.daniele
Salve communty ho definito un dizionari e in questo dizionario dei 
sottodizionari, devo ordinarli come si fa?
se chiamo diz.keys() mi da le chiavi ma poi come faccio a settarle nel 
dizionario



Distinti saluti
Daniele Gheremedin

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione Carlo C8E Miron

On 11/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Effettivamente solleva eccezioni

Distinti saluti
Daniele Gheremedin


Mhm, ti consiglio di aprire un bug su python.org, usando come titolo
qualcosa tipo:
"python is b0rked, coz eval() didn't work"

Grazie,
(c)

--
Carlo C8E Miron, ICQ #26429731
--
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.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione Lawrence Oluyede

On 11/19/06, Carlo C8E Miron <[EMAIL PROTECTED]> wrote:

On 11/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Effettivamente solleva eccezioni
>
> Distinti saluti
> Daniele Gheremedin

Mhm, ti consiglio di aprire un bug su python.org, usando come titolo
qualcosa tipo:
"python is b0rked, coz eval() didn't work"


e di mettere un patch al programma che usa per scrivere mail che rompe
tutti i reply :D
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


R: R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione gheremedin.daniele
scusate se io sto inguaiato ma aiutatemi non so aprire velocemente questo bug 
su python.org.
non ho capito il fatto del pacth del programma mail

Distinti saluti
Daniele Gheremedin



-Messaggio originale-
Da: [EMAIL PROTECTED] per conto di Lawrence Oluyede
Inviato: dom 19/11/2006 18:25
A: python@lists.python.it
Oggetto: Re: R: [Python] comando eval non funzionante con chiamata a metodo
 
On 11/19/06, Carlo C8E Miron <[EMAIL PROTECTED]> wrote:
> On 11/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Effettivamente solleva eccezioni
> >
> > Distinti saluti
> > Daniele Gheremedin
>
> Mhm, ti consiglio di aprire un bug su python.org, usando come titolo
> qualcosa tipo:
> "python is b0rked, coz eval() didn't work"

e di mettere un patch al programma che usa per scrivere mail che rompe
tutti i reply :D

<>___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: R: R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione Carlo C8E Miron

On 11/19/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

scusate se io sto inguaiato ma aiutatemi non so aprire velocemente questo bug 
su python.org.


Ok, magari non avrai il tempo per aprire il bug, ma *per favore*
prenditi il tempo per leggere:
http://www.linuxtrent.it/documentazione/wikiLT/DomandeIntelligenti
Grazie.


non ho capito il fatto del pacth del programma mail


Era uno scherzo, tranquillo...

(c)

--
Carlo C8E Miron, ICQ #26429731
--
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.
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: R: [Python] comando eval non funzionante con chiamata a metodo

2006-11-19 Per discussione Sandro Dentella
On Sun, Nov 19, 2006 at 05:59:33PM +0100, [EMAIL PROTECTED] wrote:
> Effettivamente solleva eccezioni


mettiamola cos?: quando vai dal medico dici "sto male" o gli dici anche
in che modo stai male? 

quanto sforzo vuoi far fare a noi e quanto vuoi farne tu?

sandro
*:-)

___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python


Re: [Python] ordinamento dizionario

2006-11-19 Per discussione Davide Lo Re
Alle 18:03, domenica 19 novembre 2006, [EMAIL PROTECTED] ha scritto:
> Salve communty ho definito un dizionari e in questo dizionario dei
> sottodizionari, devo ordinarli come si fa?
i dizionari non sono ordinati.
http://lists.python.it/pipermail/python/2006-November/002977.html
> Distinti saluti
> Daniele Gheremedin
Ciao
Davide
-- 

http://boyska.altervista.org/
Se il problema puo' essere risolto, perche' preoccuparsi?
E se non puo' essere risolto, perche' preoccuparsi?


pgpIQ69H38fPJ.pgp
Description: PGP signature
___
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python