Am Sat, 06 Apr 2013 02:37:31 + schrieb Steven D'Aprano:
>>> [...]
>> def __init__(self):
>> self.events = {}
>> self.components = []
>> self.contents = []
>> self.uid = uuid4().int
>> self.events['OnLook'] = teventlet()
>>
>>
>> Basically even
Am Thu, 13 Sep 2012 17:00:19 +0100 schrieb andrea crotti:
>
> I have to give a couple of Python presentations in the next weeks, and
> I'm still thinking what is the best approach.
>
My idea for an introductory presentation of python was to prepare some
code snippets (all valid python), show them
Am Sun, 02 Sep 2012 10:23:53 -0700 schrieb gwhite:
> I can't figure out how to stop the "add a space at the beginning"
> behavior of the print function.
>
print 1,;print 2,
> 1 2
>
> See the space in between the 1 and the 2 at the output print to the
> command console?
>
> The help for pri
Am Thu, 03 May 2012 14:51:54 +0200 schrieb Ulrich Eckhardt:
> Hi!
>
> My class Foo exports a constant, accessible as Foo.MAX_VALUE. Now, with
> functions I would simply add a docstring explaining the meaning of this,
> but how do I do that for a non-function member? Note also that ideally,
> this
Am Fri, 30 Dec 2011 07:17:13 + schrieb Paulo da Silva:
> Hi,
> Sorry if this is a FAQ, but I have googled and didn't find any
> satisfatory answer.
>
> Is there a simple way, preferably multiplataform (or linux), of
> generating sinusoidal/square waves sound in python?
>
> Thanks for any ans
Am Mon, 28 Feb 2011 08:03:01 -0800 schrieb Fred Marshall:
> I'm interested in developing Python-based programs, including an
> engineering app. ... re-writing from Fortran and C versions. One of the
> objectives would to be make reasonable use of the available structure
> (objects, etc.). So, I'
Am Sat, 04 Sep 2010 21:29:49 -0700 schrieb shivram:
>
> i want to learn network and socket programming but i would like to do
> this in python.Reason behind this is that python is very simple and the
> only language i know .
> anybody can suggest me which book should i pick. the book should have
>
Am Fri, 05 Mar 2010 10:30:49 +0200 schrieb Michael Joachimiak:
> I am too new to python.
> If anybody has an idea what to do please help. when I use
>
> import glib
>
> in my code I get this:
>
import glib
> Traceback (most recent call last):
> File "", line 1, in
> ImportError: No modu
Am Tue, 29 Dec 2009 12:35:11 +0430 schrieb Laszlo Nagy:
> Suppose we have a program that writes its process id into a pid file.
> Usually the program deletes the pid file when it exists... But in some
> cases (for example, killed with kill -9 or TerminateProcess) pid file is
> left there. I would l
Am Fri, 19 Jun 2009 00:56:18 + schrieb Matthew Wilson:
> Here's the code that I'm feeding to pylint:
>
> $ cat f.py
> from datetime import datetime
>
> def f(c="today"):
>
> if c == "today":
> c = datetime.today()
>
> return c.date()
>
>
>
Am Thu, 11 Jun 2009 20:56:24 -0700 schrieb lucius:
> I am trying to
> print some values to a file (using c's printf like method). TypeError:
> int argument required
> # this works, i see value on screen
> print w, h, absX, absY
>
Are you sure that w or h are not returned as strings?
Hint: try t
Am Mon, 08 Dec 2008 08:22:55 -0800 schrieb Robert Dailey:
> Hi,
>
> I'm looking for a portable way to download ZIP files on the internet
> through Python. I don't want to do os.system() to invoke 'wget', since
> this isn't portable on Windows. I'm hoping the core python library has a
> library for
Am Fri, 24 Oct 2008 11:33:33 -0700 schrieb asit:
> On Oct 24, 11:18 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote:
>> On Fri, Oct 24, 2008 at 1:42 PM, asit <[EMAIL PROTECTED]> wrote:
>> > I code in both windows and Linux. As python is portable, the o/p
>> > should be same in both cases. But why the f
Am Fri, 24 Oct 2008 05:06:23 -0500 schrieb Tim Chase:
> ["%s="%s" % (k,v) for k,v in d.items()]
>> File "", line 1
>> ["%s="%s" % (k,v) for k,v in d.items()]
>> ^
>> SyntaxError: EOL while scanning single-quoted string
>
> You have three quotati
Am Thu, 04 Sep 2008 18:03:54 +0200 schrieb Fredrik Lundh:
>
>> I am trying to read a binary file [...]
>
>
> f = open("a.bin", "rb") # read binary data
> s = f.read() # read all bytes into a string
>
> import array, sys
>
> a = array.array("f", s) # "f" for float
> if sys.byteorder != "big"
Am Thu, 28 Aug 2008 11:23:01 -0700 schrieb Jason Scheirer:
>
> I like to direct new users to pydoc's built-in HTTP server:
>
> import pydoc
> pydoc.gui()
> (then click the 'open browser' button)
>
Now, this is cool !
Thanks a lot!
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Am Wed, 27 Aug 2008 15:45:13 +0200 schrieb Diez B. Roggisch:
>
>> dict.update({"a":1}) SETS the dict item "a" 's value to 1.
>>
>> i want to increase it by 1. isnt that possible in an easy way?
>> I should use a tuple for this?
>
>
> 1) Don't use dict as name for a dictionary, it shadows the t
Am Sun, 24 Aug 2008 15:17:46 +0100 schrieb Carson Farmer:
> Dear list,
>
> I'm sure this is a relatively trivial problem, but I have been unable to
> find any good examples/explanations on how to do this, so here goes:
>
> I have multi-polygon object, which is simply a list of polygons, where
> e
Am Sun, 17 Aug 2008 13:12:36 -0700 schrieb Alexnb:
> Uhm, "string" and "non-string" are just that, words within the string.
> Here shall I dumb it down for you?
>
Please, bear with us. You are deep into the problem, we are not.
It doesn't help to be rude. If you can explain your problem well, you
Am Tue, 27 May 2008 12:37:34 -0700 schrieb Dennis Lee Bieber:
>
> From the library reference:
> """
> Support for the %Z directive is based on the values contained in tzname
> and whether daylight is true. Because of this, it is platform-specific
> except for recognizing UTC and GMT which ar
20 matches
Mail list logo