[issue40511] IDLE: properly handle '(' and ')' within calls

2020-11-03 Thread wyz23x2


wyz23x2  added the comment:

Thanks! :D

--

___
Python tracker 
<https://bugs.python.org/issue40511>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2


wyz23x2  added the comment:

Just updated to 3.9. Fixed.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41953>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2


wyz23x2  added the comment:

>>> '1', * 2
Traceback (most recent call last):
  File "", line 3, in 
TypeError: 'int' object is not iterable

Update: 2.__iter__ seems to be called.

--

___
Python tracker 
<https://bugs.python.org/issue41953>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41953] Confusing error message of 50,*2

2020-10-05 Thread wyz23x2


New submission from wyz23x2 :

>>> (50,) * 2
(50, 50)
>>> 50, * 2
Traceback (most recent call last):
  File "", line 2, in 
TypeError: 'int' object is not iterable

This message is confusing. It isn't clear that 50.__iter__ is called. 
tuple(50)*2 seems to happen, which isn't expected (at least to regular users). 
Not like "50 * 2," that relates to parsing.

--
components: Interpreter Core
messages: 378090
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Confusing error message of 50,*2
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41953>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-13 Thread wyz23x2


wyz23x2  added the comment:

Ping...

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-11 Thread wyz23x2


wyz23x2  added the comment:

Ping? We will miss 3.8.6/3.9.0rc2 if it's too late!

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

Can any core reviewer review the PR?

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21248

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +21248
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21247

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

All tests have passed. Now it's time to merge!

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

@epaine The doc (https://docs.python.org/3/library/tkinter.tix.html) states 
"This Tk extension is unmaintained and should not be used in new code.".

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +21247
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -21245

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
pull_requests: +21246
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41370] PEP 585 and ForwardRef

2020-09-10 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
nosy: +wyz23x2
nosy_count: 6.0 -> 7.0
pull_requests: +21245
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/22186

___
Python tracker 
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-10 Thread wyz23x2


wyz23x2  added the comment:

OK. What should the message be? "tkinter.tix is deprecated (and will be removed 
in Python 3.x), use tkinter.ttk instead"?

--

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41730] Show deprecation warnings for tkinter.tix

2020-09-05 Thread wyz23x2


New submission from wyz23x2 :

The tkinter.tix module was deprecated since Python 3.6, but nether 
DeprecationWarning nor PendingDeprecationWarning is warned. It should show a 
message and removal might be scheduled for 3.11/3.12.

--
components: Tkinter
messages: 376455
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Show deprecation warnings for tkinter.tix
type: behavior
versions: Python 3.10, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2


wyz23x2  added the comment:

GH-21915 submitted.

--

___
Python tracker 
<https://bugs.python.org/issue41573>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
pull_requests: +21031
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21915

___
Python tracker 
<https://bugs.python.org/issue41573>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41573] Correct wrong sentences in General FAQ

2020-08-17 Thread wyz23x2


New submission from wyz23x2 :

Release candidate is "rc" not "c";
Python 2.x is not supported anymore.

--
assignee: docs@python
components: Documentation
messages: 375583
nosy: docs@python, wyz23x2
priority: normal
severity: normal
status: open
title: Correct wrong sentences in General FAQ
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41573>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41549] IDLE leaks `_` into hint box

2020-08-14 Thread wyz23x2


New submission from wyz23x2 :

Reproduce:
1. Open shell and enter an expression, say 1+1.
2. Create a new file and save.
3. Enter a letter and press Tab. `_` appears in the box.

--
assignee: terry.reedy
components: IDLE
messages: 375383
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: IDLE leaks `_` into hint box
type: behavior
versions: Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41549>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41526] Python 3.9.0rc1 "setup successful" dialog box overflow

2020-08-11 Thread wyz23x2


wyz23x2  added the comment:

+1. I observe it too.

--
nosy: +wyz23x2

___
Python tracker 
<https://bugs.python.org/issue41526>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40938] urllib.parse.urlunsplit makes relative path to absolute (http:g -> http:///g)

2020-08-11 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.7, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue40938>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41169] socket.inet_pton raised when pass an IPv6 address like "[::]" to it

