News for hackers. Stuff that matters.
Re:Unpythonic Python by mmagin on Wednesday April 09, 2014 @08:50PM (#7563561)
Doesn't even touch on my personal pet peeve, people who don't use list and dict literals. I assume they're former Java programmers who got ahold of enough python knowledge to be dangerous. e.g:

  x = dict()
  x['a'] = 'string'
  x['b'] = list()
  x['b'].append('foo')
  x['b'].append('bar')
Re:Unpythonic Python by prescindor on Thursday April 10, 2014 @03:04AM (#7564573)
You can say

    x = dict(a = 'string', b = list(('foo', 'bar')))
Re:Unpythonic Python by codygman on Wednesday April 09, 2014 @11:47PM (#7564057)
Literals are much more readable in any language I've used (or at least can think of right now).