Michael Foord added the comment:
Committed in revision 73027.
--
resolution: -> accepted
status: open -> closed
___
Python tracker
<http://bugs.python.org/
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
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
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
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
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
Michael Foord added the comment:
Committed to trunk in revision 73151 and revision 73152.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
Michael Foord added the comment:
Similar functionality is now in TestLoader.discover.
--
resolution: -> rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/
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
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
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
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
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
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
Michael Newman added the comment:
Watch out on Line 247 of r73293:
"bytes objcet"
should be:
"bytes object"
--
___
Python tracker
<http://bu
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
__
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
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
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
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
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
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
Michael Foord added the comment:
Better compression.
--
___
Python tracker
<http://bugs.python.org/issue6296>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
<
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
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
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
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
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'):
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
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
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
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
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
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
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
Michael Foord added the comment:
Committed revision 81760. Needs tests and documentation.
--
___
Python tracker
<http://bugs.python.org/issue8302>
___
___
Pytho
Changes by Michael Foord :
--
resolution: -> accepted
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Changes by Michael Foord :
--
resolution: -> accepted
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
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
Michael Foord added the comment:
Committed revision 81853. Still needs porting to py3k (and unittest2).
--
___
Python tracker
<http://bugs.python.org/issue8
Michael Foord added the comment:
Typo correction in revision 81859. Also needs merging onto py3k.
--
___
Python tracker
<http://bugs.python.org/issue8
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Michael Foord :
--
nosy: +rhettinger
___
Python tracker
<http://bugs.python.org/issue9082>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Changes by Michael Foord :
Added file: http://bugs.python.org/file17796/docs.patch
___
Python tracker
<http://bugs.python.org/issue9110>
___
___
Python-bugs-list mailin
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
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
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
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
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
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
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
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
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
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.
Changes by Michael Foord :
--
___
Python tracker
<http://bugs.python.org/issue9174>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/m
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.
Changes by Michael Foord :
--
nosy: -michael.foord
___
Python tracker
<http://bugs.python.org/issue7616>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
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
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
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
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
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
Changes by Michael Kopinsky :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue5817>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
_
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
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
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
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
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
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
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
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
Changes by Michael Foord :
--
resolution: -> duplicate
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/
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
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
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
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
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
2401 - 2500 of 3041 matches
Mail list logo