News for hackers. Stuff that matters.
Re:Pandas dropping Python 2 support by marcosdumay on Thursday January 03, 2019 @01:27PM (#18817630)
Well, I shrug imagining what millions of lines of Python looks like.

I can't think of any open Python project with that size, and I can't imagine an organization maintaining one. And I can easily agree that such project won't migrate from Python 2 to 3 in a year. It won't migrate in a decade either, or in a century.

Re:Pandas dropping Python 2 support by hermitdev on Thursday January 03, 2019 @01:46PM (#18817874)
At a previous employer, I left behind maybe not millions of lines of Python 2 code, but certainly somewhere in the hundreds of thousands range. There was also a fair amount of reliance on 3rd party libs for databases, IBM MQ and tibrv that had native components. We also had our own Python libs that had native components written using Boost Python.

Large Python projects are possible, but if you don't have good discipline and organization, it can quickly become a mess (probably true regardless of the language).

I'm not sure how much effort it'd be to migrate all of that to Python 3, but I'm sure it's not trivial. But, I also don't think it'd be a multi year effort. It also wasn't a big monolithic project, so a migration could be done piecemeal.

Re:Pandas dropping Python 2 support by eesmith on Thursday January 03, 2019 @05:07PM (#18819802)
You made me curious so I looked around. I couldn't easily find an open Python project with 1M+ LOC.

Python 3.7 has 542,292 lines of Python, according to David A. Wheeler's 'SLOCCount' . And another 418,581 lines of C.

NumPy has 159,208 lines of C and 113,842 of Python.

SciPy has 174,580 lines of Python, 83,155 of C, and 79,514 of Fortran.

Pandas has 225,417 lines of Python.

Put them all together and that's 1M lines of Python to run the standard Python data stack.

Re:Pandas dropping Python 2 support by AnonymousPlanet on Thursday January 03, 2019 @06:15PM (#18820324)
I wasn't talking hypothetical, I was talking out of my own experience. Yes, these codebases exist and, yes, maintenance isn't easy, especially because of dynamic typing.
Re:Pandas dropping Python 2 support by jakevn on Friday January 04, 2019 @12:48PM (#18826006)
OpenStack has millions of lines of Python, I believe.