Advertisement
gr4viton

pyth00n optim #1

Oct 22nd, 2014
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. tgs_lists = ["book:'title:'author:'note:'recomender:'genre:'language:'done:aws'omness:'wanna",
  2. "watch:'name:'author:'note:'recomender:'genre:'language:'done:aws'omness:'wanna"]
  3.  
  4. #this part here is where the split is called twice..      
  5. tgs = { list.split(ch['columns'])[0]:list.split(ch['columns'])[1:]
  6.                 for list in tgs_lists if list.strip() not in ("") }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement