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.

print won't print without an argument

See original GitHub issue
print()  # prints newline in python, nothing in kuroko
print("")  # prints in both

# also...
print("hello", end=" ")
print(end="world")  # this only works in python
print()
print("hello", end=" ")
print("", end="world")  # this works in both

the case with print(end="blah") not printing anything had me especially confused when I was porting a script, as I have a (bad?) habit of using that form.

this is with Kuroko 1.2.3 (commit 650f324) and a tiny patch to build with MSYS2 (MSYSTEM=MSYS).

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
klangecommented, Dec 6, 2021

also, I have a few other small issues to report relating to built-ins. would you prefer if I made individual github issues like this, or something else?

Let’s do a separate issue for each function.

0reactions
klangecommented, Dec 6, 2021

Closing as fixed in 21b459919b98c084a9ab44da4ebc6ad99d6e09dd

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python Print Without Arguments - Finxter
Print Without Arguments ... You can ´use Python's print() function without arguments: In that case, Python will print an empty new line to...
Read more >
System.out.println doesn't print a line with no parameters?
I'm a little confused and I think I'm missing something. How come the output of the for loop in this code is 46810?...
Read more >
Python: How to Print Without Newline? - STechies
To print without a newline, all you have to do is add an additional argument at the end of your print statement. This...
Read more >
Your Guide to the Python print() Function
You saw print() called without any arguments to produce a blank line and then called with a single argument to display either a...
Read more >
Python Print Without Newline [SOLVED] - freeCodeCamp
How to Print Without a Newline in Python ... As you can see the function takes five arguments in total. The first one...
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