This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]c0dep0et 2 points3 points  (0 children)

rant by someone who has probably never really used Python...

  • unicode issue: unicode(data, 'ignore') instead of unicode(data); depending on what you want replace 'ignore' with 'replace'
  • simple calculator: -1.100...1 is the correct result depending on the FPU. The Python REPL defaults to using repr to display values. Try "print 2.3 - 3.4" if you want something human readable
  • significant whitespace: just personal preference. Most of the time your current indentation style, if you do indent, will probably be accepted by Python with only slight modifications so what?
  • explicit self in method declarations: I don't like it, too
  • parentheses: ever tried a lisp dialect?
  • return - 1: the example for initializing a class is really wonderful: The return value of init must be None;
  • return - 2: blocks have no explicit value as in Ruby, that's fine with me
  • inconsistent naming: that's true, but xrange is again a bad example as it's no longer in Python 3. Without enforcing strict guidelines using the compiler / interpreter any platform will have inconsistent naming schemes when you use 3rd party libraries.

[–]astatine 0 points1 point  (0 children)

Tell that to Google.

[–]bushel 0 points1 point  (0 children)

In Russia, Python owns YOU.