[issue35782] Missing whitespace after comma in randrange raise error
Louie Lu added the comment: I previously close this issue is because not sure if someone rely on exception string to do something, should we consider this? -- ___ Python tracker <https://bugs.python.org/issue35782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35782] Missing whitespace after comma in randrange raise error
Change by Louie Lu : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue35782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35782] Missing whitespace after comma in randrange raise error
New submission from Louie Lu : In random.py:randrange File "/usr/lib/python3.7/random.py", line 200, in randrange raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width)) ValueError: empty range for randrange() (3,3, 0) should be "empty range for randrange() (3, 3, 0)" -- components: Library (Lib) messages: 334033 nosy: louielu priority: normal severity: normal status: open title: Missing whitespace after comma in randrange raise error versions: Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue35782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13802] IDLE font settings: use multiple character sets in examples
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 trad.). For Japanese, there are katakana (カタカナ), hiragana(ひらがな) and kanji (漢字), the characters you provide only contain hiragana. Maybe a sentence that contains all kinds of characters will be better. For Korean, the characters are compound to one, but I'm not sure will they use the first four characters to test the font. CC for corona10. For Chinese, Japanese, Korean, I'll still prefer and recommend to use a sentence to give user the perspective of the font. For other character set, maybe we can reference from Google fonts: https://fonts.google.com/ they got a list of Unicode-aware language: Arbic, Bengali, Cyrillic, Cyrillic Extended, Devanagari, Greek, Greek Extended, Gujarati, Gurmukhi, Hebrew, Kannada, Khmer, Latin, Latin Extended, Malayalam, Myanmar, Oriya, Tamil, Telugu, Thai, Vietnamese. -- nosy: +corona10 ___ Python tracker <https://bugs.python.org/issue13802> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31768] argparse drops '|'s when the arguments are too long
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, another bug I think is, given two mutul group, it will not show out the correct grouping: usage: test.py [-h] [-v] [-e] [Z] [G] [Z] [G] positional arguments: Z the exponent G the exponent Z the exponent G the exponent optional arguments: -h, --help show this help message and exit -v, --verbose -e, --ee --- 2 mutul group --- import sys import argparse parser = argparse.ArgumentParser() group = parser.add_mutually_exclusive_group() group.add_argument("-v", "--verbose", action="store_true") g2 = parser.add_mutually_exclusive_group() g2.add_argument("-e", "--eplog", action="store_true") g2.add_argument("-g", "--quiet", action="store_true") for i in range(int(sys.argv[1])): group.add_argument("z", metavar='Z', type=str, help="the exponent", nargs='?') g2.add_argument("z", metavar='Z', type=str, help="the exponent", nargs='?') parser.parse_args(['-h']) -- nosy: +louielu ___ Python tracker <https://bugs.python.org/issue31768> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31752] Assertion failure in timedelta() in case of bad __divmod__
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 miss some configure, I'm using ./configure --with-debug -- nosy: +louielu ___ Python tracker <https://bugs.python.org/issue31752> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31329] Add idlelib module entry to doc
Changes by Louie Lu : -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue31329> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31327] bug in dateutil\tz\tz.py
Louie Lu added the comment: Using macOS and Linux can't reproduce this problem, both platform return this output: >>> import time >>> time.localtime(-3600) time.struct_time(tm_year=1970, tm_mon=1, tm_mday=1, tm_hour=7, tm_min=0, tm_sec=0, tm_wday=3, tm_yday=1, tm_isdst=0) -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue31327> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31331] IDLE: Move prompts with input.
Louie Lu added the comment: Or the output should be: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() >>> 'hello' >>> -- ___ Python tracker <http://bugs.python.org/issue31331> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31331] IDLE: Move prompts with input.
Louie Lu added the comment: minimum reproduce: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() >>> 'hello' a = ( 12, --- And the expect output should be something like: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() >>> 'hello'# No or other key-input >>> or: >>> from threading import Timer >>> Timer(0.1, lambda: print('hello'), ()).start() 'hello' >>> Right? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue31331> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31244] Shortcuts bug in Python IDLE
Louie Lu added the comment: Hi, so you are using Windows built-in IEM with Ukrainian input method. And in this situation, you cannot use Ctrl+Z, Ctrl+V ..etc. right? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue31244> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29910] Ctrl-D eats a character on IDLE
Louie Lu added the comment: da..., Terry reverts this soon. -- ___ Python tracker <http://bugs.python.org/issue29910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29910] Ctrl-D eats a character on IDLE
Louie Lu added the comment: After bisecting, commit 213ce12adfc9281c6f381bb45d132e9de8ffd450 cause calltip can't close when type to `)` at the end. for example: print('blablalbalba') ^ show ^ didn't tipclose tip -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue29910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31139] Improve tracemalloc demo code in docs
Changes by Louie Lu : -- pull_requests: +3053 ___ Python tracker <http://bugs.python.org/issue31139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31139] Improve tracemalloc demo code in docs
New submission from Louie Lu: Current tutorial of tracemalloc: https://docs.python.org/3/library/tracemalloc.html Current doc using a un-reproducible output, that will confuse the reader. Propose to use the test code `allocate_bytes` to control the memory usage output, provide more meaningful output to reader. -- assignee: docs@python components: Documentation messages: 299892 nosy: docs@python, haypo, louielu priority: normal severity: normal status: open title: Improve tracemalloc demo code in docs type: enhancement versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue31139> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30723] IDLE parenmatch - left and right highlighting, independent flash-delay
Changes by Louie Lu : -- pull_requests: +3033 ___ Python tracker <http://bugs.python.org/issue30723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries
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')`. That is why I got ambiguous when I look back to the code. Or maybe it just because I'm not familiar for the abbr., I take a search and found that in US Army that General abbr. is Gen. --- I'm a +0 of MainPage, since in the page, it used for general setting. I'm not sure about this changed. -- ___ Python tracker <http://bugs.python.org/issue31051> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31051] IDLE, configdialog, General tab: re-arrange, test user entries
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 <http://bugs.python.org/issue31051> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30997] TestCase.subTest and expectedFailure
Louie Lu added the comment: I'm successful to add a sub.expectedFailure() to subTest, but in current API, it isn't that will done. First, you will not get any alarm or information that there is a test been treat as "expected failure" at the result text. Second, it just act like you putting @unittest.expectedFailure at the top of the test. Third, current result didn't put expected failure as a result category, so it will not show it at the result if we skip some test in the subTest, and it will need to changed to add an expected failure list to handle multiple expected failure in a test. -- ___ Python tracker <http://bugs.python.org/issue30997> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30997] TestCase.subTest and expectedFailure
Louie Lu added the comment: There is a mailing-list discusss this before: https://mail.python.org/pipermail/python-list/2016-June/710575.html But after checking, current subTest contextmanager won't yield subtest, so the method of with self.subTest() as sub won't work. Another problem is, inside the subTest, if there have expectfailed, it will raise _ShouldStop, causing the after test won't run it. -- ___ Python tracker <http://bugs.python.org/issue30997> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30997] TestCase.subTest and expectedFailure
Louie Lu added the comment: So for example: for i in range(10): with self.subTest(i=i): DoSomething(i) we have some platform specific in i=8, i=9, and you want to labeled as expectedFailure. Do I miss something? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30997> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19903] Idle: Use inspect.signature for calltips
Changes by Louie Lu : -- pull_requests: +2874 ___ Python tracker <http://bugs.python.org/issue19903> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12910] urllib.quote quotes too many chars, e.g., '()'
Changes by Louie Lu : -- title: urrlib.quote quotes too many chars, e.g., '()' -> urllib.quote quotes too many chars, e.g., '()' ___ Python tracker <http://bugs.python.org/issue12910> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x
Louie Lu added the comment: For the problem about the small name in git log Author, if you want to changed it, it will need to setup at https://github.com/settings/profile and update the first column "Name". I think this is because we merged on GitHub, and GitHub ignores the git author but use GitHub account's name (if this didn't setup, it will fallback to GitHub account). I have some small name with "mlouielu" when I changed to this new account. -- ___ Python tracker <http://bugs.python.org/issue30968> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x
Louie Lu added the comment: Yes, Terry's patch fixed this. -- ___ Python tracker <http://bugs.python.org/issue30968> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30968] test_get_font (idlelib.idle_test.test_config.IdleConfTest) failure on x86 Windows7 3.x
Louie Lu added the comment: After checking source code, I found that is my fault on the test code. After the blocker PR 2754 been merged, I'll fix this issue. -- ___ Python tracker <http://bugs.python.org/issue30968> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30917] IDLE: Add idlelib.config.IdleConf unittest
Louie Lu added the comment: PR 2754 changed it to use `read_string`. -- ___ Python tracker <http://bugs.python.org/issue30917> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30917] IDLE: Add idlelib.config.IdleConf unittest
Changes by Louie Lu : -- pull_requests: +2813 ___ Python tracker <http://bugs.python.org/issue30917> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30960] Python script is failing to run
Louie Lu added the comment: Your information isn't that clear, this is what I found on the Internet: https://techglimpse.com/error-executing-python3-5-command-solution/ https://unix.stackexchange.com/questions/17863/py3compile-error-unable-to-get-the-locale-encoding Maybe your environment variable PYTHONHOME or PYTHONPATH had some problem. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30960> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1442493] IDLE shell window gets very slow when displaying long lines
Louie Lu added the comment: Besides warping text, there has a performance issue inside the RPCServer and Client. The (console, write, (text, file), {}) command is sent by server `asynccall`->`putmessage`. It should be sent by chunk size to client, and render on IDLE shell. The result is performed as sent by chunk size, but the client will gather all chunk until it receives all data, then render on IDLE shell. This cause the shell seems like hanging there, and doing nothing (in REPL, it will output the long string to stdout and so on). We can manually detect this then manully chunk out (console, write, args, kwargs) command's args size, so that it will look like not hanging there. The attach patch is a PoC about this. - For the text widget performance, I dislike the wrap method, it shouldn't be a limit to the user on IDLE (GUI IDE), even it can be set to 80 or 100 or whatever. -- nosy: +louielu versions: +Python 3.7 Added file: http://bugs.python.org/file47022/0001-IDLE-shell-test.patch ___ Python tracker <http://bugs.python.org/issue1442493> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18875] Idle: Auto insertion of the closing parens, brackets, and braces
Louie Lu added the comment: Charles, good to saw the patch, would you like to convert it into GitHub PR? also, it would have to adjust some coding style to satisfy PEP8. I can help you on GitHub to review this patch. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue18875> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30953] Fatal python error when jumping into except clause
Louie Lu added the comment: You will need to use `dis` to see what actually done by bytecode. $ ./python -m dis tests.py Disassembly of : 9 0 SETUP_EXCEPT 4 (to 6) 10 2 POP_BLOCK 4 JUMP_FORWARD12 (to 18) 11 >>6 POP_TOP 8 POP_TOP 10 POP_TOP 12 12 POP_EXCEPT 14 JUMP_FORWARD 2 (to 18) 16 END_FINALLY 14 >> 18 LOAD_CONST 0 (None) 20 RETURN_VALUE this is the actual bytecode in `error()`. When the eval loop hit the line 9, it will perform bytecode `SETUP_EXCEPT`, thus push a block into the blockstack. Your code in trace wrote that `and frame.f_lineno > 12`, thus it will run line 12 and perform POP_EXCEPT to pop out the blockstack. then goto line 13, catch by trace if statement, f_lineno changed to 12, and perform `POP_EXCEPT` again, there isn't any block inside the blockstack, thus it will get a "XXX block stack underflow". -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30953> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30934] Document how to run coverage for repository idlelib files.
Louie Lu added the comment: I update how to prepare coverage on Linux and MacOS. I first thought user will prepare as Terry wrote at the top of `5. Test Coverage`. Cheryl's method is good, the update guide is borrow from here. First create a virtualenv, then install coverage via pip in venv. If user want to skip the step of venv, they can copy out the coverage package in venv/lib/ to Lib/ inside. -- ___ Python tracker <http://bugs.python.org/issue30934> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30944] Python 32 bit install fails on Windows - BitDefender false positives
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 something bad, check about md5 about the installer -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30944> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30934] Document how to run coverage for repository idlelib files.
Louie Lu added the comment: Upload the Linux/MacOS version of coverage usage. -- ___ Python tracker <http://bugs.python.org/issue30934> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30934] Document how to run coverage for repository idlelib files.
Changes by Louie Lu : -- pull_requests: +2794 ___ Python tracker <http://bugs.python.org/issue30934> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30934] Document how to run coverage for repository idlelib files.
Louie Lu added the comment: After merging this one, I can provide the version of Linux and MacOS. -- ___ Python tracker <http://bugs.python.org/issue30934> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30874] unittest execute tests twice in some conditions
Louie Lu added the comment: On my MacOS with python 3.5.2 get this result: ➜ unittest-1 git:(master) ✗ python3 setup.py test running test running egg_info writing dependency_links to Test_1.egg-info/dependency_links.txt writing top-level names to Test_1.egg-info/top_level.txt writing Test_1.egg-info/PKG-INFO reading manifest file 'Test_1.egg-info/SOURCES.txt' writing manifest file 'Test_1.egg-info/SOURCES.txt' running build_ext running test running egg_info writing dependency_links to Test_1.egg-info/dependency_links.txt writing top-level names to Test_1.egg-info/top_level.txt writing Test_1.egg-info/PKG-INFO reading manifest file 'Test_1.egg-info/SOURCES.txt' writing manifest file 'Test_1.egg-info/SOURCES.txt' running build_ext test_fix_all (test_main.MainTestCase) ... ok -- Ran 1 test in 0.000s with Python 3.7.a0 got this result: ➜ unittest-1 git:(master) ✗ /Users/louielu/Python/cpython/python.exe -m unittest . -- Ran 1 test in 0.000s OK I think it will be more like a setting issue, not unittest problem. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30874> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30917] IDLE: Add idlelib.config.IdleConf unittest
Louie Lu added the comment: After this unittest is merged, I would like to first cleanup config.py source code, then modify it more general way. -- ___ Python tracker <http://bugs.python.org/issue30917> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30917] IDLE: Add idlelib.config.IdleConf unittest
Changes by Louie Lu : -- pull_requests: +2755 ___ Python tracker <http://bugs.python.org/issue30917> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30917] IDLE: Add idlelib.config.IdleConf unittest
New submission from Louie Lu: Add idlelib.config.IdleConf unittest. -- assignee: terry.reedy components: IDLE messages: 298266 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: Add idlelib.config.IdleConf unittest versions: Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue30917> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
Changes by Louie Lu : -- pull_requests: +2732 ___ Python tracker <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30900] IDLE: Fix configdialog should use wm_withdraw
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 -> closed ___ Python tracker <http://bugs.python.org/issue30900> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation
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 -> ___ Python tracker <http://bugs.python.org/issue30901> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
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`. -- ___ Python tracker <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30900] IDLE: Fix configdialog should use wm_withdraw
Changes by Louie Lu : -- pull_requests: +2729 ___ Python tracker <http://bugs.python.org/issue30900> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30900] IDLE: Fix configdialog should use wm_withdraw
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`. -- assignee: terry.reedy components: IDLE messages: 298136 nosy: csabella, louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: Fix configdialog should use wm_withdraw versions: Python 3.6, Python 3.7 ___ Python tracker <http://bugs.python.org/issue30900> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
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('testing')) self.root.update() self.root.event_generate('') This will print out `testing` when commet out setUpModule's `root = Tk()` line. But if this line is running, then the trust-test won't print out `testing` -- ___ Python tracker <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
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 <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30899] IDLE: Add idle config parser unittest
Changes by Louie Lu : -- pull_requests: +2727 ___ Python tracker <http://bugs.python.org/issue30899> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30899] IDLE: Add idle config parser unittest
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 ___ Python tracker <http://bugs.python.org/issue30899> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30890] IDLE: Input method error in comment with Korean language
Changes by Louie Lu : -- title: Comment error in Korean language -> IDLE: Input method error in comment with Korean language ___ Python tracker <http://bugs.python.org/issue30890> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30890] Comment error in Korean language
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: +louielu ___ Python tracker <http://bugs.python.org/issue30890> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30890] Comment error in Korean language
Changes by Louie Lu : -- type: crash -> behavior ___ Python tracker <http://bugs.python.org/issue30890> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15862] IDLE: startup problem when HOME does not exist
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 <http://bugs.python.org/issue15862> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8231] Unable to run IDLE without write-access to home directory
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. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue8231> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples
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 tracker <http://bugs.python.org/issue13802> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples
Louie Lu added the comment: Add the string with pangram and chinese, now sample text shows: AaBbCcDdEe FfGgHhIiJjK 1234567890 #:+=(){}[] The quick brown fox jumps over the lazy dog. [1] 南去經三國,東來過五湖 [2] -- [1]: https://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog [2]: http://blog.justfont.com/2014/12/jfbook-example/ -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue13802> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
Changes by Louie Lu : -- pull_requests: +2683 ___ Python tracker <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30870] IDLE: configdialog/fonts: change font when select by key up/down
New submission from Louie Lu: Add event for KeyRelease-Up and KeyRelease-Down to change sample font. Current code only changed font when using button-click on listbox. -- assignee: terry.reedy components: IDLE messages: 297867 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: configdialog/fonts: change font when select by key up/down versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30870> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13802] IDLE Prefernces/Fonts: use multiple alphabets in examples
Changes by Louie Lu : -- pull_requests: +2682 ___ Python tracker <http://bugs.python.org/issue13802> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30869] regrtest: Add .idlerc to saved_test_environment
Changes by Louie Lu : -- pull_requests: +2679 ___ Python tracker <http://bugs.python.org/issue30869> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30869] regrtest: Add .idlerc to saved_test_environment
New submission from Louie Lu: In bpo #30780, there is a mistake of tearDownModule didn't restore the use rCfg. To prevent future mistake, Adding .idlerc to regrtest saved_test_environment, so that `--fail-env-changed` option can detect .idlerc been changed in IDLE test. -- components: Library (Lib) messages: 297856 nosy: haypo, louielu, terry.reedy priority: normal severity: normal status: open title: regrtest: Add .idlerc to saved_test_environment versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30869> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30422] Add roadmap.txt section to idlelib
Louie Lu added the comment: Terry: I'm on idle-dev, the bi-weekly sprint I said isn't only one time, I mean about each bi-weekly. I'm ok with concentrate on multiple improvements of one component. -- ___ Python tracker <http://bugs.python.org/issue30422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30780] IDLE: configdialog - add tests for ConfigDialog GUI.
Louie Lu added the comment: I'm trying to add the test on configdialog, currently working on KeysTest. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30780> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29926] IDLE: in shell, time.sleep ignores _thread.interrupt_main()
Changes by Louie Lu : -- assignee: -> terry.reedy components: +IDLE -Library (Lib) title: time.sleep ignores _thread.interrupt_main() -> IDLE: in shell, time.sleep ignores _thread.interrupt_main() ___ Python tracker <http://bugs.python.org/issue29926> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29926] time.sleep ignores _thread.interrupt_main()
Louie Lu added the comment: Based on Martin's patch, I slightly changed the logic for the patch. So, I add a `finish` flag to detect the code in Executive.runcode is done or not. `interrupt_the_server` will first SIGINT via interrupt_main, if this doesn't work after 0.2 seconds, it will then sent the signal by pthread_kill to main_thread. This will work on Linux, and MacOS which I tested. And it will avoid the different behavior for `input()` (which I believe is because of the GNU readline been used.) and `time.sleep()` in only using `interrupt_main` or `signal.pthread_kill`. -- ___ Python tracker <http://bugs.python.org/issue29926> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29926] time.sleep ignores _thread.interrupt_main()
Changes by Louie Lu : -- pull_requests: +2520 ___ Python tracker <http://bugs.python.org/issue29926> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29926] time.sleep ignores _thread.interrupt_main()
Louie Lu added the comment: Other operation which will block the process will do the same as time.sleep(), too. >>> import socket >>> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) >>> s.bind(('', 25000)) >>> s.recv(100) IDLE will ignore this control-c, too. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue29926> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24039] Idle: some modal dialogs maximize, don't minimize
Louie Lu added the comment: The bugs can be reproduce on MacOS, when click the minimize button, the search dialog will be minimize, then pop up to front again. The preference dialog have the same behavior on MacOS, but debugger dialog won't. And, Goto dialog will minimize with IDLE shell disappear, then both pop out again. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue24039> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30422] Add roadmap.txt section to idlelib
Louie Lu added the comment: Terry: For question 1, I think we can mark out the value point of the part in your roadmap.txt which we have more priority to fixed first, then get a bi-weekly (maybe) sprint to fixed one part. -- ___ Python tracker <http://bugs.python.org/issue30422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30784] IDLE: seperate editor window and text
New submission from Louie Lu: Currently, IDLE EditorWindow was mixed with the GUI skeleton and text area, and the other plugin such as hyperparser was operate on editwin. Such a design let IDLE is difficult to changed its GUI design, from new window to new tab style. If we seperate EditorWindow and the text zone, it will make more easy to port to ttk.Notebook. How do you think about this, terry? -- assignee: terry.reedy components: IDLE messages: 296992 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: seperate editor window and text versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30784> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20703] RuntimeError caused by lazy imports in pdb
Changes by Louie Lu : -- versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5 ___ Python tracker <http://bugs.python.org/issue20703> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20703] RuntimeError caused by lazy imports in pdb
Louie Lu added the comment: The lazy import cause by two modules, readline and _bootlocale. readline: in __init__ try: import readline readline.set_completer_delims(' \t\n`@#$%^&*()=+[{]}\\|;:\'",<>?') _bootlocale: in __init__ with open(os.path.join(envHome, '.pdbrc')) as rcFile: with open('.pdbrc') as rcFile Easiest way to eliminated it to move import readline and import _bootlocale to the top of the file. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue20703> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30429] bdb and pdb: Add watchpoint function
Louie Lu added the comment: @xdegaye, would you like to review this PR? thanks. -- nosy: +xdegaye ___ Python tracker <http://bugs.python.org/issue30429> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30761] pdb: Add step / next count arguments
Changes by Louie Lu : -- pull_requests: +2446 ___ Python tracker <http://bugs.python.org/issue30761> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30761] pdb: Add step / next count arguments
New submission from Louie Lu: This propose to add *count* times on step and next instruction in pdb. step [count] next [count] User can use `next [count]` to run next *count* times, or `step [count]` to run step *count* times, until it countdown, or occure a breakpoint. Similar function has been implemented in gdb[1] before. [1]: https://sourceware.org/gdb/onlinedocs/gdb/Continuing-and-Stepping.html -- components: Library (Lib) messages: 296869 nosy: louielu priority: normal severity: normal status: open title: pdb: Add step / next count arguments type: enhancement versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30761> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30756] ttk: GUI tests fail on Ubuntu
Changes by Louie Lu : -- components: +Tkinter title: GUI tests fail on Ubuntu -> ttk: GUI tests fail on Ubuntu ___ Python tracker <http://bugs.python.org/issue30756> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30726] [Windows] Warnings in elementtree due to new expat
Changes by Louie Lu : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue30726> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30722] Tools/demo/redemo.py broken
Louie Lu added the comment: Also, would you like to contribute with PR on GitHub? -- ___ Python tracker <http://bugs.python.org/issue30722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30722] Tools/demo/redemo.py broken
Louie Lu added the comment: Hi Christoph, chould you provide a small example that breaks the regex demo? thanks! -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30722> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30422] Add roadmap.txt section to idlelib
Louie Lu added the comment: Terry, how do you think about the roadmap? I have two component that I think it should be put on the roadmap. 1. the goto/search/replace dialog to single-window app (#30521, #27115) >From internal diagram (https://i.imgur.com/1WZwakQ.png) it seem to >search/replace dialog share the same based, I think we can first start from >here to make a single-window app. To discuss which kind of style that we may >change in future. In #30521, I propose to make it as vscode/sublime style, a >top bar for goto with different label. And for search/replace a bottom dialog >like vscode/sublime could be used. 2. lineno sidebar, and pyshell tab issue (#30663, #7676) Another big problem (I think) in IDLE is the pyshell tab issue. It seem that is very conflict with PEP8 when IDLE using tab in pyshell. In #7676 you said that should be done with sidebar, In #30663, I first propose lineno sidebar in edit window, if this is been accepted, then I think #7676 may be solved by sidebar method used in lineno. How do you think about this two issue? -- ___ Python tracker <http://bugs.python.org/issue30422> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5680] Command-line arguments when running in IDLE
Changes by Louie Lu (old) : -- pull_requests: +2353 ___ Python tracker <http://bugs.python.org/issue5680> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30674] IDLE: add docstrings to grep.py
Louie Lu added the comment: On Linux, it stick to the top-right of the IDLE, that says I can't reproduce the bump-out at the bottom :( -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30674> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests
Changes by Louie Lu : -- pull_requests: +2287 ___ Python tracker <http://bugs.python.org/issue30523> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30678] Widget variable binding does not work if mainloop is called from a different function
Louie Lu added the comment: Sorry, but I can't see the different between your first and second code. On my Linux, it all set to check the box when it run up. Do I miss anything? -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30678> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests
Louie Lu added the comment: Serhiy and Victor suggest moving this option to regrtest. open a new PR 2238 addressed this. Also, because moving into regrtest, some test that used `requires` will need to pass option when using it. e.g.: $ ./python -m test test.test_curses --list-cases -ucurses otherwise, it will just passout and do nothing (maybe it should warn user?) -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30523> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30523] unittest: add --list-tests option to only display the list of test names, don't run tests
Changes by Louie Lu : -- pull_requests: +2283 ___ Python tracker <http://bugs.python.org/issue30523> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30675] test_zipfile leaks references on Python 3.5 on the wo Refleaks buildbots (Gentoo, Windows)
Louie Lu added the comment: $ git checkout upstream/3.5 $ make -j8 $ ./python.exe -m test -R 3:3 test_zipfile [1/1] test_zipfile beginning 6 repetitions 123456 .. 1 test OK. That is a pass on my macOS with upstream/3.5 -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30675> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue694339] IDLE: Dedenting with Shift+Tab
Louie Lu added the comment: PR 2210 add the smart-dedent to shift-tab in Windows, macOS, Linux. I can't saw <> nor <> in 3.7 (master) source code, so I'll take it as removed in IDLE somewhere else. -- nosy: +louielu versions: +Python 3.7 ___ Python tracker <http://bugs.python.org/issue694339> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue694339] IDLE: Dedenting with Shift+Tab
Changes by Louie Lu : -- pull_requests: +2254 ___ Python tracker <http://bugs.python.org/issue694339> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30348] IDLE: Add test_autocoplete unittest
Changes by Louie Lu : -- pull_requests: +2253 ___ Python tracker <http://bugs.python.org/issue30348> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30348] IDLE: Add test_autocoplete unittest
Changes by Louie Lu : -- title: IDLE: Add fetch completions and get entity unittest -> IDLE: Add test_autocoplete unittest ___ Python tracker <http://bugs.python.org/issue30348> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30632] IDLE: add unittests to test_autocomplete
Louie Lu added the comment: This is a duplicate of #30348, I forgot there has a exists PR. I'll combine them and finish left 5 unittest in #30348. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue30632> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30664] Change unittest's _SubTest to not sort its params when printing test failures
Louie Lu added the comment: Additional note, the order will changed it random way in ChainMap, e.g.: >>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items(): >>> print(k, v) ... a 0 c 2 b 1 -restart >>> for k, v in ChainMap({'a': 0, 'b': 1, 'c': 2}, {'b': 3, 'a': 4}).items(): >>> print(k, v) ... b 1 c 2 a 0 -- ___ Python tracker <http://bugs.python.org/issue30664> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30664] Change unittest's _SubTest to not sort its params when printing test failures
Louie Lu added the comment: I think the question will be, when using multiple subTest (this is why using ChainMap I think), how to determine their order?: with self.subTest(c=i, b=i, a=i): with self.subTest(b=i, c=50, a=60): self.assertEqual(i, 2) >>> FAIL: test_foo (__main__.Test) (a=60, b=4, c=50) -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue30664> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7676] IDLE shell shouldn't use TABs
Louie Lu added the comment: In #30663, I add the line number sidebar to editor window. I've attempted to do the same in pyshell, something different that need to concern is the indent prompt showing. -- nosy: +louielu ___ Python tracker <http://bugs.python.org/issue7676> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30663] IDLE: Add lineno sidebar to editor window
Changes by Louie Lu : -- pull_requests: +2233 ___ Python tracker <http://bugs.python.org/issue30663> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30663] IDLE: Add lineno sidebar to editor window
New submission from Louie Lu: In #7676, the desired pattern request from Terry is to create a sidebar and show the prompt in the sidebar. To complete the request, this patch add the lineno sidebar in editor window , to prove that the sidebar in IDLE is feasible. The different in pyshell, it that the sidebar will need to deal with indent (to not show the prompt). -- assignee: terry.reedy components: IDLE messages: 295995 nosy: louielu, terry.reedy priority: normal severity: normal status: open title: IDLE: Add lineno sidebar to editor window type: enhancement versions: Python 3.7 ___ Python tracker <http://bugs.python.org/issue30663> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15786] IDLE code completion window can hang or misbehave with mouse
Louie Lu added the comment: Terry, would you like to verify the fixed? I think it will be good if this fix can be backported in 3.6 before 3.6.2 released. -- ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com