New submission from Guo :
from statsmodels.tsa.stattools import adfuller
adf = adfuller(x, regression=‘c’, autolag=‘t-stat’)
Sometimes comes error message:
UnboundLocalError: local variable ‘bestlag’ referenced before assignment
I found the reason: when using t-stat, bestlag is only assigned
New submission from Guo Xiyong :
code like this:
import asyncio
import time
import threading
def sync_test():
time.sleep(1)
async def run_test():
loop = asyncio.get_event_loop()
for _ in range(10):
# r = await loop.getaddrinfo('wq.io', 443)
#
New submission from Senhui Guo :
I was trying to build a c extension with cpython while it keeps crashing when I
get it running, the code is quite simple:
```cpp
#include "Python.h"
int main ()
{
PyObject *p;
p = PySet_New(NULL);
}
```
I build with command `clang
-I/usr/lo
New submission from Lisa Guo :
https://bugs.python.org/issue27906 describes a situation where accept rate of
connection is too slow for use cases where spikes of incoming connection
warrants fast accept. The fix for that was to accept socket connection in a
tight loop until it reaches
Lisa Guo added the comment:
One rough idea would be like this:
https://github.com/python/cpython/compare/master...lguo2020:fix-issue-33811?expand=1.
Another option is to associate it with the loop:
loop.set_max_accept(2)
and then later
self._loop._start_serving(., max_accept=self
New submission from Lisa Guo :
I'd like to re-open the discussion on pause_server/resume_server that's been
discussed here:
https://groups.google.com/forum/?utm_source=digest&utm_medium=email#!topic/python-tulip/btGHbh5kUUM
with PR:
https://github.com/python/asyncio/pull/448
Lisa Guo added the comment:
Hi Yury, no, I'm not familiar with the other frameworks (libuv doesn't have
this). I'll need to look into it. If anybody else knows, please comment as well.
--
___
Python tracker
<https://bugs.pyt
Change by Yiwei Guo :
--
components: Tests
nosy: qq100460045
priority: normal
severity: normal
status: open
title: Fail to get a right answer for 1.2%0.2
type: compile error
versions: Python 3.6
___
Python tracker
<https://bugs.python.
New submission from Yiwei Guo :
the answer of 1.2%0.2 should be zero
--
___
Python tracker
<https://bugs.python.org/issue34337>
___
___
Python-bugs-list mailin
New submission from guo tie:
I wrote those test python code as following:
import signal
import time
import os
def handler(signum, frame):
print "do whatever, like call thread.interrupt_main()"
return
signal.signal(signal.SIGINT, handler)
while 1:
try:
tim
Yuyang Guo added the comment:
Made change based on Terry J. Reedy's suggestion
--
keywords: +patch
nosy: +Yuyang.Guo
Added file: http://bugs.python.org/file35516/issue21548.patch
___
Python tracker
<http://bugs.python.org/is
Brian Guo added the comment:
Hi,
I agree with your observation about the unnecessarily complicated
documentation. I feel that there is not a real necessity to include an example
that uses (metavar='N', nargs='+') or even (const='sum', default='max') in
New submission from Guo, Jiahua:
$ python3.5-dbg crash.py
python3.5-dbg: ../Modules/gcmodule.c:364: update_refs: Assertion
`((gc)->gc.gc_refs >> (1)) != 0' failed.
$ python3.5-dbg crash-multithread.py
python3.5-dbg: ../Modules/gcmodule.c:364: update_refs: Assertion
`((gc)->
Changes by Guo Jiahua :
--
nosy: +Guo Jiahua
___
Python tracker
<http://bugs.python.org/issue26617>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brian Guo added the comment:
>From the datetime documentation of astimezone():
https://docs.python.org/3.5/library/datetime.html#datetime.datetime.astimezone :
'If called without arguments (or with tz=None) the system local timezone is
assumed. The tzinfo attribute of the converted
Changes by Guo, Jiahua :
Added file: http://bugs.python.org/file42892/patch
___
Python tracker
<http://bugs.python.org/issue26617>
___
___
Python-bugs-list mailin
JIahua Guo added the comment:
Hi asvetlov, debug mode of python interpreter should be enabled to reproduce
this bug, cause assertion is disabled in release mode.
(https://hg.python.org/cpython/file/104259/Modules/gcmodule.c#l365)
One environment that can reproduce this bug:
$ cat /etc/issue
New submission from Guo Ci Teo :
replace unnecessary use of `io.IncrementalNewlineDecoder` in code.
Some uses of the `decode` method were also incorrect without the `final=True`
argument.
--
messages: 409235
nosy: guoci
priority: normal
severity: normal
status: open
title: replace
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +28491
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30276
___
Python tracker
<https://bugs.python.org/issu
Guo Ci Teo added the comment:
In any case, the use of an incremental newline decoder is not required
--
___
Python tracker
<https://bugs.python.org/issue46
New submission from Guo Ci Teo :
add documentation for
`io.IncrementalNewlineDecoder`
`io.TextIOWrapper`
`io.StringIO`,
listing various ways to decode newlines
--
messages: 409388
nosy: guoci
priority: normal
severity: normal
status: open
title: add documentation for decoding newlines
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +28521
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30308
___
Python tracker
<https://bugs.python.org/issu
Guo Ci Teo added the comment:
Some uses of the `decode` method of `io.IncrementalNewlineDecoder` were
incorrect without the `final=True` argument.
One way to fix it would be to add the `final=True` in all cases.
But the incremental decoding feature is not used, so I decided to replace it
Guo Ci Teo added the comment:
The old code has an incorrect usage of `io.IncrementalNewlineDecoder`. Since
the `decode` method is called only once, is it the final call and needs the
`final=True` argument as documented in
https://docs.python.org/dev/library/codecs.html
Guo Ci Teo added the comment:
`os.sched_getaffinity` is only available on some Unix platforms, as documented
in
https://docs.python.org/dev/library/os.html#interface-to-the-scheduler
For example, on Windows we will get the error:
AttributeError: module 'os' has no attribute 'sc
Change by Guo Ci Teo :
--
assignee: docs@python
components: Documentation
nosy: docs@python, guoci
priority: normal
severity: normal
status: open
title: add platform availabity information for os.sched_getaffinity
type: enhancement
versions: Python 3.10, Python 3.6, Python 3.7, Python
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +24185
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25459
___
Python tracker
<https://bugs.python.org/issu
New submission from Guo Ci Teo :
`types.MappingProxyType` is documented as 'Read-only proxy of a mapping'.
But if used with a `collections.defaultdict` mapping, it can modify the
underlying mapping.
```
import collections, types
dd = collections.defaultdict(set)
mpt = types.MappingPr
Change by Guo Ci Teo :
--
components: Library (Lib)
nosy: guoci
priority: normal
severity: normal
status: open
title: Fix col_offset for ast nodes: AsyncFor, AsyncFunctionDef, AsyncWith
versions: Python 3.5, Python 3.6, Python 3.7
___
Python tracker
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +4143
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue31902>
___
___
Python-
Change by Guo Ci Teo :
--
pull_requests: +4144
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue29205>
___
___
Python-bugs-list mai
New submission from Guo Ci Teo :
Currently, the `subprocess.Popen` function allows for path-like objects in the
argument list for POSIX but not in Windows.
This PR makes Windows' `subprocess.Popen` accept path-like objects in the
argument list.
--
components: Library (Lib)
mes
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +8760
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34699>
___
___
Python-
Change by Guo Ci Teo :
--
title: allows path-like objects in program arguments in Windows -> allow
path-like objects in program arguments in Windows
___
Python tracker
<https://bugs.python.org/issu
New submission from Guo Ci Teo :
With the `mtime` argument, the output from `gzip.compress` can be reproducible.
--
components: Library (Lib)
messages: 327088
nosy: guoci
priority: normal
severity: normal
status: open
title: add mtime argument to gzip.compress
versions: Python 3.6
Change by Guo Ci Teo :
--
keywords: +patch
pull_requests: +9089
stage: -> patch review
___
Python tracker
<https://bugs.python.org/issue34898>
___
___
Python-
New submission from Guo Ci Teo:
The attached patch enables the unparse.py tool to unparse dictionary unpacking
operators (**) in a dict expression, for example,
{**{'y': 2}, 'x': 1}
, as described in PEP 0448.
--
components: Demos and Tools
files: unpack_in_dict.p
37 matches
Mail list logo