[issue17198] dbm.whichdb references unitialized 'ndbm' variable

2013-07-07 Thread Valentina Mukhamedzhanova
Valentina Mukhamedzhanova added the comment: I added a testcase to demonstrate the bug and an import of ndbm to dbm.__init__.py to fix the bug. -- nosy: +umi Added file: http://bugs.python.org/file30839/patch_17198 ___ Python tracker <h

[issue11957] re.sub confusion between count and flags args

2013-07-06 Thread Valentina Mukhamedzhanova
Changes by Valentina Mukhamedzhanova : Added file: http://bugs.python.org/file30821/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bug

[issue18380] email/quoprimime.py doesn't use re.sub correctly

2013-07-06 Thread Valentina Mukhamedzhanova
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30811/patch_quoprimime ___ Python tracker <http://bugs.python.org/issue18380> ___ ___ Pytho

[issue18380] email/quoprimime.py doesn't use re.sub correctly

2013-07-06 Thread Valentina Mukhamedzhanova
Valentina Mukhamedzhanova added the comment: I have updated the patch with a testcase. -- Added file: http://bugs.python.org/file30819/patch_18380 ___ Python tracker <http://bugs.python.org/issue18

[issue11957] re.sub confusion between count and flags args

2013-07-06 Thread Valentina Mukhamedzhanova
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bug

[issue11957] re.sub confusion between count and flags args

2013-07-06 Thread Valentina Mukhamedzhanova
Changes by Valentina Mukhamedzhanova : Added file: http://bugs.python.org/file30813/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bug

[issue11957] re.sub confusion between count and flags args

2013-07-06 Thread Valentina Mukhamedzhanova
Changes by Valentina Mukhamedzhanova : Removed file: http://bugs.python.org/file30801/patch_11957 ___ Python tracker <http://bugs.python.org/issue11957> ___ ___ Python-bug

[issue18380] email/quoprimime.py doesn't use re.sub correctly

2013-07-06 Thread Valentina Mukhamedzhanova
New submission from Valentina Mukhamedzhanova: header_decode function in the standard library email/quoprimime.py module calls re.sub with a positional argument for flags in the wrong position. My patch fixes it to use a keyword argument. -- components: Library (Lib), Regular

[issue11957] re.sub confusion between count and flags args

2013-07-06 Thread Valentina Mukhamedzhanova
Valentina Mukhamedzhanova added the comment: Please see my patch, I have changed flags to be instances of IntEnum and added a check to re.sub, re.subn and re.split. The patch contains some tests. This solution also allowed me to discover several bugs in the standard library, and I am going to