Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ copy
Method
copy
Lib/test/test_capi/test_unicode.py:2021–2022 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
2019
unicode_equal = _testlimitedcapi.unicode_equal
2020
2021
def
copy(text):
2022
return
text.encode().decode()
2023
2024
self.assertTrue(unicode_equal(
""
,
""
))
2025
self.assertTrue(unicode_equal(
"abc"
,
"abc"
))
Callers
15
TestGeneratorBase
Class · 0.45
make_defaults
Function · 0.45
PolicyAPITests
Class · 0.45
test_policy_addition
Method · 0.45
test_iter_attachments_mutation
Method · 0.45
sys_modules_context
Function · 0.45
test_reload_location_changed
Method · 0.45
test_reload_namespace_changed
Method · 0.45
test_None_on_sys_path
Method · 0.45
test_copy_file
Method · 0.45
test_copy_file_empty
Method · 0.45
test_copy_file_to_existing_file
Method · 0.45
Calls
2
decode
Method · 0.45
encode
Method · 0.45
Tested by
no test coverage detected