Speaking Text

2008-03-19 Thread David C. Ullrich
works if there happens to be a speech engine available...) David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Speaking Text

2008-03-20 Thread David C. Ullrich
On Wed, 19 Mar 2008 07:41:29 -0500, David C. Ullrich [EMAIL PROTECTED] wrote: Mac OS X has text-to-speech built into the interface. So there must be a way to access that from the command line as well - in fact the first thing I tried worked: os.system('say hello') says 'hello

Re: Problem with complex numbers

2008-03-23 Thread David C. Ullrich
for some examples Thanks. Christian David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Homework help

2008-04-02 Thread David C. Ullrich
it should return False. For example, isAscending([1]) should evaluate to True while isAscending([1,2,2]) should return False. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython dialog - do something after ShowModal()?

2008-05-14 Thread David C. Ullrich
In article [EMAIL PROTECTED], Iain King [EMAIL PROTECTED] wrote: Hi. I have a modal dialog whcih has a Browse... button which pops up a file selector. This all works fine, but the first thing the user has to do when they open the dialog is select a file, so I would like the dialog to

sys.excepthack...

2008-05-14 Thread David C. Ullrich
write(self, text): self.buffer = self.buffer + text def Show(self): wx.MessageDialog(None, str(self.buffer), 'Error:',wx.OK).ShowModal() self.buffer = '' printer = ErrorDisplay() sys.stderr = printer sys.excepthook = hook -- David C. Ullrich -- http

indexed properties...

2008-05-14 Thread David C. Ullrich
] = C.cell[1,1], C.cell[0,0] print After C.cell[0,0], C.cell[1,1] = C.cell[1,1], C.cell[0,0]: for row in range(2): for col in range(2): print C.cell[row, col] -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.excepthack...

2008-05-14 Thread David C. Ullrich
In article [EMAIL PROTECTED], Jean-Paul Calderone [EMAIL PROTECTED] wrote: On Wed, 14 May 2008 15:47:18 -0500, David C. Ullrich [EMAIL PROTECTED] wrote: [snip] Came up with a ridiculous hack involving both sys.stderr and sys.excepthook. Works exactly the way I want. Seems ridiculous

Re: indexed properties...

2008-05-16 Thread David C. Ullrich
On Thu, 15 May 2008 10:59:41 -0300, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 14 May 2008 18:15:41 -0300, David C. Ullrich [EMAIL PROTECTED] escribió: Having a hard time phrasing this in the form of a question... The other day I saw a thread where someone asked about overrideable

Re: indexed properties...

2008-05-17 Thread David C. Ullrich
On Sat, 17 May 2008 00:27:31 -0300, Gabriel Genellina [EMAIL PROTECTED] wrote: (warning: it's a rather long message) En Fri, 16 May 2008 12:58:46 -0300, David C. Ullrich [EMAIL PROTECTED] escribió: On Thu, 15 May 2008 10:59:41 -0300, Gabriel Genellina [EMAIL PROTECTED] wrote: En Wed, 14 May

Re: Introducing Python to others

2009-03-26 Thread David C. Ullrich
used), or something else? Any other suggestions for a possible wow reaction from an audience like that? Thanks, Paddy -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Python to others

2009-03-31 Thread David C. Ullrich
In article 039360fb-a29c-4f43-b6e0-ba97fb598...@z23g2000prd.googlegroups.com, Mensanator mensana...@aol.com wrote: On Mar 26, 11:42 am, andrew cooke and...@acooke.org wrote: David C. Ullrich wrote: In article mailman.2701.1238060157.11746.python-l...@python.org,  Paddy O'Loughlin

Re: Introducing Python to others

2009-03-31 Thread David C. Ullrich
Daniels scott.dani...@acm.org -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Introducing Python to others

2009-04-02 Thread David C. Ullrich
In article mailman.3007.1238515574.11746.python-l...@python.org, andrew cooke and...@acooke.org wrote: David C. Ullrich wrote: In article tm6dnzxrviq0qfbunz2dnuvz_rmdn...@pdx.net, Scott David Daniels scott.dani...@acm.org wrote: [...] class Vector(list): def __add__

SoHo Book Problem

2009-04-07 Thread David C. Ullrich
even _glanced_ at what was coming out of the press. So I'm curious whether anyone else has a copy. (I know it's all online. Some people like _books_...) DU. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: SoHo Book Problem

2009-04-08 Thread David C. Ullrich
see it... DU. In article dullrich-5ea218.10405607042...@text.giganews.com, David C. Ullrich dullr...@sprynet.com wrote: Just curious - has anyone else bought the printed Python 3 Reference Manual published by SoHo Books? Talking about what they call Part 2 of their Python Documentation. I

Re: max(), sum(), next()

2008-09-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: I didn't mention what's below because it doesn't seem likely that saying max([]) = -infinity and min([]) = +infinity is going to make the OP happy... Well, it sounds cute having Neginfinite and Infinite as built

Re: max(), sum(), next()

2008-09-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 05 Sep 2008 10:22:22 -0500, David C. Ullrich wrote about why max and min shouldn't accept a default argument: Think about all the previously elected female or black presidents of the US. Which one

Re: default value in __init__

2008-10-09 Thread David C. Ullrich
really explain this aspect of the language's behavior to people who don't read the formal definition and also don't work through the tutorial. Paolo -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-14 Thread David C. Ullrich
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: David C. Ullrich a écrit : In article [EMAIL PROTECTED], kenneth [EMAIL PROTECTED] wrote: On Oct 9, 10:14 am, Christian Heimes [EMAIL PROTECTED] wrote: kenneth wrote: the 'd' variable already contains

Re: Question

2008-10-14 Thread David C. Ullrich
In article [EMAIL PROTECTED], Aditi Meher [EMAIL PROTECTED] wrote: Hello How to write code to store data into buffer using python? buffer = data Please reply. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: default value in __init__

2008-10-16 Thread David C. Ullrich
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: David C. Ullrich a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: David C. Ullrich a écrit : (snip) Seems to me that people often site the important warning

Re: default value in __init__

2008-10-21 Thread David C. Ullrich
In article [EMAIL PROTECTED], Paul McGuire [EMAIL PROTECTED] wrote: On Oct 14, 1:36 pm, David C. Ullrich [EMAIL PROTECTED] wrote: [...] In particular default parameters should work the way the user expects! The fact that different users will expect different things here is no excuse

Re: indexed properties...

2008-05-18 Thread David C. Ullrich
expect that row access will happen a lot more often than column access. P. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for programming algorithms

2008-05-18 Thread David C. Ullrich
Research algorithms, such as heuristics and other soft-computing algorithms? Maybe this is not the right forum, but maybe you can give me some hints or tips... Thank you in advance. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: indexed properties...

2008-05-19 Thread David C. Ullrich
for the intended application, but [oh, never mind. Sorry about the argumentative tone - I _would_ like to know which untenable position you're referring to... P. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: python script to windows exe

2008-05-19 Thread David C. Ullrich
facilities both to script and the executable. Comparing two trace files could give you some clue. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: How do *you* use Python in non-GUI work?

2008-05-20 Thread David C. Ullrich
. Thanks. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: indexed properties...

2008-05-20 Thread David C. Ullrich
On Mon, 19 May 2008 14:48:03 +0200, pataphor [EMAIL PROTECTED] wrote: On Mon, 19 May 2008 06:29:18 -0500 David C. Ullrich [EMAIL PROTECTED] wrote: Maybe you could be more specific? Various positions I've taken in all this may well be untenable, but I can't think of any that have anything

Re: indexed properties...

2008-05-20 Thread David C. Ullrich
In article [EMAIL PROTECTED], pataphor [EMAIL PROTECTED] wrote: On Tue, 20 May 2008 06:12:01 -0500 David C. Ullrich [EMAIL PROTECTED] wrote: Well, ok. Like I said, I never _took_ the position that it _should_ be a list of lists, I just said I didn't see the advantage to using a single

Re: indexed properties...

2008-05-22 Thread David C. Ullrich
On Wed, 21 May 2008 12:47:44 +0200, pataphor [EMAIL PROTECTED] wrote: On Tue, 20 May 2008 10:40:17 -0500 David C. Ullrich [EMAIL PROTECTED] wrote: Today's little joke: Long ago I would have solved this by storing the data as a list of rows and _also_ a list of columns, updating each one

Re: Relationship between GUI and logic?

2008-05-23 Thread David C. Ullrich
it would be wxPython. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-05-24 Thread David C. Ullrich
, sorry for the noise, and please bear with me, I tend to be a bit too much on the pedantic side sometimes. But still, thanks to the pedantics peoples on usenet that taught me so much so far and still teach me more and more... David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: access interactive namespace from module (shared namespace?)

2008-05-25 Thread David C. Ullrich
simply need to type in utest.py: import utest2; print 2*utest2.b Isn't there a name for the interactive namespace (like here the utest2), which I can use to access the variable without handing the whole dictionary? utest.py import __main__ def doit(): print 2*__main__.a Cheers, Ulrich David C

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread David C. Ullrich
probably should go through the tutorial ASAP that is located here: http://docs.python.org/tut/ - [Image] -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting up and running with Python on a Mac

2008-05-30 Thread David C. Ullrich
on these two distributions. Thank you in advance Thomas Philips -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: A video introducing Ulipad, an IDE mainly for Python

2008-05-30 Thread David C. Ullrich
. Is there an English version somewhere? Dick Moores -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: re

2008-06-04 Thread David C. Ullrich
] and a \Z to the second. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: re

