Python全局解释锁英文翻译10
发布于 2021-08-04 16:28 ,所属分类:知识学习综合资讯
"Python全局解释锁英文翻译10"
A lot of extensions were being written for the existing C libraries whose features were needed in Python. To prevent inconsistent changes, these C extensions required a thread-safe memory management which the GIL provided.
此段有两句话, 咱们分开解析
第一句:
A lot of extensions were being written for the existing C libraries whose features were needed in Python.
01
找连词
whose
02
找谓语动词
were,were
03
画出连词(黄色), 谓语动词(红色), 介词(蓝色)
A lot of extensions were being written for the existing C libraries whose features were needed in Python.
04
句型分析
1、主句结构为:主系表.
2、whose引导的同位语从句, 来解释前面的C libraries
05
参考翻译
人们正在为Python所需要的功能编写许多C扩展.
第二句:
To prevent inconsistent changes, these C extensions required a thread-safe memory management which the GIL provided.
01
找连词
which
02
找谓语动词
required, provided
03
画出连词(黄色), 谓语动词(红色), 介词(蓝色)
To prevent inconsistent changes, these C extensions required a thread-safe memory management which the GIL provided.
04
句型分析
1、To这里作为引导目的状语从句.
2、主句为these C .....到management,标准的主谓宾结构.
3、宾语从句中嵌套了一个which引导的同位语从句.
4、which引导的同位语从句解释前面的thread-safe memory management.
05
参考翻译
为了阻止不一致的更改,这些C语言扩展必须由GIL提供线程安全内存管理.
06
整段参考翻译
人们正在为Python所需要的功能编写许多C扩展.为了阻止不一致的更改,这些C语言扩展必须由GIL提供线程安全内存管理.
如果喜欢本文请:
相关资源