Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 388 for PRINT (0.02 seconds)

  1. docs_src/custom_request_and_route/tutorial003_py310.py

                duration = time.time() - before
                response.headers["X-Response-Time"] = str(duration)
                print(f"route duration: {duration}")
                print(f"route response: {response}")
                print(f"route response headers: {response.headers}")
                return response
    
            return custom_route_handler
    
    
    app = FastAPI()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 10 08:55:32 GMT 2025
    - 1K bytes
    - Click Count (0)
  2. logger/logger.go

    	newlogger := *l
    	newlogger.LogLevel = level
    	return &newlogger
    }
    
    // Info print info
    func (l *logger) Info(ctx context.Context, msg string, data ...interface{}) {
    	if l.LogLevel >= Info {
    		l.Printf(l.infoStr+msg, append([]interface{}{utils.FileWithLineNum()}, data...)...)
    	}
    }
    
    // Warn print warn messages
    func (l *logger) Warn(ctx context.Context, msg string, data ...interface{}) {
    Created: Sun Apr 05 09:35:12 GMT 2026
    - Last Modified: Sat Mar 21 11:35:55 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  3. scripts/docs.py

        new_content = generate_readme_content()
        if new_content != old_content:
            print("README.md outdated from the latest index.md")
            print("Updating README.md")
            readme_path.write_text(new_content, encoding="utf-8")
            raise typer.Exit(1)
        print("README.md is up to date ✅")
    
    
    @app.command()
    def build_all() -> None:
        """
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 17:46:10 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/resources/templates/release-notes-index.asciidoc

    [[es-release-notes]]
    = Release notes
    
    [partintro]
    --
    
    This section summarizes the changes in each release.
    
    <% versions.each { print "* <<release-notes-${ it }>>\n" } %>
    --
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 257 bytes
    - Click Count (0)
  5. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

        }
    
        private void println(String event, String message) {
            print(event, message);
            out.println();
        }
    
        private void print(String event, String message) {
            out.print("Aether Transfer - " + event);
            if (message != null) {
                out.print(": ");
                out.print(message);
            }
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 5.5K bytes
    - Click Count (0)
  6. docs_src/handling_errors/tutorial006_py310.py

    
    @app.exception_handler(StarletteHTTPException)
    async def custom_http_exception_handler(request, exc):
        print(f"OMG! An HTTP error!: {repr(exc)}")
        return await http_exception_handler(request, exc)
    
    
    @app.exception_handler(RequestValidationError)
    async def validation_exception_handler(request, exc):
        print(f"OMG! The client sent invalid data!: {exc}")
        return await request_validation_exception_handler(request, exc)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 928 bytes
    - Click Count (0)
  7. build-tools-internal/src/main/resources/templates/release-highlights.asciidoc

    <<breaking-changes>>.
    endif::[]
    <% if (priorVersions.size() > 0) { %>
    // Add previous release to the list
    Other versions:
    
    <%
    print priorVersions.join("\n| ")
    print "\n"
    }
    
    if (notableHighlights.empty == false) { %>
    // tag::notable-highlights[]
    <% for (highlight in notableHighlights) { %>
    [discrete]
    [[${ highlight.anchor }]]
    === ${highlight.title}
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Sep 01 06:25:29 GMT 2021
    - 848 bytes
    - Click Count (0)
  8. docs/select/README.md

        if 'Records' in event:
            records = event['Records']['Payload'].decode('utf-8')
            print(records)
        elif 'Stats' in event:
            statsDetails = event['Stats']['Details']
            print("Stats details bytesScanned: ")
            print(statsDetails['BytesScanned'])
            print("Stats details bytesProcessed: ")
            print(statsDetails['BytesProcessed'])
    ```
    
    ## 4. Run the Program
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Aug 12 18:20:36 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  9. docs/ko/docs/advanced/advanced-python-types.md

    예를 들어, 어떤 값이 `str` 또는 `None`이 될 수 있다고 선언할 수 있습니다:
    
    ```python
    from typing import Union
    
    
    def say_hi(name: Union[str, None]):
            print(f"Hi {name}!")
    ```
    
    `typing`에는 `None`이 될 수 있음을 선언하는 축약형으로 `Optional`도 있습니다.
    
    아주 개인적인 관점에서의 팁입니다:
    
    - 🚨 `Optional[SomeType]` 사용은 피하세요
    - 대신 ✨ **`Union[SomeType, None]`를 사용하세요** ✨.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 14 08:57:01 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  10. configure.py

        if user_input == 'y':
          print(yes_reply)
          var = True
        elif user_input == 'n':
          print(no_reply)
          var = False
        elif not user_input:
          if enabled_by_default:
            print(yes_reply)
            var = True
          else:
            print(no_reply)
            var = False
        else:
          print('Invalid selection: {}'.format(user_input_origin))
      return var
    
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Dec 19 16:32:04 GMT 2025
    - 48.3K bytes
    - Click Count (0)
Back to Top