{"action":"created","issue":{"url":"https://api.github.com/repos/jeffshek/betterself/issues/468","repository_url":"https://api.github.com/repos/jeffshek/betterself","labels_url":"https://api.github.com/repos/jeffshek/betterself/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/jeffshek/betterself/issues/468/comments","events_url":"https://api.github.com/repos/jeffshek/betterself/issues/468/events","html_url":"https://github.com/jeffshek/betterself/pull/468","id":334052660,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk2MTE5NjI4","number":468,"title":"Update gevent to 1.3.4","user":{"login":"pyup-bot","id":16239342,"node_id":"MDQ6VXNlcjE2MjM5MzQy","avatar_url":"https://avatars0.githubusercontent.com/u/16239342?v=4","gravatar_id":"","url":"https://api.github.com/users/pyup-bot","html_url":"https://github.com/pyup-bot","followers_url":"https://api.github.com/users/pyup-bot/followers","following_url":"https://api.github.com/users/pyup-bot/following{/other_user}","gists_url":"https://api.github.com/users/pyup-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pyup-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyup-bot/subscriptions","organizations_url":"https://api.github.com/users/pyup-bot/orgs","repos_url":"https://api.github.com/users/pyup-bot/repos","events_url":"https://api.github.com/users/pyup-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pyup-bot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-20T12:22:40Z","updated_at":"2018-07-16T13:35:34Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/jeffshek/betterself/pulls/468","html_url":"https://github.com/jeffshek/betterself/pull/468","diff_url":"https://github.com/jeffshek/betterself/pull/468.diff","patch_url":"https://github.com/jeffshek/betterself/pull/468.patch"},"body":"\nThis PR updates [gevent](https://pypi.org/project/gevent) from **1.2.2** to **1.3.4**.\n\n\n\n<details>\n  <summary>Changelog</summary>\n  \n  \n   ### 1.3.4\n   ```\n   ==================\n\n- Be more careful about issuing ``MonkeyPatchWarning`` for ssl\n  imports. Now, we only issue it if we detect the one specific\n  condition that is known to lead to RecursionError. This may produce\n  false negatives, but should reduce or eliminate false positives.\n\n- Based on measurements and discussion in :issue:`1233`, adjust the\n  way :mod:`gevent.pywsgi` generates HTTP chunks. This is intended to\n  reduce network overhead, especially for smaller chunk sizes.\n\n- Additional slight performance improvements in :mod:`gevent.pywsgi`.\n  See :pr:`1241`.\n   ```\n   \n  \n  \n   ### 1.3.3\n   ```\n   ==================\n\n- :func:`gevent.sleep` updates the loop&#39;s notion of the current time\n  before sleeping so that sleep duration corresponds more closely to\n  elapsed (wall clock) time. :class:`gevent.Timeout` does the same.\n  Reported by champax and FoP in :issue:`1227`.\n\n- Fix an ``UnboundLocalError`` in SSL servers when wrapping a socket\n  throws an error. Reported in :issue:`1236` by kochelmonster.\n   ```\n   \n  \n  \n   ### 1.3.2.post0\n   ```\n   ========================\n\n- Fix a packaging error in manylinux binary wheels that prevented some\n  imports from working. See :issue:`1219`.\n   ```\n   \n  \n  \n   ### 1.3.2\n   ```\n   ==================\n\n- Allow weak refeneces to :class:`gevent.queue.Queue`. Reported in\n  :issue:`1217` by githrdw.\n   ```\n   \n  \n  \n   ### 1.3.1\n   ```\n   ==================\n\n- Allow weak references to :class:`gevent.event.Event`. Reported in\n  :issue:`1211` by Matias Guijarro.\n\n- Fix embedded uses of :func:`gevent.Greenlet.spawn`, especially under\n  uwsgi. Reported in :issue:`1212` by Kunal Gangakhedkar.\n\n- Fix :func:`gevent.os.nb_write` and :func:`gevent.os.nb_read` not\n  always closing the IO event they opened in the event of an\n  exception. This would be a problem especially for libuv.\n   ```\n   \n  \n  \n   ### 1.3.0\n   ```\n   ==================\n\n- Python 3.7 passes the automated memory leak checks. See :issue:`1197`.\n\n- Update autoconf&#39;s config.guess and config.sub to the latest versions\n  for c-ares and libev.\n\n- :class:`gevent.local.local` subclasses that mix-in ABCs can be instantiated.\n  Reported in :issue:`1201` by Bob Jordan.\n   ```\n   \n  \n  \n   ### 1.3b2\n   ```\n   ==================\n\n- On Windows, CFFI is now a dependency so that the libuv backend\n  really can be used by default.\n\n- Fix a bug detecting whether we can use the memory monitoring\n  features when psutil is not installed.\n\n- `gevent.subprocess.Popen` uses ``/proc/self/fd`` (on Linux) or\n  ``/dev/fd`` (on BSD, including macOS) to find the file descriptors\n  to close when ``close_fds`` is true. This matches an optimization\n  added to Python 3 (and backports it to Python 2.7), making process\n  spawning up to 9 times faster. Also, on Python 3, since Python 3.3\n  is no longer supported, we can also optimize the case where\n  ``close_fds`` is false (not the default), making process spawning up\n  to 38 times faster. Initially reported in :issue:`1172` by Ofer Koren.\n\n- The bundled libuv is now 1.20.1, up from 1.19.2. See :issue:`1177`.\n\n- The long-deprecated and undocumented module ``gevent.wsgi`` was removed.\n\n- Add `gevent.util.assert_switches` to build on the monitoring\n  functions. Fixes :issue:`1182`.\n\n- A started monitor thread for the active hub now survives a fork. See\n  :issue:`1185`.\n\n- The greenlet tracer functions used for the various monitoring\n  capabilities are now compiled with Cython for substantially lower\n  overhead. See :pr:`1190`.\n\n- libuv now collects all pending watchers and runs their callbacks at\n  the end of the loop iteration using UV_RUN_ONCE. This eliminates the\n  need to patch libuv to be greenlet-safe. It also means that\n  zero-duration timer watchers are actual timer watchers again\n  (instead of being turned into check watchers); newly added\n  zero-duration timers cannot block the event loop because they won&#39;t\n  be run until a safe time.\n\n- Python 3.7.0b4 is now the tested and supported version of Python\n  3.7. PyPy 6.0 has been tested, although CI continues to use 5.10.\n   ```\n   \n  \n  \n   ### 1.3b1\n   ```\n   ==================\n\nDependencies\n------------\n\n- Cython 0.28.2 is now used to build gevent from a source checkout.\n\n- The bundled libuv is now 1.19.2, up from 1.18.0.\n\nPlatform Support\n----------------\n\n- Travis CI tests on Python 3.7.0b3.\n\n- Windows now defaults to the libuv backend if CFFI is installed. See\n  :issue:`1163`.\n\nBug Fixes\n---------\n\n- On Python 2, when monkey-patching `threading.Event`, also\n  monkey-patch the underlying class, ``threading._Event``. Some code\n  may be type-checking for that. See :issue:`1136`.\n\n- Fix libuv io watchers polling for events that only stopped watchers\n  are interested in, reducing CPU usage. Reported in :issue:`1144` by\n  wwqgtxx.\n\nEnhancements\n------------\n\n- Add additional optimizations for spawning greenlets, making it\n  faster than 1.3a2.\n\n- Use strongly typed watcher callbacks in the libuv CFFI extensions.\n  This prevents dozens of compiler warnings.\n\n- When gevent prints a timestamp as part of an error message, it is\n  now in UTC format as specified by RFC3339.\n\n- Threadpool threads that exit now always destroy their hub (if one\n  was created). This prevents some forms of resource leaks (notably\n  visible as blocking functions reported by the new monitoring abilities).\n\n- Hub objects now include the value of their ``name`` attribute in\n  their repr.\n\n- Pools for greenlets and threads have lower overhead, especially for\n  ``map``. See :pr:`1153`.\n\n- The undocumented, internal implementation classes ``IMap`` and\n  ``IMapUnordered`` classes are now compiled with Cython, further\n  reducing the overhead of ``[Thread]Pool.imap``.\n\n- The classes `gevent.event.Event` and `gevent.event.AsyncResult`\n  are compiled with Cython for improved performance, as is the\n  ``gevent.queue`` module and ``gevent.hub.Waiter`` and certain\n  time-sensitive parts of the hub itself. Please report any\n  compatibility issues.\n\n- ``python -m gevent.monkey &lt;script&gt;`` accepts more values for\n  ``&lt;script&gt;``, including paths to packages or compiled bytecode.\n  Reported in :issue:`1157` by Eddie Linder.\n\n- Add a simple event framework for decoupled communication. It uses\n  :mod:`zope.event` if that is installed.\n\n- :mod:`gevent.monkey` has support for plugins in the form of event\n  subscribers and setuptools entry points. See :pr:`1158` and\n  :issue:`1162`. setuptools must be installed at runtime for its entry\n  points to function.\n\nMonitoring and Debugging\n------------------------\n\n- Introduce the configuration variable\n  `gevent.config.track_greenlet_tree` (aka\n  ``GEVENT_TRACK_GREENLET_TREE``) to allow disabling the greenlet tree\n  features for applications where greenlet spawning is performance\n  critical. This restores spawning performance to 1.2 levels.\n\n- Add an optional monitoring thread for each hub. When enabled, this\n  thread (by default) looks for greenlets that block the event loop\n  for more than 0.1s. You can add your own periodic monitoring\n  functions to this thread. Set ``GEVENT_MONITOR_THREAD_ENABLE`` to\n  use it, and ``GEVENT_MAX_BLOCKING_TIME`` to configure the blocking\n  interval.\n\n- The monitoring thread emits events when it detects certain\n  conditions, like loop blocked or memory limits exceeded.\n\n- Add settings for monitoring memory usage and emitting events when a\n  threshold is exceeded and then corrected. gevent currently supplies\n  no policy for what to do when memory exceeds the configured limit.\n  ``psutil`` must be installed to use this. See :pr:`1150`.\n   ```\n   \n  \n  \n   ### 1.3a2\n   ```\n   ==================\n\nDependencies\n------------\n\n- Cython 0.28b1 or later is now required to build gevent from a source\n  checkout (Cython is *not* required to build a source distribution\n  from PyPI).\n\n- Update c-ares to 1.14.0. See :issue:`1105`.\n\n- gevent now **requires** the patched version of libuv it is\n  distributed with. Building gevent with a non-embedded libuv, while\n  not previously supported, is not possible now. See\n  :issue:`1126`.\n\n\nPlatform Support\n----------------\n\n- Travis CI tests on Python 3.7.0b2 and PyPy 2.7 5.10.0 and PyPy 3.5\n  5.10.1.\n\nBuild Changes\n-------------\n\n- Fix building from a source distribution (PyPI) without Cython\n  installed.\n\nEnhancements\n------------\n\n- Add the ``dnspython`` resolver as a lightweight alternative to\n  c-ares. It is generally faster than c-ares and is supported on PyPy.\n  c-ares may be deprecated in the future. See :pr:`1088` and\n  :issue:`1103`.\n\n- Add the module :mod:`gevent.time` that can be imported instead of\n  :mod:`time`, much like :mod:`gevent.socket` can be imported instead\n  of :mod:`socket`. It contains ``gevent.sleep``. This aids\n  monkey-patching.\n\n- Simple subclasses of `gevent.local.local` now have the same\n  (substantially improved) performance characteristics of plain\n  `gevent.local.local` itself, making them 2 to 3 times faster than\n  before. See :pr:`1117`. If there are any compatibility\n  problems, please open issues.\n\nMonitoring and Debugging\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n- Greenlet objects now keep track of their spawning parent greenlet\n  and the code location that spawned them, in addition to maintaining\n  a &quot;spawn tree local&quot; mapping. This adds some runtime overhead in\n  relative terms, but absolute numbers are still relatively small.\n  Based on a proposal from PayPal and comments by Mahmoud Hashemi and\n  Kurt Rose. See :issue:`755` and :pr:`1115`. As always, feedback is\n  appreciated.\n\n- Greenlet objects now have a `minimal_ident\n  &lt;gevent.Greenlet.minimal_ident&gt;` property. It functions\n  similarly to ``Thread.ident`` or ``id`` by uniquely identifying the\n  greenlet object while it remains alive, and it can be reused after\n  the greenlet object is dead. It is different in that it is small and\n  sequential. Based on a proposal from PayPal and comments by Mahmoud\n  Hashemi and Kurt Rose. See :issue:`755`. As always, feedback is\n  appreciated.\n\n- `gevent.Greenlet` objects now have a `gevent.Greenlet.name`\n  attribute that is included in the default repr.\n\n- Include the values of `gevent.local.local` objects associated with\n  each greenlet in `gevent.util.format_run_info`.\n\n- Add `gevent.util.GreenletTree` to visualize the greenlet tree. This\n  is used by `gevent.util.format_run_info`.\n\n\nSubprocess\n~~~~~~~~~~\n\n- Make :class:`gevnt.subprocess.Popen` accept the ``restore_signals``\n  keyword argument on all versions of Python, and on Python 2 have it\n  default to false. It previously defaulted to true on all versions;\n  now it only defaults to true on Python 3. The standard library in\n  Python 2 does not have this argument and its behaviour with regards\n  to signals is undocumented, but there is code known to rely on\n  signals not being restored under Python 2. Initial report and patch\n  in :pr:`1063` by Florian Margaine.\n\n- Allow :class:`gevent.subprocess.Popen` to accept the keyword\n  arguments ``pass_fds`` and ``start_new_session`` under Python 2.\n  They have always had the same default as Python 3, namely an empty\n  tuple and false, but now are accessible to Python 2.\n\n- Support the ``capture_output`` argument added to Python 3.7 in\n  :func:`gevent.subprocess.run`.\n\nConfiguration\n~~~~~~~~~~~~~\n\n- Centralize all gevent configuration in an object at\n  ``gevent.config``, allowing for gevent to be configured through code\n  and not *necessarily* environment variables, and also provide a\n  centralized place for documentation. See :issue:`1090`.\n\n  - The new ``GEVENT_CORE_CFFI_ONLY`` environment variable has been\n    replaced with the pre-existing ``GEVENT_LOOP`` environment\n    variable. That variable may take the values ``libev-cext``,\n    ``libev-cffi``, or ``libuv-cffi``, (or be a list in preference\n    order, or be a dotted name; it may also be assigned to an\n    object in Python code at ``gevent.config.loop``).\n\n  - The ``GEVENTARES_SERVERS`` environment variable is deprecated in\n    favor of ``GEVENT_RESOLVER_SERVERS``. See :issue:`1103`.\n\n\nBug Fixes\n---------\n\n- Fix calling ``shutdown`` on a closed socket. It was raising\n  ``AttributeError``, now it once again raises the correct\n  ``socket.error``. Reported in :issue:`1089` by André Cimander.\n\n- Fix an interpreter crash that could happen if two or more ``loop``\n  objects referenced the default event loop and one of them was\n  destroyed and then the other one destroyed or (in the libev C\n  extension implementation only) deallocated (garbage collected). See\n  :issue:`1098`.\n\n- Fix a race condition in libuv child callbacks. See :issue:`1104`.\n\nOther Changes\n-------------\n\n- The internal, undocumented module ``gevent._threading`` has been\n  simplified.\n\n- The internal, undocumented class ``gevent._socket3._fileobject`` has\n  been removed. See :issue:`1084`.\n\n- Simplify handling of the libev default loop and the ``destroy()``\n  method. The default loop, when destroyed, can again be requested and\n  it will regenerate itself. The default loop is the only one that can\n  receive child events.\n\n- Make :meth:`gevent.socket.socket.sendall` up to ten times faster on\n  PyPy3, through the same change that was applied in gevent 1.1b3 for PyPy2.\n\n- Be more careful about issuing a warning about patching SSL on\n  Python 2. See :issue:`1108`.\n\n- Signal handling under PyPy with libuv is more reliable. See\n  :issue:`1112`.\n\n- The :mod:`gevent.greenlet` module is now compiled with Cython to\n  offset any performance decrease due to :issue:`755`. Please open\n  issues for any compatibility concerns. See :pr:`1115` and :pr:`1120`.\n\n- On CPython, allow the pure-Python implementations of\n  `gevent.Greenlet`, `gevent.local` and `gevent.lock` to be\n  used when the environment variable ``PURE_PYTHON`` is set. This is\n  not recommended except for debugging and testing. See :issue:`1118`.\n\n- :meth:`gevent.select.poll.poll` now interprets a *timeout* of -1 the\n  same as a *timeout* of *None* as the standard requires. Previously,\n  on libuv this was interpreted the same as a *timeout* of 0. In\n  addition, all *timeout* values less than zero are interpreted like\n  *None* (as they always were under libev). See :issue:`1127`.\n\n- Monkey-patching now defaults to patching ``threading.Event``.\n   ```\n   \n  \n  \n   ### 1.3a1\n   ```\n   ==================\n\nDependencies\n------------\n\n- gevent is now built and tested with Cython 0.27. This is required\n  for Python 3.7 support.\n\n- Update c-ares to 1.13.0. See :issue:`990`.\n\n\nPlatform Support\n----------------\n\n- Add initial support for Python 3.7a3. It has the same level of\n  support as Python 3.6.\n\n  - Using unreleased Cython 0.28 and greenlet 0.4.13; requires Python 3.7a3.\n\n  - The ``async`` functions and classes have been renamed to\n    ``async_`` due to ``async`` becoming a keyword in Python 3.7.\n    Aliases are still in place for older versions. See :issue:`1047`.\n\n- gevent is now tested on Python 3.6.4. This includes the following\n  fixes and changes:\n\n  - Errors raised from :mod:`gevent.subprocess` will have a\n    ``filename`` attribute set.\n  - The :class:`threading.Timer` class is now monkey-patched and can\n    be joined. Previously on Python 3.4 and above, joining a ``Timer``\n    would hang the process.\n  - :meth:`gevent.ssl.SSLSocket.unwrap` behaves more like the standard\n    library, including returning a SSLSocket and allowing certain\n    timeout-related SSL errors to propagate. The added standard\n    library tests ``test_ftplib.py`` now passes.\n  - :class:`gevent.subprocess.Popen` accepts a &quot;path-like object&quot; for\n    the *cwd* parameter on all platforms. Previously this only worked\n    on POSIX platforms under Python 3.6. Now it also works on Windows under\n    Python 3.6 (as expected) and is backported to all previous versions.\n\n- Linux CI now tests on PyPy3 3.5-5.9.0, updated from PyPy3 3.5-5.7.1.\n  See :issue:`1001`. PyPy2 has been updated to 5.9.0 from 5.7.1,\n  Python 2.7 has been updated to 2.7.14 from 2.7.13, Python 3.4 is\n  updated to 3.4.7 from 3.4.5, Python 3.5 is now 3.5.4 from 3.5.3, and\n  Python 3.6 is now 3.6.4 from 3.6.0.\n\n- Drop support for Python 3.3. The documentation has only claimed\n  support for 3.4+ since gevent 1.2 was released, and only 3.4+ has\n  been tested. This merely removes the supporting Trove classifier and\n  remaining test code. See :issue:`997`.\n\n- PyPy is now known to run on Windows using the libuv backend, with\n  caveats. See the section on libuv for more information.\n\n- Due to security concerns, official support for Python 2.7.8 and\n  earlier (without a modern SSL implementation) has been dropped.\n  These versions are no longer tested with gevent, but gevent can\n  still be installed on them. Supporting code will be removed in the\n  next major version of gevent. See :issue:`1073`.\n\nBuild Changes\n-------------\n\n- When building gevent from a source checkout (*not* a distributed\n  source distribution), ``make`` is no longer required and the\n  ``Makefile`` is not used. Neither is an external ``cython`` command.\n  Instead, the ``cythonize`` function is used, as recommended by\n  Cython. (The external commands were never required by source\n  distributions.) See :issue:`1076`.\n\n- :class:`gevent.local.local` is compiled with Cython on CPython.\n\n- The Cython ares &#39;channel&#39; class is no longer declared to be publicly\n  accessible from a named C structure. Doing so caused a conflict with\n  the c-ares header files.\n\nBug Fixes\n---------\n\n- If a single greenlet created and destroyed many\n  :class:`gevent.local.local` objects without ever exiting, there\n  would be a leak of the function objects intended to clean up the\n  locals after the greenlet exited. Introduce a weak reference to\n  avoid that. Reported in :issue:`981` by Heungsub Lee.\n\n- pywsgi also catches and ignores by default\n  :const:`errno.WSAECONNABORTED` on Windows. Initial patch in\n  :pr:`999` by Jan van Valburg.\n\n- :meth:`gevent.subprocess.Popen.communicate` returns the correct type\n  of str (not bytes) in universal newline mode under Python 3, or when\n  an encoding has been specified. Initial patch in :pr:`939` by\n  William Grzybowski.\n\n- :meth:`gevent.subprocess.Popen.communicate` (and in general,\n  accessing ``Popen.stdout`` and ``Popen.stderr``) returns the correct\n  type of str (bytes) in universal newline mode under Python 2.\n  Previously it always returned unicode strings. Reported in\n  :issue:`1039` by Michal Petrucha.\n\n- :class:`gevent.fileobject.FileObjectPosix` returns native strings in\n  universal newline mode on Python 2. This is consistent with what\n  :class:`.FileObjectThread` does. See :issue:`1039`.\n\n- ``socket.send()`` now catches ``EPROTOTYPE`` on macOS to handle a race\n  condition during shutdown. Fixed in :pr:`1035` by Jay Oster.\n\n- :func:`gevent.socket.create_connection` now properly cleans up open\n  sockets if connecting or binding raises a :exc:`BaseException` like\n  :exc:`KeyboardInterrupt`, :exc:`greenlet.GreenletExit` or\n  :exc:`gevent.timeout.Timeout`. Reported in :issue:`1044` by\n  kochelmonster.\n\n\nOther Changes\n-------------\n\n- ``Pool.add`` now accepts ``blocking`` and ``timeout`` parameters,\n  which function similarly to their counterparts in ``Semaphore``.\n  See :pr:`1032` by Ron Rothman.\n\n- Defer adjusting the stdlib&#39;s list of active threads until\n  ``threading`` is monkey patched. Previously this was done when\n  :mod:`gevent.threading` was imported. That module is documented to\n  be used as a helper for monkey patching, so this should generally\n  function the same, but some applications ignore the documentation\n  and directly import that module anyway.\n\n  A positive consequence is that ``import gevent.threading, threading;\n  threading.current_thread()`` will no longer return a DummyThread\n  before monkey-patching. Another positive consequence is that PyPy\n  will no longer print a ``KeyError`` on exit if\n  :mod:`gevent.threading` was imported *without* monkey-patching.\n\n  See :issue:`984`.\n\n- Specify the Requires-Python metadata for improved installation\n  support in certain tools (setuptools v24.2.1 or newer is required).\n  See :issue:`995`.\n\n- Monkey-patching after the :mod:`ssl` module has been imported now\n  prints a warning because this can produce ``RecursionError``.\n\n- :class:`gevent.local.local` objects are now approximately 3.5 times faster\n  getting, setting and deleting attributes on PyPy. This involved\n  implementing more of the attribute protocols directly. Please open\n  an issue if you have any compatibility problems. See :issue:`1020`.\n\n- :class:`gevent.local.local` is compiled with Cython on CPython. It\n  was already 5 to 6 times faster due to the work on :issue:`1020`,\n  and compiling it with Cython makes it another 5 to 6 times faster,\n  for a total speed up of about 35 times. It is now in the same\n  ballpark as the native :class:`threading.local` class. It also uses\n  one pointer less memory per object, and one pointer less memory per\n  greenlet. See :pr:`1024`.\n\n- More safely terminate subprocesses on Windows with\n  :meth:`gevent.subprocess.Popen.terminate`. Reported in :issue:`1023`\n  by Giacomo Debidda.\n\n- gevent now uses cffi&#39;s &quot;extern &#39;Python&#39;&quot; callbacks. These should be\n  faster and more stable. This requires at least cffi 1.4.0. See :issue:`1049`.\n\n- gevent now approximately tries to stick to a scheduling interval\n  when running callbacks, instead of simply running a count of\n  callbacks. The interval is determined by\n  :func:`gevent.getswitchinterval`. On Python 3, this is the same as\n  the thread switch interval. On Python 2, this defaults to 0.005s and\n  can be changed with :func:`gevent.setswitchinterval`. This should\n  result in more fair &quot;scheduling&quot; of greenlets, especially when\n  ``gevent.sleep(0)`` or other busy callbacks are in use. The interval\n  is checked every 50 callbacks to keep overhead low. See\n  :issue:`1072`. With thanks to Arcadiy Ivanov and Antonio Cuni.\n\nlibuv\n-----\n\n- Add initial *experimental* support for using libuv as a backend\n  instead of libev, controlled by setting the environment variable\n  ``GEVENT_CORE_CFFI_ONLY=libuv`` before importing gevent. This\n  suffers a number of limitations compared to libev, notably:\n\n  - libuv support is not available in the manylinux wheels uploaded to\n    PyPI. The manylinux specification requires glibc 2.5, while libuv\n    requires glibc 2.12. Install from source to access libuv on Linux\n    (e.g., pip&#39;s ``--no-binary`` option).\n\n  - Timers (such as ``gevent.sleep`` and ``gevent.Timeout``) only\n    support a resolution of 1ms (in practice, it&#39;s closer to 1.5ms).\n    Attempting to use something smaller will automatically increase it\n    to 1ms and issue a warning. Because libuv only supports\n    millisecond resolution by rounding a higher-precision clock to an\n    integer number of milliseconds, timers apparently suffer from more\n    jitter.\n\n  - Using negative timeouts may behave differently from libev.\n\n  - libuv blocks delivery of all signals, so signals are handled using\n    an (arbitrary) 0.3 second timer. This means that signal handling\n    will be delayed by up to that amount, and that the longest the\n    event loop can sleep in the operating system&#39;s ``poll`` call is\n    that amount. Note that this is what gevent does for libev on\n    Windows too.\n\n  - libuv only supports one io watcher per file descriptor, whereas\n    libev and gevent have always supported many watchers using\n    different settings. The libev behaviour is emulated at the Python\n    level, but that adds overhead.\n\n  - Looping multiple times and expecting events for the same file\n    descriptor to be raised each time without any data being read or\n    written (as works with libev) does not appear to work correctly on\n    Linux when using ``gevent.select.poll`` or a monkey-patched\n    ``selectors.PollSelector``.\n\n  - The build system does not support using a system libuv; the\n    embedded copy must be used. Using setuptools to compile libuv was\n    the most portable method found.\n\n  - If anything unexpected happens, libuv likes to ``abort()`` the\n    entire process instead of reporting an error. For example, closing\n    a file descriptor it is using in a watcher may cause the entire\n    process to be exited.\n\n  - There may be occasional otherwise unexplained and hard to\n    duplicate crashes. If you can duplicate a crash, **please** submit\n    an issue.\n\n  - This is the only backend that PyPy can use on Windows. As of this\n    alpha, there are many known issues with non-blocking sockets\n    (e.g., as used by :mod:`asyncore`; see ``test_ftplib.py``) and\n    sometimes sockets not getting closed in a timely fashion\n    (apparently; see ``test_httpservers.py``) and communicating with\n    subprocesses (it always hangs). Help tracking those down would be\n    appreciated. Only PyPy2 is tested.\n\n  Feedback and pull requests are welcome, especially to address the\n  issues mentioned above.\n\n  Other differences include:\n\n  - The order in which timers and other callbacks are invoked may be\n    different than in libev. In particular, timers and IO callbacks\n    happen in a different order, and timers may easily be off by up to\n    half of the supposed 1ms resolution. See :issue:`1057`.\n\n  - Starting a ``timer`` watcher does not update the loop&#39;s time by\n    default. This is because, unlike libev, a timer callback can cause\n    other timer callbacks to be run if they expire because the loop&#39;s\n    time updated, without cycling the event loop. See :issue:`1057`.\n\n    libev has also been changed to follow this behaviour.\n\n    Also see :issue:`1072`.\n\n  - Timers of zero duration do not necessarily cause the event loop to\n    cycle, as they do in libev. Instead, they may be called\n    immediately. If zero duration timers are added from other zero\n    duration timer callbacks, this can lead the loop to appear to\n    hang, as no IO will actually be done.\n\n    To mitigate this issue, ``loop.timer()`` detects attempts to use\n    zero duration timers and turns them into a check watcher. check\n    watchers do not support the ``again`` method.\n\n  - All watchers (e.g., ``loop.io``) and the ``Timeout`` class have a\n    ``close`` method that should be called when code is done using the\n    object (they also function as context managers and a ``with``\n    statement will automatically close them). gevent does this\n    internally for sockets, file objects and internal timeouts.\n    Neglecting to close an object may result in leaking native\n    resources. To debug this, set the environment variables\n    ``GEVENT_DEBUG=debug`` and ``PYTHONTRACEMALLOC=n`` before starting\n    the process.\n\n    The traditional cython-based libev backend will not leak if\n    ``close`` is not called and will not produce warnings. The\n    CFFI-based libev backend will not currently leak but will produce\n    warnings. The CFFI-based libuv backend may leak and will produce\n    warnings.\n\n  Again, this is extremely experimental and all of it is subject to\n  change.\n\n  See :issue:`790` for history and more in-depth discussion.\n\nlibev\n-----\n\n- The C extension has been updated to use more modern Cython idioms\n  and generate less code for simplicity, faster compilation and better\n  cache usage. See :pr:`1077`.\n\n  - Watcher objects may be slightly larger. On a 64-bit platform, a\n    typical watcher may be 16 bytes (2 pointers) larger. This is\n    offset by slight performance gains.\n\n  - Cython is no longer preprocessed. Certain attributes that were\n    previously only defined in certain compilation modes (notably\n    LIBEV_EMBED) are now always defined, but will raise\n    ``AttributeError`` or have a negative value when not available. In\n    general these attributes are not portable or documented and are\n    not implemented by libuv or the CFFI backend. See :issue:`1076`.\n\n  - Certain private helper functions (``gevent_handle_error``, and part of\n    ``gevent_call``) are now implemented in Cython instead of C. This\n    reduces our reliance on internal undocumented implementation\n    details of Cython and Python that could change. See :pr:`1080`.\n   ```\n   \n  \n</details>\n\n\n \n\n<details>\n  <summary>Links</summary>\n  \n  - PyPI: https://pypi.org/project/gevent\n  - Changelog: https://pyup.io/changelogs/gevent/\n  - Homepage: http://www.gevent.org/\n</details>\n\n"},"comment":{"url":"https://api.github.com/repos/jeffshek/betterself/issues/comments/405249341","html_url":"https://github.com/jeffshek/betterself/pull/468#issuecomment-405249341","issue_url":"https://api.github.com/repos/jeffshek/betterself/issues/468","id":405249341,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTI0OTM0MQ==","user":{"login":"pyup-bot","id":16239342,"node_id":"MDQ6VXNlcjE2MjM5MzQy","avatar_url":"https://avatars0.githubusercontent.com/u/16239342?v=4","gravatar_id":"","url":"https://api.github.com/users/pyup-bot","html_url":"https://github.com/pyup-bot","followers_url":"https://api.github.com/users/pyup-bot/followers","following_url":"https://api.github.com/users/pyup-bot/following{/other_user}","gists_url":"https://api.github.com/users/pyup-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/pyup-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyup-bot/subscriptions","organizations_url":"https://api.github.com/users/pyup-bot/orgs","repos_url":"https://api.github.com/users/pyup-bot/repos","events_url":"https://api.github.com/users/pyup-bot/events{/privacy}","received_events_url":"https://api.github.com/users/pyup-bot/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T13:35:34Z","updated_at":"2018-07-16T13:35:34Z","author_association":"CONTRIBUTOR","body":"Closing this in favor of #492"}}
{"actor":{"display_login":"pyup-bot"}}