[issue6001] Test discovery for unittest

2009-05-29 Thread Michael Foord
Michael Foord added the comment: Committed in revision 73027. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6155] "logging" example uses unavailable cPickle module

2009-05-31 Thread Michael Newman
New submission from Michael Newman : The server portion of the example at: "15.6.9. Sending and receiving logging events across a network" http://docs.python.org/3.0/library/logging.html uses "import cPickle" which is not available for Python 3.0.1 Python 3.0.1 (r301:69561

[issue6169] Important comparison bug in ipaddr

2009-06-01 Thread Michael Shields
New submission from Michael Shields : The open source version of ipaddr had an important comparison bug in which it was possible for x > y and x < y. The fix for this should be applied to the Python standard library version as well. http://code.google.com/p/ipaddr-py/source/detai

[issue6177] unittest.main testRunner default argument changed from None

2009-06-02 Thread Michael Foord
New submission from Michael Foord : In Python 2.6 the testRunner keyword argument to unittest.main (TestProgram) changed from None to TextTestRunner. This breaks test suites (like the setuptools tests) which pass in None when not wanting to override the default. This is easy to fix without

[issue6177] unittest.main testRunner default argument changed from None

2009-06-02 Thread Michael Foord
Michael Foord added the comment: Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file14155/fix_unittest_main.patch ___ Python tracker <http://bugs.python.org/issue6

[issue1244929] hide tests from TestProgram

2009-06-02 Thread Michael Foord
Michael Foord added the comment: A module can now define load_tests (used by loadTestsFromModule) and exclude certain classes itself. -- resolution: -> wont fix status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue6177] unittest.main testRunner default argument changed from None

2009-06-02 Thread Michael Foord
Michael Foord added the comment: Committed to trunk in revision 73151 and revision 73152. -- status: open -> closed ___ Python tracker <http://bugs.python.org/iss

[issue1207] Load tests from path (patch included)

2009-06-02 Thread Michael Foord
Michael Foord added the comment: Similar functionality is now in TestLoader.discover. -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6190] Tutorial 3.1.2 (Strings) has duplicate lines

2009-06-03 Thread Michael Markert
New submission from Michael Markert : Lines 242 - 246 of `introduction.rst` are the exact duplicate of 202 - 206 in the same file. 246+247 resemble 206+207. The attached patch deletes the second notion. -- assignee: georg.brandl components: Documentation files: introduction.rst.patch

[issue6204] Missing reference in section 4.6 to chapter on classes

2009-06-05 Thread Michael Markert
New submission from Michael Markert : In section 4.6 there is described that classes will be explained later on. I think a real reference would be more appropriate. See attached patch. -- assignee: georg.brandl components: Documentation files: controlflow.rst.patch keywords: patch

[issue6199] test_unittest fails on Windows

2009-06-05 Thread Michael Foord
Michael Foord added the comment: Thanks - I should have tested on Windows first. Tests now pass on Windows and Mac OS X. Committed revision 73247. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.p

[issue6211] [Tutorial] Section 4.7.2 has a wrong description of an example

2009-06-05 Thread Michael Markert
New submission from Michael Markert : [Tutorial] Section 4.7.2 has a piece of example code which gives three possibilities to call that function, but the description states that there are only two possibilities. Attached patch changes that and gives the third possibility of calling

[issue4309] ctypes documentation

2009-06-06 Thread Michael Newman
Michael Newman added the comment: Regarding Section "15.15.1.5. Calling functions, continued" on: http://docs.python.org/3.0/library/ctypes.html I would recommend changing the first example code block to the following: >>> printf = libc.printf >>> printf(b&qu

[issue6244] Support for tcl 8.6

2009-06-08 Thread Michael Scherer
New submission from Michael Scherer : It seems that python do not compile with tcl 8.6. Here is a patch, done by Adam Williamson, to add this version in the supported list. We are using on mandriva since 6 months without trouble, so I think this is safe to include. The patch is against version

[issue4309] ctypes documentation

2009-06-08 Thread Michael Newman
Michael Newman added the comment: Watch out on Line 247 of r73293: "bytes objcet" should be: "bytes object" -- ___ Python tracker <http://bu

[issue6275] let unittest.assertRaises() return the exception object caught

2009-06-13 Thread Michael Foord
Michael Foord added the comment: This was suggested before on Python-dev and Guido rejected it as it is an 'odd' API for a unittest assert method - none of the others return anything. -- resolution: -> rejected status: open -> closed __

