- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 43 for sameFile (0.13 sec)
-
docs/de/docs/tutorial/dependencies/dependencies-with-yield.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 18:10:29 UTC 2024 - 13.5K bytes - Viewed (0) -
docs/zh/docs/tutorial/dependencies/dependencies-with-yield.md
例如,<a href="https://docs.python.org/zh-cn/3/tutorial/inputoutput.html#reading-and-writing-files" class="external-link" target="_blank">您可以使用`with`读取文件</a>: ```Python with open("./somefile.txt") as f: contents = f.read() print(contents) ``` 在底层,`open("./somefile.txt")`创建了一个被称为“上下文管理器”的对象。 当`with`块结束时,它会确保关闭文件,即使发生了异常也是如此。 当你使用`yield`创建一个依赖项时,**FastAPI**会在内部将其转换为上下文管理器,并与其他相关工具结合使用。 ### 在依赖项中使用带有`yield`的上下文管理器
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 10.3K bytes - Viewed (0) -
docs/en/docs/tutorial/dependencies/dependencies-with-yield.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Feb 24 23:06:37 UTC 2024 - 14.1K bytes - Viewed (0) -
docs/ru/docs/tutorial/dependencies/dependencies-with-yield.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Tue Apr 02 04:21:06 UTC 2024 - 19.6K bytes - Viewed (0) -
docs/ja/docs/tutorial/dependencies/dependencies-with-yield.md
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 12.5K bytes - Viewed (0) -
platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy
} } } } ''' // Non-empty source set to trigger the corresponding task file('src/main/someLang/somefile.someLang').text = "" when: succeeds "printBinaryTaskNames" then: output.contains "names: [customMainB1MainSomeLang]" }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 20.4K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 16.8K bytes - Viewed (0) -
testing/internal-testing/src/main/groovy/org/gradle/test/fixtures/file/TestFile.java
} /** * Creates a directory structure specified by the given closure. * <pre> * dir.create { * subdir1 { * file 'somefile.txt' * } * subdir2 { nested { file 'someFile' } } * } * </pre> */ public TestFile create(@DelegatesTo(value = TestWorkspaceBuilder.class, strategy = Closure.DELEGATE_FIRST) Closure structure) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 11 18:31:52 UTC 2024 - 30.3K bytes - Viewed (0) -
src/cmd/internal/src/pos.go
col = colMax } // default is not-sure-if-statement return makeLicoRaw(line, col) } func (x lico) Line() uint { return uint(x) >> lineShift } func (x lico) SameLine(y lico) bool { return 0 == (x^y)&^lico(1<<lineShift-1) } func (x lico) Col() uint { return uint(x) >> colShift & colMax } func (x lico) IsStmt() uint { if x == 0 { return PosNotStmt }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 01 15:52:41 UTC 2023 - 15.5K bytes - Viewed (0) -
platforms/jvm/plugins-java/src/integTest/groovy/org/gradle/api/plugins/JavaPluginTest.groovy
task instanceof DefaultTask task dependsOn(JvmConstants.TEST_TASK_NAME) when: project.sourceSets.main.java.srcDirs(temporaryFolder.getTestDirectory()) temporaryFolder.file("SomeFile.java").touch() task = project.tasks[JvmConstants.JAVADOC_TASK_NAME] then: task instanceof Javadoc task dependsOn(JvmConstants.CLASSES_TASK_NAME, JvmConstants.COMPILE_JAVA_TASK_NAME)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 27 10:21:26 UTC 2024 - 25.5K bytes - Viewed (0)