StackOverflow Questions for Tag: getattr

PHV
PHV

Reputation: 39

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

Score: 0

Views: 62

Answers: 0

Read More
Nikita Vstovsky
Nikita Vstovsky

Reputation: 348

Get nested attribute from a python object

Score: 16

Views: 8745

Answers: 5

Read More
nieswand
nieswand

Reputation: 43

Excluding an attribute from __setattr__ and __getattr__ in Python?

Score: 0

Views: 99

Answers: 0

Read More
astroboy
astroboy

Reputation: 1078

Why isn't there __setattribute__ in python?

Score: 2

Views: 1016

Answers: 1

Read More
InSync
InSync

Reputation: 10853

Use another class' methods without decorators and inheritance

Score: 0

Views: 147

Answers: 2

Read More
Zhiyuan Chen
Zhiyuan Chen

Reputation: 77

getattr with custom string class

Score: 0

Views: 91

Answers: 0

Read More
dreftymac
dreftymac

Reputation: 32440

PHP equivalent of send and getattr?

Score: 7

Views: 2251

Answers: 2

Read More
Sirupsen
Sirupsen

Reputation: 2115

Call method from string

Score: 55

Views: 46541

Answers: 4

Read More
Alex
Alex

Reputation: 44395

How are arguments passed to a function through __getattr__

Score: 17

Views: 9124

Answers: 2

Read More
Tuxdude
Tuxdude

Reputation: 49583

__getattr__ for static/class variables

Score: 79

Views: 45380

Answers: 5

Read More
amirt4
amirt4

Reputation: 136

Use getattr on function

Score: 1

Views: 102

Answers: 1

Read More
Yarin
Yarin

Reputation: 183929

Difference between __getattr__ and __getattribute__

Score: 607

Views: 244916

Answers: 8

Read More
Gribouille
Gribouille

Reputation: 122

Can not make property and __getattr__ working together

Score: 1

Views: 321

Answers: 2

Read More
Kirk Strauser
Kirk Strauser

Reputation: 30957

Why doesn't Python have a hybrid getattr + __getitem__ built in?

Score: 12

Views: 4548

Answers: 3

Read More
GopherM
GopherM

Reputation: 710

Set property on a function object

Score: 0

Views: 369

Answers: 1

Read More
kandakyy
kandakyy

Reputation: 3

Manim code doesn't work gives error "Mobject.getattr.<locals>.getter() got an unexpected keyword argument "x_range"

Score: 0

Views: 1198

Answers: 1

Read More
yts61
yts61

Reputation: 1619

"TypeError: getattr(): attribute name must be string" in PyTorch diffusers, how to fix it?

Score: 5

Views: 6465

Answers: 1

Read More
ARF
ARF

Reputation: 7694

AttributeErrors: undesired interaction between @property and __getattr__

Score: 7

Views: 1159

Answers: 3

Read More
A.J.
A.J.

Reputation: 9025

How to get foreign key values with getattr from models

Score: 12

Views: 7132

Answers: 2

Read More
Dmytro
Dmytro

Reputation: 55

Is there a way to use __getattr__ as Python classmethod

Score: 4

Views: 2244

Answers: 1

Read More
PreviousPage 3Next