[issue6275] let unittest.assertRaises() return the exception object caught

2009-06-14 Thread Michael Foord
Michael Foord added the comment: Well, his comment was made after assertRaises had already been made a context manager. Keeping the exception attached to the context manager is an interesting suggestion and a less 'surprising' change

[issue6275] let unittest.assertRaises() return the exception object caught

2009-06-14 Thread Michael Foord
Michael Foord added the comment: I disagree that the regex version is half-assed though. If all you want to do is to make assertions about the exception message (the most common use case in *my* experience) it is enormously convenient. -- ___ Python

[issue1399935] enhance unittest to define tests that *should* fail

2009-06-14 Thread Michael Foord
Michael Foord added the comment: Patch needs updating but still seems like a useful feature. I'll update and commit. I agree that decorator should be lowercase - should_fail or shouldfail ? -- ___ Python tracker <http://bugs.python.org/issu

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord
New submission from Michael Foord : setup.py should be able to generate tarfile distributions on Windows without requiring tar to be on the path. Ideally "setup.py sdist" should create the same type of archive (zip or tarball) by default independent of platform. At the moment it cre

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord
Michael Foord added the comment: Given that Windows can't handle tar files by default but all platforms support zip out of the box wouldn't (unfortunately) zip be a better default? For the MANIFEST I meant the file called MANIFEST that distutils creates (and includes in the distribu

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord
Michael Foord added the comment: The point is not for developers who are happy handling .tar.gz but users of the distribution who don't have a way of handling them. I prefer .tar.gz myself as well but I don't think the default distribution format should be one that isn't native

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-17 Thread Michael Foord
Michael Foord added the comment: Better compression. -- ___ Python tracker <http://bugs.python.org/issue6296> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6308] termios fix for QNX breaks HP-UX

2009-06-18 Thread Michael Haubenwallner
New submission from Michael Haubenwallner : The patch for issue 175 in Include/pyport.h to include before for QNX does break for HP-UX: On HP-UX, 'struct termios' gets declared within , but when included via _only_. Due to the include guard, it does not declare 'struc

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord added the comment: The wording as it stands just seems plain wrong. Either "Python on Windows" or "On Windows" is better - the former over the latter but either... -- nosy: +michael.foord ___ Python tracker <

[issue6301] Error in tutorial section 7.2

2009-06-18 Thread Michael Foord
Michael Foord added the comment: This behavior of Python when reading files is so fundamental that I can't imagine Jython doesn't behave the same way. (IronPython certainly has the same behavior.) -- ___ Python tracker <http://bu

[issue6296] Native (and default) tarfile support for setup.py sdist in distutils on Windows

2009-06-24 Thread Michael Foord
Michael Foord added the comment: Yup, standard install procedure is (and will probably remain for a while) - unpack and run python setup.py install Users should be able to unpack on the most common platforms Python supports without needing additional tools. All major platforms have native zip

[issue6410] Dictionaries should support __add__

2009-07-03 Thread Michael W.
New submission from Michael W. : Summary: Dictionaries should support being added to other dictionaries instead of using update(). This should be a relatively easy fix and would make the language more pythonic. How to reproduce: $ python Python 2.6.2 (release26-maint, Apr 19 2009, 01:56:41

[issue6417] multiprocessing Process examples: print and getppid

2009-07-04 Thread Michael Newman
New submission from Michael Newman : The "16.6.1.1. The Process class" section of the multiprocessing documentation: http://docs.python.org/dev/py3k/library/multiprocessing.html has errors in both examples. The first example needs the indentation fixed on the "from" and &q

[issue6417] multiprocessing Process examples: print and getppid

2009-07-04 Thread Michael Newman
Michael Newman added the comment: # Revised example that is more platform neutral (avoids sys.platform): from multiprocessing import Process, current_process import os def info(title): print(title) print('module name:', __name__) if not hasattr(os, 'getppid'):

[issue6418] unittest.TestProgram change breaks nose

2009-07-04 Thread Michael Foord
Michael Foord added the comment: This change was made to fix a regression in 2.6. In 2.5 the default was None and someone (else) made the also backwards incompatible change to make the default the TextTestRunner class. This broke test suites (like setuptools for example) which expected to be

[issue8900] IDLE crashes if Preference set to At Startup -> Open Edit Window

2010-06-04 Thread Michael Huster
New submission from Michael Huster : This only seems to be a problem under Windows. >From a Portable Python discussion: I am using Portable Python 1.1, python 3.0.1. I am trying to set up a .bat file file to easily start IDLE. But IDLE is throwing an error and failing some of the time. It o

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Slightly modified version committed revision 81728. (It truncates large diffs rather than omitting them and allows max_diff to be None - meaning no maximum.) Needs some extended tests and needs documenting

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Modified again in revision 81739. No longer uses a new argument, but a class attribute instead. All assert methods that generate failure messages with difflib truncate messages. -- ___ Python tracker <h

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Modified again in revision 81752. Assertion methods now inform you when omitting an excessively long diff. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Still some tests and documentation needed. Leaving issue open until it is done. (Also needs backporting to unittest2...) -- ___ Python tracker <http://bugs.python.org/issue8

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Note that we also have a bit of a performance issue in prettyprint / difflib when the diffs are very big. It can spend a minute or more constructing the diff - only to throw it away because it is too big

[issue8302] SkipTest exception in setUpClass or setUpModule is marked as an error rather than a skip

2010-06-05 Thread Michael Foord
Michael Foord added the comment: Committed revision 81760. Needs tests and documentation. -- ___ Python tracker <http://bugs.python.org/issue8302> ___ ___ Pytho

[issue8302] SkipTest exception in setUpClass or setUpModule is marked as an error rather than a skip

2010-06-05 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8351] Suppress large diffs in unitttest.TestCase.assertSequenceEqual()

2010-06-05 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-08 Thread Michael Foord
New submission from Michael Foord : Also class / module tearDowns are not executed with TestSuite.debug() -- assignee: michael.foord components: Library (Lib) messages: 107346 nosy: michael.foord priority: normal severity: normal status: open title: cleanup functions are not executed

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-08 Thread Michael Foord
Michael Foord added the comment: Committed revision 81853. Still needs porting to py3k (and unittest2). -- ___ Python tracker <http://bugs.python.org/issue8

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-09 Thread Michael Foord
Michael Foord added the comment: Typo correction in revision 81859. Also needs merging onto py3k. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
New submission from Michael Curran : There seem to be problems with WINFUNCTYPE callbacks causing exceptions, and or getting their return value ignored by the caller, when using Python 2.7 rc1. Two examples provided. Example 1: Providing a WINFUNCTYPE wrapped python function when calling

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Changes by Michael Curran : Added file: http://bugs.python.org/file17605/test_keyHook.py ___ Python tracker <http://bugs.python.org/issue8959> ___ ___ Python-bugs-list m

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Michael Curran added the comment: I should also note that this has been tested on Windows 7 and XP (32 bit). I have also seen cases where Python has crashed completely, rather than just causing a WindowsError, in these circomstances. -- ___ Python

[issue8948] cleanup functions are not executed with unittest.TestCase.debug()

2010-06-10 Thread Michael Foord
Michael Foord added the comment: Committed revision 81875. Committed revision 81874. -- resolution: -> accepted stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Michael Curran added the comment: Issue does not occure using Python 3.1.2. -- ___ Python tracker <http://bugs.python.org/issue8959> ___ ___ Python-bugs-list m

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-10 Thread Michael Curran
Michael Curran added the comment: The issue does not occure with Python 2.7 beta 1, but does occure in Python 2.7 beta 2. So, with this in mind, its probably more likely that it may have been caused by the following change: "- On Windows, ctypes does no longer check the stack befor

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-11 Thread Michael Curran
Michael Curran added the comment: Tested on Windows 7 x64, with Python 2.7 rc1 [amd64]: both examples work fine. So it seems the issue is specific to x86. -- ___ Python tracker <http://bugs.python.org/issue8

[issue9028] test_support.run_unittest cmdline options and arguments

2010-06-20 Thread Michael Foord
Michael Foord added the comment: """But I want to execute test from my own patched copy of test_httpservers.py with whatever python I want. I.e. > C:\Python27\python.exe Z:\python-cgi-tests\test_httpservers.py ... """ If you use Python 2.7 then the follow

[issue9028] test_support.run_unittest cmdline options and arguments

2010-06-20 Thread Michael Foord
Michael Foord added the comment: Right. That code should change. My intention is to go through the whole of the Python test suite and make them compatible with the new unittest features. I also intend to add extensions to unittest to allow listing of collecting tests and filtering tests by

[issue9081] test_sysconfig failure

2010-06-25 Thread Michael Foord
New submission from Michael Foord : When I do a *full test run* of py3k I get a distutils test failure. It doesn't happen if I run test_distutils on its own: bigmac:py3k michael$ ./python.exe -m test.regrtest -j12 == CPython 3.2a0 (py3k:82215, Jun 25 2010, 13:59:00) [GCC 4.2.1 (Appl

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
New submission from Michael Foord : warnings.filterwarnings is mostly a bunch of asserts, so it doesn't work when Python is run with -O or -OO. This also means that a bunch of tests fail when run with -O or -OO. Two options are skip the tests or fix filterwarnings. -- compo

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
Michael Foord added the comment: A third (and better) option, but a deeper change, would be to allow the enabling of asserts on a per-module basis even when Python is run with -O/-OO. This would be great for testing. -- ___ Python tracker <h

[issue9082] warnings.filterwarnings doesn't work with -O

2010-06-25 Thread Michael Foord
Changes by Michael Foord : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue9082> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9110] contextlib.ContextDecorator

2010-06-28 Thread Michael Foord
New submission from Michael Foord : Patch to add a ContextDecorator class to contextlib. This allows context managers that inherit from ContextDecorator (including using it as a mixin) to be used as decorators as well as context managers. Context managers inheriting from ContextDecorator

[issue9110] contextlib.ContextDecorator

2010-06-28 Thread Michael Foord
Changes by Michael Foord : Added file: http://bugs.python.org/file17796/docs.patch ___ Python tracker <http://bugs.python.org/issue9110> ___ ___ Python-bugs-list mailin

[issue9110] contextlib.ContextDecorator

2010-06-29 Thread Michael Foord
Michael Foord added the comment: Hey Nick, The tests are pretty much just copied from the previous version, so they aren't all appropriate. In fact I think that the first two tests (and even the typo tests) can just go as they really just test Python semantics and not the ContextDeco

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
Michael Foord added the comment: New patch uploaded with (I think) all suggested changes made. I left some text in the .. versionchanged:: tag for contextmanager as I think this is normal. -- Added file: http://bugs.python.org/file17808/contextdecorator.2.patch

[issue9110] contextlib.ContextDecorator

2010-06-30 Thread Michael Foord
Michael Foord added the comment: Committed revision 82394. I left examples of using ContextDecorator with a decorated *and* in a with statement in the documentation. Feel free to trim the with statement example if you feel it is redundant. -- resolution: -> accepted stage: pa

[issue9162] License for multiprocessing files

2010-07-04 Thread Michael Fladischer
New submission from Michael Fladischer : The files in Lib/multiprocessing (except __init__.py) are referring to their license by point to a nonexistent file called COPYING.txt. This possibly needs clarification as if this file is missing or the license is to be found somewhere else

[issue9163] test_gdb fails

2010-07-05 Thread Michael Blume
New submission from Michael Blume : After building Python 2.7 on two separate X68 Ubuntu boxes, test_gdb failed both times. ./configure make make test output follows: test_gdb test test_gdb failed -- Traceback (most recent call last): File "/home/mike/workspace/Python-2.7/Lib

[issue9163] test_gdb fails

2010-07-06 Thread Michael Blume
Michael Blume added the comment: The commands I issued to build were just ./configure make make install These machines were both fairly vanilla setups, so I don't think there should have been any strange flags going to the compiler. -- ___ P

[issue9163] test_gdb fails

2010-07-06 Thread Michael Blume
Michael Blume added the comment: -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -- ___ Python tracker <http://bugs.python.org/issue9

[issue9110] contextlib.ContextDecorator

2010-07-09 Thread Michael Foord
Michael Foord added the comment: Hey Jack. The point of ContextDecorator is that when you are implementing a context manager, which you will usually do as a class anyway, you can just inherit from it and get the decorator functionality for free. If you like the contextmanager style of

[issue9174] unittest assertEqual error output sub-optimal for single strings

2010-07-10 Thread Michael Foord
Michael Foord added the comment: Committed revision 82767. (py3k) Committed revision 82765. (release27-maint) Fix could be ported to Python 3.1 as a bugfix as well. -- resolution: -> accepted stage: patch review -> committed/rejected status: open -&g

[issue9174] unittest assertEqual error output sub-optimal for single strings

2010-07-10 Thread Michael Foord
Michael Foord added the comment: I agree that mentioning contextmanager in the ContextDecorator docs is a good idea - plus adding something like Nick's example. I'll do that. -- ___ Python tracker <http://bugs.python.

[issue9174] unittest assertEqual error output sub-optimal for single strings

2010-07-10 Thread Michael Foord
Changes by Michael Foord : -- ___ Python tracker <http://bugs.python.org/issue9174> ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue9110] contextlib.ContextDecorator