2020-08-11 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41169>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue22893] IDLE: __future__ does not work in startup code.

2020-08-11 Thread wyz23x2


Change by wyz23x2 :


--
title: Idle: __future__ does not work in startup code. -> IDLE: __future__ does 
not work in startup code.

___
Python tracker 
<https://bugs.python.org/issue22893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue33129] Add kwarg-only option to dataclass

2020-08-11 Thread wyz23x2


wyz23x2  added the comment:

Since '/' was introduced in Python 3.8, support for positional parameters 
should be supported too.

--
nosy: +wyz23x2
versions: +Python 3.9

___
Python tracker 
<https://bugs.python.org/issue33129>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2


wyz23x2  added the comment:

Ping? Which of the 3 should we choose?

--
versions: +Python 3.10

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-08-07 Thread wyz23x2


Change by wyz23x2 :


--
versions:  -Python 3.7

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41434] IDLE: Option to warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2


Change by wyz23x2 :


--
title: IDLE: Warn user on "Run Module" if file is not .py/.pyw -> IDLE: Option 
to warn user on "Run Module" if file is not .py/.pyw

___
Python tracker 
<https://bugs.python.org/issue41434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2


wyz23x2  added the comment:

It should be able to turn on/off this feature.

--

___
Python tracker 
<https://bugs.python.org/issue41434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41434] IDLE: Warn user on "Run Module" if file is not .py/.pyw

2020-07-29 Thread wyz23x2


New submission from wyz23x2 :

It would be great if IDLE shows a note when a non-Python file is attempted to 
run.

--
assignee: terry.reedy
components: IDLE
messages: 374561
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: IDLE: Warn user on "Run Module" if file is not .py/.pyw
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41434>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -20790

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +20802
pull_request: https://github.com/python/cpython/pull/21657

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -20792

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-28 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +20796
pull_request: https://github.com/python/cpython/pull/21654

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-27 Thread wyz23x2


wyz23x2  added the comment:

Submmited PR 21651.

--

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-27 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +20792
pull_request: https://github.com/python/cpython/pull/21651

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-27 Thread wyz23x2


wyz23x2  added the comment:

I agree it's more important.
Working.

--

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-27 Thread wyz23x2


wyz23x2  added the comment:

If no one wants to work on it, I'll pick up that patch.
Should it be section 16.1.5? If not, what section should it fit into?

--

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter tutorial

2020-07-27 Thread wyz23x2


Change by wyz23x2 :


--
title: Document '_' in interpreter in shell tutorial -> Document '_' in 
interpreter tutorial

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter in shell tutorial

2020-07-27 Thread wyz23x2


wyz23x2  added the comment:

Submmited PR 21650. Should we also mention it in:
https://docs.python.org/3/tutorial/interpreter.html
or
https://docs.python.org/3/tutorial/appendix.html
?

(Matching the title of the issue)

--

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter in shell tutorial

2020-07-27 Thread wyz23x2


Change by wyz23x2 :


--
keywords: +patch
pull_requests: +20790
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/21650

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40891] Use PEP 573 in functools

2020-07-27 Thread wyz23x2


Change by wyz23x2 :


--
title: Use pep573 in functools -> Use PEP 573 in functools

___
Python tracker 
<https://bugs.python.org/issue40891>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41399] Add stacklevel support for exceptions

2020-07-26 Thread wyz23x2


New submission from wyz23x2 :

Now warnings.warn supports a stacklevel parameter. But many users want 
exceptions to support it too.
Related:
https://stackoverflow.com/questions/34175111/raise-an-exception-from-a-higher-level-a-la-warnings

--
components: Interpreter Core
messages: 374308
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add stacklevel support for exceptions
type: enhancement
versions: Python 3.10, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41399>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41314] PEP 563 and annotations __future__ mandatory version

2020-07-25 Thread wyz23x2


wyz23x2  added the comment:

Ping?

--

___
Python tracker 
<https://bugs.python.org/issue41314>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter in shell tutorial

2020-07-25 Thread wyz23x2


Change by wyz23x2 :


--
nosy: +xtreak

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Document '_' in interpreter in shell tutorial

