On 22/12/2013 17:42, Keith Winston wrote:
On Sun, Dec 22, 2013 at 6:00 AM, mailto:tutor-requ...@python.org>> wrote:
But in Python 2, the parentheses aren't part of the function call,
because print isn't a function. So what do the brackets do? They are
used for *grouping* terms toget
On Sun, Dec 22, 2013 at 07:06:24PM -0500, Keith Winston wrote:
> The way I was doing this before, I had to retype the subject line, and I
> think that broke threading. Hopefully it will be fixed now that I ditched
> digests.
Nah, threading is already broken in a digest. Every "normal" post is
eit
On Sun, Dec 22, 2013 at 3:04 PM, wrote:
> To sum it up: I like what you have, my hints are all about very minor
> points
> :)
>
Peter, that's a bunch of great suggestions, I knew there were a lot of
places to streamline, make more readable, and probably make faster. Thank
you.
I find that if I
The way I was doing this before, I had to retype the subject line, and I
think that broke threading. Hopefully it will be fixed now that I ditched
digests.
I don't know what you mean, nik, about (including layer 8!)? [research]
Never mind, I get it. But I can't get layer 8 buy-in, too many dispara
oh i think it might be the 2nd case of having the wrong version of
pip. I do have pip for Python 2 also but both are not on my path so
cmd doesn't recognise 'pip' unless used in their python folders. I'll
try reinstalling pip. i got it via easy_install so i may have the
wrong one there also:(
On S
On Sun, Dec 22, 2013 at 04:39:24AM -0500, Keith Winston wrote:
[...]
> You could do this entire piece with a list comprehension in one line, but
> I'm only mentioning it b/c I just learned them. My crude first effort would
> look like this:
>
> RN = [] # create the array RN
> [RN.append(random.r
On Sun, Dec 22, 2013 at 12:42:30PM -0500, Keith Winston wrote:
> The other part of my question was: how did you find that PEP? I started
> looking, and it seemed like I could have taken hours, even though I sort of
> knew what I was looking for. You must have had a reasonably efficient
> search st
On Sun, Dec 22, 2013 at 11:10:13PM +, Matthew Ngaha wrote:
> hey i've tried installing a few packages with pip that failed. i'm on
> windows and python3.3.
You're trying to use Python 3.3, but somehow your version of pip is
written for Python 2, which is why you're getting syntax errors.
Thi
hey i've tried installing a few packages with pip that failed. i'm on
windows and python3.3. I have tried 'pip install pycurl' and 'pip
install flup' which is something i need for django. I tried flup today
and what bothers me is even though it failed, it's making some temp
folders in places i neve
> >OMG, so obvious. I actually had to reply to several messages in recent
> >digests, and I utterly resented my clunky technique the second I saw
> >you'd mentioned this. Thanks.
> >
> >--
> >Keith
> >
>
> This might also prevent you from completely losing all threading.
> This has happened on at
On Sun, Dec 22, 2013 at 12:37 PM, Keith Winston wrote:
>
> Well how about that. I looked all over the web, all over scipy, and somehow
> this was never suggested. I'm still learning about repositories and such.
> Anyway, looks like it worked, don't have time to test it right now. Thanks!
Use apt-
On 22/12/2013 17:52, Keith Winston wrote:
On Sun, Dec 22, 2013 at 6:00 AM, mailto:tutor-requ...@python.org>> wrote:
The problem is that you're responding to the digest. Change your
subscription to receive individual messages. Create a filter that
automatically puts the tutor list em
On Sun, Dec 22, 2013 at 12:42 PM, Keith Winston wrote:
> The other part of my question was: how did you find that PEP? I started
> looking, and it seemed like I could have taken hours, even though I sort of
> knew what I was looking for. You must have had a reasonably efficient search
> strategy/t
On Sun, Dec 22, 2013 at 6:00 AM, wrote:
> The problem is that you're responding to the digest. Change your
> subscription to receive individual messages. Create a filter that
> automatically puts the tutor list emails under a particular label
>
OMG, so obvious. I actually had to reply to several
On Sun, Dec 22, 2013 at 6:00 AM, wrote:
> They have to live somewhere.
Don't we all. Thanks, this helped clarify, I'll experiment more...
--
Keith
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.p
On Sun, Dec 22, 2013 at 6:00 AM, wrote:
> As an alternative to numpy, or possibly as well as numpy, you might like
> to try the statistics library which will appear in Python 3.4. As the
> author of that library, I would be very, very grateful for bug reports
> or other feedback.
>
I now remembe
On Sun, Dec 22, 2013 at 6:00 AM, wrote:
> They have to live somewhere.
--
Keith
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
On Sun, Dec 22, 2013 at 6:00 AM, wrote:
> But in Python 2, the parentheses aren't part of the function call,
> because print isn't a function. So what do the brackets do? They are
> used for *grouping* terms together.
>
> In the first line, the brackets group variable a, comma, myExample[a]
> tog
On Sun, Dec 22, 2013 at 10:09 AM, wrote:
> What did you try? I don't have Mint 16, but I'd expect that
>
> $ sudo apt-get install python3-numpy
>
> will work.
>
Well how about that. I looked all over the web, all over scipy, and somehow
this was never suggested. I'm still learning about reposito
On Sun, Dec 22, 2013 at 8:14 AM, David Abbott wrote:
> Then what I do is reply to all and remove the individual email address
> and move tutor@ to the To: and make sure to reply at the bottom by
> clicking on the 3 dots that open up the message.
I prefer to set reply-all as the default in Gmail.
Keith Winston wrote:
> I've put together my first small program. It's a simulation of the game
> Chutes & Ladders. It plays the game and amasses an array of ([multicount]
> [gamecount]) size, and then crunches simple stats on the average moves,
> chutes, and ladders for all games in each high-lev
On 12/22/2013 04:50 PM, Mark Lawrence wrote:
I'm sorry that I can't help directly, but the asyncio module is so new
that I don't know if any of the other regulars here can help either :(
I'd be inclined to wait for 24 hours from time of posting and if you
don't get any positive responses, the
On 22/12/2013 14:43, Tobias M. wrote:
Hello,
I am currently writing an event-driven client library for a network
protocol [1] and chose to use the new asyncio module. I have no
experience with asynchronous IO and don't understand all the concepts in
asyncio yet. So I'm not sure if asyncio is act
On Sun, Dec 22, 2013 at 3:55 AM, wrote:
> import random
>
> for i in range(1):
> RN1 = random.randint(1,75)
>
As noted before, these "for i in range(1)" statements are pointless:
iteration over a range of 1 is no iteration at all. This is exactly
equivalent to simply saying
RN1 = random
Hello,
I am currently writing an event-driven client library for a network
protocol [1] and chose to use the new asyncio module. I have no
experience with asynchronous IO and don't understand all the concepts in
asyncio yet. So I'm not sure if asyncio is actually the right choice .
My goal:
Keith Winston wrote:
> I want to play with some stats, but I am having trouble installing numpy
> on mint 16 Petra/Saucy. Is there some way to do it, or some alternative,
> or do I not know what I'm talking about (largely true in this case)?
What did you try? I don't have Mint 16, but I'd expect
On Sun, Dec 22, 2013 at 5:21 AM, Oscar Benjamin
wrote:
>
> On Dec 22, 2013 1:20 AM, "Keith Winston" wrote:
>
>
>>
>> On Sat, Dec 21, 2013 at 6:00 AM, wrote:
>>>
>>> I'm unsure as to what the subject line has in common with class and
>>> instance variables, would you care to explain it please.
>>
On 12/21/2013 01:04 PM, Timo wrote:
op 21-12-13 16:07, Matthew Ngaha schreef:
I always use the Twitter Bootstrap boilerplate. Here are the docs:
http://getbootstrap.com/
Everything is set up for you already so you can create good looking
websites in a flash.
I'll second the mention of bootstra
On Sun, Dec 22, 2013 at 11:14 AM, Steven D'Aprano wrote:
> That's the answer to your question: in Python 2, print is a statement,
> not a function. That has many consequences, but the relevant one is that
> statements don't require brackets (parentheses for Americans reading)
> around the argument
Please help us to help you. When you have a bug you want help with, post
the ENTIRE error message, starting from the line
Traceback (most recent call last)
all the way to the end. Do not re-type it, copy and paste it.
> Game + z = N1 + N2 + N3 + N4 + N5 + MB
This line doesn't make any
On Sat, Dec 21, 2013 at 02:22:32PM -0500, Keith Winston wrote:
> On Sat, Dec 21, 2013 at 12:56 PM, wrote:
>
> > py> x = 23
> > py> d = globals()
> > py> d['x']
> > 23
> > py> d['x'] = 42
> > py> x
> > 42
> >
>
>
> Well this is sort of fascinating, but a bit confusing: I was playing with
> this,
On Sun, Dec 22, 2013 at 01:05:27AM -0500, Keith Winston wrote:
> I want to play with some stats, but I am having trouble installing numpy on
> mint 16 Petra/Saucy. Is there some way to do it, or some alternative, or do
> I not know what I'm talking about (largely true in this case)?
I don't know m
On Dec 22, 2013 1:20 AM, "Keith Winston" wrote:
>
> On Sat, Dec 21, 2013 at 6:00 AM, wrote:
>>
>> I'm unsure as to what the subject line has in common with class and
>> instance variables, would you care to explain it please.
>
>
>
> I'm sorry Mark, I'm stuck with using gmail where I have to reme
On Sun, Dec 22, 2013 at 12:43:46AM -0500, Keith Winston wrote:
> I've been playing with afterhoursprogramming python tutorial, and I was
> going to write a question about
>
> myExample = {'someItem': 2, 'otherItem': 20}
> for a in myExample:
> print (a, myExample[a])
> print (a)
>
> retur
On Sun, Dec 22, 2013 at 3:55 AM, wrote:
> I'm no expert, but would a (semi-)decent email client help?
>
I do email on a lot of different computers, but I am going to look into
options. Meanwhile, I'm going to redouble my efforts to be conscientious.
--
Keith
__
I've put together my first small program. It's a simulation of the game
Chutes & Ladders. It plays the game and amasses an array of ([multicount]
[gamecount]) size, and then crunches simple stats on the average moves,
chutes, and ladders for all games in each high-level (multi) pass.
Hopefully the
I want to play with some stats, but I am having trouble installing numpy on
mint 16 Petra/Saucy. Is there some way to do it, or some alternative, or do
I not know what I'm talking about (largely true in this case)?
--
Keith
___
Tutor maillist - Tutor@
I've been playing with afterhoursprogramming python tutorial, and I was
going to write a question about
myExample = {'someItem': 2, 'otherItem': 20}
for a in myExample:
print (a, myExample[a])
print (a)
returning
('someItem', 2)
someItem
('otherItem', 20)
otherItem
Which is to say, why
"NZHacker1 ." writes:
> import random
>
> for i in range(1):
> RN1 = random.randint(1,75)
There is no point of using a for loop if you only intent to do something
once. But looking at the following lines, it actually seems like you
want something to happen multiple times:
> for i in range(1):
On 21/12/13 20:36, NZHacker1 . wrote:
I'm trying to make a lottery in python and I keep getting this error.
There's an error in your program:
***Cant assign to operator.(Mega Millions, line 47)
Did you read the replies sent last time?
Did you understand them? It seems unlikely since you
haven'
> I'm no expert, but would a (semi-)decent email client help?
Probably not, as Google's IMAP implementation is hopelessly broken
beyond all repair.
-nik
--
* concerning Mozilla code leaking assertion failures to tty without D-BUS *
That means, D-BUS is a tool that makes software look better
On 21/12/2013 18:57, Keith Winston wrote:
On Sat, Dec 21, 2013 at 6:00 AM, mailto:tutor-requ...@python.org>> wrote:
I'm unsure as to what the subject line has in common with class and
instance variables, would you care to explain it please.
I'm sorry Mark, I'm stuck with using gmail w
On 21/12/2013 20:36, NZHacker1 . wrote:
I'm trying to make a lottery in python and I keep getting this error.
There's an error in your program:
***Cant assign to operator.(Mega Millions, line 47)
Do you expect a different answer if you pose the same question with the
same code a second time?
43 matches
Mail list logo