[issue41266] IDLE call hints and completions confused by ints and floats

2022-01-31 Thread wyz23x2


wyz23x2  added the comment:

Ping, this issue is 571 days old.

--

___
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



[issue45420] Python 3.10 final installation failure

2021-12-08 Thread wyz23x2


wyz23x2  added the comment:

Problem solved by installing 3.10.1. (Why?) Thanks!

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

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



[issue45804] IDLE - faster shell writing

2021-11-21 Thread wyz23x2


Change by wyz23x2 :


--
assignee:  -> terry.reedy
components: +IDLE

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



[issue45420] Python 3.10 final installation failure

2021-10-29 Thread wyz23x2


wyz23x2  added the comment:

BTW, how does the installer detect whether if another version is installed?

--

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



[issue45420] Python 3.10 final installation failure

2021-10-29 Thread wyz23x2


wyz23x2  added the comment:

I upgraded to Windows 11 _and_ deleted all Python 3.10 related installations in 
regedit. Still doesn't work :(

--

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



[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2


wyz23x2  added the comment:

> This kind of issue can also arise when you directly delete the install, 
> rather than uninstalling it.
Sort of, but I expected upgrading with a new directory to work. When the first 
few times didn't work, I deleted the installation directly (should have 
uninstalled it). :(
> Best thing to do if you can is to run a repair through the Add Remove 
> Programs entry, and then uninstall it (this is because ensurepip needs a 
> working install to uninstall itself... not ideal, but that's how it was 
> added). Then you should be able to do the proper install.
Running from the Add Remove Programs entry prompts for admin access. (Is there 
a way to do that in Control Panel?) Directly running "repair" in the rc2 
installer with admin says "No Python 3.10 installation was detected", error 
code: 0x8007064. (Same error message & code when running 3.10 final 
installation.)

Sorry if the problem is complicated.

--

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



[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2


wyz23x2  added the comment:

I'm sorry, but the option is grayed out. See attached screenshot.

--
Added file: https://bugs.python.org/file50366/screenshot.png

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



[issue45420] Python 3.10 final installation failure

2021-10-16 Thread wyz23x2


wyz23x2  added the comment:

I did.

--

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



[issue45420] Python 3.10 final installation failure

2021-10-14 Thread wyz23x2

wyz23x2  added the comment:

 

--

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



[issue45456] 'pass' in 'if-else' linear expression

2021-10-12 Thread wyz23x2


wyz23x2  added the comment:

Well,
x = 1 if False else pass
and
if False: x = 1

1 line vs 1 line :) It's just not needed.

--
nosy: +wyz23x2

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



[issue23262] webbrowser module broken with Firefox 36+

2021-10-12 Thread wyz23x2


wyz23x2  added the comment:

I think this six year old issue can be closed. All patches for 3.x are 
committed, and Python 2.7 is EOL.

--
nosy: +wyz23x2

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



[issue45420] Python 3.10 final installation failure

2021-10-09 Thread wyz23x2


wyz23x2  added the comment:

Note: I'm trying to move the installation path from 
Local\Programs\Python\Python310 under user dir to C:\Program Files\Python310.

--
Added file: https://bugs.python.org/file50336/old_modify_log.log

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



[issue45420] Python 3.10 final installation failure

2021-10-09 Thread wyz23x2


New submission from wyz23x2 :

Hi, I've downloaded Python 3.10 final (64-bit) from python.org on October 6. 
But when I run the installer with administrator permission, it says "No Python 
3.10 installation was detected". Error code: 0x80070643. The stranger thing is 
when I run "repair" from the 3.10rc2 installer, it's the same message & code; 
but, if "modify" is run, the window is "A newer version of Python 3.10 is 
already installed", error code same. Thanks for help.

--
components: Installation, Windows
files: new_install_log.log
messages: 403566
nosy: paul.moore, steve.dower, tim.golden, wyz23x2, zach.ware
priority: normal
severity: normal
status: open
title: Python 3.10 final installation failure
type: crash
versions: Python 3.10
Added file: https://bugs.python.org/file50335/new_install_log.log

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



[issue41266] IDLE call hints and completions confused by ints and floats

2021-09-21 Thread wyz23x2


wyz23x2  added the comment:

Ping.
>>> from datetime import datetime as d
>>> d(2021, 9, 22)-d(2020, 7, 10)
datetime.timedelta(days=439)

--

___
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



[issue27035] Cannot set exit code in atexit callback

2021-07-26 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7

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



[issue44640] Fix punctuation in isinstance() error message

2021-07-16 Thread wyz23x2


Change by wyz23x2 :


--
title: Typos in error messages of isinstance() & issubclass() -> Fix 
punctuation in isinstance() error message

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


wyz23x2  added the comment:

Changed to only 2).

