[issue11171] Python 2.7.1 does not start when ./configure is used with --prefix != --exec-prefix

2011-02-10 Thread Berthold Höllmann
New submission from Berthold Höllmann h...@users.sourceforge.net: I do get (with 2.7.1): python Traceback (most recent call last): File /usr/local/gltools/python/Python-2.7/lib/python2.7/site.py, line 553, in module main() File /usr/local/gltools/python/Python-2.7/lib/python2.7

Re: GURU NEEDED : break a command into several lines and comment each line

2011-01-13 Thread Berthold Höllmann
bolega gnuist...@gmail.com writes: Basically, I have spent a few hours experimenting and searching on the comp.unix.shell how to break a command with several switches into more than one line AND to be able to put some comment on each line. #!/bin/bash -xv command \ # comment1

Re: Refcount problem in ceval.c

2008-09-11 Thread Berthold Höllmann
Christian Heimes [EMAIL PROTECTED] writes: Berthold Höllmann wrote: Is there any common reason to for such a strange object on the command stack, or is it more likely that any of my extension modules is causing havoc? It's very likely that your extension has a reference counting bug

Refcount problem in ceval.c

2008-09-10 Thread Berthold Höllmann
I have a problem with my debug Python 2.5.2 executable with Py_REF_DEBUG and Py_TRACE_REFS set. With one of my scripts I get: ... Fatal Python error: Python/ceval.c:947 object at 0x2aa3f4d840 has negative ref count -2604246222170760230 Program received signal SIGABRT, Aborted. [Switching to

[issue3469] Umlauts make conf.latex_documents fail

2008-07-31 Thread Berthold Höllmann
Berthold Höllmann [EMAIL PROTECTED] added the comment: OK, using Unicode strings in conf.py does work, so make this a Bug in sphinx-quickstart. My conf.py was generated by sphinx-quickstart, When asked for the author(s) name I gave my name and conf.py was generated with a simple string

[issue3469] Umlauts make conf.latex_documents fail

2008-07-30 Thread Berthold Höllmann
New submission from Berthold Höllmann [EMAIL PROTECTED]: For a Project of mine I have set latex_documents to something like latex_documents = [ ('index', 'doc.tex', 'Documentation', 'Berthold Höllmann', 'manual'), ] With this processing fails with: LANG=C make latex mkdir -p build/latex

Re: Moving class used in pickle

2007-05-21 Thread Berthold Höllmann
Jeffrey Barish [EMAIL PROTECTED] writes: I have a class derived from string that is used in a pickle. In the new version of my program, I moved the module containing the definition of the class. Now the unpickle fails because it doesn't find the module. I was thinking that I could make the

Decorator cllass hides docstring from doctest?

2006-09-21 Thread Berthold Höllmann
Saving the following code to a file and running the code through python does not give the expected error. disableling the @decor line leads to the expected error message. Is this a bug or an overseen feature? --- snip dectest.py --- class decor(object): def __init__(self, f): self.f

Re: Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

2005-09-28 Thread Berthold Höllmann
Peter Hansen [EMAIL PROTECTED] writes: Berthold Höllmann wrote: As I understand it, ctypes is not really a solution. The code is about data handling and FE analysis. It has not GUI component. I'm not sure how well ctypes works with Numeric arrays, but I'm sure ctypes does not work on Linux

Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

2005-09-27 Thread Berthold Höllmann
I have wrapped some inhouse libraries for Python. The development team uses VC6 and DF6.1 for development of these libraries under WinXP. I would like to wrap the libraries for Python and use the official Win Python from python.org. Now I get a segmentation fault in (access violation in

Re: Python 2.4 under WinXP, free VC71 toolkit and VC6 libraries

2005-09-27 Thread Berthold Höllmann
F. Petitjean [EMAIL PROTECTED] writes: Le Tue, 27 Sep 2005 17:48:47 +0200, Berthold Höllmann a écrit : I have wrapped some inhouse libraries for Python. How ? Directly coding C code ? Depends :-) f2py, directly coding C, SWIG. The development team uses VC6 and DF6.1 for development

Syntax error in files with with 'iso-8859-15' coding header

2005-09-21 Thread Berthold Höllmann
I have a default coding header # -*- coding: iso-8859-15 -*- in my python files. I now have Problems with this settings. I swithched to Python 2.4.1 under Windows. When I import files with the above coding header I get frequent syntax errors with files that work flawlessly under Linux. The

Re: tuple to string?

2005-07-22 Thread Berthold Höllmann
Francois De Serres [EMAIL PROTECTED] writes: hiho, what's the clean way to translate the tuple (0x73, 0x70, 0x61, 0x6D) to the string 'spam'? . t = (0x73, 0x70, 0x61, 0x6D) . ''.join('%c' % c for c in t) 'spam' -- Es gelten die Regeln der christlichen Seefahrt: Rot und Grün markiert das