Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are some drawbacks of the Python language?
Home
Python
What are some drawbacks of the Python language?
0
votes
asked
Jan 3
in
Python
by
DavidAnderson
What are some drawbacks of the Python language?
python-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 3
by
DavidAnderson
The two most common valid answers to this question (by no means intended as an exhaustive list) are:
The Global Interpreter Lock (GIL). CPython (the most common Python implementation) is not fully thread safe. In order to support multi-threaded Python programs, CPython provides a global lock that must be held by the current thread before it can safely access Python objects. As a result, no matter how many threads or processors are present, only one thread is ever being executed at any given time. In comparison, it is worth noting that the PyPy implementation discussed earlier in this article provides a stackless mode that supports micro-threads for massive concurrency.
Execution speed. Python can be slower than compiled languages since it is interpreted. (Well, sort of. See our earlier discussion on this topic.)
Related questions
0
votes
Q: What are immutable objects in Python?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
+1
vote
Q: What are the different file processing modes supported by Python?
asked
Feb 14, 2021
in
Python
by
SakshiSharma
#python-modes
processing-modes
python
modes
python-questions-answers
0
votes
Q: What is the difference between range and xrange functions in Python 2.X?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
0
votes
Q: What is the python “with” statement designed for?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
0
votes
Q: Why would you use the "pass" statement in Python?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
0
votes
Q: How do I modify a string in Python?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
+1
vote
Q: How to remove leading whitespaces from a string in the Python?
asked
Feb 14, 2021
in
Python
by
SakshiSharma
#python-remove-space
remove-space
remove-blank
python-string-remove-space
string-remove-space
python-questions-answers
0
votes
Q: What does this stuff mean: *args, **kwargs? And why would we use it?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
0
votes
Q: Explain the UnboundLocalError exception and how to avoid it?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
0
votes
Q: What is monkey patching and is it ever a good idea?
asked
Jan 3
in
Python
by
DavidAnderson
python-questions-answers
...