hem?'
Perhaps if you post the website plus a clear and exact description of
what you want to accomplish and what has already been accomplished you
might find someone to help.
-Nick V.
Graham Feeley wrote:
> Hi this is a plea for some help.
> I am enjoying a script that was written fo
True, that is why it behaves the way it does, but which way is the
correct way? i.e. does the code need updating or the documentation?
-Nick V.
[EMAIL PROTECTED] wrote:
> Nick Vatamaniuc wrote:
> > Roman,
> >
> > According to the Python call syntax definition
> >
creen scrapping applications
like this before in Python and I used this method and it worked well
enough.
Good luck,
Nick V.
Graham Feeley wrote:
> Thanks Nick for the reply
> Of course my first post was a general posting to see if someone would be
> able to help
> here is the websi
What do you mean?
The html table is right there (at least in Firefox it is...). I'll
paste it in too. Just need to isolate with some simple regexes and
extract the text...
N
etter mentained and which deals with dependecies a
lot better.
Nick V.
Rob Sinclar wrote:
> > > I'm thinking of using Python to build the prototype for a business web
> > > appplication. The development and test machine is XP, while ultimate
> > > deploym
you shoud be the one
submitting the bug report! Here is PEP 3 page with the guidelines for
bug reporting:
http://www.python.org/dev/peps/pep-0003/
Just mark it as a very low priority since it is more of a cosmetic bug
than a serious showstopper.
-Nick V
Roman Susi wrote:
> Nick Vatamaniuc wr
ctic_ consistency,
as opposed to 'a surprise'. As in t=(1,2,3,) f(1,2,3,) f(1,*[2,3],)
and f(1,*[2],**{'c':3},) should all be 'OK'.
Perhaps more Python core developers would comment...
Nick Vatamaniuc
Dennis Lee Bieber wrote:
> On 29 Jul 2006 07:26:57 -0700
Stani,
Thanks. I'll definetly give SPE another try.
You have a great editor with features that others don't have.
I'll try it with the latest wxPython.
I never really thought SPE was the problem, it seemed like a lot of
issues I saw were from wxWidgets...
Nick V.
SPE - Stani&
54529656e+68
>>> a**N
150130937545296572356771972164254457814047970568738777235893533016064L
>>> #now call the function again. no compilation this time, the result was
>>> cached!
>>> ans=weave.inline(c_code, ['a','N'], support_code=includes)
>>
things when you get
more used to Python @
http://aspn.activestate.com/ASPN/Cookbook/Python/
Hope this helps,
Nick V.
[EMAIL PROTECTED] wrote:
> Hi all. I've been try to learn ruby for a few months but I'm about
> ready to give up. The available books either assume a programming
&g
atabase, but you probably
know this already...
Hope this helps,
Nick Vatamaniuc
H J van Rooyen wrote:
> Hi,
>
> I want to write a small system that is transaction based.
>
> I want to split the GUI front end data entry away from the file handling and
> record keeping.
>
> Now
but not in the case of a user
desktop.
Hope this helps,
Nick Vatamaniuc
H J van Rooyen wrote:
> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote:
>
>
> |H J van Rooyen a écrit :
> |> Hi,
> |>
> |> I want to write a small system that is transaction base
rypy, Turbogears and others). If your GUI will be more
complicated in the future, just stick with what you know (Tkinter for
example).
Good luck,
Nick Vatamaniuc
H J van Rooyen wrote:
> "Nick Vatamaniuc" <[EMAIL PROTECTED]> wrote:
>
>
> |HJ,
> |
> |As far as
See here:
http://wiki.python.org/moin/DistributedProgramming
-Nick V.
Martin Drautzburg wrote:
> Hello all,
>
> I've seen various attempts to add distributed computing capabilities on top
> of an existing language. For a true distributed system I would expect it to
> be pos
Edward Diener No Spam wrote:
> Michael wrote:
> > Edward Diener No Spam wrote:
> >
> >> Has there ever been, or is there presently anybody, in the Python
> >> developer community who sees the same need and is working toward that
> >> goal of a common component model in Python, blessed and encourag
Edward Diener No Spam wrote:
> Nick Vatamaniuc wrote:
> > Edward Diener No Spam wrote:
> >> Michael wrote:
> >
> > Python does not _need_ a component model just as you don't _need_ a RAD
> > IDE tool to write Python code. The reason for having a componen
ts in a list then apply reverse() on
it.
Hope this helps,
Nick Vatamaniuc
frankie_85 wrote:
> Ok I'm really lost (I'm new to python) how to use the reverse function.
>
>
> I made a little program which basically the a, b, c, d, e which I have
> listed below and basic
should be right there with the integers, strings, files,
lists and dictionaries. Another important point to stress, in my
opinion, is that functions are first-class objects. In other words
functions can be passes around just like strings and numbers!
-Nick Vatamaniuc
John Coleman wrote:
> Greet
event queue. I am not sure how to integrate
that into the Twisted event dispatcher... perhaps this class is the
answer?:
http://twistedmatrix.com/documents/current/api/twisted.python.dispatch.EventDispatcher.html
Hope this helps,
Nick V.
Snor wrote:
> I'm attempting to create a lobb
t; off with functional programming the last few years (mostly SML) and am
> interested in seeing the extend to which Python is genuinely
> "multi-paradigm" - able to blend the functional and imperative (and OO)
> paradigms together.
>
> -John Coleman
>
> Nick Vatamaniuc
? Have you read it from beginning to end. What did you think about
functions being introduced later than files and exceptions?
-Nick V.
Fredrik Lundh wrote:
> Nick Vatamaniuc wrote:
>
> > I would consider that an omission. Functions are very important in
> > Python. I think the
Try the --skip-networking option for mysqld
Paul Rubin wrote:
> "Nick Vatamaniuc" <[EMAIL PROTECTED]> writes:
> > The simplest solution is to change your system and put the DB on the
> > same machine thus greatly reducing the time it takes for each DB query
>
Good point. enterprise.adbapi is designed to solve the problem. The
other interface was deprecated.
Thanks,
Nick Vatamaniuc
Jean-Paul Calderone wrote:
> On 29 Oct 2006 13:13:32 -0800, Nick Vatamaniuc <[EMAIL PROTECTED]> wrote:
> >Snor wrote:
> >> I'm attempting to
it will be easier to find a job.
Mind you, a lot of place are still looking for C/C++, Java and, oh the
horror... COBOL! Sadly Python is still mostly on the "it's nice to
know but not required category"...
-Nick V.
ArdPy wrote:
> Hi there, these days I am desperately searching
has nested lists, for example, the above methods will
not copy everything, so you need a deep copy -- copy.deepcopy()
Hope this helps,
Nick V.
SpreadTooThin wrote:
> I'm really worried that python may is doing some things I wasn't
> expecting... but lets see...
>
> if I
I am not familiar with SQLite driver, but a typical Pythonic way to
check if you can do something is to just try it, and see what happens.
In more practical terms: try to just use the cursor or the connection
and see if an exception will be raised.
Nick V.
John Salerno wrote:
> John Sale
do this [Y/n]?"
For more in depth on subprocesses in Python take a look at the
subprocess module:
http://docs.python.org/lib/module-subprocess.html
Hope this helps,
Nick V.
Lorenzo wrote:
> I have this script that I want to use weekly to send me email with
> information regarding di
ments
flatnonzero() returns the non-zero elements of the flattened version
of the array.
Cheers,
Nick Vatamaniuc
deLenn wrote:
> Hi,
>
> Does scipy have an equivalent to Matlab's 'find' function, to list the
> indices of all nonzero elements in a sparse matrix?
>
> Cheers.
--
http://mail.python.org/mailman/listinfo/python-list
A[2,0]=-10
>>> print A
(1, 2)10
(2, 0)-10
>>>
The only way it could be helpful is if you get a lil_matrix returned as
an object from some code and you need to list all the elements...
Hope this helps,
Nick Vatamaniuc
deLenn
ve to just cast:
unpickled_set=set(unpickled_set)
-Nick V.
Amir Michail wrote:
> Hi,
>
> Is there an easy way to unpickle the older Set as the newer set behind
> the scenes when using shelve?
>
> Amir
--
http://mail.python.org/mailman/listinfo/python-list
t his" and so on...
The real answer is that pdf text extraction is pretty hard. It is a
1000x better to get a hold of the original source...
Nick V.
--
http://mail.python.org/mailman/listinfo/python-list
#x27;s VBA
documentation to see if it mentions anything.)
Nick
--
http://mail.python.org/mailman/listinfo/python-list
ng an environment variable has considerable merit from
a sanity point of view, but calling a global function is also possible.
Any ideas?
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
sn't deal with comparisons (which can
be done only in a purely functional programming language).
|> While you're at it, the pickle modules need to be fixed so they
|> support NaN and Inf. ;)
Yup. On my list :-)
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
e it is correct, it is
NEVER a safe thing to do by default.
The reason is that it is correct only when you know for certain that the
sign of zero is meaningful. IEEE 754 gets this wrong by conflating true
zero, sign-unknown zero and positive zero. Inter alia, it means that
you get situations like:
t
|> processor to get equivalent data.
No, it could be done right. The unpickling would need to detect those
values and raise an exception. You have to allow for it even on the
same 'systems' because one Python might have been compiled with hard
underflow and one with soft. You
ro that has had its sign flipped by an
aritfact of the code. For example:
lim(x->0 from above) 0.001*b/(a-1.001*a)
I fully agree that infinity arithmetic is fairly well-defined for
most operations, but it most definitely is not in this case. It should
be reserved for when the operations
known to be a negative one. NaN is the only numerically respectable
result if the sign is not known, or it might be a true zero.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
time may be negative.
Hence, the SAFE approach is to make the inverse of all zeros a NaN.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Grant Edwards <[EMAIL PROTECTED]> writes:
|> On 2006-06-15, Nick Maclaren <[EMAIL PROTECTED]> wrote:
|>
|> > Hence, the SAFE approach is to make the inverse of all zeros a
|> > NaN.
|>
|> OK. You're right. I
r ignoring 90% of the principles
of IEEE 754.
==>> But the flaws in those are not the point here. I am asking
whether people would positively OBJECT (as the did in C99) to
errors being detected, possibly as an overridable option.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
if Python just let the HW do it's thing when possible.
Including crash and burn?
Seriously. I don't think that you realise just how many layers of
fixup there are on a typical "IEEE 754" system, and how many variations
there are even for a single platform.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
p occurs, shall be a correctly signed
|> (infinity symbol)(6.3)."
|>
|> To me it looks like the spec specifically allows for a case
|> where "no trap occurrs" and the result is Inf.
That is correct. And it is a mandatory case. But it does NOT say what
the softwar
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
the only issue.
Tail recursion removal can often eliminate the memory drain, but the
code has to be written so that will work - and I don't know offhand
whether Python does it.
In compiled "3rd GL" languages, there are a lot of optimisation issues
where iteration will often produce b
t as a gimmicky, obfuscatory and often dogmatic
substitute for iteration! There are algorithms that become almost
incomprehensible without recursion, and I have implemented a recursion
layer in both assembler AND Fortran just to enable me to write them
without going bonkers.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
. Traditional,
clean streaming input can be implemented efficiently and with good
error diagnostics. The unclean C- and POSIX-like streaming input can't
be, or at least only one of the two can be provided at once.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
h
to have done any numeric work using fixed-point hardware.
|> So why not work with int(float * 100) instead? This way you only have
|> to take care of roundoffs etc when dividing.
And multiplying, and calling most mathematical functions.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Scott David Daniels <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote: (of fixed point)
|> > I am (just) old enough to remember when it was used for
|> > numeric work, and to have used it for that myself, but not old enough
|> &
The way that I read it, Python allows only values (and hence types)
to be immutable, and not class members. The nearest approach to the
latter is to use the name hiding conventions.
Is that correct?
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Robert Kern <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|> > The way that I read it, Python allows only values (and hence types)
|> > to be immutable, and not class members. The nearest approach to the
|> > latter is t
it is so ambiguous
as to be almost totally useless - and it is THAT information that needs to
be in the reference manual, but is only in whatsnew2.2.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
like to consider adding the information you perceive to be
|> lacking.
Consider it considered, but I have to start by understanding what is
supposed to happen and what does happen, precisely and in detail.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
def joe (self) :
print "Inside /joe\n"
a = fred()
a.joe()
I get:
Inside pete
Inside joe
Traceback (most recent call last):
File "crap.py", line 14, in
a.joe()
TypeError: 'NoneType' object is not callable
VERY weird - I could understand it if I
oe within fred, I assumed that it referred to getting
joe from fred. That certainly doesn't appear to be the case, and I don't
see how it helps with my original request if not.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
ut
it is compatible with a good many other interpretations, too. Until and
unless you know what it means, you can't extract its meaning from its
words.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
I was using a decorator and defining an attribute directly.
But no matter - it is clear I had completely misunderstood the intent.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
here for a while.
Create a file called '' in your current directory containing
'print "Oh, yeah?\n"' and then import a module that doesn't exist.
Don't include the single quotes.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Simon Forman" <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|> ...
|> > Create a file called '' in your current directory containing
|> > 'print "Oh, yeah?\n"' and then import a modul
x27;fred'. strace
or equivalent shows up clearly what the bug is.
|> I don't know whether this is worth fixing.
It's definitely worth fixing, but not as a high priority. Invoking a
file spuriously is potentially serious, with very low probability.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|>
|> > It's definitely worth fixing, but not as a high priority. Invoking a
|> > file spuriously is potentially serious, with very low probability.
|>
|>
; "" as the second argument to compile:
|>
|> http://pyref.infogami.com/compile
And the reason that it does that is because it is using one of the standard
conventions for naming stdin. Python didn't INVENT that convention, you
know.
The bug isn't in passing an information string "" but in using
that string (which is not meant to represent a real file) to perform a
file search.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
gree, and depend on the system, configuration and program that
is listening on that port.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
t ones), and
excluding the systems that are not based on or largely cloned from
Unix. You should look at the POSIX facilities, but don't rely on
them without checking.
Also think very carefully whether you want to separate by user or
job - the latter is trickier under Unix.
Regards,
Nick Macla
always do.
|> I wasn't talking about FIFOs. Even if I was, they _are_ still subject to
|> regular file permissions (on Linux, at least).
They aren't on most Unices - Linux is not UNIX, you know :-)
I shall not respond further on this.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
ress are worth pursuing. One of the main reasons that
'program proving' has never taken off outside its cabal is that it
uses bizarre notations unlike anything else on earth that can't be
edited in a normal fashion.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
n general I believe that a small performance penalty is acceptable in
order to have a correct and consistent data type, especially for Python
i.e. I might not argue the same for Perl or C.
-Nick V.
[EMAIL PROTECTED] wrote:
> There's a few good reasons.
> 1 - golden handcuffs. Breaking old
You are correct I should have thought of that. I still think the keys()
method should return a set() though.
Robert Kern wrote:
> [EMAIL PROTECTED] wrote:
> > The same thing goes for the values(). Here most people will argue that
> > values are not necessarily unique, so a list is more appropriate
s a Bessel function?;)
Some people use them all the time; there are specific physical problems
where they are fundamental. I have never used them, in 40 years of
wide-ranging experience in the scientific computing arena!
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
"cannot get it to work." is pretty broad, you are more likely to get
help if you post an error message or any other details.
[EMAIL PROTECTED] wrote:
> Hi,
>
> I wrote a small app using wxPython on a Linux distro called Ubuntu (it
> is a debain derivative). I ran it on windows and it just worked
>
is not in the path list then Python won't be able to import wx
from there. To test your wx app, you can append to sys.path the path of
your wx module then try to import again.
Hope this helps,
Nick V.
[EMAIL PROTECTED] wrote:
> How can we find that it is not using the right version of Pytho
whitespace explicitly) or pick out only valid token
symbols uninterrupted by any whitespace (specify valid symbols
explicitly).
Nick V.
Tim Chase wrote:
> >>rgx = re.compile('\W+')
> >>
> >> if you don't mind numbers included you text (in the
bad thing) rather than finding a framework that helps you solve the
problem.
--Nick V.
John Henry wrote:
> Hi folks.
>
> I am interested on this topic as well.
>
> If my application is not database related, what would be a good choice?
>
> I have clients that wish to use my P
Perhaps it will be addressed in 3.0...
I hope True and False could become keywords eventually. That would stop
silliness like:
-
In [1]: False=True
In [2]: not False
Out[2]: False
In [3]: False
Out[3]: True
-
Nick V.
John Roth wrote:
> Saizan wr
might have
them) then load them up into a list and randomly choose between the
indices of the list to get your words.
Nick V.
Jay wrote:
> How would I be able to grab random words from an internet source. I'd
> like to grab a random word from a comprehensive internet dictionary.
>
f'
code as
-
result=S.split(sep) if maxsplit is None else S.split(sep,maxsplit)
-
-Nick Vatamaniuc
Steven D'Aprano wrote:
> I'm having problems passing a default value to the maxsplit argument of
> str.split. I'm trying to write a function which act
e()[0]
In [3]: out
Out[3]: './tmp/ex.tex:Blah blah blah...\n'
---
-Nick V.
bhavya sg wrote:
> Hi,
>
> I saw in PEP4 of python 2.5 that grep module has gone
> obsolete in perl 2.5. But I am not able to find an
be fairly easy.
Note: I am not familiar with the syntax of the mail log so I presented
a general idea only. My assumptions about the syntax might have been
wrong.
Hope this helps,
Nick Vatamaniuc
Andi Clemens wrote:
> Hi,
>
> we had some problems in the last weeks with our mailserver.
glenn wrote:
> Hi
> can anyone tell me how given a directory or file path, I can
> pythonically tell if that item is on 'removable media', or sometype of
> vfs, the label of the media (or volume) and perhaps any other details
> about the media itself?
> thanks
> Glenn
It won't be trivial because
If your thread is long running and it is not possible to easily set a
flag for it to check and bail out, then how does it display the
progress in the progress dialog. How often does that get updated? If
the progress dialog is updated often, then at each update have the
thread check a self.please_di
Panda3D is pretty good http://www.panda3d.org/ . It is very well
documented and it comes with many examples.
There is also pygame.
Jay wrote:
> I'd like to experiment a little bit with vector graphics in python.
> When I say 'vector graphics' I don't mean regular old svg-style. I
> mean vecto
Matt,
In [26]: inspect.getargspec(f)
Out[26]: (['x1', 'x2'], None, None, None)
For more see the inspect module.
-Nick Vatamaniuc
Matthew Wilson wrote:
> I'm writing a function that accepts a function as an argument, and I
> want to know to all the parameters t
ou can use cPickle for a much faster pickle (but check out the
constraints imposed by cPickle in the Python documentation).
Hope this helps,
-Nick Vatamaniuc
Jay wrote:
> Is there a way through python that I can take a few graphics and/or
> sounds and combine them into a single .dat file?
Tkinter is
behind other modern GUI kits out there.
Hope this helps,
Nick Vatamaniuc
MakaMaka wrote:
> Hi,
> Does anybody know of a good widget for wxpython, gtk, etc. that allows
> the editing of block diagrams and make it easy to export the diagram as
> a digraph? It has to be a
mportant to
realize that there will be some collision between the keys if the
number of all possible digests (as limited by the digest algoritm) is
smaller than the number of the possible messages. In practice if you
have large enough integers (64) you shouldn't see any collisions
occu
user and group IDs, not with user and group names.
Hope that helps,
-Nick Vatamaniuc
[EMAIL PROTECTED] wrote:
> hi
>
> due to certain constraints, i will running a python script as root
> inside this script, also due to some constraints, i need to switch user
> to user1 to run the
Has the addition of a Universe Set object ever been suggested. Like U
= set(0), so that any object was a member of U? Maybe this gets into
some crazy Cantorian stuff since U is in U. But it seems like it would
be useful and would have a nice symmetry with emptyset:set([]), that
is:
for any obje
SpreadTooThin wrote:
> If you are deriving a new class from another class,
> that you must (I assume) know the initializer of the other class.
>
> So in myClass
>
> import array
> class myClass(arrary.array):
>def __init__(self, now here I need to put array's constructor
> parameters..., then
p for free, just so they can put some work experience on their
resume...
Hope that helps,
Nick V.
darran wrote:
> I'm a partner in a design and technology studio that creates
> large-scale interactive exhibits for museums. We are agile - by
> choice. For big 6-12 month pro
to use the split function from the regular expression module
(re):
http://docs.python.org/lib/node46.html
Hope this helps,
Nick V.
ronrsr wrote:
> I'm trying to break up the result tuple into keyword phrases. The
> keyword phrases are separated by a ; -- the split function is no
t won't
be used until after the class has been created properly. Actually,
it won't be used except to test for class equivalence, but I may
want to extend later.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
r the class is initialised.
|> Alternatively you can play tricks with metaclasses for a similar effect.
Well, I am already doing that, and regretting the fact that Python
doesn't seem to allow a class instantiation to return a new class :-)
What I am trying to do is very simple, but is s
x27; of class (A).
There are several ways of doing this in Python, but I can't find
any that are as transparent to the user as I would really like.
There is method in my madness :-)
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Michele Simionato" <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|> > It would be much cleaner not to have to fiddle with static
|> > members after the class is initialised.
|>
|> You can hide the fiddling,
Why doesn't the tuple type have an index method? It seems such a
bizarre restriction that there must be some reason for it. Yes,
I know it's a fairly rare requirement.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
ove or add things to tuples is an even
|> bizarrer restriction!
Eh? Why?
My understanding of the difference between a tuple and a list is
PRECISELY that the former is immutable and the latter mutable.
But an index method makes precisely as much sense on an immutable
sequence as it does on a mutabl
have dual properties - and are true duals if you
include the constraint of no duplicate elements.
I remain baffled. I accept the explanations, but what I am now
confused by is the reason for the explanations
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
dum
on Usenet.
The point is that an index method makes sense on ANY data structure that
can be subscripted by an integer value but, for reasons that aren't at
all clear, is not defined for Python tuples. There is no technical or
mathematical reason why it shouldn't be.
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
|> Nick Maclaren wrote:
|>
|> > If lists are intended to be homogeneous, then they should be checked
|> > for that, and an exception raised when an attempt is to make them
|>
rom the horse's mouth, will clear
|> things up once and for all...
|>
|> http://www.python.org/search/hypermail/python-1992/0285.html
Wonderful! Thanks. Yes, that does. It makes perfect sense. I did
say that I thought it would be a rarely used feature :-)
Regards,
Nick Maclaren.
--
http://mail.python.org/mailman/listinfo/python-list
701 - 800 of 1670 matches
Mail list logo