Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,135 for contexto (0.03 sec)

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

    ## Контекстные менеджеры { #context-managers }
    
    ### Что такое «контекстные менеджеры» { #what-are-context-managers }
    
    «Контекстные менеджеры» — это любые объекты Python, которые можно использовать в операторе `with`.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 19.7K bytes
    - Viewed (0)
  2. 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** 会在内部将其转换为上下文管理器,并与其他相关工具结合使用。
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/BaseParser.java

                    context.parsingFailed,
                    context.cwd,
                    context.installationDirectory,
                    context.userHomeDirectory,
                    context.userProperties,
                    context.systemProperties,
                    context.topDirectory,
                    context.rootDirectory,
                    context.extensions,
                    context.ciInfo,
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 10 07:39:11 UTC 2025
    - 25.5K bytes
    - Viewed (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestrator.java

            if (!result.errorPoms().isEmpty()) {
                context.failure("Strategy completed with errors");
                context.indent();
                context.info("Processed: " + result.processedPoms().size() + " POMs");
                context.info("Modified: " + result.modifiedPoms().size() + " POMs");
                context.failure("Errors: " + result.errorPoms().size() + " POMs");
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Nov 18 18:03:26 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/nego/NegotiateContextRequestTest.java

            void testDefaultConstructor() {
                context = new PreauthIntegrityNegotiateContext();
    
                assertEquals(PreauthIntegrityNegotiateContext.NEGO_CTX_PREAUTH_TYPE, context.getContextType());
                assertNull(context.getHashAlgos());
                assertNull(context.getSalt());
            }
    
            @Test
            @DisplayName("Should handle null hash algorithms")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  6. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/EncryptInvoker.java

        protected void lookup(EncryptContext context) throws Exception {
            if (context.goals == null) {
                super.lookup(context);
                context.goals = context.lookup.lookupMap(Goal.class);
            }
        }
    
        @Override
        protected int execute(EncryptContext context) throws Exception {
            try {
                context.header = new ArrayList<>();
                context.style = new AttributedStyle();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  7. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnup/UpgradeInvoker.java

        protected void lookup(UpgradeContext context) throws Exception {
            if (context.goals == null) {
                super.lookup(context);
                context.goals = context.lookup.lookupMap(Goal.class);
            }
        }
    
        @Override
        protected int execute(UpgradeContext context) throws Exception {
            try {
                context.header = new ArrayList<>();
                context.style = new AttributedStyle();
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jun 11 13:14:09 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/test/java/org/apache/maven/model/profile/activation/FileProfileActivatorTest.java

            assertActivation(false, newExistsProfile("someFile.txt"), context);
            assertActivation(false, newExistsProfile("${project.basedir}/someFile.txt"), context);
    
            assertActivation(false, newMissingProfile(null), context);
            assertActivation(true, newMissingProfile("someFile.txt"), context);
            assertActivation(true, newMissingProfile("${project.basedir}/someFile.txt"), context);
        }
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 10 07:09:12 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

         *
         * @param context the query context
         * @param termQuery the term query to convert
         * @param boost the boost value to apply
         * @return the converted QueryBuilder
         */
        protected QueryBuilder convertTermQuery(final QueryContext context, final TermQuery termQuery, final float boost) {
            final String field = getSearchField(context.getDefaultField(), termQuery.getTerm().field());
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

         * build a smaller set of projects but perform other operations in the context of your reactor.
         */
        private List<MavenProject> allProjects;
    
        private MavenProject topLevelProject;
    
        private ProjectDependencyGraph projectDependencyGraph;
    
        private boolean parallel;
    
        /**
         * Plugin context keyed by project ({@link MavenProject#getId()}) and by plugin lookup key
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jan 24 17:29:44 UTC 2025
    - 16.7K bytes
    - Viewed (0)
Back to top