[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-11 Thread Leonid Vasilev
Changes by Leonid Vasilev : -- resolution: invalid -> rejected ___ Python tracker <http://bugs.python.org/issue12661> ___ ___ Python-bugs-list mailing list Un

[issue12661] Add a new shutil.cleartree function to shutil module

2011-08-11 Thread Leonid Vasilev
Leonid Vasilev added the comment: yup, it's really to specific. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.

[issue12661] Add a new shutil.cleartree function to shutil module

2011-07-30 Thread Leonid Vasilev
Leonid Vasilev added the comment: Added file with sample usage (extracted from real application). the main purpose of shutil.cleartree() is to remove unnecessary files from tree, where patterns of ignored or deleted files are computed dynamically. Yes I agree, that it might be done by shell

[issue12661] [new function] shutil.cleartree

2011-07-30 Thread Leonid Vasilev
New submission from Leonid Vasilev : Hello, This patch adds new function to shutil. I think it's quite generic, and it fits shutil purpose. Sample usage: shutil.cleartree(path='/home/chin/Dev/python-hg-dev', ignore=shutil.ignore_pattterns('*.py')) removes all fil

[issue5735] Segfault when loading not recompiled module

2009-04-14 Thread Leonid Vasilev
Leonid Vasilev added the comment: Thanks for patch, it works now: Python compiled with --with-pydebug throws an ImportError when trying to import modules compiled without --with-pydebug, as it should: ImportError: /usr/local/lib/python3.0/site-packages/ext23.so: undefined symbol

[issue5735] Segfault when loading not recompiled module

2009-04-11 Thread Leonid Vasilev
New submission from Leonid Vasilev : I compiled two versions of python(both from main trunk) Here's what I do: $cd /usr/local/src/Python-3.0.1/ $./configure $make && make install ... $cd ~/pyext/ $python3.0 setup.py install ... "run python3.0 and import ext1 -- it worked ok&q

[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2009-04-07 Thread Leonid Vasilev
Leonid Vasilev added the comment: Actually urlparse.urljoin implements RFC 2396 Is it true that 'CGIHTTPServer._url_collapse_path_split' is just a inverted 'urlparse.urljoin' ? """ >>> urlparse.urljoin('http://a/b/c/','g') '

[issue5714] CGIHTTPServer._url_collapse_path_split should live elsewhere

2009-04-07 Thread Leonid Vasilev
Leonid Vasilev added the comment: I'd Wrote a patch for this. Perhaps some unittests are needed. -- keywords: +patch nosy: +chin Added file: http://bugs.python.org/file13644/issue5714_withdoc.diff ___ Python tracker <http://bugs.py