Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Great post. A point I want to emphasize is that learning py2.7 is learning Python 3, if you are careful to pay attention to the recommended/pythonic way of doing things.

For the most part Python 3 removes syntax and functionality that was long-since depreciated or at least strongly advised against.



Perhaps, but the lack of bytestrings seems to be what bites everyone. It's the only "deep" change and it affects anyone who wants to slice raw bytes (which includes most web frameworks).


Python 3 has bytestrings. They look like this:

  b'foo'
And you can slice them up as you wish.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: