[issue22416] Pickling compiled re patterns

2014-09-15 Thread Guido van Rossum
Guido van Rossum added the comment: But who says this isn't intended? I don't know why it was done this way, but the following reasoning might apply: we want to have a stable API for unpickling compiled regexps, but we want to be able to evolve the re.compile() API. Just the fact that '_compil

[issue22416] Pickling compiled re patterns

2014-09-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file36622/re_pickle.patch ___ Python tracker ___

[issue22416] Pickling compiled re patterns

2014-09-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Compiled re._compile() is used to reconstruct compiled regular expression pattern. re._compile() is private function and can be removed in (long-term) future. I propose to use re.compile() instead. -- components: Library (Lib), Regular Expressions