Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for unpacking (0.13 sec)

  1. docs/en/docs/tutorial/extra-models.md

    print(user_dict)
    ```
    
    we would get a Python `dict` with:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Unpacking a `dict` { #unpacking-a-dict }
    
    If we take a `dict` like `user_dict` and pass it to a function (or class) with `**user_dict`, Python will "unpack" it. It will pass the keys and values of the `user_dict` directly as key-value arguments.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 20 15:55:38 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  2. docs/es/docs/tutorial/extra-models.md

    obtendremos un `dict` de Python con:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Desempaquetando un `dict` { #unpacking-a-dict }
    
    Si tomamos un `dict` como `user_dict` y lo pasamos a una función (o clase) con `**user_dict`, Python lo "desempaquetará". Pasará las claves y valores del `user_dict` directamente como argumentos clave-valor.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 16 16:33:45 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/extra-models.md

    würden wir ein Python-`dict` erhalten mit:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Ein `dict` entpacken { #unpacking-a-dict }
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 24 10:28:19 UTC 2025
    - 8K bytes
    - Viewed (0)
  4. docs/ru/docs/tutorial/extra-models.md

    мы можем получить `dict` с такими данными:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Распаковка `dict` { #unpacking-a-dict }
    
    Если мы возьмём `dict` наподобие `user_dict` и передадим его в функцию (или класс), используя `**user_dict`, Python распакует его. Он передаст ключи и значения `user_dict` напрямую как аргументы типа ключ-значение.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Sep 30 11:24:39 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  5. docs/pt/docs/tutorial/extra-models.md

    teríamos um `dict` Python com:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### Desembrulhando um `dict` { #unpacking-a-dict }
    
    Se tomarmos um `dict` como `user_dict` e passarmos para uma função (ou classe) com `**user_dict`, o Python irá "desembrulhá-lo". Ele passará as chaves e valores do `user_dict` diretamente como argumentos chave-valor.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Nov 12 16:23:57 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. docs/ko/docs/tutorial/extra-models.md

    print(user_dict)
    ```
    
    Python의 `dict`가 다음과 같이 출력됩니다:
    
    ```Python
    {
        'username': 'john',
        'password': 'secret',
        'email': '******@****.***',
        'full_name': None,
    }
    ```
    
    #### `dict` 언패킹(Unpacking)
    
    `user_dict`와 같은 `dict`를 함수(또는 클래스)에 `**user_dict`로 전달하면, Python은 이를 "언팩(unpack)"합니다. 이 과정에서 `user_dict`의 키와 값을 각각 키-값 인자로 직접 전달합니다.
    
    따라서, 위에서 생성한 `user_dict`를 사용하여 다음과 같이 작성하면:
    
    ```Python
    UserInDB(**user_dict)
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri May 30 13:38:33 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/additional-responses.md

    You might want to have some predefined responses that apply to many *path operations*, but you want to combine them with custom responses needed by each *path operation*.
    
    For those cases, you can use the Python technique of "unpacking" a `dict` with `**dict_to_unpack`:
    
    ```Python
    old_dict = {
        "old key": "old value",
        "second old key": "second old value",
    }
    new_dict = {**old_dict, "new key": "new value"}
    ```
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/HashFunction.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A hash function is a collision-averse pure function that maps an arbitrary block of data to a
     * number called a <i>hash code</i>.
     *
     * <h3>Definition</h3>
     *
     * <p>Unpacking this definition:
     *
     * <ul>
     *   <li><b>block of data:</b> the input for a hash function is always, in concept, an ordered byte
     *       array. This hashing API accepts an arbitrary sequence of byte and multibyte values (via
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/HashFunction.java

    import org.jspecify.annotations.Nullable;
    
    /**
     * A hash function is a collision-averse pure function that maps an arbitrary block of data to a
     * number called a <i>hash code</i>.
     *
     * <h3>Definition</h3>
     *
     * <p>Unpacking this definition:
     *
     * <ul>
     *   <li><b>block of data:</b> the input for a hash function is always, in concept, an ordered byte
     *       array. This hashing API accepts an arbitrary sequence of byte and multibyte values (via
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/LockingAndXRange.java

    import jcifs.Decodable;
    import jcifs.Encodable;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Represents a byte range for SMB1 locking and unlocking operations.
     *
     * This class encapsulates the information about a byte range that needs
     * to be locked or unlocked, including the process ID, offset, and length.
     *
     * @author mbechler
     */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.1K bytes
    - Viewed (0)
Back to top