[Tutor] How to import a dictionary from another module?
David Aldrich
David.Aldrich at EMEA.NEC.COM
Mon Jun 15 16:49:39 CEST 2015
Hi
I have a solution for this now.
Best regards
David
> -----Original Message-----
> From: Tutor [mailto:tutor-bounces+david.aldrich=eu.nec.com at python.org]
> On Behalf Of David Aldrich
> Sent: 15 June 2015 12:03
> To: tutor at 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 at 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.
More information about the Tutor
mailing list