unning in Python
in a much quicker time than posting very elementary questions to a
newsgroup. (Although we value your interest).
Welcome to Python by the way.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 3, 8:24 am, [EMAIL PROTECTED] wrote:
> Hello All:
> I am trying to work out a regular expression in a PyQt environment for
> time in hh:mm:ss format. Any suggestions?
> Thanks,
> Vishal
Yep,
Use Kodos!
http://kodos.sourceforge.net/
- It's Fab.
- Paddy.
--
http://mai
On Feb 3, 8:51 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Sat, 03 Feb 2007 02:37:11 -0300, Paddy <[EMAIL PROTECTED]>
> escribió:
>
> >> and what is
> >> __name__
> >> __main__
>
> >> use for in terms of Java?
>
n will capture the hh,mm,ss as groups 1,2,3
r'\b(\d\d):(\d\d):(\d\d)\b'
- Paddy
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 3, 9:17 am, "Paddy" <[EMAIL PROTECTED]> wrote:
> On Feb 3, 8:59 am, [EMAIL PROTECTED] wrote:
>
> > I am trying to use Kodos..but not getting thru'..dont know whats goin
> > on..does anyone have a regular expression for time in hh:mm:ss
> > -Vish
ed.
Your link points to a very old version of Python and error handling
has changed. Please use a more recent tutorial such as THE Python
tutorial here:
http://docs.python.org/tut/node10.html
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
e... say every other line (user
> selectable)... to a new file.
>
> I'm pretty experienced at reading and writing simple text files, but
> this is my first foray into using COM. I would imagine either choice 1
> or 2 is pretty simple once I can get the file open.
>
>
On Feb 3, 10:53 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
> On Sat, 03 Feb 2007 05:51:56 -0300, "Gabriel Genellina"
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
> > menction that at all. And no one should expect that a beginner would have
> > to read section 26.3 on t
On Feb 4, 9:01 am, Necmettin Begiter <[EMAIL PROTECTED]>
wrote:
> 04 Şub 2007 Paz 00:48 tarihinde, Dick Moores şunları yazmıştı:> Are there
> generally accepted definitions of "editor" and "IDE". Is there a
> > clear-cut distinction between them? I've been looking at the lists of each
> > at pyth
iew. If your expert J programmers have
need for something that is hard to do in J they might now be more
likely to use Python.
We should remember that Python is a great glue language too, and links
to other languages and tools is how we maintain that position.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
d
be nice to have threads==native threads for completeness sake, I'm
quit happy to run concurrent communicating processes, as on my
machines the OS helps me to see what's happening to the processes, and
stops processes trampling over shared data".
-Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
operator acting on a group turned that
group into a sequence returning every match, in order. (or an empty
sequence for no matches).
The above exaple would become:
>>> import re
>>> re.newmatch(r"(\w+)(,\w+)*", "egg,beans,ham,spam,spam").groups()
('egg&
[2:])
>
> python doesn't like a non-numeric index.
>
> I would really appreciate a pointer so I can learn how to manipulate lists
> of tuples by referencing specific items in each tuple (string or float).
>
> Rich
You might also use list comprehensions to accumulate the
k')
>>>
Ruben commented that there was a poll on this features continued
existence taken at PyCon and it could go.
Just as I found it, it could go
I wondered if those of you with some Python experience new of nested
parameters and don't use them; or just forgot/don't know it
On Feb 25, 5:44 pm, Jussi Salmela <[EMAIL PROTECTED]> wrote:
> Paddy kirjoitti:
>
>
>
> > On Feb 25, 2:01 am, [EMAIL PROTECTED] wrote:
> >> While working with lists of tuples is probably very common, none of my
> >> five Python books or a Google sea
On Feb 25, 7:06 pm, "Virgil Dupras" <[EMAIL PROTECTED]>
wrote:
> On Feb 25, 1:00 pm, "Paddy" <[EMAIL PROTECTED]> wrote:
>
>
>
> > I blogged on finding a new-to-me feature of Python, in that you are
> > allowed to nnest parameter definitions:
e language reference
manual.
Do any Python books mention nested parameters?
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
27;t reach the recursion depth limit.)
>
> Christian
My solution using comb2 is recursive so there is no problem with
recursion depth.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
are after the result. Its my program
# that would require the lambda (or def), which
# is a distraction from their problem.
Any ideas on implementing f1 so I can do f2?
Thanks in advance, Paddy.
P.S. You might also have multiple calls where I
would need to capture each individual argument
expres
n the future (allthough I did take time over my initial post).
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 10, 7:02 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Sat, 10 Nov 2007 03:03:00 -0300, Paddy <[EMAIL PROTECTED]>
> escribió:
>
>
>
> > Hi,
> > # If I have a function definition
> > def f1(arg):
> > global capturecall
On Nov 10, 3:44 pm, Piet van Oostrum <[EMAIL PROTECTED]> wrote:
> With Python this can't be done without either quoting the expression (make
> a string out of it) or using a lambda. Lisp and C# can do this kind of thing.
I'd like to propose we add '() to Python. Pronounced tick-
brackets, it
surr
'Pythonic' doctest module:
http://en.wikipedia.org/wiki/Doctest
> (new to python so be nice :)
Welcome to Python!
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
be nice to have more info on his specific problems. Me, I
find both Activestates and the official Python wiundows installers
just work.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
ike a tangled jungle...
>
> \d
The output of the following program might help:
# chained_comparisons.py
complist = '< <= == != >= >'.split()
for lhs in complist:
for rhs in complist:
print "\n1 %2s x %2s 3:" % (lhs, rhs)
for x in range(5):
c
ffin |
> Ben Finney
>From
>http://coding.derkeiler.com/Archive/Python/comp.lang.python/2004-02/4172.html
it seems to be an undocumented feature. Read the post and decide for
yourself if you want to depend on it.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
re an easy way of doing this instead of
> parsing the files and checking said types?
> Thanks
> Cheers
> Astan
Think SECURITY. If is someone likely to put malicious code in the file
to crap all over your machine?
If not then import the file as a module.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
utput into
> my document. I have lots of experience with latex, but I wonder if there
> may be some other choices. Maybe docutils, pydoc, something else? The
> code I'm documenting is written in python, if that matters.
Doctest and restructuredtext.
http://docutils.sourceforge.net/docs
references for docstring and/or
> > __doc__
>
> Thanks.
Adam, with doctest you can incorporate tests that show typical usage
into the documentation that are easy to keep up to date.
http://en.wikipedia.org/wiki/Doctest
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
Do: "The difference between two floats is in the range ..."
But even 2 needs some serious thinking if the range of float values
being
compared is large.
Its unscientific, but floats need more respect.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
ion?
>
> Thanks,
> igor
I can't quite get what you require from your explanation. Do you have
sample input & output?
Maybe this:
http://paddy3118.blogspot.com/2007/02/unzip-un-needed-in-python.html
Will help.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
op? Shouldn't
> re5.search(str5).group(0) return 'aaa bbb\r\n ccc ddd' ?
>
> Thanks
Have an RE problem in Python?
Get Kodos! (http://kodos.sourceforge.net/)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
to take time.
Best to do as the docs say and compile your RE's once before use if
you can.
The timeit module: http://www.diveintopython.org/performance_tuning/timeit.html
will allow you to do your own timings.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
After quite enjoying participating in the group in 2007, I'd like to
wish you all a Merry Xmas.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Mickle.
A quick search on the www.python.org site leads to:
http://wiki.python.org/moin/LanguageComparisons
The thing about language comparisons are that they are all
subjective/biased. Best to read other things by the author to know
'where they are coming from'.
Oh, and check the dates of t
great length before.
- Cheers, Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
Your second point 'clear separation of "production" code and "test"
code' is best handled by using a revision control system. I know
Clearcase, because I use it at work, but I have heard good things about
Subversion.
--
http://mail.python.org/mailman/listinfo/python-list
with a copy of the file linked to
* get write priviliges to the new copy
* edit the copy.
But we should all be using a version control system right :-)
- paddy.
--
http://mail.python.org/mailman/listinfo/python-list
Might the doctest modules functionality have first occured in Python?
--
http://mail.python.org/mailman/listinfo/python-list
Something like (untested):
out = []
for ch in instring:
if ch==backspace:
if out:
out = out[:-1]
else:
out.append(ch)
outstring = ''.join(out)
- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
the del version - is that an optimisation?
Is it actually faster?
- I did not have enough info. to check so just did what came naturally
to me :-)
- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
I take it that you have a binary file that takes a file name and
proceses the file contents.
Sometimes Unix binaries are written so that a file name of '-', (just a
dash), causes it to take input from stdin so that the piping mentioned
in a previous reply could work.
On some of our unix systems /tm
A little off topic I'm afraid Giandomenico,
But I had to smile. Here is someone working in the field of
linguistics, who wants a programming solution, in the language Python.
(It's Larry Wall, creator of Perl that cites his linguistic
foundations).
-- Pad.
--
http://mail.python.org/mailman/list
ord_extracts = []
for word in word_split:
matched = re.match(otherwords, word)
if matched:
word_extracts += [jockstrap for jockstrap in
matched.groups() if jockstrap]
else:
word_extracts.append(word)
line_words.append(word_extracts)
return line_words
line_words = word_up(instring, separators, otherwords)
print '\n# Python format extracted words as list of lists'
pprint.pprint(line_words)
print '\n# Unix friendly space separated words'
for l in line_words:
for w in l:
print w,
print
-- Paddy
--
http://mail.python.org/mailman/listinfo/python-list
I found this version of the phrasebook:
http://wiki.python.org/moin/PerlPhrasebook
its been edited recently but I didn't check for how current it is.
-- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
Also addressing the Python and scaling question is the
kamaelia.sourceforge.net project whos objective is to solve the
problems of putting the BBCs vast archives on the web, and who use
Python.
-- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
The CSV module?
--
http://mail.python.org/mailman/listinfo/python-list
t()[0].split('/')[-2]
'dbg_for_python'
>>>
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
>>> s.split()[0].split('/')[-2]
'dbg_for_python'
>>> s ="/main/parallel_branch_1/release_branch_1.0/dbg_for_python/CHECKEDOUT
>>> from /main/parallel_branch_1/release_branch_1.0/4"
>>> s.split()[0].split('/')[-2]
'dbg_for_python'
>>>
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
t;"
Would match the string:
"go for it go for broke"
As would:
defs2 = r'(?smx) (?P/GO/ go \s for \s (?P=subject) )'
rgexp = defs2 + r"""
(?P=GO (?P it) )
\s+
(?P=\GO (?P broke) )
"""
The above would allow me to factor out sections of REs and define
named, re-ussable RE snippets.
Please comment :-)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
> On 13/05/2006 7:39 PM, Paddy wrote:
> [snip]
> > Extension; named RE variables, with arguments
> > ===
> > In this, all group definitions in the body of the variable definition
> > reference the literal contents
Paul McGuire wrote:
> "Paddy" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Proposal: Named RE variables
> > ==
Hi Paul, please also refer to my reply to John.
>
> By contrast, the event declaration express
lost, e.g:
r"[a-zA-Z_]\w+[,[a-zA-Z_]\w+]"
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
I don't like string interpolation within REs, it pops me out of 'RE
mode' as I scan the line.
Maybe creating a dict of matchobjects could be used in the larger
context?:
dict( [(t, re.search(t+regexp_tail, file2) for t in targets] )
(untested).
- Pad.
--
http://mail.python.org/mailman/listi
Unfortunately, Cadence got their first with their DFII environment for
Schematic based design and their Lisp based language SKILL
(http://www-mtl.mit.edu/users/xiaolin/skill/sklanguser/sklanguserTOC.html)
I used their environment several years ago and can only say that it was
all you have stated a
If the log has a lot of repeated lines in its original state then
running uniq twice, once up front to reduce what needs to be sorted,
might be quicker?
uniq log_file | sort| uniq | wc -l
- Pad.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Kaz,
The 'Unix way' is to have lots of small utilities that do one thing
well, then connect them via pipes. It could be that the optimised sort
algorithm is hampered if it has to remove duplicates too, or that the
maintainers want to draw a line on added functionality.
Personally, 95%* of the t
Paul McGuire wrote:
> "Kaz Kylheku" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > Paddy wrote:
> > ...if you are lucky enough to have a "zero copy"
> > pipe implementation whcih allows data to go from the writer's buffe
baalbek wrote:
> David Cuthbert wrote:
>
> > This does not mean the design itself should be stored as an RDBMS. As
> > I've stated previously, CAD data (both electrical and, it appears,
> > mechanical) does not lend itself to RDBMS relationship modeling.
>
> I simply do not agree with this.
>
> A
Oh please, please, can I answer!
They are decorators.
Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610
(decorate this),
or http://paddy3118.blogspot.com/ " Python function attributes" and
then " Function Attributes assigned by decorator".
Of course there is also:
http://wiki.pyt
Oh please, please, can I answer!
They are decorators.
Check-out http://zephyrfalcon.org/weblog2/arch_e10_00610.html#e610
(decorate this),
or http://paddy3118.blogspot.com/ " Python function attributes" and
then " Function Attributes assigned by decorator".
Of course there is also:
http://wiki.pyt
Hmm,
check your editor to see if it has an option to display non-printable
characters, or see if you can search for tabs in its find utility.
If you find that your editor has the ability to insert spaces instead
of tabs then turn it off.
Thats all that comes to mind...
- Pad.
--
http://mail.p
I guess the 'advanced O/R mapping tools' make it easier to map the data
to an RDBMS, but their is still the performance issue. Since this has
degenerated into a an issue of performance then I suggest the original
poster create a clear interface between his data and its persistance
method. This shou
h.
I haven't tried this, but you should be able to wrap your text string
so that it looks like a file using the stringio module and pass that
to elementtree:
http://blog.doughellmann.com/2007/04/pymotw-stringio-and-cstringio.html
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
e result of
[property(i) for i in a_list] against a_list.
If random_pick is called several times with list(s) whith multiple
instances of list items then cache
property(i) against i for i in a_list .
You could do both.
You might investigate wether property(i) could be implemented using a
faster algorithm, maybe table lookup, or interpolation from initial
table lookup.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
but code to be read might include code posted to
newsgroups in answer to questions, or your blog entries. If you have
no code fit to be read then what is a potential employer to do?
(Personally, a college student showing an appreciation of doctests
would impress).
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 4, 3:50 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > From: Stephen Hansen [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 03, 2008 7:39 PM
> > To: Reedick, Andrew
> > Cc: [EMAIL PROTECTED]
> > Subject: Re: dictionary/hash and '1' versus 1
>
> > Well one important thing to learn
On Jan 5, 11:07 pm, [EMAIL PROTECTED] wrote:
> Paddy:
>
> > Not really, it seems to me to be going the exact opposite way with
> > languages with automatic type conversions being seen as not suited for
> > larger programs.
>
> In Java you can add the num
On Jan 5, 6:37 am, Paddy <[EMAIL PROTECTED]> wrote:
> On Jan 4, 7:55 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hello,
> > This is a question for the best method (in terms of performance
> > only) to choose a random element from a list among those that satisfy
On Jan 7, 1:09 am, John Nagle <[EMAIL PROTECTED]> wrote:
>Another in our ongoing series on "Parsing Real-World HTML".
>
>It's wrong, of course. But Firefox will accept as HTML escapes
>
> &
> >
> <
>
> as well as the correct forms
>
> &
> >
>
for example, a complex number 'base' type would that need
yet another set of operators?
Well enough Perl vs Python. The thing is, that when writing in another
programming language you have to use its idioms or you end up fighting
the language in attempt to make it work like another language you are
more familiar with. In Python strings won't ever automatically change
to numbers.
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
ne enough to choose.
Concise!
See http://paddy3118.blogspot.com/2007_11_01_archive.html
For my search!
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 7, 7:26 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of Paddy
> > Sent: Monday, January 07, 2008 12:52 PM
> > To: [EMAIL PROTECTED]
&
pared.
(C/C++ I see as the bedrock language of open-source):
http://tinyurl.com/2u76d9
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
ys.
http://scan.coverity.com/
- Paddy.
P.S. I wonder, do any closed source programming languages have such
bug reports available?
--
http://mail.python.org/mailman/listinfo/python-list
ntribution to the
> mix:http://www.4dsolutions.net/ocn/python/gis.py
>
> Kirby Urner
> 4D Solutions
> Silicon Forest
> Oregon
I would think there was more data out there formatted as Lisp S-
expressions than Python data-structures.
Wouldn't it be better to concentrate on 'wrapping' XML and CSV data-
sources?
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
n it in when you pay your toll.
I didn't reread my blog post! I meant Python is *succinct* with
definition:
http://www.askoxford.com/concise_oed/succinct?view=uk
"Briefly and clearly expressed".
(I should engage brain before typing).
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 9, 6:52 am, Paddy <[EMAIL PROTECTED]> wrote:
> On Jan 9, 2:19 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > Greetings Pythoneers --
>
> > Some of us over on edu-sig, one of the community actives,
> > have been b
On Jan 9, 8:47 pm, [EMAIL PROTECTED] wrote:
> Donald 'Paddy' McCarthy:
>
> [... lots and lots and lots of tests...]
>
> C'mon Paddy, where are the timings too? Are you becoming lazy
> lately? ;-)
>
> Bear bugs,
> bearophile
Get it right before you
On Jan 9, 8:56 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Donald 'Paddy' McCarthy wrote:
> > I created some more test strings and ran posters solutions against them.
>
> the point being?
>
>
To see how they act against 'corner cases' and
an e
On Jan 9, 9:29 pm, Paddy <[EMAIL PROTECTED]> wrote:
> On Jan 9, 8:56 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> > Donald 'Paddy' McCarthy wrote:
> > > I created some more test strings and ran posters solutions against them.
>
> > the
On Jan 9, 9:39 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> Paddy wrote:
> > To see how they act against 'corner cases' and
> > an exercise for me in trying to create corner cases. (I'm in to
> > functional testing at the mo').
>
> sounds m
On Jan 9, 11:05 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Jan 9, 8:15 am, Paddy <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jan 9, 6:52 am, Paddy <[EMAIL PROTECTED]> wrote:
>
> > > On Jan 9, 2:19 am, "[EMAIL PROTECTED]&q
else:
>s2 += i
>
> print s2
>
> Presently I cannot work out how to use .join instead of += ...
Do
s2 = []
then later: s2.append(i)
and at the end: print ''.join(s2)
- Paddy.
> While I realise this is producing a new string (and I believe +=
> rebuilds it a
'10_11_12_' RETURNS '10:11,12:'
'13_14_15_16' RETURNS '13:14,15:16'
'17_18_19_20_' RETURNS '17:18,19:20,'
'_' RETURNS ':'
'_21' RETURNS ':21'
'_22_' RETURNS ':22,'
'_23_24' RETURNS ':23,24'
'_25_26_' RETURNS ':25,26:'
'_27_28_29' RETURNS ':27,28:29'
'_30_31_32_' RETURNS ':30,31:32,'
'_33_34_35_36' RETURNS ':33,34:35,36'
'__' RETURNS ':,'
'___' RETURNS ':,:'
'' RETURNS ':,:,'
'_' RETURNS ':,:,:'
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
27;:21'
'_22_' RETURNS ':22,'
'_23_24' RETURNS ':23,24'
'_25_26_' RETURNS ':25,26:'
'_27_28_29' RETURNS ':27,28:29'
'_30_31_32_' RETURNS ':30,31:32,'
'_33_34_35_36' RETURNS ':33,34:35,36'
'__' RETURNS ':,'
'___' RETURNS ':,:'
'' RETURNS ':,:,'
'_' RETURNS ':,:,:'
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 11, 8:55 pm, "Reedick, Andrew" <[EMAIL PROTECTED]> wrote:
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:python-
> > [EMAIL PROTECTED] On Behalf Of cesco
> > Sent: Wednesday, January 09, 2008 5:34 AM
> > To: [EMAIL PROTECTED]
> > Subject: alternating string replace
>
> >
act by purposefully modifying their arguments. Don't do it. Stick a
return in your function and use that result. It is much more
maintainable and readable. (It will also work, and look a lot more
like, the same function written in other languages :-)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
or an
'array', Python programs might organise data as lists. Lists are used
much more than arrays in Python. you should find that is the case in
tutorials/books too.
P.S. if you know Perl then try:
http://wiki.python.org/moin/PerlPhrasebook?highlight=%28perl%29
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
he case in
> > tutorials/books too.
>
> >http://wiki.python.org/moin/PerlPhrasebook?highlight=%28perl%29
>
> > - Paddy.
>
> Hi,
>
> From Core Python Programming book (btw I like this book) I know the
> difference is that array can hold only one type (the C standard?),
> Paddy:
>
> > I guess 'under the hood' Python (& Perl?), arrays might be more like
> > an implementation of what the C programmer might call a linked list,
> > but even then there are differences as most linked list examples
> > given in C tu
ow to look for the topological sort algorithm by name?
(http://paddy3118.blogspot.com/2007/10/whats-in-name.html)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 19, 1:08 am, Carl Banks <[EMAIL PROTECTED]> wrote:
>
> Ten minutes later I saw it mentioned it on comp.lang.python.
It's almost as if you looking for it made it popular :-)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 19, 4:30 pm, duncan smith <[EMAIL PROTECTED]>
wrote:
> Carl Banks wrote:
> > On Jan 18, 7:01 pm, Paddy <[EMAIL PROTECTED]> wrote:
> >> On Jan 18, 9:47 pm, [EMAIL PROTECTED] wrote:> Tim,
>
> >>> Thanks for the topsort code. It would be usef
nd weakly typed. It is Perls weak typing
that allows automatic conversion between dissimilar types.
See: http://en.wikipedia.org/wiki/Type_system
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
a bug in min/max perhaps :-)?
I am definitely NOT a floating point expert, but I did find this:
http://en.wikipedia.org/wiki/IEEE_754r#min_and_max
P.S. What platform /Compiler are you using for Python?
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
her bottlenecks in your application?
4) Is this the routine whose smallest % speed-up would give the
largest overall speed up of your application?
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 22, 5:34 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jan 22, 12:15 am, Paddy <[EMAIL PROTECTED]> wrote:
>
> > On Jan 22, 3:20 am, Alan Isaac <[EMAIL PROTECTED]> wrote:> I want to
> > generate sequential pairs from a list.
> > <>
>
On Jan 23, 2:32 am, George Sakkis <[EMAIL PROTECTED]> wrote:
> On Jan 22, 1:34 pm, Paddy <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jan 22, 5:34 am, George Sakkis <[EMAIL PROTECTED]> wrote:
>
> > > On Jan 22, 12:15 am, Paddy <[EMAIL PROTECTED]> w
n reminded of good software practice memes in
answers and think its part of what makes c.l.p. a rewarding
experience. It may be hubris to think that a random reader might read
my post and then follow my points before making a routine faster; but
there you go :-)
- Paddy.
--
http://mail.python.org/mailman/listinfo/python-list
401 - 500 of 675 matches
Mail list logo