[Python-Dev] New-style exceptions

Tim Peters tim.peters at gmail.com
Thu Aug 5 20:23:08 CEST 2004


[Michael Hudson]
> Sorry, was too obscure.  One of the doctests pickles a couple
> instances of PicklingError and disassembles the pickle.  That's not
> going to stay the same past an old-style/new-style transition.

That's no problem.  The real point of that part of the test is to
exercise the different pickle protocols on an instance of a "foreign"
(not defined in the same module) class.  Any foreign class would do as
well  Creating an instance of pickle.PicklingError was just
convenient; there was no intent to pick on an exception class.  IOW,
if this goes forward, it's no problem to change the test.


More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant