[issue29589] test_asyncio & test_multiprocessing_forkserver failed

2017-02-21 Thread Louie Lu
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

[issue29634] Reduce deque repeat execution when maxlen exist and size is not 1

2017-02-23 Thread Louie Lu
Louie Lu added the comment: Raymond: comment has changed, pushed on to GitHub. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue9285] Add a profile decorator to profile and cProfile

2017-02-24 Thread Louie Lu
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/

[issue29645] webbrowser module import has heavy side effects

2017-02-25 Thread Louie Lu
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

[issue29649] struct.pack_into check boundary error message didn't respect offset

2017-02-25 Thread Louie Lu
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

[issue23578] struct.pack error messages do not indicate which argument was invalid

2017-02-25 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +262 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23578> ___ __

[issue23578] struct.pack error messages do not indicate which argument was invalid

2017-02-25 Thread Louie Lu
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,

[issue23578] struct.pack error messages do not indicate which argument was invalid

2017-02-25 Thread Louie Lu
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

[issue9285] Add a profile decorator to profile and cProfile

2017-02-24 Thread Louie Lu
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__

[issue9285] Add a profile decorator to profile and cProfile

2017-02-24 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +257 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9285> ___ __

[issue29634] Reduce deque repeat execution when maxlen exist and size is not 1

2017-02-23 Thread Louie Lu
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

[issue29634] Reduce deque repeat execution when maxlen exist and size is not 1

2017-02-23 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +223 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29634> ___ __

[issue29634] Reduce deque repeat execution when maxlen exist and size is not 1

2017-02-23 Thread Louie Lu
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

[issue29630] REPL tab-completion triggers code execution

2017-02-23 Thread Louie Lu
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

[issue29630] REPL tab-completion triggers code execution

2017-02-23 Thread Louie Lu
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

[issue28121] If module starts with comment or empty line then frame.f_code.co_firstlineno is inconsistent with inspect.findsource

2017-02-23 Thread Louie Lu
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

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +767 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29927> ___ __

[issue29927] Unnecessary code in the c-api/exceptions.c

2017-03-28 Thread Louie Lu
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

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-24 Thread Louie Lu
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

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-25 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +722 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29890> ___ __

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-25 Thread Louie Lu
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>

[issue29890] Constructor of ipaddress.IPv*Interface does not follow documentation

2017-03-25 Thread Louie Lu
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') &

[issue29946] compiler warning "sqrtpi defined but not used"

2017-03-30 Thread Louie Lu
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

[issue29946] compiler warning "sqrtpi defined but not used"

2017-03-30 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +808 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29946> ___ __

[issue24821] The optimization of string search can cause pessimization

2017-03-29 Thread Louie Lu
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' --

[issue26440] tarfile._FileInFile.seekable is broken in stream mode

2017-03-29 Thread Louie Lu
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

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Louie Lu
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

[issue28415] PyUnicode_FromFormat integer format handling different from printf about zeropad

2017-03-29 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +787 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28415> ___ __

[issue29981] Update Index for set, dict, and generator 'comprehensions'

2017-04-04 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- nosy: +louielu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29981> ___ ___ Python

[issue29981] Update Index for set, dict, and generator 'comprehensions'

2017-04-04 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1170 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29981> ___ __

[issue29446] Improve tkinter 'import *' situation

2017-04-04 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- nosy: +louielu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29446> ___ ___ Python

[issue30013] Compiling warning in Modules/posixmodule.c

2017-04-07 Thread Louie Lu
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

[issue30013] Compiler warning in Modules/posixmodule.c

2017-04-07 Thread Louie Lu
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

[issue30013] Compiler warning in Modules/posixmodule.c

2017-04-07 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1184 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30013> ___ __

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2017-04-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- versions: +Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25828> ___ __

[issue24076] sum() several times slower on Python 3

2017-04-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- versions: +Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24076> ___ __

[issue25828] PyCode_Optimize() (peephole optimizer) doesn't handle KeyboardInterrupt correctly

2017-04-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1221 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25828> ___ __

[issue24076] sum() several times slower on Python 3 64-bit

2017-04-11 Thread Louie Lu
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

[issue29881] Add a new private API clear private variables, which are initialized once, at Python shutdown

2017-04-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- nosy: +louielu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29881> ___ ___ Python

[issue30040] new empty dict can be more small

2017-04-16 Thread Louie Lu
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

[issue30040] new empty dict can be more small

2017-04-16 Thread Louie Lu
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

[issue30040] new empty dict can be more small

2017-04-17 Thread Louie Lu
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

[issue30088] mailbox.Maildir doesn't create subdir structure when create=True and base dir exists

2017-04-17 Thread Louie Lu
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

[issue30031] Improve queens demo (use argparse and singular form)

2017-04-17 Thread Louie Lu
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.

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
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

[issue30078] "-m unittest --help" says nothing about direct script exection

2017-04-19 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1306 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30078> ___ __

