Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fnord123
on Dec 18, 2020
|
parent
|
context
|
favorite
| on:
Python at Scale: Strict Modules
This will break other tests because there is no logic here for reverting SomeClass back to it's previous behaviour. Use the patch function as a decorator or as a context.
ipsum2
on Dec 18, 2020
[–]
Yes, this is an
anti-pattern
, not an example of a useful piece of code :)
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: