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.

str() doesn't work as expected

See original GitHub issue

When I parse a version string into a SemVer dict, I would expect str(semver_variable) to return a concatenated string.

Is there a best practice here? I’d really like to store my variable as a SemVer, but I have to print it often, so having a simple pattern for doing so would be great.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aronchickcommented, Apr 10, 2020

Yep! Close away - thanks so much for your help and responsiveness!

1reaction
scls19frcommented, Apr 10, 2020

@tomschr you are 100% allowed to follow this path to improve python-semver! Could you summarize what is locking in #229 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

STR function not working - python - Stack Overflow
As it stands, grades[0] + str(grades[1]) should work. What has probably happened is that you have assigned something to the name str somewhere....
Read more >
This says “expected type str, got Int instead” : r/learnpython
You are trying to concatenate a string and a number which doesn't work. You can either convert it to a string before so....
Read more >
Understanding String and &str in Rust - LogRocket Blog
Understanding the concepts in this article as they relate to String and &str enables developers to use strings in Rust more efficiently.
Read more >
eval() - JavaScript - MDN Web Docs - Mozilla
The eval() function evaluates JavaScript code represented as a string and returns its completion value. The source is parsed as a script.
Read more >
csa chapter 5 Flashcards | Quizlet
For example, if str contains "week", the call appendIt("end") should set str to "weekend". The method does not work as intended. public Class...
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