New submission from Floris Bruynooghe :
Hi,
When compiling using gcc and -Werror=switch-enum the compilation fails, e.g.
while compiling an extension module:
In file included from /usr/include/python3.2mu/Python.h:52:0,
from src/util.c:27:
/usr/include/python3.2mu/pyatomic.h
Floris Bruynooghe added the comment:
Apologies for not attaching a patch, I thought it was pretty trivial. Attached
it now.
--
keywords: +patch
Added file: http://bugs.python.org/file23616/pyatomic.diff
___
Python tracker
<http://bugs.python.
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue1975>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Floris Bruynooghe :
It would be nice if the SysLogHandler also accepted an "ident" parameter in
line with the syslog.openlog() function. This simply prepends the string
passed in as "ident" to each log message which currently needs to be
implement
Changes by Floris Bruynooghe :
--
nosy: +vinay.sajip
___
Python tracker
<http://bugs.python.org/issue12419>
___
___
Python-bugs-list mailing list
Unsubscribe:
Floris Bruynooghe added the comment:
That was quick, thanks!
--
___
Python tracker
<http://bugs.python.org/issue12419>
___
___
Python-bugs-list mailing list
Unsub
New submission from Floris Bruynooghe :
The description of how to best use exceptions is slightly confusing and led me
to believe there was an issue when using open() as a context manager. The main
issue is that the wording seems to suggest the example above it is the best and
not the very
New submission from Floris Bruynooghe :
It would have saved me a lot of time if msvc9compiler would fail if executing
the vsvarsall.bat file produced any output. The attached patch does this and
fails when I try to compile from within a cygwin environment. I've also tested
this fro
Floris Bruynooghe added the comment:
I'm aware of that but my limited testing showed that in this case that doesn't
happen.
However if this is considered too brittle to just plain fail as soon as there's
stderr, how about using distutils' log facility to log the stderr at
Floris Bruynooghe added the comment:
msvc9_log.diff does log stderr at warning level when it occurs.
--
Added file: http://bugs.python.org/file18961/msvc9_log.diff
___
Python tracker
<http://bugs.python.org/issue9
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue3526>
___
___
Python-bugs-list mailing list
Unsubscribe:
Floris Bruynooghe added the comment:
> > So by using dlmalloc on SunOS and AIX you would get the same level
> > of performance for memory operations that you already probably can
> > appreciate on Linux systems.
>
> Yes, but with the above "trick", you can do
Floris Bruynooghe added the comment:
On 29 April 2011 17:16, Antoine Pitrou wrote:
>
> Antoine Pitrou added the comment:
>
>> Yes, I was probably not clear:
>> When --with-dlmalloc is activated, PyMem_MALLOC/PyMem_Malloc will call
>> dlmalloc, PyMem_REALLOC/PyMem_
Floris Bruynooghe added the comment:
There are actually a few implementations on pypi, just search for
prctl. At least one of them is pretty decent IIRC but I can't
remember which one I looked at in detail before. Anyway, they would
certainly be a reasonable starting point for p
New submission from Floris Bruynooghe :
This patch adds the ability to suppress large diffs in the failure message of
TestCase.assertSequenceEqual(). The maximum size of the diff is customisable
as an new keyword parameter with hopefully a sensible default.
--
components: Library
New submission from Floris Bruynooghe:
The msilib documentation mentions that read support of MSI files is
supported, however the actual methods on the Record class for it are
missing. This patch wraps two more functions from the MSI API to the
record class, enabling to read integers and
Floris Bruynooghe <[EMAIL PROTECTED]> added the comment:
Hi, I'd like to confirm that Skip's last patch fixes the issue. Hope it
gets included soon!
Thanks
--
nosy: +flub
___
Python tracker <[EMAIL PROTECTED]>
<http://
New submission from Floris Bruynooghe :
When compiling with -Wredundant-decls gcc spots a redundant declaration:
f...@laurie:sandbox$ cat test.c
#include
#include
int main(void)
{
printf("hello\n");
return 0;
}
f...@laurie:sandbox$ gcc -I /usr/local/include
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue4908>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Floris Bruynooghe :
When specifying an RPATH with -rpath or -R you can use the special
tokens `$LIB' and `$ORIGIN' which the runtime linker interprets as
"normal search path" and "relative to current sofile" respectively. To
get these correct
Floris Bruynooghe added the comment:
I think the part which could possibly a problem is addressed in
http://hg.python.org/cpython/rev/384f73a104e9/. Bearing in mind that direct
usage for string interpolation is a pretty strange use for the result of
getaddrinfo.
--
nosy: +flub
Floris Bruynooghe added the comment:
Attached in a patch for this, I've also changed the version to 3.4 since this
is a feature and therefore probably too late to go in 3.3. Please let me know
if anything is inadequate.
--
keywords: +patch
versions: +Python 3.4 -Python 3.3
Floris Bruynooghe added the comment:
Hi, I think this is a usage error and if not you should try to provide a test
case with both files for this.
Pickle needs to be able to import the module which contains the classes by the
same name as the original module. That means pickling an instance
Floris Bruynooghe added the comment:
Running on Solaris 10 (T1000, OpenCSW toolchain, gcc 4.6.3) I also get a bus
error, with added coredump:
$ ./python Lib/test/regrtest.py
== CPython 3.3.0b1 (default:67a994d5657d, Aug 8 2012, 21:43:48) [GCC 4.6.3]
== Solaris-2.10-sun4v-sparc-32bit big
Floris Bruynooghe added the comment:
I compiled with a simple "./configure" which I think is what you mean (it
defaults to -O3). But when executing your test it doesn't give a bus error.
--
___
Python tracker
<http://bugs.pyt
Floris Bruynooghe added the comment:
I think I can confirm this fixes the BusError. The test suite got past
test_capi on my machine as well. Unfortunately I killed the ssh session by
accident before the testsuite completed so I had to restart it
Floris Bruynooghe added the comment:
I can now confirm the whole testsuite runs, so the BusError part seems fixed on
my host:
329 tests OK.
7 tests failed:
test_cmd_line test_exceptions test_ipaddress test_os test_raise
test_socket test_traceback
1 test altered the execution
New submission from Floris Bruynooghe:
The SPARC Solaris 10 OpenCSW 3.x builder fails with
==
FAIL: test_create_connection (test.test_socket.NetworkConnectionNoServer
Floris Bruynooghe added the comment:
It was my understanding that this is what the AI_ADDRCONFIG flag is
for, if you don't use it you have no such guarantee.
--
___
Python tracker
<http://bugs.python.org/is
Floris Bruynooghe added the comment:
I think this is influenced by what you have in /etc/hosts. On my
laptop I also have IPv6 loopback as well as an IPv6 link-local on
eth0. But I have both 127.0.0.1 and ::1 in /etc/hosts as locahost.
With that configuration I get the same getaddrinfo results
Floris Bruynooghe added the comment:
I have no issue with changing the buildhost's zone configuration if that's
the right thing to do. Just one more option. Is widening the expected errno
in the test a valid thing to do?
--
___
Python trac
New submission from Floris Bruynooghe:
This patch proposes to add out of the box support for building against OpenCSW
libraries on Solaris. It makes building all the extension modules a lot
simpler since the CSW repositories provide almost all required libaries.
The order of preference is
Floris Bruynooghe added the comment:
Oops, I've kicked the bruynooghe-solaris-csw buildslave and it should now be
building again. A bit disappointed that buildbot/twisted doesn't reconnect
automatically though.
--
___
Python trac
Floris Bruynooghe added the comment:
Turns out that the timeout is configured in the buildmaster's master.cfg which
Antoine Pitrou has kindly done. It should also run tests a bit more parallel
now which will hopefully reduce the 10h runtime a bit, but it remains a slow
box.
--
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue5672>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Floris Bruynooghe :
The documentation of the queue module (Queue in 2.x) does not mention
that the constructors have a default argument of 0 for "maxsize". The
trivial patch adds this (patch against py3k trunk).
--
assignee: georg.brandl
components: Doc
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue1785>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Floris Bruynooghe :
ld_so_aix is used to invoke the linker correctly on AIX. However when
the linking fails the script happily returns 0 and a Makefile using it
will assume all went well.
See the trivial patch attached.
--
components: Build
files: ld_so_aix.diff
New submission from Floris Bruynooghe :
The logging module in Python 2.6 has started to use the __all__ method.
However it does not list all the symbols that are described in the
documentation. Most notably the getLogger function is not in the
__all__ list, but there are others like
New submission from Floris Bruynooghe :
The build_ext command does accept a handy --rpath option to encode an
RPATH in the built extension modules. However RPATH is superseded by
RUNPATH since the former can not be overwritten by the LD_LIBRARY_PATH
environment varialbe, while the later can
Floris Bruynooghe added the comment:
The attached patch does fix this issue.
Concerning the specific example of LDFLAGS used here there is still and
issue with LDFLAGS being ignored by the buid for the shared modules, but
that is an other issue.
--
keywords: +patch
Added file: http
Floris Bruynooghe added the comment:
Hmm, the patch isn't quite right yet. When a $$ is present in the
makefile .parse_makefile() needs to return a single $. I'm not sure yet
what needs to happen with the \ for the shell escape.
--
Floris Bruynooghe added the comment:
I'm not convinced that would help much. The GNULD variable in the
makefile is for when the default linker is used. If you change that by
using LDSHARED then you're probably not going to be using --rpath but
LDFLAGS to configure it the way you
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue5941>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Floris Bruynooghe :
The cmd.Cmd module has a default complete_help() method which will
complete all existing commands (methods starting with "do_"). It would
be useful to complete all exising help topics too by default, i.e. all
methods starting with "help_&
New submission from Floris Bruynooghe :
I think it would allow for more pythonic code if the threading.Event and
multiprocessing.Event classes had the __bool__ special attribute. This
would allow doing "if e: ..." instead of "if e.is_set(): ...".
This could be backported
Floris Bruynooghe added the comment:
The updated patch inserts the single $ when needed. I've checked this
on compiling python, stdlib extension modules and custom extension
modules and this gives the correct results in all cases.
--
Added file: http://bugs.python.org/file
Floris Bruynooghe added the comment:
Oh, sorry about the super() that is why the ar test failed then. Sorry,
I got a little confused by the conflicting update on that file while
working on this patch and must have merged it badly.
--
___
Python
Changes by Floris Bruynooghe :
--
nosy: +flub
___
Python tracker
<http://bugs.python.org/issue1856>
___
___
Python-bugs-list mailing list
Unsubscribe:
Floris Bruynooghe added the comment:
Hi
What's the status of this? I haven't seen a commit message regarding this.
Cheers
--
___
Python tracker
<http://bugs.python.
New submission from Floris Bruynooghe :
http://docs.python.org/c-api/typeobj.html#number-object-structures is
missing the entry for nb_divide, this is confusing.
--
assignee: georg.brandl
components: Documentation
messages: 89664
nosy: flub, georg.brandl
severity: normal
status: open
New submission from Floris Bruynooghe :
There are redundant redeclarations for PyGetSetDescr_Type and
PyMemberDescr_Type in descrobject.h. This is an issue when compiling an
extension module with the -Wredundant-decls flag:
In file included from /usr/local/include/python3.1/Python.h:98
New submission from Floris Bruynooghe :
The unittest.TestCase class has some public attributes: failureException,
longMessage and maxDiff. They each have a description in a comment, but I
think it would be good if that description got moved into the class docstring
so that it would be found
53 matches
Mail list logo