#x27;ve ever seen, but
it looks possible.
--Michael
PS: I've had notes on this for awhile, but haven't had the time to
try. If it works, let me know.
On 1/9/08, Timothy Sikes <[EMAIL PROTECTED]> wrote:
>
> Hello all.
>
> I have been working with Python for a couple years of
u through these problems. He or she
is best qualified to know your current level and the context for such
a homework assignment. Of course, reading the book is also likely to
help.
For everyone else, if you like these exercises there are 300 more
where they came from. ;-)
With
Okay
Just when I think I am getting it you throw this in. So why does a
become local to each variable but b seem global?
Michael
bob gailer wrote:
> Michael wrote:
>> Hi Michael
>>
>> Thanks for the quick reply, I think I get it. So becuase I did not
>> declare t
Hi Michael
Thanks for the quick reply, I think I get it. So becuase I did not
declare them withing the init method using self they are shared by every
object that is created, even completely brand new ones?
Is it normal practice to declare your variables in a class? I notice
that you don
Hi Michael,
This is a very interesting example. You do indeed have two distinct
copies. The interdependence you are observing is because you have
defined CLASS-LEVEL variables (akin to static in Java) rather than
instance-level variables. This is because of their declaration
within
changes as well. Can anyone give ma a pointer?
Thanks
Michael
--
import copy
class point:
"represents a point in 2d space"
x = 0
y = 0
def printpoints(self):
print "x is %g, y is %g" %(self.x, self.y)
class rectangle:
&qu
Hello list!
I was wondering if any of you could help me with this:
I've got a small GUI connected to a SQLite DB. My OptionMenu pulls a
category list from the DB, and there's a field to add a new Category if you
need to. Now, I'd like the have the OptionMenu update with the new category
after the
ye)
It took me a couple of minutes to understand your challenge. :-) Then I
remembered that "ui" is instantiated inside "g" and therefore callable with
the right parameter.
Thank you very, very much. I enjoy a good challenge.
--
Med venlig hilsen/Kind regards
Michael
out.
I don't think I understand your concern enough to address it. Are you
worried about reliability? Error checking? What in particular?
Perhaps you could cut and paste a bit of code you've already written
that you think would be complicated by the Async?
--Michael
On Jan 2
Windows,
Linux, Mac, Firefox, IE6, IE7 and Opera, makes this a great choice for
a easy UI toolkit.
--Michael
On Jan 2, 2008 9:08 AM, Roy Chen <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I've been using PythonCard to build a GUI for a simple program I'm trying to
&
nks a lot for this test of my humility and for your effort.
--
Med venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
I am /root and if you see me laughing you better have a backup.
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
wanted to understand how a "parent" object could send a callback to a
"child" object, and now I got it.
Feel free to comment on this, please.
Thank you for your patience, Alan.
--
Med venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
I am /ro
m your python backend).
If you're really trying to avoid writing your own HTML out, the table
example from GWT(
http://gwt.google.com/samples/KitchenSink/KitchenSink.html#Panels) will do
what you're looking for. Pyjamas(http://code.google.com/p/pyjamas/) will
generate GWT code from pyt
1(x):
>print 'f1: %s' % x
>
>def f2(x):
>print 'f2: %s' % x
>
>def use_them(funcs):
>for func in funcs:
>func('abcd')
>
>def test():
>funcs = [f1, f2]
>use_them(funcs)
&
vor
On Dec 29, 2007 6:39 PM, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Michael Bernhard Arp Sørensen" <[EMAIL PROTECTED]>
> wrote
>
> > I want to learn about callbacks because we use it at work in our
> > software.
>
> Can you be more specific
Hi there.
I want to learn about callbacks because we use it at work in our software.
I there a short "hello world"-like version of a callback example?
--
Med venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
I am /root and if you see me laughing you better hav
:
mydict[ record[0] ].append( record )
defaultdict is usually good enough for datasets I've used it for.
--Michael
On 12/28/07, doug shawhan <[EMAIL PROTECTED]> wrote:
>
> *sigh* Ignore folks. I had forgotten about .has_key().
>
>
>
> On Dec 28, 2007 11:22 AM, d
operating system.
Some interesting reading is at http://www.3dartist.com/WP/python/tknotes.htm
With regard,
Michael
---
from Tkinter import Tk,Label
def onClose():
root.destroy() # stops the main loop and interpreter
root = Tk()
roo
hello world")
Can this be done? If not, is there a work around or some design pattern for
this situation?
--
Venlig hilsen/Kind regards
Michael B. Arp Sørensen
Programmør / BOFH
I am /root and if you see me laughing you better have a backup.
___
ted into its own files: to keep the hair out of your main program.
--Michael
On Dec 24, 2007 10:02 AM, Roy Chen <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I've just started trying PythonCard to build a simple GUI for a little
> application I'm writing.
>
You need to pass a parameter to the string in the following line:
outfile.write("%s\n" % m.string[m.start():m.end()])
And you need to use m.search, not m.match in the line where you're
actually apply the expression to the string
m = patt.search(line)
--Michael
On 12/2
patt = re.compile(r"~02(\d*)~")
Also, your outfile.write command below doesn't provide any substitute
for %s. Presumably you mean outfile.write("%s\n" % m.group(1)) .
Good luck,
Michael
On Friday December 21, 2007, Que Prime wrote:
>I need to pull the highligted d
from
amazon.
urlib2 and sax parsers are formidable, quick technologies to perform
simple parsing needs. Look into BeautifulSoup as well:
http://www.crummy.com/software/BeautifulSoup/
--Michael
On Dec 20, 2007 4:15 PM, Lockhart, Luke <[EMAIL PROTECTED]> wrote:
>
&g
Hello everyone.
I'm one of those people stuck in that odd space between total noob and
partially competent :)
What I'm looking for are nicely structured intermediate tutorials that focus
on creating actual applications, even if fairly useless :) But mainly
something that can give me an understand
Its "under under", not "under under under" before and after init
--Michael
On 12/17/07, earlylight publishing <[EMAIL PROTECTED]> wrote:
> Okay I copied this code directly from a book (author Michael Dawson) and
> it's not working. I'm s
You've inadvertently used three underscores around __init__ rather
than two, and therefore you are not really defining __init__ but
instead are relying upon the inherited one from object (which takes no
parameters).
With regard,
Michael
On Monday December 17, 2007, earlylight publishing
academic project to boot.
If you are going to go with a processor on which you can embed Linux,
there is a python in the buildroot tree, however buildroot can be
quite the crap shoot, depending on processor and mix of applications
(It didn't work on the last board I was using
.
else:
return
With regard,
Michael
On Thursday December 13, 2007, johnf wrote:
>if self._inFlush:
> return
>self._inFlush = True
>
>
>AND
>
>if not self._inFlush:
> ...
> self._inFlush = True
>else:
ques can do that, so its all hunky dory.
Try each though, they'll make you learn something you didn't know, at
least how to talk to the other types of Geek.
--Michael
On 12/13/07, earlylight publishing <[EMAIL PROTECTED]> wrote:
> Actually the first thing I noticed is the
be done with python. Or you can just parse the ifconfig output.
--Michael
On 12/12/07, Robert Recchia <[EMAIL PROTECTED]> wrote:
>
>
> On Dec 12, 2007 11:01 PM, Michael Langford <[EMAIL PROTECTED]>
> wrote:
> > Most easily: If your card supports ethtool, you
#x27;t
reply back to the list and I'll delve into the older mii-tools to tell
you which one to hack on.
--Michael
On Dec 12, 2007 9:48 PM, Robert Recchia <[EMAIL PROTECTED]> wrote:
> I was wondering can python can be used to check the duplex settings of a
> networ
#x27;t
reply back to the list and I'll delve into the older mii-tools to tell
you which one to hack on.
--Michael
On Dec 12, 2007 9:48 PM, Robert Recchia <[EMAIL PROTECTED]> wrote:
> I was wondering can python can be used to check the duplex settings of a
> networ
Tuple, rhymes with "you pull"
--Michael
On 12/10/07, earlylight publishing <[EMAIL PROTECTED]> wrote:
> Is it tuh-ple (rhymes with supple)
>
> or is it two-ple (rhymes with nothing that I can think of)?
>
> Please visit our websi
numSeconds, 'seconds, you scored', score, 'points.'
+---
| Michael Goldwasser
| Associate Professor
| Dept. Mathematics and Computer Science
| Saint Louis Unive
th.sqrt is likely due to an attempt to take the square
root of a negative number (presumably because your (ypos - 384 * 160)
factor is negative.
With regard,
Michael
On Saturday December 1, 2007, Matt Smith wrote:
>Matt Smith wrote:
>> import sys, pygame, math
>>
>
uot;do what you want with", line
else: # currently at end of file
time.sleep(1) # don't want to poll too quickly
Good luck,
Michael
On Friday November 30, 2007, Alan Gauld wrote:
>
>"ray sa" <[EMAIL PROTECTED]> wro
With regard,
Michael
class Sudoku:
def __init__(self):
self.puzzle = [[1,2,3,4,5,6,7,8,9],
[4,5,6,7,8,9,1,2,3],
[7,8,9,1,2,3,4,5,6],
[2,3,4,5,6,7,8,9,1],
[5,6,7,8,9,1,
his included.
Do not use a database, that would be very ugly and time consuming too.
This is cleaner than the dict keys approach, as you'd *also* have to
convert to tuples for that.
If you need this in non-list completion form, I'd be happy to write
one if that's clearer to you o
but should work)
while not os.path.isfile("/var/jobs"):
datafile = file("/var/jobs")
map(myFileProcessingFunc,datafile.readlines())
datafile.close()
os.remove("/var/jobs")
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.RowdyLabs.com
__
your problem.
If you're on a unix-like OS, use netcat:
http://netcat.sourceforge.net/
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.RowdyLabs.com
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
what errors mean
when you're trying to get it up and going:
http://www.dscpl.com.au/wiki/ModPython/Articles/GettingModPythonWorking
I was amazed how helpful that second page was on setting things up. I
think it took me about 20-25 min.
--Michael
On Nov 17, 2007 12:14 PM, Dinesh B Vadh
On Saturday November 17, 2007, Michael wrote:
>Hi All
>
>This has probably been asked before but can I get some clarification on
>why Python does not have a repeat...until statement, and does that mean
>repeat...until is bad practice? I was trying to ge
langauge must have a test last structure in it to be considered.
Thanks
Michael
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
example is certainly not a proper use of inheritance.
With regard,
Michael
On Thursday November 15, 2007, Michael H. Goldwasser wrote:
>
>On Thursday November 15, 2007, Tom wrote:
>
>>I am trying to understand what happens in the following scenario:
>>
lass Set(list):
def __init__(self, value = []):
list.__init__([])
self.concat(value) # copies mutable default
That fourth line uses a custom method defined later to insert
designated values into the set while making sure to avoid
t() # I've left this here, but not sure
# why you have it. The for loop
# already advances from line to line
Note as well that it is better to perform the split once per line
(rather than recomputing it as you do in your or
other array. In this sense, the
code is not reusable. If it accepted G as a parameter, then it would
be more general.
The main advantage of globals is convenience (for example, if all you
care about is getting this particular program working as soon as
possi
On Sunday November 11, 2007, Ryan Hughes wrote:
>Hello,
>
>Why does the following not return [1,2,3,4] ?
>
>>>> x = [1,2,3].append(4)
>>>> print x
>None
The reason is that the append method does not return anything. In
effect, the expresison [1,2,3].append(4) tempo
t;> print fact(50, None)
30414093201713378043612608166064768844377641568960512
With regard,
Michael
On Sunday November 11, 2007, Dick Moores wrote:
>def fact(n, precision=15, full=False):
> """
> compute n!
> """
tact our publisher today so that we can
get full source code from the entire book up on their website. I'm
not sure of their willingness for a sample chapter, but will ask about
that as well.
With regard,
Michael
+-------
namespace.
If you were using some other package that also defined an "array" and
then you were to use the "from numpy import *", the new definition
would override the other definition. The use of qualified names helps
to avoid these collisions and makes clear where those def
eview copies to educators and sending representatives to
campuses. In any event, we believe that the book can be quite useful
outside the traditional classroom for new programmers or those new to
object-oriented programming.
Best regards,
Michael
On Tuesday November 6, 2007, jay wrote:
>
We are pleased to announce the release of a new Python book.
Object-Oriented Programming in Python
by Michael H. Goldwasser and David Letscher
Prentice Hall, 2008 (available as of 10/29/2007)
The book differs greatly from existing introductory Python books as
it
In psudocode:
#map the files to their time.
filesByTimes = {}
for each in filesInDirectory:
filesByTimes[os.stat(each).st_mtime]=each
#find the largest time
times = filesByTimes.keys()
sort(times)
#retrieve the file that goes with it
latestFile = filesByTimes[times[-1]]
--Michael
On
You don't need an atomic read and write, you need a blocking file lock
mechanism. This page explains them and how to use them:
http://www.voidspace.org.uk/python/pathutils.html#file-locking
--Michael
On 11/4/07, Tom <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am tryin
func_once_cleanup(print_and_return_big_list)
print_and_return_big_list(
On 11/2/07, Michael Langford <[EMAIL PROTECTED]> wrote:
>
> Decorate level2 with a decorator that caches:
>
> http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425445
>
> --Michael
>
>
Decorate level2 with a decorator that caches:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/425445
--Michael
On 11/1/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> I am building a list like this:
>
> tree = []
> for top in tops:
>
, Jul 3 2007, 22:58:17) [GCC 4.1.1 20070105 (Red Hat
> 4.1.1-51)],
> PIL 1.1.6
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
That's not really a working solution. My available development platform is a
Vista machine. I don't have an available XP platform. XP built exes run fine
on Vista, just not vice versa.
--Michael
On 10/31/07, O.R.Senthil Kumaran <[EMAIL PROTECTED]> wrote:
>
&
mpile down to an exeis it a valid
alternative? Should my CPython utility be compatible with ipy? I only use
the random,time,sys, and serial modules. I really know nothing about ipy.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
__
is documented at
http://docs.python.org/lib/module-cookielib.html
Cheers,
Michael
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
n file('foo.dat'):
tokens = line.split()
dval = tokens[0]
ls = []
for i in range(1,countOfVars+1):
ls.append(float(tokens[i]))
dic2[dval]=tuple(ls)
print dic2
--Michael
On 10/21/07, Bryan Fodness < [EMAIL PROTECTED]> wrote:
>
> Here is
t *must* shutdown cleanly, signal
handling is an essential item to put into your program.
--Michael
On 10/19/07, James <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I have a snippet of code in a Python script I'm whipping up that's
> causing a not-so-pretty o
_
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
>Michael has already explained that this is building
>a tuple of tuples. But you want to create strings.
>So first convert r to a string using str(r)
Yeah sorry about thatread some java over the weekend (source code to
http://reprap.org)...and then munged some of its syntactic sugar
comma operator.
b+="," + r
Was not doing exactly what I said. What it's doing is creating a new string
from the one named by b, the string literal "," , and the one named by r.
After creating the string it assigns the name b to the new string.
--michael
--
Michae
Use
b+=","+r
instead. That will add the , to the string named by b, and will concatenate
the string named by r to the end.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
On 10/15/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
#x27;re going to be
able to override the __getitem__ prototype without some serious pain.I've
never tried to change the function/method signature with a decorator, but
I'm pretty sure its possible at least for the non-builtin attributes.
You may want to try to write a PEP for python 3000.
if you're really feeling like you want to cause yourself some pain, you
can try to hand code a python extension...but I suggest you try the
automated tool first
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
On 10/11/07, Stephen
f you make some with
SWIG: www.swig.org)
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
On 10/10/07, Kirk Vander Meulen <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'd like to write a script that limits internet access to certain hour
You don't know what's slow. This is the perfect tool for a profiler.
http://docs.python.org/lib/profile.html
--Michael
On 10/9/07, Øyvind <[EMAIL PROTECTED]> wrote:
>
> Hello.
>
> I have written a simple application that does a number of simple
> calcu
I'd guess that by 2013 we'll be using a slightly more graceful, but still
horribly wrong (and unsupported by IE 7.666), redo of HTML, CSS, Javascript,
Flash, and Java with a poorly conceived back-end marriage of PHP + MySQL or
some horrible Microsoft technology for most apps. I'll also venture that
Check to see if mod_python is installed/installable. It would quite
easily give you a very simple interface to do what you're looking for.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
On 9/30/07, wormwood_3 <[EMAIL PROTECTED
t the error is rather than
speculating about it.
--Michael
On 9/30/07, wormwood_3 <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I am working on a very simple CGI script. The site I want to use it on is a
> shared linux host, but I confirmed that .py files in the righ
errhttp://www.diveintopython.org is the actual url
=Michael
On 9/29/07, Michael Langford <[EMAIL PROTECTED]> wrote:
> http://www.diveintopython.com is a *Great* start for experienced
> software developers. Within a weekend with that book I'd written an
> enti
http://www.diveintopython.com is a *Great* start for experienced
software developers. Within a weekend with that book I'd written an
entire parser/decompiler when I'd never used python before that.
--michael
On 9/29/07, Fred P <[EMAIL PROTECTED]> wrote:
> Hey
ndows interpreter and visa versa."
I'd check to see if the destination file exists before doing all of the above.
I think your method is fine. Atomic file creation is not a common
worry. I think this is a wholly reasonable quantity of code to pull it
off.
--Michael
On 9/28/07
and running in a couple minutes.
http://pythoncard.sourceforge.net/walkthrough1.html
Run some of the example programs (they're in a subdirectory of your
python folder, like the tutorial says). Their source code will lead
you to an appropriate sort of file editor.
--Michael
--
Michael Lan
ibrary that does
all the common things.
--Michael
On 9/27/07, shawn bright <[EMAIL PROTECTED]> wrote:
> It's the second one, not all the modules will be available on the portable
> version. But the threads that require those modules will not be necessary on
> the p
ot;, then using the folder on the command line, browse
to your python executable. I don't know where it is. If you open up a
terminal and type:
which python
that *may* show you where it is.
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining
I agree with Kent...
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/25/07, Kent Johnson <[EMAIL PROTECTED]> wrote:
>
> Hansen, Mike wrote:
> > Anytime someone posts in HTML,
Look here. Do this: http://en.wikipedia.org/wiki/Binary_search
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/25/07, Chris <[EMAIL PROTECTED]> wrote:
>
>
>
> ***I have
e nice thing about going through the course work is that they're trying to
teach programming, and just happen to be using python. That approach means
you'll get the most important, general skills out of it. (That course or
harder ones is required for all undergrads at that institution, so
pass
def graceful_cleanup()
pass
if "__main__" == __name__:
try:
do_stuff()
except:
graceful_cleanup()
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
En
Use the .get method of the dict to return a nonzero value (say None or -1)
when it can't find an item. That will half your test cases. Example of .get
below:
--Michael
>>> foo = {}
>>> foo['d']=0
>>> foo['a']=1
>>> if(foo.ge
again, you don't have a shared memory space, so get used to using
pickle if you don't have another text protocol to send data back and forth.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorS
You should check if the stack is empty before you access it:
def popNum(num):
if len(stackA) > 0 and num == stackA[-1]:
stackA.pop()
#etc
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: h
..
Unless there is some really good reason you need text keys, this is a lot
more natural.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
gt;>> print a
Bubby June
>>>
See how the variable "a" now has the whole sentence "Bubby June" in it? You
can call split on "a" now and you'll get a list of words:
>>> Names = a.split()
>>> print Names
['Bubby','June
least not one you'd like to see.
You're going to confusing everyone if you implement isDivBy8 with bitwise
operations.
--Michael
On 9/19/07, Terry Carroll <[EMAIL PROTECTED]> wrote:
>
> On Wed, 19 Sep 2007, Boykie Mackay wrote:
>
> > if not n&1:
>
Attachments are a bad thing to send to open mailing lists in general.
In your case, the list appears to have filtered off the code. Please paste
it in inline.
--Michael
On 9/19/07, Boykie Mackay <[EMAIL PROTECTED]> wrote:
>
> Hi Guys,
>
> Could you please look over
won't
have the whole picture either.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/19/07, Stephen Nelson-Smith <[EMAIL PROTECTED]> wrote:
>
> Michael Langford wrote:
ut the bathroom sink and a bidet too).
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/19/07, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> "Ric
.sourceforge.net/ is a project that implements it. I don't
seem to see fixed point numbers in the python standard libraries, but then
again, I'd not be surprised if they were there.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOne
This function can easily found using the google programming rule:
I want a function that does 'action'
Type: into google
Look in top 5 results. If that doesn't work, try synonyms for 'action'
--Michael
PS: The function you're looking for is called round.
classes. C++ has large issues for historical reasons on this front, as
the implementation section of a class is largely revealed through the class
definition.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirector
amp;^TUHKLJDHFKJHS(*&987")
Which would produce:
afdlkjaljrokjlkjTUHKLJDHFKJHS
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/17/07, Michael Langford <[EMAIL PROTECTED]> wrote:
>
> The
Not my night...the second sentence "To get the set of letters, use" should
read "To get the filtered string".time for more Coke Zero.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com
At first I totally misread this
To get the set of letters, use
import string
string.ascii_letters
Then do what you said in your algorithm.
A shorthand way to do that is
filteredString = ''.join([c for c in foo if c in string.ascii_letters])
--
Michael Langford
Phone: 40
apps.
--Michael
--
Michael Langford
Phone: 404-386-0495
Consulting: http://www.TierOneDesign.com/
Entertaining: http://www.ThisIsYourCruiseDirectorSpeaking.com
On 9/17/07, Eric Lake <[EMAIL PROTECTED]> wrote:
>
> I am still trying to understand when to use a class and when not
401 - 500 of 819 matches
Mail list logo