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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
pygolang
Commits
e503beb0
Commit
e503beb0
authored
Dec 08, 2021
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pygolang v0.0.9
parent
57ab5f33
Pipeline
#18684
passed with stage
in 0 seconds
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
3 deletions
+32
-3
CHANGELOG.rst
CHANGELOG.rst
+29
-0
golang/__init__.py
golang/__init__.py
+1
-1
gpython/__init__.py
gpython/__init__.py
+2
-2
No files found.
CHANGELOG.rst
View file @
e503beb0
Pygolang
change
history
Pygolang
change
history
-----------------------
-----------------------
0.0.9
(
2021
-
12
-
08
)
~~~~~~~~~~~~~~~~~~
-
Fix
deadlock
when
new
context
is
created
from
already
-
canceled
parent
(`
commit
1
`
__
,
2
__
).
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
d0688e21
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
58
d4cbfe
-
Add
support
for
`
"with"
`
statement
in
`
sync
.
WorkGroup
`.
This
is
sometimes
handy
and
is
referred
to
as
*
"structured concurrency"
*
in
Python
world
(
commit__
,
discussion__
).
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
6
eb80104
__
https
://
github
.
com
/
gevent
/
gevent
/
issues
/
1697
#
issuecomment
-
742708016
-
Fix
`
strconv
.
unqoute
`
to
handle
all
input
that
Go
`
strconv
.
Qoute
`
might
produce
(
commit__
).
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
78
b4b41c
-
More
fixes
for
`
gpython
`
to
be
compatible
with
CPython
in
how
it
handles
program
on
stdin
,
interactive
session
and
__main__
module
setup
(`
commit
1
`
__
,
2
__
,
3
__
,
4
__
,
5
__
).
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
6
cc4bf32
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
22f
b559a
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
95
c7cce9
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
2351
dd27
__
https
://
lab
.
nexedi
.
com
/
nexedi
/
pygolang
/
commit
/
e205dbf6
0.0.8
(
2020
-
12
-
02
)
0.0.8
(
2020
-
12
-
02
)
~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~
...
...
golang/__init__.py
View file @
e503beb0
...
@@ -33,7 +33,7 @@ See also package golang.pyx which provides similar functionality for Cython nogi
...
@@ -33,7 +33,7 @@ See also package golang.pyx which provides similar functionality for Cython nogi
from
__future__
import
print_function
,
absolute_import
from
__future__
import
print_function
,
absolute_import
__version__
=
"0.0.
8
"
__version__
=
"0.0.
9
"
__all__
=
[
'go'
,
'chan'
,
'select'
,
'default'
,
'nilchan'
,
'defer'
,
'panic'
,
__all__
=
[
'go'
,
'chan'
,
'select'
,
'default'
,
'nilchan'
,
'defer'
,
'panic'
,
'recover'
,
'func'
,
'error'
,
'b'
,
'u'
,
'gimport'
]
'recover'
,
'func'
,
'error'
,
'b'
,
'u'
,
'gimport'
]
...
...
gpython/__init__.py
View file @
e503beb0
...
@@ -68,7 +68,7 @@ def pymain(argv, init=None):
...
@@ -68,7 +68,7 @@ def pymain(argv, init=None):
# `python /path/to/gpython` adds /path/to to sys.path[0] - remove it.
# `python /path/to/gpython` adds /path/to to sys.path[0] - remove it.
# `gpython file` will add path-to-file to sys.path[0] by itself, and
# `gpython file` will add path-to-file to sys.path[0] by itself, and
# /path/to/gpython is unnec
c
essary and would create difference in behaviour
# /path/to/gpython is unnecessary and would create difference in behaviour
# in between gpython and python.
# in between gpython and python.
exedir
=
dirname
(
exe
)
exedir
=
dirname
(
exe
)
if
sys
.
path
[
0
]
==
exedir
:
if
sys
.
path
[
0
]
==
exedir
:
...
@@ -406,7 +406,7 @@ def main():
...
@@ -406,7 +406,7 @@ def main():
import
gevent
import
gevent
from
gevent
import
monkey
from
gevent
import
monkey
# XXX workaround for gevent vs pypy2 crash.
# XXX workaround for gevent vs pypy2 crash.
# XXX remove when gevent-1.4.1 is relased (https://github.com/gevent/gevent/pull/1357).
# XXX remove when gevent-1.4.1 is rel
e
ased (https://github.com/gevent/gevent/pull/1357).
patch_thread
=
True
patch_thread
=
True
if
pypy
and
sys
.
version_info
.
major
==
2
:
if
pypy
and
sys
.
version_info
.
major
==
2
:
_
=
monkey
.
patch_thread
(
existing_locks
=
False
)
_
=
monkey
.
patch_thread
(
existing_locks
=
False
)
...
...
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