Live data from Hacker News

Python 2.x vs. 3.x use survey

docs.google.com

1–10 of 72 posts

Re: Python 2.x vs. 3.x use survey

#2
Last year a survey was conducted on python 2 and 3 usage.

It sparkled interesting discussions on HN: https://news.ycombinator.com/item?id=6990481 "Python 2.x vs 3.x use survey" https://news.ycombinator.com/item?id=7005711 " Python 2.x vs. 3.x survey results"

Here is the 2014 edition, slightly updated (from 9 to 11 questions). It should not take you more than 1 minute to fill. I would be pleased if you took that time.

The results will be published around the end of the year.

Re: Python 2.x vs. 3.x use survey

#3
post #2

Last year a survey was conducted on python 2 and 3 usage. It sparkled interesting discussions on HN: https://news.ycombinator.com/item?id=6990481 "Python 2.x vs 3.x use survey" https://news.ycombinator.com/item?id=7005711 " Python 2.x vs. 3.x survey results" Here is the 2014 edition, slightly updated (from 9 to 11 questions). It should not take you more than 1 minute to fill. I would be pleased if you took that time.…

Can I sign up for something to see when the results are released?

Re: Python 2.x vs. 3.x use survey

#4
This reminds me of a Flask mini project I did. I was doing it in Ubuntu (LTS if I'm not mistaken). I picked python3 and ran with it. As I tried to use Python's virtualenv (venv), I went down the rabbit hole of a broken mess that was left in Ubuntu. I just reinstalled Ubuntu this week so I might give it another shot, but every time I try to do something with Python I end up with a broken mess, and that's disheartening

Re: Python 2.x vs. 3.x use survey

#6
post #2

Last year a survey was conducted on python 2 and 3 usage. It sparkled interesting discussions on HN: https://news.ycombinator.com/item?id=6990481 "Python 2.x vs 3.x use survey" https://news.ycombinator.com/item?id=7005711 " Python 2.x vs. 3.x survey results" Here is the 2014 edition, slightly updated (from 9 to 11 questions). It should not take you more than 1 minute to fill. I would be pleased if you took that time.…

Where will the results be published?

Re: Python 2.x vs. 3.x use survey

#7

This reminds me of a Flask mini project I did. I was doing it in Ubuntu (LTS if I'm not mistaken). I picked python3 and ran with it. As I tried to use Python's virtualenv (venv), I went down the rabbit hole of a broken mess that was left in Ubuntu. I just reinstalled Ubuntu this week so I might give it another shot, but every time I try to do something with Python I end up with a broken mess, and that's disheartening

You could use Docker, that way your host Ubuntu is kept clean.

docker pull python:2.7

docker pull python:3

For more granular tags: https://registry.hub.docker.com/_/python/

Re: Python 2.x vs. 3.x use survey

#8
That's a useless survey. Answers by random people aren't particularly useful. It doesn't reflect how much of a Python code base one is responsible for. Analysis of major code bases written in Python would be more useful.

Re: Python 2.x vs. 3.x use survey

#9
I was super turned off of Python 3 when it came out and I promptly tried it and ran

open("/dev/urandom").read(20)

and was confronted with

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 2: invalid start byte

If I had realized at the time that this error would be averted with

open("/dev/urandom", "rb").read(20)

I might have felt more charitable and less shocked (although I can see in retrospect that there's quite a good reason for this error, I might have preferred for the default file type to be binary -- presumably something that was debated extensively inside the Python 3 development effort).

Re: Python 2.x vs. 3.x use survey

#10
post #7

This reminds me of a Flask mini project I did. I was doing it in Ubuntu (LTS if I'm not mistaken). I picked python3 and ran with it. As I tried to use Python's virtualenv (venv), I went down the rabbit hole of a broken mess that was left in Ubuntu. I just reinstalled Ubuntu this week so I might give it another shot, but every time I try to do something with Python I end up with a broken mess, and that's disheartening

You could use Docker, that way your host Ubuntu is kept clean. docker pull python:2.7 docker pull python:3 For more granular tags: https://registry.hub.docker.com/_/python/

I think the problem that is being had is Ubuntu packages. Which Docker in and of itself won't solve. All it will do is isolate packages from the rest of the OS. Which python is fairly generic, and building your own python libraries, and gutting python packages from Ubuntu will have the same affect.

Either way you are hand installing a lot of packages.

Post reply on HN