[issue12648] Wrong import module search order on Windows

2011-07-31 Thread kota
kota 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 ___ _

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread Nick Coghlan
Nick Coghlan 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 library modules on Wi

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

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda 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 clearly a bad idea. @pitrou -

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

2011-07-31 Thread Roundup Robot
Roundup Robot 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 -- ___ Python tracker

[issue12662] Allow configparser to process suplicate options

2011-07-31 Thread ojab
New submission from ojab : 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 priority: normal sev

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread kota
kota added the comment: So there isn't any way to load parser.py via import parser on Windows? -- components: +None -Documentation ___ Python tracker ___ ___

[issue12662] Allow configparser to process suplicate options

2011-07-31 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> lukasz.langa nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list U

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

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda 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 ___

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

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda 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 : -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi : 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: ArgumentParser.error_stderr-default.patch keyw

[issue12664] Path variable - Windows installer

2011-07-31 Thread Aaron Robson
New submission from Aaron Robson : 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 even set to be on by default)

[issue12665] Dictionary view example has error in set ops

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi : 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: dict_view_examples-default.patch keywords: patch me

[issue12664] Path variable - Windows installer

2011-07-31 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate status: open -> closed superseder: -> Windows installer should add Python and Scripts directories to the PATH environment variable ___ Python tracker

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

2011-07-31 Thread Jason R. Coombs
New submission from Jason R. Coombs : 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 the original code

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

2011-07-31 Thread Jason R. Coombs
Jason R. Coombs 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] -- ___ Python tracker

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

2011-07-31 Thread phep
phep added the comment: Le 30/07/2011 15:45, Éric Araujo a écrit : > > Éric Araujo 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 > function. I suspect this will not be okay

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

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi : 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 'secure' arg (missing) - t

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

2011-07-31 Thread Sandro Tosi
Changes by Sandro Tosi : Added file: http://bugs.python.org/file22811/logging_smtphandler_secure-2.7.patch ___ Python tracker ___ ___ Python-

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

2011-07-31 Thread Petri Lehtinen
Petri Lehtinen 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 actively c

[issue12626] run test cases based on a glob filter

2011-07-31 Thread Michael Foord
Michael Foord 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 ___ _

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

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi : 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 keywords: patch messages: 14

[issue12641] Remove -mno-cygwin from distutils

2011-07-31 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12669] test_curses skipped on buildbots

2011-07-31 Thread Nadeem Vawda
New submission from Nadeem Vawda : 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 buildbots), this is cau

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

2011-07-31 Thread python272
python272 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 ./Lib/test/regrtest.py -v test_ctypes ... test

[issue12669] test_curses skipped on buildbots

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda 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 _

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

2011-07-31 Thread Sandro Tosi
New submission from Sandro Tosi : 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: Documentation files

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
New submission from Matthew Barnett : 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 = urlopen('http://online.wsj.com/

[issue12562] calling mmap twice fails on Windows

2011-07-31 Thread Vlad Riscutia
Vlad Riscutia 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, 0,

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
Matthew Barnett added the comment: Just been told this bug has already been reported as issue #12576. -- resolution: -> duplicate ___ Python tracker ___ ___

[issue12671] urlopen returning empty string

2011-07-31 Thread Matthew Barnett
Changes by Matthew Barnett : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11651] Improve test targets in Makefile

2011-07-31 Thread Nadeem Vawda
Nadeem Vawda 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 Makefile can be made

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread Nick Coghlan
Nick Coghlan 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 added the comment: This error still occurs in version 3.3.0a0. -- nosy: +elliotta versions: +Python 3.3 ___ Python tracker ___ ___

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

2011-07-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

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

2011-07-31 Thread Eli Bendersky
New submission from Eli Bendersky : 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 unusual and non

[issue12659] Add tests for packaging.tests.support

2011-07-31 Thread shane moore
Changes by shane moore : -- nosy: +shane.moore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12673] SEGFAULT error on OpenBSD (sparc)

2011-07-31 Thread rpointel
New submission from rpointel : Hello, on OpenBSD (arch: sparc), I got a SIGBUS error during the compilation. gdb info: #0 0x089f136c in listextend (self=0xb6232d8, b=0xb611060) at /home/ports/pobj/Python-2.7.1/Python-2.7.1/Objects/listobject.c:838 838 Py_INCREF(o); (gdb) list

[issue12648] Wrong import module search order on Windows

2011-07-31 Thread kota
kota added the comment: Ok. Time to get those people over at glib to fix up their python script then :) -- ___ Python tracker ___ ___

[issue12631] Mutable Sequence Type in .remove() is consistent only with lists, but not with bytearrays

2011-07-31 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma