Evil Python Tips
@EvilPythonTips
Parody account run by @mgedmin
Iscritto a Febbraio 2014
Potrebbero piacerti
Repost di Evil Python Tips
# Sometimes braces work in Python 3 # (don't actually do this) if (True):{ print("do a thing") } else:{ print("do another thing") }
3
9
15
0
0
assert (condition, message) lets you wrap the assertion over two lines without using those ugly backslashes!
1
3
0
1
0
Have your custom __repr__ return an empty string sometimes. AssertionError: [] != [] will keep developers on their toes!
0
0
0
0
0
self.globs = self.__dict__ lets you re-use a doctest setUp() function in a unittest.TestCase.
0
0
0
0
0
United States Tendenze
- 1. James Cook 4,586 posts
- 2. Nicki Minaj 31.7K posts
- 3. Judkins 4,983 posts
- 4. #Browns 3,040 posts
- 5. Abdul Carter N/A
- 6. #KeepPounding 1,971 posts
- 7. Theo Johnson N/A
- 8. Brian Burns N/A
- 9. #DawgPound 2,117 posts
- 10. Mason Graham N/A
- 11. Jaxson Dart 1,734 posts
- 12. McCarthy 6,050 posts
- 13. #Skol 1,533 posts
- 14. Yoro 25.5K posts
- 15. Addison 4,307 posts
- 16. Mike Evans 2,297 posts
- 17. Ewers 3,798 posts
- 18. TMac 1,026 posts
- 19. Pickens 3,798 posts
- 20. Grizzard N/A
Potrebbero piacerti
Loading...
Something went wrong.
Something went wrong.