Comments (1)
收集到的一些遗留问题:
Threadpool为什么没有像Java能回收线程?
multiprocessing为什么设计Queue保存元素需要先序列化?
那为什么 python 自带的 queue 在协程里面不加锁各种 get,put 也工作得很好?它是怎么做到的?
namedtuple命名元组的构建中,为什么要显式传入元组名,如Person = namedtuple('Person', 'name age'),函数中的字符串'Person',我觉得是不必要的,底层实现的时候完全可以使用一个uuid保证唯一性,去掉的话更简洁,且没有引发歧义,为什么不这样做呢?难道是推荐使用数据类,这个不维护更新了?
我认为ES2020的链判断运算符和null判断运算符是简化语句的两个好工具,它们的提出也有一段时间了,没有听过python引入它们的计划,为什么?是因为决策者认为这个语法存在一些问题吗?如果是这样,请帮助说明一下这个理由。
为什么只有函数会开栈?而不是任何的block都会开?
为什么Python不像java一样有abstract、interface、enum类型?
为什么Python没有private、protected等访问控制符?
为什么Python没有final或是const一类的最终变量?
Python中异常处理的else块有什么好处?
Python中没有checked异常?
为什么在catch块重新raise异常的时候仍会显示catch的异常?
为什么库函数用import调用?不像C用<*.h>之类的呢
from python-whydo.
Related Issues (16)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-whydo.