Evil Python Tips
@EvilPythonTips
Parody account run by @mgedmin
Dołączył w Luty 2014
Może Ci się spodobać
Evil Python Tips podał dalej
# 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 Trendy
- 1. Nicki Minaj 49.8K posts
- 2. Browns 26.5K posts
- 3. Chase Brown 2,143 posts
- 4. Bucs 6,493 posts
- 5. James Cook 4,923 posts
- 6. Bryce Young 2,531 posts
- 7. Judkins 5,759 posts
- 8. JJ McCarthy 2,580 posts
- 9. Ewers 4,977 posts
- 10. #KeepPounding 2,424 posts
- 11. #BillsMafia 6,542 posts
- 12. Titans 14.2K posts
- 13. Jaxson Dart 2,137 posts
- 14. #DawgPound 2,417 posts
- 15. #Skol 1,793 posts
- 16. Abdul Carter N/A
- 17. Myles Garrett 1,796 posts
- 18. Theo Johnson N/A
- 19. Sean Tucker N/A
- 20. Kenneth Murray N/A
Może Ci się spodobać
Loading...
Something went wrong.
Something went wrong.