Issue 13589: Aifc low level serialization primitives fix (original) (raw)

Created on 2011-12-12 18:31 by Oleg.Plakhotnyuk, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
aifc_numbers_fix.patch Oleg.Plakhotnyuk,2011-12-13 05:20 review
Messages (8)
msg149343 - (view) Author: Oleg Plakhotnyuk (Oleg.Plakhotnyuk) * Date: 2011-12-12 18:31
1. Fixed _write_float to handle infinity, NaN and negative numbers correctly. 2. Renamed _write_long to _write_ulong because it actually writes unsigned value. 3. Added _read_ushort as counterpart of _write_ushort. This is never used anywhere except test that ushorts are written correctly. But it seems right to me to have both read and write function in the same module.
msg149344 - (view) Author: Oleg Plakhotnyuk (Oleg.Plakhotnyuk) * Date: 2011-12-12 18:33
Patch must be applied after http://bugs.python.org/file23931/test_aifc.patch from issue 13394. Not sure if review tool can handle this correctly.
msg149345 - (view) Author: Oleg Plakhotnyuk (Oleg.Plakhotnyuk) * Date: 2011-12-12 18:34
Second patch goes to issue 13589
msg149348 - (view) Author: Oleg Plakhotnyuk (Oleg.Plakhotnyuk) * Date: 2011-12-12 18:57
Forget about "patch must be applied before" thing. I've made independent patch. :-)
msg151298 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-01-15 18:40
For the record, can you explain why infinity and NaN can end up in AIFC files? That said, the patch looks ok to me.
msg151453 - (view) Author: Oleg Plakhotnyuk (Oleg.Plakhotnyuk) * Date: 2012-01-17 13:58
I have absolutely no idea :-) I just covered every line of code with tests. Some bugs prevented me from do it, so I fixed them.
msg151464 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2012-01-17 16:19
New changeset f715c4a5a107 by Antoine Pitrou in branch '3.2': Issue #13589: Fix some serialization primitives in the aifc module. http://hg.python.org/cpython/rev/f715c4a5a107 New changeset b039965b0066 by Antoine Pitrou in branch 'default': Issue #13589: Fix some serialization primitives in the aifc module. http://hg.python.org/cpython/rev/b039965b0066 New changeset 8fac90d0f4cd by Antoine Pitrou in branch '2.7': Issue #13589: Fix some serialization primitives in the aifc module. http://hg.python.org/cpython/rev/8fac90d0f4cd
msg151466 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2012-01-17 16:21
I've finally committed the patch, thank you!
History
Date User Action Args
2022-04-11 14:57:24 admin set github: 57798
2012-01-17 16:21:18 pitrou set status: open -> closedversions: + Python 2.7messages: + resolution: fixedstage: resolved
2012-01-17 16:19:35 python-dev set nosy: + python-devmessages: +
2012-01-17 13:58:45 Oleg.Plakhotnyuk set messages: +
2012-01-15 18:40:43 pitrou set nosy: + pitroumessages: +
2011-12-13 05:21:32 Oleg.Plakhotnyuk set title: Aifc float serialization fix -> Aifc low level serialization primitives fix
2011-12-13 05:20:02 Oleg.Plakhotnyuk set files: + aifc_numbers_fix.patch
2011-12-13 05:19:46 Oleg.Plakhotnyuk set files: - aifc_numbers_fix.patch
2011-12-13 05:15:07 Oleg.Plakhotnyuk set files: + aifc_numbers_fix.patch
2011-12-13 05:14:21 Oleg.Plakhotnyuk set files: - aifc_numbers_fix.patch
2011-12-12 18:57:19 Oleg.Plakhotnyuk set files: + aifc_numbers_fix.patchmessages: +
2011-12-12 18:56:08 Oleg.Plakhotnyuk set files: - aifc_numbers_fix.patch
2011-12-12 18:37:39 Oleg.Plakhotnyuk set type: behavior
2011-12-12 18:34:14 Oleg.Plakhotnyuk set messages: +
2011-12-12 18:33:33 Oleg.Plakhotnyuk set messages: +
2011-12-12 18:31:26 Oleg.Plakhotnyuk create