About 50 results
Open links in new tab
  1. javascript - What is 'import as'? - Stack Overflow

    Nov 3, 2020 · Or you can import the "default export." What exactly the default export contains is determined by the library's author, but usually the default export is equivalent to the syntax in the …

  2. python - `from ... import` vs `import .` - Stack Overflow

    Feb 25, 2012 · I'm wondering if there's any difference between the code fragment from urllib import request and the fragment import urllib.request or if they are interchangeable. If they are …

  3. from ... import OR import ... as for modules - Stack Overflow

    Mar 12, 2015 · Should I use from foo import bar OR import foo.bar as bar when importing a module and there is no need/wish for changing the name (bar)? Are there any differences? Does it matter?

  4. python - Purpose of import this - Stack Overflow

    Apr 23, 2017 · There is a well known Easter Egg in Python called import this that when added to your code will automatically output The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit …

  5. What does the @ symbol do in javascript imports? - Stack Overflow

    May 30, 2017 · In the code I'm looking at it behaves like ../ going up one level in the directory relative to the file path, but I'd like to know more generally what it does. Unfortunately I can't find any …

  6. Best way to include CSS? Why use @import? - Stack Overflow

    This Stack Overflow thread discusses the best practices for including CSS and the reasons to use @import in web development.

  7. python - What exactly does "import *" import? - Stack Overflow

    Mar 2, 2010 · In Python, what exactly does import * import? Does it import __init__.py found in the containing folder? For example, is it necessary to declare from project.model import __init__, or is …

  8. What does the @ mean inside an import path? - Stack Overflow

    In the scaffolding that vue-cli cranks out for you, part of the base webpack config sets up an alias for .vue files: This makes sense both in the fact that it gives you a relative path from the src file and it …

  9. Use 'import module' or 'from module import'? - Stack Overflow

    Oct 28, 2014 · There's a hell of a difference between importing specific named identifiers 'from module import X,Y,Z vs 'from module import *. The latter pollutes your namespace and can give …

  10. Python: How can I import all variables? - Stack Overflow

    Jul 7, 2009 · The from [module] import [identifiers] form is more future proof because you can easily see when one import will be overriding another. Also note that "variables" aren't different from functions in …