Michael Foord added the comment:
I have no objection to a rename that adds a leading underscore.
--
___
Python tracker
<http://bugs.python.org/issue10
Changes by Michael Foord :
--
nosy: -michael.foord
___
Python tracker
<http://bugs.python.org/issue10859>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Michael Mulich :
Found an issue where the metadata initialization of .egg-info dirs (an
EggInfoDistribution object) overrides the 'path' variable, which makes it
impossible to find a distributions requirements.
I've fixed the issue at
https://bitbu
Michael Foord added the comment:
This looks good Ned. My main concern is that we make it clear from the
*Download* page that users who want IDLE to "just work" (even on 10.6) they
should install the 32 bit version.
Noting that Activestate Tcl/Tk 8.5 is a *requirement* for Tkinter
Michael Foord added the comment:
For what it's worth I prefer Raymond's original wording. Installing the
Activestate Tcl/Tk will never be a *bad* thing to do for using Python, so I
don't see a problem with stating it as a requirement. Users are unlikely to see
the current wa
Michael Foord added the comment:
There are a few issues here.
X11 is not installed by *default* on Mac OS X (it is supplied separately) so it
doesn't provide an "out of the box" solution.
Starting IDLE as 32bit alone doesn't solve the problem as it launches a
subpro
Changes by Michael Foord :
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.python.org/issue10979>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Foord added the comment:
There was a BDFL ruling on python-dev mailing list that assert argument names
should be (first, second).
See:
http://mail.python.org/pipermail/python-dev/2010-December/106954.html
I'm basically reverting the patch to go back to (first, second) in the
Michael Foord added the comment:
Note that I looked at making the sequence comparison code symmetric - but it
generates nice diffs for even nested containers by using prettyprint and
difflib. Switching to a symmetric output ("in first, not in second" etc) would
be very difficu
Michael Foord added the comment:
Activestate has said (replying to me on Twitter as it happens) that a patch is
available and they will do a new 8.5 release before 3.2 final.
--
___
Python tracker
<http://bugs.python.org/issue10
Michael Foord added the comment:
Ronald: The subprocess also uses Tkinter (right?) so would also require 32bit.
FWIW I'm -1 on X11 as well.
--
___
Python tracker
<http://bugs.python.org/is
Michael Foord added the comment:
The reason I think it is an issue is that a previous release of Python 2.7
could start IDLE (the initial window would appear), but a dialog would also
appear saying that it could not connect to the subprocess and IDLE would exit.
IDLE itself had been set to
Michael Foord added the comment:
Patch to docs and minor change to assertCountEqual to not use actual / expected
internally.
--
Added file: http://bugs.python.org/file20580/expected-actual.diff
___
Python tracker
<http://bugs.python.org/issue10
Changes by Michael Foord :
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
New submission from Michael Foord :
Looks like some unittest doc changes got incorrectly backported to Python 3.1.
For example the command line features using -m are new in 3.2 and don't work
with 3.1:
http://docs.python.org/py3k/library/unittest.html#command-line-inte
Michael Foord added the comment:
This incorrect section on unittest command line features was added by Eric
according to svn blame.
--
nosy: +eric.araujo
___
Python tracker
<http://bugs.python.org/issue11
Michael Foord added the comment:
The fix is to use dict methods rather than accessing members through the
instance. It will have to wait until 3.2 is out now though.
--
___
Python tracker
<http://bugs.python.org/issue11
Changes by Michael Foord :
--
assignee: -> michael.foord
___
Python tracker
<http://bugs.python.org/issue11133>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Michael Haubenwallner :
--
nosy: +haubi
___
Python tracker
<http://bugs.python.org/issue7719>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michael Foord added the comment:
Care to provide a patch Noufal?
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue11151>
___
___
Python-bug
Michael Haubenwallner added the comment:
Sébastien, why did you need to add '-L$(srcdir)' to BLDSHARED in these patches?
As LDLIBRARY points to the immediate file 'libpython$(VERSION).so' instead of
'-lpython$(VERSION)', I don't see the need for '-L$(s
New submission from Michael Grazebrook :
This code fragment from the documentation of iter() doesn't work as intended.
Change "STOP" to "STOP\n". Maybe also check for EOF as it hangs.
with open("mydata.txt") as fp:
for line in iter(fp.readline, "STOP
New submission from Michael Haubenwallner :
Spotted in issue#941346 msg#128214, the "-L$(srcdir)" should be removed from
BLDSHARED on AIX:
The problem is that '-L$(srcdir)' adds '$(srcdir)' to the runpath too (as there
is no '-blibpath' argument), ope
New submission from Michael Foord :
Reported by a user and verified by me with both Python 2.7 and 3.2.
Trying to run tests by module or package name seems to fail.
directory structure:
project root: C:\Users\hpierson\Projects\pytest
\test
__init__.py (empty
Michael Strein added the comment:
Do we know the status of this issue? Have not seen update in four months.
Currently is a major headache on my linux box.
--
nosy: +mgstrein
___
Python tracker
<http://bugs.python.org/issue1
Michael Haubenwallner added the comment:
> You can remove -L\$(srcdir) on this line, but then you need to specify > the
> full path to Modules/python.exp. See patch below:
Interesting, didn't experience this to be necessary with Python-2.7.1 here...
Maybe because I do an i
Michael Foord added the comment:
__dict__ as a property is documented as an exception to the "no code execution"
claim.
The patch is not sufficient - instances may have a class member "__dict__"
whilst still having an instance __dict__. Alternatively the "__dict__&q
Michael Schurter added the comment:
Any hopes of getting this into Python 3.3?
--
nosy: +schmichael
versions: +Python 3.3 -Python 2.7
___
Python tracker
<http://bugs.python.org/issue8
New submission from Michael Lang <[EMAIL PROTECTED]>:
Hi,
i am trying to solve some problems we encounter, when locking files on a
NFS Storage using fcntl.
since this is a security related problem i just add some pseudo code
here that was used to create the problem
fh = os.open(
New submission from Michael Magin <[EMAIL PROTECTED]>:
Built-in file objects allow repeated calls to .close(), even the
documentation states, "Calling close() more than once is allowed."
(http://docs.python.org/lib/bltin-file-objects.html)
GzipFile does not obey this as
New submission from Michael Yang <[EMAIL PROTECTED]>:
>>> help()
help> modules os
Here is a list of matching modules. Enter any module name to get more help.
posix - This module provides access to operating system
...
stringprep - Library that exposes various tables found in
New submission from Michael Abbott <[EMAIL PROTECTED]>:
The (undocumented!) API for PyOS_InputHook has two defects which are
addressed in the attached patch (at least when using the readline
module): firstly the called hook currently has to guess that input will
come on descriptor 0; se
New submission from Michael Schreifels <[EMAIL PROTECTED]>:
The second paragraph of the UserDict module documentation begins with this:
"This also module defines a class..."
which should be:
"This module also defines a class..."
(See http://docs.python.or
Michael Hudson <[EMAIL PROTECTED]> added the comment:
Another 3 and a bit years on I still think my comment
http://bugs.python.org/msg14169 is the crux of the issue. It's even
relevant to your class object(object): pass hack!
I'm not at all likely to work on this any
New submission from Michael Yang <[EMAIL PROTECTED]>:
# pickle.dumps is not able to process an instance of
# a class that inherits from 'dict' and
# overrides the built-in __getattribute__ method
# but can successfully process one that
# overrides the__getattr__ method
>&
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
This still happens with Python 2.6b3, 3.0b3 and 2.5.2 and Sun Studio 12
on Solaris Sparc.
Like mentioned in Issue1162001, the problem seems to be, that cc returns
0 if -OPT:Olimit=0 is used:
--($ ~)-- cc -OPT:Olimit=0 test1.c; echo
Changes by Michael Schmarck <[EMAIL PROTECTED]>:
--
versions: +Python 2.4, Python 2.6, Python 3.0
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.
New submission from Michael Schmarck <[EMAIL PROTECTED]>:
While compiling Python 2.5.2, I stumbled upon this:
cc -G -R/export/home/webservd/.software/Python-2.5.2/lib
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o
build/temp.solari
New submission from Michael Schmarck <[EMAIL PROTECTED]>:
Compilation of ctypes fails:
cc -G
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
This does not happen when I use GCC to build Python.
--($ ~/Source/gccPy/Python-2.5.2)-- /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/sfw10/builds/build/sfw10-patch/usr/s
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
It works fine in 2.6b3, however (I only tested Sun Studio 12).
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
New submission from Michael Schmarck <[EMAIL PROTECTED]>:
I'm trying to compile Python 2.6b3 using Sun Studio 12 on a Solaris 10
sparc system. It fails.
[...]
*** WARNING: renaming "_curses" since importing it failed: ld.so.1:
python: fatal: relocation error: file
build/l
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
Yes, the multiprocessing problem has been fixed by the patch in Issue3110.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
It's a warning.
Added file: http://bugs.python.org/file11419/config.log
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
Attaching a log of the complete build process of Python 2.5.2.
Added file: http://bugs.python.org/file11420/build-Python-2.5.2.log
___
Python tracker <[EMAIL PROTECTED]>
<http://
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
I filed that as a bug against Python 2.6, because in 2.5.2, the curses
modules could be built just fine.
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Michael Schmarck <[EMAIL PROTECTED]> added the comment:
Yes, I would _like_ to do that, but I fear that I lack the necessary
skills...
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Michael Shields <[EMAIL PROTECTED]>:
--
nosy: +shields
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue3959>
___
__
Michael Mysinger <[EMAIL PROTECTED]> added the comment:
Just an FYI that I had an error in test_distutils that this patch fixed.
I was not doing anything abnormal. Just building from the 2.6 source
distribution, making a arch specific sub-directory, using ../configure,
make, and then mak
New submission from Michael Foord :
When building releases with sdist (and other distribution building options)
missing metadata should not cause warnings. For public projects this is useful
(i.e. projects uploaded to PyPI), but not for internally built distributions.
(If a distribution is
New submission from Michael Haubenwallner :
In Modules/ld_so_aix there is `which $CC` to search for the full compiler's
path.
Unfortunately, /usr/bin/which on AIX is a csh-script and thus ~/.cshrc gets
sourced before doing the path search.
Now, when the user does set some PATH in ~/.
Michael Haubenwallner added the comment:
Uhm, as I read the patch again, there's room for improvement of pywhich():
it likely fails with CC=/full/path/to/cc
--
___
Python tracker
<http://bugs.python.org/i
New submission from Michael Smith :
Python tracker wrote:
> To complete your registration of the user "msm...@cbnco.com" with
> Python tracker, please do one of the following:
>
> - send a reply to rep...@bugs.python.org and maintain the subject line as is
> (the
>
New submission from Michael Smith :
I've built Python 2.6.2 with a prefix of "" for an embedded system, so it's
installed into /bin/python, /lib/python2.6/, etc.
If I run a script with "python /tmp/script.py" or by putting in a #!/bin/python
and executing it dir
New submission from Michael Newman :
Telnet.interact() is failing on Python 3.1.1 Windows, but works fine on Python
2.6.4 Windows and also works on Python 3.1.1 Linux. See 3 examples below:
--- Test #1 (fails): Telnet.interact on Python 3.1.1 Windows ---
Python 3.1.1 (r311:74483, Aug 17 2009
Michael Smith added the comment:
Yes, that does look related. The fix from Issue1676135 seems to handle
--prefix="/" properly, and from what I can tell PREFIX does get set to "/".
There is also code in getpath.c to set sys.prefix to "/" if it's "
Michael Foord added the comment:
skip* functions are missing 'new in' documentation. These need to be correct
for 2.7 and 3.1 / 3.2 as well.
Plus the example of assertRaises as a context manager sucks.
http://docs.python.org/dev/library/unittest.html#unittest.TestCase.as
Michael Foord added the comment:
Yes. The standard tests should be wrapped in a suite before being passed into
load_tests. That's a bug - thanks for catching it.
--
assignee: -> michael.foord
nosy: +michael.foord
___
Python tracke
Michael Foord added the comment:
The list in your example is a *class attribute* not an instance attribute, so
yes it is only initialised once. You can still access it through the instance
(self) because of Python member lookup rules.
If you want one list per instance then initialise it in
New submission from Michael Newman :
In Section 20.23.3 Binary Objects of:
http://docs.python.org/3.1/library/xmlrpc.client.html
The server AND client examples fail because the read and write methods are not
set to binary mode.
Example of what the client portion shows if you use the examples
Michael Foord added the comment:
Because strings are immutable. Your list access (self.list.append) mutates the
existing list in place.
Because strings are immutable you += is exactly equivalent to the following
code:
self.string = self.string + str(i)
The first lookup of self.string
New submission from Michael Newman :
Following the example in Section 20.23.5. ProtocolError Objects of:
http://docs.python.org/3.1/library/xmlrpc.client.html
It implies that an invalid URL will give raise an xmlrpc.client.ProtocolError.
Instead I'm getting a socket.gaierror instead. (I
New submission from Michael Newman :
In "20.24.1.1. SimpleXMLRPCServer Example":
http://docs.python.org/3.1/library/xmlrpc.server.html
The client portion of the example uses "mul", which does not exist in the
server portion. The easiest fix to change the client to use &q
Michael Foord added the comment:
Damn. If assertSameElements has already shipped with the existing
implementation then we can't change it. The documentation really needs
clarifying to make it clear that it ignores duplicates.
I would be happy with a 'check_order
Changes by Michael Foord :
--
assignee: -> ezio.melotti
___
Python tracker
<http://bugs.python.org/issue7837>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Foord added the comment:
Hmm... assertTrue(...) is semantically different from assertEqual(True, ...).
--
___
Python tracker
<http://bugs.python.org/issue7
Michael Foord added the comment:
Dino - if you use assertRaises as a context manager the exception is kept as an
attribute on the context. You can make assertions about the exception after the
with block has executed.
--
___
Python tracker
<h
Michael Foord added the comment:
assertSameElements doc issue fixed in revision 77997. Also improved example for
assertRaises as a context manager and added versionadded to the test skipping
section. Revisions 77999-78002.
Thanks for sorting the version changed / added in the Py3k docs Ezio
Michael Foord added the comment:
What made you think that would work? In your example foo.test_suite is neither
a test nor a suite but a function.
--
___
Python tracker
<http://bugs.python.org/issue7
Michael Foord added the comment:
The problem this fix was trying to fix was that if you provide a docstring for
your test then the test name is ommitted in the report.
This could be fixed in the _TextTestResult instead - changing the
getDescription() method to always include str(test
Michael Foord added the comment:
So it's a feature request then...
--
___
Python tracker
<http://bugs.python.org/issue7501>
___
___
Python-bugs-list m
Michael Foord added the comment:
Fixed in revision 78010.
--
resolution: -> fixed
stage: test needed -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
My suggestion is that test discovery should first try the argument as a
directory. If that fails try it as a dotted name by importing it. If the import
succeeds discovery can start from the directory containing the imported package.
If a module rather than a
Changes by Michael Foord :
--
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue7588>
___
___
Python-bugs-list mailing list
Unsubscribe:
Michael Foord added the comment:
Wasn't the description of Python's semantics being 'pass by value where the
value is a reference' actually very controversial indeed? Do you have a link to
the discussion on c.l.p?
--
Michael Foord added the comment:
Over 122 messages so I'm not going to search exhaustively. In this part of the
thread you can see Fredrik Lundh and Aahz disputing
"call-by-value-where-the-value-is-a-reference" as a useful way of describing
Python calling se
Michael Foord added the comment:
Duplicate of issue 7559.
--
resolution: -> duplicate
stage: test needed -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
Just use the context manager and the exception is available as exc_value.
--
nosy: +michael.foord
resolution: -> rejected
stage: needs patch -> committed/rejected
status: open -> closed
___
Python track
Changes by Michael Foord :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue7859>
___
___
Python-bugs-list mailing list
Unsubscri
Michael Foord added the comment:
Is this needed as well as the load_tests protocol?
If a test module defines a load_tests function that returns a test suite then
the following creates the test suite from load_tests and executes that:
python -m unittest modulename
I don't think we n
Michael Foord added the comment:
Revision 78116.
--
resolution: -> accepted
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
Does this need committing? Dino - do you have checkin rights?
--
___
Python tracker
<http://bugs.python.org/issue7855>
___
___
Michael Foord added the comment:
Well, probably better for you to get the commit bit and DIY then. :-)
--
___
Python tracker
<http://bugs.python.org/issue7
New submission from Michael Newman :
In the turtle module documentation:
http://docs.python.org/3.1/library/turtle.html
http://docs.python.org/py3k/library/turtle.html
Currently it says "Deprecated since Python 3.1" under the "turtle.tiltangle"
section.
Michael Foord added the comment:
If we aren't going to fix it, should we document the limitation?
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/i
New submission from Michael Foord :
A common way to extend unittest is to implement a custom TestResult. Currently
you have to subclass TextTestRunner, overriding _makeResult, to get it to use
an alternative result class.
I suggest adding an additional, optional, argument to TextTestRunner to
Changes by Michael Foord :
--
assignee: -> michael.foord
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue7897>
___
___
Python-bugs-lis
New submission from Michael Foord :
test_posix fails on trunk on Mac OS X (Snow Leopard)
test.test_support.TestFailed: Traceback (most recent call last):
File "Lib/test/test_posix.py", line 42, in testNoArgFunctions
posix_func()
OSError: [Errno 22] Invalid argument
Python 2.7
Michael Foord added the comment:
Fixed revision 78130.
--
resolution: -> accepted
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
Fixed revision 78130.
--
resolution: -> accepted
stage: needs patch -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
Use load_tests instead.
--
resolution: -> rejected
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Michael Foord added the comment:
With paramterized tests *all* the tests are run and *all* failures reported.
With testing in a loop the tests stop at the first failure.
--
___
Python tracker
<http://bugs.python.org/issue7
Michael Foord added the comment:
By the way - I have no opinion on whether or not using yield is the right way
to support parameterized tests. It may be better for the test method to take
arguments, and be decorated as a parameterized test, with the decorator
providing the parameters. When I
Michael Foord added the comment:
Antoine: the failure message would include a repr of the parameters used in the
particular test that failed. So you can tell which test failed and with what
parameters.
--
___
Python tracker
<h
Changes by Michael Foord :
--
assignee: michael.foord
keywords: easy
nosy: michael.foord
severity: normal
stage: needs patch
status: open
title: unittest.TestCase.longMessage should default to True in Python 3.2
versions: Python 3.2
___
Python
Michael Foord added the comment:
I still see it on trunk (revision 78165). No idea what the (dot 1) means.
--
___
Python tracker
<http://bugs.python.org/issue7
New submission from Michael Newman :
I found that pydoc.stripid doesn't strip the ID in Python 2.5, 2.6, and 3.1. I
assume the problem is probably present in 2.7 and 3.2/dev.
For a little history, see this older issue back for Python 2.3:
http://bugs.python.org/issue934282
The foll
New submission from Michael Newman :
The attached example unit test file shows that assertDictContainsSubset cannot
handle error messages that need to show integer keys. Below is the output of
the test suite, where "test_mixed_keys_fail" has an error (code mistake), while
"test
Michael Foord added the comment:
Thanks for reporting this.
I can fix this particular error easily by repr'ing the keys. In the process
I've found another fun way of killing this assert method:
one = ''.join(chr(i) for i in range(255))
two = u'\uFF
New submission from Michael Newman :
test.support.captured_output is not covered in the online documents:
http://docs.python.org/3.1/library/test.html
http://docs.python.org/dev/py3k/library/test.html
However, it does have a docstring in "C:\Python31\Lib\test\support.py" (see
b
401 - 500 of 3015 matches
Mail list logo