2020-07-25 Thread wyz23x2


wyz23x2  added the comment:

But there's nothing in https://docs.python.org/3/tutorial/interpreter.html. It 
should be stated there.

--
components:  -Interpreter Core
nosy:  -xtreak
title: Make '_' behavior in shell more clear -> Document '_' in interpreter in 
shell tutorial

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Make '_' behavior in shell more clear

2020-07-25 Thread wyz23x2


wyz23x2  added the comment:

I think this should be documented more clearly. Or else users might feel 
surprised:
>>> print(123)
123
>>> _
Traceback (most recent call last):  
  
File "", line 1, in  
  
NameError: name '_' is not defined 
>>> # There is an expression!?

--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
title: Behiavior of '_' strange in shell -> Make '_' behavior in shell more 
clear

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41394] Behiavior of '_' strange in shell

2020-07-25 Thread wyz23x2


New submission from wyz23x2 :

>>> (None and True)
>>> print(_)
False
>>> print((None and True))  # Not same?!
None
>>> 

This isn't right.

P.S. What component should this be? IDLE? It's the shell, not just IDLE. Core? 
Not that deep!

--
messages: 374260
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Behiavior of '_' strange in shell
type: behavior
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41394>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41393] Fix FAQ example to use __import__('functools').reduce

2020-07-25 Thread wyz23x2


New submission from wyz23x2 :

https://docs.python.org/3/faq/programming.html#is-it-possible-to-write-obfuscated-one-liners-in-python
https://github.com/python/cpython/blob/3.8/Doc/faq/programming.rst
The 3rd raises a NameError because reduce was moved into functools. 
__import__('functools').reduce should fix this.

--
assignee: docs@python
components: Documentation
messages: 374258
nosy: docs@python, wyz23x2
priority: normal
severity: normal
status: open
title: Fix FAQ example to use __import__('functools').reduce
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue41393>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41384] tkinter raises TypeError when it's supposed to raise TclError

2020-07-25 Thread wyz23x2


Change by wyz23x2 :


--
type:  -> behavior
versions: +Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41384>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41392] SyntaxError rather than NameError

2020-07-25 Thread wyz23x2


Change by wyz23x2 :


--
title: SyntaxError rather than NameError error -> SyntaxError rather than 
NameError

___
Python tracker 
<https://bugs.python.org/issue41392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41392] SyntaxError rather than NameError error

2020-07-25 Thread wyz23x2


wyz23x2  added the comment:

There is nothing *wrong* with the syntax; it's just a regular assignment.
It's not something like `False = 4` or `while = 6` which '=' is invalid.

--
nosy: +wyz23x2
title: Syntax error rather than run time error -> SyntaxError rather than 
NameError error

___
Python tracker 
<https://bugs.python.org/issue41392>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41314] __future__ doc and PEP 563 conflict

2020-07-17 Thread wyz23x2


Change by wyz23x2 :


--
components: +Library (Lib)

___
Python tracker 
<https://bugs.python.org/issue41314>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41319] IDLE 3.8 can not save and run this file

2020-07-17 Thread wyz23x2


wyz23x2  added the comment:

Is bpo-41300 related? It talks about non-ASCII in IDLE.

--
nosy: +wyz23x2

___
Python tracker 
<https://bugs.python.org/issue41319>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41319] IDLE 3.8 can not save and run this file

2020-07-17 Thread wyz23x2


Change by wyz23x2 :


--
nosy:  -wyz23x2

___
Python tracker 
<https://bugs.python.org/issue41319>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41241] Unnecessary Type casting in 'if condition'

2020-07-17 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests: +20655
pull_request: https://github.com/python/cpython/pull/21518

___
Python tracker 
<https://bugs.python.org/issue41241>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41241] Unnecessary Type casting in 'if condition'

2020-07-17 Thread wyz23x2


Change by wyz23x2 :


--
pull_requests:  -20654

___
Python tracker 
<https://bugs.python.org/issue41241>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41241] Unnecessary Type casting in 'if condition'

2020-07-17 Thread wyz23x2


Change by wyz23x2 :


--
nosy: +wyz23x2
nosy_count: 3.0 -> 4.0
pull_requests: +20654
pull_request: https://github.com/python/cpython/pull/21518

___
Python tracker 
<https://bugs.python.org/issue41241>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41314] __future__ doc and PEP 563 conflict

2020-07-16 Thread wyz23x2


Change by wyz23x2 :


--
assignee:  -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.10, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue41314>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41314] __future__ doc and PEP 563 conflict

2020-07-16 Thread wyz23x2


New submission from wyz23x2 :

In https://docs.python.org/3/library/__future__.html:
annotations | 3.7.0b1 | *4.0* | PEP 563: Postponed evaluation of annotations

In PEP 563:
Starting with Python 3.7, a __future__ import is required to use the described 
functionality. No warnings are raised.

In Python *3.10* this will become the default behavior. Use of annotations 
incompatible with this PEP is no longer supported.

Python 4.0 or 3.10? Not clear.

--
messages: 373753
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: __future__ doc and PEP 563 conflict

___
Python tracker 
<https://bugs.python.org/issue41314>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40477] Python Launcher app on macOS 10.15 Catalina fails to run scripts

2020-07-16 Thread wyz23x2


Change by wyz23x2 :


--
type:  -> crash

___
Python tracker 
<https://bugs.python.org/issue40477>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41313] OverflowError still raised when int limited in sys.maxsize

2020-07-16 Thread wyz23x2


wyz23x2  added the comment:

Tested. 2**31-31 is the max, which is 2147483617, compared to sys.maxsize's 
9223372036854775807!

--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue41313>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41313] OverflowError still raised when int limited in sys.maxsize

2020-07-16 Thread wyz23x2


wyz23x2  added the comment:

Needs to add 10 zeros (sys.maxsize//100) to get it work. //200 
doesn't work.
Python version: 3.8.4
Platform: Windows 10 2004

--

___
Python tracker 
<https://bugs.python.org/issue41313>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41313] OverflowError still raised when int limited in sys.maxsize

2020-07-16 Thread wyz23x2


New submission from wyz23x2 :

Consider this code:
import sys
sys.setrecursionlimit(sys.maxsize)
Causes this:
OverflowError: Python int too large to convert to C int
So what is the limit? It should be sys.maxsize.
These 2 also don't work:
sys.setrecursionlimit(sys.maxsize-1)
sys.setrecursionlimit(sys.maxsize//2)
That is a big difference with at least 50%.

--
components: C API, Library (Lib)
messages: 373747
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: OverflowError still raised when int limited in sys.maxsize
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41313>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-07-15 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.10

___
Python tracker 
<https://bugs.python.org/issue40360>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41266] Wrong hint when class methods and builtins named same

2020-07-10 Thread wyz23x2


New submission from wyz23x2 :

There is a function hex(number, /), and float objects have a method hex().
When something like 1.3.hex( is typed, the yellow box's first line contains 
hex(number, /). But the method is actually hex(), no arguments. It confuses 
users.
And when 1.3.list( is typed, there isn't a list() method in floats, but the 
hint still pops up and shows the __doc__ for list(iterable=(), /).

--
assignee: terry.reedy
components: IDLE
messages: 373455
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Wrong hint when class methods and builtins named same
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41266>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41075] Make support of navigating through prev. commands in IDLE more conspicuous

2020-07-10 Thread wyz23x2


Change by wyz23x2 :


--
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue41075>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2


Change by wyz23x2 :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue41251>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2


wyz23x2  added the comment:

Help on _Feature in module __future__ object:   


class _Feature(builtins.object)
--snip--
|  getMandatoryRelease(self)
|  Return release in which this feature will become mandatory.
|
|  This is a 5-tuple, of the same form as sys.version_info, or, if
| the feature was dropped, is None. 
--snip--

--

___
Python tracker 
<https://bugs.python.org/issue41251>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2


Change by wyz23x2 :


--
components: +Library (Lib)
versions: +Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41251>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41251] __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

2020-07-08 Thread wyz23x2


New submission from wyz23x2 :

__future__.barry_as_FLUFL turns x!=y into x<>y.
But the doc by help() says:
Help on _Feature in module __future__ object:   


class _Feature(builtins.object)
--snip--
|  getMandatoryRelease(self)
  |  Return release in which 
this feature will become mandatory. 
   |
 |  This is a 
5-tuple, of the same form as sys.version_info, or, if   
 |  the feature was dropped, is None. 
--snip--

Since <> is dropped, __future__.barry_as_FLUFL.getMandatoryRelease() should be 
None. But it instead returns (4, 0, 0, 'alpha', 0), which
means it will become default in Python 4 and drop != (!= is invalid
after the __future__ import).
That shouldn't be right.

--
messages: 373369
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: __future__.barry_as_FLUFL.getMandatoryRelease() is wrong

___
Python tracker 
<https://bugs.python.org/issue41251>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41250] Number separators in different places

2020-07-08 Thread wyz23x2


wyz23x2  added the comment:

Q: Why not use f"{var:,}".replace(',', sepchar) for the sepchar parameter?
A: It is very complicated in the case below:
num = 1234567
text = 'Hello, world!'
print(f"{num:,}{text}").replace(',', ' ') # Becomes '1 234 567Hello world!'
print(f"{f'{num:,}'.replace(',', ' ')}{text}") # Too complicated!
print(f"{num:,}".replace(',', ' ')+text) # Slow!

--

___
Python tracker 
<https://bugs.python.org/issue41250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41250] Number separators in different places

2020-07-08 Thread wyz23x2

New submission from wyz23x2 :

The current syntax is this for thousand separators:
f'{var:,}'
It will return this when var is 1234567:
'1,234,567'
But sometimes we need a way to insert them in other places. For example:
123456789 → '1,2345,6789' (4)
62938757312 → '6,29387,57312' (5)
This could be done like this:
Idea 1:
Add a new method to string:
string.sep(num: int_or_float, interval: int_or_iterable = 3, 
   sepchar: str = ',')
>>> import string
>>> string.sep(1234567, 3)
'1,234,567'
>>> string.sep(1234567890, range(1, 4))
'1,23,456,7890'
>>> string.sep('Hello')
TypeError: Invalid number 'Hello'
>>> string.sep(12345678, sepchar=' ')
'12 345 678'
>>> string.sep(123456789, 4, '|')
'1|2345|6789'

Idea 2: (Not as powerful as above)
(Future)
>>> f'{123456789:4,}'
'1,2345,6789'
>>> f'{62938757312:5,}'
'6,29387,57312'
>>> f'{1234567:,}' # Equal to f'{1234567:3,}'
'1,234,567'
(Current)
>>> f'{12345678:5,}' # 5 discarded
'12,345,678'

--
components: Interpreter Core, Library (Lib)
messages: 373367
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Number separators in different places
versions: Python 3.10, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41121] Path sep. in IDLE on Windows changes

2020-06-25 Thread wyz23x2


New submission from wyz23x2 :

Python supports "/" and "\" separators on Windows.
So in IDLE, the path shown sometimes is:
D:\xxx\xxx
Sometimes is:
D:/xxx/xxx

That isn't right.

--
assignee: terry.reedy
components: IDLE
messages: 372395
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Path sep. in IDLE on Windows changes
type: behavior
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41121>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41075] Make support of navigating through prev. commands in IDLE more conspicuous

2020-06-24 Thread wyz23x2


wyz23x2  added the comment:

Doesn't work? The  and  work perfectly in 3.8.3!
Th problem now is that only very few people know it. There should be a clearer 
way.

--
title: Add support of navigating through prev. commands in IDLE -> Make support 
of navigating through prev. commands in IDLE more conspicuous

___
Python tracker 
<https://bugs.python.org/issue41075>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41075] Add support of navigating through prev. commands in IDLE

2020-06-22 Thread wyz23x2

New submission from wyz23x2 :

Terminals like CMD have support of navigating through commands with ↑↓. While 
directly implementing the arrows is not good in IDLE (the use for jumping to 
the prev. line in GUI is needed), there should be a good way.
Some ways:
1. Alt+↑↓. The current behavior is exactly like ↑↓.
2. A "Previous input" option in the right-click menu.
3. A "Navigate" option in the right-click menu. A GUI like this will pop up:
——
┃Navigate┃
┃  × The [4]th command   ┃
┃  O [1] command before  ┃
┃___ ┃
┃┃Paste┃ ┃
┃——— ┃
——

