List of commits:
Subject Hash Author Date (UTC)
bpo-28698: Fix c_wchar_p doc example (GH-1160) 0d637e236d7099f7b724026c8cb7bd83d8e12e6b Louie Lu 2017-04-26 08:15:05
bpo-30052: Link `bytes` & `bytearray` to stdtypes not functions (GH-1271) c6db4811f9ea3aeff0e1fafe1c60a22835ef359e csabella 2017-04-26 05:47:01
bpo-30107: Make SuppressCrashReport quiet on macOS (#1279) d819ad9832292d854e9710493ecdf959b69802e3 Victor Stinner 2017-04-25 22:55:08
bpo:29950: Rename SlotWrapperType to WrapperDescriptorType (GH-926) 08c16016e2a2d1368d001ddebfe9ca92465773c4 Jim Fasarakis-Hilliard 2017-04-25 18:26:36
bpo-28851: Improve namedtuple documentation (GH-1274) 97bf722fcd1de1236824377e052369dc7686b644 csabella 2017-04-25 16:14:45
bpo-29617: Remove Python 3.3 support from asyncio (GH-232) 3e2ad8ec61a322370a6fbdfb2209cf74546f5e08 INADA Naoki 2017-04-25 01:57:18
bpo-30132: distutils test_build_ext() uses temp_cwd() (#1278) f6448e5d65c349576df6e83b8324b9c208e77615 Victor Stinner 2017-04-25 00:11:09
tmtotuple(): use time_t for gmtoff (#1276) 0d659e5614cad512a1940125135b443b3eecb5d7 Victor Stinner 2017-04-24 23:22:42
bpo-30131: Cleanup threads in test_logging (#1275) 4bcfa3a2363c30d406c6826e291b30c33a649d18 Victor Stinner 2017-04-24 22:41:36
bpo-29822: Make inspect.isabstract() work during __init_subclass__. (#678) fcfe80ec2592fed8b3941c79056a8737abef7d3b Nate 2017-04-24 17:06:15
bpo-30144: Import collections ABC from collections.abc rather than collections. (#1263) 2e576f5aec1f8f23f07001e2eb3db9276851a4fc Serhiy Storchaka 2017-04-24 06:05:00
bpo-29751: add Cheryl Sabella to Misc/ACKS (GH-1268) 9eb5ca0774f94215be48442100c829db2484e146 Mariatta 2017-04-24 04:05:19
bpo-29751: Improve PyLong_FromString documentation (GH-915) 26896f2832324dde85cdd63d525571ca669f6f0b csabella 2017-04-24 03:54:08
bpo-15718: Document the upper bound constrain on the __len__ return value. (#1256) 85157cd89a6edac347a5b6871fcf20c500c6fbbf Serhiy Storchaka 2017-04-23 05:37:58
Remove outdated note about constraining of the bit shift right operand. (#1258) 997a4adea606069e01beac6269920709db3994d1 Serhiy Storchaka 2017-04-22 18:50:09
Fix trailing colon and newline in test.rst (#1250) 7fae81e1672d0b4110d31ea6a765b54f63a2e54b Louie Lu 2017-04-22 06:46:18
Remove unneeded Misc/NEWS entry for bpo-29802. (#1251) 7bfd740e3d484e6fdf3f5c2d4640450957f9d89c Serhiy Storchaka 2017-04-22 06:24:59
bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) 9616a82e7802241a4b74cf7ae38d43c37bf66e48 bladebryan 2017-04-22 06:10:46
bpo-29867: Add asserts in PyTuple_GET_SIZE, PyList_GET_SIZE and PySet_GET_SIZE. (#751) 1a5856bf9295fa73995898d576e0bedf016aee1f Serhiy Storchaka 2017-04-21 23:48:11
bpo-30125: disable faulthandler in ctypes test_SEH (#1237) a36e939aeb3b5a2c56561eb24f0e339eee9f3f9d Victor Stinner 2017-04-21 22:31:13
Commit 0d637e236d7099f7b724026c8cb7bd83d8e12e6b - bpo-28698: Fix c_wchar_p doc example (GH-1160)
Author: Louie Lu
Author date (UTC): 2017-04-26 08:15
Committer name: Berker Peksag
Committer date (UTC): 2017-04-26 08:15
Parent(s): c6db4811f9ea3aeff0e1fafe1c60a22835ef359e
Signer:
Signing key:
Signing status: N
Tree: 8813710a85133323fee5bb0b6748ab065fb0ef0c
File Lines added Lines deleted
Doc/library/ctypes.rst 9 5
File Doc/library/ctypes.rst changed (mode: 100644) (index 4ab8535f0a..49b4cbee5d)
... ... the correct type and value::
284 284 >>> c_int() >>> c_int()
285 285 c_long(0) c_long(0)
286 286 >>> c_wchar_p("Hello, World") >>> c_wchar_p("Hello, World")
287 c_wchar_p('Hello, World')
287 c_wchar_p(140018365411392)
288 288 >>> c_ushort(-3) >>> c_ushort(-3)
289 289 c_ushort(65533) c_ushort(65533)
290 290 >>> >>>
 
... ... bytes objects are immutable)::
309 309 >>> s = "Hello, World" >>> s = "Hello, World"
310 310 >>> c_s = c_wchar_p(s) >>> c_s = c_wchar_p(s)
311 311 >>> print(c_s) >>> print(c_s)
312 c_wchar_p('Hello, World')
312 c_wchar_p(139966785747344)
313 >>> print(c_s.value)
314 Hello World
313 315 >>> c_s.value = "Hi, there" >>> c_s.value = "Hi, there"
314 >>> print(c_s)
315 c_wchar_p('Hi, there')
316 >>> print(s) # first object is unchanged
316 >>> print(c_s) # the memory location has changed
317 c_wchar_p(139966783348904)
318 >>> print(c_s.value)
319 Hi, there
320 >>> print(s) # first object is unchanged
317 321 Hello, World Hello, World
318 322 >>> >>>
319 323
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main