Louie Lu added the comment:
Relate to #29448
--
___
Python tracker
<http://bugs.python.org/issue30247>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
components: +Library (Lib)
nosy: +brett.cannon
___
Python tracker
<http://bugs.python.org/issue30247>
___
___
Python-bugs-list mailin
Changes by Louie Lu :
--
pull_requests: +1528
___
Python tracker
<http://bugs.python.org/issue30247>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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))
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)
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
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
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
Changes by Louie Lu :
--
pull_requests: +1599
___
Python tracker
<http://bugs.python.org/issue29447>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
pull_requests: +1598
___
Python tracker
<http://bugs.python.org/issue29947>
___
___
Python-bugs-list mailing list
Unsubscribe:
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(
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
Changes by Louie Lu :
--
pull_requests: +1601
___
Python tracker
<http://bugs.python.org/issue30303>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue30303>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Louie Lu :
--
pull_requests: +1612
___
Python tracker
<http://bugs.python.org/issue21261>
___
___
Python-bugs-list mailing list
Unsubscribe:
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,
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
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
Changes by Louie Lu :
--
pull_requests: +1617
___
Python tracker
<http://bugs.python.org/issue15786>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Louie Lu :
--
pull_requests: +1649
___
Python tracker
<http://bugs.python.org/issue30348>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Louie Lu :
--
pull_requests: +1682
___
Python tracker
<http://bugs.python.org/issue28889>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Louie Lu :
--
pull_requests: +1693
___
Python tracker
<http://bugs.python.org/issue23667>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
pull_requests: +1694
___
Python tracker
<http://bugs.python.org/issue23667>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Louie Lu :
--
pull_requests: +1737
___
Python tracker
<http://bugs.python.org/issue23667>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
pull_requests: +1738
___
Python tracker
<http://bugs.python.org/issue23667>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Louie Lu :
--
pull_requests: +1739
___
Python tracker
<http://bugs.python.org/issue23667>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Louie Lu :
--
pull_requests: +1790
___
Python tracker
<http://bugs.python.org/issue30290>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Changes by Louie Lu :
--
pull_requests: +1802
___
Python tracker
<http://bugs.python.org/issue26949>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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
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
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
Changes by Louie Lu :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue30429>
___
___
Python-bugs-list mailing list
Unsubscrib
Changes by Louie Lu :
--
pull_requests: +1841
___
Python tracker
<http://bugs.python.org/issue30429>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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
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
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"
Changes by Louie Lu :
--
pull_requests: +1897
___
Python tracker
<http://bugs.python.org/issue15786>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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,
Louie Lu added the comment:
This bug is introduce at commit: 37e4ef7b17ce6e98ca725c0a53ae14c313c0e48c, then
fixed at commit: 998c20962ca3e2e693c1635efe76c0144dde76fc
--
___
Python tracker
<http://bugs.python.org/issue30
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
Changes by Louie Lu :
--
pull_requests: +1907
___
Python tracker
<http://bugs.python.org/issue14111>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Louie Lu :
--
pull_requests: +1960
___
Python tracker
<http://bugs.python.org/issue30521>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Louie Lu :
--
pull_requests: +2178
___
Python tracker
<http://bugs.python.org/issue30632>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
New submission from Louie Lu:
There is a XXX in v3.5.0 shows that need to dealing with deque maxlen setting
case in deque_repeat.
Although there have common case for deque size 1 with maxlen, other size of
deque with maxlen still using for-loop to extend the deque, without any
detection
Changes by Louie Lu :
--
pull_requests: +223
___
Python tracker
<http://bugs.python.org/issue29634>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Louie Lu added the comment:
Raymond: comment has changed, pushed on to GitHub.
--
___
Python tracker
<http://bugs.python.org/issue29634>
___
___
Python-bugs-list m
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
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
Changes by Louie Lu :
--
pull_requests: +257
___
Python tracker
<http://bugs.python.org/issue9285>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Louie Lu :
--
pull_requests: +262
___
Python tracker
<http://bugs.python.org/issue23578>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
201 - 300 of 301 matches
Mail list logo