Tornado 6.5 Documentationor a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders tornado.locale module supports loading translations in two formats: the .mo format used by gettext [https://docs.python.org/3/library/gettext.html#module-gettext] and related tools, and a simple .csv format format. An application will generally call either tornado.locale.load_translations or tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats0 码力 | 437 页 | 405.14 KB | 3 月前3
Tornado 6.5 Documentationor a translation of the second string will be returned otherwise. The most common pattern for translations is to use Python named placeholders for variables (the %(num)d in the example above) since placeholders supports loading translations in two formats: the .mo format used by gettext and related tools, and a simple .csv format. An application will generally call either tornado.locale. load_translations or tornado tornado.locale.load_gettext_translations once at startup; see those methods for more details on the supported formats. You can get the list of supported locales in your application with tornado.locale.get_supported_locales()0 码力 | 272 页 | 1.12 MB | 3 月前3
Julia 1.10.9function with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield Description mutable struct BitSet "Leaf Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a leaf type must be fully 354 generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 1692 页 | 6.34 MB | 4 月前3
julia 1.10.10function with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield Description mutable struct BitSet "Leaf Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a leaf type must be fully called should be declared to be of the output type Ptr{T}, reflecting that the memory pointed to is managed by C only. Pointers contained in C structs should be represented as fields of type Ptr{T} within0 码力 | 1692 页 | 6.34 MB | 4 月前3
Julia 1.11.5 Documentationsum_multi_good(1:1_000_000) 500000500000CHAPTER 25. MULTI-THREADING 323 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield Description mutable struct BitSet "Leaf Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a leaf type must be fully should generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.6 Release Notessum_multi_good(1:1_000_000) 500000500000CHAPTER 25. MULTI-THREADING 323 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield Description mutable struct BitSet "Leaf Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a leaf type must be fully should generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 2007 页 | 6.73 MB | 4 月前3
Julia 1.11.4sum_multi_good(1:1_000_000) 500000500000CHAPTER 25. MULTI-THREADING 323 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield Description mutable struct BitSet "Leaf Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a leaf type must be fully called should be declared to be of the output type Ptr{T}, reflecting that the memory pointed to is managed by C only. Pointers contained in C structs should be represented as fields of type Ptr{T} within0 码力 | 2007 页 | 6.73 MB | 4 月前3
julia 1.13.0 DEVfunction with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield mutable struct BitSet "Concrete Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a concrete type must should generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 2058 页 | 7.45 MB | 4 月前3
Julia 1.12.0 RC1function with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield mutable struct BitSet "Concrete Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a concrete type must should generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 2057 页 | 7.44 MB | 4 月前3
Julia 1.12.0 Beta4function with 1 method) julia> sum_multi_good(1:1_000_000) 500000500000 Note Buffers should not be managed based on threadid() i.e. buffers = zeros(Threads.nthreads()) because concurrent tasks can yield mutable struct BitSet "Concrete Type" :: A group of related data that includes a type-tag, is managed by the Julia GC, and is defined by object-identity. The type parameters of a concrete type must should generally be used for the types of input arguments, allowing the use of pointers to memory managed by either Julia or C through the implicit call to Base.cconvert. In contrast, pointers returned0 码力 | 2057 页 | 7.44 MB | 4 月前3
共 14 条
- 1
- 2













