Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Python Programming


Installing Python on IIS 5.1  

Can someone please help me to install python on IIS 5.1?Whenever I try and open a python script, I get an error that says the script did not send the proper headers to the server and then it says the headers it did send. However, the "headers" it shows is the... Continue Reading
Views : 39
Friday 28th of December 2012

(Conway's Game of Life)  

Can someone please show me the python code for (Conway's) Game of Life so I can use it as a template to create a similar game. Continue Reading
Views : 40
Friday 28th of December 2012

What is your Definition of Pythonic  

Quote: Originally Posted by... Continue Reading
Views : 21
Friday 28th of December 2012

Sorting algorithms problem.......  

aight my assignment is to implement both quick sort and bubble sort, time them and make a graph of the change in time it takes both according to size of array/list of elements........... I have it done and it works on lists upto but not incuding lists with 100,000... Continue Reading
Views : 39
Friday 28th of December 2012

what to do really confused kinda...  

ok here's the thing... i know how my mind works and that is the only reason why i am asking this question... (right now i'm just to tired to try and search more)I'm trying to understand what you can do with python.. i just don't get it... not a negative way... Continue Reading
Views : 38
Friday 28th of December 2012

Web app idea  

I am by no means an expert Python coder, or expert any language coder.No my disclaimer is out of the way ....I want to build a web app with... Continue Reading
Views : 42
Friday 28th of December 2012

GET/POST vars in Python  

It's not that CGI is bad, but that frameworks such as CherryPy offer numerous advantages and no real disadvantages over it. Continue Reading
Views : 33
Friday 28th of December 2012

Redirecting Console Output  

I need to redirect all console output (including error messages) to a log file. There are several reasons why I would have to go out of my way to change each print statement to a call to a function. It would be much easier if there's some support in the sys library for... Continue Reading
Views : 67
Friday 28th of December 2012

Recursion: yield vs. return  

I have been learning Python for a while now. I was browsing old posts in this forum and stumbled across this thread in which Arevos posted the following code: Continue Reading
Views : 80
Friday 28th of December 2012

Never Programmed Before -- Have Task that makes me want to learn or ... die.  

(Toggle Plain Text) from urllib2 import urlopenfrom BeautifulSoup import BeautifulSoupindustry_url =... Continue Reading
Views : 26
Friday 28th of December 2012

Question: Calling other progs  

I have a question about how to have a script call other progs (ie Word, Excel) and executing them. Can anyone point me in the general direction? , I think that in Perl you use the ` ` and it executes the statement in the... Continue Reading
Views : 77
Friday 28th of December 2012

Storing filenames  

I am writing a program that needs to keep track of a large number of files on a hard drive. The files will be stored as absolute paths (eg, /path/to/file.txt). Each time it is run, it may find new files. I want to store the paths to new files as well as paths to... Continue Reading
Views : 55
Friday 28th of December 2012

Non-list comprehensions  

I know I have a lot of questions, sorry. But I was just wondering, is it possible to have a "non-list" comprehension?I saw in this post among a number... Continue Reading
Views : 36
Friday 28th of December 2012

Tailing a file  

There is a program I am working with that, attached to an external instrument, writes cryptic data to file for a few days. This data file is then run through another program which extracts the numeric data and writes it to an Excel file. If the numbers in this file... Continue Reading
Views : 43
Friday 28th of December 2012

Next: grid rotation  

Yeah, Andro, that is quite silly. Matrix math should only be used if you're doing transformations of non 90 degree intervals, or reverse transformations. Since the former is impossible to have in a nested list, it's best to stick with inverse functions/linear... Continue Reading
Views : 60
Friday 28th of December 2012

fibonacci sequence  

hi i am diving into programming and wanting to find out the amount of time it takes to execute a fibonacci sequence program. i have had past expirience with c++ so i have that code. to make sure the way the program runs is the same, i would like it if this program... Continue Reading
Views : 31
Friday 28th of December 2012

print problem  

When I print something in python with a for loop it automatically skips a line after each print, like this:012345How do I keep it from skipping a line so it outputs like this: 012345?thanks Continue Reading
Views : 32
Friday 28th of December 2012

File list to clipboard  

Python and Windows users may be interested in a small application I created to help me write technical documents. I found myself needing to place directory listings into a Word document, and, getting bored of redirecting dir in a command window, I wrote a small Python... Continue Reading
Views : 51
Friday 28th of December 2012

Printing part of a string from a list  

(Toggle Plain Text) testlist = ["Programming", "Forums"] Continue Reading
Views : 63
Friday 28th of December 2012

String formatting with tuples  

I'm having trouble printing out tuples.Say, I have a function "joker": (Toggle Plain Text) Continue Reading
Views : 44
Friday 28th of December 2012

Killing/Creating GUI windows  

Here's my question:I currently have a GUI window built in my script. When I hit my "OK" button, my script updates the necessary information in my database and kills the existing GUI window. Right now, I'd like it to update my info and kill the window, then... Continue Reading
Views : 32
Friday 28th of December 2012

Good Python IDEs  

Suggestions, anyone?I'm currently on Eclipse -- pretty OK, the only issue I have is that I can't manage to set the auto complete right. It can check for all fields and methods in that file, but not for those that I import.Thanks in... Continue Reading
Views : 31
Friday 28th of December 2012

Why OOP  

Quote: Originally Posted by... Continue Reading
Views : 71
Friday 28th of December 2012

Pacman in Python Code  

I have been working on this code and can't figure it out. I have followed this website: http://www.ibiblio.org/obp/pyBiblio/...ml/pacman.htmljust to get... Continue Reading
Views : 35
Friday 28th of December 2012

Sorting integer lists  

Im studying python and I am unsure of how to solve a problem.Im taking user input of two strings consisting of integers. I split these on whitespace into two lists, merge the lists, and sort it. My problem is that these lists are being sorted by character... Continue Reading
Views : 32
Friday 28th of December 2012

My pyguessinggame  

I am sorry I mean without IDLE. I mean from the plain old original Python command line. Right now I can run the program just by clicking it as Windows is cool like that. But I wish to know why the python command line is incappable of running the program. I... Continue Reading
Views : 39
Friday 28th of December 2012

Running python scripts on localhost  

If hello world is displayed successfully, then everything is running fine. Your other scripts must not be consistent with the working script, or still contain errors. Post the hello world script. Then post a simple script that you can't get... Continue Reading
Views : 63
Friday 28th of December 2012

help!!  

Can anyone help me out i have python on my computer and pygame (well i think i have) and at the moment am following a book on game programming... and i cannot seem to do anythin rite.... just wondered if there is any way to see if pygame is actually installed on my... Continue Reading
Views : 59
Friday 28th of December 2012

Does python have private variables in classes  

Ive been studying python for 3 days right now and upon finishing the section about classes, Ive noticed that they don't have support for private variables, but they provide support for private methods, why is that? am i right? like this Continue Reading
Views : 74
Friday 28th of December 2012

importing pictures  

I'm reading "Beginning Game Development With Python..." and during one program script it shows how i make an image the background yada yada....the line i have a question about looks like this-background_image_filename = 'sushiplate.jpg'-and it... Continue Reading
Views : 28
Friday 28th of December 2012