missing collections module

2006-11-06 Thread Shea Martin
I am getting this error in a python script: File "/usr/sfw/lib/python2.3/site-packages/BTL/cache.py", line 12, in ? from collections import deque ImportError: No module named collections Where can I download the python collection module? I am no python programmer, but I can build/instal

no ptyhon curses module on solaris?

2006-11-07 Thread Shea Martin
I just installed active python, and I get this error: % python ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on Python 2.4.3 (#1, Apr 3 2006, 18:34:02) [C] on sunos5 Type "help", "copyright", "credits" or "license" for more information. >>> import curses Traceback (most recent ca

Re: no ptyhon curses module on solaris?

2006-11-07 Thread Shea Martin
Shea Martin wrote: > I just installed active python, and I get this error: > > % python > ActivePython 2.4.3 Build 11 (ActiveState Software Inc.) based on > Python 2.4.3 (#1, Apr 3 2006, 18:34:02) [C] on sunos5 > Type "help", "copyright", "

Re: Why does this code crash python?

2006-11-12 Thread Martin Blume
it immediately back to 1. I'd do: if turn == 1: turn = 0 else: turn = 1 HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Character Encodings and display of strings

2006-11-14 Thread Martin Miller
It is possible derive your own string class from the built-in one and override what 'repr' does (and make it do whatever you want). Here's an example of what I mean: # Sample # # -*- coding: iso-8859-1 -*- # Special string class to override the default # representation method. Main purpo

Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9

2006-11-16 Thread martin . laloux
which distribution of python you use ? I use the one of http://pythonmac.org/packages/py25-fat/index.html withoutproblem -- http://mail.python.org/mailman/listinfo/python-list

Re: linking errors with debug build of Python2.4.3

2006-06-04 Thread Martin Wiechert
You were right, leaving out --with-pydebug did the trick. Thanks, Martin On Sunday 28 May 2006 03:53, [EMAIL PROTECTED] wrote: > Martin Wiechert wrote: > > Hi list, > > > > I've created a fresh build of Python 2.4.3 using the following > > configuration >

Re: linking errors with debug build of Python2.4.3

2006-06-05 Thread Martin Wiechert
Nonsense! I meant leaving out --enable-shared. On Sunday 04 June 2006 16:17, Martin Wiechert wrote: > You were right, leaving out --with-pydebug did the trick. > > Thanks, Martin > > On Sunday 28 May 2006 03:53, [EMAIL PROTECTED] wrote: > > Martin Wiechert wrote: > >

Re: Where is documentation for +=

2006-06-14 Thread Martin Wiechert
http://docs.python.org/ref/augassign.html On Wednesday 14 June 2006 15:39, Marco Wahl wrote: > Hello, > > by accident I found that += exists in python. > E.g. > > >>> a = 0 > >>> a += 42 > >>> a > > 42 > > >>> a += 0.42 > >>> a > > 42.422 > > > But I can't find any documentation for +

Re: Pycrypto

2006-06-16 Thread Philippe Martin
Hi, Look at the bin2ascii module. Philippe luca72 wrote: > > Excuse me again, > If the string is not a sting but hex number how i have to proced : > > look this page: > http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html > > Regards Luca -- http://mail.python.org/mailman/listinfo

Cycles between package imports

2006-06-17 Thread Martin Blais
Hi I'm a tad confused over a problem involving cycles between packages. Assume the following sets of files:: driver.py a/__init__.py a/alice.py b/__init__.py b/bob.py Basically, two packages a and b. Driver simply imports one of the two. This is the file that gets run:: , (driv

Re: Python with Eclipse

2006-06-19 Thread Philippe Martin
Dennis Benzinger wrote: > Stan Cook wrote: >> I've been trying to use Eclipse with Python on Linux for a while and >> have noticed something odd. After running the code or debugging a few >> times, its responsiveness gets really bad. Upon checking the equivalent >> of the task manager, I find se

[Announce] haddoc and haddoc.el

2006-06-20 Thread Martin Blais
Description === Haddoc is a simple tool that allows an emacs user to search the Python HTML documentation indexes and to bring a web browser to an index term page. Motivation -- Even though I have the Python TexInfo documentation installed from my Emacs, somehow I always end up b

Re: Python with Eclipse

2006-06-20 Thread Philippe Martin
Dennis Benzinger wrote: > Philippe Martin wrote: >> Dennis Benzinger wrote: >> >>> Stan Cook wrote: >>>> I've been trying to use Eclipse with Python on Linux for a while and >>>> have noticed something odd. After running the code or debugging

Re: Cycles between package imports

2006-06-20 Thread Martin Blais
On 18 Jun 2006 05:25:14 -0700, John Roth <[EMAIL PROTECTED]> wrote: > Martin Blais wrote: > > Hi > > > > I'm a tad confused over a problem involving cycles between > > packages. > > [lengthy example snipped] > > > > > > > I don

USB and Python

2006-06-23 Thread Philippe Martin
Hi, I need to talk to a USB device (PC or other) from Python - I am not talking about mounting a file system but sharing information as you would though a TCP-IP socket layer or an RS232 interface. Is there such "low-level" module available for Windows / Linux ? Thanks, Philippe -- http://mai

Re: USB and Python

2006-06-25 Thread Philippe Martin
Many thanks, Philippe Philippe Martin wrote: > Hi, > > I need to talk to a USB device (PC or other) from Python - I am not > talking about mounting a file system but sharing information as you would > though a TCP-IP socket layer or an RS232 interface. > > Is there su

Web transaction server in Python

2006-06-28 Thread Philippe Martin
Hi, I know a bit Python as application programming, but very little as a web server. I need to get one server to accept connection requests from many devices (not all PC-Based) and then have a bi-lateral "conversation" with those devices prior to closing the connection. The said devices have at

Re: Icono en wxpython

2006-06-29 Thread Philippe Martin
Try Sourceforge. (si j'ai bien compris) Regards, Philippe Bruno Desthuilliers wrote: > Gabriel wrote: >> Hola: >> He echo un programa en wxpython. Se trata de un programa para >> desarrollos con microcontroladores como PIC's etc. en cuanto a >> transmisión RS232 se refiere. >> >> El program

No error while sending via TCP Socket

2006-06-29 Thread Martin Bürkle
Hi NG, I have writen a programm using TCP sockets. After i get the connection to another socket I cut the Ethernet cable. Then I send a message. The program doesnt raise any exception. Can somebody tell me why and give me a hint how to get an exception Thanks for your help. Martin -- http

Re: logging module question

2006-06-29 Thread Martin Jürgens
t; If i removed logging.shutdown(), it workds..what is wrong with my > function ? > thanks Why exactly do you call logging.shutdown() when you use the logging system again with further calls to logger(). As far as I see it logging.shutdown() should only be called when you're done wit

Re: Cycles between package imports

2006-06-30 Thread Martin Blais
On 6/22/06, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > "Martin Blais" <[EMAIL PROTECTED]> wrote: > > >On 18 Jun 2006 05:25:14 -0700, John Roth <[EMAIL PROTECTED]> wrote: > > > >> The ge

Matplotlib eps export

2006-07-04 Thread Martin Manns
:39 image.eps Thanks a lot in advance Martin -- http://mail.python.org/mailman/listinfo/python-list

RegEx conditional search and replace

2006-07-05 Thread Martin Evans
ased on keywords found in the text. I'm guessing this is a bit too much to ask for regex. If this is the case, I'll add some more manual Python parsing to the string, but was hoping to use it to learn more about regex. Any pointers would be appreciated. Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: RegEx conditional search and replace

2006-07-06 Thread Martin Evans
"Juho Schultz" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Martin Evans wrote: >> Sorry, yet another REGEX question. I've been struggling with trying to >> get >> a regular expression to do the following example in Python: >>

Re: Finding Return Code From GPG

2006-07-06 Thread Martin Renold
* Dennis Benzinger <[EMAIL PROTECTED]>: > Nomen Nescio wrote: > > I'm running gpg in python to verify a signature. > > But I need a way to let the python script know this. I have written a script to verify signatures using gpg some time ago, maybe this helps you: ht

Re: RegEx conditional search and replace

2006-07-06 Thread Martin Evans
"mbstevens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Thu, 06 Jul 2006 08:32:46 +0100, Martin Evans wrote: > >> "Juho Schultz" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> Martin Evan

Re: first book about python

2006-07-08 Thread Philippe Martin
I don't know, if I were the genious that made up Python I would not believe in any bible (small b) IOANNIS MANOLOUDIS wrote: > I want to learn python. > I plan to buy a book. I always find printed material more convenient than > reading on-line tutorials. > I don't know PERL or any other scri

Replace single character at given position

2006-09-19 Thread Martin Kulas
etter (faster) ways to achieve my goal? I have looked through the methods of type ``string'' but I have not found any appropriate method or function. Thanks in advance, Martin -- http://mail.python.org/mailman/listinfo/python-list

pythonol

2006-09-27 Thread John Martin
'pythonol' is a program for learning spanish. I think it's a really great program. Unfortunately it ceased to work when I moved to SuSE 10 and 10.1 . The author makes it clear on her website that she has devoted all the time she's prepared to and won't maintain it. I think it's a shame as it's a va

Re: pythonol

2006-09-28 Thread John Martin
On Wed, 27 Sep 2006 14:41:36 -0700, George Sakkis wrote: > John Martin wrote: > >> 'pythonol' is a program for learning spanish. I think it's a really gr

Re: Good script editor for Python on Mac OS 10.3

2006-11-30 Thread martin . laloux
I work with Python on mac os 10.3.9 First of all : Install a newer version of python for mac, from http://pythonmac.org/packages/ (python 2.4.4 -> http://pythonmac.org/packages/py24-fat/index.html) (python 2.5 -> http://pythonmac.org/packages/py25-fat/index.html) you have a more "standard" pyt

Re: python vs java & eclipse

2006-12-02 Thread Philippe Martin
Amir Michail wrote: > Hi, > > It seems to me that measuring productivity in a programming language > must take into account available tools and libraries. > > Eclipse for example provides such an amazing IDE for java that it is no > longer obvious to me that one would be much more productive in

Re: trees

2006-12-18 Thread Martin Manns
John Nagle wrote: >SpeedTree, of course. > > http://www.speedtree.com > >They have great downloadable demos. And how do you distribute the code in a python program? Is there a wrapper for an available static library or do I have to compile the speedtree source when running the pytho

Re: Class constant for extension

2006-12-23 Thread Martin Miller
alues, not the more complex types you are interested in, nor does it do anything to make them read only, but it might help get you started. If you find something that addresses these deficiencies, please post your findings. Best, -Martin // snippet #include "Python.h" enum M

Re: (newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-05 Thread Martin Miller
namespace[name] = self Pin('aap') # create a Pin object named 'aap' Pin('aap2') # create a Pin object named 'aap2' print aap.name print aap2.name -Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: (newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-06 Thread Martin Miller
Carl Banks wrote: > Martin Miller wrote: > > ### non-redundant example ### > > import sys > > > > class Pin: > > def __init__(self, name, namespace=None): > > self.name = name > > if namespace == None: > > # de

Re: Re:[OT] (newbie) Is there a way to prevent "name redundancy" in OOP ?

2007-01-07 Thread Martin Miller
Bruno Desthuilliers wrote: > Martin Miller a écrit : > (snip) > > > > Oh, contrair. > > I guess you mean "au contraire" ?-) > > (snip) FWIW "contrair" is how it's spelled in the Oxford English dictionary (I actually did look it up before

Re: Python cheatsheets

2007-01-07 Thread Martin Miller
isn't the right word, but you get the idea. :) Richard Gruet publishes an excellent Quick Reference in multiple formats, available from <http://rgruet.free.fr>. -Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: PDF rendering toolkit?

2007-01-07 Thread Martin Miller
's some related information about doing this in the following thread that might help get you started : > http://groups.google.com/group/comp.lang.python/browse_frm/thread/3a578c032ff72d46/c1ddf40bf738cd7f?&hl=en#c1ddf40bf738cd7f HTH, -Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: HOWTO Send a string???

2006-01-23 Thread Martin Franklin
to : http://www.amk.ca/python/howto/sockets/ You may also want to look at: http://pyro.sourceforge.net/ which gives you a pythonic solution HTH, Martin. -- http://mail.python.org/mailman/listinfo/python-list

Regular expression query

2006-02-03 Thread Martin Biddiscombe
It's probably quite simple, but what I want is a regular expression to parse strings of the form: "parameter=12ab" "parameter=12ab foo bar" "parameter='12ab'" "parameter='12ab' biz boz" "parameter="12ab"" "parameter="12ab" junk" in each case returning 12ab as a match. "parameter" is known and fix

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
[EMAIL PROTECTED] wrote: > Hi, > I'm using Python 2.3 on Windows for the first time, and am doing > something wrong in using urllib to retrieve images from urls embedded > in a csv file. If I explicitly specify a url and image name it works > fine(commented example in the code), but if I pass in

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
Martin Franklin wrote: > [EMAIL PROTECTED] wrote: >> Hi, >> I'm using Python 2.3 on Windows for the first time, and am doing >> something wrong in using urllib to retrieve images from urls embedded >> in a csv file. If I explicitly specify a url and image name it

Re: Downloading files using urllib in a for loop?

2006-02-15 Thread Martin Franklin
[EMAIL PROTECTED] wrote: > Thanks - but have printed and verified they are valid paths and > filenames. One correction to the code I listed: >theurl = imagepath[:-8] > > For some reason the values aren't being passed through > urllib.urlretrieve properly but this makes no sense to me? > A wo

Re: Little tool - but very big size... :-(

2006-02-21 Thread Martin Franklin
Durumdara wrote: > Hi ! > > I have a problem. > I have a little tool that can get data about filesystems and wrote it in > python. > > The main user asked me a GUI for this software. > > This user is needed a portable program, so I create this kind of the > software with Py2Exe. > > But it hav

Re: Little tool - but very big size... :-(

2006-02-21 Thread Martin Franklin
Durumdara wrote: > Dear Martin ! > > Thanx for it: > > setup( > options = {"py2exe": {"bundle_files": 1, # < this > help me > "compressed": 1, > &q

catching traceback.print_exc()

2006-02-23 Thread Philippe Martin
Hi, Is there a way to catch traceback.print_exc() output into a string ? Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: catching traceback.print_exc()

2006-02-23 Thread Philippe Martin
oops: """ format_exc( [limit[, file]]) This is like print_exc(limit) but returns a string instead of printing to a file. New in version 2.4. """ Philippe Martin wrote: > Hi, > > Is there a way to catch traceback.print_exc() output into a string ? >

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread Martin Franklin
Franz Steinhaeusler wrote: > Hello, I need a regularexpression, which trims trailing whitespaces. > > While with unix line endings, it works; > but not with Window (Dos) CRLF's: > import re retrailingwhitespace = re.compile('(?<=\S)[ \t]+$', re.MULTILINE) > > 1) Windows r="erewr

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-23 Thread Martin Franklin
Franz Steinhaeusler wrote: > On Thu, 23 Feb 2006 13:54:50 +0000, Martin Franklin > <[EMAIL PROTECTED]> wrote: > >>>>>> r="erewr\r\nafjdskl " >>> 'erewr\r\nafjdskl' >>> >>> 2) Unix >>>>>>

Re: pyserial

2006-02-23 Thread Philippe Martin
Hi, I never found the need to flush anything and I always use inWaiting prior to reader. A+ Philippe Mimi wrote: > Hi, > I use the pyserial to read data from a serial port. > My code is in window Xp and python 2.4. when I use Hyperteminal I can > read data without try and try again that it i

Re: editor for Python on Linux

2006-02-23 Thread Philippe Martin
Mladen Adamovic wrote: > Hi! > > I wonder which editor or IDE you can recommend me for writing Python > programs. I tried with jEdit but it isn't perfect. Eclipse + pydev -- http://mail.python.org/mailman/listinfo/python-list

Python stdout and Win 2003

2006-02-23 Thread Philippe Martin
Hi, I have a program at a customer's site that seems to have random problem which eventually come down to not being able to read/write from serial ports. I trapped all the exceptions I could think of and all of them look like this: *** (ACCESS CONTROL)Fri, 24 Feb 2

Re: Python stdout and Win 2003

2006-02-23 Thread Philippe Martin
PS: I forgot to mention that some of the "print"s are made from wxPython timer events. Philippe Philippe Martin wrote: > Hi, > > I have a program at a customer's site that seems to have random problem > which eventually come down to not being able to read/write

Re: regular expresson for Unix and Dos Lineendings wanted

2006-02-24 Thread Martin Franklin
u several ways of skinning your cat... but none of them 'worked'? I find that hard to believe... perhaps you can re-state you problem or show us your more than one line solution...(so that we might learn from it) Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter canvas size determination

2006-02-24 Thread Martin Franklin
even though the canvas was wider than that > value at display time (and also after manually resizing the window). > > To your knowledge, is there a method to determine the current dimensions? > > Thanks, > > Dean Dean, Look at the winfo_* methods of Tkinter widgets, I think the one you want is called winfo_reqheight / winfo_reqwidth or something very similar pydoc Tkinter.Canvas will sort that out Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: logging to a text widget

2006-03-02 Thread Martin Franklin
d in the write method I scroll to the latest message. Cheers Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tix Note Book

2006-03-06 Thread Martin Franklin
ight", "credits" or "license" for more information. IDLE 0.8 -- press F1 for help >>> import Tkinter >>> root=Tkinter.Tk() >>> l=Tkinter.Label(root) >>> l.pack() >>> print root.children {'10703960': } >>> HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter weirdness item count

2005-05-03 Thread Martin Franklin
; Phil, I seem to remember a thread a while ago about a 'bug' with the Tk Canvas widget keeping a reference to objects that had been deleted... Have you thought about using the 'move' method to move your lines? I think this will result in less supprises... pydoc Tkinte

Re: Does TKinter Have A Grid ?

2005-05-10 Thread Martin Franklin
re are a couple of extensions to Tk that provide a Table widget both Tk 'c' based and Tcl based. for more about this (and lots of other useful stuff!) http://tkinter.unpythonic.net/wiki/Widgets It mentions two Table widgets, Tktable and tablelist both have python (tkinter) w

Re: TAKE_FOCUS

2005-05-12 Thread Martin Franklin
s for Tkinter you will need the one of the focus_* methods $pydoc Tkinter | focus_set(self) | Direct input focus to this widget. | | If the application currently does not have the focus | this widget will get the focus if the applicati

Re: tkinter puzzler

2005-05-12 Thread Martin Franklin
tkinter whiz and this stuff is > pretty confusing. I did come up with an ugly workaround that I'll > spare you the agony of seeing, but there should be a natural way to do > this. > > Thanks for any advice. Sorry to say Paul but you may have to show us that ugly code!

Re: Cascading menus with Tk

2005-05-20 Thread Martin Franklin
leDialog) > filemenu.add_separator() > filemenu.add_command(label="Exit", command = mainWindow.destroy) > > helpmenu = Menu(menubar) > menubar.add_cascade(label="Help", menu=helpmenu) > helpmenu.add_command(label="Online Help") > helpmenu.add_command(label="Help on the web") > helpmenu.add_separator() > helpmenu.add_command(label="About...", command = openAboutBox) > > Any ideas?? > > Miki Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Has ComboBox ctrl in Tkinter?

2005-05-26 Thread Martin Franklin
several pure-Tk implementations http://wiki.tcl.tk/combobox >, including Bryan Oakley's > popular one, all of which can be used directly from > Tkinter. > not to mention pure python implementations :-) http://pmw.sourceforge.net/ Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: running tkinter

2005-06-01 Thread Martin Franklin
s root) and all will be well:- yum install tkinter Cheers, Martin. -- http://mail.python.org/mailman/listinfo/python-list

Re: SFTP

2005-06-03 Thread Martin Franklin
know) both of these come with simple to follow examples... Martin. -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTP help please

2005-06-07 Thread Martin Franklin
ver.set_debuglevel(3) fromaddr = "[EMAIL PROTECTED]" toaddrs = ["[EMAIL PROTECTED]", "[EMAIL PROTECTED]"] msg = """Subject: Hi I'm great Thats right I really am """ server.sendmail(fromaddr, toaddrs, msg) server.quit() HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: SMTP help please

2005-06-07 Thread Martin Franklin
Tim Williams wrote: > - Original Message - > From: "Tim Williams" <[EMAIL PROTECTED]> > >>try: >>s.close() >>except >>pass > > > Typo!! > > That should be s.quit() not s.close() > > :) > > > > and perhaps put into a finally: Mart -- http://mail.python.org/mailma

Re: separate IE instances?

2005-06-07 Thread Martin Franklin
Chris Curvey wrote: > Bummer. No change at all. (In fact, I can't even call Navigate() > without throwing an error). I'm on win2k, if that makes any difference. > I could be way off, but isn't windows one of those OS's that doesn't allow you to have two instances of IEXPORE.EXE running IOW th

Problem in generated files with makepy and Microsoft ADO

2005-06-10 Thread Martin Stettner
fectly correct to me. I cannot see any error in the code. As I would like to deploy my application without having my customer to edit this line manually I would appreciate any hint (compiler bug? Bug in the ADO type library?)! Thanks in advance Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem in generated files with makepy and Microsoft ADO

2005-06-10 Thread Martin Stettner
"Martin Stettner" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Hi, > > when trying to generate the wrapper classes for Microsofts ADO Library > [bigsnip...] > Martin Ok, I found some references to similar bugs at http://www.python.org/sf/11

Re: SMTP Test Rig ( SMTPRIG.PY v1.0 )

2005-06-10 Thread Martin Franklin
general public use? > > TIA > > Tim > Python cookbook perhaps? http://aspn.activestate.com/ASPN/Python/Cookbook/ Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter question

2005-06-14 Thread Martin Franklin
[EMAIL PROTECTED] wrote: > I'm sure there must be a way to do this, but I can't figure it out for > the life of me… I'm writing a program where I would like to use a > button's text field as part of an if statement. I set up my button like > this: > > i = [ "7", "8","9", "/", "4", "5", "6", "*

Re: Tkinter question

2005-06-15 Thread Martin Franklin
I realise I was a bit short on advice earlier... Martin Franklin wrote: > [EMAIL PROTECTED] wrote: > >>I'm sure there must be a way to do this, but I can't figure it out for >>the life of me… I'm writing a program where I would like to use a >>button

Re: Tkinter Question

2005-06-16 Thread Martin Franklin
Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > >>Thanks for all the help guys... I'm a bit confused as to the inner >>workings of the Tkinter system (I'm both a Python and a GUI n00b). I was >>hoping that by slapping the x on button python was doing some cool >>dynamic variable creation (i.e

Re: Encoding problem with web application (Paste+Mako)

2007-06-06 Thread Martin Skou
t;templ.mako", input_encoding="iso-8859-2", > output_encoding="iso-8859-2") > content = t.render(**context) > > -- > HTH, > Rob > Thanks Rob Using: t=Template(content,input_encoding="utf-8", output_encoding="utf-8")

Re: Need a Little Help on Tkinter and Python

2007-06-06 Thread Martin Blume
x27;Reilly is excellent. If you are into scientific programming, the book "Python Scripting for Computational Science" by Hans Petter Langtangen from Springer is useful. HTH Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Internationalised email subjects

2007-06-20 Thread Martin Skou
From: http://docs.python.org/lib/module-email.header.html >>> from email.message import Message >>> from email.header import Header >>> msg = Message() >>> h = Header('p\xf6stal', 'iso-8859-1') >>> msg['Subject']

Re: python website

2007-06-20 Thread Martin Skou
The Daily Python-URL http://www.pythonware.com/daily/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-20 Thread Martin Gregorie
eady-wacky car with the two separate > throttles and adding, in a fit of quaint nostalgia, the need to > actually crank-start its engine. ;) > If you can't learn enough vi to get by with in half a morning you're probably well out of your depth here on comp.lang.java.programmer. O

Re: The Modernization of Emacs

2007-06-21 Thread Martin Gregorie
I'd give long odds that Windows users who use editors other than Wordpad are using the one that came with whatever IDE they've installed, simply because integrated editors are much more common in Windows-only IDEs that they are on *nixen. My guess is that this is because the standar

Re: The Modernization of Emacs

2007-06-21 Thread Martin Gregorie
Bjorn Borud wrote: > [Martin Gregorie <[EMAIL PROTECTED]>] > | > | As for documentation, lets look at vi. Not a great editor, but every > | *nix variation has it installed and any fool can learn to use it in > | about 2 hours flat and it does at least have good pattern matchi

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-23 Thread Martin Gregorie
n point that nobody has yet mentioned here is that there are four different types of user that map onto a grid: casual dedicated untrained 1 2 expert 3 4 I first ran across grid this in "Design of Man-Computer Dialogs" by James Martin and its been

Re: The Modernization of Emacs

2007-06-23 Thread Martin Gregorie
ait-mode black and white screen and a three button mouse. That was the first GUI I saw (next was an Apple Lisa in 1984). The PERQ was dead easy to use after about 5 minutes instruction. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-24 Thread Martin Gregorie
Twisted wrote: > On Jun 23, 10:36 am, Martin Gregorie <[EMAIL PROTECTED]> > wrote: > > Actually, what I prefer in (2D and 3D) visual design apps is the > ability to snap to some kind of grid/existing vertices, and to zoom in > close. Then small imprecisions in mouse

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-24 Thread Martin Gregorie
#x27;t before Win 95 appeared and they then spoilt the record by arbitrary and capricious menu changes as each version of MS Office appeared. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-25 Thread Martin Gregorie
iving up and writing .BAT files or putting up with RSI. The problem was that it recorded keystrokes and mouse clicks. Even minor changes to the screen layout made it fail and the macros couldn't be edited or parameterised nor made to prompt for filenames, etc. You can do better with Gnome,

Re: Portable general timestamp format, not 2038-limited

2007-06-25 Thread Martin Gregorie
eivers have serial interfaces. This is certainly accurate for financial transactions: the UK CHAPS inter-bank network has a Rugby MSF receiver in each bank's gateway computer and uses that for all timestamps. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-26 Thread Martin Gregorie
d with every mouse click in case it was needed to record a macro. At best it might make macro recording tedious. At worst it could make the whole GUI unresponsive. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: text-mode tree viewer?

2007-06-26 Thread Martin Skou
if i.__class__.__name__=='list': show(i,level+1) else: print '%s->%s' % ('-'*level,i) show(data,0) /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-06-26 Thread Martin Gregorie
Paul Rubin wrote: > Martin Gregorie <[EMAIL PROTECTED]> writes: >>>> pretend the leap seconds never happened, just as Java does. >>> Which leaves you about 30 seconds out by now - smelly. >> Easy solution: always read Zulu time directly from a recognized &g

Re: text-mode tree viewer?

2007-06-26 Thread Martin Skou
Torsten Bronger wrote: > > It doesn't show Paul and Mary on the same level. I (think I) solved > the problem with this: > I could do so if Poul was in a list of his own, like "Arthur" and "Clara". /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-06-26 Thread Martin Gregorie
Paul Rubin wrote: > Same one already given: http://cr.yp.to/proto/utctai.html Nope - you referenced leap seconds, not TAI and not that URL Thanks for the reference, though. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/pyt

Re: Portable general timestamp format, not 2038-limited

2007-06-26 Thread Martin Gregorie
compared afterwards the errors in the traveling clocks agreed with theory within experimental error. See: http://hyperphysics.phy-astr.gsu.edu/hbase/relativ/airtim.html for more detail. This shows the clocks don't have to be moving at interplanetary speeds to be significantly affected.

Date<->UNIX timestamp mapping (was Portable general timestamp format, not 2038-limited)

2007-06-26 Thread Martin Gregorie
Paul Rubin wrote: > Martin Gregorie <[EMAIL PROTECTED]> writes: >>> Same one already given: http://cr.yp.to/proto/utctai.html >> >> Nope - you referenced leap seconds, not TAI and not that URL > > Oh whoops, I thought I put that url further up in the thre

Re: Reversing a string

2007-06-30 Thread Martin Durkin
gt; for letter in mylist: > print letter > > However, compare the incredible difference in clarity and elegance > between that and: > >> >>> print "\n".join("spam"[::-1]) > OK, maybe I'm missing the point here as I'm new t

Re: Reversing a string

2007-07-01 Thread Martin Durkin
Duncan Booth <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Martin Durkin <[EMAIL PROTECTED]> wrote: > >>>>>> def rev(x): >>> mylist = [] >>> for char in x: >>> mylist.append(char)

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Martin Gregorie
UTC. Zulu is the international radio word for the letter Z. I've never seen Julian time used outside the world of IBM mainframes. I'd be interested to know who else uses it. -- martin@ | Martin Gregorie gregorie. | Essex, UK org | -- http://mail.python.org/mailman/listinfo/python-list

Re: Portable general timestamp format, not 2038-limited

2007-07-01 Thread Martin Gregorie
Roedy Green wrote: > On Tue, 26 Jun 2007 13:04:50 +0100, Martin Gregorie > <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted > someone who said : > >> TAI? Care to provide a reference? > > see http://mindprod.com/jgloss/tai.html > Thanks. Your list of N

<    2   3   4   5   6   7   8   9   10   11   >