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.5 new keywords, async and await, not syntax highlighted

See original GitHub issue

From https://github.com/pypa/warehouse/issues/3770:

See for instance https://pypi.org/project/influxdbpusher/

It has code snippets with async def and await, which are not being properly highlighted as keywords.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
theacodescommented, Apr 19, 2018

looks like it might just be that we need to use the “python3” lexer by default: http://pygments.org/demo/6734166/

0reactions
gjcarneirocommented, Nov 2, 2018

Looks like I’m not the only package author with this problem, see https://pypi.org/project/aiokafka/0.4.3/

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue 29706: IDLE needs syntax highlighting for async and await
I presume you would like 'async' and 'await' highlighted as keywords. However, IDLE takes its definition of 'keyword' from keyword.kwlist. ' ...
Read more >
New python async and await keywords - Stack Overflow
This PEP assumes that the asynchronous tasks are scheduled and coordinated by an Event Loop [..] While the PEP is not tied to...
Read more >
How the heck does async/await work in Python 3.5?
My hopes and dreams for the future​​ The problem is that Python 3.5 is so new that async / await is also very...
Read more >
Highlight `async` and `await` as keywords in Python 3.7
Highlight them as keywords; Highlight wrong usages (variable, class, function names); Update compatibility inspection to raise warning only if Python 3.7+ ...
Read more >
async/await in Python 3.5 and why it is awesome - YouTube
Yury Selivanov - async / await in Python 3.5 and why it is awesome[EuroPython 2016][21 July 2016][Bilbao, Euskadi, ...
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