--

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


Change by wyz23x2 :


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

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



[issue44640] Typos in error messages of isinstance() & issubclass()

2021-07-14 Thread wyz23x2


New submission from wyz23x2 :

>>> isinstance(2, 1)
Traceback (most recent call last):
  ...
TypeError: isinstance() arg 2 must be a type, a tuple of types or a union
>>> issubclass(int, 1)
Traceback (most recent call last):
  ..
TypeError: issubclass() arg 2 must be a class, a tuple of classes, or a union.

1) It should be "an union", not "a union".
2) The punctuation marks aren't the same -- there's a comma before "or" in 
issubclass, but not isinstance(). And issubclass()'s ends with a period, which 
isn't the same with other builtins' messages.

--
components: Interpreter Core
messages: 397499
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Typos in error messages of isinstance() & issubclass()
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

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



[issue44317] Suggestion for better syntax errors in tokenizer errors

2021-06-06 Thread wyz23x2


Change by wyz23x2 :


--
type: behavior -> enhancement

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



[issue44317] Problems of int literal SyntaxErrors

2021-06-05 Thread wyz23x2


wyz23x2  added the comment:

Another 2 problems:
1.
>>> 0b1112
  File "", line 1
0b1112
 ^
SyntaxError: invalid digit '2' in binary literal
>>> 0o5780
  File "", line 1
0o5780
^
SyntaxError: invalid digit '8' in octal literal
But:
>>> 0x2fag
  File "", line 1
0x2fag
^^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
>>> 
Is this expected?

2.
>>> 0o91
  File "", line 1
0o91
 ^
SyntaxError: invalid digit '9' in octal literal
>>> 0b21
  File "", line 1
0b21
 ^
SyntaxError: invalid digit '2' in binary literal

The ^ is misplaced again, even though, say the 0b1112 example above works.

--
title: Misleading mark of octal SyntaxErrors -> Problems of int literal 
SyntaxErrors

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



[issue44318] Asyncio classes missing __slots__

2021-06-05 Thread wyz23x2


Change by wyz23x2 :


--
nosy:  -wyz23x2

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



[issue44318] Asyncio classes missing __slots__

2021-06-05 Thread wyz23x2


wyz23x2  added the comment:

OK, so:
>>> (1).__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'int' object has no attribute '__slots__'
>>> 4.5.__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'float' object has no attribute '__slots__'
>>> complex(5, 2).__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'complex' object has no attribute '__slots__'
>>> 'Hello'.__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'str' object has no attribute '__slots__'
>>> b'50'.__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'bytes' object has no attribute '__slots__'
>>> [2.72, 3.14].__slots__
Traceback (most recent call last):
  File "", line 1, in 
AttributeError: 'list' object has no attribute '__slots__'
>>> 

Many many more.
So these *all* need __slots__???
That a major change into Python 5000.

--
nosy: +wyz23x2

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



[issue44317] Misleading mark of octal SyntaxErrors

2021-06-05 Thread wyz23x2


New submission from wyz23x2 :

Python 3.10.0b2 (tags/v3.10.0b2:3173141, Jun  1 2021, 09:05:29) [MSC v.1928 64 
bit (AMD64)] on win32 
Type "help", "copyright", "credits" or "license" for more information.
>>> 0777
  File "", line 1
0777
   ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use 
an 0o prefix for octal integers
>>> 000123
  File "", line 1
000123
 ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use 
an 0o prefix for octal integers

The ^ is placed below the last digit.
However, this is misleading. The error is "leading zeros" and "prefix". So I 
would expect this:

>>> 0777
  File "", line 1
