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
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
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
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
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
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
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 Lan
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/is
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 by that, the
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
m
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 i
chen-y0y0 added the comment:
Yep.
--
___
Python tracker
<https://bugs.python.org/issue41716>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by chen-y0y0 :
--
resolution: -> not a bug
stage: needs patch -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
15 matches
Mail list logo