[issue30118] Adding unittest for cProfile / profile command line interface

2017-04-21 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1350 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30118> ___ __

[issue9285] Add a profile decorator to profile and cProfile

2017-04-20 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1335 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9285> ___ __

[issue30113] Add profile test case for trace_dispatch_return assertion

2017-04-20 Thread Louie Lu
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

[issue30112] useful things

2017-04-20 Thread Louie Lu
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,

[issue21150] Add quick links table to argparse docs

2017-04-19 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- nosy: +louielu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21150> ___ ___ Python

[issue18971] Use argparse in the profile/cProfile modules

2017-04-20 Thread Louie Lu
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

[issue30118] Adding unittest for cProfile / profile command line interface

2017-04-20 Thread Louie Lu
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

[issue18971] Use argparse in the profile/cProfile modules

2017-04-20 Thread Louie Lu
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>

[issue30113] Add profile test case for trace_dispatch_return assertion

2017-04-20 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1334 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30113> ___ __

[issue19184] dis module has incorrect docs for RAISE_VARARGS

2017-04-15 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1288 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19184> ___ __

[issue28698] Python 3.x ctypes c_wchar_p return is different from official documentation example

2017-04-15 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1289 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28698> ___ __

[issue30031] Improve queens demo (use argparse and singular form)

2017-04-17 Thread Louie Lu
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.

[issue14102] argparse: add ability to create a man page

2017-04-18 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1300 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14102> ___ __

[issue30090] Failed to build these modules: _ctypes

2017-04-17 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- components: +Build -Interpreter Core type: compile error -> ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30090] Failed to build these modules: _ctypes

2017-04-17 Thread Louie Lu
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

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
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?

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
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

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
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

[issue21150] Add quick links table to argparse docs

2017-04-20 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1332 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21150> ___ __

[issue14102] argparse: add ability to create a man page

2017-04-19 Thread Louie Lu
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

[issue30113] Allow helper functions to wrap sys.setprofile

2017-04-22 Thread Louie Lu
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

[issue30113] Allow helper functions to wrap sys.setprofile

2017-04-22 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1368 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30113> ___ __

[issue18576] Document test.support.script_helper

2017-04-22 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +1367 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18576> ___ __

[issue18576] Document test.support.script_helper

2017-04-22 Thread Louie Lu
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

[issue29782] Use __builtin_clzl for bits_in_digit if available

2017-04-22 Thread Louie Lu
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

[issue30136] Add test.support.script_helper to documentation

2017-04-21 Thread Louie Lu
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

[issue9285] Add a profile decorator to profile and cProfile

2017-04-22 Thread Louie Lu
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

[issue29237] Create enum for pstats sorting options

2017-04-22 Thread Louie Lu
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

[issue23420] python -m cProfile -s fails with non informative message

2017-04-22 Thread Louie Lu
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

[issue25794] __setattr__ does not always overload operators

2017-04-14 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- nosy: +louielu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25794> ___ ___ Python

[issue14102] argparse: add ability to create a man page

2017-04-18 Thread Louie Lu
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

[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-08-01 Thread Louie Lu
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 <

[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries

2017-08-02 Thread Louie Lu
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

[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay

2017-08-03 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +3033 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30723> ___ __

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-16 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +2794 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30934> ___ __

[issue30934] Document how to run coverage for repository idlelib files.

2017-07-16 Thread Louie Lu
Louie Lu added the comment: Upload the Linux/MacOS version of coverage usage. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue30944] Python 32 bit install fails on Windows - BitDefender false positives

2017-07-17 Thread Louie Lu
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

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +2732 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30870> ___ __

[issue15862] IDLE: startup problem when HOME does not exist

2017-07-09 Thread Louie Lu
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

[issue8231] Unable to run IDLE without write-access to home directory

2017-07-09 Thread Louie Lu
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

[issue30899] IDLE: Add idle config parser unittest

2017-07-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +2727 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30899> ___ __

[issue30899] IDLE: Add idle config parser unittest

2017-07-11 Thread Louie Lu
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

[issue30890] Comment error in Korean language

2017-07-10 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- type: crash -> behavior ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30890> ___ ___

[issue30890] Comment error in Korean language

2017-07-10 Thread Louie Lu
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

[issue30890] IDLE: Input method error in comment with Korean language

2017-07-10 Thread Louie Lu
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

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu
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

[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu
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

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu
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 <

[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Louie Lu
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

[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu
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

[issue30870] IDLE: configdialog/fonts: change font when select by key up/down

2017-07-11 Thread Louie Lu
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

[issue30900] IDLE: Fix configdialog should use wm_withdraw

2017-07-11 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +2729 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30900> ___ __

[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples

2017-07-07 Thread Louie Lu
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

[issue30917] IDLE: Add idlelib.config.IdleConf unittest

2017-07-13 Thread Louie Lu
Changes by Louie Lu <m...@louie.lu>: -- pull_requests: +2755 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30917> ___ __

  1   2   3   4   >