Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is it in Java standard library that Python's lacks?

Tags:

java

python

I hear that the Java standard library is larger than that of Python. That makes me curious about what is missing in Python's?

like image 856
tshepang Avatar asked Apr 22 '10 10:04

tshepang


People also ask

What is Python's standard library?

The Python Standard Library is a collection of script modules accessible to a Python program to simplify the programming process and removing the need to rewrite commonly used commands. They can be used by 'calling/importing' them at the beginning of a script.

What does standard library contain?

A standard library will have functions to access the file system and perform input/output operations; functions that deal with the data types of the language; functions that allow memory allocation and manipulation; functions that enable multithreaded programming; functions to handle date and time; common math ...

What are difference of java and python in terms of operators?

Java is a statically typed and compiled language, and Python is a dynamically typed and interpreted language. This single difference makes Java faster at runtime and easier to debug, but Python is easier to use and easier to read.

What is the meaning of standard library?

In computer programming, a standard library is the library made available across implementations of a programming language.


3 Answers

The one flaw in Python imho is that Python lacks one real canonical method of deployment. (Yes there are good ones out there, but nothing that's really rock solid).

Which can hamper its adoption in some Enterprise environments.

like image 77
zenWeasel Avatar answered Sep 28 '22 10:09

zenWeasel


Java provides a lot of varied implementations of interfaces for the basic types. Java has an ArrayList and single-linked-list and double-linked list, whereas Python just has a list. Java includes multiple Map implementations such as TreeMap or LinkedHashMap, whereas Python generally sticks to the single dict implementation. An ordered dictionary was proposed is now part of Python 3.1, but in general, Java has a richer set of collections and base classes.

In defense of Python, however, the need for more rigorously defined base classes and interfaces is much less necessary with the dynamically-typed approach (where interfaces are often accepted implicitly).

like image 36
Jason R. Coombs Avatar answered Sep 28 '22 10:09

Jason R. Coombs


Python also comes With Batteries Included... The only place where I've felt Python lacking is a good GUI toolkit (no, TK doesn't compare to Swing xD).

like image 38
fortran Avatar answered Sep 28 '22 10:09

fortran