Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: AttributeError: 'dict' object has no attribute 'fees'
Post: RE: AttributeError: 'dict' object has no attribute...

(Apr-19-2018, 09:18 PM)Gribouillis Wrote: (Apr-19-2018, 09:13 PM)mattraffel Wrote: Can you give me an exampleclass Foo: pass foo = Foo() foo.fees = ['GMBk8YVHn2', 2, 'C4xbW4SR'] print(getattr...
mattraffel General Coding Help 6 52,421 Apr-20-2018, 06:54 PM
    Thread: AttributeError: 'dict' object has no attribute 'fees'
Post: RE: AttributeError: 'dict' object has no attribute...

Can you give me an example of how the data should be structured so that fees is an attribute? Thnx Matt
mattraffel General Coding Help 6 52,421 Apr-19-2018, 09:13 PM
    Thread: AttributeError: 'dict' object has no attribute 'fees'
Post: RE: AttributeError: 'dict' object has no attribute...

Interesting: why does the getattrib request fail then? am I using it wrong? fees = getattr(msg, "fees")Thnx Matt
mattraffel General Coding Help 6 52,421 Apr-19-2018, 09:04 PM
    Thread: AttributeError: 'dict' object has no attribute 'fees'
Post: AttributeError: 'dict' object has no attribute 'fe...

I do not understand how to allocate a python dictionary. I was hoping someone could point out my error. If this is not the right forum, please help me out and point me to the right one. This is my co...
mattraffel General Coding Help 6 52,421 Apr-19-2018, 08:37 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020