Re: Problems Generating HTML With pydoc

2008-02-28 Thread Juha S.
Ron DuPlain wrote: > I also expected "pydoc -w mypackage" to recursively generate html for > the whole package, but it only wrote the top-level file for me as well > (on Linux, for the record) > > I use the workaround: > pydoc -w ./ > > This runs "pydoc -w" on all Python files in the current dir

Problems Generating HTML With pydoc

2008-02-26 Thread Juha S.
Hi, I'm trying to generate HTML docs for a Python package (directory) currently containing an empty __init__.py and a Module.py file with some classes and docstrings. I tried using the command "F:\path\to\project\pydoc.py -w myPackage" at the Vista command prompt, and I get "wrote myPackage.ht

Re: Coverage.py reporting and UML tools - what exists already?

2008-02-14 Thread Juha S.
Ricardo Aráoz wrote: > J Peyret wrote: > >> I got coverage.py to work after somewhat of a difficult start... >> >> Hint: if moving your code from Windows to Linux and if running >> 'coverage.py -r mymodule.py' causes SyntaxError/SyntaxException, the >> 'flip' utility is your friend to deal with

Re: No Module Named pstats

2008-02-13 Thread Juha S.
2008/2/13, Juha S. <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: > > Hi, > > I'm trying to use the Python profilers to test my code, but I get the > following output for cProfile.run() at the interpreter: > > Traceback (most recent c

No Module Named pstats

2008-02-13 Thread Juha S.
Hi, I'm trying to use the Python profilers to test my code, but I get the following output for cProfile.run() at the interpreter: Traceback (most recent call last): File "", line 1, in File "/usr/lib/python2.5/cProfile.py", line 36, in run result = prof.print_stats(sort) File "/usr/li

Re: Weird AttributeError With Imports

2007-10-28 Thread Juha S.
Peter Otten wrote: > Juha S. wrote: > > >> I'm getting a "AttributeError: 'module' object has no attribute 'clock'" >> when importing a module from within two packages related to the line: >> "self.lastTime = time.cl

Weird AttributeError With Imports

2007-10-28 Thread Juha S.
I'm getting a "AttributeError: 'module' object has no attribute 'clock'" when importing a module from within two packages related to the line: "self.lastTime = time.clock()" in the __init__() of the class Time in the target module. The module (mytime.py) sits in a package hierarchy such as the

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-14 Thread Juha S.
[EMAIL PROTECTED] wrote: > As a noob I've struggled a bit, but basically what I've come up with > is => if the information is strings and especially strings stored in > any style of list/dict, it takes a loop to write the lines to file > myfile[ i ] + '\n' to keep each line for Python I/O purposes.

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
;t work in the output file which still loses the newlines. Janne Tuukkanen wrote: > Sat, 13 Oct 2007 16:13:21 +0300, Juha S. kirjoitti: > > >> Thanks for the reply. I made changes to my code according to your >> example. Now any Scandinavian characters that are outputted b

Re: Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
inally: file.close() return ret Also, the newlines are still lost when saving the text widget contents to a file. I'm inserting the program generated text to the text widget through "text.insert(END, txt + u'\n\n')". Janne Tuukkanen wrote: &

Foreign Character Problems In Python 2.5 and Tkinter

2007-10-13 Thread Juha S.
Hi, I'm writing a small text editor type application with Python 2.5 and Tkinter. I'm using the Tk text widget for input and output, and the problem is that when I try to save its contents to a .txt file, any Scandinavian letters such as "äöå ÄÖÅ" are saved incorrectly and show up as a mess wh