| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM with one idea.
Sorry, something went wrong.
|
Wait, why is _random.Random mutable? |
Sorry, something went wrong.
|
Probably because it would break code to change that. |
Sorry, something went wrong.
|
It became mutable in 3.9. I think this is a bug. |
Sorry, something went wrong.
I was also surprised but I just didn't want to break stuff here. |
Sorry, something went wrong.
Yes, I think adding IMMUTABLE flag was missed while conversion, it shouldn't be a mutable type. |
Sorry, something went wrong.
|
See #88074 where most of the converted types where made immutable, same should be done for random and epoll |
Sorry, something went wrong.
|
@rhettinger Does this change satisfy you? do you want this to be backported? |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM
Sorry, something went wrong.
Please don't backport this change. It would be surprising that a class becomes immutable in 3.x.y bugfix release. |
Sorry, something went wrong.
There was a problem hiding this comment.
LGTM, but I would prefer a single large PR that fixes the 3.9 error by making all converted types immutable.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
On main the following leaks: