Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release ma
> $ ./pyglet.py
> Traceback (most recent call last):
> File "./pyglet.py", line 2, in
> import pyglet
> File "/home/collier/pyglet.py", line 3, in
> song = pyglet.media.load('./boot.ogg')
> AttributeError: 'module' object has no attribute 'media'
Name your program something othe
pybotwar is a fun and educational game where players
write computer programs to control simulated robots.
http://pybotwar.googlecode.com/
The focus of this release is making all functionality
available from the PyQt interface and making PyQt
the default interface.
pybotwar uses pybox2d for the
Hi;
I have asked this on the PyQt list, but have not seen any
response yet. Hoping someone will be able to test this
on their system to see if they see the same problem.
The problem I am seeing is that terminating a QThread running
certain code will freeze the program, requiring it to be kill'd.
>> I understand that use of QThread.terminate is discouraged,
>> but it has worked well previously and I would like to continue
>> this use if possible.
>>
> And now you've encountered the reason it is discouraged.
Ok. Point taken.
What I hear you saying is that once I use .terminate anyth
Have I just happened across wiki.python.org at a bad time,
or is the wiki gone?
When I go to wiki.python.org I get redirected to
http://wiki.python.org/moin/
which is 404 Not Found.
--
http://mail.python.org/mailman/listinfo/python-list
I am using:
Ubuntu 12.10
Python 3.2.3
Qt 4.8.2
PyQt 4.9.3
I also have the ubuntu -dbg packages:
python3-dbg
python3-pyqt4-dbg
I don't understand why python3-dbg cannot import the PyQt4 modules...
$ python3
Python 3.2.3 (default, Oct 19 2012, 19:53:57)
[GCC 4.7.2] on linux2
Type "help", "
> On 1/6/2013 8:42 AM, Lee Harr wrote:
>>
>> I am using:
>> Ubuntu 12.10
>> Python 3.2.3
>
> import has been considerably redone, and hopefully upgraded, in 3.3.
Ok, so now I tried python3.3-dbg but I don't think the pyqt
modules are compiled for 3.3 and t
>> Ok, so now I tried python3.3-dbg but I don't think the pyqt
>> modules are compiled for 3.3 and that may be preventing
>> the import there.
>>
>> Those extension modules would need to be compiled for
>> an exactly matching python interpreter, right?
>
> For Windows visual C compiler, that is tr
vBot is a visual programming game.
Use a small set of command tiles to build a program.
The program must control the vBot and make it activate
every target using the limited command set.
It is meant to be an easy environment for introducing
some programming concepts to beginning p
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release c
> I'm working on a tool that runs a number of process is separate thread.
> I've, up to this point, been using threading.Thread, but from what I
> read multiprocess will allow multiple processors to be used
> From the python docs on multiprocessing.
> leverage multiple processors on a giv
> there
> was a steady slowing down of turtles as time goes
The problem is that when the turtle "draws" it does not
just put marks on the canvas, it actually creates new
canvas items.
Canvas items aren't just pixels on the canvas, they are
full-fledged objects which (if you wanted to) you could
I am trying to get some information about a function
before (and without) calling it.
Here is what I have so far. I chose to go with a
regular expression, so now I have 2 problems :o)
def pdict(f, pstr):
'''given a function object and a string with the function parameters,
return a dic
>> I am trying to get some information about a function
>> before (and without) calling it.
> how about
def pdict(f):
parameter_defaults = {}
defaults = f.func_defaults
defaultcount = len(defaults)
argcount = f.func_code.co_argcount
for i in xrange(f.func_code.co_argco
Needed to make one change... for functions with no default args:
def pdict(f):
parameter_defaults = {}
defaults = f.func_defaults
if defaults is not None:
defaultcount = len(defaults)
else:
defaultcount = 0
argcount = f.func_code.co_argcount
for i in xrang
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release c
Is there a way to make distutils use --install-layout=deb
but only on systems where that makes sense?
I just noticed that if someone installs without that switch,
my app will not be able to find its data files, because
sys.prefix = /usr but the installation is actually in to
/usr/local
I suppo
On 2005-10-28, LenS <[EMAIL PROTECTED]> wrote:
> Never mind I figured out my on stupid mistake
>
How about posting a very simple explanation of what
you did wrong and how you fixed it, instead of leaving
the next person who has this problem with a dead end?
Thanks.
--
http://mail.python.org/ma
On 2005-11-11, questions? <[EMAIL PROTECTED]> wrote:
> I want to make a 3d plot. x is a vector(discrete), y is also a
> vector(discrete), for each pairwise x,y I have a value z(x,y)(it is not
> a function, just discrete values for each pair of x,y)
>
> I want to show them on a two dimensional plot
On 2005-11-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Now that I have gotoxy() down for moving the cursor around, I want that
> to be a result of keypresses (namely from the numpad -- 7 = NorthWest,
> 8 = North, 9 = NE, etc...). I have little clue how to do this. After
> searching google,
On 2005-11-11, Kristian Zoerhoff <[EMAIL PROTECTED]> wrote:
> On 11 Nov 2005 11:34:47 -0800, Greg <[EMAIL PROTECTED]> wrote:
>> Forgive me, and be kind, as I am just a newby learning this language
>> out of M.L. Hetland's book. The following behavior of 2.4.1 seems very
>> strange
>> >>> x = ['aar
On 2005-11-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> So, I've written my first GUI app in python. I've turned it into a
> binary .exe and .app that runs on Windows and Mac respectively, but on
> my Linux box, where I wrote the thing, I still have to drop to the
> command line and ./myscri
> Is there a way to create a button in either pygame or livewires, that is
> able to be clicked and when clicked sends a command to restart the program?
>
You could try something like this using pygsear
(http://www.nongnu.org/pygsear/)
The button can call either start() which just makes
a new G
> No matter what setting, the order of the indents is kept. This is not
> the case if tabs and spaces are intermixed, as some style guides
> suggest.
>
I have never seen anyone suggest mixing tabs and spaces, and I
have read a lot of tabs-vs-spaces flamewars in my time.
Everyone agrees that mixi
On 2005-01-02, Brian Beck <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
>> You _gotta_ be kidding, right...? The Beginner's Guide link takes you
>> right to the BeginnersGuide page which starts with the reassurance that
>> Python is easy to learn even if you're new to programming and continues
On 2005-01-03, Steve Holden <[EMAIL PROTECTED]> wrote:
> John J. Lee wrote:
>
>> Lee Harr <[EMAIL PROTECTED]> writes:
>> [...]
>>
>>>I think it looks pretty good. The only problem I see is section 5
>>>where it says:
>>>
>>&g
On 2005-01-05, Nader Emami <[EMAIL PROTECTED]> wrote:
> L.S.,
>
> Could somebody help me how I can get the next format of date
> from the time module?
>
> example: I have to have this time 20050105. It is the next
> attributes of format %Y%m%d.
>
I would use the datetime module:
>>> import date
On 2005-01-05, none <""> wrote:
> I want to determine the outside (non local, a.k.a. 127.0.0.x) ip
> addresses of my host. It seems that the socket module provides me with
> some nifty tools for that but I cannot get it to work correctly it seems.
>
> Can someone enlightened show a light on this:
>> [http://www.gotw.ca/publications/concurrency-ddj.htm]. It argues that the
>> continous CPU performance gain we've seen is finally over. And that future
>> gain would primary be in the area of software concurrency taking advantage
>> hyperthreading and multicore architectures.
>>
> Well, yes.
On 2005-01-08, Michael <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am experiencing something very weird with PyQt. I have created several
> windows based on QWidget using Designer. I can easily hide and show
> these with the hide and show methods. However I have just created a new
> window with Desig
On 2005-01-07, Skip Montanaro <[EMAIL PROTECTED]> wrote:
>
> josh> Shouldn't datetime have strptime?
>
> Sure, but it's not quite as trivial to implement as was strftime() support.
> While strftime() is a C library function and thus easily called from within
> the datetime C code, strptime() is
>> That approach creates a sort of fragility, though.
>> Python includes, along with much else, os.unlink().
>> Suppose our original poster doesn't want end-users
>> to be able to delete files (or directories ...).
>
> I don't remember if the OP specified *where* the scripted application is to
> b
> What is the difference between inherting form object, and not doing it? E.g,
> what's the difference between the two following classes?
>
> class foo:
> pass
>
> class bar(object):
> pass
>
> Sometimes people inherit from it, and sometimes not. I don't see a pattern in
> their choic
On 2005-02-03, BJörn Lindqvist <[EMAIL PROTECTED]> wrote:
> The process seem slow. I've submitted two patches and haven't gotten
> any response so far, but it has only been three weeks. Other patches
> seem to be idling for months. I'm not complaining, just want to know
> why the process is so slow
> Does anyone know how to use SimpleHTTPServer to:
>
> 1. Support virtual hosts?
>
> 2. Support SSL?
>
> I'd like to use SimpleHTTPServer to create some simple reporting utilities,
> but can't get past these two points. Is there a NotSoSimpleHTTPServer?
I think I would point to twisted for that.
> to use a port below 1000 on a Unix system one needs root priviledges.
> But it's dangerous to execute all of a script under those priviledges.
> Therefore I'd like to drop the root priviledges as soon as possible.
> (How) is this possible?
>
Are you sure you don't just want to use twisted?
http
>> Higher-order functions like map, filter and reduce. As of Python 3000,
>> they're non-python tricks. Sigh - i guess it's time for me to get to know
>> list comprehensions a bit better.
>>
Couldnt there just be a "functional" module ?...
from functional import map, filter, reduce
--
http://
On 2005-06-28, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> hi,
>
> I've been searching long, and found some information, but still not
> enough for me to actually make it happen. so, I ask here.
>
> is it possible, in windows, to make PyQT application hide itself into
> systray area?
>
> I read,
> make something that will work for him, am I correct? The other
> alternative is to install console mode linux on it and hope that the
> ncurses library can be used by python. The system could be as low as a
> 486 dx2 66 with maybe 16 megs of ram. Well, I just thought I'd give you
> people more in
> See the competition timetable (including competition dates in various
> timezones), rules, sign-up (commencing 6th August) at:
>
> http://www.mechanicalcat.net/tech/PyWeek
>
Sounds like fun.
One thing. From the website ...
> Clip Art
> note:
> more links welcome
How about:
http://www.open
On 2005-07-22, Girish <[EMAIL PROTECTED]> wrote:
> Hi ,
>
> I wanna do some automation work using "pexpect".
> I have an application which must be invoked from the command line in
> linux environment,it consists of buttons,textboxes etc can i access
> those widgets using "pexpect",say i wanna enter
On 2005-08-01, Rob Conner <[EMAIL PROTECTED]> wrote:
> So this is simple, why can't I run the following code? I've tried many
> variances of this, but simply cannot inherit from datetime or
> datetime.datetime. I get this on line 3.
> TypeError: function takes at most 2 arguments (3 given)
>
>
On 2005-09-05, mclaugb <[EMAIL PROTECTED]> wrote:
> I am trying to pass the name of several files to a python script as command
> line arguments. When i type in
>
>
> python ImportFiles_test.py C:\Program Files\National Instruments\LabVIEW
> 7.1\project\calibration\FREQUENCY_
> 13.CSV
>
> The fo
On 2005-09-05, es_uomikim <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have one small simple question, that I didn't found answer in
> google's. It's kind of begginers question because I'm a one. ; )
>
> I wanned to ask how to use scripts with vars on input like this:
>
> $ echo "something" | ./my_scrip
On 2005-02-06, Brian Beck <[EMAIL PROTECTED]> wrote:
>> Refactoring a database on a live system is a giant pain in the ass,
>> simpler file-based approaches make incremental updates easier.
>>
> As much as I hate working with relational databases, I think you're
> forgetting the reliability even
>> Not only that, but with a well-design RDBMS you can put your
>> schema changes inside of a transaction and make sure everything
>> is right before committing.
>>
> Bear in mind, however, that *most* common RDBMS will treat each DDL
> statement as implicitly committing, so transactional change
On 2005-02-10, maxime <[EMAIL PROTECTED]> wrote:
> Hi, I try to develop a game in python and pygame.
> In my game I play a music (.mid with pygame.mixer.music) but sometime
> I need to accelerate it but I don't see how to do that with pygame. Is
> it possible? If not, do you know an other python mu
On 2005-02-26, bruce <[EMAIL PROTECTED]> wrote:
> hi...
>
> i'm running rh8.0 with gnome.. i'm not sure of the version (it's whatever rh
> shipped).
>
> i've recently updated (or tried to update) python to the latest version.
> when i try to run the 'Server Settings/Services' Icon within gnome, not
On 2005-03-06, Stewart Midwinter <[EMAIL PROTECTED]> wrote:
> I've got an app that creates an object in its main class (it also
> creates a GUI). My problem is that I need to pass this object, a
> list, to a dialog that is implemented as a second class. I want to
> edit the contents of that list a
On 2005-03-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello NG,
>
>I am still quite a newbie with Python (I intensely use wxPython, anyway).
> I would like to know what are, in your opinions, the best/faster databases
> that I could use in Python (and, of course, I should be able to "li
On 2005-03-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello, I'm new to both PostgreSQL and psycopg and I'm trying to connect
> to my database running on localhost. I have postgres setup to do md5
> authentication and this works when using a db admin tool on my local
> network. For some rea
On 2005-03-14, Joe <[EMAIL PROTECTED]> wrote:
> On Sun, 13 Mar 2005 19:20:34 +0100, "Diez B. Roggisch"
><[EMAIL PROTECTED]> wrote:
>>Plain wrong. You can access them via FTP and WEBDAV.
>
> Not wrong. I am aware of this, but it's not like that many development
> tools can work through FTP or WebDav
On 2004-12-08, Tony Pryor <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Anyone know if running two client telnet sessions at the same time
> should be an inherent problem? They don't seem to want to share a port
> or are they trying to use the same console for interaction with the
> connected servers?
>
On 2005-03-27, Joal Heagney <[EMAIL PROTECTED]> wrote:
> Couldn't help myself. I had to write the Dragon Fractal in python.turtle
>:)
>
That's nice. I ported it to use the pygsear Turtle class.
http://www.nongnu.org/pygsear/
--- Dragon.py 2005-03-27 08:48:13.0 -0500
+++ pDragon.py 200
On 2005-03-27, Joal Heagney <[EMAIL PROTECTED]> wrote:
> Couldn't help myself. I had to write the Dragon Fractal in python.turtle
>:)
>
That's nice. I ported it to use the pygsear Turtle class.
http://www.nongnu.org/pygsear/
--- Dragon.py 2005-03-27 08:48:13.0 -0500
+++ pDragon.py 200
On 2005-04-07, foten <[EMAIL PROTECTED]> wrote:
> The problem I'm having is when I'm trying to extract the
> attachement using
> f=open(Filename, "wb")
> f.write(msg.get_payload(decode=1))
> f.close()
> Not the whole message is decoded and stored!
> When only trying
>
On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote:
> I'm using PyChart like a module for create charts into a little web
> site, but when I try to create one, I have this error:
>
> /var/www/html/lgt/draw.py:19, in draw:
> can = canvas.init(self.file_name)
> /usr/lib/python2.3/site-packages
On 2005-04-13, Michele Petrazzo <[EMAIL PROTECTED]> wrote:
> Lee Harr wrote:
>> On 2005-04-12, Michele Petrazzo <[EMAIL PROTECTED]> wrote:
>>
>>>I'm using PyChart like a module for create charts into a little web
>>>site, but when I try to creat
On 2005-04-15, codecraig <[EMAIL PROTECTED]> wrote:
> hi,
>how can i use python to figure the ip address of the machine which
> the python script is running on? I dont mean like 127.0.0.1but i
> want the external IP address (such as ipconfig on windows displays).
>
> any ideas??
>
I use
On 2005-04-17, Timothy Smith <[EMAIL PROTECTED]> wrote:
> has anyone used or installed this on fbsd
> the install for it is totally redundant. i get this error for it
>
> make -f freebsd.mak clean all test
> cd ../Source && make -f pysvn_freebsd_py.mak clean
> make: cannot open pysvn_freebsd_py.mak
On 2005-04-17, Andrew E <[EMAIL PROTECTED]> wrote:
> Uwe Mayer wrote:
>> Hi,
>>
>> I've got a ISO 8601 formatted date-time string which I need to read into a
>> datetime object.
>> Is there a shorter way than using regular expressions? Is there a sscanf
>> function as in C?
>
> in addition to the
On 2005-04-26, Brent W. Hughes <[EMAIL PROTECTED]> wrote:
> I'm just starting to learn pygame. I write what I think is just about the
> simplest program that should display a window and then quit.
> #---
> import sys
> import time
> import pygame
>
> py
On 2005-04-27, Eckhoff, Michael A <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I failed to locate a list for pygtk, so I thought I'd
> ask my question here. Is it possible to write CGI
> scripts that bring up a GUI (as in GTK+, QT, Tk, ...)
> or an openGL display that is windowed inside a web
> browser?
> I am completely new to programming so thanks for any help!
Not sure it will help, and hopefully I am not self-promoting too much,
but this may be of interest to you:
http://pynguin.googlecode.com/
http://code.google.com/p/pynguin/wiki/StartProgramming
I am interested in feedback from new pro
pybotwar is a fun and educational game where players
write computer programs to control simulated robots.
http://pybotwar.googlecode.com/
The focus of this release is updating to use the
latest available pybox2d version: 2.3b0
pybotwar uses pybox2d for the physical simulation.
It can be run in
> That's the problem though. It is exactly how I want it in designer. It's
> perfect as it is in designer when I preview it. Here is a screenshot of the
> preview: http://i.imgur.com/ULRolq8.png
That's not a preview. That's just the regular design view.
(you can tell by the little dots in the back
I just got a bug report the heart of which is the
difference between unix and windows in using
os.rename
(ie, "On Windows, if dst already exists, OSError will be raised")
Hmm, I thought, maybe I'm supposed to use
shutil here. That is the "high-level" operations.
Unfortunately, shutil.move says i
> shutil.move works for me, at least in Python 2.7. The docstring> doesn't
> seem to match the code
Thanks for checking that.
Looks like there is a closed report about the misleading
docs:http://bugs.python.org/issue12577
Closed a couple of months ago, but the docs have not madeit to the web ye
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release f
I develop the free python-based turtle graphics application pynguin.
http://pynguin.googlecode.com/
Lately I have been getting a lot of positive comments from people
who use the program, but I am also getting a lot of feedback from
people on Windows (mostly beginners) who are having trouble
get
>> I started a wiki page
>> here:
>>
>> http://code.google.com/p/pynguin/wiki/InstallingPynguinOnWindows
>>
>> but I can't even test if
Thanks to all those who tested and replied!
> For Windows users who want to just run Pyguin (not modify or tinker
> with the source code), it would be best to bundle Pynguin up with
> Py2exe
I considered that, but I agree that licensing issues would make it
problematic.
> the Python installer
>>> Py2exe
>>
>> I considered that, but I agree that licensing issues would make it
>> problematic.
>
> What licensing issues concern you? The py2exe license shouldn't be a
> problem and py2exe or something like it is good advice.
I think PyQt 4 would be the biggest issue. It is GPL 2 / 3.
I th
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release p
>> Pynguin is a python-based turtle graphics application.
>> It combines an editor, interactive interpreter, and
>> graphics display area.
>
>
> What does pynguin have that the builtin python turtle does not?
It is meant to be easier to get started with.
You start the application and it
Pynguin is a python-based turtle graphics application.
It combines an editor, interactive interpreter, and
graphics display area.
It is meant to be an easy environment for introducing
some programming concepts to beginning programmers.
http://pynguin.googlecode.com/
This release ad
>>> 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 2005-12-23, Gary Herron <[EMAIL PROTECTED]> wrote:
> You've got the visible/invisible aspect of things
> *exactly* backwards.
> The point on a line of text where things change
> from white space to
> non-white space is *highly* visible. The several
> pixels that represent a
> { or } are nearl
Is there any other reason to use a named tempfile other than
to be able to open it again? I am trying to understand this
section of the documentation regarding NamedTemporaryFile:
"""
Whether the name can be used to open the file a second time, while the named
temporary file
is still open, var
On 2005-12-29, Peter Hansen <[EMAIL PROTECTED]> wrote:
> Lee Harr wrote:
>> Is there any other reason to use a named tempfile other than
>> to be able to open it again?
> As it says, if you *don't close* the file, you can open it again if you
> are on a platfo
> I was curious how you would program the seperate
> images to fall together and not break apart, because pygame and
> livewires uses images as collision detection, so therefore you can't
> make most of the shapes a single image because they will have
> transparent spaces as part of the image, whic
On 2006-08-16, Rafa³ Janas <[EMAIL PROTECTED]> wrote:
> Is somebody try to paint filled boxes in drawingarea?
> I don't know how to paint line or someting like this.
> Maybe somebody have tutorial or samples?
Your question could use a few more details (like what
you have tried, what "drawingarea"
On 2006-08-17, Gerardo Herzig <[EMAIL PROTECTED]> wrote:
> Hi all, sory if this is kind of [OT], but cannot find the answer for
> this behaviour
>
Might try on a postgres mailing list. I'd say it is more
on topic there...
> You are now connected to database "sessions".
> sessions=# s
I understand how to create a property like this:
class RC(object):
def _set_pwm(self, v):
self._pwm01 = v % 256
def _get_pwm(self):
return self._pwm01
pwm01 = property(_get_pwm, _set_pwm)
But what if I have a whole bunch of these pwm properties?
I made this:
class
> Well, first i don't think it is a good idea to have the python script
> tu su to root, but for it to work, i think (Totally unsure about that)
> www has to be in group wheel to be able to su.
Maybe sudo can help here.
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-06-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is there a module (or, better yet, sample code) that scrubs
> user-entered text to remove cross-site scripting attacks, while also
> allowing a small subset of HTML through?
>
> Contemplated application: a message board that allows peopl
> Found out a quite fun way to store persistent variables in functions in
> python.
>
> Is this concidered bad coding practice since I guess persistent
> variables in functions are not meant to be?
I am using is in one of my recent projects. I was thinking of
it sort of like "static" variables
> I have just installed Python2.4.2 on our HP-UX system. But when I try
> to import datetime modlue I get the following error
>
> ~~~
from datetime import datetime
> Traceback (most recent call last):
> File "", line 1, in ?
> ImportError: No module named datetime
> ~
>> I did look at the sys.path but the issue is that I dont see a module
>> name datetime anywhere. Only datetime thing that is there is in include
>> directory and it is datetime.h, which I think is for C interface. I
>> have a python installed on my Windows desktop and it is working fine
>> there.
> 1. How can I add a standard module named "datetime" in
> Jython when the error happens :"Traceback (innermost
> last):
> File "C:\python\test.py", line 3, in ?
> ImportError: no module named datetime "
> The line 3 is writen: "from datetime import datetime,
> tzinfor"
>
The datetime module wa
On 2005-05-03, v <[EMAIL PROTECTED]> wrote:
> Please help. I'm new with Python.
> Using Boa (or Pythoncard) and pysqlite, how can I read/write from/to
> database, thanks
>
>
Have you tried the pysqlite basic intro?
http://initd.org/tracker/pysqlite/wiki/basicintro
Doesn't mention boa or pyth
On 2005-05-20, J. W. McCall <[EMAIL PROTECTED]> wrote:
> I'm not sure if this is off-topic, since it doesn't deal with Python
> itself, but here goes:
>
> I'm messing around with writing a simple "game" where the player (a
> crudely drawn smiley face) moves by rotating and moving back or forward
>> The current stable brance is Zope2.X If you want to incorporate some
>> functionalty from X3 in Zope 2.X, do a search for "Five"
>
> No, I do not want to migrate components from a new major release
> backwards, as well as I do not want to migrate applications from WinXP
> to Win98. This seems to
On 2005-06-13, David Van Mosselbeen <[EMAIL PROTECTED]> wrote:
> Hi,
> Im a newbie in Python, and also in Fedora Core 3. (Yes, Linux is fine
> man :-)
>
> My question is : How can i rwite a script that show my current ip. If i have
> more than one network card, the script must then show all used ip
On 2005-06-16, Grant Edwards <[EMAIL PROTECTED]> wrote:
> On 2005-06-16, Ralph Corderoy <[EMAIL PROTECTED]> wrote:
>
>>> Wild-ass guess, but you might try googling for "turtle python".
>>
>> OK, I've done that but it didn't help; it wasn't tied in with
>> Turtle graphics, with which I'm familiar.
>
> So far, I've found that unlike with the C++ version of fopen(), the
> Python 'open()' call does not create the file for you when opened
> using the mode 'w'. I get an exception saying that the file doesn't
> exist.
Works for me...
:~$ mkdir foo
:~$ cd foo
:foo$ ls
:foo$ python
Python 2.4.4 (#2
> Traceback (most recent call last):
> File "/Users/chris/Projects/CMR/closed.py", line 132, in
> class M0(MetropolisHastings):
> File "/Users/chris/Projects/CMR/closed.py", line 173, in M0
> @_add_to_post
> NameError: name '_add_to_post' is not defined
>
> yet, when I look at the dict
>> I think the term "class decorator" is going to eventually
>> mean something other than what you are doing here. I'd
>> avoid the term for now.
>>
>>
>> When you decorate a class method,
>> the function you use
>> needs to be defined before the method definition.
>
> FWIW, the term "class metho
> I have a def that I have been using but I realized that sometimes I need a
> LIST with
> 5 or 6 brands instead of 4 so I want to put LIST outside of the def but I
> can't wrap
> my head around a way to get LIST outside the def while still passing the same
> 4
> parameters in the function. I'
1 - 100 of 133 matches
Mail list logo