Results of 1 - 10 of about 14 for flatten (0.006 sec.)
- email.generator: Generating MIME documents — Python 3.14.8 ドキュメント 13251
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.generator : Generating MIME documents テ
...by program may result in changes to the EmailMessage object as defaults are filled in.) The Generator class can be used to flatten a message into a text (as opposed to binary) serialized representation, but since Unicode cannot represent binary data dir...e , maxheaderlen = None , * , policy = None ) ¶ Return a BytesGenerator object that will write any message provided to the flatten() method, or any surrogateescape encoded text provided to the write() method, to the file-like object outfp . outfp must s...e generation. If policy is None (the default), use the policy associated with the Message or EmailMessage object passed to flatten to control the message generation. See email.policy for details on what policy controls. Added in version 3.2. バージョン... - https://man.mtool.work/python/3.14/library/email.generator.html
- email.generator: Generating MIME documents — Python 3.14.8 ドキュメント 12568
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.generator : Generating MIME documents テ
...by program may result in changes to the EmailMessage object as defaults are filled in.) The Generator class can be used to flatten a message into a text (as opposed to binary) serialized representation, but since Unicode cannot represent binary data dir...e , maxheaderlen = None , * , policy = None ) ¶ Return a BytesGenerator object that will write any message provided to the flatten() method, or any surrogateescape encoded text provided to the write() method, to the file-like object outfp . outfp must s...e generation. If policy is None (the default), use the policy associated with the Message or EmailMessage object passed to flatten to control the message generation. See email.policy for details on what policy controls. Added in version 3.2. バージョン... - https://man.mtool.work/python/3.14/library/email.generator.html
- email.message.Message: compat32 API を使用した電子メールメッセージの表現 — Pyth... 8910
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message.Message : compat32 API を使用し
...引数 policy が追加されました。 as_string ( unixfrom = False , maxheaderlen = 0 , policy = None ) ¶ Return the entire message flattened as a string. When optional unixfrom is true, the envelope header is included in the returned string. unixfrom defaults t...gin with From that is required by the Unix mbox format. For more flexibility, instantiate a Generator instance and use its flatten() method directly. For example: from io import StringIO from email.generator import Generator fp = StringIO () g = Generat...or ( fp , mangle_from_ = True , maxheaderlen = 60 ) g . flatten ( msg ) text = fp . getvalue () If the message object contains binary data that is not encoded according to RFC standards,... - https://man.mtool.work/python/3.14/library/email.compat32-message.html
- email.message.Message: compat32 API を使用した電子メールメッセージの表現 — Pyth... 8910
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.message.Message : compat32 API を使用し
...引数 policy が追加されました。 as_string ( unixfrom = False , maxheaderlen = 0 , policy = None ) ¶ Return the entire message flattened as a string. When optional unixfrom is true, the envelope header is included in the returned string. unixfrom defaults t...gin with From that is required by the Unix mbox format. For more flexibility, instantiate a Generator instance and use its flatten() method directly. For example: from io import StringIO from email.generator import Generator fp = StringIO () g = Generat...or ( fp , mangle_from_ = True , maxheaderlen = 60 ) g . flatten ( msg ) text = fp . getvalue () If the message object contains binary data that is not encoded according to RFC standards,... - https://man.mtool.work/python/3.14/library/email.compat32-message.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8104
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...t enough to fill a batch. The result is yielded as soon as the batch is full or when the input iterable is exhausted : >>> flattened_data = [ 'roses' , 'red' , 'violets' , 'blue' , 'sugar' , 'sweet' ] >>> unflattened = list ( batched ( flattened_data ,...2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: def batched ( iterable , n , * , strict...tor object, all members of the return tuple are constructed as if they had been produced by the upstream tee() call. This "flattening step" allows nested tee() calls to share the same underlying data chain and to have a single update step rather than a... - https://man.mtool.work/python/3.14/library/itertools.html
- itertools --- 効率的なループ用のイテレータ生成関数群 — Python 3.14.8 ドキュメン... 8104
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » itertools --- 効率的なループ用のイテレータ生成関数群 テーマ 自動 ライト ダーク | itertools --- 効
...t enough to fill a batch. The result is yielded as soon as the batch is full or when the input iterable is exhausted : >>> flattened_data = [ 'roses' , 'red' , 'violets' , 'blue' , 'sugar' , 'sweet' ] >>> unflattened = list ( batched ( flattened_data ,...2 )) >>> unflattened [('roses', 'red'), ('violets', 'blue'), ('sugar', 'sweet')] およそ次と等価です: def batched ( iterable , n , * , strict...tor object, all members of the return tuple are constructed as if they had been produced by the upstream tee() call. This "flattening step" allows nested tee() calls to share the same underlying data chain and to have a single update step rather than a... - https://man.mtool.work/python/3.14/library/itertools.html
- 索引 — Python 3.14.8 ドキュメント 7964
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – F f" formatted string literal f' formatted string literal f-string , [1] , [2] f-strings , [1] f_back (frame の属性) (フレーム属性) f_
...ル) (tkinter.Button のメソッド) (tkinter.Checkbutton のメソッド) (tkinter.Radiobutton のメソッド) FLAT (tkinter モジュール) flatten() (email.generator.BytesGenerator のメソッド) (email.generator.Generator のメソッド) float (組み込みクラス) float_info (sy... - https://man.mtool.work/python/3.14/genindex-F.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 7964
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...[ 0 ]], stdin = PIPE ) >>> g = BytesGenerator ( p . stdin , policy = msg . policy . clone ( linesep = ' \r\n ' )) >>> g . flatten ( msg ) >>> p . stdin . close () >>> rc = p . wait () Here we are telling BytesGenerator to use the RFC correct line separ... - https://man.mtool.work/python/3.14/library/email.policy.html
- 索引 — Python 3.14.8 ドキュメント 7964
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – F f" formatted string literal f' formatted string literal f-string , [1] , [2] f-strings , [1] f_back (frame の属性) (フレーム属性) f_
...ル) (tkinter.Button のメソッド) (tkinter.Checkbutton のメソッド) (tkinter.Radiobutton のメソッド) FLAT (tkinter モジュール) flatten() (email.generator.BytesGenerator のメソッド) (email.generator.Generator のメソッド) float (組み込みクラス) float_info (sy... - https://man.mtool.work/python/3.14/genindex-F.html
- email.policy: Policy Objects — Python 3.14.8 ドキュメント 7964
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.policy : Policy Objects テーマ 自動 ライ
...[ 0 ]], stdin = PIPE ) >>> g = BytesGenerator ( p . stdin , policy = msg . policy . clone ( linesep = ' \r\n ' )) >>> g . flatten ( msg ) >>> p . stdin . close () >>> rc = p . wait () Here we are telling BytesGenerator to use the RFC correct line separ... - https://man.mtool.work/python/3.14/library/email.policy.html