[issue12186] readline.replace_history_item still leaks memory

2011-06-02 Thread stefanholek
stefanholek added the comment: These undo lists come into existence when history entries are edited interactively (Arrow-Up, edit line, Arrow-Up, edit line, Enter -> undo list of first history entry leaks). -- components: +Extension Modules versions: +Python 2.6, Python 2.7, Python 3.

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

2011-06-02 Thread Ned Deily
Ned Deily 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 shell PATH by

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Raymond Hettinger
Raymond Hettinger 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 -- nosy: +rhettinger _

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Nick Coghlan
Nick Coghlan 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 couldn't easily get th

[issue12249] add missing command

2011-06-02 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 problem might lie (

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread R. David Murray
R. David Murray 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

[issue12248] __dir__ semantics changed in Python 2.7.2

2011-06-02 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : 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: https://bugs.launchpad.net/nova/+bug/791221/+index I

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

2011-06-02 Thread Brian Curtin
Brian Curtin 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 (second) directory.

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

2011-06-02 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc 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

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

2011-06-02 Thread George Patterson
New submission from George Patterson : 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 'test.py': import s

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
Santoso Wijaya added the comment: >_< Should've read the docs again more carefully before submitting. -- ___ Python tracker ___ ___ P

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

2011-06-02 Thread Tshepang Lekhonkhobe
New submission from Tshepang Lekhonkhobe : 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 keywords: patch messag

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Georg Brandl
Georg Brandl 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 unfortunate, but can

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

2011-06-02 Thread Raymond Hettinger
New submission from Raymond Hettinger : >>> 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 constants for sys.float_info vers

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

2011-06-02 Thread R. David Murray
R. David Murray 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: -> committed/rejected status: open ->

[issue12243] getpass.getuser works on OSX

2011-06-02 Thread R. David Murray
R. David Murray 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 certainly covered by the

[issue12244] cStringIO inconsistencies

2011-06-02 Thread Santoso Wijaya
New submission from Santoso Wijaya : 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, ') >>> result.write('world')

[issue5384] mmap and exception type

2011-06-02 Thread Raymond Hettinger
Raymond Hettinger 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 for lists and strings. Th

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating added the comment: oops, the first xml element in the output should read "" not "" just a typo! don't get confused! -- ___ Python tracker ___ ___

[issue12129] Document Object Model API - validation

2011-06-02 Thread Kyle Keating
Kyle Keating 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) doc.firstChild.appendChild(doc.createElement('element00')) element01 =

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

2011-06-02 Thread Tim Koopman
Tim Koopman added the comment: Looking at the source of 3.2.1, it appears this was already solved. Sorry. -- ___ Python tracker ___ _

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

2011-06-02 Thread Tim Koopman
Tim Koopman added the comment: The default Arch Linux version: 3.2.0 Python 3.2 (r32:88445, Apr 15 2011, 11:09:05) -- ___ Python tracker ___ ___

[issue12243] getpass.getuser works on OSX

2011-06-02 Thread Bryce Verdier
New submission from Bryce Verdier : 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 this. I believe the cleane

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

2011-06-02 Thread R. David Murray
R. David Murray 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

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12242] distutils2 environment marker for current compiler

2011-06-02 Thread Eli Collins
New submission from Eli Collins : 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 setup.py files which have to d

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

2011-06-02 Thread Tim Koopman
New submission from Tim Koopman : 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 "", line 1, in File "/usr/lib/python3.2/email/header.py", line

[issue12240] Allow multiple setup_hooks

2011-06-02 Thread Erik Bray
New submission from Erik Bray : 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 each function that calls

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

2011-06-02 Thread Brian Curtin
Changes by Brian Curtin : -- stage: -> needs patch type: -> behavior versions: +Python 2.7, Python 3.1 ___ Python tracker ___ ___ Py

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

2011-06-02 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[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 : 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 = com_msi.OpenDatab

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-02 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/6/2 Ned Deily : > > Ned Deily 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.mat

[issue12236] Tkinter __version__ uses subversion substitution

2011-06-02 Thread Julian Taylor
Julian Taylor 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 -- ___ Python tracker

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread R. David Murray
R. David Murray 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 modules from the current wo

[issue12238] Readline module loading in interactive mode

2011-06-02 Thread Niels Heinen
New submission from Niels Heinen : 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 the current wo

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

2011-06-02 Thread Jan Papež
Jan Papež added the comment: Did you try to use this? q = quotedata(msg.as_string()) -- nosy: +honyczek ___ Python tracker ___ ___ Pyt

[issue5384] mmap and exception type

2011-06-02 Thread Charles-François Natali
Charles-François Natali 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 ___

[issue1495802] cygwin: popen3 lock up

2011-06-02 Thread Charles-François Natali
Charles-François Natali 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 communicate method.

[issue12237] how to open non defult browser?

2011-06-02 Thread de
New submission from de : 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 "", line 1, in