It would be better if 2&3 are together.

--
assignee: terry.reedy
components: IDLE
messages: 372085
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Add support of navigating through prev. commands in IDLE
type: enhancement
versions: Python 3.10, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue41075>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40591] \r broken in IDLE

2020-05-11 Thread wyz23x2


New submission from wyz23x2 :

When you run this code:

import time
for i in range(10):
print(f"\r{i}", end='', flush=True)
time.sleep(1)
print('\n')

On CMD it prints 0 at the first time, then it will erase it and print the 
increased i. But on IDLE it just prints "0123456789" -- that isn't right.

--
assignee: terry.reedy
components: IDLE
messages: 368616
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: \r broken in IDLE
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue40591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40511] IDLE yellow hint frame blinks when entering () in strings in functions/classes

2020-05-05 Thread wyz23x2


Change by wyz23x2 :


--
title: IDLE yellow hint frame blinks when entering () in strings -> IDLE yellow 
hint frame blinks when entering () in strings in functions/classes

___
Python tracker 
<https://bugs.python.org/issue40511>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40511] IDLE yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2


Change by wyz23x2 :


--
title: Yellow hint frame blinks when entering () in strings -> IDLE yellow hint 
frame blinks when entering () in strings

___
Python tracker 
<https://bugs.python.org/issue40511>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40511] Yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2

wyz23x2  added the comment:

OMG, request too large. I can't upload mp4 /(ㄒoㄒ)/~~

--

___
Python tracker 
<https://bugs.python.org/issue40511>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40511] Yellow hint frame blinks when entering () in strings

2020-05-05 Thread wyz23x2


New submission from wyz23x2 :

The yellow frame blinks as shown in mp4. It's annoying and isn't good to the 
eyes.

--
assignee: terry.reedy
components: IDLE
messages: 368133
nosy: terry.reedy, wyz23x2
priority: normal
severity: normal
status: open
title: Yellow hint frame blinks when entering () in strings
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue40511>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-05-04 Thread wyz23x2


wyz23x2  added the comment:

OK.

--

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-05-04 Thread wyz23x2


wyz23x2  added the comment:

Patch?

--

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40386] Strange behavior during invalid import of modules without if __name__ == "__main__"

2020-04-24 Thread wyz23x2


Change by wyz23x2 :


--
type:  -> behavior

___
Python tracker 
<https://bugs.python.org/issue40386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40386] Strange behavior during invalid import of modules without if __name__ == "__main__"

2020-04-24 Thread wyz23x2


wyz23x2  added the comment:

Sorry, it's "of 'this' is run", not "un".

--

___
Python tracker 
<https://bugs.python.org/issue40386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40386] Strange behavior during invalid import of modules without if __name__ == "__main__"

2020-04-24 Thread wyz23x2


Change by wyz23x2 :


--
components: +Library (Lib)
versions: +Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue40386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40386] Strange behavior during invalid import of modules without if __name__ == "__main__"

2020-04-24 Thread wyz23x2


New submission from wyz23x2 :

This behavior:

Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit 
(AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> import this.main
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
Traceback (most recent call last):
  File "", line 1, in 
import this.main
ModuleNotFoundError: No module named 'this.main'; 'this' is not a package
>>> import this.main
Traceback (most recent call last):
  File "", line 1, in 
import this.main
ModuleNotFoundError: No module named 'this.main'; 'this' is not a package
>>> del this
Traceback (most recent call last):
  File "", line 1, in 
del this
NameError: name 'this' is not defined
>>> import this
>>>

This confuses users because the code of "this" is un the 1st time, but not the 
times after it. And "this" isn't actually imported after that; stranger is when 
you perform the correct import, it doesn't run.

Is this right?

--
messages: 367253
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Strange behavior during invalid import of modules without if __name__ == 
"__main__"

___
Python tracker 
<https://bugs.python.org/issue40386>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3/idlelib/turtledemo/tkinter.sub/test_*/?)

2020-03-29 Thread wyz23x2


wyz23x2  added the comment:

My opinion:
I think No.2 makes more sense to users that visit the docs directly by 
https://docs.python.org/3.8/library/lib2to3.html; they will copy the 
"docs.python.org/version/library/modulename.html" format from other modules. 
But I also agree it's fragile.
No.3 is good too, according to me. Can use it if No.2 is too fragile.

--

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40051] Dead link in help(lib2to3)

2020-03-23 Thread wyz23x2


New submission from wyz23x2 :

When typing this in shell:
>>> import lib2to3
>>> help(lib2to3)

The output contains this link:
--snip--
MODULE REFERENCE
https://docs.python.org/3.8/library/lib2to3 <--

The following documentation is automatically generated from the Python
--snip--

But when you access it, 404!
This works:
https://docs.python.org/3.8/library/2to3.html#module-lib2to3

Please change it. Thanks!

--
assignee: docs@python
components: 2to3 (2.x to 3.x conversion tool), Documentation, Library (Lib)
messages: 364917
nosy: docs@python, wyz23x2
priority: normal
severity: normal
status: open
title: Dead link in help(lib2to3)
type: performance
versions: Python 3.8

___
Python tracker 
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39893] Add set_terminate() to logging

2020-03-09 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.5, Python 3.6, Python 3.7

___
Python tracker 
<https://bugs.python.org/issue39893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39768] remove tempfile.mktemp()

2020-03-07 Thread wyz23x2


Change by wyz23x2 :


--
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39893] Add set_terminate() to logging

2020-03-07 Thread wyz23x2


wyz23x2  added the comment:

typo: "with something else", not "wit something else". Sorry for that.

--

___
Python tracker 
<https://bugs.python.org/issue39893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39893] Add set_terminate() to logging

2020-03-07 Thread wyz23x2


New submission from wyz23x2 :

Sometimes, we want to remove the ending \n and sometimes replace it wit 
something else, like print(). But logging doesn't support that.
I'd want a set_terminate() (Or set_end()) function that does that. I think it's 
easy. Just insert this at line 1119 of __init__ of 3.8.2:
def set_terminator(string='\n'):
StreamHandler.terminator = string
Thanks!

--
components: Library (Lib)
messages: 363622
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add set_terminate() to logging
type: enhancement
versions: Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39893>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39768] remove tempfile.mktemp()

2020-02-27 Thread wyz23x2


wyz23x2  added the comment:

Well, I just think it's *serious*.
I respect your thoughts. If you want to close this, you can.

--

___
Python tracker 
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-27 Thread wyz23x2


Change by wyz23x2 :


--
nosy:  -barry, r.david.murray

___
Python tracker 
<https://bugs.python.org/issue39772>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39772] Python 2 FAQ shown in h...@python.org auto reply

2020-02-26 Thread wyz23x2


New submission from wyz23x2 :

The auto-reply from help@python contains this:

The Python FAQ is available at

http://docs.python.org/2/faq/index.html

Why is it .org/2/faq, not .org/3/faq?

--
components: email
files: email.png
messages: 362784
nosy: barry, r.david.murray, wyz23x2
priority: normal
severity: normal
status: open
title: Python 2 FAQ shown in h...@python.org auto reply
Added file: https://bugs.python.org/file48919/email.png

___
Python tracker 
<https://bugs.python.org/issue39772>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39768] remove tempfile.mktemp()

2020-02-26 Thread wyz23x2


Change by wyz23x2 :


--
nosy:  -ZackerySpytz

___
Python tracker 
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39768] remove tempfile.mktemp()

2020-02-26 Thread wyz23x2


wyz23x2  added the comment:

Reopen.
1.See https://mail.python.org/pipermail/python-dev/2019-March/156765.html and 
https://owasp.org/www-community/vulnerabilities/Insecure_Temporary_File. It's 
*serious*.
2.Why not use this to generate a
temporary name that an other program will create/act on?
import secrets
path = f"{x}{secrets.token_hex(n)}" # n is an large int
# x is a path like "/tmp"
# do something...

--
resolution: duplicate -> 
status: closed -> open

___
Python tracker 
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   >