Hey quit spamming the list please.
Sent from my iPhone
On Jul 22, 2010, at 7:08 PM, Alex Hall wrote:
> On 7/22/10, ANKUR AGGARWAL wrote:
>> hey i have just started making a app using python and just gt a problem..
>>
>> i have two list
>> a=["x","z"]
>> b=[1,2]
>>
>> i want to make a direct
You can do it with any iterator Astr.index('o') I'm not sure what happens
when there are multiple instances of 'o' though, check the docs on index.
Sent from my iPhone
On Jul 23, 2010, at 8:22 AM, Vineeth Rakesh wrote:
> Hello all,
>
> How to return the position of a character in a strin
Just do a split of the input from the user on space or comma. If Len() of the
split data is 1, do your [1, ...] interval, otherwise do the other interval.
Sent from my iPhone
On Jul 28, 2010, at 6:51 AM, "Richard D. Moores" wrote:
> I have a practical need for a script that will give me a rand
You can generate the sound data in a buffer either in native python or using
numpy, then play it back by loading the buffer into a sound object with pygame.
It depends how much control you want on the sounds. You might want to use
csound or supercollider or something if you want to programmatica
I think I agree more with bob on this one - he wasn't saying functions weren't
important, just that they weren't important to this case. Sure polymorphism and
inheritance and properties and generators and list comprehensions are awesome
and useful, but I wouldn't suggest they are necessary for e
. You are not
being helpful. If you were kidding, make it more clear next time.
>
> there are more people who can and will help you. Unless I've missed a
> response to a previous post of yours where people disrecommended your
> postings, but that shouldn
On Mon, Aug 9, 2010 at 1:32 AM, Ranjith Kumar wrote:
> Hi all,
>
> I have described the theme of my project here,
> Cheers
> Ranjith,
>
This sounds kind of like homework. Is it homework?
If not, where did you get this spec from?
Thanks,
-Luke
___
ge.
Range(1,100) returns 1,2,,99.
Hope that helps
-luke
Sent from my iPhone
On Aug 9, 2010, at 11:02 AM, Daniel <.aste...@gmail.com> wrote:
> Hi, I'm trying to solve an exercise, a beginners one but I have a question.
> So the exercise sounds like this:
>
> Define
Don't pass none. It's an optional parameter. It's accepted practice to not pass
optional parameters.
Sent from my iPhone
On Aug 11, 2010, at 6:46 PM, Bill Allen wrote:
> On Tue, Aug 10, 2010 at 11:11 AM, Hugo Arts wrote:
>> On Tue, Aug 10, 2010 at 9:59 AM, bob gailer wrote:
>>> On 8/10/2010
; with other programming languages. It is a simple text based game that
> simply lets a user explore a maze of rooms.
Anyone who finds this interesting may also want to look into
http://inventwithpython.com/ , I hear it's a good book but I haven't
personally
2.5.2? Why don't you all just
upgrade to 2.5.4?
-Luke
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
2010 at 3:57 PM, Wayne Watson
wrote:
> The question is would going back likely cause problems? I'm dealing with
> neophytes. He's messed up before.
>
> On 8/16/2010 8:58 AM, Luke Paireepinart wrote:
>>
>> On Mon, Aug 16, 2010 at 10:39 AM, Wayne Watson
>>
em(word)
here's your problem. MyWord is the value that is changing in each
iteration of the loop, not word.
Change your lines to
word2=wnl.lemmatize(MyWord)
word3=proter.stem(MyWord)
and it should work fine.
You should've gotten an undefined variable exception
Shouldn't there be a way to do this without type checking? Duck typing!
Sent from my iPhone
On Sep 9, 2010, at 7:33 AM, Joel Goldstick wrote:
>
>
> On Thu, Sep 9, 2010 at 7:59 AM, Shashwat Anand
> wrote:
>
>
> On Thu, Sep 9, 2010 at 3:11 PM, Roelof Wobben wrote:
>
>
> From: anand.shas
n Fri, 10 Sep 2010 01:05:22 am Joel Goldstick wrote:
> > On Thu, Sep 9, 2010 at 10:26 AM, Luke Paireepinart
> >
> > wrote:
> > > Shouldn't there be a way to do this without type checking? Duck
> > > typing!
> > >
> > > Your post got me thi
In general, you shouldn't even hint at the possibility of there being a bug in
the code unless you have test cases and a patch handy. Especially something as
widely used as hashlib. It gives An air of arrogance about your post, whether
you intend it or not.
I think your issue got resolved alrea
Yeah, just add 1 to it. When printing just do index+1 and when inputting the
user's choice, subtract 1 and use it as the array index.
Sent from my iPhone
On Sep 10, 2010, at 4:36 PM, Rance Hall wrote:
> I'm using the following function style I found on the net to create
> menus for a command
o the e-mail client to render the
text.
Yes, I could turn off HTML on my end, but that is a pain and breaks
messages that I legitimately want to be HTML.
Thanks,
-Luke
On Fri, Sep 10, 2010 at 6:56 PM, bob gailer wrote:
> On 9/10/2010 2:48 PM, Roelof Wobben wrote:
>
>
> Date: Fri, 10
On Sep 11, 2010, at 12:40 PM, Roelof Wobben wrote:
>
>
>
>
>> From: st...@pearwood.info
>> To: tutor@python.org
>> Date: Sun, 12 Sep 2010 03:27:42 +1000
>> Subject: Re: [Tutor] recursive problem
>>
>> On Sun, 12 Sep 2010 03:18:19 am Steven D'Aprano wr
This is how I use it (untested)
Import hashlib
Print hashlib.md5("somestr").hexdigest()
Works fine without using binary string.
On Sep 12, 2010, at 1:19 PM, Rance Hall wrote:
> Everybody knows you don't store plain text passwords in a database,
> you store hashes instead
>
> consider:
>
> us
with a bad e-mail client.
-
On Sep 12, 2010, at 1:54 PM, Rance Hall wrote:
> Luke:
>
> On python3.1 I get the following error using your (untested) two line snippet:
>
> TypeError: Unicode-objects must be encoded before hashing
>
> If I add th
>
> Thanks for the tip. I'll do some more research but this sounds promising.
>
> Rance
>
Just be aware that some methods of list building will iterate over the list and
evaluate it. So if you only want to retrieve the first 10 results but you do
something like
Results = [I.fetch() for I in c
You should do both. Raise an exception in the exceptional case.
My general pattern is to return None if no results exist, return the results if
they do exist, and raise an exception if I couldn't perform the function.
Eg. If I have a function that creates a list of users with a first name of bob
This code shouldn't even actually execute, you should get an indexerror
exception. Close your IDE and try it again. Should make the issue more clear.
-
Sent from a mobile device with a bad e-mail client.
-
On Oct 27, 2010, at 1:04 PM, "Terr
On Thu, Oct 28, 2010 at 8:11 PM, Steven D'Aprano wrote:
>
>> postPos=words[3]
>
> This like will fail with NameError, because words is not defined anywhere.
>
> This is not the code you are running. We can't tell what is wrong with the
> code you run when you show us something completely different
Also for your confirm entries function, read about while loops
-
Sent from a mobile device with a bad e-mail client.
-
On Nov 4, 2010, at 3:10 PM, Glen Clark wrote:
> Hello,
>
> I have completed my first python script. This is after watc
Also for your confirm entries read about sentinel values for while loops. It
saves you repeating the conditional in the loop body. And you might want to
.lower().strip()[0] the input choice so that they can use y, Y, yes, or
whatever. Remember, users suck at generating accurate and correct input
Your code is not bad overall, pretty great for a beginner actually. I would say
you should read guido's style guide though; some of your variable and function
naming is nonstandard python.
-
Sent from a mobile device with a bad e-mail client.
-
nguage Maxscript
http://rosettacode.org/wiki/Category:MAXScript and since Autodesk now own
all the competitors software and they all (except Max) use Python for
their coding I thought it would be the way to go when learning a new
language. Blender also uses Python btw.
My 3d site http://
You don't get your own e-mails back.
On Fri, Nov 5, 2010 at 11:37 PM, Danyelle Davis wrote:
> im wondering if im able to mail this list. I sent an email asking for good
> newbie projects but never saw it post. All i got was the welcome/ info
> email.
> LN
> _
Thanks Alan I found those about an hour ago :)
On 6 November 2010 20:11, Alan Gauld wrote:
>
> "Luke Pettit" wrote
>
>
> I was interested in which video tutorials Glen was watching, and if anyone
>> else could recommend some video tutorials to watch,
>>
&g
r the
> entire project: http://code.google.com/edu/ -- definitely worth checking
> out.
>
> -trench
>
> On Fri, Nov 5, 2010 at 8:12 PM, Luke Pettit wrote:
>
>> Hi everyone,
>> I'm just about to begin to learn python and have bookmarked a number of
>> sites
just off the top of my head...
NASA uses it. Lots of games use Python as their game logic/scripting
language (how many use PHP? probably approaching 0. LUA is more
popular than Python but Python is much more popular than PHP). The
first ever bittorrent client (the official one) was written in P
On Mon, Nov 8, 2010 at 5:28 PM, Natalie Kristine T. Castillo
wrote:
> Hi, I need help on how exactly to solve this:
That's nice.
>
> To send secret messages you and your partner have decided to use the
> columnar function you have written to perform columnar transposition cipher
> for this course
On Mon, Nov 8, 2010 at 3:53 PM, Chris King wrote:
> On 11/5/2010 8:10 PM, Alan Gauld wrote:
>>
>> "Chris King" wrote
>>
If you are using Windows, turn off the built-in firewall. That's what
fixed my problems.
~Corey
>>
>>> also, it is on the same network, so the server shouldn't b
sition cipher. I've never
> heard of it before, but I'm sure www.google.com and
> http://en.wikipedia.org have plenty to say on the subject.
>
> HTH,
> Wayne
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscr
It's pretty typical for scoping rules. If you define variables outside of your
funcs you can access them inside the func. If you want to change the value in
the function you need to declare the scope as global. If you make another
variable with the same name inside of a function it will shadow t
t; >
>> > Thanks,
>> > S. Dawn Samson
>>
>> >From one beginner to another - it looks to me like you set the value of
>> coin once then checked it 100 times. If you want to reset the value of
>> coin maybe it (i.e. setting the value of coin, not just calling
>> the value of coin) should be in the loop too?
>>
>> tom
>> ___
>> Tutor maillist - Tutor@python.org
>> To unsubscribe or change subscription options:
>> http://mail.python.org/mailman/listinfo/tutor
>>
>
>
>
> ___
> Tutor maillist - Tutor@python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Luke Pettit
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
ails should add up to 100
>>> # not 173 or am I missing the point?
>>>
>>>
>>> No, you're missing an indentation. If you check the code you're
>> running, I think you'll find that you didn't unindent the line incrementing
>> count.
>>
>> Of course, it's less error prone to simply use
>> for count in xrange(100):
>>
>> instead of while count < 100:
>>
>> and you wouldn't need to increment count.
>>
>> DaveA
>>
>>
>
>
> --
> With Regards,
> Nithya S
>
>
--
Luke Pettit
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
obligation to take my advice. I
hope it helps you one way or the other.
Good luck.
-Luke
On Tue, Mar 17, 2009 at 1:37 AM, Hussain Ali <
hussainali.hussain...@gmail.com> wrote:
> Dear all
>
> I want to start learning python but before going further I need answer to
> my
>
As a policy we don't give answers to homework questions. However, if you
have tried this and you are stuck, we'd be happy to help with any specific
questions you have about your implementation.
On Tue, Mar 17, 2009 at 6:00 AM, wrote:
> Would anyone know how to Write an application that displays
ause the function does not
call itself repeatedly; rather, call_numbers is called once, and then it
repeatedly calls a _different_ function. Savvy the difference?
HTH,
-Luke
__ Information from ESET NOD32 Antivirus, version of virus signature
database 4136 (20090606) __
The message
Robert Berman wrote:
Emille,
Thank you for the example of list splicing. Do you know if this is
faster than a more conventional loop statement as in my code for
primearray which is in my original post (reprinted here)
As has been mentioned, you will want to profile your code to know what
is
Looks like a simple 'in' is faster both when it's there...
>>> Timer("'D' in {'D':123}.keys()").timeit()
0.93669924584355613
>>> Timer("'D' in {'D':123}").timeit()
0.34678047105990117
... and when it isn't...
>>> Timer("'E' in {'D':123}.keys()").timeit()
0.99194670371434768
>>> Timer("'E'
gt;> x
'hello'
IDLE echoes the value of x. However, if you had the code
x = "hello"
x
and you ran it (not in IDLE's interpreter) you would not get any output.
What you should learn from this is
1- IDLE is weird in many ways
2 - that subprocess.call() is not mean
Karen Palen wrote:
WOW! Thanks for the detailed explanation!
Sure thing, putting off doing homework so...
This was about what I had expected so it is no surprise.
My conclusion (so far) is that there is not much to gain from an IDE in this
situation and a lot of complexity to deal with.
ith both functions, the one with the "for" loop and the one
with the "while" loop, and I'll try to explain why.
It's not something inherent in while loops vs. for loops, it's something
specific to your application, so we can't help you analyze it without
actual code.
HTH,
-Luke
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
bob gailer wrote:
Please start a new thread with a relevant topic rather than adding to
an existing thread.
seconded
hello all,
I am currently making a birthday prezzie for someone (deadline is
Thursday night). the basic idea is a wall of photos that you can move
about to view different one
Jacob Mansfield wrote:
thank you Luke,
It's a bit more complicated than that, all the images are in one
massive jpg file similar to those in
http://cdn.nhl.com/ducks/images/upload/2008/06/FanPhotos3.jpg
So they're not lined up? they overlap? Do they have to be in one
massive jpg
Daniel Sato wrote:
Hi,
Let me preface this by saying that I purchased O'Reilly's "Learn
Python" yesterday and have no programming experience (I am a
photographer by trade) except for a semester of what I think was BASIC
on some old apple back in elementary school (circa 1992).
I am not sure
Amit Sethi wrote:
I think ideally i want a compile Error just like java ..
Why? For developers, so they'll know if their plugin meets the
interface requirements?
Have you considered just making a unit test that will call all interface
functions with appropriate parameters? Then they can just
kgotlele...@galmail.co.za wrote:
Hi can someone help me with my program demostrating Newton's method for
system of nonlinear equations below. Line 45 gives an error saying return
is outside the function
That's because you have a return outside of a function.
for k in range(n-1,-1,-1):
b
quotations
from your e-mails unless you reference it. for example, the quoted text in
your e-mail is at least 10x longer than the actual content.I believe mark
already answered your question.
Thanks,
-Luke
On Tue, Jun 30, 2009 at 7:38 PM, jonathan wallis wrote:
> My problem is simple, is t
interpreter. Sounds like you're not getting your data in.
>>> x = ["hello", "world!", 42]
>>> x
['hello', 'world!', 42]
Hope that helps a litttle bit, good luck!
-Luke
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
Read your error message... It highlighted the first line of your for
loop ansd said ints aren't iterable. len(list) returns an integer. You
want a list of items... for i in range(len(list)):
On 7/5/09, Steven Buck wrote:
> Hi Python Tutors:
>
> I have a data structure that looks like:
>
test
Luis Galvan wrote:
Hello all, this is my first time using a mailing list, so I'm not sure
if I'm doing this right!
Everything's fine except perhaps your formatting - it's easier to read
e-mails that are delineated into paragraphs rather than just a single
block of text. That may be a problem o
On Tue, Jul 7, 2009 at 8:36 PM, David wrote:
> Hi Tutors,
Hiya david. Cool e-mail address :)
> My question is I tried to get it to print out when the directory was empty
> like this;
>
> for file in fobj:
>pathname = os.path.join(folder, file)
>if os.path.exists(pathname):
>pri
)
if not path.isfile(target):
print "skipping directory", f
continue
print "removing file", f
remove(target)
clean("/var/log/motion")
Also, about the address - yes please! can you make it forward to my gmail?
On Tue,
Oops, you should probably have a "return True" at the end of the function so
the return value is meaningful.
On Tue, Jul 7, 2009 at 9:29 PM, Luke Paireepinart wrote:
> I typically abuse the fact that "return" will get you out of a function to
> make my code indented
Angus,I don't think you're at fault but you must keep in mind that a lot of
people that read this list get a lot of the same questions repeatedly, only
worded slightly differently.
I also didn't notice that you used slicing in your first message, and in
your second message I just saw that you quote
>
>
>
> I tried my hand at steganography
>>
>
> Never heard of it before![snip]
>
> I didn't notice anything that would be v3 specific. Also I can't
> comment on the algorithm since I don't really know what its
> doing!
>
Alan,
Steganography's really neat! You should look into it.
Basically wha
You need to read what dictionaries are.
Essentially, any time you think "oh I need to keep separate variables
for these values, but I won't know what their names are until
runtime!" the correct answer is to not try to manipulate them into
variables, but to use them as dictionary keys, or organize t
aren't expected to grasp immediately.
It's a progressive thing. Try writing some simple apps and if you
come up with a problem that you can't solve
with the tools you have already learned how to use (or can't solve
easily - most things in Python should be
easy), let us know
I approach these things more along the lines of objects rather than looking
at the raw source code to remember what I'm doing.For example, I see (x, y,
z) and I think "ah, it's a little pre-packaged goodie of delicious
variables"
and when I see [x, y, z] I think "ah, it's a box with some candy at t
You will probably continue to get unsatisfactory responses if you continue
to ask unsatisfactory questions.Python won't automatically parse this
document in exactly the way you want it to. You're on the right track but
you need to do as Alan said and actually read the regex articles to
understand
How are you running it?This usually happens when you have an error in your
connection, and then you try to re-run it, and the previous connection
attempt has not released the port yet.
Are you having an error between subsequent runs, or do you have an error the
first time you run it after a fresh r
Can you import other (Standard library) modules? or can you not import
anything?
On Wed, Aug 19, 2009 at 6:14 PM, David Shunick wrote:
> I'm trying to learn Python, but keep running into the erroor message
> ImportError: no module named area.
>
> I created a file area.py in IDLE. I'm using Pyt
the issue, you are not putting your modules in the proper location.
On Wed, Aug 19, 2009 at 9:22 PM, wrote:
> Yes, I can import standard library modules.
>
> - Original Message -
> From: "Luke Paireepinart"
> To: "David Shunick"
> Cc: tutor@python.or
What have you tried so far and why hasn't it worked?
We prefer not to just give solutions.
On Thu, Aug 20, 2009 at 1:06 AM, Olli Virta wrote:
> Hi!
>
> Sorry. OK I admit I might have been confusing. Although I got some good
> ideas from the messages. Thanks.
>
> Let me try again:
>
> So I got th
you're gonna have to be a lot more specific than that if you want a decent
answer.
On Fri, Aug 21, 2009 at 4:45 AM, Ajith Gopinath wrote:
> Hi Folks,
> how do we represent left arrow key in a python program?
> Can anybody help?
> || a j i t ||
>
> ___
Suppose you are writing a GUI application. You don't want to write it from
scratch so you want to use TKInter or WXPython. However, you also want to
process the user's mouse clicks. These clicks won't occur in a consistent
manner; sometimes they may occur frequently (double-clicking), sometimes
On Wed, Aug 26, 2009 at 8:51 PM, Luke Paireepinart
wrote:
>
> So you write a program that does what you want on each mouse click.
>
I meant "function" rather than "program".
___
Tutor maillist - Tutor@python.org
http://mai
n't what you're asking, just clarify what you meant and I'll try
to help.
HTH,
-Luke
On Sun, Aug 30, 2009 at 5:59 PM, Skipper Seabold wrote:
> Hello all,
>
> Fair warning, I didn't know what a bitfield was a few hours ago.
>
> I am working with a program via t
>>> txt = "Hi how are you?"
>>> " ".join(txt.strip().split())
'Hi how are you?'
On Tue, Sep 1, 2009 at 3:43 AM, Ishan Puri wrote:
> Hello,
> I have 2 plain text documents that have uneven spacing. I need to make
> these single spaced between lines and between words. Basically I need
there are directions on how to remove yourself from the list at the bottom
of every message that the list sends out.
>
> ___
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>
> click.
_
On Tue, Sep 1, 2009 at 7:46 AM, Sander Sweers wrote:
> 2009/9/1 Luke Paireepinart :
> >>>> txt = "Hi how are you?"
> >>>> " ".join(txt.strip().split())
> > 'Hi how are you?'
>
> txt.strip() only remove lead
fort to figure it out yourself. That's really the best way to
learn a language; we try to give you just enough help to get you on your
way, without just solving everything for you.
Good luck!
-Luke
On Fri, Sep 4, 2009 at 3:18 PM, dan06 wrote:
>
> I'd like to learn a prog
> ruby on the other is more 'implicit,' used more in web-apps (via ROR),
> emphasizes code-readability/beauty, and is more flexible (i.e. has more than
> one way of doing something).
You mean people actually like ruby's syntax? I think Python's the prettiest
language I've worked with syntacticall
e this second
> doughnut, but you know what, i am gonna eat that *and* have a second cup of
> coffee). So i'll resist the temptation to reply to Luke in detail, who i did
> not realize was a moderator here.
>
For the record, I'm not a moderator. I'm sorry if it seemed li
>
>
>> Ummm, whats a branch? Haha, I know loops, but not branches.
>
A branch changes the program flow based on a condition.
Example:
x = int(raw_input("Please enter a number!"))
if x > 10:
print "Your number was greater than 10!"
else:
print "Your number was less than or equal to 10!"
___
man, here I am always complaining about people replying directly to me, and
I go and do it to Joshua!meant to send this to the list. sorry!
-- Forwarded message --
From: Luke Paireepinart
Date: Tue, Sep 8, 2009 at 3:53 AM
Subject: Re: [Tutor] Pyduino
To: Joshua Harper
You
Yes, this is true, but he was asking to use Python *instead* of the Arduino
language. I really don't think it's too hard to learn the language, it's
really straightforward.
On Tue, Sep 8, 2009 at 9:13 AM, Michael Connors wrote:
>
>>
>> You wouldn't want to run python on a 16 mhz processor, the
Most socket request libraries have timeouts on connection attempts, have you
looked into that already?
On Tue, Sep 15, 2009 at 4:02 PM, Serdar Tumgoren wrote:
> Hey everyone,
> Is there a way to break out of a function if it exceeds a certain time
> limit for execution?
>
> There's a Website I'm
It looks to me like your __init__.py is transparently
mapping openid.extensions.pape to openid.extensions.pape5 but when you try
to do a direct import from openid.extensions.pape it doesn't process the
__init__.py. I've never seen something like this but from your example
that's my first guess.Try
that they would do it that way
though.
On Tue, Sep 22, 2009 at 8:27 PM, Parag Shah wrote:
> Hi Luke,
>
> If I get into the Python prompt, the following line does succeed (so
> it seems like __init__.py is being processed):
>
> >>> from openid.extensions import pape
>
On Tue, Sep 29, 2009 at 11:40 PM, Corey Richardson wrote:
> I got suggested to use this format for my code, as it was shorter and
> prettier. But It dun work!
> if wellness != ["Well","Fine","Good", "OK", "ok", "Ok", "Great", "Awesome",
> "Epic"]:
> print "Oh, I'm sorry you are not feeling well
On Tue, Sep 29, 2009 at 6:00 PM, Corey Richardson wrote:
> I haven't looked into this, but could you make a real time image using
> python? I think it would be most hard
>
I haven't looked into this, but perhaps your questions are too vague? I
think that may be the case
What do you mean
On Wed, Sep 30, 2009 at 1:29 AM, Corey Richardson wrote:
> One of my friends was asking if you could make a game using python, but he
> meant a Graphics, not text game. I was wondering if that was doable.
>
Yes, there are many libraries available for doing this. Pyglet is my
favorite, but Pygam
> if wellness.strip().lower() in ["well", "fine", "good", "whatever"]:
> note if you strip & lowercase the list it is far more likely you'll match
> your input.
>
> And by "lowercase the list" I meant "lowercase the string" of course :)
___
Tutor maillist
Oops, thanks for catching that one Marty. I thought they both
evaluated to false.
On 9/29/09, Martin Walsh wrote:
> Luke Paireepinart wrote:
>> In this case you are saying "is their input equal to this list with many
>> elements?" and the answer is always going to be No
ess inclined to.
On Wed, Sep 30, 2009 at 9:00 PM, Corey Richardson wrote:
> Luke Paireepinart wrote:
>
> If your code's more than 10 lines long or so, put it on pastebin.com and
> send us the link rather than inlining the whole thing. You could also send
> it as an attachment.
> Y
If your code's more than 10 lines long or so, put it on pastebin.com and
send us the link rather than inlining the whole thing. You could also send
it as an attachment.Your formatting is all screwed up and I can't read the
code at all, but I have an idea about your error.
On Wed, Sep 30, 2009 at
Corey, please reply on list (use reply-all). I know it's annoying to have
to remember that.
-- Forwarded message --
From: Corey Richardson
Date: Thu, Oct 1, 2009 at 4:15 AM
Subject: Re: [Tutor] UnboundLocalError and Break
To: Luke Paireepinart
Luke Paireepinart
s in the
future. So there's at least one "adviser" who chooses not to explain to
people who join their mailing list and act like rude jerks.
Regards,
-Luke
On Fri, Oct 2, 2009 at 6:44 PM, Andrius wrote:
> Ok ok, smarty! Don't be very cool! Nobody asks you a favor, nobody
&g
aqs/smart-questions.html#not_losing
Good luck,
-Luke
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
On Mon, Oct 5, 2009 at 9:28 PM, Sander Sweers wrote:
>
> Hi Tutors,
>
> I am going through someone's python script and I am seeing a lot of the
> following boolean checks.
>
> if not s == ""
>
> if not n == 0
>
> if b == True
>
> if not b == True
>
> etc..
>
> All of these can be written without t
On Tue, Oct 6, 2009 at 4:47 PM, Wayne wrote:
>
> On Tue, Oct 6, 2009 at 9:46 AM, Steve Willoughby wrote:
>
>> On Tue, Oct 06, 2009 at 09:42:04AM -0500, Wayne wrote:
>> > On Tue, Oct 6, 2009 at 9:26 AM, Christian Witts > >wrote:
>> > if sys.version < '2.4':
>> >sys.exit("Need at least Python 2
On Tue, Oct 6, 2009 at 9:39 PM, Mark Young wrote:
> I'm now fairly familiar with Python, so I'm thinking about starting to
> learn a second programming language. The problem is, I don't know which to
> learn. I want a language that will be good for me to learn, but is not so
> different from pyth
I keep getting Mail Delivery Subsystem notices from tutor saying my mail is
undeliverable. Is that just me or are other people getting this as well?
I'm realizing now that a lot of my replies are not getting through. Anyone
know why this may be? (even if you don't, someone please reply so I know
On Tue, Oct 6, 2009 at 2:40 AM, Vern Ceder wrote:
> Dave Angel wrote:
>
> Now in this case where it is only used as boolean checks which would be
the most pythonic way if writing these checks?
>>> The shorter version may be preferable, but it doesn't generally give the
>> same res
101 - 200 of 851 matches
Mail list logo