The first official PIL 1.1.6 alpha is now available from effbot.org:
http://effbot.org/downloads
(look for Imaging-1.1.6a1.tar.gz)
Notable additions since 1.1.5:
+ Added pixel access object. The load method now returns
an access object that can be used to directly get and set pixel
when putting excactly what you got, i got
python -c import amara; print dir(amara)
Traceback ( File interactive input, line 1
python -c import amara; print dir(amara)
^
SyntaxError: invalid syntax
when doing it seperately, i got
import amara
Well, I think I found a nasty little hack to get around it, but I still
don't see why it doesn't work in the regular way.
def collect(fields, reducer):
def rule(record):
# Nasty hack b/c can't get lexical scoping of status to work
status = [True]
def _(x, y, s=status):
Steven Bethard wrote:
I thought stuff like the following was idiomatic in GUI programming.
Do you really want separate names for all those callbacks?
# generate calculator keypad buttons
Button(label='7', command=lambda: user_pressed(7)).grid(column=1, row=1)
Button(label='8',
[EMAIL PROTECTED] wrote:
I am not completely knowledgable about the status of lexical scoping in
Python, but it was my understanding that this was added in a long time
ago around python2.1-python2.2
I am using python2.4 and the following code throws a status variable
not found in the
Steven Bethard wrote:
Paul Rubin wrote:
Chris Mellon [EMAIL PROTECTED] writes:
As someone who does a tremendous amount of event-driven GUI
programming, I'd like to take a moment to speak out against people
using us as a testament to the virtues of lamda. Event handlers are
the most
Op 2005-12-10, Devan L schreef [EMAIL PROTECTED]:
Antoon Pardon wrote:
On 2005-12-10, Duncan Booth [EMAIL PROTECTED] wrote:
[snip]
I also think that other functions could benefit. For instance suppose
you want to iterate over every second element in a list. Sure you
can use an extended
Fredrik Lundh [EMAIL PROTECTED] writes:
a temporary factory function should be sufficient:
def digit(label, x, y):
def callback():
# print BUTTON PRESS, label # debug!
user_pressed(int(label))
Button(label=label, command=callback).grid(column=x,
Beau Gould is the owner and moderator of what was until very recently
the 'pythonzopejobs' group on groups.yahoo.com. Two days ago, I got a
PHP/MySQL job from a Yahoo Groups address I didn't recognize.
Initially, I classified it as spam, and forgot about it.
Today, I had reason to search the
Paul Rubin http://[EMAIL PROTECTED] writes:
binops = {'+': (lambda x,y: x+y),
'-': (lambda x,y: x-y),
'*': (lambda x,y: x*y),
'/': (lambda x,y: x/y),
'**': (lambda x,y: x**y)
}
How would you refactor that, with no
That does make sense. So there is no way to modify a variable in an
outer lexical scope? Is the use of a mutable data type the only way?
I'm trying to think of a case that would create semantic ambiguity when
being able to modify a variable reference in an outer scope, but I
cannot (which is
Paul Rubin wrote:
Fredrik Lundh [EMAIL PROTECTED] writes:
a temporary factory function should be sufficient:
def digit(label, x, y):
def callback():
# print BUTTON PRESS, label # debug!
user_pressed(int(label))
Button(label=label,
[EMAIL PROTECTED] wrote:
I am using python2.4 and the following code throws a status variable
not found in the inner-most function, even when I try to global it.
def collect(fields, reducer):
def rule(record):
status = True
def _(x, y):
cstat = reducer(x,
Thank you Neil,
that is what I needed.
B.
Neil Hodgson wrote:
import email.Header
x = '=?iso-8859-1?q?somefile=2ezip?='
email.Header.decode_header(x)
[('somefile.zip', 'iso-8859-1')]
Neil
--
http://mail.python.org/mailman/listinfo/python-list
Thanks for the example code. Definately provided a few different ways
of doing the construction.
Actually, the status variable was the only thing that mattered for the
inner function. The first code post had a bug b/c I was first just
trying to use reduce. However, I realized that the boolean
[EMAIL PROTECTED] wrote:
That does make sense. So there is no way to modify a variable in an
outer lexical scope? Is the use of a mutable data type the only way?
I'm trying to think of a case that would create semantic ambiguity when
being able to modify a variable reference in an outer
Sometimes the best way to understand something is to understand the
mechanism behind it. Maybe that is true for exceptions. This is a model
I have right now (which probably is wrong)
1. When a runtime error occurs, some function (probably some class
method) in Python is called behind the scenes.
[EMAIL PROTECTED] writes:
How would you refactor that, with no lambda?
Or, why would you want to refactor that ?
I like it the way it was written. I'm not the one saying lambda is bogus.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Thanks for the example code. Definately provided a few different ways
of doing the construction.
Actually, the status variable was the only thing that mattered for the
inner function. The first code post had a bug b/c I was first just
trying to use reduce. However,
Op 2005-12-10, Brian Beck schreef [EMAIL PROTECTED]:
Antoon Pardon wrote:
Will it ever be possible to write things like:
a = 4:9
I made a silly recipe to do something like this a while ago, not that
I'd recommend using it. But I also think it wouldn't be too far-fetched
to allow slice
[EMAIL PROTECTED] writes:
Is this model correct or wrong? Where can I read about the mechanism
behind exceptions?
Usually you push exception handlers and finally clauses onto the
activation stack like you push return addresses for function calls.
When something raises an exception, you scan the
Op 2005-12-11, Bengt Richter schreef [EMAIL PROTECTED]:
On 10 Dec 2005 12:07:12 -0800, Devan L [EMAIL PROTECTED] wrote:
Antoon Pardon wrote:
On 2005-12-10, Duncan Booth [EMAIL PROTECTED] wrote:
[snip]
I also think that other functions could benefit. For instance suppose
you want to iterate
Dennis Lee Bieber wrote:
On Sun, 11 Dec 2005 22:00:55 -0500, shawn a [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
I havet these 2 files in the same dir. This is code im writing to learn
pythong
mkoneurl.py:
#! /usr/bin/env python
import make_ou_class
run =
Antoon Pardon wrote:
Suppose I have a list with 10 000 elements and I want
the sum of the first 100, the sum of the second 100 ...
One way to do that would be:
for i in xrange(0,1,100):
sum(itertools.islice(lst, i, i+100))
But itertools.islice would each time start from the
On 12 Dec 2005 08:34:37 GMT, Antoon Pardon [EMAIL PROTECTED] wrote:
Op 2005-12-10, Devan L schreef [EMAIL PROTECTED]:
Antoon Pardon wrote:
On 2005-12-10, Duncan Booth [EMAIL PROTECTED] wrote:
[snip]
I also think that other functions could benefit. For instance suppose
you want to iterate
Op 2005-12-11, Rick Wotnaz schreef [EMAIL PROTECTED]:
Because you're accustomed to one set of conventions, you
may find Python's set strange at first. Please try it, and
don't fight it. See if your objections don't fade away. If
you're like most Python newbies, you'll stop thinking about
On Mon, 12 Dec 2005 09:15:38 +0100, Fredrik Lundh [EMAIL PROTECTED] wrote:
Steven Bethard wrote:
I thought stuff like the following was idiomatic in GUI programming.
Do you really want separate names for all those callbacks?
# generate calculator keypad buttons
Button(label='7',
Op 2005-12-12, Bengt Richter schreef [EMAIL PROTECTED]:
On 12 Dec 2005 08:34:37 GMT, Antoon Pardon [EMAIL PROTECTED] wrote:
Op 2005-12-10, Devan L schreef [EMAIL PROTECTED]:
Antoon Pardon wrote:
On 2005-12-10, Duncan Booth [EMAIL PROTECTED] wrote:
[snip]
I also think that other functions
On Mon, 12 Dec 2005 08:26:59 +, Steve Holden [EMAIL PROTECTED] wrote:
[...]
The scoping rules do work when you obey them:
def f1(a, b):
... s = a+b
... def _(x):
... return s+x
... return _
...
func = f1(12, 13)
func(10)
35
Here the nested lexical scopes rule
[EMAIL PROTECTED] (Bengt Richter) writes:
for tup in ((str(d+1), d%3+1,3-d//3) for d in xrange(9)): digit(*tup)
tweak 'til correct ;-)
GMTA. See:
http://www.nightsong.com/phr/python/calc.py
written a couple years ago. It uses:
for i in xrange(1,10):
Mike Meyer wrote:
Laszlo Zsolt Nagy [EMAIL PROTECTED] writes:
Is it possible to tell, which instance was used to call the
classmethod that is currently running?
Ok, I read through what got to my nntp server, and I'm still
completely confused.
A class method isn't necessarilry called
Hi everyone,
I am using Common Lisp for a while and nowadays I've heard so much
about Python that finally I've decided to give it a try becuase Python
is not very far away from Lisp family.
I cannot believe this! This snake is amazing, incredible and so
beautiful! You, Pythonists, why didn't you
Hi Yves,
You could try using EDDIE Tool's PORT directive to periodically make TCP
connections to your clients and check the result matches what is
expected. The alert engine will make it easy for you to define actions
to perform for failure conditions.
http://eddie-tool.net/
You could also
Welcome to Python world :)
On 12 Dec 2005 03:44:13 -0800, Tolga [EMAIL PROTECTED] wrote:
Hi everyone,
I am using Common Lisp for a while and nowadays I've heard so much
about Python that finally I've decided to give it a try becuase Python
is not very far away from Lisp family.
I cannot
[Paul Boddie]
It's
interesting that minidom plus PrettyPrint seems to generate the xmlns
attributes in the serialisation, though; should that be reported as a
bug?
I believe that it is a bug.
[Paul Boddie]
Well, with the automagic, all DOM users get the once in a lifetime
chance to
Op 2005-12-11, Steven D'Aprano schreef [EMAIL PROTECTED]:
On Sat, 10 Dec 2005 15:46:35 +, Antoon Pardon wrote:
But I *want* other classes to poke around inside my implementation.
That's a virtue, not a vice. My API says:
In addition to the full set of methods which operate on the
hi
i have a piece of python code extract that calls an external java
program
cmd = java someclass someargs
try:
ret = os.WEXITSTATUS(os.system(cmd))
except:
print blah
else:
dosomething(ret)
the thing is, the java class someclass produces it's own errors when
something goes wrong.
Hi all,
in a previous post I asked help for colorizing expanded tab.
I wanted to list text files showing in colors LFs and the expanded
tabs.
I hoped to use only bash but, being impossible, I reverted to Python.
I programmed a very short script .
Here it is (... and I ask comments or critics):
#
[EMAIL PROTECTED] wrote:
reducer does have no side effects so I suppose short-circuting it would
be the best thing. I think the only thing about the last example is
that it starts things off with a zero. I think that would boink it.
In that case, and assuming that fields contains at least one
[EMAIL PROTECTED] wrote:
ElementTree ( http://www.xml.com/pub/a/2003/02/12/py-xml.html ) is a
Python InfoSet rather than a Python data binding. You access nodes
using generic names related to the node type rather than the node name.
Whether data bindings or Infosets are your preference is a
hi i want to write a program that makes a video of my desktop, i think that
can be via return or output xwd functions in X11 lib then through to the mpeg
video encoding codes, hmm is there an easier solution to this via python?
thanks for your attention.
--
On Mon, 12 Dec 2005 12:12:46 +, Antoon Pardon wrote:
And maybe it isn't a Coordinate class at all, hmmm?
Indeed it isn't. It is usually a Point class.
An ordinary, Cartesian, real-valued Coordinate is a pair of ordinates, an
X and Y ordinates. That's what it *is* -- a coordinate class
Mike Meyer wrote:
Bruno Desthuilliers [EMAIL PROTECTED] writes:
^^ There is no functionality to check if a subclass correctly
implements an inherited interface
I don't know of any language that provide such a thing. At least for
my definition of correctly.
Well, since your definition of
Mike Meyer wrote:
Shane Hathaway [EMAIL PROTECTED] writes:
(snip)
What's really got me down is the level of effort required to move code
between modules. After I cut 100 lines from a 500 line module and
paste them to a different 500 line module, I have to examine every
import in both modules
Sinan Nalkaya wrote:
hi i want to write a program that makes a video of my desktop, i think that
can be via return or output xwd functions in X11 lib then through to the mpeg
video encoding codes, hmm is there an easier solution to this via python?
http://www.unixuser.org/~euske/vnc2swf/
On Monday 12 December 2005 03:34 pm, Fredrik Lundh wrote:
Sinan Nalkaya wrote:
hi i want to write a program that makes a video of my desktop, i think
that can be via return or output xwd functions in X11 lib then through to
the mpeg video encoding codes, hmm is there an easier solution to
[James]
A couple of years ago there wasn't one and the recommendation was to
simply use Java libs. Have things changed since?
AFAIK, things haven't changed.
Things you might be interested to know
1. There is a module in PyXML, called javadom, that layers python
semantics on top of various
Op 2005-12-12, Steven D'Aprano schreef [EMAIL PROTECTED]:
On Mon, 12 Dec 2005 12:12:46 +, Antoon Pardon wrote:
And maybe it isn't a Coordinate class at all, hmmm?
Indeed it isn't. It is usually a Point class.
An ordinary, Cartesian, real-valued Coordinate is a pair of ordinates, an
X
Antoon Pardon [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Op 2005-12-11, Rick Wotnaz schreef [EMAIL PROTECTED]:
Because you're accustomed to one set of conventions, you
may find Python's set strange at first. Please try it, and
don't fight it. See if your objections don't fade
hi,
Im reseaching fractals, and how to make them in python using recursion.
I've written a bit of code to make the koch isalnd but something isn't
right, I have the basic shape but there's something wrong with the
recursion i've used, could someone help me.
Here is the code im using:
import
import amara
print dir(amara)
['__builtins__', '__doc__', '__file__', '__name__', '__path__',
'__version__', 'binderytools', 'os', 'parse']
So it's not able to load domtools. What do you get trying
from amara import domtools
print domtools.py
--
Uche Ogbuji
[EMAIL PROTECTED] wrote:
hi
i have a piece of python code extract that calls an external java
program
cmd = java someclass someargs
try:
ret = os.WEXITSTATUS(os.system(cmd))
except:
print blah
else:
dosomething(ret)
the thing is, the java class someclass produces it's own
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Spoke too soon, i get this error when running amara in
ActivePython
import amara
amara.parse(http://www.digg.com/rss/index.xml;)
Traceback (most recent call last):
File interactive input, line 1, in ?
File
Hi there,
I have a python application (many python scripts) and I start the
application like this
python myServer.py start
in window. It is running in dos window. Now I would like to put it in
background as NT service. I got a example code: SmallestService.py from
chapter 18 of the book
Hi there,
I'm transfering small pickled object over a socket.
The performance I see is lower than expected.
How fast should I be able to ping/pong small objects in python?
I use a threaded SocketServer, telnetlib and pickle to test this,
and I see that a 100 ping-pongs take 4 seconds or so,
I need a function that will tell if a given variable is a character or
a number. Is there a way to do this? Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
My program reads ID3 tags from MP3 files and enters them into a database.
I have been testing it on a variety of MP3s, including ones with
weird characters in the tags (such as norweigan black metal bands)
When this happens it throws the program as they are outside the ascii
range, the program
Tuvas [EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
I need a function that will tell if a given variable is a
character or a number. Is there a way to do this? Thanks!
If you really need to, you can test for type:
for x in ['3',3,3.1,3j]:
... print type(x)
type 'str'
type 'int'
I am a beginner, I have this line that write something on the
screen(Text(Point(4,15), Question 4).draw(window). How do I delete it
later on in the program so that I can write another one.
--
http://mail.python.org/mailman/listinfo/python-list
John Morey on comp.lang.python said:
I have tried using the encode() function to change the values to unicode
however I cannot do this because they are returned from the id3
library as NoneType instances. which means I need to convert
to a string first (which i can't do because it crashes
On Sat, 10 Dec 2005 08:25:08 GMT in comp.lang.python, Tim Roberts
[EMAIL PROTECTED] wrote:
[...]
The design of the PHP language is not too bad, and the standard library is
extensive. It is quite possible to write well-structured, class-based web
programs with PHP.
However, it seems that almost
Not wanting to hijack this thread, but it got me interested in
installing amara. I downloaded Amara-allinone-1.0.win32-py2.4.exe
and ran it. It professed that the installation directory was to be
D:\Python24\Lib\site-packages\ ... but it placed FT and amara in D:
Heres a link to the koch island:
http://mathworld.wolfram.com/LindenmayerSystem.html
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody,
it was a long way, have a runing COM connection,
but wishing run it from the console.
The COM part is embedded in the example 'createwin.py' from pywin/Demo
but it operates only with pythonwin /run 'test.py'.
Is it possible to use that as an python thread and hide the pythonwin
zxo102 wrote:
Hi there,
I have a python application (many python scripts) and I start the
application like this
python myServer.py start
in window. It is running in dos window. Now I would like to put it in
background as NT service. I got a example code: SmallestService.py from
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
Not wanting to hijack this thread, but it got me interested in
installing amara. I downloaded
Amara-allinone-1.0.win32-py2.4.exe and ran it. It professed that
the installation directory was to be
D:\Python24\Lib\site-packages\ ... but it
Tim Roberts wrote:
Xah Lee [EMAIL PROTECTED] wrote:
recently i got a project that involves the use of php. In 2 days, i
read almost the entirety of the php doc. Finding it a breeze because it
is roughly based on Perl, of which i have mastery.
i felt a sensation of neatness, as if php =
How does Scons compare to distutils? Should I ignore
it or move to it?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
You are not the first lisper who fell inlove with Python...
Check this out:
http://www.paulgraham.com/articles.html
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to call a SOAP web service with python and I having success
unless I need to pass a BigInteger parameter. Since python is
dynamically typed it seems to be sending a regular int instead of
BigInteger and my web service doesn't like that. Is there a way for me
to tell my variable
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] (Alex Martelli) wrote:
Tom Anderson [EMAIL PROTECTED] wrote:
...
Haskell is strongly and statically typed - very strongly and very
statically!
Sure.
However, what it's not is manifestly typed - you don't have to put the
types
Marc 'BlackJack' Rintsch wrote:
In [EMAIL PROTECTED], JohnBMudd
wrote:
Python could take over the programming world except one of it's best
features (scope by indent) is a primary reason why it never will. It's
not flexible enough. A large percentage of programmers won't even try
the
Jim Steil wrote
I am trying to call a SOAP web service with python and I having success
unless I need to pass a BigInteger parameter. Since python is
dynamically typed it seems to be sending a regular int instead of
BigInteger and my web service doesn't like that. Is there a way for me
to
I am using a toolkit that has a SetFaveNumbers() method. the method
accepts any number
of comma-separated numbers.
the following are all valid examples:
FooToolkit.SetFaveNumbers(1,3,5)
FooToolkit.SetFaveNumbers(2,4,6,8,10)
FooToolkit.SetFaveNumbers(1)
I do not know how this method is
This can't be the most elegant way to get a command line parameter into
an sql query. It works but I can't explain why. Is there another, more
correct way? Here sys.argv[1] is a topic like laugher or technology
import mx.ODBC.Windows as odbc
import sys
driv='DRIVER={Microsoft Access Driver
In article [EMAIL PROTECTED],
Tolga [EMAIL PROTECTED] wrote:
.
.
.
Actually I loved Lisp and still don't want to throw it away beacuse of
my interest of artificial intelligence, but using Python is not
programming, it IS a
What is the equivalent of a C++ (or C#) namespace in Python?
Yours /Carl
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
[EMAIL PROTECTED] (Alex Martelli) writes:
Mike Meyer [EMAIL PROTECTED] wrote:
In addition to the full set of methods which operate on the coordinate
as
a whole, you can operate on the individual ordinates via instance.x and
instance.y which are floats.
That's
Oh, Mr(s) Laird, you've indicated to a very important thing for me:
Let's suppose that I actually want to leave Lisp totally but what about
AI sources? Most of them are based on Lisp. Oh yes, yes, I know, one
may study AI with any language, even with BASIC, but nearly all
important AI books start
[EMAIL PROTECTED] wrote:
I am using a toolkit that has a SetFaveNumbers() method. the method
accepts any number of comma-separated numbers.
any number of arguments, that is.
the following are all valid examples:
FooToolkit.SetFaveNumbers(1,3,5)
FooToolkit.SetFaveNumbers(2,4,6,8,10)
[EMAIL PROTECTED] wrote:
I am using a toolkit that has a SetFaveNumbers() method. the method
accepts any number
of comma-separated numbers.
the following are all valid examples:
FooToolkit.SetFaveNumbers(1,3,5)
FooToolkit.SetFaveNumbers(2,4,6,8,10)
FooToolkit.SetFaveNumbers(1)
I do
Carl [EMAIL PROTECTED] wrote:
What is the equivalent of a C++ (or C#) namespace in Python?
modules and packages:
http://docs.python.org/tut/node8.html
/F
--
http://mail.python.org/mailman/listinfo/python-list
Carl wrote:
What is the equivalent of a C++ (or C#) namespace in Python?
Your best bet will be modules:
---
a.py
def test():
print I am test() from a.py
b.py
import a
a.test()
---
They are no direct match to C++-namespaces though, as the namespace doesn't
show up in the
SOAPpy
-Jim
Jim Steil
VP of Application Development
CustomCall Data Systems
(608) 274-3009 x286
Fredrik Lundh wrote:
Jim Steil wrote
I am trying to call a SOAP web service with python and I having success
unless I need to pass a BigInteger parameter. Since python is
Hello,
Does anyone know which methods do I have to override for allowing Nones
to be accepted and sended from SimpleXMLRPCServer to the client?
Thanks
Daniel
--
http://mail.python.org/mailman/listinfo/python-list
evil_daffid wrote:
hi,
Im reseaching fractals, and how to make them in python using recursion.
I've written a bit of code to make the koch isalnd but something isn't
right, I have the basic shape but there's something wrong with the
recursion i've used, could someone help me.
Here is
On Sat, 10 Dec 2005 11:45:12 +0100,
Fredrik Lundh [EMAIL PROTECTED] wrote:
to make it better. Maybe it could be 'item-title', from 'dc:title'
by dc:creator. Then the text for your file would be 'The zlib module',
from '(the eff-bot guide to) The Standard Python Library' by Fredrik
Hello,
I would like to develop a new network protocol, where the server and the
clients are Python programs.
I think to be effective, I need to use TCP_NODELAY, and manually
buffered transfers.
I would like to create a general messaging object that has methods like
sendinteger
recvinteger
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
How does Scons compare to distutils? Should I ignore
it or move to it?
[...]
Yes.
Seriously, what are you doing?
distutils seems pretty ubiquitous when building Python extensions,
since it has special knowledge of the Python with which it is run,
zxo102 wrote:
Hi there,
I have a python application (many python scripts) and I start the
application like this
python myServer.py start
in window. It is running in dos window. Now I would like to put it in
background as NT service. I got a example code: SmallestService.py from
Found my answer.
x = 1L
sets x to 1 and makes it a type of Long. I tested with my web
service and it works.
-Jim
Jim Steil
VP of Application Development
CustomCall Data Systems
(608) 274-3009 x286
Fredrik Lundh wrote:
Jim Steil wrote
I am trying to call a SOAP web
On 12 Dec 2005 08:26:06 -0800, Tuvas [EMAIL PROTECTED] wrote:
I need a function that will tell if a given variable is a character or
a number. Is there a way to do this? Thanks!
Use isinstance().
e.g.:
x = 7
isinstance(x, int)
- True
isinstance(x, basestring)
- False
x = Hello
isinstance(x,
BartlebyScrivener wrote:
This can't be the most elegant way to get a command line parameter into
an sql query. It works but I can't explain why. Is there another, more
correct way? Here sys.argv[1] is a topic like laugher or technology
import mx.ODBC.Windows as odbc
import sys
Tuvas wrote:
I need a function that will tell if a given variable is a character or
a number. Is there a way to do this? Thanks!
You can test the type of the object as follows:
a='abc'
isinstance(a, str)
True
isinstance(a, (list, tuple))
False
The old way was to use type(a), but I think
thanks for all your input. Ive gotten it to work thanks!
--shawn
On 12/12/05, Steve Holden [EMAIL PROTECTED] wrote:
Dennis Lee Bieber wrote:
On Sun, 11 Dec 2005 22:00:55 -0500, shawn a [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
I havet these 2 files in the same dir.
John J. Lee wrote:
I imagine scons has some support for
distutils.
Not really, no.
--
Robert Kern
[EMAIL PROTECTED]
In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.
-- Richard Harter
--
http://mail.python.org/mailman/listinfo/python-list
On 12 Dec 2005 01:23:48 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks for the example code. Definately provided a few different ways
of doing the construction.
Actually, the status variable was the only thing that mattered for the
inner function. The first code post had a bug b/c I
When I'm feeling too lazy to do imports while moving large blocks of
code, I use this little hack. It lets me proceed with checking whether
the move does what I wanted and at the end I fix the imports and remove
the try/except wrapper. I think it would achieve your desired result
and not have an
Hello, I am switching from VB to python.
I managed to crank my files into a sqlite
dbase, converting the original names to
unicode with s=unicode(s,latin-1).
Everything is working fine, but when
I query the dbase with dbapi2 and want
to retrieve names this way:
'Select * from table where name like
Did anybody manage to use pairs() or coplot() from python using the rpy
module?
In fact any information going a bit beyond Tim Churches' very useful
examples on plot() usage in rpy would be highly welcome.
Thx.
malv
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 183 matches
Mail list logo