Message329208
This seems like a confusion of two things: identifiers are lexical elements of the language. Attributes are not limited to identifiers.
We could add to the docs for setattr: "The attribute name does not have to be a valid identifier." I don't know what the language guarantees about what strings are valid as attribute names. |
|
Date |
User |
Action |
Args |
2018-11-03 21:31:25 | nedbat | set | recipients:
+ nedbat, terry.reedy, vstinner, steven.daprano, docs@python, serhiy.storchaka, pablogsal, Windson Yang, xtreak, orlnub123 |
2018-11-03 21:31:25 | nedbat | set | messageid: <1541280685.48.0.788709270274.issue35105@psf.upfronthosting.co.za> |
2018-11-03 21:31:25 | nedbat | link | issue35105 messages |
2018-11-03 21:31:25 | nedbat | create | |
|