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/issue35
Change by Louie Lu :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue35782>
___
___
Python-bugs-list
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 "
Louie Lu <m...@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 i
Louie Lu <m...@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 |
Louie Lu <m...@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 sett
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31329>
___
___
Python
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
Louie Lu added the comment:
Or the output should be:
>>> from threading import Timer
>>> Timer(0.1, lambda: print('hello'), ()).start()
>>>
'hello'
>>>
--
___
Python tracker <rep...@bugs.python.
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 impor
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 <rep...@bugs.python.org>
Louie Lu added the comment:
da..., Terry reverts this soon.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29910>
___
___
Pyth
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +3053
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue31139>
___
__
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +3033
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30723>
___
__
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
Louie Lu added the comment:
This may relate to #31050, I would like to propose to change the name `GenTab`
to `GeneralTab`. `GenTab` is ambiguous to `GenerateTab` in the first glimpse.
How do you think, Terry and Cheryl ?
--
___
Python tracker <
Louie Lu added the comment:
I'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 y
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
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2874
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue19903>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
title: urrlib.quote quotes too many chars, e.g., '()' -> urllib.quote quotes
too many chars, e.g., '()'
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
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
Louie Lu added the comment:
Yes, Terry's patch fixed this.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30968>
___
___
Pyth
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 <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
PR 2754 changed it to use `read_string`.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30917>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2813
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30917>
___
__
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
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 res
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
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 P
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
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
Louie Lu added the comment:
Upload the Linux/MacOS version of coverage usage.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2794
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30934>
___
__
Louie Lu added the comment:
After merging this one, I can provide the version of Linux and MacOS.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
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
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 <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2755
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30917>
___
__
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2732
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30870>
___
__
Louie Lu added the comment:
Hmmm, I think it is a mistake of my test, it is something inside configdialog
__init__ make unittest can't do event_generate, but not this one
`self.withdraw`.
--
resolution: -> not a bug
stage: -> resolved
status: open -&g
Louie Lu added the comment:
Can reproduce this problem in Chromium 59.0.3071, it seems affect every
selectable version in docs.python.org. Also, devguide has some page down, too.
* devguide: https://docs.python.org/devguide/triaging.html
--
nosy: +louielu
type: resource usage
Louie Lu added the comment:
configdialog misuse `self.withdraw` at init, it should be `self.wm_withdraw`,
#30900 fix this problem. After that, it should be a success to use
event_generate in configdialog unittest with no `self.withdraw
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2729
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30900>
___
__
New submission from Louie Lu:
Introduce in #30728, commit bac7d3363b099d, `self.wm_withdraw` has been changed
into `self.withdraw`. This make #30870 un-testable since it using
`self.withdraw` will block out `event_generate`.
This issue revert `self.widthdraw` to `self.wm_withdraw
Louie Lu added the comment:
It 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
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 <
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2727
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30899>
___
__
New submission from Louie Lu:
Add IdleConfParser and IdleUserConfParser unittest.
--
assignee: terry.reedy
components: IDLE
messages: 298126
nosy: louielu, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Add idle config parser unittest
versions: Python 3.7
Changes by Louie Lu <m...@louie.lu>:
--
title: Comment error in Korean language -> IDLE: Input method error in comment
with Korean language
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Louie Lu added the comment:
I'm using Arch Linux with HIME input method, and using 3.7a0 Python. But I
can't reproduce your problem in Korean input.
Could you provide how to type in the sentence in your picture? (Roman or the
stroke maybe) and your environment?
thanks.
--
nosy
Changes by Louie Lu <m...@louie.lu>:
--
type: crash -> behavior
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30890>
___
___
Louie Lu added the comment:
Terry: How about to support XDG base directory on Unix[1]?
[1]: https://wiki.archlinux.org/index.php/XDG_Base_Directory_support
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.p
Louie Lu added the comment:
How about only taking warning when not able to create dir at GetUserCfgDir(),
then take the permission handler in other place?
e.g. when user trying to save the config in bad dir, pop-out a dialog to tell
it is permission problem or dir not eixsts...etc
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
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2683
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30870>
___
__
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2682
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13802>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2679
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30869>
___
__
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
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 <rep...@bugs.python.
Louie Lu added the comment:
I'm trying to add the test on configdialog, currently working on KeysTest.
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@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
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2520
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29926>
___
__
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)
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
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
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
Changes by Louie Lu <m...@louie.lu>:
--
versions: +Python 3.6, Python 3.7 -Python 3.4, Python 3.5
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
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(e
Louie Lu added the comment:
@xdegaye, would you like to review this PR? thanks.
--
nosy: +xdegaye
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2446
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30761>
___
__
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
Changes by Louie Lu <m...@louie.lu>:
--
components: +Tkinter
title: GUI tests fail on Ubuntu -> ttk: GUI tests fail on Ubuntu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
Changes by Louie Lu <m...@louie.lu>:
--
nosy: +haypo
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30726>
___
___
Python-bugs
Louie Lu added the comment:
Also, would you like to contribute with PR on GitHub?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Louie Lu added the comment:
Hi Christoph, chould you provide a small example that breaks the regex demo?
thanks!
--
nosy: +louielu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
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
>
Changes by Louie Lu (old) <g...@louie.lu>:
--
pull_requests: +2353
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5680>
___
__
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 <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2287
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30523>
___
__
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 <rep...@bugs.python.org>
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
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2283
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30523>
___
__
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
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
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2254
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue694339>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2253
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30348>
___
__
Changes by Louie Lu <m...@louie.lu>:
--
title: IDLE: Add fetch completions and get entity unittest -> IDLE: Add
test_autocoplete unittest
___
Python tracker <rep...@bugs.python.org>
<http://bugs.pyt
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 tra
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':
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:
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 <
Changes by Louie Lu <m...@louie.lu>:
--
pull_requests: +2233
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30663>
___
__
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
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 <rep...@bugs.python.org>
<http://bugs.python.org/i
1 - 100 of 301 matches
Mail list logo