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.

examples/basic.py returns None

See original GitHub issue

I am trying to run the the examples/basic.py, which shows nothing on a screen (no print statement is executed). Running stan server in debug mode using -SD flag, I see the client connecting to the stream, successfully subscribing, removing subscription and closing down. At the same time, adding an extra line await asyncio.sleep(0.1) after await sc.subscribe prints the result successfully, which makes me think that the execution of run finishes before stan returns any results. Could you comment on this?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
wallyqscommented, Jun 1, 2018

good call, just updated as well 👍

0reactions
jsamcommented, Jun 1, 2018

thank you! 💃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python: My function returns "None" after it does what I want it to
If the python function does not come across a return statement it prints None by default. Making a small change as shown below...
Read more >
Leveraging Python's Implicit "return None" Statements
https://dbader.org/ python -tricks ▻ Write better and cleaner Python code with these bite-sized examples and tipsPython adds an implicit ...
Read more >
Returning None Explicitly - Real Python
First, we'll look at returning None explicitly. As you've seen, Python will return a value of None in several situations, but there might...
Read more >
Python Code Examples – Sample Script Coding Tutorial for ...
Tip: if a function doesn't have a return statement or doesn't find one during its execution, it returns None by default. The Style...
Read more >
Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
If the object accessed or function called is undefined or null, it returns undefined instead of throwing an error.
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