0777
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use 
an 0o prefix for octal integers
>>> 000123
  File "", line 1
000123
^^^
SyntaxError: leading zeros in decimal integer literals are not permitted; use 
an 0o prefix for octal integers

Opinions?

--
components: Parser
messages: 395161
nosy: lys.nikolaou, pablogsal, wyz23x2
priority: normal
severity: normal
status: open
title: Misleading mark of octal SyntaxErrors
type: behavior
versions: Python 3.10, Python 3.11

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



[issue44024] Improve the TypeError message for non-string second arguments passed to the built-in functions getattr and hasattr

2021-05-22 Thread wyz23x2


Change by wyz23x2 :


--
versions:  -Python 3.6, Python 3.7, Python 3.8

___
Python tracker 
<https://bugs.python.org/issue44024>
___
___
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

2021-05-07 Thread wyz23x2


Change by wyz23x2 :


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



[issue41730] Show deprecation warnings for tkinter.tix

2021-05-07 Thread wyz23x2


wyz23x2  added the comment:

Merged!

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
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

2021-05-06 Thread wyz23x2


Change by wyz23x2 :


--
versions: +Python 3.11 -Python 3.8

___
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

2021-05-06 Thread wyz23x2


wyz23x2  added the comment:

When this issue was submitted on September 5, 2020, Python 3.9 was still in 
beta/rc stages. Now 242 days have passed and the developing of 3.11 has 
started.  :)

--

___
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



[issue14965] super() and property inheritance behavior

2021-05-04 Thread wyz23x2


Change by wyz23x2 :


--
components: +Interpreter Core -Extension Modules
versions: +Python 3.10, Python 3.11, Python 3.9 -Python 3.7

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



[issue41370] PEP 585 and ForwardRef

2021-04-19 Thread wyz23x2


Change by wyz23x2 :


--
nosy:  -wyz23x2

___
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



[issue43695] Improve `=` in f-strings

2021-04-01 Thread wyz23x2


wyz23x2  added the comment:

Well, it's:
>>> f'{a+b-c=?}'  # Suffix `=` to apply to all?
20+40-10=50


P.S. When will the bug tracker enable message editing?

--

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



[issue43695] Improve `=` in f-strings

2021-04-01 Thread wyz23x2


New submission from wyz23x2 :

In Python 3.8, `=` was added into f-strings:
>>> a, b, c = 20, 40, 10
>>> f'{a+b-c=}'
a+b-c=50
But if `20+40-10` is wanted, this needs to be written:
>>> f'{a}+{b}-{c}={a+b-c}'
20+40-10=50
So something could be added. For example, `?` (this doesn't mean I recommend 
the question mark):
>>> f'{a?+b?-c?=}'
20+40-10=50
>>> f'{a+b?-c=}'
a+40-c=50
>>> f'{a+b-c=?}'  # Suffix `=` to apply to all?
20+40-10

Suggestions?

--
components: Interpreter Core
messages: 389979
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Improve `=` in f-strings
type: enhancement
versions: Python 3.10

___
Python tracker 
<https://bugs.python.org/issue43695>
___
___
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

2021-03-16 Thread wyz23x2


wyz23x2  added the comment:

Um, is this going on?

--

___
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



[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread wyz23x2


Change by wyz23x2 :


--
type:  -> enhancement

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



[issue43500] Add filtercase() into fnmatch

2021-03-15 Thread wyz23x2


New submission from wyz23x2 :

The fnmatch module has a filter() function:
> Construct a list from those elements of the iterable names that match pattern.
> It is the same as [n for n in names if fnmatch(n, pattern)], but implemented 
> more efficiently.
However, since there is the fnmatchcase() function, we should have filtercase() 
too.

--
components: Library (Lib)
messages: 388732
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add filtercase() into fnmatch
versions: Python 3.10, Python 3.9

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



[issue43097] IndexError msg of random.choice() not helpful

2021-02-01 Thread wyz23x2


New submission from wyz23x2 :

When you apply `random.choice` on empty sequences:
>>> import random
>>> random.choice([])
Traceback (most recent call last):
  File "", line 2, in 
return seq[self._randbelow(len(seq))]
IndexError: list index out of range
This message doesn't clearly state the real problem -- an empty seq.
Meanwhile, many other methods give messages.
>>> [].pop()
Traceback (most recent call last):
  File "", line 3, in 
IndexError: pop from empty list
>>> import collections
>>> collections.deque().popleft()
Traceback (most recent call last):
  File "", line 5, in 
IndexError: pop from an empty deque
>>> random.randrange(0, 0)
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Program Files\Python39\lib\random.py", line 316, in randrange
raise ValueError("empty range for randrange() (%d, %d, %d)" % (istart, 
istop, width))
ValueError: empty range for randrange() (0, 0, 0)

P.S. Both are empty sequences/ranges, randrange() raises ValueError, while 
choice() raises IndexError.

--
components: Library (Lib)
messages: 386128
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: IndexError msg of random.choice() not helpful
versions: Python 3.10, Python 3.9

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



[issue42646] Add function that supports "applying" methods

2020-12-15 Thread wyz23x2


wyz23x2  added the comment:

Edit: applied should be the better name because of reversed(), sorted() etc. 
and doesn't conflict with Py 2.

--

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



[issue42646] Add function that supports "applying" methods

2020-12-15 Thread wyz23x2


New submission from wyz23x2 :

Doing this is generally very annoying:
y = x.copy()
y.some_method()
Sometimes x doesn't have copy(), so:
from copy import deepcopy
y = deepcopy(x)
y.some_method()

So maybe a function could be added to help.
For example:

def apply(obj, function, /, args=(), kwargs={}):
try:
new = obj.copy()
except AttributeError:
from copy import copy
new = copy(obj)
function(new, *args, **kwargs)
return new
# implement reversed() for list
lis = [1, 2, 3, 4, 5]
arr = apply(lis, list.reverse)
print(arr)  # [5, 4, 3, 2, 1]

apply() maybe isn't the best name because of the builtin apply() in Python 2, 
but that's EOL. It could be added in the standard library.

--
components: Library (Lib)
messages: 383050
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add function that supports "applying" methods
versions: Python 3.10

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



[issue42578] Add tip when encountering UnicodeDecode/EncodeError in open()

2020-12-05 Thread wyz23x2


Change by wyz23x2 :


--
title: Add tip when encountering UnicodeDecode/Encode Error in open() -> Add 
tip when encountering UnicodeDecode/EncodeError in open()

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



[issue42578] Add tip when encountering UnicodeDecode/Encode Error in open()

2020-12-05 Thread wyz23x2


wyz23x2  added the comment:

>>> (1,)(2, 3)
:1: SyntaxWarning: 'tuple' object is not callable; perhaps you missed a 
comma?

--

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



[issue42578] Add tip when encountering UnicodeDecode/Encode Error in open()

2020-12-05 Thread wyz23x2


New submission from wyz23x2 :

Programmers often stumble over UnicodeDecode/EncodeError during open(), and 
especially beginners don't know what to do.
There are lots of questions on Stackoverflow:
https://stackoverflow.com/questions/16528468/while-reading-file-on-python-i-got-a-unicodedecodeerror-what-can-i-do-to-resol
https://stackoverflow.com/questions/38186847/python-line-replace-returns-unicodeencodeerror
https://stackoverflow.com/questions/3224268/python-unicode-encode-error
https://stackoverflow.com/questions/50331257/python3-unicodeencodingerror
https://stackoverflow.com/questions/24717808/python-cant-write-to-file-unicodeencodeerror
..
Maybe a helpful tip can be added to the error message.
We have done this before:
>>> (1,)(2, 3)  
>>>   :1: SyntaxWarning: 
>>> 'tuple' object is not callable; perhaps you missed a comma?
>>> print 3 
>>> 
  File "", line 1
  
print 3 

  ^ 
  SyntaxError: Missing parentheses 
in call to 'print'. Did you mean print(3)?

--
components: IO
messages: 382567
nosy: wyz23x2
priority: normal
severity: normal
status: open
title: Add tip when encountering UnicodeDecode/Encode Error in open()
versions: Python 3.10, Python 3.9

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



[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-12 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-28 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-28 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-28 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-26 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



  1   2   >