-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python 3 iterator updates #147
Comments
ozziefallick
pushed a commit
to ozziefallick/pidcat
that referenced
this issue
Jan 31, 2022
Wrapped filter() calls with list() to restore previous functionality. This is backwards-compatible with Python 2.
ozziefallick
added a commit
to ozziefallick/pidcat
that referenced
this issue
Mar 8, 2022
Version increases to 2.1.1 to cover fixes for Issues JakeWharton#147 and JakeWharton#178.
1fexd
pushed a commit
to 1fexd/pidcat
that referenced
this issue
Apr 7, 2024
Wrapped filter() calls with list() to restore previous functionality. This is backwards-compatible with Python 2.
1fexd
pushed a commit
to 1fexd/pidcat
that referenced
this issue
Apr 7, 2024
Fixed JakeWharton#147 to unbreak pidcat on Python 3.
1fexd
pushed a commit
to 1fexd/pidcat
that referenced
this issue
Apr 7, 2024
Version increases to 2.1.1 to cover fixes for Issues JakeWharton#147 and JakeWharton#178.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Python 3 the
filter
andmap
functions produce iterators instead of lists, which can only be iterated once. This breaks some features like--current
which loop over filter objects multiple times (for searching for pids).This can be fixed by replacing them with either
list(filter(...))
or list comprehensions.The text was updated successfully, but these errors were encountered: