Re: The use of :

2004-11-28 Thread Isaac To
http://compsoc.dur.ac.uk/whitespace/ :-) Regards, Isaac. -- http://mail.python.org/mailman/listinfo/python-list

Re: creating generators from function

2004-12-08 Thread Isaac To
ue later in your code. And of course, most editors will highlight the "break" for you, while no editor will highlight for you the "condition" variable that you are staring at. Regards, Isaac. -- http://mail.python.org/mailman/listinfo/python-list

Re: problems with duplicating and slicing an array

2005-01-22 Thread David Isaac
Yun Mao wrote: >a[ [1,0], [0,1] ] , which should give me >[[4, 5], [1,2]] Numeric: take(take(a,[1,0]),[0,1],1) fwiw, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-26 Thread Isaac To
to implement a generic reverse() that works for all the different kinds of object---even if they share similar interfaces. Try to implement a generic "reverse" in C when the different type of containers are encoded as different style struct's accessible from different function, and yo

extract files from MS-TNEF attachments

2005-01-28 Thread David Isaac
I'm looking for Python code to extract files from MS-TNEF attachments. (I'm aware of the C code at http://tnef.sourceforge.net/ ) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: a sequence question

2005-02-10 Thread David Isaac
an N element list with each element being the same iterator object, but after that http://www.python.org/doc/2.3.5/lib/built-in-funcs.html just didn't get me there. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: a sequence question

2005-02-11 Thread David Isaac
> Alan Isaac wrote: > > I see that [iter(l)]*N produces an N element list with each element being > > the same iterator object, but after that > > http://www.python.org/doc/2.3.5/lib/built-in-funcs.html > > just didn't get me there. "Nick Coghlan" <[E

Re: Iteration over two sequences

2005-02-11 Thread David Isaac
"Scott David Daniels" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]: > Numarray is the future, Numeric is the "past", This statement is not obviously true. See the recent discussion on the developer lists. (Search for Numeric3.) Alan Isaac -- h

Re: a sequence question

2005-02-12 Thread David Isaac
> artifact of the CPython implementation, since the zip() docs don't make any > promises. So updating the docs to include that information would probably be a > bigger issue, as it involves behaviour which is currently not defined by the > library. OK, thanks. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: yield_all needed in Python

2005-03-01 Thread Isaac To
ng? def gen_all(gen): for e in gen: yield e def foogen(arg1): def foogen1(arg2): # Some code here # Some code here gen_all(arg3) # Some code here gen_all(arg4) # Some code here gen_all(arg5) # Some code here gen_all(arg6) Regards, Isaac. -- http://mail.python.org/mailman/listinfo/python-list

Re: yield_all needed in Python

2005-03-01 Thread Isaac To
>>>>> "Isaac" == Isaac To <[EMAIL PROTECTED]> writes: def gen_all(gen): for e in gen: yield e def foogen(arg1): def foogen1(arg2): # Some code here # Some code here gen_all(arg3) ^ I mean foogen1(arg3), obviously, and si

Re: yield_all needed in Python

2005-03-01 Thread Isaac To
def fun2(): fun1(val) for a in fun2(): ... we cannot expect MyObj() to be yielded to main? But soon I found that it is not realistic: there is no way to know that fun2 has generator semantics. Perhaps that is a short-sightness in not introducing a new keyword instead of def when

Re: yield_all needed in Python

2005-03-05 Thread Isaac To
rable) argument, Paul> unless the element is a generator, in which case we recurse Paul> into it: Paul> ... Only if you'd never want to yield a generator. Regards, Isaac. -- http://mail.python.org/mailman/listinfo/python-list

checkbook manager

2005-04-03 Thread David Isaac
I'd like to try personal financial management using Python. I just found PyCheckbook, but it does not support check printing. Is there a Python check printing application kicking around? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: checkbook manager -> cross platform printing

2005-04-04 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd like to try personal financial management using Python. > I just found PyCheckbook, but it does not support check printing. > Is there a Python check printing application kicking around?

cross platform printing

2005-04-05 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd like to try personal financial management using Python. > I just found PyCheckbook, but it does not support check printing. > Is there a Python check printing application kicking around?

Re: cross platform printing

2005-04-24 Thread David Isaac
> Alan Isaac wrote: > > What is the current best practice for cross platform printing of PostScript > > files from Python? "Warren Postma" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Well since printing postscript files on most Unix systems (pro

Coding Standards (and Best Practices)

2005-04-26 Thread Isaac Rodriguez
guidelines and best practices as our coding standards. Does anyone know where I can get some information about what the community is doing? Are there any well defined guidelines established? Thanks, -- Isaac Rodriguez SWE Autodesk. There are 10 types of

mbx repair script

2005-04-27 Thread David Isaac
I'm looking for a Python script to repair the mbx header for a mail file where only the header is corrupted. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: mbx repair script

2005-04-29 Thread David Isaac
e header contained information tightly tied to the rest of the content (to speed search etc) so that e.g., byte counts could matter. Can you point me to documentation of the mbx format? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter weirdness item count

2005-04-29 Thread David Isaac
"phil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Using Tkinter Canvas to teach High School Geometry > with A LOT of success. Can you post a link to your code. I'd like to see what you are doing. Thx, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

mbx repair script: Python vs perl

2005-04-30 Thread David Isaac
I'm looking for the Python equivalent of the perl script and module described at http://comments.gmane.org/gmane.mail.imap.uw.c-client/707 Any hope? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Documenting Python code.

2005-05-03 Thread Isaac Rodriguez
ay to document their code. If there is no standard way to do this inside the Python community, does anyone feels there is a need for standarizing it? Thanks, -- Isaac Rodriguez SWE Autodesk. There are 10 types of people. Those who undertand binary, and thos

evaluated function defaults: stored where?

2005-05-25 Thread David Isaac
unsurprising if I look at it right? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: evaluated function defaults: stored where?

2005-05-27 Thread David Isaac
Alan Isaac wrote: > Default parameter values are evaluated once when the function definition is > executed. Where are they stored? ... Where is this documented? Forgive any poor phrasing: I'm not a computer science type. At http://www.network-theory.co.uk/docs/pytut/tut_26.html we

default values of function parameters

2005-06-05 Thread David Isaac
Alan Isaac wrote: > Default parameter values are > evaluated once when the function definition is > executed. Where are they stored? ... Where is this documented? Forgive any poor phrasing: I'm not a computer science type. At http://www.network-theory.co.uk/docs/pytut/tut_26.html

extract PDF pages

2005-10-13 Thread David Isaac
While pdftk is awesome http://www.accesspdf.com/pdftk/ I am looking for a Python solution. Just for PDF page extraction. Any hope? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

grep

2005-10-24 Thread David Isaac
What's the standard replacement for the obsolete grep module? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: calling matlab

2005-10-24 Thread David Isaac
perceded by mlabwrap http://mlabwrap.sourceforge.net/ Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: grep

2005-10-25 Thread David Isaac
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:: def grep(pattern, *files): search = re.compile(pattern).search for file in files: for index, line in enumerate(open(file)): if search(line): print ":".join((file, str(index+1), line[:-1])

best cumulative sum

2005-11-20 Thread David Isaac
What's the good way to produce a cumulative sum? E.g., given the list x, cumx = x[:] for i in range(1,len(x)): cumx[i] = cumx[i]+cumx[i-1] What's the better way? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-21 Thread David Isaac
e a solution that relies on a built-in to give me both of those. (Pretty is good too.) Like SciPy's cumsum. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-21 Thread David Isaac
> Alan Isaac wrote: >> Like SciPy's cumsum. "Colin J. Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Doesn't numarray handle this? Sure. One might say that numarray is in the process of becoming scipy. But I was looking f

Re: Converting a flat list to a list of tuples

2005-11-22 Thread David Isaac
', 3)] That behavior is currently an accident. http://sourceforge.net/tracker/?group_id=5470&atid=105470&func=detail&aid=1121416 Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-23 Thread David Isaac
ed. Right. So it is "more concise" only by being incomplete, right? What other advantages might it have? > otherwise, that is more or less what I wrote for my scanl/scanl1. I didn't see a post with that code. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-23 Thread David Isaac
init = iterable.next() yield init elif not iterable: yield init for item in iterable: init = func(init, item) yield init Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-23 Thread David Isaac
(f, [], 0) THANKS! > Of course nothing can beat a plain old for loop in terms of readability and > -- most likely -- speed. OK. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-23 Thread David Isaac
"Peter Otten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Of course nothing can beat a plain old for loop in terms of readability and > -- most likely -- speed. Here are two versions, meant to be comparable. Thanks, Alan Isaac def cumreduce(func, seq

Re: best cumulative sum

2005-11-23 Thread David Isaac
way to test for an empty iterable to see if it can generate an item? I found this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/413614 Seems like a reason to rely on sequences ... Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-24 Thread David Isaac
"Peter Otten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd rather have a second look whether the test is really needed. That's too obscure of a hint. Can you be a bit more explicit? Here's an example (below). You're saying I think that most of it is unnecessary. Thanks, Alan

Re: FTP over TLS

2005-11-25 Thread David Isaac
"Carl Waldbieser" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know of any good examples for writing client side code to upload > files over a secure FTP connection? http://trevp.net/tlslite/ Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: best cumulative sum

2005-11-27 Thread David Isaac
"Peter Otten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I think that the test for an empty iterator makes ireduce() unintuitive. OK. I misunderstood you point. But that is needed to match the behavior of reduce. >>> reduce(operator.add,[],42) 42 Thanks, Alan -- http://mail.

Re: best cumulative sum

2005-11-28 Thread David Isaac
"Peter Otten" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > sufficiently similar I think I understand your points now. But I wanted to match these cases: >>> import operator >>> reduce(operator.add,[],42) 42 >>> reduce(operator.add,[1],42) 43 The idea is that the i-th yield of i

Re: python speed

2005-11-30 Thread Isaac Gouy
Peter Hansen wrote: > David Rasmussen wrote: > > Frithiof Andreas Jensen wrote: > >>From the speed requirement: Is that correspondance chess by any chance?? > > > > Regular chess at tournament time controls requires speed too. Any pure > > Python chess program would lose badly to the best C/C++ pr

Re: python speed

2005-11-30 Thread Isaac Gouy
Peter Hansen wrote: > Isaac Gouy wrote: > > Peter Hansen wrote: > >>Judging by the other posts in this thread, the gauntlet is down: Python > >>is faster than Java. Let those who believe otherwise prove their point > >>with facts, and without artificially hand

Re: python speed

2005-12-01 Thread Isaac Gouy
[EMAIL PROTECTED] wrote: > Isaac Gouy wrote: > > > Which stated "Python is doing the heavy lifting with GMPY which is a > > compiled C program with a Python wrapper" - but didn't seem to compare > > that to GMPY with a Java wrapper? > > You are missi

Re: python speed

2005-12-01 Thread Isaac Gouy
[EMAIL PROTECTED] wrote: > Isaac Gouy wrote: > > Peter Hansen wrote: > > > Isaac Gouy wrote: > > > > Peter Hansen wrote: > > > >>Judging by the other posts in this thread, the gauntlet is down: Python > > > >>is faster than Java. Le

Re: python speed

2005-12-01 Thread Isaac Gouy
Fredrik Lundh wrote: > Cameron Laird wrote: > > >>You are missing the main idea: Java is by design a general purpose > >>programming language. That's why all "GMPYs" and alike are written in > >>Java - now wrappers to C-libraries. Python, by design, is glue > > . > > I don't understand the sentenc

Re: python speed

2005-12-01 Thread Isaac Gouy
Fredrik Lundh wrote: > Isaac Gouy wrote: > > >> and yes, the proposition matches my experiences. java heads prefer to do > >> everything in java, while us pythoneers happily mix and match whenever we > >> can... (which is why guoy's "benchmarks

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 7)

2005-12-08 Thread David Isaac
e.com/group/comp.lang.python/browse_thread/thread/ad0e15cb6b8f2c32/ #evaluate polynomial (coefs) at x using Horner's ruledef horner(coefs,x): return reduce(lambda a1,a2: a1*x+a2,coefs)'Nuf said.Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: lambda (and reduce) are valuable

2005-12-09 Thread David Isaac
>>> Jibes against the lambda-clingers lead eventually to serious >>> questions of style in regard to variable namespacing, >>> lifespan, cleanup, and so on: >>> http://groups.google.com/group/comp.lang.python/browse_thread/thread/ad0e15cb6b8f2c32/

Re: lambda (and reduce) are valuable

2005-12-11 Thread David Isaac
> Alan Isaac wrote: > >>> #evaluate polynomial (coefs) at x using Horner's rule > >>> def horner(coefs,x): return reduce(lambda a1,a2: a1*x+a2,coefs) > > It just cannot get simpler or more expressive. "Peter Otten" <[EMAIL PROTECTED]> wrote

Re: lambda (and reduce) are valuable

2005-12-11 Thread David Isaac
use case for > GUI events. Obviously opinions differ. See the discussion at http://www.artima.com/forums/flat.jsp?forum=106&thread=98196&start=30&msRange=15 I find many of the pleas for lambda persuasive as well. For the contribution of lambda to maintainability, see e.g

Python API to manipulate CAB files.

2005-06-22 Thread Isaac Rodriguez
Does anyone know of a Python API to manipulate CAB files? Thanks, -- Isaac Rodriguez SWE Autodesk. There are 10 types of people. Those who undertand binary, and those who don't -- http://mail.python.org/mailman/listinfo/python-list

CAB files manipulation API (again).

2005-06-28 Thread Isaac Rodriguez
to manipulate CAB files? Thanks, -- Isaac Rodriguez SWE Autodesk. There are 10 types of people. Those who undertand binary, and those who don't -- http://mail.python.org/mailman/listinfo/python-list

tuple.index(item)

2005-07-11 Thread David Isaac
Why don't tuples support an index method? It seems natural enough ... Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Returning histogram-like data for items in a list

2005-07-22 Thread David Isaac
the list (I think that this is referred to as a histogram): For ease of reading (but not efficiency) I like: hist = [(x,L1.count(x)) for x in set(L1)] See http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/277600 Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Software needed

2005-07-22 Thread David Isaac
"niXin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Can anyone direct me to where I can find free software to do the following: > Document Management Software > --- > 1. Written in PHP or Python > 2. scanning feature - where I can scan a document http://

can list comprehensions replace map?

2005-07-27 Thread David Isaac
ist comprehension? (Or, more generally, what is the best way to do this without 'map'?) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

define loop statement?

2006-02-17 Thread David Isaac
I would like to be able to define a loop statement (nevermind why) so that I can write something like loop 10: do_something instead of for i in range(10): do_something Possible? If so, how? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: define loop statement?

2006-02-18 Thread David Isaac
> Alan Isaac wrote: > > I would like to be able to define a loop statement > > (nevermind why) so that I can write something like > > > > loop 10: > > do_something > > > > instead of > > > > for i in range(10): > > do_some

Re: define loop statement?

2006-02-19 Thread David Isaac
"Benji York" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Here's a flagrant hack: Admiration wins out over revulsion. ;-) Thanks, Alan Isaac PS Here's the motivation. Python closely resembles pseudocode. With a very little LaTeX hacking,

Re: Python vs. Lisp -- please explain

2006-02-22 Thread Isaac Gouy
Steven D'Aprano wrote: > On Tue, 21 Feb 2006 09:46:27 -0800, Donn Cave wrote: > > > In article <[EMAIL PROTECTED]>, > > Steven D'Aprano <[EMAIL PROTECTED]> wrote: > > ... > >> Hey Donn, here is a compiled program for the PowerPC, > >> or an ARM processor, or one of IBM's Big Iron > >> mainframes.

Re: Is python very slow compared to C

2006-02-22 Thread Isaac Gouy
Steven D'Aprano wrote: > On Sun, 12 Feb 2006 03:03:20 -0800, bearophileHUGS wrote: > > > Steven D'Aprano>Very slow to do what, compared to what? The decay time > > of the tau meson?< > > > > Probably every answer I can give you is wrong for you, so answering is > > almost useless... > > We do actua

MultiFile object does not iterate

2005-08-09 Thread David Isaac
Why is a MultiFile object not an iterator? For example if mfp = multifile.MultiFile(fp)I cannot dofor line in mfp: do_somethingRelated:MultiFile.next seems badly named.(Something like next_section would be better.)Is this just historical accident or am I missing the point?Thanks,Alan Isaac

FTP over SSL (explicit encryption)

2005-08-10 Thread David Isaac
f someone tells me they have found this trivial under Windows, I am willing to try ... ) I would have thought that this was a common need with a standard Python solution, so I suspect I'm overlooking something obvious. Hoping, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP over SSL (explicit encryption)

2005-08-10 Thread David Isaac
the stuff as an extension to ftplib. Great! Please post a link as soon as it is usable! Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP over SSL (explicit encryption)

2005-08-11 Thread David Isaac
> David Isaac wrote: > > I am looking for a pure Python secure ftp solution. > > Does it exist? "Andrew MacIntyre" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I recall coming across an extension package (pretty sure it wasn't pure > Pyt

Re: FTP over SSL (explicit encryption)

2005-08-12 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.lag.net/paramiko/ > However it requires the PyCrypto module. > http://www.amk.ca/python/code/crypto > > Can you briefly outline how to use this as a client > to upload and d

Re: Permutation Generator

2005-08-13 Thread David Isaac
st[i+1:])) \ or [[]] Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Permutation Generator

2005-08-14 Thread David Isaac
nd Permutations" - 2005 Can you elaborate a bit on what you mean? Given a list of unique elements, it is easy enough to produce a complete permutation generator in Python, in the sense that it yields every possible permuation. (See my previous post.) So you must mean something else? Che

Re: FTP over SSL (explicit encryption)

2005-08-14 Thread David Isaac
found this: http://trevp.net/tlslite/ I haven't even had time to try it, but I thought you'd want to know. Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP over SSL (explicit encryption)

2005-08-14 Thread David Isaac
> > http://www.lag.net/paramiko/ "Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) > sock.settimeout(20) > sock.connect((hostname, port)) > my_t = paramiko.Transport(sock) >

Python IDE for linux

2006-04-19 Thread Neil Isaac
and emacs/vi(m)/nano/pico, but I use gnome most of the time and would rather (but not require) that the ide use anything other than qt. Aside from just IDEs, I would love to hear about eclipse/jedit/(anjuta?) plugins. Thanks. -- Neil Isaac [EMAIL PROTECTED] -- http://mail.python.org/mailma

Re: Numeric, vectorization

2006-05-01 Thread David Isaac
ybar = 0.5*(y[slice1]+y[slice2]) >>> ybar array([ 2., 3., 4., 5., 6., 7., 8.]) hth, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: list*list

2006-05-01 Thread David Isaac
m pretty sure this distinction goes away in 2.5. Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: simultaneous assignment

2006-05-02 Thread David Isaac
> w=1000 >>> x=1000 >>> w==x True >>> w is x False >>> w=2 >>> x=2 >>> w==x True >>> w is x True Hope that helps, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs are *MISUNDERSTOOD*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-17 Thread David Isaac
; people who think that tab == some spaces. Exactly. Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

argmax

2006-06-01 Thread David Isaac
and izip, should I import them at the module level or at the level of the function? What are the considerations here? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: argmax

2006-06-01 Thread David Isaac
inking. 2. The particular use case this time is strategy choice. The desired strategy (i.e., index) is the one with the highest payoff. 3. Thanks to George, and to Peter for noticing a subtle difference in the implementations. Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy bug

2006-06-03 Thread David Isaac
t;> bitwise_or.reduce(array([8,256,32,8])) > 8 > >>> import numpy > >>> numpy.__version__ > '0.9.8' > >>> > > Platform : Win XP SP2, Python 2.4.2 Most bug reports start on the numpy list, I believe. (See above.) Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

FreeImagePy and PIL

2006-06-03 Thread David Isaac
I am just starting to think about image processing. What are the overlaps and differences in intended functionality between FreeImagePy and PIL? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Request new feature suggestions for my PDF conversion toolkit - xtopdf

2006-06-08 Thread David Isaac
so you will only have to write a writer! (But to make this great: support stylesheets!) Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Numerical solver

2006-03-01 Thread David Isaac
"Laszlo Zsolt Nagy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would like to use a numerical solver for a specific problem. Another possibility: http://nlpy.sourceforge.net/ Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

__slots__

2006-03-22 Thread David Isaac
h is considered unPythonic. Why? 2. What is a simple example where use of slots has caused "subtle" problems, as some claim it will? 3. What is a simple example of a Pythonic use of __slots__ that does NOT involved the creation of **many** instances. Thanks, Alan Isaac -- http:

Re: __slots__

2006-03-23 Thread David Isaac
ple of something that could be easily missed, and possibly an answer to my question above. (Although not I think if I am subclassing object.) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: __slots__

2006-03-25 Thread David Isaac
ies if your class may be subclassed. Does this beg the question of whether __slots__ *should* break with inheritance? One other question I did not get answered: is there any simple example of a Pythonic use of __slots__ that does NOT involve the creation of **many** instances. Thanks, Alan Isaac --

Re: Comparisons and singletons

2006-03-25 Thread David Isaac
>> a = 10 >>> b = 10 >>> a is b True Why the difference? 2. If I really want a value True will I ever go astray with the test: if a is True: >>> a = True >>> b = 1. >>> c = 1 >>> a is True, b is True, c is True (True, False, False) Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparisons and singletons

