Commit cdbb5a1c authored by Jason Madden's avatar Jason Madden

Add change note for #975 [skip ci]

parent 5bc2cf61
......@@ -26,7 +26,7 @@
would cause callers using keyword arguments to raise a :exc:`TypeError`.
Reported in :issue:`960` by js6626069. Likewise, correct the
argument names for ``fromfd`` and ``socketpair`` on Python 2,
although they cannot be called wit keyword arguments under CPython.
although they cannot be called with keyword arguments under CPython.
.. note:: The ``gethost*`` functions take different argument names
under CPython and PyPy. gevent follows the CPython
......@@ -37,6 +37,9 @@
exception object is stateful, including references to its context
and possibly traceback, which could lead to objects remaining alive
longer than intended.
- Make sure that ``python -m gevent.monkey <script>`` runs code in the
global scope, not the scope of the ``main`` function. Fixed in
:pr:`975` by Shawn Bohrer.
1.2.1 (2017-01-12)
==================
......
......@@ -672,9 +672,9 @@ def main():
__package__ = None
assert __package__ is None
globals()['__file__'] = sys.argv[0] # issue #302
# Clear package so exec'd script doesn't appear in gevent package
globals()['__package__'] = None
globals()['__package__'] = None # issue #975: make script be its own package
with open(sys.argv[0]) as f:
# Be sure to exec in globals to avoid import pollution. Also #975.
exec(f.read(), globals())
else:
print(script_help)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment