Results of 1 - 10 of about 225 for second (0.014 sec.)
- unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 11486
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー
...s() 、 assertWarnsRegex() には、そのメソッドをコンテキストマネージャとして使った場合にのみ使えます。 assertEqual ( first , second , msg = None ) ¶ first と second が等しいことをテストします。両者が等しくない場合、テストは失敗です。 さらに、 first と se...ジョン 3.2 で変更: 文字列比較のデフォルトの比較関数として assertMultiLineEqual() が追加されました。 assertNotEqual ( first , second , msg = None ) ¶ first と second が等しくないことをテストします。両者が等しい場合、テストは失敗です。 assertTrue ( expr ,...を使用してください)。そうすることにより、テスト失敗時のエラーメッセージを詳細に表示することができます。 assertIs ( first , second , msg = None ) ¶ assertIsNot ( first , second , msg = None ) ¶ first と second が同じオブジェクトであること (またはそうでな... - https://man.mtool.work/python/3.14/library/unittest.html
- unittest --- ユニットテストフレームワーク — Python 3.14.8 ドキュメント 11486
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest --- ユニットテストフレームワーク テーマ 自動 ライト ダーク | unittest --- ユニットテストフレームワーク ¶ ソー
...s() 、 assertWarnsRegex() には、そのメソッドをコンテキストマネージャとして使った場合にのみ使えます。 assertEqual ( first , second , msg = None ) ¶ first と second が等しいことをテストします。両者が等しくない場合、テストは失敗です。 さらに、 first と se...ジョン 3.2 で変更: 文字列比較のデフォルトの比較関数として assertMultiLineEqual() が追加されました。 assertNotEqual ( first , second , msg = None ) ¶ first と second が等しくないことをテストします。両者が等しい場合、テストは失敗です。 assertTrue ( expr ,...を使用してください)。そうすることにより、テスト失敗時のエラーメッセージを詳細に表示することができます。 assertIs ( first , second , msg = None ) ¶ assertIsNot ( first , second , msg = None ) ¶ first と second が同じオブジェクトであること (またはそうでな... - https://man.mtool.work/python/3.14/library/unittest.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 9765
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...datetime. time 理想的な時刻で、特定の日から独立しており、毎日が厳密に 24*60*60 秒であると仮定しています。("うるう秒: leap seconds" の概念はありません。) 属性は hour , minute , second , microsecond , および tzinfo です。 class datetime. datetime 日付と...時刻を組み合わせたものです。 属性は year , month , day , hour , minute , second , microsecond , および tzinfo です。 class datetime. timedelta datetime あるいは date クラスの二つのインスタンス間の時間差...ェクトは経過時間、すなわち二つの datetime または date のインスタンスの差を表します。 class datetime. timedelta ( days = 0 , seconds = 0 , microseconds = 0 , milliseconds = 0 , minutes = 0 , hours = 0 , weeks = 0 ) ¶ 全ての引数がオプションで、デフォルト値... - https://man.mtool.work/python/3.14/library/datetime.html
- datetime --- 基本的な日付と時間の型 — Python 3.14.8 ドキュメント 9765
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » datetime --- 基本的な日付と時間の型 テーマ 自動 ライト ダーク | datetime --- 基本的な日付と時間の型 ¶ ソースコード: Lib/
...datetime. time 理想的な時刻で、特定の日から独立しており、毎日が厳密に 24*60*60 秒であると仮定しています。("うるう秒: leap seconds" の概念はありません。) 属性は hour , minute , second , microsecond , および tzinfo です。 class datetime. datetime 日付と...時刻を組み合わせたものです。 属性は year , month , day , hour , minute , second , microsecond , および tzinfo です。 class datetime. timedelta datetime あるいは date クラスの二つのインスタンス間の時間差...ェクトは経過時間、すなわち二つの datetime または date のインスタンスの差を表します。 class datetime. timedelta ( days = 0 , seconds = 0 , microseconds = 0 , milliseconds = 0 , minutes = 0 , hours = 0 , weeks = 0 ) ¶ 全ての引数がオプションで、デフォルト値... - https://man.mtool.work/python/3.14/library/datetime.html
- DateTime オブジェクト — Python 3.14.8 ドキュメント 8044
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » DateTime オブジェクト テーマ 自動 ライト ダーク | DateTime オブジェクト ¶ datetime モ
...ブジェクトを返します。 PyObject * PyDateTime_FromDateAndTime ( int year , int month , int day , int hour , int minute , int second , int usecond ) ¶ 戻り値: 新しい参照。 指定した年、月、日、時、分、秒、マイクロ秒の datetime.datetime オブジェクトを返しま...す。 PyObject * PyDateTime_FromDateAndTimeAndFold ( int year , int month , int day , int hour , int minute , int second , int usecond , int fold ) ¶ 戻り値: 新しい参照。 指定された年、月、日、時、分、秒、マイクロ秒、fold の datetime.datetime...オブジェクトを返します。 Added in version 3.6. PyObject * PyTime_FromTime ( int hour , int minute , int second , int usecond ) ¶ 戻り値: 新しい参照。 指定された時、分、秒、マイクロ秒の datetime.time オブジェクトを返します。 PyObject... - https://man.mtool.work/python/3.14/c-api/datetime.html
- DateTime オブジェクト — Python 3.14.8 ドキュメント 8044
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python/C API reference manual » 具象オブジェクト (concrete object) レイヤ » DateTime オブジェクト テーマ 自動 ライト ダーク | DateTime オブジェクト ¶ datetime モ
...ブジェクトを返します。 PyObject * PyDateTime_FromDateAndTime ( int year , int month , int day , int hour , int minute , int second , int usecond ) ¶ 戻り値: 新しい参照。 指定した年、月、日、時、分、秒、マイクロ秒の datetime.datetime オブジェクトを返しま...す。 PyObject * PyDateTime_FromDateAndTimeAndFold ( int year , int month , int day , int hour , int minute , int second , int usecond , int fold ) ¶ 戻り値: 新しい参照。 指定された年、月、日、時、分、秒、マイクロ秒、fold の datetime.datetime...オブジェクトを返します。 Added in version 3.6. PyObject * PyTime_FromTime ( int hour , int minute , int second , int usecond ) ¶ 戻り値: 新しい参照。 指定された時、分、秒、マイクロ秒の datetime.time オブジェクトを返します。 PyObject... - https://man.mtool.work/python/3.14/c-api/datetime.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7733
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...so be accessed through the args property, is any positional arguments the mock was called with (or an empty tuple) and the second member, which can also be accessed through the kwargs property, is any keyword arguments (or an empty dictionary). >>> moc...agicMock () >>> result = mock ( 1 , 2 , 3 ) >>> mock . first ( a = 3 ) <MagicMock name='mock.first()' id='...'> >>> mock . second () <MagicMock name='mock.second()' id='...'> >>> int ( mock ) 1 >>> result ( 1 ) <MagicMock name='mock()()' id='...'> >>>...expected = [ call ( 1 , 2 , 3 ), call . first ( a = 3 ), call . second (), ... call . __int__ (), call ()( 1 )] >>> mock . mock_calls == expected True mock_calls のメンバは call オブジェクトです... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- unittest.mock --- モックオブジェクトライブラリ — Python 3.14.8 ドキュメント 7733
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » unittest.mock --- モックオブジェクトライブラリ テーマ 自動 ライト ダーク | unittest.mock --- モックオブジェクトライブラ
...so be accessed through the args property, is any positional arguments the mock was called with (or an empty tuple) and the second member, which can also be accessed through the kwargs property, is any keyword arguments (or an empty dictionary). >>> moc...agicMock () >>> result = mock ( 1 , 2 , 3 ) >>> mock . first ( a = 3 ) <MagicMock name='mock.first()' id='...'> >>> mock . second () <MagicMock name='mock.second()' id='...'> >>> int ( mock ) 1 >>> result ( 1 ) <MagicMock name='mock()()' id='...'> >>>...expected = [ call ( 1 , 2 , 3 ), call . first ( a = 3 ), call . second (), ... call . __int__ (), call ()( 1 )] >>> mock . mock_calls == expected True mock_calls のメンバは call オブジェクトです... - https://man.mtool.work/python/3.14/library/unittest.mock.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 7422
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...malloc . reset_peak () # Example code: compute a sum with a small temporary list small_sum = sum ( list ( range ( 1000 ))) second_size , second_peak = tracemalloc . get_traced_memory () print ( f " { first_size =} , { first_peak =} " ) print ( f " { se...cond_size =} , { second_peak =} " ) 出力: first_size = 664 , first_peak = 3592984 second_size = 804 , second_peak = 29704 Using reset_peak() ensur...it is much smaller than the overall peak size of memory blocks since the start() call. Without the call to reset_peak() , second_peak would still be the peak from the computation large_sum (that is, equal to first_peak ). In this case, both peaks are... - https://man.mtool.work/python/3.14/library/tracemalloc.html
- tracemalloc --- メモリ割り当ての追跡 — Python 3.14.8 ドキュメント 7422
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » tracemalloc --- メモリ割り当ての追跡 テーマ 自動 ライト ダーク | tracemalloc --- メモリ割り当ての追跡 ¶ A
...malloc . reset_peak () # Example code: compute a sum with a small temporary list small_sum = sum ( list ( range ( 1000 ))) second_size , second_peak = tracemalloc . get_traced_memory () print ( f " { first_size =} , { first_peak =} " ) print ( f " { se...cond_size =} , { second_peak =} " ) 出力: first_size = 664 , first_peak = 3592984 second_size = 804 , second_peak = 29704 Using reset_peak() ensur...it is much smaller than the overall peak size of memory blocks since the start() call. Without the call to reset_peak() , second_peak would still be the peak from the computation large_sum (that is, equal to first_peak ). In this case, both peaks are... - https://man.mtool.work/python/3.14/library/tracemalloc.html