About 53 results
Open links in new tab
  1. What does -> mean in Python function definitions?

    Jan 17, 2013 · 13 def f(x) -> 123: return x My summary: Simply -> is introduced to get developers to optionally specify the return type of the function. See Python Enhancement Proposal 3107 This is an …

  2. What is a DEF function for Python - Stack Overflow

    Sep 10, 2013 · 14 def isn't a function, it defines a function, and is one of the basic keywords in Python. For example:

  3. How can we define a function without using the `def` keyword?

    Apr 7, 2018 · That is, how can we define a function without using the def or lambda keywords? What might a pure-python implementation of dehf look like if the following two pieces of code created …

  4. .def files C/C++ DLLs - Stack Overflow

    Jul 21, 2014 · The advantage of def file is that, it helps you to maintain the backword compatibility with the already realsed dlls. i.e it maintains the ordinal numbers for apis. Suppose you add a new api in …

  5. python calling a def () inside of def () - Stack Overflow

    Aug 1, 2018 · python calling a def () inside of def () Asked 7 years, 6 months ago Modified 3 years, 4 months ago Viewed 31k times

  6. python - What does def main () -> None do? - Stack Overflow

    As is, it does absolutely nothing. It is a type annotation for the main function that simply states that this function returns None. Type annotations were introduced in Python 3.5 and are specified in PEP …

  7. function - what is "def" in Java class - Stack Overflow

    Jan 14, 2021 · while googling, I find that "def" is used in python and groovy language. But, I am using java. So, how come it is possible to use keywords like "def" in java class? Is it possible to use other …

  8. Python, def_init_(self): syntax error - Stack Overflow

    def __init__(self,name,age): def means you start a function (definition), and it needs a space to follow. The function __init__ is the constructor. There should always be a colon at the end of a function …

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

    I would like to return two values from a function in two separate variables. What would you expect it to look like on the calling end? You can't write a = select_choice(); b = select_choice() because that …

  10. c++ - How to understand .def files? - Stack Overflow

    Aug 14, 2010 · The .def file on Win32 describes what functions get exported from a DLL. Unlike with .so files on gcc/Linux, where every symbol gets exported by default, you have to tell the compiler what …