Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
c9427dcc
Commit
c9427dcc
authored
Jan 10, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
select: name arguments the same way as they called in stdlib
parent
ed49d7b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
gevent/select.py
gevent/select.py
+6
-6
No files found.
gevent/select.py
View file @
c9427dcc
...
...
@@ -17,9 +17,9 @@ def get_fileno(obj):
return
fileno_f
()
def
select
(
r
ead_list
,
write_list
,
error_
list
,
timeout
=
None
):
def
select
(
r
list
,
wlist
,
x
list
,
timeout
=
None
):
"""An implementation of :meth:`select.select` that blocks only the current greenlet."""
# QQQ
error_
list is ignored
# QQQ
x
list is ignored
hub
=
get_hub
()
current
=
getcurrent
()
assert
hub
is
not
current
,
'do not call blocking functions from the mainloop'
...
...
@@ -33,10 +33,10 @@ def select(read_list, write_list, error_list, timeout=None):
else
:
current
.
switch
(([],
[],
[]))
for
r
in
read_
list
:
allevents
.
append
(
core
.
read_event
(
get_fileno
(
r
),
callback
,
arg
=
r
))
for
w
in
write_
list
:
allevents
.
append
(
core
.
write_event
(
get_fileno
(
w
),
callback
,
arg
=
w
))
for
r
eadfd
in
r
list
:
allevents
.
append
(
core
.
read_event
(
get_fileno
(
r
eadfd
),
callback
,
arg
=
readfd
))
for
w
ritefd
in
w
list
:
allevents
.
append
(
core
.
write_event
(
get_fileno
(
w
ritefd
),
callback
,
arg
=
writefd
))
timeout
=
Timeout
.
start_new
(
timeout
)
try
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment