Message329289
| Author | orlnub123 |
|---|---|
| Recipients | Windson Yang, chris.jerdonek, docs@python, nedbat, orlnub123, pablogsal, serhiy.storchaka, steven.daprano, terry.reedy, vstinner, xtreak |
| Date | 2018-11-05.10:31:59 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1541413919.86.0.788709270274.issue35105@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I take back my previous suggestion, I agree that documenting it in setattr() (and **kwargs) is the way to go. It's obvious that you can assign anything to the __dict__, since it represents a dict, but setattr() is more ambiguous. 'Anything' was the key word for me here. For example you can assign ints to __dict__ and it won't complain but try to do the same with setattr()/getattr() and it results in an error. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2018-11-05 10:32:00 | orlnub123 | set | recipients: + orlnub123, terry.reedy, vstinner, nedbat, steven.daprano, chris.jerdonek, docs@python, serhiy.storchaka, pablogsal, Windson Yang, xtreak |
| 2018-11-05 10:31:59 | orlnub123 | set | messageid: <1541413919.86.0.788709270274.issue35105@psf.upfronthosting.co.za> |
| 2018-11-05 10:31:59 | orlnub123 | link | issue35105 messages |
| 2018-11-05 10:31:59 | orlnub123 | create | |