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/is
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') els
Jacek Pliszka 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
Changes by Jacek Pliszka :
--
versions: +Python 2.7 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue12793>
___
___
Python-bugs-list mailing list
Unsub
New submission from Jacek Pliszka :
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):
Implementation might be as