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

2011-07-31 Thread Leonid Vasilev
Leonid Vasilev vsleo...@gmail.com 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

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread kota
kota nospam.kotarou.d...@gmail.com added the comment: Yea, it runs the parser.py that time. And I didn't understand the page you linked me to. Would you mind explaining it a bit? -- ___ Python tracker rep...@bugs.python.org

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The Windows build actually uses the registry to locate the standard library rather than sys.path. This is by design, but isn't really documented properly. It means that code on sys.path (even in the current directory) won't shadow standard

[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Looking at Lib/test/test_zlib.py, it appears that this behaviour is intentional (see issue8672). I agree that having flush() raise an exception is the Right Thing, but breaking existing code (which we know depends on this behavior) is

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-31 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d98b5e0f0862 by Nadeem Vawda in branch 'default': Fix build error in _curses module when not using libncursesw. http://hg.python.org/cpython/rev/d98b5e0f0862 -- ___

[issue12662] Allow configparser to process suplicate options

2011-07-31 Thread ojab
New submission from ojab o...@ojab.ru: Allow configparser to process duplicate options, just concatenating it's values, so using file [sect1] opt1=asd; opt2=qwe opt1=fgs we will have config['sect1']['opt1'] == 'asd;fgs' -- components: Library (Lib) messages: 141463 nosy: ojab

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread kota
kota nospam.kotarou.d...@gmail.com added the comment: So there isn't any way to load parser.py via import parser on Windows? -- components: +None -Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12648

[issue12662] Allow configparser to process suplicate options

2011-07-31 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - lukasz.langa nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12662 ___

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Following d98b5e0f0862, I have been able to successfully build the curses module with curses_unicode.patch applied. -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org

[issue12567] curses implementation of Unicode is wrong in Python 3

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Ack sorry, forgot to give context - my machine doesn't have libncursesw, so the curses module failed to build before that commit (with or without the patch applied). -- ___ Python tracker

[issue10087] HTML calendar is broken

2011-07-31 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10087 ___ ___

[issue12663] ArgumentParser.error writes to stderr not to stdout

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005210.html , here's a patch to fix it. It applies to all the relevant branches. -- assignee: docs@python components: Documentation files:

[issue12664] Path variable - Windows installer

2011-07-31 Thread Aaron Robson
New submission from Aaron Robson shiny.mag...@googlemail.com: One of the main barriers to getting a working development environment for me was having to discover that I needed, learn about and find out how to set up the Path variable in Windows. I propose an option in the installer (perhaps

[issue12665] Dictionary view example has error in set ops

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005209.html here's a patch to fix the example error on active 3.x branches. -- assignee: docs@python components: Documentation files:

[issue12664] Path variable - Windows installer

2011-07-31 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate status: open - closed superseder: - Windows installer should add Python and Scripts directories to the PATH environment variable ___ Python tracker rep...@bugs.python.org

[issue12666] map semantic change not documented in What's New

2011-07-31 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: In `whatsnew/3.0.html`, there is little said about the map builtin: map() and filter() return iterators. If you really need a list, a quick fix is e.g. list(map(...)), but a better fix is often to use a list comprehension (especially when

[issue12666] map semantic change not documented in What's New

2011-07-31 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I believe the correct solution to (2) is to use itertools.zip_longest. So to port to Python 3, the example would use: print(list(map(to_tuple, itertools.zip_longest([1,2,3], [4,5,6,7] --

[issue9968] cgi.FieldStorage: Give control about the directory used for uploads

2011-07-31 Thread phep
phep patrice.pil...@teletopie.net added the comment: Le 30/07/2011 15:45, Éric Araujo a écrit : Éric Araujomer...@netwok.org added the comment: I’ve read in the tempfile module docstring that in order to control the directory, you have to set tempfile.tempdir before calling any tempfile

[issue12667] Better logging.handler.SMTPHandler doc for 'secure' argument

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005207.html here are 2 patches to correct the documentation for 'secure' argument of SMTPHandler: - the one for default (applicable also on 3.2) adds completely the

[issue12667] Better logging.handler.SMTPHandler doc for 'secure' argument

2011-07-31 Thread Sandro Tosi
Changes by Sandro Tosi sandro.t...@gmail.com: Added file: http://bugs.python.org/file22811/logging_smtphandler_secure-2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12667 ___

[issue12183] Document behaviour of shutil.copy2 and copystat with symlinks

2011-07-31 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Senthil Kumaran wrote: When shutil.copy2 already says that it's behavior is equivalent to cp -p, will adding this sentence + Symbolic links are not preserved. The contents and metadata of the + linked files are copied instead. Not

[issue12626] run test cases based on a glob filter

2011-07-31 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I agree with Antoine, as test.support is not a public api adding new features to assist with debugging is fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12626

[issue12668] 3.2 What's New: it's integer-string, not the opposite

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/005087.html, here's a patch to fix the 3.2 What's New section. -- assignee: docs@python components: Documentation files: whatsnew_3.2_int2str-default.patch

[issue12641] Remove -mno-cygwin from distutils

2011-07-31 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: -- nosy: +rpetrov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12641 ___ ___

[issue12669] test_curses skipped on buildbots

2011-07-31 Thread Nadeem Vawda
New submission from Nadeem Vawda nadeem.va...@gmail.com: When running regrtest with the -j and/or -w options, test_curses gets skipped, complaining that stdout is not a tty. This means that the buildbots never run this test, which is obviously a Bad Thing. For the -w case (which applies to the

[issue12640] test_ctypes seg fault (test_callback_register_double); armv7; gcc 4.5.1

2011-07-31 Thread python272
python272 letters.rando...@gmail.com added the comment: problem also occurs when built with configure option --with-system-ffi not sure whether it might be a compiler bug or an invalid test? some debug output: [@localhost Python-2.7.2]$ gdb ./python (gdb) run -Wd -3 -E -tt

[issue12669] test_curses skipped on buildbots

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Correction: the offending options are -j and *-W* (display test output on failure), not -w (re-run failed tests in verbose mode). -- ___ Python tracker rep...@bugs.python.org

[issue12670] Fix struct code after forward declaration on ctypes doc

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi sandro.t...@gmail.com: Hello, following up http://mail.python.org/pipermail/docs/2011-July/004974.html here's a patch (applicable on 2.7, 3.2 and 3.3) to fix the struct declaration in the forward declaration example. -- assignee: docs@python components:

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
New submission from Matthew Barnett pyt...@mrabarnett.plus.com: Someone over at StackOverflow had a problem with urlopen in Python 3.2.1: http://stackoverflow.com/questions/6892573/problem-with-urlopen/6892843#6892843 This is the code: from urllib.request import urlopen f =

[issue12562] calling mmap twice fails on Windows

2011-07-31 Thread Vlad Riscutia
Vlad Riscutia riscutiav...@gmail.com added the comment: Reason you are seeing the failure for this is following change from 2.5 in mmapmodule.c (:1109): m_obj-data = (char *) MapViewOfFile(m_obj-map_handle, dwDesiredAccess,

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Just been told this bug has already been reported as issue #12576. -- resolution: - duplicate ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12671

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
Changes by Matthew Barnett pyt...@mrabarnett.plus.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12671 ___ ___

[issue11651] Improve test targets in Makefile

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: I have attached a Python script which does what Antoine's patch does except which is expected to live in Tools/scripts. The perk of doing this in a Python script is that Windows users will be able to simply execute the script while the

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As far as I know, not as a top-level module in an installed version of Python (at least, not without mucking about in the registry). Shadowing standard library modules is generally a bad idea, and this is one of the reasons. --

[issue7089] shlex behaves unexpected if newlines are not whitespace

2011-07-31 Thread Ann Elliott
Ann Elliott elliott@osu.edu added the comment: This error still occurs in version 3.3.0a0. -- nosy: +elliotta versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7089 ___

[issue12668] 3.2 What's New: it's integer-string, not the opposite

2011-07-31 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12668 ___

[issue12672] Some problems in documentation extending/newtypes.html

2011-07-31 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: Reading the C API documentation: extending/newtypes.html Some problems: 1. In the first paragraph of 2.1 - to distinguish them from things like [].append, it's unclear what [].append is. Maybe [] and append? 2. The C coding convention is

[issue12659] Add tests for packaging.tests.support

2011-07-31 Thread shane moore
Changes by shane moore dstor...@gmail.com: -- nosy: +shane.moore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12659 ___ ___ Python-bugs-list