Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 378 for Importer (0.31 sec)

  1. docs/ko/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
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 04:18:08 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. src/go/types/check_test.go

    		for _, err := range errlist {
    			t.Error(err)
    		}
    	}
    
    	// set up typechecker
    	var conf Config
    	*boolFieldAddr(&conf, "_Trace") = manual && testing.Verbose()
    	conf.Importer = importer.Default()
    	conf.Error = func(err error) {
    		if *haltOnError {
    			defer panic(err)
    		}
    		if listErrors {
    			t.Error(err)
    			return
    		}
    		// Ignore secondary error messages starting with "\t";
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:45:33 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/import.go

    	found                     bool
    	mods                      []module.Version
    	importer, importerVersion string // optional, but used for additional context
    	importerIsTest            bool
    }
    
    func (e *ImportMissingSumError) Error() string {
    	var importParen string
    	if e.importer != "" {
    		importParen = fmt.Sprintf(" (imported by %s)", e.importer)
    	}
    	var message string
    	if e.found {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/api_predicates.go

    // A collection of symbols is consistent if, for each logical
    // package whose path is P, the creation of those symbols
    // involved at most one call to [NewPackage](P, ...).
    // To ensure consistency, use a single [Importer] for
    // all loaded packages and their dependencies.
    // For more information, see https://github.com/golang/go/issues/57497.
    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  5. src/go/types/api_test.go

    			Importer: importer.For(compiler, nil),
    		}
    
    		info := &Info{
    			Uses: make(map[*ast.Ident]Object),
    		}
    		pkg, _ := conf.Check("p", fset, files, info)
    		if pkg == nil {
    			t.Errorf("for %s importer, type-checking failed to return a package", compiler)
    			continue
    		}
    
    		imports := pkg.Imports()
    		if len(imports) != 1 {
    			t.Errorf("for %s importer, got %d imports, want 1", compiler, len(imports))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  6. src/go/types/api_predicates.go

    // A collection of symbols is consistent if, for each logical
    // package whose path is P, the creation of those symbols
    // involved at most one call to [NewPackage](P, ...).
    // To ensure consistency, use a single [Importer] for
    // all loaded packages and their dependencies.
    // For more information, see https://github.com/golang/go/issues/57497.
    func Identical(x, y Type) bool {
    	var c comparer
    	return c.identical(x, y, nil)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter.h

                     const std::string& device_type);
    
      ~Tf2XlaRewriter();
    
      // Compiles the given Operation with XlaBuilder and imports the generated HLO
      // via the HLO -> MHLO importer.
      absl::StatusOr<mhlo::TupleOp> CompileWithHloImporter(
          tensorflow::OpKernelContext& op_context);
    
      // Import the given XlaComputation into the parent module. Returns the given
      // generated function.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/api_test.go

    			//Importer: importer.For(compiler, nil),
    		}
    
    		info := &Info{
    			Uses: make(map[*syntax.Name]Object),
    		}
    		pkg, _ := conf.Check("p", files, info)
    		if pkg == nil {
    			t.Errorf("for %s importer, type-checking failed to return a package", compiler)
    			continue
    		}
    
    		imports := pkg.Imports()
    		if len(imports) != 1 {
    			t.Errorf("for %s importer, got %d imports, want 1", compiler, len(imports))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/load.go

    		if pkg.err == nil {
    			continue
    		}
    
    		// Add importer information to checksum errors.
    		if sumErr := (*ImportMissingSumError)(nil); errors.As(pkg.err, &sumErr) {
    			if importer := pkg.stack; importer != nil {
    				sumErr.importer = importer.path
    				sumErr.importerVersion = importer.mod.Version
    				sumErr.importerIsTest = importer.testOf != nil
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/object_test.go

    	testenv.MustHaveGoBuild(t)
    
    	for i, test := range testObjects {
    		t.Run(fmt.Sprint(i), func(t *testing.T) {
    			src := "package p; " + test.src
    			conf := Config{Error: func(error) {}, Importer: defaultImporter(), EnableAlias: test.alias}
    			pkg, err := typecheck(src, &conf, nil)
    			if err != nil {
    				t.Fatalf("%s: %s", src, err)
    			}
    
    			names := strings.Split(test.obj, ".")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top