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
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
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
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
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