question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python 3.8 compatibility

See original GitHub issue

Using python3.8, with -Werror

>>> from freezegun import freeze_time
>>> @freeze_time()
... async def foo():
...     pass
... 
Traceback (most recent call last):
  File "<stdin>", line 2, in <module>
  File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/api.py", line 500, in __call__
    return self.decorate_coroutine(func)
  File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/api.py", line 689, in decorate_coroutine
    return wrap_coroutine(self, coroutine)
  File "[...]/.tox/py38-std-sha256/lib/python3.8/site-packages/freezegun/_async.py", line 9, in wrap_coroutine
    def wrapper(*args, **kwargs):
  File "/opt/python/3.8-dev/lib/python3.8/asyncio/coroutines.py", line 111, in coroutine
    warnings.warn('"@coroutine" decorator is deprecated since Python 3.8, use "async def" instead',
DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead

According to the release notes: https://docs.python.org/3.8/whatsnew/changelog.html#changelog

bpo-36921: Deprecate @coroutine for sake of async def.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
tirkarthicommented, Jun 19, 2019

One note is that the freezegun supports 3.4 which reached EoL. async def syntax is supported only from 3.5 and above

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python 3.8 support table for most popular Python packages
Python 3.8 is a currently supported version of Python . This site shows Python 3.8 support for the 360 most downloaded packages on...
Read more >
What's New In Python 3.8 — Python 3.11.1 documentation
Release builds and debug builds are now ABI compatible: defining the Py_DEBUG macro no longer implies the Py_TRACE_REFS macro, which introduces the only...
Read more >
Python Release Python 3.8.10
Major new features of the 3.8 series, compared to 3.7 ; PEP 572, Assignment expressions ; PEP 570, Positional-only arguments ; PEP 587,...
Read more >
Python Release Python 3.8.0
For Python 3.8.0, we provide one installer: 64-bit-only that works on macOS 10.9 (Mavericks) and later systems. Please read the "Important ...
Read more >
PEP 606 – Python Compatibility Version
Python 3.9 with sys.set_python_compat_version((3, 8)) is not fully compatible with Python 3.8: the compatibility is only partial. Security ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found