2010-07-10 Thread Michael Foord
Michael Foord added the comment: I agree that mentioning contextmanager in the ContextDecorator docs is a good idea - plus adding something like Nick's example. I'll do that. -- ___ Python tracker <http://bugs.python.

[issue7616] test_memoryview test_setitem_writable failures with Intel ICC

2010-07-11 Thread Michael Foord
Changes by Michael Foord : -- nosy: -michael.foord ___ Python tracker <http://bugs.python.org/issue7616> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue444582] Finding programs in PATH, adding shutil.which

2010-07-11 Thread Michael Foord
Michael Foord added the comment: which is useful for discovering *if* a program is available (I sorely miss it on Windows when I don't have cygwin installed). +1 for adding it to shutil. -- nosy: +michael.foord ___ Python tracker

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-11 Thread Michael Foord
New submission from Michael Foord : After installing Python 2.7 for Mac OS X from the Python.org binary I can't use Tkinter or IDLE. I installed the following, on Snow Leopard: * Python 2.7 PPC/i386/x86-64 Max OS X Installer Disk Image >>> import Tkinter Traceback (most re

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-11 Thread Michael Foord
Michael Foord added the comment: As a further oddity, if I run IDLE.app I get an IDLE shell (weird as from the command line Tkinter can't even be imported) - but I also get an error dialog that the subprocess can't be connected to and then IDLE

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-11 Thread Michael Foord
Michael Foord added the comment: Mark Dickinson confirms the problem and offers this diagnosis: The python.org binary links to Tcl 8.4 (which doesn't seem to have a 64-bit version). Perhaps this means having to have a separate installer for OS X

[issue9227] can't import Tkinter / use IDLE after installing Python 2.7 on Mac OS X

2010-07-12 Thread Michael Foord
Michael Foord added the comment: I don't particularly mind what the fix is - but at the moment users can download and install Python from a python.org installer and then have an (apparently) non functioning IDLE and Tkinter. At the very least we should advise users to install the 32bit

[issue1681842] splitext of dotfiles, incl backwards compat and migration

2010-07-17 Thread Michael Foord
Michael Foord added the comment: On Python 2.6.5: >>> os.path.splitext('.cshrc') ('.cshrc', '') I believe this can be closed. -- resolution: -> out of date status: open -> closed ___ Python

[issue9110] contextlib.ContextDecorator

2010-07-18 Thread Michael Foord
Michael Foord added the comment: I've uploaded a new patch with additions to the docs. Let me know if it is ok or if you have any suggested amendments. -- Added file: http://bugs.python.org/file18049/contextlib_docs.patch ___ Python tracker

[issue9303] Migrate sqlite3 module to _v2 API to enhance performance

2010-07-19 Thread Michael Schwarz
New submission from Michael Schwarz : The Python sqlite module currently uses some deprecated API [0] of SQLite. These are functions that have a counterpart with _v2 appended to their name. The SQLite query planner will not use certain optimizations when using the old API. For example, as

[issue3615] Expect methods for testing.

2010-07-20 Thread Michael Foord
Michael Foord added the comment: The API on TestCase is already too wide without adding more methods. This is easy enough to do in a TestCase subclass for those who want it. -- resolution: -> wont fix status: pending -> closed ___ Python t

[issue4080] pyunit - display time of each test case - patch

2010-07-20 Thread Michael Foord
Michael Foord added the comment: I am in the process of creating an extension mechanism for unittest which will make adding this sort of use case to unittest much easier. *Even* if it is added to the core it should be in the form of an extension (plugin) so please don't update the

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Michael Kopinsky added the comment: The thing that bugged me when I created the ticket is that since IDLE uses two windows for every instance, that means that if you open three files, you'll have six windows open. I was bugged by constantly switching to the wrong window

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Michael Kopinsky added the comment: I haven't really done any active Python development in a while. When I reported this back in April 2009 I was presumably using whatever was current then (2.6.x, I guess), but haven't tested it since. If you tell me that in newer versions it is co

[issue5817] Right-click behavior from Windows Explorer

2010-07-20 Thread Michael Kopinsky
Changes by Michael Kopinsky : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue5817> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9330] assertIn should check for membership support before testing

2010-07-22 Thread Michael Foord
Michael Foord added the comment: No, assertIn is for testing for membership in a container. If you pass it something that isn't a container then it indicates an error in the test (or misuse of the assert!). -- ___ Python tracker

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-25 Thread Michael Foord
Michael Foord added the comment: Committed revision 83150. Still needs backporting to 3.1, 2.7 and possibly even 2.6. -- assignee: -> michael.foord resolution: -> accepted stage: patch review -> commit review versions: +Python 2.6 _

[issue4686] Exceptions in ConfigParser don't set .args

2010-07-26 Thread Michael Foord
Michael Foord added the comment: Patch doesn't apply cleanly to 3.1 or earlier. As it is *arguably* a new feature rather than a bugfix I'm closing the issue. I certainly wouldn't argue against someone else backporting though... -- stage: commit review -> committ

[issue1682942] ConfigParser support for alt delimiters

2010-07-26 Thread Michael Foord
Michael Foord added the comment: This would change the format of config files that configparser supports. Should there be some discussion of this on python-dev first? The patch for the docs is against the latex docs, so definitely needs updating. -- nosy: +michael.foord

[issue5412] extend configparser to support [] syntax

2010-07-26 Thread Michael Foord
Michael Foord added the comment: There are no docs or tests in the patch. I like the functionality though and doubt it will be controversial. The current api is a bit "arcane". So +1 from me. -- nosy: +michael.foord ___ Python trac

[issue6517] configparser: add possibility to escape formatstrings

2010-07-26 Thread Michael Foord
Michael Foord added the comment: This should just be applied. I'll do it shortly unless there is an objection. -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/i

[issue9362] Make exit/quit hint more novice friendly

2010-07-26 Thread Michael Foord
Michael Foord added the comment: +1 to improving the message and improving the help message too. -- nosy: +michael.foord ___ Python tracker <http://bugs.python.org/issue9

[issue6517] configparser: add possibility to escape formatstrings

2010-07-26 Thread Michael Foord
Michael Foord added the comment: It is (very) unfortunate that configparser.ConfigParser should *not* be used and that configparser.SafeConfigParser is the correct class instead. I would be *in favour* of deprecating ConfigParser and eventually renaming SafeConfigParser back to ConfigParser

[issue9376] Refer to gnuwin32 diff util on development FAQ

2010-07-26 Thread Michael Foord
Michael Foord added the comment: "svn diff" should be the one true way for creating patches, especially for windows users. This will all change when we switch to mercurial. -- nosy: +michael.foord ___ Python tracker <http://bu

[issue6517] Emphasising in the docs configparser.SafeConfigParser over ConfigParser

2010-07-26 Thread Michael Foord
Michael Foord added the comment: Note that the patch doesn't apply cleanly. Ɓukasz Langa is going to update it. There is still discussion as to whether we should *also* deprecate ConfigParser (well - PendingDeprecation in 3.2, Deprecation in 3.3 and in 3.4 making ConfigParser an alia

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2010-07-26 Thread Michael Foord
Changes by Michael Foord : -- resolution: -> duplicate stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6325] robotparser doesn't handle URL's with query strings

2010-07-26 Thread Michael Stephens
Michael Stephens added the comment: Supplied patch matches rules with query params. -- keywords: +patch nosy: +mikejs Added file: http://bugs.python.org/file18218/6325.diff ___ Python tracker <http://bugs.python.org/issue6

[issue1778410] removeTest() method patch for unittest.TestSuite

2010-07-27 Thread Michael Foord
Michael Foord added the comment: I'm sympathetic to the feature request. I think that the way tests identify themselves will change (improve) to accommodate the new extension machinery. I would like to leave this feature request open for the moment and revisit it again once the exte

[issue5412] extend configparser to support [] syntax

2010-07-28 Thread Michael Foord
Michael Foord added the comment: As in ConfigParser you are always accessing a section and value I'm happy with tuple indexing. -- ___ Python tracker <http://bugs.python.org/i

[issue5412] extend configparser to support mapping access(__*item__)

2010-07-28 Thread Michael Foord
Michael Foord added the comment: > The winning argument in my opinion is user convenience Well yes, for me too - as the user will always be operating on (section, key) pairs the extra level of indirection seems pointless. -- ___ Python trac

[issue9401] automatically try forward operations when reverse operations are NotImplemented

2010-07-28 Thread Michael Gilbert
New submission from Michael Gilbert : in order to make overrides simpler, and more obvious to average developers, it would be very useful to automatically call the forward operations (e.g. __mul__) when the reverse operations (e.g. __rmul__) are NotImplemented. i spent quite a bit of time

<    20   21   22   23   24   25   26   27   28   29   >