Search Options

Results per page
Sort
Preferred Languages
Advance

Results 611 - 620 of 1,612 for runs (0.02 sec)

  1. docs/zh/docs/tutorial/debugging.md

    所以,下面这部分代码才会运行:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    ---
    
    如果你是导入这个模块(文件)就不会这样。
    
    因此,如果你的另一个文件 `importer.py` 像这样:
    
    ```Python
    from myapp import app
    
    # Some more code
    ```
    
    在这种情况下,`myapp.py` 内部的自动变量不会有值为 `"__main__"` 的变量 `__name__`。
    
    所以,下面这一行不会被执行:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    /// info
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/AbstractCIFSContext.java

                Runtime.getRuntime().removeShutdownHook(this);
            }
            return false;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Thread#run()
         */
        @Override
        public void run () {
            try {
                this.closed = true;
                close();
            }
            catch ( CIFSException e ) {
                log.warn("Failed to close context on shutdown", e);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 3.7K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/debugging.md

    ```console
    $ python myapp.py
    ```
    
    </div>
    
    então a variável interna `__name__` no seu arquivo, criada automaticamente pelo Python, terá como valor a string `"__main__"`.
    
    Então, a seção:
    
    ```Python
        uvicorn.run(app, host="0.0.0.0", port=8000)
    ```
    
    vai executar.
    
    ---
    
    Isso não acontecerá se você importar esse módulo (arquivo).
    
    Então, se você tiver outro arquivo `importer.py` com:
    
    ```Python
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. src/archive/zip/zip_test.go

    				t.Fatal(err)
    			}
    			if err := w.Close(); err != nil {
    				t.Fatal(err)
    			}
    		}
    	}
    	t.Run("uint32max-2_NoZip64", func(t *testing.T) {
    		t.Parallel()
    		if generatesZip64(t, gen(0xfffffffe)) {
    			t.Error("unexpected zip64")
    		}
    	})
    	t.Run("uint32max-1_Zip64", func(t *testing.T) {
    		t.Parallel()
    		if !generatesZip64(t, gen(0xffffffff)) {
    			t.Error("expected zip64")
    		}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  5. .bazelrc

    # Linux x86 so that we can use RBE. Since tests still need to run on the single
    # host Arm64 machine, the build becomes too slow (~30 min) to be a presubmit.
    # For testing purposes, we want to see the runtime performance of an
    # experimental job that is build-only, i.e, we only build the test targets and
    # do not run them. By prefixing the configs with "build", we can run both
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Mon Oct 28 22:02:31 UTC 2024
    - 51.3K bytes
    - Viewed (0)
  6. .github/actions/people/Dockerfile

    FROM python:3.9
    
    RUN pip install httpx PyGithub "pydantic==2.0.2" pydantic-settings "pyyaml>=5.3.1,<6.0.0"
    
    COPY ./app /app
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 03 14:12:28 UTC 2023
    - 156 bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

          new Runnable() {
            @Override
            public void run() {
              list.execute();
            }
          };
    
      @Benchmark
      int addThenExecute_multiThreaded(final int reps) throws InterruptedException {
        Runnable addTask =
            new Runnable() {
              @Override
              public void run() {
                for (int i = 0; i < numListeners; i++) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  8. .clang-format

    # Run manually to reformat a file:
    # clang-format -i --style=file <file>
    BasedOnStyle: Google
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Dec 07 04:00:43 UTC 2021
    - 124 bytes
    - Viewed (0)
  9. api/maven-api-cli/src/main/java/org/apache/maven/api/cli/Options.java

         */
        @Nonnull
        Optional<Boolean> showVersion();
    
        /**
         * Indicates whether to run in quiet mode.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
        @Nonnull
        Optional<Boolean> quiet();
    
        /**
         * Indicates whether to run in verbose mode.
         *
         * @return an {@link Optional} containing the boolean flag, or empty if not set
         */
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Tue Oct 22 14:53:58 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/util/transport/Transport.java

                if (n <= 0) {
                    break;
                }
                i += n;
            }
    
            return i;
        }
    
        /* state values
         * 0 - not connected
         * 1 - connecting
         * 2 - run connected
         * 3 - connected
         * 4 - error
         */
        int state = 0;
    
        String name = "Transport" + id++;
        Thread thread;
        TransportException te;
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 9K bytes
    - Viewed (0)
Back to top