New submission from Xin Sheng Zhou :
>>> details = [{}]*4
>>> details
[{}, {}, {}, {}]
>>> details[1]['A']=5
>>> details
[{'A': 5}, {'A': 5}, {'A': 5}, {'A': 5}]
>>>
--
messages: 403679
nosy: xinshengzhou
priority: normal
severity: no
Zhu Sheng Li added the comment:
I submitted a PR and get reviewed by @lazka. Is there anything I should do for
pushing it to next step?
--
___
Python tracker
<https://bugs.python.org/issue28
New submission from Sheng Zhong :
As far as I know, there is no mechanism for aborting a created coroutine
instance before it's executed with an await (directly or indirectly). I have a
function which takes in coroutine instances and conditionally creates a task
for them that I track so
Sheng Zhong added the comment:
Sorry I'm having trouble extracting a bug-producing portion of the code but I
can describe the different components, what I think the problem was, and how I
resolved it.
There is one main coroutine (aka handler) responsible for handling the logic
New submission from Sheng Zhong :
An exception is raised and propagates up the call stack without being consumed
until the asyncio/events.py:_run function. The exception seemingly doesn't get
consumed according to my breakpoint (quite strange and a part of my confusion)
but the task does get
Hi Philip,
multiprocessing.Queue is used to transfer data between processes, how
it could be helpful for solving my problem? Thanks!
Sheng
On Mar 8, 6:34 pm, Philip Semanchuk phi...@semanchuk.com wrote:
On Mar 8, 2011, at 3:25 PM, Sheng wrote:
This looks like a tornado problem, but trust me
This looks like a tornado problem, but trust me, it is almost all
about the mechanism of multiprocessing module.
I borrowed the idea from http://gist.github.com/312676 to implement an
async db query web service using tornado.
p = multiprocessing.Pool(4)
class
New submission from Lloyd Sheng sen...@gmail.com:
While I install Pymongo,Error shows that:
running install
running bdist_egg
running egg_info
writing pymongo.egg-info\PKG-INFO
writing top-level names to pymongo.egg-info\top_level.txt
writing dependency_links to pymongo.egg-info
I am having a weird problem on IDLE. After I plot something using show
() of matplotlib, the python shell prompt in IDLE just freezes that I
cannot enter anything and there is no new prompt show up. I
tried ctrl - C and it didn't work. I have to restart IDLE to use it
again.
My system is Ubuntu