the merits and be worth a look, but
I think it's actually a 'phish'. Sigh. Too bad. I like reading crackpot
AI theories now and then.
Cheers,
Terry
*By which I really just mean an "unreviewed crackpot theory",
since, with the state of the art being what it is, pretty m
;RPython" part in Javascript, then use
the PyPy project to fill in the rest? That way, you don't
even have to maintain most of it.
http://codespeak.net/pypy/dist/pypy/doc/news.html
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
the input and isn't aligned there.
There's this approach, too:
from textwrap import dedent
message = dedent(
"""
This is line1.
This is line2
This is line3
"
g an addition or by looking for th __add__
method. But then, if you need addition support, then your code
probably already has an addition, so why not just let it fail there?).
So be more minimal and throw in checks for specific problems --
especially the ones that would cause a wrong result rather t
imedia library
(like PyGame, for example). The platform you are running on may matter
too (Windows, Mac, Linux, etc).
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
package managers
have probably done the work for you). I only say 'probably' because
I'm guessing this from knowing Debian, which Ubuntu is based on,
and guessing that no one would go out of their way to *remove*
readline support.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anan
ried returning the same thing from __repr__,
but the latter causes this unpleasant result:
>>> print jp.concepts['adjectives']['BLUE'][0]
Traceback (most recent call last):
File "", line 1, in ?
UnicodeEncodeError: 'ascii' c
Martin v. Löwis wrote:
> Terry Hancock schrieb:
> > Or, put another way, what exactly does 'print' do when it gets a
> > class instance to print? It seems to do the right thing if given a
> > unicode or string object, but I cant' figure out how to make
y Problem is, I want to know how can I force match functions to
> match the pattern any location in the subject. i.e I want to turn off
> before said behaviour.
re.match = re.search
perhaps?
Stupid thing to do, but it meets the spec.
Cheers,
Terry
--
Terry Hancoc
d get that pixel's value. ;-)
Seriously, that ought to do it. Bear in mind that you need
to use the right sampling mode (IIRC, you want ANTIALIAS).
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
is as a quick-reference to deeper documentation that I
actually need in the process of writing Python code.
I don't really know if I'm the "market" for this site. I'm
already sold on Python, after all, I just want something
useful that I can use to stay up-to-date, and
rinting), use list(im.getdata()).
>
> So you could get them and count them in :)
> Don't know if you should do that on a 1600x1200 wallpaper
> tho :D
I think he's thinking of how to get the values for the
master image.
> Terry Hancock wrote:
> > On Sun, 22 Jan 2006 21:0
han character names might become very popular as they span
several languages). But I bet it will remain underused so
long as English remains the most popular international trade
language.
In the meantime, though, I predict many luddites will
scream "But it doesn't work on my vintage VT-220 terminal!"
(And I may even be one of them).
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
a
little afraid of problems cropping up).
> I'm using:
> - Python 2.3.5
> - ZODB 3.2.10 (same as in Zope 2.7.8)
> - Zope 2.7.8
> - Plone 2.1.1
> ... all built from source on Debian Woody.
The first option, if it works, would require that the ZODB
used by your application is the sa
wild" and use obscure characters,
I suspect that I would have much better luck reading their
programs with han characters, than with, say, the Chinese
phonetic names! Possibly even better than what they thought
were the correct English words, if their English isn't that
good.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
o be more of a technical advertisement than
the "buzzword sell" on the front page. This is the page
someone reads who is imagining that *they* are going to have
to learn this language (not pay someone else to).
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
t done somewhere before.
>
> You're probably thinking of PyPy:
Huh.
Seems like the PyPy logo should surely be an Ouroboros!
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ny experience with high-speed, digital, electronic
computers?"
:-D
For those who are too young, or weren't film students, the
answer is "Yes, my aunt has one".
Ironically, this is now funny for exactly the opposite
reason from the way it was intended!
--
Terry Hancock ([EMAIL
right when drawn wrong). And when you have the actual
stroke sequence data as input, recognition is easier and
more reliable (I think that was the point behind the
"graffiti" system for the Palm Pilot).
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
assumed this would already be a solved problem
by now. Maybe it was a lot harder than expected.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 28 Jan 2006 09:47:20 -0800
Scott David Daniels <[EMAIL PROTECTED]> wrote:
> Terry Hancock wrote:
> > On Fri, 27 Jan 2006 13:44:19 -0800
> > Scott David Daniels <[EMAIL PROTECTED]> wrote:
> >> Paragraph 3 in "Why Python"
atory scopes
where you just punch in coordinates and make sure the
counterweight doesn't smack you in the head. ;-)). Now that
I'm out of it, though, I would like to be able to do some
types of amateur observing for fun (and for my kids).
Cheers,
Terry
--
Terry Hanc
ame-specific mailing list, which is really the best place
to ask about this sort of thing.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
x27;s not bound so it gets
immediately garbage-collected. And it won't be there after
the module is byte-compiled. So, you lose a little time the
very first time the file is used (but that's technically
true for a regular comment too -- I think this loses you a
little more time). But it
ny I do it for is migrating
> to LINUX (slowly) by customer demand (!) and I guess
> don't want to do new COM projects.
FWIW, for me, "Windows only"="write off", so I'm glad you're
not going this route.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks
sting and not finding
it to work perfectly, but I may have been doing something
wrong. Can't recover it at the moment, but some search
engine work might turn it up.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
quot;an
object initialized by the string 'myfile.jpg'", but is
rather a function loading data from a file called
'myfile.jpg' and creating a PIL Image object from *that*.
Remember, programming is an art, not a science.
"Object-oriented style" is a subjective and
added, the less that will be true, though.
I don't think we've busted the system yet, but I think
there's some reason for caution against making things any
*more* complicated. I still see "newbie-friendliness" as a
MAJOR plus for Python -- it increases the chance that users
o
to turn up some other results.
Note that pyogg/pyvorbis will also give you access to
the embedded metadata in Ogg files, which sounds like it
might be useful in your application.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
given:
func_table = { 'motd':motd,}
then you can call
func_table['motd']()
and its the same as
motd()
Whatever motd() is.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
e "Journal of
Irreproducible Results" that somehow got accidentally
submitted to a serious journal (of course, I don't know
enough about psychology journals to know if that is really
a "serious journal", but I'm taking it at face value).
Of course, you *could* conclude tha
On Fri, 3 Feb 2006 09:39:39 +0100
"Fredrik Lundh" <[EMAIL PROTECTED]> wrote:
> Terry Hancock wrote:
> > Frankly this paper sounds like a bid for the "Journal of
> > Irreproducible Results" that somehow got accidentally
> > submitted to a seriou
will be true whether he uses PyMedia, PyGame, Numeric
or all three.
Indeed, as an implementation matter only the "glue code"
will be interpreted in Python -- but the OP will not have to
write anything but such "glue code".
For me, who no longer writes *any* C code, no
s are "instance
factories" in Python. It's almost as if a class is nothing
more than a special category of functions that return
instances.
I don't know if I've helped at all, but I hope so. ;-)
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
e a formal introduction to Javascript would
explain these things -- but I note that many online "how to"
type documents skip them, partly because OOP is not very
popular with most casual Javascripters).
I tend to think of Javascript as "almost Python, but
stupidly designed", because
n") rather than Python (a.k.a. "C Python").
Perhaps you have both Jython and Python 2.4 installed and
you are launching the latter when you meant the former?
In any case, C Python cannot load Java classes (that's the
main raison d'etre for Jython).
--
Terry Hancock ([E
. My impression is that
people do things in PHP that are ordinarily split between
templates (ZPT or DTML) and Python "scripts" in Zope.
Of course, there are a dozen other ways to do
web-programming in Python, too.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
internationalize your code.
But that's a matter of taste.
It is interesting to note, however, that the Python repr()
function prefers to use single quotes, using double quotes
only when a single quote is embedded in the string.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On 09 Feb 2006 12:54:04 + (GMT)
Sion Arrowsmith <[EMAIL PROTECTED]> wrote:
> Terry Hancock <[EMAIL PROTECTED]> wrote:
> >[EMAIL PROTECTED] wrote:
> >> Just to present a complete picture, not mentioned in
> >this > thread are triple-quoted strings:
> &
-licensed fonts can be a bit difficult
because there are so-many "sort of" free fonts that it
clutters the field. Several good fonts are included in the
Debian Linux distribution, though, and of course, they had
to get debian-legal's stamp of approval to get there, so
they are indeed fre
lighter-weight package than
Zope, and there's maybe a dozen different ones to choose
from. Easier to learn, but probably more work in the long
run if you have to do a lot of script work on your site.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
ht
b, which is "kwintoopliKATE").
So what's a 1-element tuple, anyway? A "mople"? "monople"?
It does seem like this lopsided pythonic creature (1,) ought
to have a name to reflect its ugly, newbie-unfriendly
nature.
Are we having fun yet? ;-)
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 13 Feb 2006 18:27:40 -0800
Erik Max Francis <[EMAIL PROTECTED]> wrote:
> Terry Hancock wrote:
> > The only tuple I pronounce with the "-uh-" is "couple",
> > and I usually call that a "two-tuple" when dealing with
> > Python.
cksums
until they fail again. Actually, that will work just coming
from the beginning, too.
If instead, the region continues to be unrecognizeable to
the end of the frame, then you need the next frame anyway.
Seems like it could get pretty close to optimal (but we
probably are re-inventing rsync
On Tue, 14 Feb 2006 10:40:09 -0500
Tim Peters <[EMAIL PROTECTED]> wrote:
> the-acid-test-is-whether-you-say-"xor"-with-one-syllable-
> or-three-ly y'rs - tim --
Oh dear, I say it with two, am I just not cool, or what?
;-)
"ex-or"
--
Terry Hancock ([EMA
gruesome enough a
> > name to go with the special lopsided Pythonic creature
> > mentioned above. I suggest we name it a hurgledink.
>
> +1 QOTW
Yeah, +1, definitely.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
on't want to do it the old-fashioned
way -- after that though, it's just
"throught-the-web" scripting).
But Zope is kind of a culture onto itself, so you may not
necessarily want to buy into it, if you don't do this kind
of thing often.
Just my two cents, of
.
I feel like there's something going on here that
I just don't "get".
Is there someone out there who can give me a PyProtocols
advocate's PoV on this? Can you tell me why PP's approach is
"better" than Zope's? (Or perhaps what you think it is
mo
On Thu, 16 Feb 2006 23:53:51 -0600
Terry Hancock <[EMAIL PROTECTED]> wrote:
> I've been discussing PyProtocols with a a friend
> collaborating with me on a SF game project, about
> the benefits and design concept of "component
> architecture", and I'm a
I haven't checked in awhile.
So, IMHO, there's still PLENTY of room for innovation in
the application area of image-handling tools for
Python. PIL is not a "category-killer". At least not yet.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
for things that truly need optimization. If you use
Pyrex, you can even still pretend you're programming in
Python when you write those extensions. I'm sure that's why
some 3D libraries have opted to write the fast code in Pyrex
instead of C (even though either is possible).
--
ght side is evaluated
> once for each assignment. [The wordings are mine. I am
> not sure if this is what he intended].
> >>> c = d = e = x()
AFAIK, this is equivalent to this:
e = x()
d = e
c = d
So, in fact, what you say is true, but these, of course will
not evaluat
,
I think they are usually equivalent internally,
at least for immutable objects.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 21 Feb 2006 15:01:22 -0600
Robert Kern <[EMAIL PROTECTED]> wrote:
> http://www.python.org/2.2.3/descrintro.html#__new__
Curiously, __new__ does not appear in the index of
the Python 2.3 language reference!
It is fixed in Python 2.4, though -- I just checked.
--
Terry Hancoc
www.google.com/search?hl=en&q=ConfigParser+unicode&btnG=Google+Search
First hit identifies "ConfigObj", and a few links later gets
you the home page and Sourceforge project page:
http://www.voidspace.org.uk/python/configobj.html
http://sourceforge.net/projects/configobj
--
Terry Han
eeing
the code, I can't guess how.
> Can anyone give me a clue about this? If there is a better
> way, please let me know. Thanks.
Recommend you stick with the first idea, which
as you see works fine.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
like ZODB
will already do that for you, but it seems basic enough
that there ought to be a general approved method of doing
that in Python -- you know, "one obvious way".
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
de-effects". Python
is pretty good at making functions with side-effects. At
least it is if you want them. ;-)
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ote, he consistently used "foo" and "bar" himself.
My faith is so shaken. ;-)
Cheers,
Terry Hancock
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
be a smart way to do this in another
application, but it looks promising for this one (which is
a kind of artificial locale-neutral language
representation).
I'm not sure that the enum described in the PEP would be as
useful to me as this. So I'm -0 on it becoming a built-in,
though I
e been fixed, or else
I'm just lucky to finally have a terminal that agrees with
the interpreter on the width of tabs).
In any case, it's good practice not to mix tabs and spaces.
I actually recommend using just tabs when playing with
the interpreter (it's faster) -- but use space
dded,
should be "strong enums" without this kind of ambiguous
behavior.
I also think though that the characterization of the
behavior of enumerated value instances is much more
important than the behavior of the enumeration collection
object, which is basically just a set, anyway.
Chee
ill generally prefer to see "self", I still
consider the above pretty readable, and it goes more than
halfway towards your goal.
Others have suggested "_" instead of "s". However, IMHO,
it's less visible, takes up the same space as "s", and
requir
lt_cfg)
config.read(['/etc/varimage.cfg',
os.path.expandvars('${INSTANCE_HOME}/varimage.cfg'),
os.path.join(pkghome, 'varimage.cfg') ])
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ject, then they ought to be
expressed as properties of the object.
It's funny, I've never actually had any doubts about
which to use in practice, it always seems obvious, so
it's hard to recall what my actual thought process is
on the subject.
--
Terry Hancock ([EMAIL PROTECTED])
Anan
e)
Symbol / Enum (what I used for "closed" case)
Word / WordSet
Label / LabelSet
I'm sure there are others.
Word has the disadvantage of also meaning "32-bit integer"
to a lot of CS people. Or perhaps a string. Not
immediately an indivisible symbol.
Symbol
the main values
of using enumerated values is as an aid to documentation,
but "WED" is still vague. Could be "Wednesday", could
be the "Western Education District" or short for
"Wedding". Enumerations are most frequently used in
module APIs, so
arship.python.net/crew/danilo/pythondoc/
> http://effbot.org/zone/pythondoc.htm
>
> There's also HappyDoc http://happydoc.sourceforge.net/
> and EpyDoc http://epydoc.sourceforge.net/ .
Those are great, but I don't think they handle C++ ;-)
Which makes me wonder -- will
n article crying out to be written,
"(Learning) Design Patterns with Python".
Has it been written already?
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
different directory to the current file?.
Typically you will need to modify sys.path to determine
what's on the "PYTHONPATH".
Of course, you can also modify the PYTHONPATH environment
variable to add new stuff to the path.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
one point, I was seriously thinking about trying to write
some kind of translator to convert those IDL libs into
python libs (quixotic of me?).
So why rent when you can own?
Scientists certainly do understand all that bit about
"seeing further" because you're "standing on the
r maybe I should make an "Immutable" class, and just
inherit from it last so it overloads everything else with
the null interfaces?
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
Whoops I forgot to list the reference.
Also, I just finished reading the old thread, so I see some
damage-control may be needed.
On Sat, 4 Mar 2006 11:52:59 -0600
Terry Hancock <[EMAIL PROTECTED]> wrote:
> [1]
> http://news.hping.org/comp.lang.python.archive/28916.html
And more speci
x27;s
the most practical solution for this problem).
3) Is there a "remarkably clever" way that I can tack
on, even if it isn't exactly simple?
and only in the unlikely event that answers 1-3 are all
"no", would I ask:
4) And as a last resort, if it really i
In fact, this expression has so many echoes on the
web, it would be difficult to ascertain where it actually
came from (the derivation is obvious, of course, but who
first coined the expression?).
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
module called
stripogram which provides functions both for completely
stripping HTML and for allowing a subset of it (if, for
example, you would like to keep bold and italic formatting,
but nothing else).
Just google for "stripogram", it's hosted at zope.org.
--
Terry Hancock ( ha
ike sequences or
collections at other times. What would __brace__ make the class act
like? I think it's just "something else", and that can be handled with
methods.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
nts are the *three* most common
> immutable objects you'll see...
And floats. Floats, strings, tuples, and ints art the *four* most common
immutable objects you'll see...
Time to break out the comfy chair. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spacework
this approach, it seems
extremely practical to me.
*But you do have to remember that strings are documented under "sequences"
this is probably my biggest complaint about the Library Reference --- something
as important as string methods should have its own heading in the top-level
outline
own modules, too! I love that.
ISTM, that Python is the best "Literate Programming" language
yet available (much easier than cweb and whatnot that gave
us the term).
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://ma
;Search Documentation"
which did a search on http://docs.python.org/ , then?
Though I see that "Browse Documentation" does indeed go to
http://docs.python.org .
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
iding
how to handle datestamp math, but as this situation
occurs frequently in real life, it seems like it shouldn't
be avoided.
How do other people deal with this kind of problem?
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
e logical
solution for these types of machines.
Someone's already mentioned checking the load average, which
sounds like a good idea for your application.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
reate a dia file with
UML formatting, IIRC. If it wasn't that, it had to be "pydoc", which is
also quite useful.
I wouldn't call this "reverse engineering" by the way, but rather
"self documentation".
Cheers,
Terry
--
Terry Hancock ( hancock at anansis
t know under another name.
What *is* an "impact analysis tool". Something tells me it has
little to do with the physics of craters, though that's the first
thing that comes to mind. There are a lots of self-documentation
tools for Python, though, starting with the interpreter itse
NGUYEN Thi Thanh Van -> Thi T NGUYEN
> # "Thi" means "female" and "Nguyen" is the "last" name of about 50% of
> the Vietnamese population ...
While I might say something snide about unnecessarily crucifying a piece
of "toy
mercial use: Surely other scholars, if they make
use of your software will be using it to justify their salaries, won't they?
Of course, you're *entitled* to use any twisted, snare-throwing license
you like, but don't expect to be respected for it.
--
Terry Hancock ( hancock at anans
a lot. ;-)
I must say though, that as a newbie, I found this a lot easier
to get my head around than learning all the implicit variables
that Javascript introduces (e.g. "this", "prototype", etc).
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
data = select_rows_you_need()
smart_data = [SmartRow(r) for r in dumb_data]
I don't think there's really much overhead in creating Python
classes. In any case, it's never been an issue for me. But I'd
still recommend only wrapping the data after you've alre
elf.argspec, args[:expected])
for map in maps:
setattr(self, map[0], map[1])
Using this, I get the following response to too many arguments:
>>> g = Foo(1, '3', 4.0, 'spam', 'eggs') Traceback (most recent call last):
File "",
of the software.
I think you will actually get what you want by just using a copyleft
free-license like the GPL. This will prevent the software from being
absorbed into a commercial proprietary product, which is what I
consider the reasonable part of what you are asking for.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ough to set this up as the standard way to contact
tech support.
Most likely you are working with Windows clients, so you'll need
something other than "uname", but I'm sure there is something
appropriate. You can do it by examining information in Python's
sys module, too,
#x27;..', 'C', filename)
f = open(filepath, 'r')
etc.?
It's really quite straightforward to walk up and down directory trees, please
take a closer look at the documentation for os and os.path modules (see
http://www.python.org to find documentation for your version).
e I'm not totally off-base here --- I've had relatively little
experience with mixed versions and pyc files, so my assumptions
may be a little off, but hopefully someone will correct me if that's so.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http:/
tects" "ryan tomayko"
"astronaut architects" tomayko
"astronaut architects" tomko
"ryan tomayko"
However, after a bit of brainstorming, I tried:
"architecture astronauts" "ryan tomayko"
and got this:
http://naeblis.c
On Friday 10 June 2005 03:06 pm, Kay Schluehr wrote:
> Python projects are submarines. You have to care not to go up to soon.
Ooh, I like that. I'm going to file that under "useful excuses".
Could come in handy! ;-D
Cheers,
Terry
--
Terry Hancock ( hancock at anansispace
the
> answer you can get from my previous post.
I haven't used it, but according to the Python 2.4 documentation,
the subprocess module does not use any shell. Or the shell is python,
as it were.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
-rw-rw-r--1 terryanansi 1701 Jun 10 22:46 pkgs.pyc
samwise:/project/terry>
It looks to me like Python just deleted a read-only file owned by
root in order to replace it with a new pyc file. Can somebody
explain that to me?! Isn't that supposed to be impossible?
(I can
y'd have to be in __init__.py or possibly in
mod1 in order to work correctly), but it's pretty close.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Saturday 11 June 2005 06:14 am, Piet van Oostrum wrote:
> >>>>> Terry Hancock <[EMAIL PROTECTED]> (TH) wrote:
> >TH> It looks to me like Python just deleted a read-only file owned by
> >TH> root in order to replace it with a new pyc file. Can somebo
301 - 400 of 463 matches
Mail list logo