2008-06-04 Thread David C. Ullrich
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: David C. Ullrich schrieb: Actually using regular expressions for the first time. Is there something that allows you to take the union of two character sets, or append a character to a character set? Say I want

Re: re

2008-06-04 Thread David C. Ullrich
In article [EMAIL PROTECTED], Russell Blau [EMAIL PROTECTED] wrote: Diez B. Roggisch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] David C. Ullrich schrieb: Say I want to replace 'disc' with 'disk', but only when 'disc' is a complete word (don't want to change 'discuss

Re: how should i use this function?

2008-06-04 Thread David C. Ullrich
say from win32ui import PyCRichEditCtrl Or you can say import win32ui and then reference win32ui.PyCRichEditCtrl . -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Import removing first module component

2008-06-04 Thread David C. Ullrich
stripped off, when the import is happening. Does notewave contain a _module_ named runner.LMTP ? Probably not, since the error message says there's no such module. Thanks, -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: re

2008-06-05 Thread David C. Ullrich
David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: ClassName.attribute vs self.__class__.attribute

2008-06-06 Thread David C. Ullrich
classes. Gabriel -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: how to build a street with more than 1 house ?

2008-06-07 Thread David C. Ullrich
= house * 25 print large_street.front_doors small_street = 5 * house print small_street.front_doors David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

re quiz

2008-06-12 Thread David C. Ullrich
included in the and so forth in (**)? (Or is there a function somewhere that will convert r\remark{Hint} to r\\remark{Hint} for me, and do the same for precisely the escpapes referred to in the and so forth?) David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

regex for balanced parentheses?

2008-06-12 Thread David C. Ullrich
things which are not regular expressions in that theoretical sense. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: get keys with the same values

2008-06-12 Thread David C. Ullrich
in dd.values() if len(l) 1] I will something as : d.keys(where their values are the same) With this statement I can get two lists for this example: l1= ['a','e'] l2=['b','d'] Would somebody tell me how I can do it? Regards, Nader David C. Ullrich -- http://mail.python.org/mailman/listinfo/python

Re: re quiz

2008-06-12 Thread David C. Ullrich
On Thu, 12 Jun 2008 05:12:55 -0700 (PDT), John Machin [EMAIL PROTECTED] wrote: On Jun 12, 8:57 pm, David C. Ullrich [EMAIL PROTECTED] wrote: True or False? (no fair looking it up) (*) If repl is a string then re.sub(pattern, repl, s) returns s with non-overlapping occurences of pattern

Re: re quiz

2008-06-12 Thread David C. Ullrich
On Thu, 12 Jun 2008 14:12:31 +0200, Peter Otten [EMAIL PROTECTED] wrote: David C. Ullrich wrote: (Or is there a function somewhere that will convert r\remark{Hint} to r\\remark{Hint} for me, and do the same for precisely the escpapes referred to in the and so forth?) I think you just have

Re: re quiz

2008-06-12 Thread David C. Ullrich
On 12 Jun 2008 12:32:13 GMT, Duncan Booth [EMAIL PROTECTED] wrote: David C. Ullrich [EMAIL PROTECTED] wrote: Practical question: What's a _complete_ list of the escapes included in the and so forth in (**)? (Or is there a function somewhere that will convert r\remark{Hint} to r\\remark

Re: regex for balanced parentheses?

2008-06-12 Thread David C. Ullrich
On Thu, 12 Jun 2008 06:38:16 -0700 (PDT), Paul McGuire [EMAIL PROTECTED] wrote: On Jun 12, 6:06 am, David C. Ullrich [EMAIL PROTECTED] wrote: There's no regex that detects balanced parentheses, or is there? [...] Pyparsing includes several helper methods for building common expression

Re: Making wxPython a standard module?

2008-06-12 Thread David C. Ullrich
, together with PyQt and PyGTK. Andrea. Imagination Is The Only Weapon In The War Against Reality. http://xoomer.alice.it/infinity77/ -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: regex for balanced parentheses?

2008-06-12 Thread David C. Ullrich
old stuff commented out.) I know of two projects that have taken on the problem using pyparsing - one is the mathtext module in John Hunter's matplotlib, and Tim Arnold posted some questions on the subject a while back - try googling for pyparsing tex for further leads. -- Paul -- David C

Re: re quiz

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Johannes Bauer [EMAIL PROTECTED] wrote: David C. Ullrich schrieb: -- care to tell us what a certain re.sub is, and false in what way? Read the OP. Well, aren't you funny. Maybe you should have referenced the other thread so one can find the OP

Re: get keys with the same values

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Nader [EMAIL PROTECTED] wrote: On Jun 12, 1:41 pm, David C. Ullrich [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2008 03:58:53 -0700 (PDT), Nader [EMAIL PROTECTED] wrote: Hello, I have a dictionary and will get all keys which have the same values. d

Re: get keys with the same values

2008-06-12 Thread David C. Ullrich
In article [EMAIL PROTECTED], Paul McGuire [EMAIL PROTECTED] wrote: On Jun 12, 6:41 am, David C. Ullrich [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2008 03:58:53 -0700 (PDT), Nader [EMAIL PROTECTED] wrote: Hello, I have a dictionary and will get all keys which have the same values

Re: Mapping None. Why?

2008-06-13 Thread David C. Ullrich
, Paddy. David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Mapping None. Why?

2008-06-13 Thread David C. Ullrich
In article [EMAIL PROTECTED], Paddy [EMAIL PROTECTED] wrote: On Jun 13, 12:49 pm, David C. Ullrich [EMAIL PROTECTED] wrote: On Thu, 12 Jun 2008 12:05:02 -0700 (PDT), Paddy [EMAIL PROTECTED] wrote: Iam wondering why the peculiar behavior of map when the function in given as None

Re: Simple Python class questions

2008-06-20 Thread David C. Ullrich
hard to see that if a person says he's totally new to the language, and even explicitly says that the problem could be syntax errors, then he shouldn't post pseudo code. How in the world is pseudo code going to allow people to help him fix his syntax? -- David C. Ullrich -- http://mail.python.org

Re: ask for a RE pattern to match TABLE in html

2008-06-26 Thread David C. Ullrich
number of tables it's going to match the string starting at the start of the first table and ending at the end of the last one.) -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: ask for a RE pattern to match TABLE in html

2008-06-27 Thread David C. Ullrich
Python and Perl include features that are not part of the formal CS notion of regular expression. Do they include something that does allow parsing nested delimiters properly? -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: ask for a RE pattern to match TABLE in html

2008-06-30 Thread David C. Ullrich
In article [EMAIL PROTECTED], Dan [EMAIL PROTECTED] wrote: On Jun 27, 1:32 pm, David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Jonathan Gardner [EMAIL PROTECTED] wrote: On Jun 26, 3:22 pm, MRAB [EMAIL PROTECTED] wrote: Try something like

Re: complex numbers should respect the I representation

2008-06-30 Thread David C. Ullrich
it is, for various values of this... -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Do I need self and other?

2008-06-30 Thread David C. Ullrich
and y.data... Otoh, I once saw a library (someone's Python arbitrary-precision reals package) where he used x and y, and sure enough I was confused. Otooh, I was't confused by it for long, and I quickly decided that it actually made _that_ code look like it made more sense. Thank you! -- David C

Re: ask for a RE pattern to match TABLE in html

2008-07-01 Thread David C. Ullrich
In article [EMAIL PROTECTED], Jonathan Gardner [EMAIL PROTECTED] wrote: On Jun 27, 10:32 am, David C. Ullrich [EMAIL PROTECTED] wrote: (ii) The regexes in languages like Python and Perl include features that are not part of the formal CS notion of regular expression. Do they include

Re: caseless dict - questions

2008-07-07 Thread David C. Ullrich
? Do you want to see {'name':'new value'} or {'name':'new value', 'Name': 'newvalue'}? TIA, Senthil -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: How to make a function associated with a class?

2008-07-07 Thread David C. Ullrich
argument? -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

inconsistency?

2008-07-07 Thread David C. Ullrich
Luckily I tried it before saying no, that's not how in works: 'ab' in 'abc' True [1,2] in [1,2,3] False Is there a reason for the inconsistency? I would have thought in would check for elements of a sequence, regardless of what sort of sequence it was... -- David C. Ullrich -- http

Re: inconsistency?

2008-07-08 Thread David C. Ullrich
In article [EMAIL PROTECTED], Mel [EMAIL PROTECTED] wrote: Ben Finney wrote: David C. Ullrich [EMAIL PROTECTED] writes: 'ab' in 'abc' True [1,2] in [1,2,3] False URL:http://www.python.org/doc/ref/comparisons.html Is there a reason for the inconsistency? Probably

Re: inconsistency?

2008-07-08 Thread David C. Ullrich
],[2,3]] Thanks. I understand how it works for lists and why - I was wondering why it's not the same for strings. David C. Ullrich wrote: Luckily I tried it before saying no, that's not how in works: 'ab' in 'abc' True [1,2] in [1,2,3] False Is there a reason

Re: inconsistency?

2008-07-08 Thread David C. Ullrich
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: David C. Ullrich wrote: 'ab' in 'abc' True 'a' in 'abc' works according to the standard meaning of o in collection. 'ab' in 'abc' could not work by that standard meaning because strings, as virtual sequences, only

Re: inconsistency?

2008-07-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: David C. Ullrich wrote: In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Is there a reason for the inconsistency? I would have thought in would check for elements of a sequence, regardless of what

Re: Weird lambda rebinding/reassignment without me doing it

2008-07-10 Thread David C. Ullrich
, 262.0, 234.0, 74.0, 325.0]) g = lambda x:val(x) l=[] for x in range(1,10): g(l) 183.0 33.0 315.0 244.0 308.0 168.0 146.0 378.0 297.0 -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Weird lambda rebinding/reassignment without me doing it

