StackOverflow Questions for Tag: getattr

Timm Clarsson
Timm Clarsson

Reputation: 121

Can the usage of `setattr` (and `getattr`) be considered as bad practice?

Score: 12

Views: 5328

Answers: 1

Read More
bfontaine
bfontaine

Reputation: 19810

How to check if a Python module with a custom __getattr__ has a given attribute?

Score: 0

Views: 198

Answers: 1

Read More
Prospero
Prospero

Reputation: 109

Is there a way to access an attribute of an object that is a variable (dynamic) without using the getattr() function?

Score: 0

Views: 54

Answers: 0

Read More
user1063364
user1063364

Reputation: 917

Android Dialog - how to get value for windowMinWidthMajor/windowMinWidthMinor

Score: 0

Views: 736

Answers: 0

Read More
Graham B
Graham B

Reputation: 51

Why does getattr() exit a program when it raises an exception inside a try statement?

Score: 1

Views: 45

Answers: 1

Read More
Dark Angel
Dark Angel

Reputation: 11

Python TypeError: getattr(): attribute name must be string

Score: 0

Views: 170

Answers: 0

Read More
MisterMiyagi
MisterMiyagi

Reputation: 50066

Lazy Evaluation: forward operations to deferred value

Score: 0

Views: 471

Answers: 2

Read More
Matt Joiner
Matt Joiner

Reputation: 118460

__getattr__ on a module

Score: 150

Views: 75884

Answers: 9

Read More
Romero Junior
Romero Junior

Reputation: 243

Python: How to dynamically get kwargs from __getattr__

Score: 1

Views: 1128

Answers: 1

Read More
Terence Ponce
Terence Ponce

Reputation: 9371

What is & How to use getattr() in Python?

Score: 405

Views: 387677

Answers: 15

Read More
Szymon Łopaciuk
Szymon Łopaciuk

Reputation: 26

Circumvent the non-standard behaviour of __getattr__ in a Cython extension class

Score: 0

Views: 69

Answers: 1

Read More
karlosss
karlosss

Reputation: 3155

__getattr__ and __getattribute__ for class/static atributes of dynamically generated classes

Score: 3

Views: 1062

Answers: 1

Read More
user1972031
user1972031

Reputation: 557

__getattr__ special method

Score: 1

Views: 29

Answers: 1

Read More
tom fowle
tom fowle

Reputation: 1

How do I access ephem.body fields using python and pyephem and getattr() method?

Score: 0

Views: 133

Answers: 2

Read More
Diego Quirós
Diego Quirós

Reputation: 977

Django template not recognizing getattr

Score: 2

Views: 172

Answers: 1

Read More
Basj
Basj

Reputation: 46341

How to have a lambda function evaluate a variable now (and not postponed)

Score: 3

Views: 46

Answers: 0

Read More
user112495
user112495

Reputation: 244

Apply an additional function to direct instance methods

Score: 0

Views: 49

Answers: 1

Read More
meelioo
meelioo

Reputation: 3

AttributeError: 'super' object has no attribute '__getattr__' KivyMD

Score: 0

Views: 59

Answers: 1

Read More
user225312
user225312

Reputation: 131567

Understanding the difference between __getattr__ and __getattribute__

Score: 286

Views: 152203

Answers: 4

Read More
PHV
PHV

Reputation: 39

Google Colab - Infinite recursion error using __getattribute__,__getattr__ and __setattr__?

Score: 0

Views: 59

Answers: 0

Read More
PreviousPage 2Next