to needing a floating point value as other
posters have noted, you're going to need a format string,
e.g.:
>>> print "%5.2f%%" % (100.0/3)
33.33%
Note the need to escape "%" as it is normally the format
specifier character.
Cheers,
Terry
--
Terry Hancock ( ha
ens, both
can be coerced to 1, so the result is 1*1. This makes perfect sense
to me.
>>> True and True
True
Also makes sense (and this is indeed what happens).
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday 22 September 2005 07:09 pm, Ron Adam wrote:
> Terry Hancock wrote:
> > On Thursday 22 September 2005 12:26 pm, Ron Adam wrote:
> >>>>True and True
> >
> > True
> >
> > Also makes sense (and this is indeed what happens).
>
> Only
for
anything other than an innermost loop index is a sick and twisted
code sadist.
You'd prefer what? "count" or "kount" or "i_am_an_innermost_loop_index_counter".
I mean "explicit is better than implicit", right?
Maybe Fortran warped my brain, but I
On Friday 23 September 2005 10:42 am, Peter wrote:
> Terry Hancock wrote:
> >How exactly is that? Anybody who uses "i" as a variable name for
> >anything other than an innermost loop index is a sick and twisted
> >code sadist.
> >
> Agreed, though to say
to grep for it, your loop is TOO DARNED LARGE,
USE A FUNCTION CALL!
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
the results were.
But I'd recommend search the zope-user mailing list archives or just
google for "psyco site:zope.org"
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
red text). By having a PEP convention for this
sort of thing, it becomes easier for such applications to be
written.
Doesn't that qualify as "non-strict enforcement"?
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
*
#===
I.e. a comment mark followed by a line composed of repeating characters
as an alternative separator. These are also pretty in pretty common
use.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
d more information at the web pages
for the above tools.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
a
central catalog of such conventions makes it possible for checking
software to be consistent. If PyChecker were going to check for such
things, it would do so only because a standard convention had been
established.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ch I take it is what your sample data encoded -- though I can't help
but notice it is actually much shorter than the "compressed" version. ;-)).
This may have some security issues, though, since it evaluates essentially
any expression given for user. I'd be interested
On Tuesday 27 September 2005 10:42 am, Terry Hancock wrote:
> >>> bz2.decompress(eval(repr(user)))
> 'huge'
Actually, it doesn't -- I sent you the wrong version of the email.
THIS works (and is what actually produced the output above).
>>> bz2.decompre
On Tuesday 27 September 2005 07:22 pm, Robert Kern wrote:
> Terry Hancock wrote:
> > On Monday 26 September 2005 10:24 pm, Kenneth McDonald wrote:
> >
> >>I have a module I'd like to document using the same style...
> >
> > Google for "epydoc"
've got
to consider that this private and protected stuff might be bunk", too. ;-)
"never", "always", "-free" are very dangerous concepts. :-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
are looking for, and not
elsewhere.
This also shows where Google fails and newsgroups succeed: when
you know what you want, but don't know what it's called. Often,
all a poster really needs is the right keyword to use.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
librarians
are the "search engine". They don't respond to the same type of
search terms as machines do.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
feature .../
>
> That's also my opinion, but OTOH, Guido's syntax is more close to the syntax
> of list comprehensions.
GvR's syntax has the advantage of making grammatical sense in English (i.e.
reading it as written pretty much makes sense).
--
Terry Hancock (
ptive
> message then just "error". anyidea where i need to start looking?
By looking at the source code for DutyShift.py?
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
,
although I interpret the neologism as meaning something like
"execrable utterance":
dict.org said:
> No definitions found for 'execresence'!
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
s like "thou are" -- if
you're going to use "thou", at least conjugate correctly!
It's "thou art".
Of course, just to keep y'all on your toes, we Texans have not only
construed "their" to singular, but also "you", and added a new
plural "y'all". As in "Why can't y'all get y'all's selves together
and understand that how a person talks is their own business."
"Innit?"
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Friday 07 October 2005 10:52 am, Fredrik Lundh wrote:
> Terry Hancock wrote:
> > GvR's syntax has the advantage of making grammatical sense in English (i.e.
> > reading it as written pretty much makes sense).
>
> as a native Python speaker, I find that argu
gon".
I am not kidding. This actually happened.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
; or
"If I buy a $100 gumball for $80, I have achieved a savings of 20%."
(Although, you lose points for style with "achieved", and those
are awfully expensive gumballs). ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispacework
On Friday 07 October 2005 04:21 pm, Grant Edwards wrote:
> On 2005-10-07, Terry Hancock <[EMAIL PROTECTED]> wrote:
>
> > Well, there's your problem. He learned from engineers. Engineers
> > can't speak English. I was instructed in my "Engineering Stat
Sorry for the digression, but the real story behind things like
that is kind of interesting, IMHO. ;-)
And I think the original joke is pretty dead by now. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday 09 October 2005 06:12 pm, Timothy Smith wrote:
> Terry Hancock wrote:
> >By looking at the source code for DutyShift.py?
> >
> well DUH thank you captain obvious!
Well, since you apparently missed the subtlety, you
DID NOT GIVE ADEQUATE INFORMATION if you expected t
ously
haven't been everywhere (;-)), but in my experience, "All y'all" is
used only to explicitly include a larger group, rather than a smaller
one. In other words, it's just as you would use "all of you" in
"proper" English.
;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
pam')
etc.
I'm pretty sure this is what string "internment" is for, though, and
that such lookups are optimized out pretty much whenever possible.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
being the other. But I only report what has been told to me.
:-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Sunday 09 October 2005 07:50 am, phil hunt wrote:
> On Fri, 7 Oct 2005 01:05:12 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote:
> >GvR's syntax has the advantage of making grammatical sense in English (i.e.
> >reading it as written pretty much makes sense).
>
>
n, Pascal, C, and a bit of C++
later, so I think you probably have a similar PoV to what
I had.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
oks up an attribute is
assuming the dumbest possible interpreter design! (One which
works directly from the source text).
I think *that* was the point.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 11 October 2005 09:37 am, Grant Edwards wrote:
> On 2005-10-10, Terry Hancock <[EMAIL PROTECTED]> wrote:
> >> Likewise, "dude" is often used when addressing a female but
> >> almost never when speaking about one in the third person.
> >
>
ng:
>>> a = "I don't think Python will intern this string."
>>> b = "I don't think Python will intern this string."
>>>
>>> a==b
True
>>> a is b
False
Now, however, 'a==b' must do an actual string comparison,
and is therefore somewhat slower.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
from the basic button image
rgb_new # the new color you want to replace rgb_base with
rgb_new = hsv_to_rgb( (new_hue,) + rgb_to_hsv(rgb_base)[1:])
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
sion of what Zaep does where the sender is
> not consciously aware of the permission-getting step.
Well, this is already happening at the level of my mail client. I
gather you have something more centralized in mind?
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http
hat
is saved is the hassle of installing the software once it's downloaded.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
rgb_new = hsv_to_rgb(*hsv_new)
>>> rgb_new
(0.0, 0.0, 0.69996)
(You might get a more aesthetically pleasing outcome
with a less pure color, by setting the saturation lower).
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
; person...
> >
> > thanks.
>
> I'd be delight to.
>
> My requirements are: 1 cup of fat-free milk, free, and free pizza.
""".replace('crowd', 'angry mob')
;-D
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
en is a factory-direct Dell laptop with a
pre-installed Windows XP which had all of the problems I
described above.
OTOH, the Linux environment I describe is run-of-the-mill
Debian Sarge with KDE.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
he same
purpose.
(Search for PyProtocols or Zope to follow up on that).
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
e (a) extensive (and pretty much common) Javadoc/
> > docstrings and (b) implementing in the Python version a feature
> > present in the standard Java library (scheduling a thread to run
> > at specified intervals and time out). Strip the Javadoc/docstrings
> > out and it
ure out which would be easier.
Any more informed comments from people who know the various
GUI packages would be a lot of help. I assume it goes
without saying that I'm looking at Python as an integration
language. In my ideal design, the M,V, and C components
are separate Python modules, s
pposed to store an integer in Data.fs. Thanks.
If you actually needed imports and access to the internal ZODB machinery,
then you would need to write a "Product", not work in the ZMI at all.
But you don't.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
o several
different lists and topic-related sites. The two lists I happened
to check are years out of date (one was from 1994!) and do not even
list Microsoft.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman
uot; with "ZERO". The absence of an external system of evaluating
law, does not mean that all laws must be negated. It equates to having
no basis for prefering them to exist or not, and thus abdicating all
right to change them. People who believe this really need, therefore,
to shut up.
;-D
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
y to make such changes.
Note also that for those who count, "str(f)" is exactly as long
(in keystrokes) as "'%s'%f", making the "just" a matter of opinion.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
pointing out that at the time it was the
> only one that actually included code that did what the OP wanted.
I think Mr. Lundh's point was only that the output from glob.glob is already
guaranteed to be strings, so using either '%s'%f or str(f) is superfluous.
--
Terry Hanco
t; system that'll do the job... MathML or LaTeX possible?
epydoc has some capacity for rendering equations and math symbols. I'm
not sure if it supports the full range of TeX expressions.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.ana
't really expect you to absorb this information, because
you are so obviously opposed to facing this reality, but
I also think it's dangerous to let extremists go unchallenged,
lest they be believed to lack opposition.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
g list. ;-)
Seriously, though, what would you change about it? It's not flashy,
but works extremely well. You can say the same for Python itself
-- I think that may be its best quality. So how better to show that
than by having a site with the same character?
--
Terry Hancock ( hancock at anansispa
omeone other than the author of the main program).
In such a situation you should also take reasonable precautions to
prevent major collisions, even if you expect it to be the plugin
author's responsibility to avoid them (e.g. establish interface
rules for plugins and a formal API for intera
llation problem).
http://www.blender.org/ -- blender site and developers' forum
Since Blender embeds its own Python interpreter, there is some question
as to what exactly it means by "recognizing" an installed Python. I'm
guessing it only uses the library.
Cheers,
Terry
--
Terry Hancock
on't know how other countries characterize offenses.
For example, one of the big points about so-called "software piracy"
is that the recording and movie industry has been trying very hard
to conflate "copyright violation" with "theft" -- but the former is
only a
n
the "copyright infringement"="piracy" bandwagon, so if they are
called criminals by the conflation of the two concepts, then
they are merely being hoisted by their own petard, so I can't
feel any sympathy there.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
you were
criticizing FHS, but now I don't think so.
If you're talking about the KDE/Gnome menus, that may be
interesting. I've seen a lot of conflicting and inconsistent
layouts, and I'm not sure how I would do it, given the
chance.
--
Terry Hancock ([EMAIL PROTECTED])
Ana
g able to do this in Python,
including a claim that a release was targeted for early
November (2005), to provide this.
Now I can't find it again. Anyway, I was hoping someone
on c.l.p / python.org would have a reliable reference on
this.
Thanks,
Terry
--
Terry Hancock ([EMAIL PROTECTED
On Sat, 12 Nov 2005 15:27:01 -0500
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote:
> On Sat, 12 Nov 2005 14:25:51 -0600, Terry Hancock
> <[EMAIL PROTECTED]> wrote:
> >I recently saw a claim that Mozilla XUL behaviors
> >(normally scripted in Javascript) can (or per
he
record).
Thanks for the replies,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
s approach, because an
individual user might want to shadow the system install with
his own version of the data.
That's pretty typical behavior for configuration files on
any Posix system.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
or(0,0)
Or if you want to be shorter, more poetic, and make future
maintainers curse you, you can call it "O":
O = Vector(0,0)
;-)
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
space. 3D space would be wonderful, but I could
> jimmy-rig something if I could just get 2D... Are bezier
> curves really what I want after all?
Or NURBS, yeah, probably.
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ink I have an application for that.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
he fact by itself that you started with the original
work in your editor does not, by the letter of the law, make
it a derivative work.
The "clean-room implementation" concept is based on
alleviating a fear of litigation -- it forms the basis of a
defense. It is *not* a legal requirem
ity" in the usual sense, but
the first syntax imports a lot of stuff into the current
namespace, increasing the risk of unintentionally clobbering
local names. So it's certainly "riskier" in the sense of
"likely to cause bugs".
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ho needs the Reference Guide? (not a rhetorical
question). Maybe it should be optimized for those users.
> Dumping the RefGuide means there isn't a more formal-style
> description of Python's semantics.
I'm not a language implementor, so my vote shouldn't
count
r, you will see that this is in fact how
ImageMagick does it -- Postscript and PDF rendering is
delegated to ghostscript. So naturally, calling it directly
is faster.
Cheers,
Terry
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
m that the Python
> code is actually running on safe? Ruby may have a real
> bastion mode, but Python doesn't.
Should be able to use Jython and run on the visitor's
machine, shouldn't you?
--
Terry Hancock ([EMAIL PROTECTED])
Anansi Spaceworks http://www.AnansiSpaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
uency of its periodic change in radial velocity was higher -- but
I could've meant that it was receeding faster, had a higher amplitude of
radial velocity change, etc.).
I think "lambda" is fine. Basically if you find you need one, you probably
ought to be using the CS term an
rs, I like to switch
to hex.
So you could just do something like:
pages = open('myfile.dat', 'rb').read().split('\x0c\x0b')
to load each page into a list, for example.
HTH,
Terry
--
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www
d
still -- lately I've been using the Debian package though, so I don't have to
worry about it).
I know that you don't want PIL to go into the core, of course, but I'm pretty
sure that problem would've needed fixing, if it were to be introduced.
Small problem, trivial to
k (most recent call last):
File "", line 1, in ?
AttributeError: can't set attribute
>>>
Unfortunately this seems to break your technique, too:
>>> setattr(c, 'x', c.x)
Traceback (most recent call last):
File "", line 1, in ?
AttributeError: can't set attribute
Too bad. I was kind of hoping it was just a typo. :-(
Unless I'm missing something, anyway.
Cheers,
Terry
--
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
either 1.1.3 or 1.1.4, and I'm pretty sure it was the latter.
Now if you've actually fixed this, I look forward to trying it out the next
time I have to do a complete from-source installation. I'll say "thank you",
just in case.
Cheers,
Terry
--
--
Terry Hancock
> I think it's fantastic, but I'd be bound to say that given that it's the
> same as what I posted almost two days ago :-)
Guess there's only one obvious way to do it, then. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
, but you do at least know you
can just give it a new name:
import _bright
bright = _bright
right?
You can attach a new name to any Python object trivially (this is
akin to a pointer assignment in C, it does not copy any significant
amount of data).
--
Terry Hancock ( hancock
[j1]=l[n1*j+j1]
> r.append( h[:] )
> return r
Too bulky? How about:
def parti(L, j):
return [L[k*j:(k+1)*j] for k in range(len(L)/j)]
e.g.:
>>>
>>> parti([1,2,3,4,5,6,7],3)
[[1, 2, 3], [4, 5, 6]]
>>> parti([1,2,3,4,5,6],2)
[[1, 2], [3, 4], [5,
On Monday 20 June 2005 06:39 am, Kent Johnson wrote:
> Terry Hancock wrote:
> > Okay, you may want a more elegant way to do this and other people
> > have already responded to that point, but you do at least know you
> > can just give it a new name:
> >
> > im
ky or underneath.
Made me feel like an idiot, though. ;-)
Seriously though, thanks for the correction.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
aste of effort since:
>
> +1 WOFTAM-of-the-year
[...]
> > Or would people really like to claim a pure Python set of UNIX
> > utilities?
>
> Sorry, can't parse that last sentence.
In other words, it'd be a purely aesthetic goal. Which is only a waste
if art is
thout
bothering to pay attention to netiquette. Seems like that would've
been an obvious first step in making peace on Usenet, anyway. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
. In tightly optimized loops, some folks
recommend avoiding this. But then, so what?
PDE_File = PDF.File
and the problem goes away.
This always seems cleaner to me than:
PDF.PDFFile etc, which drives me crazy to read. Useless repetition just
gets annoying.
--
Terry Hancock ( hancock at anansis
for using an *object DBMS*, such as ZODB: It
certainly does support transactions, and "abstracting the data into tables"
is a non-issue as ZODB stores Python objects more or less directly (you
only have to worry about ensuring that objects are of "persistent" types
-- meaning either i
es to mind.
And it does make it easier to find help on problems, if you know what
other people call them.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
edded space in the filename?).
Need I mention that using filenames with spaces is a great evil? ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
= dict([ (b,a) for a,b in string2time.items() ])
Note that if string2time has duplicate values, this will arbitrarily pick
one (in a consistent, but implementation dependent way) to use as
the key in the inverse mapping.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http:
embedded systems or
"rescue disk" Linuxes (i.e. you might have to go back to 1.5).
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
is still only 3 lines and will run
in Python 1.5, IIRC.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
reates them. I really think "=" ought to be accepted as well, and
"==" deprecated.
But, hey, nobody asked me, I guess. And it doesn't kill me to type the
extra "=". ;-)
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
expression as
well as an assignment. But I don't think Python reads it that way -- it
just has code to recognize multiple assignment as a statement. I think
I remember reading that in the Language Reference or something.
Cheers,
Terry
--
Terry Hancock ( hancock at anansispaceworks.
he developer to understand your entire application in order to be
able to contribute --- if you are hoping for contributions from
user-developers on a free-software application, then this has to be a
good idea).
Without more specifics about what you are looking for, it would be
hard to reply furth
On Sunday 26 June 2005 06:11 am, Robert Kern wrote:
> Terry Hancock wrote:
> > On Sunday 26 June 2005 05:39 am, Torsten Bronger wrote:
> >>However, then you must forbid a=b=1 for assigning to two variables
> >>at the same time.
>
> You need to differentiate
>
do this with PIL + reportlab.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
ide test code that the application
programmer can use to check out their classes during development.
Of course, one of the points of this is that Python *does* provide
these abilities, in contrast to what the OP said. They may not look
quite like they do in Java, and they may not seem as "tough". But,
IMHO, they are "tough enough".
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
to erase any distinction
between the two concepts. Stylistically, dictionaries are the "right"
thing to use when the elements are going to be very fluid, whereas
objects are expected to have more or less fixed attribute and method
interfaces. Making "access to attribute by s
very similar to the kind of graphics interface that I had
when I was learning on my TRS-80 Color Computer with BASIC. ;-)
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
On Tuesday 28 June 2005 08:35 pm, Avery Warren wrote:
> On Sun, 26 Jun 2005 23:14:48 -0500, Terry Hancock wrote:
>
> > However, I'm not sure why you want this information. If you are
> > trying to import data into Zope, you are more likely going to be
> > using Zope
h, I didn't know or care about ctypes, but now I'm interested! ;-D
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
tions, but I see now that the site does mention
OZ/Mozart as comparables.
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
rs,
No silly, it's "duck typing", not duct taping!
--
Terry Hancock ( hancock at anansispaceworks.com )
Anansi Spaceworks http://www.anansispaceworks.com
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 463 matches
Mail list logo