Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dom0
on Dec 22, 2016
|
parent
|
context
|
favorite
| on:
Top Python libraries of 2016
> won't there be problem down the line with the GIL?
If you want
parallelism
in
pure
Python code, you don't use multiple threads.
xapata
on Dec 22, 2016
[–]
Unless you're on Jython or the parallelism is for I/O.
dom0
on Dec 22, 2016
|
parent
[–]
I/O isn't pure code.
xapata
on Dec 22, 2016
|
root
|
parent
[–]
That's certainly one way to interpret "pure Python" but many people use that phrase to describe code that is using only builtins and standard library as opposed to community-supplied C extensions.
dom0
on Dec 22, 2016
|
root
|
parent
[–]
I honestly disagree, but I do recognize how one could see it that way.
xapata
on Dec 23, 2016
|
root
|
parent
[–]
Yeah, it's a bit of a leaky abstraction since many modules in the standard library are implemented in C. And the interpreter itself.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
If you want parallelism in pure Python code, you don't use multiple threads.