Advertisement
zcutlip

initializing premade objects in bpython

Dec 7th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. (0) $ cat ~/.dotfiles/bpython/init.py
  2. mydict = {"foo": 1, "bar": 2}
  3. mylist = [1, 2, 3, 4, 5]
  4. -==< zach@endor:~ >==-
  5. (0) $ alias bpython
  6. alias bpython='bpython -i $DOTFILES/bpython/init.py'
  7. -==< zach@endor:~ >==-
  8. (0) $ bpython
  9. bpython version 0.17.1 on top of Python 2.7.10 /usr/bin/python
  10. >>> mylist
  11. [1, 2, 3, 4, 5]
  12. >>> mydict
  13. {'foo': 1, 'bar': 2}
  14. >>>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement