[issue46776] RecursionError when using property() inside classes

2022-02-17 Thread chen-y0y0
New submission from chen-y0y0 : A simple class definition: class Foo: bar = property(lambda self: self.bar) And get the value of Foo.bar, it returns correctly, . And get the value of Foo().bar, it raises RecursionError: Traceback (most recent call last): File "", line 1, in File

[issue46636] Bugs of 2to3 on built-in function or types(classes)

2022-02-04 Thread chen-y0y0
Change by chen-y0y0 : -- title: Bugs of 2to3 -> Bugs of 2to3 on built-in function or types(classes) ___ Python tracker <https://bugs.python.org/issu

[issue46636] Bugs of 2to3

2022-02-04 Thread chen-y0y0
New submission from chen-y0y0 : I have a file named foo.py: try : input = raw_input int = long chr = unichr range = xrange except NameError : pass When I process this file to 2to3, it shows: --- foo.py (original) +++ foo.py (refactored) @@ -1,7 +1,7 @@ try : input

[issue45980] Why there isn't a “Python 2.2” for PyPI's classifiers?

2021-12-04 Thread chen-y0y0
chen-y0y0 added the comment: And NOT ONLY Python 2.2, there aren't also Python 2.1 or earlier version. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45980] Why there isn't a “Python 2.2” for PyPI's classifiers?

2021-12-04 Thread chen-y0y0
New submission from chen-y0y0 : The output: Upload failed (400): Invalid value for classifiers. Error: Classifier ' Programming Language :: Python :: 2.2' is not a valid classifier. error: Upload failed (400): Invalid value for classifiers. Error: Classifier ' Programming Language :: Python

[issue44879] How to insert newline characters as normal characters while input()?

2021-08-10 Thread chen-y0y0
New submission from chen-y0y0 : # Ɪ know, if Ɪ press enter key while input(), the method will be completed and return a str value. # Ɪ am trying to insert newline characters as normal characters while input() method. # The “normal characters” means: # 1. It can be deleted by backspace(“\x7b

[issue44835] What does "Python for Windows will still be Python for DOS" mean?

2021-08-04 Thread chen-y0y0
Change by chen-y0y0 : -- components: Installation, Windows nosy: paul.moore, prasechen, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: What does "Python for Windows will still be Python for DOS" mean? type: performance versions: P

[issue44696] Python 2.0.1 Installation:

2021-07-21 Thread chen-y0y0
New submission from chen-y0y0 : # I tried to install Python 2.0.1 onto my virtual machine(Windows 3.1) for low-version developing, but an error occurred while the installation: # Error # Could not load the DLL library # C:\TEMP\~GLF256B.TMP. -- components: IO, Installation

[issue43117] Translation Mistakes

2021-02-03 Thread chen-y0y0
New submission from chen-y0y0 : A example in this picture: In the red circles, the texts should not be translated. They should be their original states. Because these texts are options that programmers will input into their programs. If these texts are translated and input

[issue41770] Import module doesn't updated

2020-09-12 Thread chen-y0y0
chen-y0y0 added the comment: --REOPEN-- >>> # I try: >>> import xxx >>> del sys.modules['xxx'] >>> # But: Traceback (most recent call last): File "", line 1, in del sys.modules['xxx'] NameError: name 'sys' is not found >>> # I try

[issue41719] Why does not range() support decimals?

2020-09-11 Thread chen-y0y0
Change by chen-y0y0 : -- resolution: -> not a bug stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41770] Import module doesn't updated

2020-09-11 Thread chen-y0y0
New submission from chen-y0y0 : # I create a module: # \sys.path\xxx.py a = 9 # And: >>> import xxx >>> xxx.a 9 # I delete this imported module and modified this module: del xxx # \sys.path\xxx.py a = 9 b = 8 # And re-import: >>> import xxx >>> xxx.b # B

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-10 Thread chen-y0y0
chen-y0y0 added the comment: Yep. -- ___ Python tracker <https://bugs.python.org/issue41716> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41719] Why does not range() support decimals?

2020-09-04 Thread chen-y0y0
New submission from chen-y0y0 : # I try: >>> range(0,5,0.5) # I hope it will (0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5). But... Traceback (most recent call last): File "", line 1, in range(0,5,0.5) TypeError: 'float' object cannot be interpreted as an integer --

[issue41716] SyntaxError: EOL while scanning string literal

2020-09-04 Thread chen-y0y0
New submission from chen-y0y0 : # I try to run: import os os.system(r"start C:\Windows\System32\") # But I get an Exception: SyntaxError: EOL while scanning string literal # A string after “r” means the string's original meaning. But…… -- components: Argument Clinic messag