stions?
(I've been away from Python for a bit, one of the other tutors might
correct me with better practice things, I'm rusty!)
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
e you can install all the
packages you want with pip, without having to worry about mucking up
the system, versions of things, etc.
Assuming Windows:
Good luck!
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
#
>
> if [ $(id -u) != "0" ];then
>echo "This script must be run as root."
>exit 1
> fi
import os
if os.environ['USER'] != 'root':
print('This script must be run as root.')
exit(1)
On Tue, 29 May 2012 17:50:37 -0700 (PDT)
PhantomsCore
wrote:
>
> if gameIsDone:
> if playAgain():
> missedLetters = ''
> correctLetters = ''
> gameIsDone = False
> secretWord = getRandomWord(words)
> else:
> break
e threading feature of your user
agent -- or switch to one that has said feature. I know recent thunderbird's
do it, if that's the sort of thing you're into. Thread view makes
things bucketloads easier.
--
Corey Richardson
"Those who deny freedom to others, deser
d level 2 or is there a way to
> just adjust the word (I used labels)
>
When working with tkinter, http://effbot.org/tkinterbook/ will likely be your
best friend. Specifically, you're going to want
your_label1.config(text="New word!")
your_label2.config(text="Another!&qu
Excerpts from bob gailer's message of Thu Jul 21 17:21:01 -0400 2011:
> On 7/21/2011 12:30 PM, Corey Richardson wrote:
> > If you have a browser, Cloud9 IDE might be able to do it.
> I just tried Cloud9 and gave up in frustration.
>
> Unintuitive interfacre. No help. F
figure it out. I saw the
"Run" button and its configuration, but it looks like it wants a JS file and
args? Or...maybe not?
--
Corey Richardson
"Those who deny freedom to others, deserve it not for themselves"
-- Abraham L
Excerpts from Tahir Hafiz's message of Thu Jul 21 16:24:22 -0400 2011:
> Cloud9 seems interesting as a browser based IDE. Do you know if there is a
> way to run Python code as well create/edit it?
>
Not as far as I know.
--
Corey Richardson
"Those who deny freedom to oth
your best bet would probably be Cloud9 or
a similar product.
--
Corey Richardson
"Those who deny freedom to others, deserve it not for themselves"
-- Abraham Lincoln
signature.asc
Description: PGP signature
___
Tutor maillist - Tutor
he differences between i,l, | and 1 and '' and "
> and between ' and ` etc.
>
I use and love inconsolata[0], it's a great font for programming,
and looks great as well (both on screen and off).
[0] - http://www.levien.com/type/myfonts/inconsolata.html
-
there is a port for Python 3 somewhere too. http://excess.org/urwid/
(Apologies if email is HTML, using a web client)
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailma
o see how things are done,
and is always a good learning experience.
Cheers,
- --
Corey Richardson
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
iQEcBAEBAgAGBQJN85uFAAoJEAFAbo/KNFvpaNoIAI0OeY7lnqdTR4AsdOdwZK0k
HrZ5xuEaXVyO6UArYvVynoB6cZF+hNGiYmIiv2IO/aYLCjU0WWAvSLfLGD4zgWFR
NnHdZvJ7
et me know if I am wrong...
>
A wise man once said,
> Could you please refrain from presenting your *religious* convictions
> in this list: the notions you believe in as well as the ones that you
> believe are false?
Could be applied to government too.
--
Corey Richardson
t"))
> outfile.write("===\n")
It may just be me, but I think
outfile.write(('=' * 23) + '\n')
looks better.
>
> counts_list = counts.items()
> counts_list.sort()
> for word in counts_list:
> outfile.write("%-18s%d\n" %(word[0], word[1]))
>
> outfile.close
Parenthesis are important! outfile.close is a method object,
outfile.close() is a method call. Context managers make this easy,
because you don't have to manually close things.
Hope it helped,
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
printf("%s, age %d\n", d.name, d.age);
printf("Address: %s", d.address);
}
Encapsulate that, and you have yourself an object. OO isn't hard to do,
even (single!) inheritance isn't too great of a challenge. It's getting
things dynamic instead of static that'
7;s still very *very*
limited.
For webOS it looks like the only way you'll get Python is if you whip
together a C(++) program that statically links to it.
- --
Corey Richardson
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
iQEcBAEBAgAGBQJN67V8AAoJEAFAbo/KNFvpv/MH/088lDJ
7;t worry
about them right away.
For things like this I would recommend getting very familiar with
Python, and then picking up a bit of C.
- --
Corey Richardson
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (GNU/Linux)
iQEcBAEBAgAGBQJN3rF9AAoJEAFAbo/KNFvp0nYH
ect has no attribute 'append'
Yes, because append belongs to list, and not str!
http://docs.python.org/tutorial/datastructures.html#more-on-lists
words = [
word = raw_input("Name #1: ")
words.append(word)
Keep in mind the rest of the email I sent, that part was one of the
least importa
a loop? If you add in a loop, it will also be fairly easy to add in
another loop to make sure they enter a name not in the list. So, your
pseudo-code might look something like this:
for i in range(6):
make prompt string;
get name;
while name in names_gotten:
get name;
add
e same list but with one occurrence per element:
>
> [cat, dog, tree, bird, woods]
>
> Any help much appreciated!
The set type enforces uniqueness:
http://docs.python.org/library/stdtypes.html#set
You would use list(set(l)) to get the list from l where everything is
unique.
- --
Core
e that except. Example:
try:
foo = int("blargh")
except ValueError:
pass
It looks like you're forgetting an important operation on the inches
variable, as well as centimeters later on.
Take a look at
http://docs.python.org/library/stdtypes.html#typesnumeric
For future que
hree elements of L aren't equal to each other. Due to
python's short-circuit evaluation, it breaks the if after the first one,
because '1' != '4'. The parentheses there are useless.
You might look at [1] to see if there is anything that will count how
many times somethi
minal, sudo apt-get install idle.
When you need software, search in Synaptic (Package Manager) or google
first, it's usually very accessible!
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscr
e using Python 2,
you have no option but to use the first, as far as I know. Maybe Python
2.7 has that formatting, I'm not sure.
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 03/28/2011 06:17 PM, Steven D'Aprano wrote:
> Corey Richardson wrote:
>
>> Thunderbird has a "reply list" button that I use.
>
> It does? What version are you using?
3.1.8
I don't know how it knows what a mailing list is and isn't, but it does.
Af
On 03/28/2011 01:04 PM, markri...@gsoftcon.com wrote:
> When replying to the mailing list, does everyone just hit the reply button in
> your email program. Because that sends the email directly to your email. Also
> everyone is cc'ng the mailing list; is that the exceptable way to reply so
> eve
;s what the shell does!
So, exit out of the Python interpreter before trying to run that command
(>>>exit, or Ctrl-D).
--
Corey Richardson
(Forgive the horrible formatting and HTML, on the road using a web
client)
___
Tutor maillist - Tut
-Original Message-
From: ANKUR AGGARWAL
To: tutor
Sent: Sun, Mar 20, 2011 1:49 pm
Subject: [Tutor] Difference
Hey
want to know whats the difference between the pygame.display.update()
and pygame.display.flip()
An explanation with the example would be grea.
Thanks In Advance
Ankur Ag
e x/range style). Is this the case or does the compiler do
> something clever here?
>
Only way to know is to check!
http://docs.python.org/library/timeit.html
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 03/16/2011 09:15 AM, bhavanasi sarath wrote:
i want to learn how to compress a folder which is having some text
filesbut compress that from another directory..
http://docs.python.org/library/zipfile.html
(Sorry for the HTML email, getting things set up on new workstation)
_
;:
if i == 'test1' or i == 'test2'
>print 'true'
> I know I am missing something, but in reality it should only print
> true once correct?
You are missing something. Before, you're simply testing the existence
of 'test2'. And since
work.
With homework problems, instead of saying "Hey, replace lines 42-48 with
foo", saying "Look into the bar module, it bazifies the proper value for
you". Teaching people to learn better for themselves instead of
hand-feeding them the answers. This list does a rea
On 02/28/2011 03:30 PM, Corey Richardson wrote:
> On 02/27/2011 10:02 PM, Kaden McLaws wrote:
>> I would like to set up the following using python: A timer that is activated
>> when a user logs on to our computer, then shuts the computer down when the
>> timer runs out (n
#reading-and-writing-files
Should be everything you need.
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 02/27/2011 04:34 PM, Modulok wrote:
>
> import hashlib
>
> fd = open('/dev/urandom', 'rb')
> gen = (hashlib.sha256(i).hexdigest() for i in fd.read(4096))
>
I think the problem is that you're only reading 4096 bits (bytes? No
idea), and iterating
s and
opening websites respectively.
http://docs.python.org/library/urlparse.html
http://docs.python.org/library/urllib2.html
If that isn't what you're looking for, you'll need to be a bit more
descriptive.
If you are going to be parsing the HTML and then searching for specific
elements
nell/bin/Python\2.7/Extras/Demo/tkinter/guido/hello.py
> $ cd /jwbonnell/bin/Python 2.7/Extras/Demo/tkinter/guido/hello.py
>
Alas, you still do it wrong. You don't just replace the space with a
backslash, you put a slash _before_ the space. Or like Steven (I think
it was) sugg
in your file browser? That's most curious.
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
I would like it to be
sensible and now waste time dawdling.
(And the full quote is "We should forget about *small* efficiencies, say
about 97% of the time: premature optimization is the root of all evil."
(emphasis added))
--
Corey Richardson
__
On 02/26/2011 06:02 AM, Walter Prins wrote:
> On 26 February 2011 05:33, Corey Richardson wrote:
>
>> Aha, that explains why I didn't get any results. Each file got its own
>> interpreter instance.
>>
>
> Not wanting to nit pick, but no: It's not that ea
hich I
didn't know worked because I didn't test it like you showed it, but to
be safe I definitely need to persist that data every once in a while.
I'm slightly concerned about performance when it comes to
reading/writing to disk a lot when doing things like that, since if
put it off for the future after I'm more
comfortable with C/C++)
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
haven't
programmed before, and if you have, try this:
http://docs.python.org/tutorial/
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
o.py from the IDLE interpreter?
You need to run "python hello.py" in a terminal window, not from the
Python interpreter. If you are using IDLE, you can File > Open hello.py
and hit F5 to run it... I don't know if that advice applies to Mac,
might be different key strokes.
--
Co
a
> different disk.
>
>
> Being difficult just for the sake of it-ly y'rs,
And at that point, the all-encompassing "etc." steps in ;-)
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
unicode.
Check out http://qcpages.qc.cuny.edu/~nixon/links/asciiUnicode.html
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
t le feu bruler",
"Froid devorant": "Gele lenemi sur place"}
Have it implicit that the key is the name and the value is the
description. That's how I would do it, at least.
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
s the value of the ord()'s.
>>>ord('a')
97
>>>ord('3')
51
This is their number in the ASCII system. You can also do this:
>>>chr(97)
'a'
>>>chr(51)
'3'
--
Corey Richardson
_
de.net/. #django
You'll have better luck with django-specific questions on the django
mailing list.
--
Corey Richardson
I've never known any trouble which an hour's
reading didn't assuage.
-Charles De Secondat
___
Tutor maill
2's raw_input(), so
it's hard to tell which you are using. I'm assuming Python 2 because you
didn't report the raw_input() failing. If that's the case, you don't
need the ()'s around the text you are printing.
I also suggest you look into lists and list index
>
http://lmgtfy.com/?q=neural+networking+in+python
http://lmgtfy.com/?q=backpropagation+in+python
--
Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 02/12/2011 02:27 AM, Steven D'Aprano wrote:
> Corey Richardson wrote:
>> Hello Tutors,
>>
>> I'm working on a small script that compresses a file, sends it through
>> the telephone, and then receives and decompresses the file on the other
>>
On 02/12/2011 01:26 AM, David Hutto wrote:
> On Sat, Feb 12, 2011 at 1:24 AM, David Hutto wrote:
>>> The point is to specifically transmit the data as sound, and then turn
>>> the sound back into the gzipped file. If I were doing this for anything
>>> other than my own entertainment and education,
On 02/12/2011 01:10 AM, David Hutto wrote:
> for some reason, if you're on linux, I wanna say use python's
> subprocess, and man pppd. also look into proc and a thread in the
> archives I did a while back.
The point is to specifically transmit the data as sound, and then turn
the sound back into t
Hello Tutors,
I'm working on a small script that compresses a file, sends it through
the telephone, and then receives and decompresses the file on the other
end. The compression is the easy part. The transmission is the hard
part. If anyone has worked with sound before, what do you recommend?
I've
On 02/09/2011 11:17 PM, Bill Allen wrote:
> I have found there are a few systems available to package Python programs as
> standalone programs for distribution. Do the folks here have any
> recommendation or comment on any of these?
>
> Thanks,
> --Bill
>
I found cx_Freeze to be the most usefu
In my journeys across the face of the Internet, I found this:
http://p2pu.org/general/python-challenges
Not sure what it's really going to be, but any new programmers/people
looking for something to do might be interested. I'm not quite sure how
a class can be organised around a web riddle, but it
On 2/2/2011 9:00 PM, Doug Marvel wrote:
> [snip]
>
> I am hoping for a link to a somewhat comprehensive online resource
> that explains from the beginning in English, plain English, as this is
> the only language I speak. Something to get my foot in the door would
> be awesome.
>
>
> Cheers,
> Doug
On 02/01/2011 06:23 PM, Andre Engels wrote:
> On Tue, Feb 1, 2011 at 9:40 PM, John Simon wrote:
>> I'm looking for a way to flatten lists inside a list literal, kind of like
>> this:
>>
> start = '('
> end = ')'
> items = ['abc', '+', 'def']
> [start, *items, end]
>> ['(', 'abc', '
On 02/01/2011 03:40 PM, John Simon wrote:
> I'm looking for a way to flatten lists inside a list literal, kind of like
> this:
>
start = '('
end = ')'
items = ['abc', '+', 'def']
[start, *items, end]
> ['(', 'abc', '+', 'def', ')']
>
> Of course, the star doesn't work there. I
On 01/25/2011 06:49 PM, Steven D'Aprano wrote:
> Corey Richardson wrote:
>
>> To be pedantic, a method _is_ a function, just under the umbrella of a
>> class, with it's parent object being passed to it.
>
> To be even more pedantic, a method object is a wr
On 01/25/2011 08:50 PM, Steven D'Aprano wrote:
> Corey Richardson wrote:
>> On 01/25/2011 06:26 PM, Elwin Estle wrote:
>>> Is it better to have one large sort of "do it all" class, or break
>>> the larger class up into smaller classes?
>
>> If y
On 01/25/2011 06:26 PM, Elwin Estle wrote:
> Is it better to have one large sort of "do it all" class, or break the larger
> class up into smaller classes? Seems to me like the one large class would be
> clearer in some ways. I have something I am trying to do that have somewhere
> in the neig
On 01/25/2011 04:52 PM, Juan Jose Del Toro wrote:
> Dear List;
>
> I am looking for a way to extract parts of a text from word (.doc,.docx)
> files as well as pdf; the idea is to walk through the whole directory tree
> and populate a csv file with an excerpt from each file.
> For PDF I found PyPdf
On 01/25/2011 04:31 PM, W S wrote:
> hi, i have written some Tk/Python code to do a few simple tasks, and am
> having
> trouble with my combobox placement on the frame. is there a way to more
> explicitly place it other than: This method does not give a lot of control
> xx=apply(OptionMenu,(se
On 01/25/2011 04:28 PM, Karim wrote:
>
> Hello Bob,
>
> I know this fact for function but in this case this is not a function
> but a constructor method of a class.
To be pedantic, a method _is_ a function, just under the umbrella of a
class, with it's parent object being passed to it.
~Corey
>
On 01/22/2011 03:09 PM, David Hutto wrote:
When I felt I was ready to start doing some work, I got involved in an open
source project. It's definitely an experience! Try going through
http://freshmeat.net/
Isn't that for those that aren't given real apprenticeship?:)
Programming is my hobby,
On 01/22/2011 11:56 AM, michael scott wrote:
I am new to programming, I intend to get an entry level job programming
next year (or a little bit longer). I am switching fields and not going
to college, but kinda "self teaching" myself through various methods. I
currently understand concepts in pro
On 01/19/2011 03:55 AM, Jojo Mwebaze wrote:
> Is it possible to tell, from which class an method was inherited from.
> take an example below
>
> |class A:
>
>def foo():
> pass
> class B(A):
>
>def boo(A):
> pass
>
> class C(B):
>def coo()
>
> pass
> class D(C):
>
>
On 01/17/2011 10:34 AM, zhengqing gan wrote:
> Hi,
>Thanks for the reply.
>But I found that there are some website which can convert images
> into iphone icon style images, there should be an kind of algorithm to
> manipulate.
>Thanks!
>
>
>From playing with
http://wizardtoolkit.com/
On 01/15/2011 06:30 PM, Corey Richardson wrote:
> On 01/15/2011 05:45 PM, walter weston wrote:
>> I thought creating a Python help hotline would help programmers
>> exponential! I think they should make a help hotline for every
>> programming language. and since I havent
On 01/15/2011 05:45 PM, walter weston wrote:
> I thought creating a Python help hotline would help programmers
> exponential! I think they should make a help hotline for every
> programming language. and since I havent discovered something similar It
> would probably be lucretive!
>
irc.freenode.
On 01/15/2011 05:45 PM, walter weston wrote:
> I thought creating a Python help hotline would help programmers
> exponential! I think they should make a help hotline for every
> programming language. and since I havent discovered something similar It
> would probably be lucretive!
>
>
>
> __
On 01/14/2011 08:17 PM, Joel Knoll wrote:
> Hello,
>
> I am new to programming and to Python. I've been using Python with IDLE
> on Windows Vista for a few weeks now.
> (And I'm loving it!) However, I'm thinking about switching to Ubuntu
> 10.10. If I download Ubuntu, will I still be able to u
On 01/14/2011 07:48 PM, Bill DeBroglie wrote:
> Hello all,
>
> I don't have a problem per se, but have noticed something that I'd
> like to figure out...
>
> Sometimes the "print" function appears orange for me, sometimes it
> appears purple. Why does this happen and what's the difference any
nce, and not every time you type in x.
What you want it is for loop:
for number in range(50):
print(random.random())
Coming from other languages you might think:
cntr = 0
while cntr < 50:
print(random.random())
cntr += 1
which is correct, but not pythonic.
HTH,
~Corey Richardson
__
On 01/13/2011 10:29 PM, Bill Allen wrote:
> That is correct about the difference between Python 2 and Python 3
> syntax. However, I am surprised that with 2.7.1 these do not work. I
> have found that on my Ubuntu system with Python 2.6.5 these Python 3
> syntax items do seem to work properly.
On 01/13/2011 08:50 PM, Elwin Estle wrote:
> I am going through the book mentioned in the subject line, and I have found a
> couple of things that don't seem to work the way the author shows in the
> book. So, either I am doing something wrong, or what he is saying isn't
> quite right.
>
> I a
On 01/12/2011 09:42 PM, Luke Paireepinart wrote:
> Remember the sorted() method takes a key function, have this key
> function take in each filename and compare the numbers and you're all set!
>
> -
> Sent from a mobile device. Apologies for brevity and top-posting.
> -
search
doesn't return anything I could use. I tried just using
[image for image in os.listdir(path) if image.endswith('.png')],
but that doesn't appear to have any order.
Thanks,
Corey Richardson
___
Tutor maillist - Tutor@
On 01/09/2011 04:27 PM, Steven D'Aprano wrote:
> Corey Richardson wrote:
>> Do all classes need an __init__() method? I have classes that look much
>> like this one starts out:
>>
>> class GenerateXML(object):
>> """Defines methods to be i
Do all classes need an __init__() method? I have classes that look much
like this one starts out:
class GenerateXML(object):
"""Defines methods to be inherited for StaticXML and AnimationXML"""
def __init__(self):
pass
I would rather not do that. Code without it runs fine, but wil
2
#+
#Time: 20s
-end-paste
Your script could look something like:
data = [for line in open(filename) if not line.startswith("#")
for line in data:
line = line.split()
if line[3] == pattern:
pr
On 01/07/2011 06:29 PM, PyProg PyProg wrote:
> 2011/1/7 Corey Richardson :
>
> Hi,
>
> Thanks for your response.
>
>> A google search yields no results for one. If you know the structure of
>> the MPL file, you can write your own parser. Look through the file w
dvance.
>
> a+
>
A google search yields no results for one. If you know the structure of
the MPL file, you can write your own parser. Look through the file with
a hex editor like Bless first, if you need to. Most likely the
information you want
On 01/05/2011 04:41 PM, Alex Hall wrote:
> Hello all,
> First, this is about a wx accelerator table, so if it is too off-topic
> for this list, let me know.
>
> [snip]
I would go ask the wxPython mailing list or similar, just my 2 cents.
~C
ions:
> http://mail.python.org/mailman/listinfo/tutor
I've done almost all my debugging via print statements at crucial
points. It's a good way to go, IMO.
~Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On 01/02/2011 09:40 AM, Brett Ritter wrote:
> On Sat, Jan 1, 2011 at 9:10 PM, Alan Gauld wrote:
>> Why avoidCamelCase? I actually prefer it to using_non_camel_case
>
> The readability is an often argued topic - I myself find the space of
> names_in_underscores to be more readable (words are disti
On 01/01/2011 02:28 PM, Ken Green wrote:
I am caught off guard but what is the purpose of the plus sign? I don't
recall seeing it used like that.
Ken
On 01/01/2011 12:11 PM, Abhijeet Rastogi wrote:
You missed a "+" after myName on line 30.
On Sat, Jan 1, 2011 at 10:32 PM, pete mailto:psmo...@
On 12/12/2010 11:43 PM, marupalli charan wrote:
dont send me mails again. i want to unsubscript
At the bottom of every single message from the list there are the
following lines:
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
~Corey Richardson
On 12/10/2010 3:34 PM, Wayne Werner wrote:
If you just want a single line you can use chr(13) which is a carriage
return. If you want a more complex program you'll need a curses type
library
hth, wayne
On 12/10/10, Modulok wrote:
List,
Forgive me if I don't describe this well, I'm new to it
On 12/10/2010 3:14 PM, Modulok wrote:
List,
Forgive me if I don't describe this well, I'm new to it:
Assume I'm working in a command shell on a terminal. Something like
tcsh on xterm, for example. I have a program which does *something*.
Let's say it counts down from 10. How do I print a valu
erver Pages (PSP) and
mod_python enable you to do this on an Apache server.
~Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ons:
http://mail.python.org/mailman/listinfo/tutor
float_b = float(float_b)
That takes the string and makes it a float.
~Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
however.
HTH,
~Corey Richardson
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Steven D'Aprano wrote:
Corey Richardson wrote:
Tutors,
I recall that the keys of dictionaries have arbitrary order, and may
change over time. Is this true of lists? I can't find the answer from
a simple Google search. Thank you!
Only if you re-arrange it yourself.
Tutors,
I recall that the keys of dictionaries have arbitrary order, and may
change over time. Is this true of lists? I can't find the answer from a
simple Google search. Thank you!
___
Tutor maillist - Tutor@python.org
To unsubscribe or change sub
On 11/21/2010 8:12 AM, Chris Begert wrote:
Hi Gurus
I just wrote my first little python program; so yes I'm very new to all this.
The goal in the end is to have a program that shows how the sun moves from the
point of view of a given location (i.e. solar paths added to some sort of
stereog
On 11/5/2010 3:18 PM, Chris King wrote:
On 11/4/2010 9:46 PM, Corey Richardson wrote:
On 11/4/2010 8:43 PM, Chris King wrote:
Dear Tutors,
May server and client programs aren't working. They basically
simplify socket and SocketServer. Run them directly to test them.
They do
1 - 100 of 131 matches
Mail list logo