Louie Lu added the comment:
Both test_asyncio & test_multiprocessing_forkserver passed on latest 3.6 and
4.8.3-1-ARCH.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.o
Louie Lu added the comment:
Raymond: comment has changed, pushed on to GitHub.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
Ping. Is there any reason why this patch doesn't accept?
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/
Louie Lu added the comment:
What is the different of Cold start and Hot start? It that CPU speed or
something else.
In Linux 4.9.11 with i7-2k, I can't reproduce the significant real time you
gave:
# CPU gov powersave
$ time ./python -c 'import webbrowser'
0.16s user 0.02s system 93% cpu
New submission from Louie Lu:
For this situation, check boundary error message didn't correctly show out.
>>> import struct
>>> import ctypes
>>> byte_list = ctypes.create_string_buffer(1)
>>> struct.pack_into('b', byte_list, 5, 1)
Traceback (most
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +262
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue23578>
___
__
Louie Lu added the comment:
Adding PyErr_SetString and PyErr_Format wrapper, with a global offset
variable to handle this.
struct.pack('!h', 0x8)
Traceback (most recent call last):
File "tests.py", line 5, in
struct.pack('!h', 0x8)
struct.error: Raise at offset 1,
Louie Lu added the comment:
> 1. Using global variable doesn't look good to me.
That's true, but I'm not sure if there have other methods to do this.
If not using global variable, we will need to change a bunch of the
function arguments. Since the arguments didn't contain the
information ab
Louie Lu added the comment:
giampaolo: it seems that contextmanager will somehow make a bad return in
`trace_dispatch_return`:
$ ./python tests.py
# logging.fatal('%r %r' % (frame.f_code.co_name, self.cur[-3]))
CRITICAL:root:'runblock' '' ('profile', 0, '')
CRITICAL:root:'__enter__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +257
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9285>
___
__
New submission from Louie Lu:
There is a XXX in v3.5.0 shows that need to dealing with deque maxlen setting
case in deque_repeat.
Although there have common case for deque size 1 with maxlen, other size of
deque with maxlen still using for-loop to extend the deque, without any
detection
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +223
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29634>
___
__
Louie Lu added the comment:
Serhiy: yes, your advice is better than checking inside the loop.
I have updated this to the commit, thanks!
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
I can reproduce the problem in Python 3.7.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
Could it be the problem from readline?
Using python 2 with readline trigger same behavior.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
Sorry, but I can't reproduce at 3.7, 3.5, or 2.7.
the result shows me that inspect does respect comment line.
➜ cpython git:(350) ✗ ./python /tmp/main.py
2
(['# First line\n', 'import inspect\n', 'frame = inspect.currentframe()\n',
'print
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +767
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29927>
___
__
Louie Lu added the comment:
It seems somehow the patch at #3295 make the mistake, commit faa54a39295 at
2007-08-19 add the PRE_INIT(BufferError) and POST_INIT(BufferError), but in
#3295 `buffererror.patch` didn't saw it.
--
nosy: +louielu
Louie Lu added the comment:
The document here says:
https://docs.python.org/3/library/ipaddress.html#interface-objects
""IPv4Interface is a subclass of IPv4Address""
trying with:
>>> ipaddress.IPv4Address(('192.168.128.0', '255.255.255.0'))
Traceback (most recen
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +722
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29890>
___
__
Louie Lu added the comment:
Eric: I made the patch, reference to which IPv*Network dealing with tuple.
Should I also add the unittest for it?
Also, can you help me code review this, thanks.
--
___
Python tracker <rep...@bugs.python.org>
Louie Lu added the comment:
Add unittest. Since IPv6 do not support prefix netmask (':ff00::'), it have
only test like this:
>>> a = ipaddress.ip_interface(('dead:beaf::', '32'))
>>> b = ipaddress.ip_interface('dead:beaf::/32')
&
Louie Lu added the comment:
I can reproduce on ArchLinux 4.10.1-1, GCC 6.3.1:
/home/louielu/Python/cpython/Modules/mathmodule.c:74:21: warning: ‘sqrtpi’
defined but not used [-Wunused-const-variable=]
static const double sqrtpi = 1.772453850905516027298167483341145182798;
Is used
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +808
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29946>
___
__
Louie Lu added the comment:
I can now only test on Python3.6, providing much meaningful sentence,
still trying to use perf on cpython master branch.
---
$ python -m perf timeit -s 's="一件乒乓事事亏, 不乏串連产業, 万丈一争今为举, 其乎哀哉"*1000' --
Louie Lu added the comment:
Actually, _Stream does provide seek method, should the seekable just return
True?
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
Add a note block under Py*_FromFormat in unicode.rst and bytes.rst.
Could Xiang or Terry help to review? Thanks.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +787
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28415>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29981>
___
___
Python
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1170
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29981>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29446>
___
___
Python
New submission from Louie Lu:
Using gcc-6.3.1 20170306 on Linux 4.10.1, it gave the warning:
gcc -pthread -c -Wno-unused-result -Wsign-compare -g -Og -Wall
-Wstrict-prototypes-std=c99 -Wextra -Wno-unused-result
-Wno-unused-parameter -Wno-missing-field-initializers
-Werror=implicit
Changes by Louie Lu <m...@louie.lu>:
--
title: Compiling warning in Modules/posixmodule.c -> Compiler warning in
Modules/posixmodule.c
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1184
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30013>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
versions: +Python 3.7
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25828>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
versions: +Python 3.7
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue24076>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1221
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25828>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
title: sum() several times slower on Python 3 -> sum() several times slower on
Python 3 64-bit
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29881>
___
___
Python
Louie Lu added the comment:
Inada's patch version act different inside `PyObject_SetItem`,
when running this code: 'x = {}; x['a'] = 123'
at PyObject_SetItem,
patch version goes to this line:
>│179 if (m && m->mp_ass_subscript)
│180 return m->mp_ass
Louie Lu added the comment:
forgive my words, I trace the wrong code, sorry about that.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
I'm testing[1] that if we make a fast path that detect if keys is
`empty_keys_struct` inside `dictresize`. It can be faster than original patch,
but still slower than default (unpatch) in most case.
➜ cpython git:(compact_empty_dict) ✗ ./python.default -m perf
Louie Lu added the comment:
I think this patch make the behavior changed.
Documentation wrote that: "If create is True, the mailbox is created if it does
not exist.", the current version did that exactly, it won't create subdir (tmp,
new, and cur) when dir exists.
The situation
Louie Lu added the comment:
I make some review at GitHub.
Do David and Terry suggest to also fix the problem about PEP8 coding style,
since this demo have many places didn't fit PEP8.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.
Louie Lu added the comment:
Add a simple line to `MAIN_EXAMPLES`:
"%(prog)s path/to/test_file.py - run tests from test_file.py"
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.py
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1306
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30078>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1350
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30118>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1335
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9285>
___
__
New submission from Louie Lu:
This is a sub-problem of #9285, in #9285, we aim to provide cProfile and
profile a context manager, this will need to add code like this:
def __enter__(self):
self.set_cmd('')
sys.setprofile(self.dispatcher)
return self
Unfortunately
Louie Lu added the comment:
Please don't click the link, Google chrome return a security error
"""
Attackers on www.arqja.com may trick you into doing something dangerous like
installing software or revealing your personal information (for example,
passwords, phone numbers,
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21150>
___
___
Python
Louie Lu added the comment:
bad news, somehow the output of std.err and std.out have different between
optparse and argparse, even if the test is done, it still need to convert some
testcase to argparse compatible.
--
nosy: +louielu
___
Python
New submission from Louie Lu:
Serhiy provide a cProfile / profile CLI optparse to argparse patch in #18971,
it is time to add up the unittest of CLI test.
I'll add the unittest these days for it.
--
components: Library (Lib)
messages: 291981
nosy: louielu, serhiy.storchaka
priority
Louie Lu added the comment:
haypo, murray, thanks for pointing this thing, I will let go about the bad
message test, move to output file and sort test tomorrow, also add a new issue:
#30118
--
___
Python tracker <rep...@bugs.python.org>
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1334
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30113>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1288
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19184>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1289
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28698>
___
__
Louie Lu added the comment:
Pavlo, you are right, making the argument have backward compatible is good.
String quote I'll prefer `'` more than `"`.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1300
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14102>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
components: +Build -Interpreter Core
type: compile error ->
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Louie Lu added the comment:
Are you using Ubuntu or other Linux distribution? This problem is because you
didn't install the dependency package.
You may first try to use the instruction at devguide:
http://cpython-devguide.readthedocs.io/setup.html#build-dependencies
Or, assume you have
Louie Lu added the comment:
> How to use this feature?
> argparse is executed every time when the end user runs the program.
> But generating a man page is the action that should be executed at
> develop or build stage.
> ...
> How generating a man page should be invoked?
Louie Lu added the comment:
Attachment is the poc of generating man page via `print_manpage`:
$ ./python poc_2.py > output && man ./output
--
Added file: http://bugs.python.org/file46812/poc_2.py
___
Python tracker <rep...@bugs.pyt
Louie Lu added the comment:
Sorry that I didn't figure out what you said in the previous msg.
> provide a command-line interface for an end user
I add a parameter that developer can switch command line option for man page,
if the option is on, user can do this:
./python foo.py --manp
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1332
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21150>
___
__
Louie Lu added the comment:
Also, `print_manpage` use the same infra as `print_help` and `print_usage`, so
it can use the parameter `file` to output to different stream or file.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Louie Lu added the comment:
Thanks, Nick. Your analysis is very helpful.
After some testing, I found the problem here is because when we using
`sys.setprofile` in the helper function, we didn't simulate the call (from
where profiler create to helper function), that cause profile's frame link
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1368
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30113>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +1367
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18576>
___
__
Louie Lu added the comment:
The PR on GitHub is based on bobcatfist's patch, addressed on Martin request
and some minor change.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
If this issue is closed by "not a big performance improvement", maybe the XXX
in mathmoudle.c should be take off?
"""
/* XXX: This routine does more or less the same thing as
* bits_in_digit() in Objects/longobject.c. Someday it would
New submission from Louie Lu:
`test.support.script_helper` didn't document at `test` document.
It should be add on.
--
assignee: docs@python
components: Documentation
messages: 292103
nosy: docs@python, louielu
priority: normal
severity: normal
status: open
title: Add
Louie Lu added the comment:
Giampaolo, the assertion is still worked good, and no need to remove them. The
assertion is to prevent dispatch return too more, to return upper then when the
profiler was created.
The problem why profile __enter__ can't work, is because it misses
Louie Lu added the comment:
Mariatta, is there any movement on this issue?
Thanks!
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
If we can solve #30118 for argument unittest, and apply #18971 for optparse to
argparse, this issue will then can be solve, too.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25794>
___
___
Python
Louie Lu added the comment:
Hi all, I've created a PR for this, please help for code review.
I found that previous method from Oz had a problem, that man page and general
help page will share a Formatter, that cause an unexpected behavior that help
page will generate with troff format (Unix
Louie Lu added the comment:
This may relate to #31050, I would like to propose to change the name `GenTab`
to `GeneralTab`. `GenTab` is ambiguous to `GenerateTab` in the first glimpse.
How do you think, Terry and Cheryl ?
--
___
Python tracker <
Louie Lu added the comment:
I don't like the name "gentab". There is a "genobject.c" in source code but
stand for "generator object". In the code, both docstring and the name didn't
mention "General", it only mention at `note.add(self.genpage, 'General
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +3033
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30723>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2794
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30934>
___
__
Louie Lu added the comment:
Upload the Linux/MacOS version of coverage usage.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
I think BitDefender has some option like "disable 10 mins"? You may disable
your antivirus when you are install something you be sure that is trustworthy.
Or maybe BitDefender is right, you download a wrong .msi from other place that
has been insert som
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2732
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30870>
___
__
Louie Lu added the comment:
Terry: How about to support XDG base directory on Unix[1]?
[1]: https://wiki.archlinux.org/index.php/XDG_Base_Directory_support
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Louie Lu added the comment:
How about only taking warning when not able to create dir at GetUserCfgDir(),
then take the permission handler in other place?
e.g. when user trying to save the config in bad dir, pop-out a dialog to tell
it is permission problem or dir not eixsts...etc
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2727
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30899>
___
__
New submission from Louie Lu:
Add IdleConfParser and IdleUserConfParser unittest.
--
assignee: terry.reedy
components: IDLE
messages: 298126
nosy: louielu, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Add idle config parser unittest
versions: Python 3.7
Changes by Louie Lu <m...@louie.lu>:
--
type: crash -> behavior
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30890>
___
___
Louie Lu added the comment:
I'm using Arch Linux with HIME input method, and using 3.7a0 Python. But I
can't reproduce your problem in Korean input.
Could you provide how to type in the sentence in your picture? (Roman or the
stroke maybe) and your environment?
thanks.
--
nosy
Changes by Louie Lu <m...@louie.lu>:
--
title: Comment error in Korean language -> IDLE: Input method error in comment
with Korean language
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Louie Lu added the comment:
It seem setUpModule will smash out the test, I've add a trust-will-work test
inside the test_configdialog.py:
class Test(unittest.TestCase):
def setUp(self):
self.root = tkinter.Tk()
def test_test(self):
self.root.bind('', lambda x: print
New submission from Louie Lu:
Introduce in #30728, commit bac7d3363b099d, `self.wm_withdraw` has been changed
into `self.withdraw`. This make #30870 un-testable since it using
`self.withdraw` will block out `event_generate`.
This issue revert `self.widthdraw` to `self.wm_withdraw
Louie Lu added the comment:
It just get wierd, I can't do event_generate with Terry, too.
Attach poc.py that should print out a 'testing', but it didn't.
--
Added file: http://bugs.python.org/file47006/tests.py
___
Python tracker <
Louie Lu added the comment:
Can reproduce this problem in Chromium 59.0.3071, it seems affect every
selectable version in docs.python.org. Also, devguide has some page down, too.
* devguide: https://docs.python.org/devguide/triaging.html
--
nosy: +louielu
type: resource usage
Louie Lu added the comment:
Hmmm, I think it is a mistake of my test, it is something inside configdialog
__init__ make unittest can't do event_generate, but not this one
`self.withdraw`.
--
resolution: -> not a bug
stage: -> resolved
status: open -&g
Louie Lu added the comment:
configdialog misuse `self.withdraw` at init, it should be `self.wm_withdraw`,
#30900 fix this problem. After that, it should be a success to use
event_generate in configdialog unittest with no `self.withdraw
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2729
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30900>
___
__
Louie Lu added the comment:
Serhiy: Or would it be to detect the user language environment, and come up
with user language example sentence? What I remember that Windows font preview
will change the sentence in the different language.
--
___
Python
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2755
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30917>
___
__
1 - 100 of 301 matches
Mail list logo