Top "Class-attributes" questions

React Js conditionally applying class attributes

I want to conditionally show and hide this button group depending on what is passed in from the parent component …

javascript css twitter-bootstrap-3 reactjs class-attributes
How to document class attributes in Python?

I'm writing a lightweight class whose attributes are intended to be publicly accessible, and only sometimes overridden in specific instantiations. …

python class documentation docstring class-attributes
Python class inheritance: AttributeError: '[SubClass]' object has no attribute 'xxx'

I have the following base class and subclass: class Event(object): def __init__(self, sr1=None, foobar=None): self.sr1 = …

python inheritance class-attributes
Dynamically create class attributes

I need to dynamically create class attributes from a DEFAULTS dictionary. defaults = { 'default_value1':True, 'default_value2':True, …

python class-attributes
Python: Inheritance of a class attribute (list)

inheriting a class attribute from a super class and later changing the value for the subclass works fine: class Unit(…

python inheritance list deep-copy class-attributes
python: What happens when class attribute, instance attribute, and method all have the same name?

How does python differentiate a class attribute, instance attribute, and method when the names are the same? class Exam(object): …

python methods instance-variables class-attributes
Overwriting the class on a `Html.EditorFor`

by the default with <%: Html.EditorFor(m => m.ConfirmationHeadline) %> the output is: <input type="text" value="" …

asp.net-mvc-2 textinput class-attributes
React conditional classnames using template strings and && operator

There have been many questions on StackOverflow relating to applying conditional classnames to React components; however, I have not seen …

javascript reactjs class-attributes template-strings
Python - function as class attribute becomes a bound method

I noticed that if I define a class attribute equal to a function when I create an instance of that …

python methods class-attributes