Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,030 for encodeTo (0.17 sec)

  1. docs/de/docs/reference/encoders.md

    # Encoder – `jsonable_encoder`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Feb 19 15:54:52 UTC 2024
    - 72 bytes
    - Viewed (0)
  2. docs/en/docs/reference/encoders.md

    # Encoders - `jsonable_encoder`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Wed Oct 18 12:36:40 UTC 2023
    - 71 bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    In diesem Beispiel wird das Pydantic-Modell in ein `dict`, und das `datetime`-Objekt in ein `str` konvertiert.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 30 18:07:21 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/encoding/ascii85/ascii85.go

    // NewEncoder returns a new ascii85 stream encoder. Data written to
    // the returned writer will be encoded and then written to w.
    // Ascii85 encodings operate in 32-bit blocks; when finished
    // writing, the caller must Close the returned encoder to flush any
    // trailing partial block.
    func NewEncoder(w io.Writer) io.WriteCloser { return &encoder{w: w} }
    
    type encoder struct {
    	err  error
    	w    io.Writer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  5. docs/ru/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.6+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    В данном примере она преобразует Pydantic модель в `dict`, а `datetime` - в `str`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Jan 23 13:56:12 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. docs/uk/docs/tutorial/encoder.md

    === "Python 3.10+"
    
        ```Python hl_lines="4  21"
        {!> ../../../docs_src/encoder/tutorial001_py310.py!}
        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="5  22"
        {!> ../../../docs_src/encoder/tutorial001.py!}
        ```
    
    У цьому прикладі вона конвертує Pydantic model у `dict`, а `datetime` у `str`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/github.com/google/pprof/profile/encode.go

    package profile
    
    import (
    	"errors"
    	"sort"
    	"strings"
    )
    
    func (p *Profile) decoder() []decoder {
    	return profileDecoder
    }
    
    // preEncode populates the unexported fields to be used by encode
    // (with suffix X) from the corresponding exported fields. The
    // exported fields are cleared up to facilitate testing.
    func (p *Profile) preEncode() {
    	strings := make(map[string]int)
    	addString(strings, "")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  8. cmd/erasure-coding.go

    		return e, reedsolomon.ErrMaxShardNum
    	}
    
    	e = Erasure{
    		dataBlocks:   dataBlocks,
    		parityBlocks: parityBlocks,
    		blockSize:    blockSize,
    	}
    
    	// Encoder when needed.
    	var enc reedsolomon.Encoder
    	var once sync.Once
    	e.encoder = func() reedsolomon.Encoder {
    		once.Do(func() {
    			e, err := reedsolomon.New(dataBlocks, parityBlocks, reedsolomon.WithAutoGoroutines(int(e.ShardSize())))
    			if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed Jan 31 02:11:45 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  9. src/mime/encodedword.go

    	"unicode/utf8"
    )
    
    // A WordEncoder is an RFC 2047 encoded-word encoder.
    type WordEncoder byte
    
    const (
    	// BEncoding represents Base64 encoding scheme as defined by RFC 2045.
    	BEncoding = WordEncoder('b')
    	// QEncoding represents the Q-encoding scheme as defined by RFC 2047.
    	QEncoding = WordEncoder('q')
    )
    
    var (
    	errInvalidWord = errors.New("mime: invalid RFC 2047 encoded-word")
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 16:12:35 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. docs/ja/docs/tutorial/encoder.md

    同様に、このデータベースはPydanticモデル(属性を持つオブジェクト)を受け取らず、`dict`だけを受け取ります。
    
    そのために`jsonable_encoder`を使用することができます。
    
    Pydanticモデルのようなオブジェクトを受け取り、JSON互換版を返します:
    
    ```Python hl_lines="5 22"
    {!../../../docs_src/encoder/tutorial001.py!}
    ```
    
    この例では、Pydanticモデルを`dict`に、`datetime`を`str`に変換します。
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Jan 22 20:09:02 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top