[issue12236] Tkinter __version__ uses subversion substitution

2011-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Can we be sure it's harmless? A quick Google search turned up at least one package that depends on Tkinter.__version__ (granted, for Python 2). http://permalink.gmane.org/gmane.comp.python.matplotlib.general/24453 -- nosy: +ned.deily

[issue12237] how to open non defult browser?

2011-06-02 Thread de
New submission from de elyd...@gmail.com: hi all, I'm using win7, with Ff as default browser. i wont to open url in other browser installed on my PC. i tried: url = 'http://www.google.com' op = webbrowser.get('opera') op.open(url) and i get this error: Traceback (most recent call last): File

[issue1495802] cygwin: popen3 lock up

2011-06-02 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's not a bug. so.readlines reads the subprocess' stdout until EOF is encountered, but in the meantime, if it writes a lot to stderr, the corresponding pipe fills up, and the subprocess blocks on the write. You should use Popen's

[issue5384] mmap and exception type

2011-06-02 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch. -- keywords: +needs review, patch nosy: +charles-francois.natali, haypo stage: - patch review versions: +Python 3.3 -Python 2.7, Python 3.1 Added file: http://bugs.python.org/file0/mmap_exceptions.diff

[issue8050] smtplib SMTP.sendmail (TypeError: expected string or buffer)

2011-06-02 Thread Jan Papež
Jan Papež honyc...@centrum.cz added the comment: Did you try to use this? q = quotedata(msg.as_string()) -- nosy: +honyczek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8050 ___

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread Niels Heinen
New submission from Niels Heinen ni...@heinen.ws: Running the python binary without a script or using the -i flag will start the process in interactive mode. The interactive mode requires an external module to be loaded: readline. Per default behavior, Python also tries to load this module from

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a general principle of how Python runs in interactive mode and is not confined to loading readline. The same would be true for any module loaded during startup, and there are quite a few that are so loaded. Since loading

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-02 Thread Julian Taylor
Julian Taylor jtaylor.deb...@googlemail.com added the comment: matplotlib fails to build due to this with 2.7.2rc1 in ubuntu oneiric (but its seems simple to fix): https://launchpad.net/ubuntu/+source/matplotlib/1.0.1-2ubuntu1/+build/2535369 -- ___

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-02 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/6/2 Ned Deily rep...@bugs.python.org: Ned Deily n...@acm.org added the comment: Can we be sure it's harmless?  A quick Google search turned up at least one package that depends on Tkinter.__version__ (granted, for Python 2).

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2011-06-02 Thread Mark Mc Mahon
New submission from Mark Mc Mahon mtnbikingm...@gmail.com: Using some.msi where the first property is VT_EMPTY Using COM: from win32com.client import gencache com_lib = gencache.EnsureModule('{000C1092---C000-0046}', 409, 1, 0) com_msi = com_lib.Installer() db =

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2011-06-02 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12239 ___ ___ Python-bugs-list

[issue12239] msilib VT_EMPTY SummaryInformation properties raise an error (suggest returning None)

2011-06-02 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- stage: - needs patch type: - behavior versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12239 ___

[issue12240] Allow multiple setup_hooks

2011-06-02 Thread Erik Bray
New submission from Erik Bray erik.m.b...@gmail.com: I have a use case where I have a small library of setup_hook functions for various purposes that are used by multiple projects. Some projects may want to use more than one of these setup_hooks. I can certainly create a wrapper hook for

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
New submission from Tim Koopman python@nandoe.net: Creating an empty header produces an exception when calling the encode function: from email.header import Header Header('', 'iso-8859-1').encode() Traceback (most recent call last): File stdin, line 1, in module File

[issue12242] distutils2 environment marker for current compiler

2011-06-02 Thread Eli Collins
New submission from Eli Collins e...@assurancetechnologies.com: It would be useful to have an environment marker which matched the compiler being used when compiling a C extension. Sometimes different compilers require different options (different lib names, different flags, etc); distutils1

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12238 ___ ___ Python-bugs-list mailing list

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I can't reproduce this. What exact version of Python are you using? -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue12243] getpass.getuser works on OSX

2011-06-02 Thread Bryce Verdier
New submission from Bryce Verdier bryceverd...@gmail.com: In the docs for getpass: http://docs.python.org/release/2.6.6/library/getpass.html (as an example). It hints that getuser() doesn't work on OSX. I tried this out and it works fine for python 2.6 on 10.6. I have included a patch for

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
Tim Koopman python@nandoe.net added the comment: The default Arch Linux version: 3.2.0 Python 3.2 (r32:88445, Apr 15 2011, 11:09:05) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12241

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread Tim Koopman
Tim Koopman python@nandoe.net added the comment: Looking at the source of 3.2.1, it appears this was already solved. Sorry. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12241 ___

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating kkeat...@gmail.com added the comment: This looks to break pretty good... I did confirm this on 3.0, I'm guessing 3.2 is the same. import sys import xml.dom doc = xml.dom.getDOMImplementation().createDocument(None, 'xml', None)

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating kkeat...@gmail.com added the comment: oops, the first xml element in the output should read element00/ not element/ just a typo! don't get confused! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12129

[issue5384] mmap and exception type

2011-06-02 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: It is uncomfortable changing exception types have been a published API for over a decade, so I'll leave this one open for a bit so that others can comment. Most of the changes in the patch are correct and match their counterparts

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
New submission from Santoso Wijaya santoso.wij...@gmail.com: Observe: Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. from cStringIO import StringIO result = StringIO('Hello, ')

[issue12243] getpass.getuser works on OSX

2011-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I think you are correct that the Availability can be removed, since the actual limits of the support are exactly as complicated as the code that supports them, and should give *some* result on most (all?) platforms. However, OS/X is

[issue12241] email.header.Header encoding fails on empty header

2011-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No problem. It's too bad that regression slipped in to 3.2.0. I probably fixed it by accident, since I rewrote a bunch of that code in 3.2.1 while fixing a different bug. -- resolution: - out of date stage: -

[issue12245] Document the meaning of FLT_ROUNDS constants for sys.float_info

2011-06-02 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: sys.float_info.rounds 1 -- assignee: docs@python components: Documentation messages: 137493 nosy: docs@python, rhettinger priority: normal severity: normal status: open title: Document the meaning of FLT_ROUNDS

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: 1. The class for read-only objects is called StringI (the one for read-write objects is StringO). 2./3. This is documented: http://docs.python.org/library/stringio#cStringIO.StringIO These differences between StringIO and cStringIO are

[issue12246] create installation path if it's non-existent

2011-06-02 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: If I happen to not have the directory, $PREFIX/python3.3/site-packages, I get an erroneous message telling me that I don't write permissions. -- assignee: tarek components: Distutils2 files: create-dir-if-nonexistent.diff

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: _ Should've read the docs again more carefully before submitting. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12244 ___

[issue12247] Finding subprocess.py depends on how IDLE is opened

2011-06-02 Thread George Patterson
New submission from George Patterson geopasc...@gmail.com: I'm uncertain this is a bug, but it seems persistent over several machines and I can't figure out where the issue lies. Most of my troubleshooting has been on a MacBook Pro with Mac OS X version 10.6.7. I have a simple python script

[issue12247] Finding subprocess.py depends on how IDLE is opened

2011-06-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: sys.path is probably not relevant here (it's used to import python modules). Can you print the value of os.environ['PATH'] instead? -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-02 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Attached is a complete patch. All tests pass. Lib/test/support.py * Handle AttributeError, which Hirokazu noticed on pre-XP machines Lib/test/test_os.py * This sets up a three-deep directory tree and creates a symbolic link in the middle

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Barry A. Warsaw
New submission from Barry A. Warsaw ba...@python.org: I'm making this a release blocker for 2.7.2 because I want to ensure that the change is deliberate and appropriate. This is triggered by a bug report in Ubuntu where the change in behavior was noticed:

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: As I recall the issue that triggered the change was reported by Michael Foord, so I'm adding him as nosy too. -- nosy: +michael.foord, r.david.murray ___ Python tracker rep...@bugs.python.org

[issue12249] add missing command

2011-06-02 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe tshep...@gmail.com: It's not indicated where one should run the command 'make html' in the Building the documentation page, so when it failed for me when running it from the cpython distribution root, I was left a little puzzled, searching where the

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Hmm, that behaviour looks unrelated to the specific problem Michael reported. The initial problem in this space was that defining __dir__() completely determined the result of dir() calls, but object.__dir__() didn't actually work, so you

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12248 ___ ___

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: I don't believe there is any reason to have tightened up the type constraints while fixing that - dir() should be returning sorted(obj.__dir__()) and not caring about the exact return type of the magic method. +1 --

[issue12247] Finding subprocess.py depends on how IDLE is opened

2011-06-02 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The difference in behavior you are seeing does indeed have to do with the PATH environment variable. When you start IDLE via a terminal shell, it inherits the PATH value from your shell environment. path_helper(8) sets the default value for a login