2006-03-26 Thread David Isaac
Alan asked: > > 2. If I really want a value True will I ever go astray with the test: > > if a is True: > > >>> a = True > > >>> b = 1. > > >>> c = 1 > > >>> a is True, b is True, c is True > > (True, False, False) "Ziga Seilnacht" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I th

access mbx files?

2006-03-26 Thread David Isaac
Should I be able to access mail messages in Mahogany mail's mbx format using the Python mailbox module? If so, can someone please post a working example? If not, can you please point me to documentation of the file format or better yet Python code to parse it? Thanks, Alan Isaac --

Re: access mbx files?

2006-03-26 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Should I be able to access mail messages in Mahogany mail's mbx > format using the Python mailbox module? If so, can someone > please post a working example? If not, can you please > poin

Re: access mbx files?

2006-03-27 Thread David Isaac
n (and thus questions like my original questions arise)? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: HELP PLEASE: What is wrong with this?

2006-04-14 Thread David Isaac
sis you forgot to close on the preceding line ... Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

"what's new" missing

2006-09-23 Thread David Isaac
Where does one get the "What's New" document for Python 2.5? http://docs.python.org/dev/whatsnew/whatsnew25.html pretends to hold it, but the links are corrupt. Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: "what's new" missing

2006-09-23 Thread David Isaac
"Alan Isaac" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Where does one get the > "What's New" document for Python 2.5? > http://docs.python.org/dev/whatsnew/whatsnew25.html > pretends to hold it, but the links are corrupt. OK,

SimpleParse installer available for 2.5

2006-10-02 Thread David Isaac
This is important for my move to Python 2.5, so I thought others might want to know... Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: loop beats generator expr creating large dict!?

2006-10-03 Thread David Isaac
is: use a loop because the obvious generator approach is not efficient. Something seems wrong here... Cheers, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

item access time: sets v. lists

2006-10-04 Thread David Isaac
Is it expected for access to set elements to be much slower than access to list elements? Explanation? Thanks, Alan Isaac >>> t1=timeit.Timer("for i in set(xrange(1)):pass","") >>> t2=timeit.Timer("for i in list(xrange(1)):pass","&

Re: loop beats generator expr creating large dict!?

2006-10-04 Thread David Isaac
> Alan Isaac wrote: > > The current situation is: use a loop because the obvious generator > > approach is not efficient. "Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "not efficient" compared to what ? I already gue

Re: item access time: sets v. lists

2006-10-04 Thread David Isaac
uch better set of answers including to questions I did not even know I wanted to ask until I saw your post. But, how to explain the above?? Thanks, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >