On Fri, 03 May 2013 13:52:23 +0600, Mr. Joe wrote:
> Thanks for clearing up. Developers of python should address this issue,
> in my opinion. 3.4/3.5 maybe, but better late than never.
>
> Recently, I've been beaten back for using some exotic features of
> python.
What do you consider "exotic"?
"Mr. Joe" writes:
> ...
> Then I came to know that 'property' does not play well
> with polymorphic code. :(
Can you elaborate?
I like "polymorphic code" and decorators (such a "property")
never met a problem with the two working nicely together.
> I resorted to some lambda hacks learned from
>>> Pynguin is a python-based turtle graphics application.
>>> http://pynguin.googlecode.com/
>> I wonder why Pynguin does not get more traction in the teaching sector.
>> Looks ideal for teaching kids.
> I suggest that it's because Pynguin is not yet fully operational.
> I don't know where to re
On Friday, May 3, 2013 11:56:01 PM UTC-4, Chris Angelico wrote:
> On Sat, May 4, 2013 at 1:37 PM, Pedro wrote:
>
> > On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
>
> >> The accept() call should block. It's not going to spin or anything. If
>
> >>
>
> >> you need to monitor m
On Sat, May 4, 2013 at 1:37 PM, Pedro wrote:
> On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
>> The accept() call should block. It's not going to spin or anything. If
>>
>> you need to monitor multiple sockets, have a look at select().
>
> Thanks Chris, can you elaborate on the a
On Friday, May 3, 2013 10:23:38 PM UTC-4, Chris Angelico wrote:
> On Sat, May 4, 2013 at 12:13 PM, Pedro wrote:
>
> > First - this code constantly loops around an open socket. Is there a way to
> > use something like an interrupt so I don't have to loop constantly to
> > monitor the socket?
>
On Sat, May 4, 2013 at 12:13 PM, Pedro wrote:
> First - this code constantly loops around an open socket. Is there a way to
> use something like an interrupt so I don't have to loop constantly to monitor
> the socket?
The accept() call should block. It's not going to spin or anything. If
you ne
I'm writing a simple app that uses socket programming, I'm using the following
from tutorialspoint as a framework but I'm having a couple of issues
implementing it.
First - this code constantly loops around an open socket. Is there a way to use
something like an interrupt so I don't have to lo
On 03/05/2013 23:23, Alex Gardner wrote:
When rect A collides with rect B they stick when I am wanting A to bounce off
of B. I have tried different methods, but none seem to work. My source is
here: http://pastebin.com/CBYPcubL
The collision code itself is below:
--
# Bounce off of the
In article ,
Alec Taylor wrote:
> Which Python framework has benchmarked the highest?
>
> I am looking for a solution to initially run on Heroku or OpenShift;
> but eventually run on a pure IaaS.
>
> Will expose the interfaces RESTfully as JSON, purposed to act as the
> "glue" between the endp
On 03/05/2013 12:01 PM, Jurgis Pralgauskis wrote:
Hi,
do you plan to make step/debug functionality
as it is made in RurPLE?
I generally like RurPLE-NG
http://dev.lshift.net/paul/rurple/
I improoved it fore easier learning
http://grokbase.com/t/python/edu-sig/129r2hkchm/rurple-ng-is-nice#20121
On 13/04/2013 8:10 PM, Miki Tebeka wrote:
Pynguin is a python-based turtle graphics application.
I wonder why Pynguin does not get more traction in the teaching sector. Looks
ideal for teaching kids.
Mili,
I suggest that it's because Pynguin is not yet fully operational.
I don't know where
On Fri, May 3, 2013 at 4:23 PM, Alex Gardner wrote:
> When rect A collides with rect B they stick when I am wanting A to bounce off
> of B. I have tried different methods, but none seem to work. My source is
> here: http://pastebin.com/CBYPcubL
>
> The collision code itself is below:
> --
When rect A collides with rect B they stick when I am wanting A to bounce off
of B. I have tried different methods, but none seem to work. My source is
here: http://pastebin.com/CBYPcubL
The collision code itself is below:
--
# Bounce off of the paddle
if paddle_rect.colliderect(ball_rect
https://www.facebook.com/pages/%D9%86%D8%AA%D8%A7%D8%A6%D8%AC-%D8%A7%D9%84%D8%A7%D9%85%D8%AA%D8%AD%D8%A7%D9%86%D8%A7%D8%AA-%D9%88%D8%A7%D9%84%D8%AC%D8%A7%D9%85%D8%B9%D8%A7%D8%AA-%D9%88%D8%A7%D8%AC%D8%AA%D9%85%D8%A7%D8%B9%D9%8A%D8%A7%D8%AA/299719160065550?ref=hl
--
http://mail.python.org/mailman/li
In Neil Cerutti writes:
> Not quite yet. Players who guess correctly on the fifth try don't
> get credit.
Are you sure? tries is initialized to zero and isn't incremented for the
initial guess.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com
On 2013-05-03, ryankoc...@gmail.com wrote:
> Thank you! It's 100% functional now, here's the final project:
>
> title = "Guess my number game:"
> print title.title()
> raw_input("Press any key to continue..")
>
> import random
>
> number = random.randrange(99) + 1
> tries = 0
> guess = int(r
Thank you! It's 100% functional now, here's the final project:
title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
number = random.randrange(99) + 1
tries = 0
guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")
In ryankoc...@gmail.com
writes:
> I've got it working! I'm really enjoying python :) But now i'd like to make
> it break out of the while loop when the user guesses more than 5 numbers and
> fails
The "Congratulations" message is inside the while loop; that's why it
always prints.
To break a
I've got it working! I'm really enjoying python :) But now i'd like to make it
break out of the while loop when the user guesses more than 5 numbers and
fails..
title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
number = random.randra
I remember seeing one of the IDE's recently saying they had better support for
dark color schemes.
Was it Wing, or does Wing support dark color schemes? The main reason I stick with the older text editors is because I
can have a black background -- looking at bright white screens all day kills
Hi,
Wingware has released version 4.1.13 of Wing IDE, our integrated development
environment designed specifically for the Python programming language.
Wing IDE provides a professional quality code editor with vi, emacs, and
other
key bindings, auto-completion, call tips, refactoring, context-a
I agree, this would be a good feature. I redirect my emacs backups to a single
directory too so that they're not distributed all over the file system. While
I don't know how to do that with the things python creates, I've read a few
ways you can disable their creation altogether (assuming you
Oh wow I can't believed I derped that hard
Thanks Lol.
--
http://mail.python.org/mailman/listinfo/python-list
In <02b65e11-89c6-4639-9d93-27e1f90ee...@googlegroups.com> ryankoc...@gmail.com
writes:
> Okay, thank you very much for the timely replies, heres what i have now:
> title = "Guess my number game:"
> print title.title()
> raw_input("Press any key to continue..")
> import random
> number = rando
Okay, thank you very much for the timely replies, heres what i have now:
title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
number = random.randrange(99) + 1
tries = 0
guess = int(raw_input("Guess my number! Secret - It is between 1 and 100
Try
http://inventwithpython.com/
Al Sweigert is the author, and he has three free ebooks there, and you can also purchase the paper versions if you like.
Looks like it targets 3.1.
--
~Ethan~
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, May 3, 2013 at 12:18 PM, wrote:
> title = "Guess my number game:"
> print title.title()
> raw_input("Press any key to continue..")
>
> import random
>
> tries = 0
> number = random.randrange(99) + 1
> guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")
First up,
In
=?UTF-8?B?Q2hyaXMg4oCcS3dwb2xza2HigJ0gV2Fycmljaw==?=
writes:
> 1. post full tracebacks.
I almost responded with the same advice, but in this case the full
traceback doesn't really tell us anything more:
File "foo.py", line 11
while guess != number:
^
SyntaxEr
On 03/05/2013 18:18, ryankoc...@gmail.com wrote:
title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
tries = 0
number = random.randrange(99) + 1
guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")
while (guess != n
In <24c5856e-a30a-41bd-aa4a-0e594734e...@googlegroups.com> ryankoc...@gmail.com
writes:
> title = "Guess my number game:"
> print title.title()
> raw_input("Press any key to continue..")
> import random
> tries = 0
> number = random.randrange(99) + 1
> guess = int(raw_input("Guess my number! Se
On Fri, May 3, 2013 at 7:18 PM, wrote:
> title = "Guess my number game:"
> print title.title()
> raw_input("Press any key to continue..")
>
> import random
>
> tries = 0
> number = random.randrange(99) + 1
> guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")
>
> while (g
title = "Guess my number game:"
print title.title()
raw_input("Press any key to continue..")
import random
tries = 0
number = random.randrange(99) + 1
guess = int(raw_input("Guess my number! Secret - It is between 1 and 100 :")
while (guess != number):
if (guess > number):
number = int(raw_i
Hi,
do you plan to make step/debug functionality
as it is made in RurPLE?
I generally like RurPLE-NG
http://dev.lshift.net/paul/rurple/
I improoved it fore easier learning
http://grokbase.com/t/python/edu-sig/129r2hkchm/rurple-ng-is-nice#20121113xy5wryeowevmgumpyo6o3t6jka
but moving around jus
I made a few changes:
import gc
from memory_profiler import profile
@profile
def test1():
a = [0] * 1024**2
del a
a = [0] * 1024**2
del a
a = [0] * 1024**2
del a
a = [0] * 1024**2
del a
a = [0] * 1024**2
del a
a = [0] * 1024**2
del a
a = [0] * 1
[Just a note, all the book links in my original post have complete table of
contents listing, so don't just take my word on their suitability.]
Here's some
I missed:
Programming in Python 3, 2nd Edition - Mark Summerfield (Addison-Wesley,
2009) [1a]. Exercises. Solutions available online. At a qu
Which Python framework has benchmarked the highest?
I am looking for a solution to initially run on Heroku or OpenShift;
but eventually run on a pure IaaS.
Will expose the interfaces RESTfully as JSON, purposed to act as the
"glue" between the endpoints, databases (incl. caches) and queues.
An a
On 05/03/2013 07:24 AM, Michele Simionato wrote:
I have a memory leak in a program using big arrays.
Actually, big lists. Python also has arrays, and they're entirely
different.
With the goal of debugging it I run into the memory_profiler module.
Then I discovered something which is surpri
I have a memory leak in a program using big arrays. With the goal of debugging
it I run into the memory_profiler module. Then I discovered something which is
surprising to me. Please consider the following script:
$ cat memtest.py
import gc
from memory_profiler import profile
@profile
def test
On Fri, May 3, 2013 at 8:49 PM, Alister wrote:
> A guy of your abilities & knowledge, why not write your own. you could
> use the experience of teaching your brother to hone it to perfection.
>
> Ok this was slightly tounge in cheek ( but not intended to be in any way
> offensive). I will now off
On Fri, 03 May 2013 00:36:48 +1000, Chris Angelico wrote:
> One of my younger brothers, still school age, is to be studying some
> aspect of computing for the next term or two. I strongly recommended he
> learn Python (it has a bit more future than studying the internals of
> OS/2), and my/his fat
On Fri, May 3, 2013 at 11:06 AM, TP wrote:
> Since I've been using Python for years, I've only skimmed new books.
> Personally, I found the standard Python tutorial [1] (and reading the What's
> New sections) more than adequate for originally learning Python.
>
> Anyway, given your constraints,
Thanks for clearing up. Developers of python should address this issue, in
my opinion. 3.4/3.5 maybe, but better late than never.
Recently, I've been beaten back for using some exotic features of python.
One is this[ Took me hours to get to the bottom ]. The other one is
'property' decorator. I wa
On Fri, May 3, 2013 at 5:16 PM, dabaichi wrote:
> Hello guys:
> Do you have found that the built-in input() function is dangerous.
> Here is my code(python 2.x only):
>
> a = input("Input anything:")
> print("go here")
>
> If I input:
> sys.exit(0)
> print("go here") will not be execute, and the s
On Fri, 03 May 2013 15:16:09 +0800, dabaichi wrote:
> Hello guys:
> Do you have found that the built-in input() function is dangerous.
Correct. Use raw_input instead.
--
Steven
--
http://mail.python.org/mailman/listinfo/python-list
Hello guys:
Do you have found that the built-in input() function is dangerous.
Here is my code(python 2.x only):
a = input("Input anything:")
print("go here")
If I input:
sys.exit(0)
print("go here") will not be execute, and the script will exit.
--- news://freenews.netfront.net/ - complaints:
46 matches
Mail list logo