wyz23x2 added the comment:
Ping, this issue is 571 days old.
--
___
Python tracker
<https://bugs.python.org/issue41266>
___
___
Python-bugs-list mailin
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 fn
Change by wyz23x2 :
--
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue43500>
___
___
Python-bugs-list mailing list
Unsubscrib
wyz23x2 added the comment:
Um, is this going on?
--
___
Python tracker
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
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:/
Change by wyz23x2 :
--
nosy: -wyz23x2
___
Python tracker
<https://bugs.python.org/issue41370>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/issue14
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/issue41
Change by wyz23x2 :
--
versions: +Python 3.11 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsub
wyz23x2 added the comment:
Merged!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by wyz23x2 :
--
versions: -Python 3.9
___
Python tracker
<https://bugs.python.org/issue41730>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by wyz23x2 :
--
versions: -Python 3.6, Python 3.7, Python 3.8
___
Python tracker
<https://bugs.python.org/issue44024>
___
___
Python-bugs-list mailin
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
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 "", l
Change by wyz23x2 :
--
nosy: -wyz23x2
___
Python tracker
<https://bugs.python.org/issue44318>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by wyz23x2 :
--
type: behavior -> enhancement
___
Python tracker
<https://bugs.python.org/issue44317>
___
___
Python-bugs-list mailing list
Unsubscrib
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,
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/issu
wyz23x2 added the comment:
Changed to only 2).
--
___
Python tracker
<https://bugs.python.org/issue44640>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by wyz23x2 :
--
title: Typos in error messages of isinstance() & issubclass() -> Fix
punctuation in isinstance() error message
___
Python tracker
<https://bugs.python.org/
Change by wyz23x2 :
--
versions: +Python 3.10, Python 3.11 -Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue27035>
___
___
Python-bug
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.
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 ru
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 tr
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/issue23
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/is
wyz23x2 added the comment:
--
___
Python tracker
<https://bugs.python.org/issue45420>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
wyz23x2 added the comment:
I did.
--
___
Python tracker
<https://bugs.python.org/issue45420>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/is
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 (
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/is
wyz23x2 added the comment:
BTW, how does the installer detect whether if another version is installed?
--
___
Python tracker
<https://bugs.python.org/issue45
Change by wyz23x2 :
--
assignee: -> terry.reedy
components: +IDLE
___
Python tracker
<https://bugs.python.org/issue45804>
___
___
Python-bugs-list mai
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.or
New submission from wyz23x2 :
I've written a handy tool--RelationList. This type can easily create relations
between elements in lists.
--
components: Demos and Tools
files: relationlist.py
messages: 359197
nosy: asvetlov, dkaveshnikov, wyz23x2, yselivanov
priority: normal
sev
Change by wyz23x2 :
--
components: -Demos and Tools
versions: +Python 3.9 -Python 3.8
___
Python tracker
<https://bugs.python.org/issue39192>
___
___
Python-bug
wyz23x2 added the comment:
I've written a handy tool--RelationList. This type can easily create relations
between elements in lists.
--
Added file: https://bugs.python.org/file48821/relationlist.py
___
Python tracker
<https://bugs.py
New submission from wyz23x2 :
Starting from Python 2.3, the handy enumerate() was introduced.
However, I suggest to add a "reverse" parameter:
>>> lis = ['a', 'b', 'c', 'd']
>>> list(enumerate(lis))
[(0,'a'),(1,
wyz23x2 added the comment:
A typo in the previous comment:
>>> list(enumerate(lis,reverse=True))
[('a',0),('b',1),('c',2),('d',3)]
--
___
Py
New submission from wyz23x2 :
Why is this?
>>> 000 # No error
0
>>> 002
SyntaxError: leading zeros in decimal integer literals are not permitted; use
an 0o prefix for octal integers
--
components: Build
mes
Change by wyz23x2 :
--
title: Bug in 0 -> Bug in lots of 0s
___
Python tracker
<https://bugs.python.org/issue39608>
___
___
Python-bugs-lis
wyz23x2 added the comment:
2 is not supported;
So 000 should not too.
--
___
Python tracker
<https://bugs.python.org/issue39608>
___
___
New submission from wyz23x2 :
the tempfile.mktemp() function was deprecated since version 2.3; it's long ago
(nearly 17 years)! It should be removed since it causes security holes, as
stated in the tempfile doc
(https://docs.python.org/3/library/tempfile.html#tempfile.m
wyz23x2 added the comment:
A small typo in the 1st comment:
The tempfile.mktemp() function was deprecated since version 2.3; it's long ago
(nearly 17 years!). It should be removed since it causes security holes, as
stated in the tempfile doc
(https://docs.python.org/3/library/tempfile
Change by wyz23x2 :
--
components: +Library (Lib)
___
Python tracker
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe:
wyz23x2 added the comment:
Sorry, didn't realize that.
--
___
Python tracker
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
wyz23x2 added the comment:
But I think the function should redirect to NamedTemporaryFile(delete=False).
--
___
Python tracker
<https://bugs.python.org/issue39
wyz23x2 added the comment:
You could add a check that does this:
(a)
from tempfile import mktemp
with open(mktemp()) as f:
# do something...
## No Warnings
(b)
from tempfile import mktemp
path = mktemp()
# do something...
with open(mktemp()) as f:
# do something...
## RuntimeWarning
wyz23x2 added the comment:
(c)
from tempfile import mktemp
# do something...
path = mktemp()
# do something... (the "path" var is not used at all)
## No Warning
--
___
Python tracker
<https://bugs.python.o
wyz23x2 added the comment:
case c is used for the case that is stated in
https://mail.python.org/pipermail/python-dev/2019-March/156725.html (a
temporary name that an other program will create / act on).
--
___
Python tracker
<ht
wyz23x2 added the comment:
I know it's hard to achieve :)
--
___
Python tracker
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
wyz23x2 added the comment:
Sorry, in (a)(b) is should be with "open(mktemp(),'x') as f:".
--
___
Python tracker
<https://bugs.python.org/issue39768>
___
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/a
Change by wyz23x2 :
--
nosy: -ZackerySpytz
___
Python tracker
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by wyz23x2 :
--
nosy: -barry, r.david.murray
___
Python tracker
<https://bugs.python.org/issue39772>
___
___
Python-bugs-list mailing list
Unsubscribe:
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/is
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 1
wyz23x2 added the comment:
typo: "with something else", not "wit something else". Sorry for that.
--
___
Python tracker
<https://bug
Change by wyz23x2 :
--
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue39768>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by wyz23x2 :
--
versions: +Python 3.5, Python 3.6, Python 3.7
___
Python tracker
<https://bugs.python.org/issue39893>
___
___
Python-bugs-list mailin
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 f
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'
Change by wyz23x2 :
--
components: +Library (Lib)
versions: +Python 3.7, Python 3.8, Python 3.9
___
Python tracker
<https://bugs.python.org/issue40386>
___
___
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 o
wyz23x2 added the comment:
Sorry, it's "of 'this' is run", not "un".
--
___
Python tracker
<https://bugs.python.org/issue40386>
___
Change by wyz23x2 :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue40386>
___
___
Python-bugs-list mailing list
Unsubscrib
wyz23x2 added the comment:
Patch?
--
___
Python tracker
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe:
wyz23x2 added the comment:
OK.
--
___
Python tracker
<https://bugs.python.org/issue40051>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
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 b
wyz23x2 added the comment:
OMG, request too large. I can't upload mp4 /(ㄒoㄒ)/~~
--
___
Python tracker
<https://bugs.python.org/issue40511>
___
___
Pytho
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/issu
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/issu
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 ju
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-
wyz23x2 added the comment:
>>> (1,)(2, 3)
:1: SyntaxWarning: 'tuple' object is not callable; perhaps you missed a
comma?
--
___
Python tracker
<https://bugs
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/issu
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=(), k
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/is
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 messa
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
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. com
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,
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 →
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(',', ' ') #
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__
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/issue41
wyz23x2 added the comment:
Help on _Feature in module __future__ object:
class
Change by wyz23x2 :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue41251>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by wyz23x2 :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue41075>
___
___
Python-bugs-list
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
Change by wyz23x2 :
--
versions: +Python 3.10
___
Python tracker
<https://bugs.python.org/issue40360>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.maxs
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/is
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
Change by wyz23x2 :
--
type: -> crash
___
Python tracker
<https://bugs.python.org/issue40477>
___
___
Python-bugs-list mailing list
Unsubscrib
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
Change by wyz23x2 :
--
assignee: -> docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 3.10, Python 3.7
___
Python tracker
<https://bugs.python.org/issu
1 - 100 of 160 matches
Mail list logo