Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 370 for open (5.62 sec)

  1. docs/de/docs/advanced/events.md

    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In neueren Versionen von Python gibt es auch einen **asynchronen Kontextmanager**. Sie würden ihn mit `async with` verwenden:
    
    ```Python
    async with lifespan(app):
        await do_stuff()
    ```
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 20:30:59 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/ConnectionEvent.kt

    @SuppressSignatureCheck
    sealed class ConnectionEvent {
      abstract val timestampNs: Long
      open val connection: Connection?
        get() = null
    
      /** Returns if the event closes this event, or null if this is no open event. */
      open fun closes(event: ConnectionEvent): Boolean? = null
    
      val name: String
        get() = javaClass.simpleName
    
      data class ConnectStart(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  3. cmd/os-instrumented.go

    // os.Lstat()
    func Access(name string) (err error) {
    	defer updateOSMetrics(osMetricAccess, name)(err)
    	return access(name)
    }
    
    // Open captures time taken to call os.Open
    func Open(name string) (f *os.File, err error) {
    	defer updateOSMetrics(osMetricOpen, name)(err)
    	return os.Open(name)
    }
    
    // OpenFileDirectIO captures time taken to call disk.OpenFileDirectIO
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 15 01:09:38 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/40_contributor_documentation.yml

            If you found a clear typo, please open a PR with a fix instead of opening an issue.
    
      - type: dropdown
        id: issue-type
        attributes:
          label: Issue type
          options:
            - Wrong or misleading information
            - Missing information
            - Styling or Accessibility
            - Typo (please open a PR instead)
        validations:
          required: true
      - type: textarea
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Mon Jan 15 10:01:01 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      /**
       * Returns true if this stream is open. A stream is open until either:
       *
       *  * A `SYN_RESET` frame abnormally terminates the stream.
       *  * Both input and output streams have transmitted all data and headers.
       *
       * Note that the input stream may continue to yield data even after a stream reports itself as
       * not open. This is because input data is buffered.
       */
      val isOpen: Boolean
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 23.2K bytes
    - Viewed (1)
  6. docs/en/docs/advanced/events.md

    ```Python hl_lines="1  13"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager:
    
    ```Python
    with open("file.txt") as file:
        file.read()
    ```
    
    In recent versions of Python, there's also an **async context manager**. You would use it with `async with`:
    
    ```Python
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/10_contributor_bug_report.yml

            Please open Android-related issues on [the Android Issue Tracker](https://source.android.com/source/report-bugs)
            Please open IntelliJ-related issues on [the JetBrains Issue Tracker](https://youtrack.jetbrains.com/newIssue?project=IDEA)
            Please open Gradle Native-related issues on [the Gradle Native repository](https://github.com/gradle/gradle-native/issues)
    
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Fri Feb 16 07:49:32 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. tests/table_test.go

    		return
    	}
    
    	type LongString struct {
    		ThisIsAVeryVeryVeryVeryVeryVeryVeryVeryVeryLongString string `gorm:"unique"`
    	}
    
    	t.Run("default", func(t *testing.T) {
    		db, _ := gorm.Open(postgres.Open(postgresDSN), &gorm.Config{})
    		user, err := schema.Parse(&LongString{}, &sync.Map{}, db.Config.NamingStrategy)
    		if err != nil {
    			t.Fatalf("failed to parse user unique, got error %v", err)
    		}
    
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  9. tests/callbacks_test.go

    			results:   []string{"c5", "c1", "c2", "c3", "c4"},
    		},
    	}
    
    	for idx, data := range datas {
    		db, err := gorm.Open(nil, nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		callbacks := db.Callback()
    
    		for _, c := range data.callbacks {
    			var v interface{} = callbacks.Create()
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Tue Mar 26 03:33:36 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_files/test_tutorial002.py

        path = tmp_path / "test.txt"
        path.write_bytes(b"<file content>")
        path2 = tmp_path / "test2.txt"
        path2.write_bytes(b"<file content2>")
    
        client = TestClient(app)
        with path.open("rb") as file, path2.open("rb") as file2:
            response = client.post(
                "/files/",
                files=(
                    ("files", ("test.txt", file)),
                    ("files", ("test2.txt", file2)),
                ),
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 8.5K bytes
    - Viewed (0)
Back to top