2008-07-11 Thread David C. Ullrich
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: David C. Ullrich wrote: In article [EMAIL PROTECTED], ssecorp [EMAIL PROTECTED] wrote: I am never redefining the or reassigning the list when using validate but since it spits the modified list back out

Re: Weird lambda rebinding/reassignment without me doing it

2008-07-11 Thread David C. Ullrich
(a) you're saying return None, which explains the rest of it. You noticed that the second line of l = mod(k,4) l didn't print anything? That's because the first line set l to None. If you'd typed print l instead of just l you would have seen l = mod(k,4) l None -- David C. Ullrich -- http

Re: wxPython code giving strange errors.

2008-07-18 Thread David C. Ullrich
it in a wxPython-based shell - it worked fine. Try running it from the command line and I'll bet you won't get that error. Also, there's a great wxPython user's group you can join from the official website: www.wxpython.org Mike -- David C. Ullrich -- http://mail.python.org/mailman/listinfo

repr(string)

2008-07-23 Thread David C. Ullrich
not to contain line breaks? -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping linefeeds by hand, when I

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich skrev: just keep in mind that using eval() on untrusted data isn't a very good idea. Right. This data comes from me, gets put into a file and then read by me. Someone _could_ corrupt that file

Re: repr(string)

2008-07-24 Thread David C. Ullrich
In article [EMAIL PROTECTED], Peter Otten [EMAIL PROTECTED] wrote: David C. Ullrich wrote: In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: David C. Ullrich wrote: I've been saving data in a file with one line per field. Now some of the fields may become

Re: repr(string)

2008-07-25 Thread David C. Ullrich
In article [EMAIL PROTECTED], MRAB [EMAIL PROTECTED] wrote: On Jul 23, 4:04 pm, David C. Ullrich [EMAIL PROTECTED] wrote: I've been saving data in a file with one line per field. Now some of the fields may become multi-line strings... I was about to start escaping and unescaping

Re: multiple inheritance and __getattr__

2008-07-28 Thread David C. Ullrich
(self, name) except AttributeError: return B.__getattr__(self, name) c=C() c.a A.__getattr__ 1 c.b A.__getattr__ B.__getattr__ 1 A better solution is welcome. Many thanks, Enrico -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple inheritance and __getattr__

2008-07-29 Thread David C. Ullrich
': return 2 return super(B, self).__getattr__(name) class C(A, B): pass -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

PIL (etc etc etc) on OS X

2008-08-01 Thread David C. Ullrich
(self.mode, d, a, self.decoderconfig) File PIL/Image.py, line 375, in _getdecoder raise IOError(decoder %s not available % decoder_name) IOError: decoder jpeg not available 1 items had failures: 1 of 57 in selftest.testimage ***Test Failed*** 1 failures. *** 1 tests of 57 failed. -- David C

Re: mapping a string to an instancemethod

2008-08-01 Thread David C. Ullrich
() f.dispatch_as_string('hello1', 'world') Many TIA and apologies if this is a FAQ, I googled and couldn't find the answer. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL (etc etc etc) on OS X

2008-08-02 Thread David C. Ullrich
In article [EMAIL PROTECTED], Irmen de Jong [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Decided to try to install PIL on my Mac (OS X.5). I know nothing about installing programs on Linux, nothing about building C programs, nothing about installing libraries, nothing about fink

Re: PIL (etc etc etc) on OS X

2008-08-02 Thread David C. Ullrich
to a hard drive... that wasn't the only thing I learned that day. (Probably won't get back to this til Monday, btw, in case you say something and I don't seem interested.) DU. In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Decided to try

Re: PIL (etc etc etc) on OS X

2008-08-04 Thread David C. Ullrich
Thanks for the hand-holding. DU. In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: [more about installing libjpeg...] -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL (etc etc etc) on OS X

2008-08-04 Thread David C. Ullrich
like it didn't install any such file. Maybe jpeg should be the name of one of those files that did get installed? This _is_ fun. Eech. DU. -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL (etc etc etc) on OS X

2008-08-05 Thread David C. Ullrich
In article [EMAIL PROTECTED], Kevin Walzer [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Just as well that the message sent earlier today seems to have been lost... Ok. Read your instructions on libjpeg. Read some of the install.doc. ./configure, fine. make, fine. make test

Re: PIL (etc etc etc) on OS X

2008-08-05 Thread David C. Ullrich
In article [EMAIL PROTECTED], Irmen de Jong [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Just as well that the message sent earlier today seems to have been lost... Ok. Read your instructions on libjpeg. Read some of the install.doc. ./configure, fine. make, fine. make test

Re: PIL (etc etc etc) on OS X

2008-08-05 Thread David C. Ullrich
In article [EMAIL PROTECTED], David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Irmen de Jong [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Decided to try to install PIL on my Mac (OS X.5). I know nothing about installing programs on Linux, nothing

Re: proposal, change self. to .

2008-08-05 Thread David C. Ullrich
- -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Psycho question

2008-08-05 Thread David C. Ullrich
is absolutely unaffected)? Thanks, -- David C. Ullrich -- http://mail.python.org/mailman/listinfo/python-list

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Just heard about Psycho. I've often wondered why someone doesn't make something that does exactly what Psycho does - keen. Silly question: It's correct, is it not, that Psycho doesn't

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS Windows: the only reason I need it right now is for the small number of Delphi

Re: Psycho question

2008-08-06 Thread David C. Ullrich
In article [EMAIL PROTECTED], David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can finally (eventually) finish the process of dumping MS

Re: Psycho question

2008-08-07 Thread David C. Ullrich
In article [EMAIL PROTECTED], Erik Max Francis [EMAIL PROTECTED] wrote: David C. Ullrich wrote: Thanks. I would have guessed that I'd want low-level style code; that's the sort of thing I have in mind. In fact the only thing that seems likely to come up right now is looping through

Re: Psycho question

2008-08-07 Thread David C. Ullrich
In article [EMAIL PROTECTED], MRAB [EMAIL PROTECTED] wrote: On Aug 6, 8:52 pm, David C. Ullrich [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: Thanks. If I can get it installed and it works as advertised this means I can

  1   2   >