Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1f498ef6
Commit
1f498ef6
authored
Jul 12, 2007
by
Thomas Heller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a ctypes test.
parent
b0f48abd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Lib/ctypes/test/test_objects.py
Lib/ctypes/test/test_objects.py
+4
-4
No files found.
Lib/ctypes/test/test_objects.py
View file @
1f498ef6
...
...
@@ -22,9 +22,9 @@ assigned from Python must be kept.
>>> array[4] = 'foo bar'
>>> array._objects
{
'4':
'foo bar'}
{
s'4': b
'foo bar'}
>>> array[4]
'foo bar'
s
'foo bar'
>>>
It gets more complicated when the ctypes instance itself is contained
...
...
@@ -47,9 +47,9 @@ of 'x' ('_b_base_' is either None, or the root object owning the memory block):
>>> x.array[0] = 'spam spam spam'
>>> x._objects
{
'0:2':
'spam spam spam'}
{
s'0:2': b
'spam spam spam'}
>>> x.array._b_base_._objects
{
'0:2':
'spam spam spam'}
{
s'0:2': b
'spam spam spam'}
>>>
'''
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment