Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 841 - 850 of 1,832 for context_ (0.18 seconds)

  1. docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md

    ## 上下文管理器 { #context-managers }
    
    ### 什么是“上下文管理器” { #what-are-context-managers }
    
    “上下文管理器”是你可以在 `with` 语句中使用的任意 Python 对象。
    
    例如,[你可以用 `with` 来读取文件](https://docs.python.org/3/tutorial/inputoutput.html#reading-and-writing-files):
    
    ```Python
    with open("./somefile.txt") as f:
        contents = f.read()
        print(contents)
    ```
    
    在底层,`open("./somefile.txt")` 会创建一个“上下文管理器”对象。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 12.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/JdkDownloadPluginFuncTest.groovy

            "darwin"  | "x64"     | VENDOR_OPENJDK      | OPEN_JDK_VERSION     | "Contents/Home/bin/java" | ""
            "darwin"  | "x64"     | VENDOR_OPENJDK      | OPENJDK_VERSION_OLD  | "Contents/Home/bin/java" | "(old version)"
            "mac"     | "x64"     | VENDOR_OPENJDK      | OPEN_JDK_VERSION     | "Contents/Home/bin/java" | ""
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 10.5K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/lang/ClassLoaderUtil.java

        }
    
        /**
         * Returns the class loader.
         * <p>
         * The class loader is searched in the following order:
         * </p>
         * <ol>
         * <li>If the context class loader is set for the calling thread, that context class loader</li>
         * <li>If the class loader that loaded the target class can be obtained, that class loader</li>
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  4. cmd/erasure-healing-common.go

    // checkObjectWithAllParts sets partsMetadata and onlineDisks when xl.meta is inexistant/corrupted or outdated
    // it also checks if the status of each part (corrupted, missing, ok) in each drive
    func checkObjectWithAllParts(ctx context.Context, onlineDisks []StorageAPI, partsMetadata []FileInfo,
    	errs []error, latestMeta FileInfo, filterByETag bool, bucket, object string,
    	scanMode madmin.HealScanMode,
    ) (dataErrsByDisk map[int][]int, dataErrsByPart map[int][]int) {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 12K bytes
    - Click Count (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/platform/Platform.kt

          // Oracle JDK. Note that we don't support HTTP/2 or other nice features on Robolectric.
          val sslContextClass = Class.forName("sun.security.ssl.SSLContextImpl")
          val context = readFieldOrNull(sslSocketFactory, sslContextClass, "context") ?: return null
          readFieldOrNull(context, X509TrustManager::class.java, "trustManager")
        } catch (e: ClassNotFoundException) {
          null
        } catch (e: RuntimeException) {
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

            @Test
            public void testConstructorWithContextAndName() throws Exception {
                // Test constructor that takes a context SmbFile and a name
                SmbFile context = new SmbFile("smb1://server/share/");
                String name = "file.txt";
                SmbFile smbFile = new SmbFile(context, name);
                assertEquals("smb1://server/share/file.txt", smbFile.getCanonicalPath());
            }
    
            @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 8.5K bytes
    - Click Count (0)
  7. cmd/bitrot-streaming.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"bytes"
    	"context"
    	"errors"
    	"hash"
    	"io"
    	"sync"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/ioutil"
    	"github.com/minio/minio/internal/ringbuffer"
    )
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jan 17 19:19:30 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  8. tests/test_additional_responses_response_class.py

                    "/a": {
                        "get": {
                            "responses": {
                                "500": {
                                    "description": "Error",
                                    "content": {
                                        "application/vnd.api+json": {
                                            "schema": {
                                                "$ref": "#/components/schemas/JsonApiError"
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/collect/SetsFilterSortedSetTest.java

    @NullUnmarked
    public final class SetsFilterSortedSetTest
        extends AbstractFilteredSortedSetTest<SortedSet<Integer>> {
      @Override
      SortedSet<Integer> createUnfiltered(Iterable<Integer> contents) {
        TreeSet<Integer> result = Sets.newTreeSet(contents);
        // we have to make the result not Navigable
        return new ForwardingSortedSet<Integer>() {
          @Override
          protected SortedSet<Integer> delegate() {
            return result;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  10. schema/schema.go

    				} else {
    					logger.Default.Warn(context.Background(), "In model %v, the hook function `%v(*gorm.DB) error` has an incorrect parameter type. The expected parameter type is `%v`, but the provided type is `%v`.", schema, cbName, expectedPkgPath, inVarPkg)
    					// PASS
    				}
    			default:
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 13.3K bytes
    - Click Count (0)
Back to Top