[issue26794] curframe can be None in pdb.py

2020-08-22 Thread Jacek Pliszka
Jacek Pliszka added the comment: Haven't seen it since then. Stopped using 2.7 - using 3.6 in production and 3.7 in development now. I believe it can be closed. -- ___ Python tracker <https://bugs.python.org/issue26

[issue26794] curframe can be None in pdb.py

2016-04-18 Thread Jacek Pliszka
New submission from Jacek Pliszka: In /usr/lib64/python2.7/pdb.py in Pdb.default there is line: globals = self.curframe.f_globals curframe can be None so the line should be replaced by: globals = getattr(self.curframe, "f_globals", None) if hasattr(self, 'curframe') else None or

[issue12793] allow filters in os.walk

2011-08-31 Thread Jacek Pliszka
Jacek Pliszka jacek.plis...@gmail.com added the comment: Looks like the proper way to do it is described in the manual: http://docs.python.org/dev/library/os.html#os.walk for root, dirs, files in os.walk('python/Lib/email'): if 'CVS' in dirs: dirs.remove('CVS') # don't visit CVS

[issue12793] allow filters in os.walk

2011-08-20 Thread Jacek Pliszka
New submission from Jacek Pliszka jacek.plis...@gmail.com: I suggest a small change in os.walk module. Instead of: def walk(top, topdown=True, onerror=None, followlinks=False): I would like to have: def walk(top, topdown=True, onerror=None, skipnames=lambda x : False, skipdirs=islink

[issue12793] allow filters in os.walk

2011-08-20 Thread Jacek Pliszka
Changes by Jacek Pliszka jacek.plis...@gmail.com: -- versions: +Python 2.7 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12793