Hi

I have a solution for this now.

Best regards

David

> -----Original Message-----
> From: Tutor [mailto:tutor-bounces+david.aldrich=eu.nec....@python.org]
> On Behalf Of David Aldrich
> Sent: 15 June 2015 12:03
> To: tutor@python.org
> Subject: [Tutor] How to import a dictionary from another module?
> 
> Hi
> 
> I have defined a dictionary in a module:
> 
> mydir.py:
> 
> REG_LOOKUP = {
>     'REG_1' : some_value1,
>     'REG_2' : some_value2,
> }
> 
> How would I import that dictionary from my main() function (which lives in a
> different module) please?
> 
> Best regards
> 
> David
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
> 
> 
>  Click
> https://www.mailcontrol.com/sr/Q2tIWP1gKVLGX2PQPOmvUlvAwUAcTfZne
> qTtIw9m3Q8SQ0yRarxngdZVWY3fkqP66uKlINFphbKNI5tH4SJ!Mg==  to
> report this email as spam.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to