Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
pygolang
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
Carlos Ramos Carreño
pygolang
Commits
2fc71566
Commit
2fc71566
authored
Aug 27, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golang.pyx: pyselect: Don't accept tuple subclasses; more clear panic on invalid tuple
parent
d5e74947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
golang/_golang.pyx
golang/_golang.pyx
+4
-1
No files found.
golang/_golang.pyx
View file @
2fc71566
...
@@ -490,7 +490,10 @@ def pyselect(*pycasev):
...
@@ -490,7 +490,10 @@ def pyselect(*pycasev):
ndefault
=
n
ndefault
=
n
# send
# send
elif
isinstance
(
pycase
,
tuple
):
elif
type
(
pycase
)
is
tuple
:
if
len
(
pycase
)
!=
2
:
pypanic
(
"pyselect: invalid [%d]() case"
%
len
(
pycase
))
pysend
,
tx
=
pycase
pysend
,
tx
=
pycase
if
pysend
.
__self__
.
__class__
is
not
pychan
:
if
pysend
.
__self__
.
__class__
is
not
pychan
:
pypanic
(
"pyselect: send on non-chan: %r"
%
(
pysend
.
__self__
.
__class__
,))
pypanic
(
"pyselect: send on non-chan: %r"
%
(
pysend
.
__self__
.
__class__
,))
...
...
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