Repository navigation
Releases
v0.0.215
v0.0.215
Fixture 215: full html.entities coverage — name2codepoint (252 entries), codepoint2name, and the complete HTML5 entity table (2231 entries including no-semicolon legacy variants).
Changes
src/vm/html5_table.zig: new file — full CPythonhtml.entities.html5table (2231 entries), generated from CPythonLib/html/entities.pysrc/vm/html_mod.zig:buildEntitiesnow buildshtml5dict fromhtml5_tableinstead of the small HTML4 subsettests/fixtures/fixtures.zig: added215_html_entitiestests/fixtures/215_html_entities.*: fixture files
All 215 fixtures pass. All 5 cross-compilation targets clean.
Full Changelog: v0.0.214...v0.0.215
v0.0.214
v0.0.214
Fixture 214: extended html.parser.HTMLParser — processing instructions, CDATA/unknown_decl, entity/charref callbacks, convert_charrefs kwarg, getpos(), and incremental feed buffering.
Changes
src/vm/html_mod.zig:ParserStategainsline/colfields for position trackingparserGetposFn: newgetpos()method returning(line, col)tupleemitTexthelper: whenconvert_charrefs=True(default), unescape entities in text data; whenFalse, emithandle_entityref/handle_charrefcallbacks for&name;and&#NNN;patternsparserFeedrewritten: usesstate.buffor incremental buffering, handles<?...?>(PI),<![...]>(unknown_decl/CDATA), all existing token types; leaves incomplete tokens in buffer across feed() calls- New base class no-ops:
handle_pi,unknown_decl,handle_entityref,handle_charref buildParser: registers all new methods
tests/fixtures/fixtures.zig: added214_html_parsertests/fixtures/214_html_parser.*: fixture files
All 214 fixtures pass. All 5 cross-compilation targets clean.
Full Changelog: v0.0.213...v0.0.214
v0.0.213
v0.0.213
Fixture 213: html module — html.escape, html.unescape, html.entities, html.parser.HTMLParser.
Changes
src/vm/html_mod.zig: full rewrite- HTML4 entity table (~253 entries) used for
unescapenamed-entity lookup,html.entities.name2codepoint,html.entities.codepoint2name, andhtml.entities.html5 escape(s, quote=True): escapes&,<,>, and optionally",'unescape(s): handles named entities,&#NNN;,&#xHH;buildEntities: buildshtml.entitiesmodule withname2codepoint(dict),codepoint2name(dict),html5(dict, 253+ entries keyed as"name;")buildParser: buildshtml.parsermodule withHTMLParserclass; tokenizer handles text, comments (<!-- -->), declarations (<!), end tags, start tags, and self-closing tags; defaulthandle_startendtagcallshandle_starttag+handle_endtag
- HTML4 entity table (~253 entries) used for
src/vm/interp.zig: addedhtml_entities_module,html_parser_module,html_parser_classfields; added"html.entities"and"html.parser"dispatch blockstests/fixtures/fixtures.zig: added213_htmltests/fixtures/213_html.*: fixture files copied from goipy testdata
All 213 fixtures pass. All 5 cross-compilation targets clean.
Full Changelog: v0.0.212.2...v0.0.213
v0.0.212.2
v0.0.212.2
Patch: fix cross-compilation for all 5 targets (Linux musl, macOS, Windows).
Changes
src/vm/signal_mod.zig: use POSIXsigemptyset/sigaddset/sigismemberfor
pthread_sigmasksosigset_t(an opaque array on Linux/musl) is never touched
as an integer; guard Windows-incompatible calls (strsignal,alarm,
pthread_sigmask) with early comptime returns.src/vm/socket_mod.zig: changeFd = c.fd_t→c_int(c.fd_t is*anyopaque
on Windows); add@ptrCast(@alignCast(...))to fivebind/connect/sendto
calls (Linux sockaddr has alignment 2); wrap all POSIX-only socket syscalls and
network helper externs (inet_pton,ntohs, etc.) in aposix_netconditional
struct so Windows targets link cleanly.src/vm/ssl_mod.zig: sameFd = c_intfix; wraphtons/inet_ptonexterns in
posix_net; guardrecvWithPending,sslSendall,sslSend,sslClose,
sslShutdown,getServerCertificateFnwith Windows stubs.src/vm/select_mod.zig: changec.fd_t→c_intforFdEntry.fdand
valueToFd; guard poll-using code path on Windows.src/vm/selectors_mod.zig: samec_intfixes; guardselSelectKwon Windows.src/vm/mmap_mod.zig: wrap POSIX-only externs (mmap,munmap,msync,
madvise,getpagesize) in aposix_mmapconditional struct with Windows
stubs; guardentry.file.handle(HANDLE on Windows) from being cast toc_int.src/vm/subprocess_mod.zig: guardchild.id(process HANDLE on Windows) from
being cast to integer pid.
Full Changelog: v0.0.212.1...v0.0.212.2
v0.0.212.1
Patch: fix CI on Linux (link_libc) and rename changelog files to zero-padded format.
Changes
build.zig: addlink_libc = trueto the zag module so Linux/glibc builds
compile without "dependency on libc must be explicitly specified" errors.changelog/: rename all files from0.0.N.mdto0.0.NNN.md(zero-padded
to three digits) so directory listings sort correctly by version number.
Patch files follow the same pattern:0.0.N.M.md→0.0.NNN.MMM.md.
v0.0.212
Implement quopri module to pass fixture 212.
Changes
src/vm/quopri_mod.zig: new module with encodestring (quotetabs, header
kwargs) and decodestring (header kwarg); handles =XX encoding/decoding,
soft line breaks (=\n), and header mode (space ↔ underscore).src/vm/interp.zig: add quopri_module field; register "quopri" in
getBuiltinModule.tests/fixtures/212_*: fixture from goipy.
v0.0.211
Extend binascii module to pass fixture 211.
Changes
src/vm/binascii_mod.zig: add Error (ValueError subclass) and Incomplete
(Exception subclass) exception classes; hexlify sep/bytes_per_sep kwargs;
a2b_base64 strict_mode kwarg; crc_hqx (CRC-CCITT 0x1021); b2a_uu/a2b_uu
(UU encoding, backtick kwarg); b2a_qp/a2b_qp (quoted-printable, header kwarg);
rlecode_hqx/rledecode_hqx (BinHex RLE); b2a_hqx/a2b_hqx (BinHex 4.0 6-bit
encoding; a2b_hqx returns (bytes, done) tuple).tests/fixtures/211_*: fixture from goipy.
v0.0.210
Extend base64 module to pass fixture 210.
Changes
src/vm/base64_mod.zig: rewrite with kwarg support via BuiltinKwFnPtr; b64encode/b64decode
altchars and validate kwargs; strict padding validation in b64decode (raise ValueError for
non-multiple-of-4 input, matching CPython); urlsafe_b64decode auto-padding; b32decode/
b32hexdecode/b16decode casefold kwarg; encodebytes/decodebytes 57-byte chunk + newline
formatting; b32hexencode/b32hexdecode with B32HEX alphabet; b85encode/b85decode RFC 1924
with correct partial-group padding ('~' value 84); a85encode/a85decode ASCII85 with adobe
and foldspaces kwargs; standard_b64encode/standard_b64decode aliases.tests/fixtures/210_*: fixture from goipy.
v0.0.209
Add mimetypes module (fixture 209).
Implements guess_type, guess_all_extensions, guess_extension,
add_type, init, read_mime_types, and the MimeTypes class.
Module-level suffix_map, encodings_map, and types_map are
populated at build time with 100+ common MIME entries.
v0.0.208
Add mailbox module (fixture 208).
Implements in-memory mbox and Maildir stores with add, remove,
discard, clear, keys, __contains__, get_string, get_bytes,
and __getitem__ returning an mboxMessage that parses headers on
demand. Also adds mailbox.Error, NoSuchMailboxError, and
FormatError exception classes.