[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d5826fa77a1 by Serhiy Storchaka in branch 'default': Issue #14260: The groupindex attribute of regular expression pattern object https://hg.python.org/cpython/rev/4d5826fa77a1 -- nosy: +python-dev ___

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-24 Thread py.user
py.user added the comment: @Serhiy Storchaka What approach looks better, a copy or a read-only proxy? ISTM, your proxy patch is better, because it expects an exception rather than silence. -- ___ Python tracker rep...@bugs.python.org

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-03-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What approach looks better, a copy or a read-only proxy? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260 ___

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2015-01-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- keywords: +needs review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260 ___ ___ Python-bugs-list

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2014-11-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review versions: +Python 3.5 -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2014-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are two patches which implement two alternative solutions. They are based on regex code. Dict copying patch matches current regex behavior and needs modifying other code to avoid small slowdown. Artificial example: $ ./python -m timeit -s 'import re;

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2014-10-14 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: -skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14260 ___ ___ Python-bugs-list

[issue14260] re.groupindex is available for modification and continues to work, having incorrect data inside it

2012-11-13 Thread py.user
Changes by py.user bugzilla-mail-...@yandex.ru: -- title: re.groupindex available for modification and continues to work, having incorrect data inside it - re.groupindex is available for modification and continues to work, having incorrect data inside it