On 28 Oct 2006 22:55:29 -0700, Xah Lee [EMAIL PROTECTED] wrote:
Barry Margolin wrote:
« For Lisp, just look for symbols that are immediately preceded by (
...»
Thanks a lot! great thought.
An even cleaner way to do this would be to iterate over the list
s-exprs in any given lisp source, use
On 10/27/06, Ramon Diaz-Uriarte [EMAIL PROTECTED] wrote:
Actually, I've read similar things before and I don't quite get it. I
guess all of us are Emacs begginers the first time we try emacs.
Actually, I started using Emacs about 1 month after installing Linux;
what hooked me was the
On 10/21/06, Grant Edwards [EMAIL PROTECTED] wrote:
On 2006-10-21, Sai Krishna M [EMAIL PROTECTED] wrote:
On 10/21/06, Paolo Pantaleo [EMAIL PROTECTED] wrote:
Hi,
I need to capture a screen snapshot in Linux. PIL has a module
ImageMagick has a command-line program named import that you
On 22 Oct 2006 09:06:53 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Paolo Pantaleo wrote:
Hi,
I need to capture a screen snapshot in Linux. PIL has a module
IageGrab, but in the free version it only works under Windows. Is
there any package to capture the screen on Linux?
xwd
On 21 Oct 2006 00:50:34 -0700, Ant [EMAIL PROTECTED] wrote:
But there's a good reason not to. Try:
printreverse(range(1000))
Recursion has a maximum depth (of 1000 by default) in Python.
I guess Python isn't tail-recursive then?
Well, algorithms seem to be more naturally expressed
On 21 Oct 2006 01:17:32 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I am new to Python but come from a C++ background so I am trying to
connect the dots :) . I am really liking what I see so far but have
some nubee questions on what is considered good form. For one thing I
am used to
On 21 Oct 2006 01:31:55 -0700, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Theerasak Photha:
I guess Python isn't tail-recursive then?
Right.
Well, algorithms seem to be more naturally expressed iteratively in
Python, and to be fair, most uses of recursion you see in e.g., Scheme
On 10/21/06, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Theerasak Photha schrieb:
On 21 Oct 2006 00:50:34 -0700, Ant [EMAIL PROTECTED] wrote:
But there's a good reason not to. Try:
printreverse(range(1000))
Recursion has a maximum depth (of 1000 by default) in Python.
I guess
On 18 Oct 2006 00:20:50 -0700, Jia Lu [EMAIL PROTECTED] wrote:
I want to get a string 2 3
str(list[1:])
'[2, 3]'
How can I do that ?
' '.join(str(i) for i in list[1:])
-- Theerasak
--
http://mail.python.org/mailman/listinfo/python-list
On 10/17/06, Kevien Lee [EMAIL PROTECTED] wrote:
PS:is there any python lib for CVS ?
Doubt it, but there is a Python library for Subversion (SVN CVS anyway).
-- Theerasak
--
http://mail.python.org/mailman/listinfo/python-list
On 10/17/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Kevien Lee wrote:
PS:is there any python lib for CVS ?
there's some stuff in Demo/pdist in the Python source distribution,
including a module called cvslib.
then I stand corrected...
-- Theerasak
--
On 10/17/06, Hendrik van Rooyen [EMAIL PROTECTED] wrote:
Bruno Desthuilliers [EMAIL PROTECTED] wrote:
Kay Schluehr wrote:
Bruno Desthuilliers wrote:
Just for the record : Ruby's code-blocks (closures, really) come from
Smalltalk, which is still the OneTrueObjectLanguage(tm).
On 14 Oct 2006 09:25:00 -0700, Paul Boddie [EMAIL PROTECTED] wrote:
Unlike Java, Python's first class functions and
methods are already highly useful for callback-based systems
Curious: how well does the use of returning inner functions work as a
strategy for providing effectively 'anonymous'
On 17 Oct 2006 02:56:45 -0700, Lad [EMAIL PROTECTED] wrote:
Dennis,
Thank you for your reply
You say:
Pretend you are the computer/application/etc. How would YOU
perform such a ranking?
That is what I do not know , how to perform such ranking.
Do you have any idea?
The details are very
On 13 Oct 2006 17:07:56 -0700, Sandra-24 [EMAIL PROTECTED] wrote:
John Salerno wrote:
Just curious what users of the two big commercial IDEs think of them
compared to one another (if you've used both).
Wing IDE looks a lot nicer and fuller featured in the screenshots, but a
glance at
On 16 Oct 2006 20:49:10 -0700, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
hi, I have some values(say from -a to a) stored in a vector and I want
to plot a histogram for those values. How can I get it done in python.
I have installed and imported the Matplotlib package but on executing
the code
On 11 Oct 2006 02:10:38 -0700, Ant [EMAIL PROTECTED] wrote:
Theerasak Photha wrote:
On 10/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
...
(La)TeX is the king of document processing, and does PDF.
Except that the OP want's to print Word documents as PDF. LaTeX is
good, granted
On 10/12/06, Magnus Lycka [EMAIL PROTECTED] wrote:
I feel much more productive in bash than in most Windows apps.
(I still like to have several terminal windows though.)
Perhaps you have used GNU screen. It's on my definitive list of winners.
(As an added bonus, using screen via SSH
On 10/11/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote:
Theerasak Photha wrote:
On 10/11/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
can be a lot better than a 30-level traceback that ends with a line
looking something like
fnut.index(gah)
Despite long experience with Perl
On 13 Oct 2006 07:29:09 -0700, Ahmer [EMAIL PROTECTED] wrote:
What do you guys use?
Why?
What do you like and hate about it?
What platform(s) is it avalable on?
How much does it cost?
etc.
I use GNU Emacs 22 and a screen session.
Advantages:
* Comprehensive, comprehensive,
On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi everyone,
I'm wondering if anyone knows of a way to extract data from a numeric
array along a line. I have a gridded dataset which I would like to be
able to choose two points and extract a 1-d array of the data
On 13 Oct 2006 07:37:07 -0700, Bernard [EMAIL PROTECTED] wrote:
IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/
Why?: because this IDE is not complicated. it ships with a debugger, a
gui designer, a source code checker and a regex console.
Like: obviously everything
Hate:
On 10/13/06, Grant Edwards [EMAIL PROTECTED] wrote:
That's how the various free PDF printer drivers for Windows work.
It might not even need Python.
Not unless you're trying to automate the process somehow.
Even a quick, crappy language like bash would do.
-- Theerasak
--
On 10/13/06, Paul McGuire [EMAIL PROTECTED] wrote:
Theerasak Photha [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Hi everyone,
I'm wondering if anyone knows of a way to extract data from a numeric
On 10/13/06, giuseppe [EMAIL PROTECTED] wrote:
What is the better IDE software for python programming?
Long story short, I use Emacs 22 from CVS (text editor on steroids),
but SPE looks like a good bet.
It all depends on criteria! There's a million free variables in your request...
---
On 10/13/06, Grant Edwards [EMAIL PROTECTED] wrote:
On 2006-10-13, Ahmer [EMAIL PROTECTED] wrote:
What do you guys use?
jed along with bash et. al.
Jed I must admit is nice. Especially since they added UTF-8 support.
etc.
42
LOL
-- Theerasak
--
On 13 Oct 2006 19:37:57 +0200, Neil Cerutti [EMAIL PROTECTED] wrote:
Disadvantages:
* Totally configurable.
I invested a lot of time in Emacs and Vim before that...I still use
Vim over SSH (and its Ruby support is the best of the two IMO)
-- Theerasak
--
On 10/13/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Theerasak Photha wrote:
I'm not in kolluge yet and I just learned about linear interpolation
today---although I don't think it would necessarily apply to this
problem, where the increments set by the grid might be more discrete
than
On 10/13/06, John Salerno [EMAIL PROTECTED] wrote:
Komodo, on the other hand, seems to have more of the features that the
personal version of Wing IDE lacks (call tips, class browser, etc.) but
the look of it seems very sparse for some reason.
But that's really a good thing.
-- Theerasak
--
On 10/13/06, hg [EMAIL PROTECTED] wrote:
I'm really interested: my *small* company is ready to spend the ~300$ in
the process, but Komodo looks _very_ sparse.
How do you go about it? ... I have resources to look at it for one or
two days.
It's entirely possible you could use a free IDE as
On 10/13/06, hg [EMAIL PROTECTED] wrote:
I have spend the past two years with eclipse/pydev ... a few issue are
still troublesome to me (speed, search for definitions ... being a few
of them) ... and until two days ago I had not even looked at Wing as I
wrongly thought it was on
On 10/13/06, John Salerno [EMAIL PROTECTED] wrote:
Is Eric available for Windows? I have found the install files before,
but they looked like it was for Linux.
You need QScintilla IIRC, but:
http://www.die-offenbachs.de/detlev/eric3-testimonials.html
Eric is becoming an integral part of our
On 10 Oct 2006 22:50:21 -0700, Leo Kislov [EMAIL PROTECTED] wrote:
If python ever provide this functionality it would be I guess
uC\u0327.width() == 1. But it's not clear when unicode.org will
provide recommended fixed font character width information for *all*
characters. I recently stumbled
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Theerasak Photha [EMAIL PROTECTED] writes:
Far better is to take the objects passed, *use* them in the way that
you need to use them, and catch exceptions that get raised at the
point where there is enough context to handle them
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Theerasak Photha [EMAIL PROTECTED] writes:
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Why have you re-implemented (a less-functional version of) 'isinstance'?
Ignorance, I think. But the issue is resolved now. Thank you.
Hopefully
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
I'm trying to learn about style conventions in Python. How would use
of getattr compare?
I'm having trouble knowing what you need explained.
You have available to you an interactive Python interpreter, and the
documentation. Can you show
On 10/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
An alternative to Adobe Distiller (part of Acrobat) is PDFCreator
yeah, i am actually just barely testing it out and so far it has
given me very good results, thanks for the tip.
See also: http://www.pytex.org
(La)TeX is the king of
On 10/11/06, Steve Holden [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
[...]
Any? Don't people plan June weddings thinking the weather
will be nice? And isn't one of the defintions of irony when
things turn out the opposite of what you expect?
But rain at a June wedding isn't truly
On 10 Oct 2006 22:34:39 -0700, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Like Alanis Morisette said about the song Isn't it Ironic:
What's ironic about the song is that it doesn't actually
contain any irony.
Any? Don't people plan June weddings thinking the weather
will be nice? And
On 10/11/06, bryan rasmussen [EMAIL PROTECTED] wrote:
I believe they are reputed to have a sense of humor.
Some of jokes I have heard on BBC World Service bordered on the
unprofessional. :)
After the big tsunami, one of the announcers mentioned that we've
been getting a *flood* of e-mail only
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Theerasak Photha [EMAIL PROTECTED] writes:
I hate June. June sucks. Blindly following some Roman custom relating
to Juno (the real reason why people have June weddings)
Well, our traditions and ceremonies in the anti-podes (thanks SteveH
On 10/11/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote:
Now the real question : what if the object is not an instance of any of
the types, but still support the expected interface ?
Perhaps:
try:
for attribute in ['foo', 'bar', '__baz__']:
getattr(mystery_object, '__%s__' % attribute)
On 10/11/06, Roel Schroeven [EMAIL PROTECTED] wrote:
My observation is that in general names keep hanging on to archaic forms
much longer than normal language. Examples:
- A very common name around here is Hendrickx. In normal language, the
'ckx' construction is replaced with 'ks'.
-
On 10/11/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote:
2/ functions that returns a status code and modify their arguments.
Argument modification for lists with one item is *sometimes* used to
emulate full lexical closure. (or at least that's what the folks on
freenode #python told me)
--
On 10/11/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
can be a lot better than a 30-level traceback that ends with a line
looking something like
fnut.index(gah)
Despite long experience with Perl, I am not a big follower of the
goose_level: blah method of error reporting...
also,
On 10/11/06, Alexander Eisenhuth [EMAIL PROTECTED] wrote:
but why doesent exec global ... create a identifier in the global namespace.
I haven't had much use for exec, but it operates in its own, more or
less cloistered namespace. It can't set globals among other things.
You can frob the
On 10/11/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Theerasak Photha wrote:
2/ functions that returns a status code and modify their arguments.
Argument modification for lists with one item is *sometimes* used to
emulate full lexical closure. (or at least that's what the folks
On 10/9/06, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Mon, 09 Oct 2006 15:31:56 +0200, Diez B. Roggisch
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
C++ has a lot of wicked, complicated features like overloadable assignment
statements and so on, misses GC, and is in
On 10/10/06, Martin v. Löwis [EMAIL PROTECTED] wrote:
Stuart McGraw schrieb:
So, does raw_input() ever return unicode objects and if
so, under what conditions?
At the moment, it only returns unicode objects when invoked
in the IDLE shell, and only if the character entered cannot
be
On 10/10/06, Steve Holden [EMAIL PROTECTED] wrote:
... in America. It's well-known among Brits that Americans don't
understand irony. They can be pretty oblique when it come to sarcasms
too, for that matter.
Ford Prefect: What?
-- Theerasak
--
On 10/10/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Martin was probably thinking of the standard distribution.
The 2.3 note says that raw_input() *can* return Unicode, not that it
should or must do it.
Practically speaking, at the heart of the matter: as of Python 2.5
final, does or can
On 10/9/06, Magnus Lycka [EMAIL PROTECTED] wrote:
gord wrote:
As a complete novice in the study of Python, I am asking myself where this
language is superior or better suited than others. For example, all I see in
the tutorials are lots of examples of list processing, arithmetic
On 10/10/06, Fredrik Lundh [EMAIL PROTECTED] wrote:
Theerasak Photha wrote:
Practically speaking, at the heart of the matter: as of Python 2.5
final, does or can raw_input() return Unicode under the appropriate
circumstances, according to user wishes?
didn't Martin just answer
On 10/9/06, Christoph Haas [EMAIL PROTECTED] wrote:
Yes, I know Perl makes 0 from anything that doesn't look like a number
but Python's principle is to never hide errors while Perl makes certain
assumptions. So Python prefers to complain.
And raises real exceptions moreover, instead of
On 10/7/06, Lawrence D'Oliveiro [EMAIL PROTECTED] wrote:
Just because most Western designers of databases do it wrong doesn't mean
that a) you should do it wrong, or b) they will continue to do it wrong
into the future, as increasing numbers of those designers come from Asian
and other
On 9 Oct 2006 11:27:40 GMT, Antoon Pardon [EMAIL PROTECTED] wrote:
I honestly don't see why variable would be an inappropiate word to use.
AFAIU, python assignment seems to behave much like lisp and smalltalk
and I never heard that those communities found the word variable
inappropiate to
On 10/10/06, Martin v. Löwis [EMAIL PROTECTED] wrote:
Theerasak Photha schrieb:
At the moment, it only returns unicode objects when invoked
in the IDLE shell, and only if the character entered cannot
be represented in the locale's charset.
Why only IDLE? Does urwid or another console UI
On 10/10/06, Georg Brandl [EMAIL PROTECTED] wrote:
Let me tell you: There are times when I'm really glad that as a German, I'm
not supposed to possess any sense of humour at all.
hehe. That's so not true.
--
Know thyself? If I knew my self, I would run. -- Goethe
--
On 10/10/06, Piet van Oostrum [EMAIL PROTECTED] wrote:
Roel Schroeven [EMAIL PROTECTED] (RS) wrote:
RS It's the same here in Belgium. Except that our Van is with a capital V in
RS most cases; if it's a lower v it either indicates nobility or a Dutch
name.
RS I don't see it as a problem. I
On 10/10/06, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Tue, 10 Oct 2006 03:16:25 -0400, Theerasak Photha
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
BTW, love the Anglo-Saxon nickname.
The usage started with an old ADD character, then got ported
On 10/10/06, Yang Zhang [EMAIL PROTECTED] wrote:
All the site-packages/*.so files get copied to the directory specified
in my ~/.pydistutils.cfg instead of lib-dynload under the prefix dir,
then proceeds to chmod 755 all the files in that directory (including
ones that existed before install).
On 10/9/06, Gabriel Genellina [EMAIL PROTECTED] wrote:
At Saturday 7/10/2006 04:35, hanumizzle wrote:
As the first post said ...couldn't python (in theory)..., I
was discussing
if it would be possible for python (in some future version) to manage the
literals so that they use the
On 10/11/06, Grant Edwards [EMAIL PROTECTED] wrote:
Like Alanis Morisette said about the song Isn't it Ironic:
What's ironic about the song is that it doesn't actually
contain any irony.
OH!! IT'S TEH 'META-IRONY'!! ZOMG!!!
-- Theerasak
--
http://mail.python.org/mailman/listinfo/python-list
I wrote this for someone else to take an object and list of types,
then check if obj is one of those types, raising an error otherwise.
Is it enough to rely on side effects or absence thereof, or should I
put return True in here somewhere?
def test_obj_type(obj, types):
for type in types:
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Jackson [EMAIL PROTECTED] writes:
I would like to test if an object can accept: obj[0]
Then do so. Use the object in the way you want to use it, and catch
any exceptions that you want to handle.
I'm trying to learn about style conventions
On 10/11/06, Ben Finney [EMAIL PROTECTED] wrote:
Why have you re-implemented (a less-functional version of) 'isinstance'?
Ignorance, I think. But the issue is resolved now. Thank you.
http://www.stanford.edu/~spqrsyc/crew/crew%20-%20ignorance.gif
It's amazing how much easier it is for a team
On 10/9/06, Bruno Desthuilliers [EMAIL PROTECTED] wrote:
hanumizzle wrote:
(snip)
Regexes are usually passed as literals directly to re.compile().
For which definition of usually ?
From definition of personal experience: all of the code I've written
or seen that used small regexes in such a
On 10/9/06, Ben Finney [EMAIL PROTECTED] wrote:
Bjoern Schliessmann [EMAIL PROTECTED] writes:
E. g. [in Java there is] no operator overloading, but +
concatenation of strings. What if you'd like to implement your own
string-derived class? Ah, never mind. Operator overloading is
bad(tm)
On 8 Oct 2006 01:49:50 -0700, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Even if it has - I'm not sure if it really does you good, for several
reasons:
- regexes - even enhanced ones - don't build trees. But that is what
you ultimately want
from an expression like sin(log(x))
- even
On 8 Oct 2006 06:12:48 -0700, John Machin [EMAIL PROTECTED] wrote:
Show us the code that is creating instances of the panel class ...
panel1 =
panel(number=?,level=?,location=?,mops=,matrix=?)
What are you passing as the 4th positional arg
^^^ ???
This
On 10/8/06, Roy Smith [EMAIL PROTECTED] wrote:
Diez B. Roggisch [EMAIL PROTECTED] wrote:
Certainly true, and it always gives me a hard time because I don't know
to which extend a regular expression nowadays might do the job because
of these extensions. It was so much easier back in the old
On 10/8/06, km [EMAIL PROTECTED] wrote:
Hi all,
was looking at references in python...
a = 10
b = a
id(a)
153918788
id(b)
153918788
where a and b point to the same id. now is this id an address ?
The id may be considered similar to an address in C, etc. slightly
On 10/8/06, km [EMAIL PROTECTED] wrote:
Hi all,
in the CPython implementation, it's the address where the object is
stored. but that's an implementation detail.
ok so can i point a vairiable to an address location just as done in C
language ?
y = 'ATGCATGC'
x = buffer(y)
On 10/8/06, km [EMAIL PROTECTED] wrote:
Hi all,
Say that you copy the contents of file foo into file bar and delete
the original foo. Of course file bar still exists in this case. Not
much of a difference; I haven't seen buffer objects yet (I am also new
to Python), but the
On 10/8/06, Sybren Stuvel [EMAIL PROTECTED] wrote:
3. Using IIS at all for that matter, does WSGI work on IIS, do any
frameworks?
Why would you want to use that monstrosity?
Two words: contractual obligation
-- Theerasak
--
http://mail.python.org/mailman/listinfo/python-list
75 matches
Mail list logo