#12336 closed (fixed)
Infinite recursion in dir(UserSettingsHolder)
Reported by: | miracle2k | Owned by: | nobody |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
The implementation for dir calls dir(self) - introduced here:
http://code.djangoproject.com/changeset/11636
To reproduce, simply do:
settings.configure({}) dir(settings)
Change History (3)
comment:1 by , 15 years ago
Component: | Uncategorized → Core framework |
---|---|
Triage Stage: | Unreviewed → Accepted |
Version: | 1.1 → SVN |
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 15 years ago
For the record (and to make myself feel a bit better about how I could have introduced this bug in the first place :-) the infinite recursion is only obvious in Python 2.6, not 2.4 or 2.5. Under 2.4 and 2.5 the 'recursion depth exceeded' error is swallowed and the code somehow appears to work fine.
Note:
See TracTickets
for help on using tickets.
(In [11799]) Fixed #12336 - infinite recursion in dir(UserSettingsHolder)
This is a regression introduced in trunk, so it does not need to be backported.
Thanks to miracle2k for the report.