[issue45437] Assignment to a list of dictionary wrong

2021-10-11 Thread Xin Sheng Zhou
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

[issue28859] os.path.ismount sometimes raises FileNotFoundError on Windows

2020-03-26 Thread Zhu Sheng Li
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

[issue34467] No mechanism to abort created coroutine or suppress not-awaited warning

2018-08-22 Thread Sheng Zhong
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

[issue34159] asyncio basic event loop stuck with no tasks scheduled or ready

2018-07-24 Thread Sheng Zhong
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

[issue34159] asyncio basic event loop stuck with no tasks scheduled or ready

2018-07-19 Thread Sheng Zhong
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

Re: multiprocessing module in async db query

2011-03-09 Thread Sheng
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

multiprocessing module in async db query

2011-03-08 Thread Sheng
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

[issue9187] Can't find file vcvars64.bat

2010-07-07 Thread Lloyd Sheng
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

IDLE python shell freezes after running show() of matplotlib

2009-10-24 Thread Forrest Sheng Bao
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