On Mon, Apr 9, 2012 at 3:29 AM, Dave Angel wrote:
> I don't know about pygame, but almost everywhere in the standard
> library, ranges are closed at the begin and open at the end. For
> example, if you have range(30, 50), there are 20 items, numbered 30
> through 49. I expect the same will be tr
In article <[EMAIL PROTECTED]>, Paul Rubin wrote:
>Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> writes:
>> So there seems to be something macro-like for Haskell.
>
>I think that's some kind of proposed or experimental Haskell feature,
>not in the current standard, but I'm not sure. I'm barely even
In article <[EMAIL PROTECTED]>, Pekka Karjalainen wrote:
Sorry, I messed up the attribution when editing and decided not to
post. Accidentally did post an empty message anyway.
I was going to recommend Haskell for the original poster too, and I wanted
to answer that I did indeed (st
In article <[EMAIL PROTECTED]>, Aahz wrote:
>In article <[EMAIL PROTECTED]>,
>Grant Edwards <[EMAIL PROTECTED]> wrote:
>>On 2006-12-11, Aahz <[EMAIL PROTECTED]> wrote:
>>>
>>> Um... I think the original poster is saying that he already knows Python
>>> and wants to learn another language. He par
In article <[EMAIL PROTECTED]>,
Steve Bergman wrote:
>BTW, can this code be made any more efficient?
>def primes():
>primes=[3]
>for x in xrange(5,1000,2):
>maxfact = int(math.sqrt(x))
>flag=True
>for y in primes:
>if y > maxfact:
>br
On 2006-06-21, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> have you tried things like
[...]
I have now. I'm not sure what the results are supposed to tell me, but I
am not going to press the issue.
Suppose I had no idea what sys.stdout.closed was and wanted to find out.
Where would I look it up?
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from sys import stdout
>>> help (stdout.closed)
If I do this, it gives me help on the bool object. Also:
>>> stdout.closed.__doc__
In article <[EMAIL PROTECTED]>,
Matteo wrote:
>This last approach could, at least theoretically, create an arbitrarily
>long list of polys, without overflowing any kind of stack. In practice,
>python does not seem to perform tail recursion optimizations, and conks
>out after makepolys(997) on my m
I looked around a bit and found the answer. At least the change I
recommend below worked for me.
In article <[EMAIL PROTECTED]>, Rob wrote:
>When trying the basic tutorial for cgkit I always seem to get a not defined
>error as follows.
>
>Pythonwin GUI
>
from cgkit import *
This is "from cg
In article <[EMAIL PROTECTED]>, Rob wrote:
>Forgive me please if this is not the proper place for this ? I am trying to
>keep an active brain :)
Seems proper to me :)
You can see what you've just imported by using the built-in
dir() function. Here's an example from my PyWin window:
>>> dir()
[
> Its still rough around the edges and not fully tested. I'll eventualy
> release a more polished version and possibly put it on Sourceforge. In
> the meantime I would be grateful for any feedback..
Somebody ought to comment this in more detail...
I have one minor point. It looks like your test
too. Thanks to both for helpful replies.
--
Pekka Karjalainen - Oulu, Finland
--
http://mail.python.org/mailman/listinfo/python-list
le slow, but it still runs
fast enough for me at the moment. I have no intention of writing a major
new fractal exploring software after all, so I'm not worried about
execution time, I'm worried about my own programmer's time (which I want
to save for other things).
Any sugges
's plain annoying to go back, even if
it's just a couple of letters that're lacking in my case.
--
Pekka Karjalainen - Oulu, Finland
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Greg Krohn wrote:
> Do you have the unicode version of wxPython?
>
> http://prdownloads.sourceforge.net/wxpython/wxPython2.6-win32-unicode-2.6.1.0-py24.exe
I think I do, because it shows the Unicode demo correctly, and I recall
that I specifically chose that fro
I'm using WinXP (Finnish), Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC
v.1310 32 bit (Intel)] on win32 and wxPython 2.6.0.1.
When I go to the Process and Events section in the wxDemo and run the
Process demo, bad things can happen. It crashes. I think the crash is
caused by characters outside t
16 matches
Mail list logo