Timeline for More Pythonic Context Manager Wrapper
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 30, 2022 at 15:31 | history | edited | Toby Speight | CC BY-SA 4.0 |
Spellfix
|
Nov 29, 2022 at 16:27 | answer | added | C.Nivs | timeline score: 4 | |
Nov 29, 2022 at 16:11 | history | edited | Toby Speight |
edited tags
|
|
Feb 27, 2020 at 16:53 | vote | accept | Stephen | ||
Feb 27, 2020 at 3:33 | answer | added | AJNeufeld | timeline score: 7 | |
Feb 27, 2020 at 0:32 | history | edited | Stephen | CC BY-SA 4.0 |
expanded topic for (hopefully) clarity
|
Feb 27, 2020 at 0:30 | comment | added | pacmaninbw♦ | You might want to read the guidelines for good questions at codereview.stackexchange.com/help/how-to-ask. | |
Feb 27, 2020 at 0:25 | comment | added | Stephen |
@SamStafford This is going to be used for more complicated objects where you wouldn't want to just endlessly list the same parameters over and over. Something like d = {'a':{'b':{'c':{'d':'e'}}}} where the object is complex/deeply nested.
|
|
Feb 27, 2020 at 0:25 | comment | added | Stephen | @pacmaninbw Let me amend my post. | |
Feb 27, 2020 at 0:23 | comment | added | pacmaninbw♦ |
Welcome to code review, the question might be better received if the title was something like Context Manager Wrapper and there was a paragraph explaining what the code does.
|
|
Feb 26, 2020 at 23:59 | comment | added | Samwise |
What's the advantage of this over just saying item = d['a'] ? Usually the purpose of a context manager is to do something in the __exit__ (close a file, free a resource, etc) but your use case doesn't require anything like that.
|
|
Feb 26, 2020 at 23:35 | review | First posts | |||
Feb 27, 2020 at 0:23 | |||||
Feb 26, 2020 at 23:30 | history | asked | Stephen | CC BY-SA 4.0 |