[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Louie Lu
Louie Lu added the comment: Relate to #29448 -- ___ Python tracker <http://bugs.python.org/issue30247> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Louie Lu
Changes by Louie Lu : -- components: +Library (Lib) nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue30247> ___ ___ Python-bugs-list mailin

[issue30247] Make importlib.machinery class handle os.PathLike path

2017-05-03 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1528 ___ Python tracker <http://bugs.python.org/issue30247> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19903] Idle: Use inspect.signature for calltips

2017-05-03 Thread Louie Lu
Louie Lu added the comment: > Did I do something wrong or do you need to allow me to push? Yes, I've added you to the collaborators on my fork (lulouie/cpython). But in fact, new GitHub workflow will need to do something different, not just edit-and-commit. You will need to go to

[issue19903] Idle: Use inspect.signature for calltips

2017-05-04 Thread Louie Lu
Louie Lu added the comment: Thing just getting weird. If we remove the guard, some of the builtin function will get not-so-good signature result: >>> i.signature(range.__init__) >>> i.sig

[issue30263] regrtest: log the system load?

2017-05-04 Thread Louie Lu
Louie Lu added the comment: why will a 1 CPU environment using -j8? isn't that too much for it? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/is

[issue19903] Idle: Use inspect.signature for calltips

2017-05-05 Thread Louie Lu
Louie Lu added the comment: But somehow in this case, List have no __text_signature__: >>> str(i.signature(list)) '(iterable=(), /)' >>> list.__text_signature__ '(iterable=(), /)' >>> str(i.signature(List))

[issue19903] Idle: Use inspect.signature for calltips

2017-05-05 Thread Louie Lu
Louie Lu added the comment: And, another case, the __text_signature__ and i.signature() is similar, but not the same: >>> range.__init__.__text_signature__ '($self, /, *args, **kwargs)' ^ >>> str(i.signature(range.__init__)) '(self, /, *args, **kwargs)

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-07 Thread Louie Lu
Louie Lu added the comment: Since tempfile is relay on `os`, e.g. `file = _os.join.path(dir, pre+name+suf)`, it can directly accept dir as PathLike type, this should need to add test case for it. -- nosy: +louielu ___ Python tracker <h

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-07 Thread Louie Lu
Louie Lu added the comment: Regards my words, some place need to changed to support PathLike, I'll test it tomorrow. -- ___ Python tracker <http://bugs.python.org/is

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-07 Thread Louie Lu
Louie Lu added the comment: @Brett, do you think if given a path-like dir, it should only be treated as `str`, or it could be `str` and `bytes`? My PR is now treated path-like dir as `str`, not `bytes`. This will affect at this places: tempfile.mkdtemp(dir=pathlike.Path(''), pr

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-07 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1599 ___ Python tracker <http://bugs.python.org/issue29447> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29947] In SocketServer, why not passing a factory instance for the RequestHandlerClass instead of the class itself?

2017-05-07 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1598 ___ Python tracker <http://bugs.python.org/issue29947> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29447] Add/check os.PathLike support for the tempfile module's 'dir' arguments

2017-05-07 Thread Louie Lu
Louie Lu added the comment: Serhiy, though this no need to add versionchanged, should this need to explicit note in doc, that tempfile support os.PathLike? also, I didn't get "add also tests for path-like objects returning bytes path", if `tempfile.mkdtemp(dir=pathlike.Path(&#

[issue30303] IDLE: Add _utest to textview

2017-05-08 Thread Louie Lu
New submission from Louie Lu: Relate to #30290, add _utest to textview to support direct unittest. -- assignee: terry.reedy components: IDLE messages: 293228 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: Add _utest to textview versions: Python

[issue30303] IDLE: Add _utest to textview

2017-05-08 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1601 ___ Python tracker <http://bugs.python.org/issue30303> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30303] IDLE: Add _utest to textview

2017-05-08 Thread Louie Lu
Changes by Louie Lu : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue30303> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-08 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1612 ___ Python tracker <http://bugs.python.org/issue21261> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-08 Thread Louie Lu
Louie Lu added the comment: In this PR, it will complete dictionary key with string, int, and others. for example: d = {'long_key': 10, 'short_key': 20, 30: 40, (((1, 2), 3, 4), 5): 50} d['lo -> d['long_key' d[(((1 -> d[(((1, 2), 3,

[issue21261] Teach IDLE to Autocomplete dictionary keys

2017-05-09 Thread Louie Lu
Louie Lu added the comment: I'm not sure the "safer" meaning. If it is about for beginner less confuse when mistakenly typing "d[long_", the answer will be yes for only complete string keys. Impl complexity between str-only and not-str-only will not have too much

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: The reason why click on listbox will disappear is because we bind HIDE_VIRTUAL_EVENT with on widget.text. When click on listbox, it will focusOut the widget.text then focusOn listbox, thus trigger the hide process. The reason why click on listbox and move the

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1617 ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: Test PR on MacOS with Tk 5.8.9, when double click on listbox will cause freeze after hide window -- ___ Python tracker <http://bugs.python.org/issue15

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: There is a difference between Linux and Mac freeze. On linux, if freeze and I insert pdb.set_trace() at the end of the hide_window, it will let cursor blink again, while on Mac, this won't work. I try self.widget.after(200, self.hide_window) and it doesn&#

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: The step after installing newer Tk will require `make clean` and `make` again to let linker link to the recent install version. I can freeze the cursor after double click on any version of Tk I install, 8.5.9 / 8.5.18 / 8.6.4 on MacOS Sierra. Maybe we should

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-09 Thread Louie Lu
Louie Lu added the comment: @Terry, this is another too-fast-to-destroy problem. The latest PR commit has fixed the issue on MacOS. When we double click on autocompletewindow, it will try to focusOut autocompletewindow then focusOn widget.text, but, we destroy too fast, after destroy, tk

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-10 Thread Louie Lu
Louie Lu added the comment: I'm mainly working on Linux, so these problem didn't affect me alot. I did some test on these issue: #24801: right click works on 5.8.18 AS version. #24570: calltips work #25988: wrong issue number (?) -- #21603: concur with Ned, save as a file from foo t

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-11 Thread Louie Lu
Louie Lu added the comment: Additional info for Windows platform: when creating autocompletewindow, it will bind "" to winconfig, this cause a problem, when showing up the acw, it will misbehavior calling multiple times about . The result is, tk will not able to response

[issue30348] IDLE: Add fetch completions and get entity unittest

2017-05-12 Thread Louie Lu
New submission from Louie Lu: Due to #21261, add relative unittest to test_autocomplete.py -- assignee: terry.reedy components: IDLE messages: 293531 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: Add fetch completions and get entity unittest type

[issue30348] IDLE: Add fetch completions and get entity unittest

2017-05-12 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1649 ___ Python tracker <http://bugs.python.org/issue30348> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30113] Allow helper functions to wrap sys.setprofile

2017-05-12 Thread Louie Lu
Louie Lu added the comment: PR-1212 Add an explicit test for dispatch_return's assertion, could @benjaminp, @tiran or @giampaolo help to review this? Thanks! -- nosy: +benjamin.peterson, christian.heimes, giampaolo.rodola ___ Python tracker

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-12 Thread Louie Lu
Louie Lu added the comment: Terry, the latest PR fix the problem both on Linux / MacOS and Windows, please help to review and test if there is any problem on different platform, thanks! -- ___ Python tracker <http://bugs.python.org/issue15

[issue28889] IDLE needs the ability to pass in command-line arguments

2017-05-14 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1682 ___ Python tracker <http://bugs.python.org/issue28889> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28889] IDLE needs the ability to pass in command-line arguments

2017-05-14 Thread Louie Lu
Louie Lu added the comment: This PR will add the short-key to F7, when using editor. It will prompt up a dialog and user can input the command-line arguments then run the code. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue28

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-16 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1693 ___ Python tracker <http://bugs.python.org/issue23667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-16 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1694 ___ Python tracker <http://bugs.python.org/issue23667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-16 Thread Louie Lu
Louie Lu added the comment: PR 1602 add trailing whitespace highlight, which using color from error. PR 1603 add TrimExtension to provide auto trim while saving the file. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue23

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-17 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1737 ___ Python tracker <http://bugs.python.org/issue23667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-17 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1738 ___ Python tracker <http://bugs.python.org/issue23667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-17 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1739 ___ Python tracker <http://bugs.python.org/issue23667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23667] IDLE to provide option for making trailing whitespace visible

2017-05-17 Thread Louie Lu
Louie Lu added the comment: terry, these close isn't changing anything. But I'm migrating my GitHub account from old one to new one, thus will close the PR and reopen another one, sorry for annoying mailing. -- ___ Python trac

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1790 ___ Python tracker <http://bugs.python.org/issue30290> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Due to the merged of #30303, text_view now have _utest attribute for unittest, upload the unittest of help_about dialog in PR 1697 -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30

[issue30422] Add roadmap.txt section to idlelib

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Roadmap definitely helps us for targeting what to do and clear the current development status. Such as #27609 helps a lot for focus on improving on part of the IDLE. 1. Should this be merged with the existing TODO.txt to ROADMAP.txt? 2. What does a "single w

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Cheryl: yes, I may work on 4a/4b and msg294004 on Monday, or do you start at these tasks? -- ___ Python tracker <http://bugs.python.org/issue30

[issue30421] argparse: relative include of config files

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Hi Robert, the submit flow has migrate to GitHub pull requests workflow, and it is strongly preferred to used GitHub PR workflow, do you mind to convert your patch to GitHub? * GitHub repo: https://github.com/python/cpython * devguide about PR: http://cpython

[issue30290] IDLE: add tests for help_about.py

2017-05-21 Thread Louie Lu
Louie Lu added the comment: Terry: I see, I'll take some debugger stuff to try first. Cheryl: If you got any problem on 4/5/6, feel free to ask me on IRC or here! -- ___ Python tracker <http://bugs.python.org/is

[issue26949] IDLE restarts when one debugs code raising SystemExit

2017-05-21 Thread Louie Lu
Louie Lu added the comment: The problem is cause by run.py:main function, when it catch KeyboardInterrupt or SystemExit, it won't put a blank msg back to response_queue, that cause the loop in run.py:main triggering except queue.Empty to continue the loop. So, I think the KeyboardInte

[issue26949] IDLE restarts when one debugs code raising SystemExit

2017-05-21 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1802 ___ Python tracker <http://bugs.python.org/issue26949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26949] IDLE restarts when one debugs code raising SystemExit

2017-05-21 Thread Louie Lu
Louie Lu added the comment: PR 1711 fix KeyboardInterrupt with adding rpc.repsonse_queue.put, but it will not print out the exception traceback. And for SystemExit, wait for discussion result. -- ___ Python tracker <http://bugs.python.

[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Louie Lu
Louie Lu added the comment: Mark, do you mind to rebase your patch to the latest version? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue17

[issue17942] IDLE Debugger: Improve GUI

2017-05-22 Thread Louie Lu
Louie Lu added the comment: Rebase markroseman patch to latest version, I own no credit on this patch. Just want to check the effect about the patch. -- Added file: http://bugs.python.org/file46884/0001-WIP.patch ___ Python tracker <h

[issue30429] bdb: Add watchpoint function

2017-05-22 Thread Louie Lu
New submission from Louie Lu: Trying to add watchpoint function to bdb and pdb. It's goal is to do as gdb for three different watch: watch, rwatch and a watch. watch: when expr is written by program and value has changed, it will break rwatch: when expr is read by program, it will break a

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Changes by Louie Lu : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue30429> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1841 ___ Python tracker <http://bugs.python.org/issue30429> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30429] bdb and pdb: Add watchpoint function

2017-05-22 Thread Louie Lu
Louie Lu added the comment: watch and awatch will detect value change and breakout, rwatch using dis module to get the file bytecode, with the lineno it can detect current line is load (read) or not. -- ___ Python tracker <http://bugs.python.

[issue14111] IDLE Debugger should handle interrupts

2017-05-24 Thread Louie Lu
Louie Lu added the comment: The reproduce step can be reduce to: 1. open idlelib with debugger (./python -m idlelib -d) 2. enter print() (or any other function call) 3. Control-C breakout Then it will restart the shell. -- nosy: +louielu ___ Python

[issue14111] IDLE Debugger should handle interrupts

2017-05-24 Thread Louie Lu
Louie Lu added the comment: Update roger's patch to current version. Is there any reason this patch isn't merged? The problem in #26949 is a separate issue about this problem. -- Added file: http://bugs.python.org/file46893/0001

[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Louie Lu
Louie Lu added the comment: Roger, will you convert the patch to GitHub PR? The patch runs will, there are only two point need to add: 1. user_interrupt should clear sys.settrace when step in 2. cancel_callback add a interp.write("\nKeyboardInterrupt\n"

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-25 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1897 ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-25 Thread Louie Lu
Louie Lu added the comment: PR 1811 fix some bug in condition of hide_event, now it will work on three different platforms. Terry, it will need your review. -- versions: +Python 3.7 ___ Python tracker <http://bugs.python.org/issue15

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Louie Lu
Louie Lu added the comment: Another way to reproduce this problem: >>> import datetime >>> from collections import defaultdict as dd >>> d = dd(datetime.datetime.now) >>> d['foo'] Traceback (most recent call last): File "", line 1,

[issue30473] defaultdict raises SystemError, __missing__ returned NULL in thread

2017-05-25 Thread Louie Lu
Louie Lu added the comment: This bug is introduce at commit: 37e4ef7b17ce6e98ca725c0a53ae14c313c0e48c, then fixed at commit: 998c20962ca3e2e693c1635efe76c0144dde76fc -- ___ Python tracker <http://bugs.python.org/issue30

[issue30478] Python 2.7 crashes in Linux environment

2017-05-25 Thread Louie Lu
Louie Lu added the comment: Hi Huyk, which version of Python does the error message generated? Also, could you try to provide a minimum reproduce python script and upload it? it will be more easy to debug this problem if we can reproduce this. -- nosy: +louielu

[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1907 ___ Python tracker <http://bugs.python.org/issue14111> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue14111] IDLE Debugger should handle interrupts

2017-05-25 Thread Louie Lu
Louie Lu added the comment: The patch is upload to PR 1821, if Roger get a GitHub account and linked to b.p.o, we can rebase the first commit and change the author in commit message to Roger's account information. -- ___ Python tracker

[issue27115] IDLE/tkinter: in simpledialog, != [OK] click

2017-05-26 Thread Louie Lu
Louie Lu added the comment: We can solve this problem by two ways. One is to add set_line_and_column() to the end of goto_line_event(), but this will make Return trigger set_line_and_column twice. Another is to change the bind event in simpledialog from "" to "" to pr

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Fix on Windows platform, the behavior was different on Linux and Windows when calling acw.focus_get(), it will need to delay to get the correct focus. -- ___ Python tracker <http://bugs.python.org/issue15

[issue15786] IDLE code completion window can hang or misbehave with mouse

2017-05-30 Thread Louie Lu
Louie Lu added the comment: I fix this as: if not self.autocompletewindow: return I think this another different behavior on different platform. I can't reproduce this on Linux... -- ___ Python tracker <http://bugs.py

[issue27115] IDLE: replace uses of tkinter simpledialog with query.Query

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Ok, changed to query.Query will be good. But the problem still exist, query.Query use "" to bind at button ok, should it re-bind to "" at subclass such as AskInteger(Query) ? -- versions: +Py

[issue27115] IDLE: replace uses of tkinter simpledialog with query.Query

2017-05-30 Thread Louie Lu
Louie Lu added the comment: Terry, on the original issue about goto dialog, I would like to propose another approach, instead of using query.Query or simpledialog, how about to make it as a single-window application like sublime text: http://docs.sublimetext.info/en/latest/file_management

[issue30521] IDLE: Add navigate bar and replace current goto dialog

2017-05-31 Thread Louie Lu
New submission from Louie Lu: Propose a sublime-like navigate bar to replace current goto dialog. Navigate bar current support two different mode: prefix ':' for goto line, and prefix '@' for goto symbol. When user use shortcut Ctrl+G to open goto line, it will prompt ou

[issue30521] IDLE: Add navigate bar and replace current goto dialog

2017-05-31 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +1960 ___ Python tracker <http://bugs.python.org/issue30521> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-02 Thread Louie Lu
Louie Lu added the comment: Haypo: How do you know that this is leaked at test_files() of test_tools.test_unparse.DirectoryTestCase? The result of your command didn't reveal that is leaked at which test case or function. -- nosy: +lo

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-04 Thread Louie Lu
Louie Lu added the comment: I can reproduce this bugs on 3.7, Linux. Python 3.7.0a0 (heads/master:d3bedf356a, Jun 5 2017, 10:21:52) [GCC 6.3.1 20170306] on linux Type "help", "copyright", "credits" or "license" for more information. >>> c

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-04 Thread Louie Lu
Louie Lu added the comment: Without this segfault, I think you do a wrong operation. In other cases, for example: >>> issubclass(10, int) Traceback (most recent call last): File "", line 1, in TypeError: issubclass() arg 1 must be a class `issubclass` will return TypeEr

[issue30303] IDLE: Add _utest to textview and add textview tests

2017-06-05 Thread Louie Lu
Louie Lu added the comment: Mariatta: yes, louisom is my GitHub account. but I migrate to mlouielu this new account. Should I add louisom to b.p.o GitHub account list? -- ___ Python tracker <http://bugs.python.org/issue30

[issue30521] IDLE: Add navigate bar and replace current goto dialog

2017-06-05 Thread Louie Lu
Louie Lu added the comment: I agree with what you says that the prefix of ":" and "@" may confuse beginners when using "goto line" function. I survey some editor, that visual studio and sublime use this kind of navigate bar, but visual studio will show up &quo

[issue30542] [EASY] test_files() of test_tools.test_unparse.DirectoryTestCase leaks references

2017-06-06 Thread Louie Lu
Louie Lu added the comment: Briefly speaking, I think this is not a *easy* issue. There is two things need to concern in this issue. First, it that the test case is *randomize*, lineno 282 randomly choice 10 file to test. So you will need to stabilize this first. Second, the minimize range

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu
New submission from Louie Lu: Add unittest to test_open_completions, test_fetch_copmletions, and test_get_entity in test_autocomplete -- assignee: terry.reedy components: IDLE messages: 295755 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: add

[issue30632] IDLE: add unittest to test_autocomplete

2017-06-12 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +2178 ___ Python tracker <http://bugs.python.org/issue30632> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31752] Assertion failure in timedelta() in case of bad __divmod__

2017-10-11 Thread Louie Lu
Louie Lu added the comment: I got a different result in latest commit: eeb5ffd54e5 ➜ cpython git:(master) ✗ ./python test.py Traceback (most recent call last): File "test.py", line 15, in timedelta(hours=BadInt(1)) SystemError: returned NULL without setting an error Do I

[issue31768] argparse drops '|'s when the arguments are too long

2017-10-11 Thread Louie Lu
Louie Lu added the comment: the format of usage is do at argparse.py:296. So how do we format this kind of situation, to be like this, if the group also too long? usage: test.py [-h] [-v | -q | -x [X] | -y [Y] | Z | Z | Z | Z | Z | Z | Z | Z] Also

[issue13802] IDLE font settings: use multiple character sets in examples

2017-10-12 Thread Louie Lu
Louie Lu added the comment: PR 3960 display on my Linux works well, and the combination of the Chinese characters has no political controversial. But it is lack of simplify characters, the only one is '汉', others are all traditional characters (or they are same in simp. and tr

[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 <http://bugs.python.org/iss

[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 <http://bugs.python.org/issue29630> ___ ___ Python-bug

[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 <http://bugs.python.org/issue29

[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 = insp

[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 : -- pull_requests: +223 ___ Python tracker <http://bugs.python.org/issue29634> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 <http://bugs.python.org/issue29

[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 <http://bugs.python.org/issue29634> ___ ___ Python-bugs-list m

[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 <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: 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' '' ('profil

[issue9285] Add a profile decorator to profile and cProfile

2017-02-24 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +257 ___ Python tracker <http://bugs.python.org/issue9285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

[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) Trace

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

2017-02-25 Thread Louie Lu
Changes by Louie Lu : -- pull_requests: +262 ___ Python tracker <http://bugs.python.org/issue23578> ___ ___ Python-bugs-list mailing list Unsubscribe:

[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:

[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 contai

<    1   2   3   4   >