Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

return-value

ContentResult vs. string

August 27, 2022 by Magenaut

I recently was asked why to use ContentResult instead of returning string. Unfortunately I could not give a better answer than: “It is best practice.”

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, return-value, string Leave a comment

How to get the return value from a thread in Python?

August 22, 2022 by Magenaut

The function foo below returns a string 'foo'. How can I get the value 'foo' which is returned from the thread’s target?

Categories Python, Q&A Tags multithreading, python, return-value Leave a comment

How can I return two values from a function in Python?

August 21, 2022 by Magenaut

I would like to return two values from a function in two separate variables.
For example:

Categories Python, Q&A Tags function, list, python, return, return-value Leave a comment

How to call an external program in python and retrieve the output and return code?

August 16, 2022 by Magenaut

How can I call an external program with a python script and retrieve the output and return code?

Categories Python, Q&A Tags external-process, python, return-value Leave a comment

Is it pythonic for a function to return multiple values?

August 14, 2022 by Magenaut

In python, you can have a function return multiple values. Here’s a contrived example:

Categories Python, Q&A Tags function, multiple-return-values, python, return-value Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress