Joined June 2012
·
Posted to
python breakpoint one-liner
over 1 year
ago
Good protip.
Rpdb (pdb for remote) and it's inline version is very useful too.
Posted to
Vim: Close a buffer without losing split/window
over 1 year
ago
It's the reverse case. Keep the window but close the buffer.
Posted to
Thank you Ruby 2. You're better than Python.
over 1 year
ago
This is not a design flaw, it's a feature.
For this kind of situation you might consider this:
def foo(arr=None):
if arr is None:
arr = []
arr.append('x')
print(arr)
A little more verbose but still very readable :)
Achievements
607 Karma
60,873 Total ProTip Views
Forked 20
Have an established project that's been forked at least 20 times
Python 3
Have at least three original repos where Python is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Charity
Fork and commit to someone's open source project in need
Python
Would you expect anything less? Have at least one original repo where Python is the dominant language
Desert Locust 3
Have at least three original repos where Erlang is the dominant language
Desert Locust
Have at least one original repo where Erlang is the dominant language
Erlang:
Erlang (recursive approach):