| |
Rating
Thread /
Thread Starter
|
Last Post  |
Replies |
Views |
|
 |
by admin
The GIDForums™ Team is proud to announce that GIDForums™ is now among one of the very first Webmaster / Programming forums to offer a custom-written Python Syntax Highlighter BBCode ( bb code) to it's valued members and readers.
Please use the and tag pair to enclose any python code so that it...
|
|
1 |
3,324 |
|
 |
by woovy28
Hi !
I'm new to Python, and i want to use the following code to connect to a xmlrpc server for some inquiry, I wanna know if there is anything wrong with the code ?
Shouln't it when run prints the server_url and then connected ? (it doesn't print any)
Second can I activate and call this class...
|
|
1 |
540 |
|
|
by DeZ
I have some trouble using databases (pysqlite) and how to implement it. oh and also how do i use cookies??
here is the code that im working on
"""Cart page handler for COMP249 Store"""
import cgi
import page
import Cookie import SimpleCookie
import os
|
|
1 |
596 |
|
|
by crystalattice
The two programs below demonstrate how Python works with classes. The first program creates a Rectangle object, complete with length, width, area, and perimeter values. The second program is a driver to "test drive" the rectangle.py module, showing how it works.
This doesn't show all the...
|
|
0 |
858 |
|
|
by crystalattice
Here's a program I wrote for use in my Colonial Marines game. It uses a random number generator to simulate dice rolls. Only a few dice combinations are implemented right now but you can change this program if you want to use it. If you discover any problems with it, please let me...
|
|
1 |
12,963 |
|
|
by crystalattice
Here's another script I wrote. This one lists the prime numbers from 2 to 1000. Again, feel free to use this as needed; just save it with .py as the extension.
###############################################################
#List prime numbers from 2 to 1000.
#Author: Cody Jackson
#Date: ...
|
|
4 |
7,451 |
|
|
by miniwolle
Hi.
Can anyone tell me the python code for a simple countdown from eg. 2.00 minutes.
It should be printet out to the screen.
When it is finished it should write "Time is up"
Hope you can help.
Henrik
|
|
4 |
3,551 |
|
|
by crystalattice
I wrote a few little scripts to showcase how Python works for simple problems. They don't do anything major; they're just to showcase Python syntax in action so you can compare it to other languages.
The first program is a simple temperature convertor, from Celsius to Fahrenheit. Feel free to...
|
|
0 |
1,022 |
|
|
by blacklusterseph
I'm having trouble with importing modules for python2.3
The modules I want to import are located in:
/usr/local/lib/python2.3/site-packages
in various subdirectories. I've setup PYTHONPATH in my bash profile with the following:
PYTHONPATH = /usr/local/lib/python2.3/site-packages; export...
|
|
2 |
913 |
|
|
by rbp
There are so many excellent python resources around, post what you've found here.
|
24-Feb-2006 07:19
by rbp
|
1 |
765 |
|
|
by iota
http://www.microsoft.com/downloads/details.aspx?FamilyID=F22E51E5-B82E-4A54-9CCC-3418E0BF5639&displaylang=en
|
|
1 |
848 |
|
|
by Zombie
Ok, i have written the stuff in the python shell, what do I do now with the compiling and making it able to be run, because im a noob at programming and i was goin to make a game with some people. Is python the best to use for games with gameboy advance graphics?
|
|
3 |
1,220 |
|
|
by crystalattice
For anyone interested in the phenomenom that is Ruby on Rails but would like to play w/ Python, there is TurboGears.
For those who don't know, RoR is a way to create dynamic, database driven web apps. It allows for rapid web development with less code than traditional methods such as...
|
22-Feb-2006 04:08
by rbp
|
5 |
1,291 |
|
 |
by crystalattice
I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 9).
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
0 |
1,252 |
|
 |
by crystalattice
I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 8).
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
0 |
1,160 |
|
|
by crystalattice
When you want to swap numbers in C/C++, you might write something like this:
include <stdio.h>
void swap(int *i, int *j)
{
int t;
t = *i;
*i = *j;
*j = t;
|
|
0 |
4,535 |
|
|
by crystalattice
Here's a little program from O'Reilly's "Learning Python" showing how to create an addition program that takes a variable number of arguments:
def adder(*args) :
sum = args # init to arg1
for next in args :
sum = sum + next # add items 2..N
return...
|
|
2 |
1,577 |
|
|
by crystalattice
Found this link while perusing OSNews. Registration is required (it's the IBM developer section), but it's worthwhile because IBM has a lot of good programmer info in nearly every area.
Here's what the article is about:
|
|
0 |
1,126 |
|
 |
by crystalattice
I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 7).
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
0 |
1,085 |
|
 |
by crystalattice
I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 6).
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
0 |
1,154 |
|
 |
by crystalattice
I just posted a GID Community blog entitled: Beginning Python Tutorial (Part 5).
Please let me know what you think.
This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
|
|
0 |
1,375 |