cs.python.org/lib/built-in-funcs.html
Otherwise, you'll have to explain a bit more--that's my best guess as to
what your issue is.
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
red.
Dejavu welcomes your use and feedback as an application developer.
Dejavu also welcomes framework developers. New code for additional
Storage Managers, analysis tools, will be gladly reviewed for inclusion
in future releases. Drop me an email if you feel so inclined.
Robert Brewer
MIS
Am
itory, but it's fairly stable.
http://svn.enthought.com/svn/enthought/branches/converge/kiva/
--
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
James Stroud wrote:
> The thread "why not arrays" got me thinking. I would really
> like to inherit
> from a list so that I can add methods based on its contents,
> say if I filled
> it with a type of object and wanted to iterate over all
> objects. I have built
> a wrapper around a list like
ably ways to make its use more
intuitive, but I'm new to the language so I don't know the tricks yet.
Thanks for any tips,
-Robert Dick-
'''See the example at the bottom.'''
import inspect
def flatten_tree(tree):
'''Flatten a tree repr
#x27;m naively guessing you've got a typo. Feel free to
correct me. ;)
>>> class struct(object):
... def __init__(self, **kwargs):
... self.__dict__.update(kwargs)
...
>>> var = "varA"
>>> obj = struct(**{str(var): "Hello&qu
Chris Lasher wrote:
> That's odd that there's no built-in method to do this. It seems like
> it would be a common task. Is there any way to request a feature like
> this from the RE module keepers, whomever they may be?
The best way to request such a feature would be to write a patch. ;)
FuManCh
t."""
try:
return dict.__getitem__(self, key)
except KeyError:
return []
def iterchains(self):
"""C.iterchains() -> an iterator over the (key, chain) pairs of
C."""
return dict.iteritems(self)
...the one-liners flow effortlessly. ;)
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
e line
"AddHandler cgi-script .tba" to your httpd.conf. You may wish to limit
this to a Directory section.
2. Edit tibia.tba and replace all occurrences of "tibia.tba" with
"tibia.cgi".
3. Use mod_python, which would allow you to call tibia.py from your
site-package
print "Content-type: %s\n" % app.content_type
print "".join(app.output)
if __name__ == '__main__':
cgi_handler()
Should I be explicitly closing stdout at the end of cgi_handler()? I
don't get a zombie with every request.
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Cooper wrote:
> Robert Brewer wrote:
>
> >I assume you're using the demo? My copy of Firefox has an
> error browser
> >under Tools->Javascript Console. Does the double-click
> report any error
> >there? Make sure you clear the list before try
Bengt Richter wrote:
> >>> m=type('',(),{})()
> >>> m.title = 'not so fast ;-)'
> >>> m.title
> 'not so fast ;-)'
Now THAT is a cool object trick. :)
FuManChu
--
http://mail.python.org/mailman/listinfo/python-list
answers, when not
> attacks, are often very insightful. If you find a
> good solution to this problem, please let me know.
Wait; you mean there *isn't* a technological solution to every social
issue? Bah. Guess I'll quit IT and go into marketing after all.
;)
Robert Brewer
MIS
Fredrik Lundh wrote:
> well, since I'm not in the ego-stroking business, what if I
> promise never to
> reply to posts by you, robert, and alex?
?? I'll take your replies anytime. You're a long way from all noise and
no signal. I'm happy to learn what I can from
/* ob_size */
"method-wrapper", /* tp_name */
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
DB-API wrappers running on Win2k, how about doing that
locally and then writing a quickie socket server which your linux client can
connect to?
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
attach methods to instances of API,
then just do it in API.__init__():
class API(object):
def __init__(self, keyring):
for name, method in capabilities(keyring).iteritems():
setattr(self, name, method)
Can you show us some code? <:)
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
be to
immediately follow your API class definition with a call like:
from myframework import captools
class API(object):
def foo():
pass
captools.enable(API)
...the choice comes down IMO to what you think will be the most
usable/maintainable by those who follow you.
Rob
Paul Rubin wrote:
JZ <[EMAIL PROTECTED]> writes:
But pure speed is not the all. Python can scale better,
If a system is fast enough on a single processor, it doesn't need to scale.
I think he means, "scale to larger programs," not "scale to more
processors."
--
Ro
Bob Cowdery wrote:
> Thanks for your help Robert. I'm still not
> understanding what I am seeing. I've forgotten
> about the objective for the moment. I just want
> to understand metaclasses.
All right; then I'll skip the speech about how metaclasses are not the s
#x27;function as expression' look like?
Or simply:
accepts_func( (f(a) + o(b) - o(c) for a, b, c) )
...but that would give whomever writes the parser a headache. ;)
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
ambdas.
That's been the only serious use case I've had for lambdas: a way to have an
Expression object, in effect. If we had a more rigorous syntax specifically for
first-class expressions, lambda could go away forever in my book.
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
spy.com/words/drinktheKool-Aid.asp
"""
Notes:
This phrase comes from the 1978 "Jonestown massacre" in which members of
the Peoples Temple cult committed suicide by drinking cyanide-laced
Kool-Aid (although some say the drink of choice was actually Flav-R-Aid).
"
ommendation: Learn Python and a language that complements it
*pedagogically*. When you are fluent in Python and encounter a problem
where you want to, for example, use a library written in C, then learn
some C.
[1] http://dirtsimple.org/2004/11/generic-functions-have-landed.html
[2] http://www.gi
ject". Being able to supply more information about types helps
Starkiller keep the inferences tight and specific.
--
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
re, but I don't think Portage does, yet. OTOH, it's Gentoo, so
it wouldn't surprise me, either. :-)
--
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
stead of reaching v1.0
It should be noted that Jim Hugunin no longer works on Jython although
he did start the project (possibly with others, I'm not sure).
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
Georg Brandl wrote:
Robert Kern wrote:
Mike Meyer wrote:
Nick Coghlan <[EMAIL PROTECTED]> writes:
I don't know enough about Portage to answer that question. I do know
any package manager which made it into the standard distribution would
need to work for at least the big three platfor
Luis M. Gonzalez wrote:
Robert Kern wrote:
Automatic type inferencing is great, but sometimes the inference is
"object". Being able to supply more information about types helps
Starkiller keep the inferences tight and specific.
Hmm... I'm not an expert in this subject at all, b
Luis M. Gonzalez wrote:
Robert Kern wrote:
Starkiller, at least, can deal with cases where a variable might be one
of a set of types and generates code for each of this set. Explicit type
declarations can help keep these sets small and reduces the number of
times that Starkiller needs to fall
r libraries, etc.). I think that the
core lessons such a person is going to learn from a numarray section of
your book will transfer just fine to Numeric if they are careful. If
they're not careful, a book isn't going to keep them from shooting
themselves in the foot, anyways.
else:
dct[key] = value
def make(dct, key, value):
if key in dct:
raise KeyError('%r already in dict' % key)
else:
dct[key] = value
I don't see a good reason to make these built in to dict type.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of he
down to how often such constructs are used. I
don't think that I've ever run into use cases for safeset() and make().
dct.get(key, default) comes up *a lot*, and in places where speed can
matter. Searching through the standard library can give you an idea how
often.
--
Robert Kern
[EMAIL
t;)
if int(choice)==1:
print "Here"
else:
pass
if int(choice)==2:
else:
pass
You need something between the if: and the else: lines.
--
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
rval() keeps getting called
over and over again with self.reps == 3.
--
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
February so was looking for some recent back and forth.
Jim has a predilection towards keeping mum for a while so he can make
big announcements at his conference talks. Once you know that about his
character, the rest falls into place.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of
smart-questions.html
Please do yourself and us a favor: take a break from the newsgroup for a
while, and spend some quality time with the documentation.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.&quo
lass or a string (which will be parsed to an instance
of the same class, thus must follow the same rules)
--
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
tutils seems like it would be the most generic and supported
way to compare version numbers.
Indeed.
--
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
e ABC, which Guido worked on
before developing Python and also used indentation for grouping, it was
found that the colon improved readability.
I don't know what those studies said about the frequency of people
forgetting to put in the colon. Anecdotally, I can say that I do it very
rarely.
and plenty of good reasons for them to be more
restrictive now.
--
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
ferenced when you do bob[:]. This is expected.
See copy.deepcopy(). It will make sure that everything gets copied and
nothing just referenced (more or less).
http://docs.python.org/lib/module-copy.html
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are
itertools
[x+y for x,y in itertools.izip(xs, ys)]
--
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
nd problems with the approach, I hope it becomes
standard. I found it distracting that python's default argument passing
approach conflicts with its default delegation approach.
Good luck,
-Robert Dick-
--
http://mail.python.org/mailman/listinfo/python-list
u:81/scipy_base/vectorize/
--
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
ChinStrap wrote:
Are there no windows binaries for SciPy for python 2.4 yet? I try to
run the installer and it complains that it can't find python 2.3.
No, not yet.
Besides that, vectorize is exactly what i want.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass
(0.0 < a) < 1.0) < b ) < 2.0
Go on. Try it with a bunch of different values.
--
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
ially more currently relevant recipes and information in
roughtly the same amount of space.
Trent
"""
So yeah, buy it.
--
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
lled
Any advice ?
I assume that you are on Linux or FreeBSD or somesuch. Install the
Python development package for your system. It usually has a name like
python-dev or python-devel.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of d
ase a 2.4-based version for some time. They use this distribution as
the base for the software they write for their clients, and they don't
have current intentions to develop against 2.4 quite yet.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Ar
anonymous read-access. You can ask Eric
Jones for the address.
--
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
at contains a
binding for the PROJ.4 library, but I haven't gotten it to work on my Mac.
http://matplotlib.sourceforge.net/toolkits.html
http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where th
Robert Kern wrote:
I use PROJ.4 via pipes for cartographic projections.
http://proj.maptools.org/
There is an addon to the matplotlib plotting library that contains a
binding for the PROJ.4 library, but I haven't gotten it to work on my Mac.
http://matplotlib.sourceforge.net/toolkits
called Dejavu (http://www.aminus.org/rbre/python/) which
needs more use cases ;)
Or is there something special about webapps which you feel requires a
database module to be integrated with the app framework?
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
col. So you might as well have used list of lists of lists of lists.
See the function setArrayFromSequence in libnumarraymodule.c . If you
wish to fix this behavior, I'm sure that a patch would be welcomed.
Further questions should probably go to the numarray mailing list.
--
Robert Kern
[E
load.enthought.com/MacEnthon/ReadMe.html
http://download.enthought.com/MacEnthon/MacEnthon-0.1.dmg
Linux:
TBA
--
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
ge management on the
platforms that you care about, it doesn't matter what is or isn't in the
standard distribution. Hopefully, one of the CPyAN dreams will actually
pan out.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the g
Fredrik Lundh wrote:
Robert Kern wrote:
(the Linux distributors know how to do this: look for good stuff that's
either actively maintained or simple and solid enough to live for a while,
make sure the licenses are good enough, bundle the latest and greatest
version, ship tested versio
you can snag a pre-built Numeric from
http://pythonmac.org/packages/
--
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
Skip Montanaro wrote:
>> I guess the other thing to compare to is something like SciPy, which
>> is a kind of specialized distribution of Python for scientific
>> applications.
Robert> No, Scipy is just a (large) package. Enthon, on the other hand,
R
Fredrik Lundh wrote:
Robert Kern wrote:
Agreed, which is why I think that proper package management and a CPyAN-type system is the way to
go, not trying to stuff everything into a single distribution.
I think we're looking at this in two different ways: you're looking at it from
retrbinary("get ???", img.write)
?
--
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
His vitriol should at least warrant a temporary ban. No money need
change hands.
Top-posting-because-it-wasn't-worth-quoting,
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf
does not say so anywhere in the
license text. Yes, you can GPL the derived work. The licenses are
compatible.
--
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/mailma
Fabio Pliger wrote:
anyone know if it's possibile to run chaco with wx 2.5.3 or grater?
No, not at this time. Enthought expects that they will have some
"conversion days" around summertime to move their codebase to the
soon-to-be-released wxPython 2.6.
--
Robert Kern
[EMAIL PRO
Antoon Pardon wrote:
Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
What licence can I use? Somewhere they say you can combine python
code with GPL code. Does that mean that the resulting code has
to have both the GPL license as the PSF license, as both seem
t
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
Yes, the license text and the copyright notice must be attached. It
doesn't mean that the PSF license is the operative one for the
derivative work.
Why attach a license that is not operative. That doesn
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
Yes, the license text and the copyright notice must be attached. It
doesn't mean that the PSF license is the operative one fo
rays, he was appending to lists
(each only 8 items long, so there really is no significant overhead).
See my response in this thread for the answer.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-- Richa
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Well if it comes so far I have to consult a lawyer I'd rather not publish
it in the first place.
Then take the (free) advice that you asked for.
I'll do that and I appreciate your t
Antoon Pardon wrote:
Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
I would do that if I were just writing code I thought others could
find usefull. I then would feel no problem "burdening"
Antoon Pardon wrote:
Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>:
Antoon Pardon wrote:
Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>:
I would do that if I were just writing cod
ary/Framework/Python.framwork
-bash: cd: /System/Library/Framework/Python.framwork: No such file or
directory
~ $
You misspelt the framework path in both cases.
Blasphemy:~ kern$ ls /System/Library/Frameworks/Python.framework/
Headers Python Resources Versions
--
Robert Kern
[EMAIL PROTECTED]
&qu
not a precise replacement of Apple-installed Python...
Bingo. It's not intended to be one.
--
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
Bengt Richter wrote:
> The '::' unary suite operator should return an ordered dict
> subtype representing the bindings
Why ordered?
Robert Brewer
MIS
Amor Ministries
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
Maurice LING wrote:
Robert Kern wrote:
3. Apple-installed Python's command line tools are symlinked from
/usr/bin to /System/Library/Frameworks/Python.framework but the OSX
installer for Python 2.4.1 places the commandline tools in
/usr/local/bin and symlinked to /Library/Frame
acPython-OSX-2.4.1-1.dmg
--
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
ns of Python on this machine, and
as far as I can tell the binary installer overwrites the default
installed version.
I could be wrong.
You are wrong. It installs alongside.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to
'y for g',
> foo=lambda: return 'foo for g' )
Which are both prettier, until you actually try to use them:
>>> g( *args_from_somewhere, x='x for g', y='y for g', foo=lambda:
return 'foo for g' )
Traceback ( File
nto the app bundle when you build it.
I think you do want frameworks.
--
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
didn't (and was posting to propose that it should
exist and behave as it actually does).
--
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
e (and then uncomment ), what are
you doing then?
Use comments?
--
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
ometimes usefull.
No, because you said that it was useful for obfuscating code.
Obfuscating code is generally not a desirable feature of a language
construct.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die.&quo
Matt Feinstein wrote:
On Wed, 20 Apr 2005 10:23:58 +0100 (BST), praba kar
<[EMAIL PROTECTED]> wrote:
Dear All,
In Python what is equivalent to goto statement
I'd like to that implemented in an interpreted language. Requires some
time travel.
Yes, to 2004-04-01.
--
Robert Kern
[EMAI
20)" and get a 3-based array
(I may have the syntax slightly wrong by now). It was useful and took
care of this problem.
There's nothing that stops you from writing a class that does this. I
believe someone posted such a one to this thread.
I have yet to see a concrete proposal on how to ma
failure).
Are you sure about that?
In [3]:os.system('cat foo')
cat: foo: No such file or directory
Out[3]:256
--
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.
switch
for rm.
In [4]:os.system('rm -r foo')
rm: foo: No such file or directory
Out[4]:256
In [5]:os.system('rm -rf foo')
Out[5]:0
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die."
-
John Machin wrote:
On Fri, 22 Apr 2005 17:26:19 -0700, Robert Kern <[EMAIL PROTECTED]>
wrote:
While you can, sort of, and people have already pointed out the
appropriate web page to you, I ask that you *don't* use the PSF License.
The PSF License uses proper nouns that you will have
l or Organization
("Licensee") accessing and otherwise using this software ("Python") in
source or binary form and its associated documentation."
You are neither the PSF nor is your software "Python".
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell wher
some other language.
--
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
k him what "domain" means in mathematics. And
check his answer[1].
While one could argue that using the term "variable" for Python names is
incorrect for good programming reasons, your friend's reasoning is
ridiculous.
[1] http://mathworld.wolfram.com/Domain.html
--
Ro
.
If you must, http://en.wikipedia.org/wiki/Variable
--
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
Richard Blackwood wrote:
Robert Kern wrote:
If you must, http://en.wikipedia.org/wiki/Variable
Fantastic, wikipedia deals precisely with the difference between
variables in mathematics versus programming. However, he would never
trust a definition from such an "unreputable" source. I
Richard Blackwood wrote:
Bengt Richter wrote:
On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood
<[EMAIL PROTECTED]> wrote:
Robert Kern wrote:
Richard Blackwood wrote:
To All:
Folks, I need your help. I have a friend who claims that if I write:
foo = 5
then foo is
Mike Meyer wrote:
Robert Kern <[EMAIL PROTECTED]> writes:
Could I honestly argue this to him? From what basis do I argue that
it is not an equation?
It's his responsibility to show that it *is* an equation.
x = x + 1
Equation? I think not.
I think it is. One equation in one unknown. T
y
libraries which can be quite a bit of work...
I do hope this problem will be sorted out some day.
This problem is mitigated somewhat by the fact that the devs keep binary
compatibility within a major revision series (e.g. 2.3.0, 2.3.1, 2.3.2,
...).
--
Robert Kern
[EMAIL PROTECTED]
"In t
e += is
sugar for.
In [1]:a = ['hello']
In [2]:a.extend("world")
In [3]:a
Out[3]:['hello', 'w', 'o', 'r', 'l', 'd']
It's a *good* thing that .extend() takes any iterable without explicit
conversion to a li
yes.
But this could certainly be clearer.
I don't see how that statement has anything to do with the bug
at hand.
It's a mistake, but it's been in the wild too long to be changed. Thus,
it should be documented.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell wh
pression if I'm going to require 2.4 anyway?
Never. If you really need a list
list(x*x for x in xrange(10))
Sadly, we can't remove list comprehensions until 3.0.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams allowed to die
Steven Bethard wrote:
Robert Kern wrote:
Mike Meyer wrote:
Ok, we've added list comprehensions to the language, and seen that
they were good. We've added generator expressions to the language, and
seen that they were good as well.
I'm left a bit confused, though - when would I
1301 - 1400 of 4166 matches
Mail list logo