Home

Given a list of names

ll = ("n1", "n2", "n3", "n4")

I want to create a pair of functions based off of each name. An example of
what I want to happen would look like this:

def mkn1dict(address):
return {'Address': address, 'Control': SOME_CONST}

def mkn1Classobj(address):
return Classobj( mkn1classobj(address) )

I know how to do this in a preprocessor, but I'd like to do it directly in
python. Can this be done?

TIA


--
Time flies like the wind. Fruit flies like a banana. Stranger things have .0.
happened but none stranger than this. Does your driver's license say Organ ..0
Donor?Black holes are where God divided by zero. Listen to me! We are all- 000
individuals! What if this weren't a hypothetical question?
steveo at syslang.net

previous
next

Re: Bidirectional iterators: signed distance?
Re: Python 3.0 migration plans?
Re: What does this mean?
Named Pipes in C++
Re: File access
Fundacja Hobbit
Mam Marzenie
Niechciane i Zapomniane
Mimo Wszystko
Podaruj Zycie