Oct-04-2021, 07:44 PM
That would be totally valid for a class. Why not use a class?
is it pythonic to add a name 'attribute' to an existing variable?
|
|
Messages In This Thread |
is it pythonic to add a name 'attribute' to an existing variable? - by amjass12 - Oct-04-2021, 08:26 AM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by SamHobbs - Oct-04-2021, 07:44 PM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by snippsat - Oct-04-2021, 08:19 PM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by deanhystad - Oct-04-2021, 08:24 PM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by amjass12 - Oct-04-2021, 09:16 PM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by deanhystad - Oct-04-2021, 09:30 PM
RE: is it pythonic to add a name 'attribute' to an existing variable? - by amjass12 - Oct-04-2021, 09:33 PM
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Create new variable dependent on two existing variables | JoeOpdenaker | 6 | 3,155 |
Oct-25-2020, 02:15 PM Last Post: jefsummers |
|
Assignment of non-existing class variable is accepted - Why? | DrZ | 6 | 4,369 |
Jul-13-2020, 03:53 PM Last Post: deanhystad |
|
which is "better" (or more Pythonic)? | Skaperen | 2 | 2,099 |
Feb-01-2020, 03:10 PM Last Post: Skaperen |
|
which is "better" (or more Pythonic)? | Skaperen | 7 | 3,302 |
Feb-01-2020, 03:51 AM Last Post: Skaperen |
|
which is "better" (or more Pythonic)? | Skaperen | 8 | 3,457 |
Nov-16-2019, 06:46 PM Last Post: Skaperen |
|
which is more Pythonic? | Skaperen | 5 | 2,941 |
Jul-16-2019, 01:00 AM Last Post: Skaperen |
|
Function Attribute / Global Variable Confusion | digitalmatic7 | 1 | 5,427 |
Feb-13-2018, 09:54 AM Last Post: DeaD_EyE |