CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 23 Aug 2025 10:21:15 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20061231122606
location: https://web.archive.org/web/20061231122606/https://wiki.python.org/moin/boost%2epython/extract
server-timing: captures_list;dur=0.611303, exclusion.robots;dur=0.021162, exclusion.robots.policy;dur=0.009688, esindex;dur=0.011997, cdx.remote;dur=37.692867, LoadShardBlock;dur=415.670361, PetaboxLoader3.datanode;dur=136.665836, PetaboxLoader3.resolve;dur=175.634431
x-app-server: wwwb-app222
x-ts: 302
x-tr: 479
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app222; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 23 Aug 2025 10:21:15 GMT
content-type: text/html;charset=utf-8
x-archive-orig-date: Sun, 31 Dec 2006 12:35:35 GMT
x-archive-orig-server: Apache/2.0.54 (Debian GNU/Linux) mod_python/3.1.3 Python/2.3.5 mod_scgi/1.2
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sun, 31 Dec 2006 12:26:06 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sun, 10 Sep 2006 20:09:47 GMT", ; rel="prev memento"; datetime="Sun, 12 Nov 2006 03:08:14 GMT", ; rel="memento"; datetime="Sun, 31 Dec 2006 12:26:06 GMT", ; rel="next memento"; datetime="Sat, 08 Dec 2007 11:59:25 GMT", ; rel="last memento"; datetime="Tue, 10 Sep 2024 03:58:29 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 35_0_20061231122104_crawl30-c/35_0_20061231122605_crawl29.arc.gz
server-timing: captures_list;dur=0.784123, exclusion.robots;dur=0.026774, exclusion.robots.policy;dur=0.013379, esindex;dur=0.017023, cdx.remote;dur=65.595126, LoadShardBlock;dur=116.790205, PetaboxLoader3.datanode;dur=137.518410, load_resource;dur=162.138885, PetaboxLoader3.resolve;dur=107.133815
x-app-server: wwwb-app222
x-ts: 200
x-tr: 395
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
boost.python/extract - PythonInfo Wiki
boost.python/extract
extractor interface which can be used to extract C++ types from Python objects.
We have discussed two main use cases for extractions
1. In user code which needs to retrieve C++ objects from their corresponding Python objects:
Getting value:
-
void f(object x) { int y = extract<int>(x); // retrieve an int from x }
-
Users may also want to explicitly check for convertibility:
-
int g(object x) { extractor<int> get_int(x); if (get_int) return get_int(); else return 0; }
-
2. In the implementation of sequence from_python converters (e.g. Python tuple/list -> std::vector)
EditText (last edited 2002-09-25 19:57:58 by MikeRovner)
DeleteCache (cached 2006-12-29 02:50:19)- Login
- Navigation
- Actions
- Your recent pages