News for hackers. Stuff that matters.
Re:Python for Humans by skrebbel on Tuesday January 03, 2012 @10:49AM (#3419983)
I like the presentation, but for me it just underlines how it's smart to stay far away from Python. It's great that it's improving, but many other languages have a much better library/API situation than Python has had for years already. Will Python catch up fast enough?
Re:Python for Humans by ak217 on Tuesday January 03, 2012 @11:00AM (#3420033)
It's quite the opposite, actually. Python already has an extremely good and very capable standard library, arguably better than any other language. Python also has a community with a strong sense of what kind of API design best fits with the Python philosophy (which usually boils down to readability and consistency). So there are many efforts going on to improve the standard libraries.

For example, the standard library already has urllib2, which provides HTTP support much better than most other languages' standard libraries. But Requests is a rewrite of it, taking ease of use to a whole new level without compromising any of the features. There is no equivalent in any other language.

Re:Python for Humans by frodwith on Tuesday January 03, 2012 @11:08AM (#3420071)
"There is no equivalent in any other language."

I don't know, LWP is pretty easy to use.

Re:Python for Humans by pbreit on Wednesday January 04, 2012 @12:43AM (#3422966)
Does Perl come with LWP?
Re:Python for Humans by adeelk on Tuesday January 03, 2012 @04:41PM (#3421433)
If Python has a better standard library than the other languages you know, then you should learn some more languages.
Re:Python for Humans by teach on Tuesday January 03, 2012 @05:31PM (#3421619)
Do you have some examples? I thought I knew a fair number of programming languages, and Python's got one of the most comprehensive.

IMO, Python's stdlib beats C++, Ruby, Java, javascript and Perl....

Re:Python for Humans by Silhouette on Wednesday January 04, 2012 @12:45AM (#3422974)
Python's library is comprehensive "on paper".

Vast amounts of it are actually incomplete or outright broken when you try to use it in practice.

The reliable parts of Python's standard library are at a level little beyond C and C++ and far behind Perl/CPAN, Java, .Net and so on.

And even then, as the article we're discussing points out, the APIs aren't actually very good a lot of the time.

Re:Python for Humans by skrebbel on Wednesday January 04, 2012 @04:43AM (#3423452)
Yep, basically my point. But you're formulating it better :-)
Re:Python for Humans by briancurtin on Tuesday January 03, 2012 @01:12PM (#3420617)
> It's great that it's improving, but many other languages have a much better library/API situation than Python has had for years already.

As someone who has spent the last 5.5 years at a job where I didn't need anything but the standard library, I don't agree. What are these other languages that contain a better situation?

Re:Python for Humans by pnathan on Tuesday January 03, 2012 @05:48PM (#3421682)
Well, Perl's CPAN has an uninstall feature. That's kind of nice.
Re:Python for Humans by njharman on Wednesday January 04, 2012 @01:19AM (#3423053)
cpan is very much not a std lib. PyPi is equiv.
Re:Python for Humans by prakashk on Thursday January 05, 2012 @02:11PM (#3430002)
Depends on what your definition of "std lib" is.

If you say a "std lib" is something that is installed along with the language, then CPAN fits the bill.

    $ corelist CPAN

    CPAN was first released with perl 5.004
Re:Python for Humans by kc5tja on Friday January 06, 2012 @04:20PM (#3435086)
That's more of a standard tool, not a standard library. Rather, a library is a collection of reusable components. A Standard Library, then, are pre-equipped collections of reusable components. Here, we define "reusable" as invokable from within the language, as first-class constructs.

Even if CPAN was a standard library, that which you install from it is clearly not, which is what the argument to date has centered around.