Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
September 9th, 2008 msquared (Administrator)
What is your OS and Python Version
263 Replies | Posted by: bartonc | Last post by YarrOfDoom, 6 days ago
For the benefit of those of us who answer questions, PLEASE REPLY in this thread with your operating system, version of python that you are using,... more »
sticky
New (Firefox)!!! Instructions for copying code from these threads (also IE)
11 Replies | Posted by: bartonc | Last post by Formula, 59 days ago
If you are using Firefox as you browser, you'll probably have discovered that the new-style tags don't allow you to copy posted code without an... more »
sticky
Regular expression/tokenizing
Post Reply? | Posted by: Linarexol | Last post by Linarexol, Today
just a quick question, does anyone know how to write a regexp for tokenization??????????? to get all email addresses and abbreviations as 1... more »
getting the last index of an array
6 Replies | Posted by: klia | Last post by klia, Today
Hi folks i am totally novice to python, that's why i have to learn it for my final year project. Any way i have been using a python module for... more »
log files
1 Reply | Posted by: cooolsson | Last post by bvdet, Today
I have this code here import string def count_and_sort(): filer = {} f = open("loggfil.txt","r") f2 = open("lab5.out","w") person =... more »
Question regarding int
1 Reply | Posted by: ncharman | Last post by bvdet, Today
x = input ("Number of Guests: ") y = input ("Number of beers: ") print "Full beers per person: " + str(float(y / x)) print "Left over beers: " +... more »
Decimal
1 Reply | Posted by: Gpappas | Last post by bvdet, Today
I want to see if a number is decimal what is the way to do it? more »
read in from file
3 Replies | Posted by: sixtyfootersdude | Last post by sixtyfootersdude, Today
Hi all, trying to write a program that will read a file in like: python myprog < inputFile the program needs to store each line a an entry in a... more »
finding filename in log file
1 Reply | Posted by: cooolsson | Last post by bvdet, Yesterday
I have a log file with this line lisa.sm.luth.se - - "GET //csee/csn/include/div.cfg HTTP/1.0" 200 447 "-" "-" I want to extract the filename... more »
Edit text file to add row numbers
6 Replies | Posted by: Boeileh | Last post by bvdet, Yesterday
Hi guys! I just arrived here on this forum, and I hope you people can help me a bit with Python. What I want is to edit a few large text files, by... more »
process monitoring in Py
Post Reply? | Posted by: nasha | Last post by nasha, 3 days ago
Hi, I am working with a test harness and I need to monitor a process. If the process isn't done in a specific alloted time, I need to abort the... more »
Input and IDLE
1 Reply | Posted by: sixtyfootersdude | Last post by Laharl, 4 days ago
Howdy, New to python and have two quick questions. I need to write a program that is executed like: python myprogram < input.txt on the command... more »
Python Compatability and Upgrading Python on Mac OS X
2 Replies | Posted by: sixtyfootersdude | Last post by sixtyfootersdude, 4 days ago
Hey, My prof just out of the blue decided that we would teach ourselves python over the weekend. I am running Mac OS X Version 10.4.10 and Python... more »
coin flip
3 Replies | Posted by: realNewbie | Last post by freddukes, 4 days ago
I am creating a python program that will flip a coin 100 times and then tells you the number of heads and tails. This is for a class I am taking, I... more »
Hangman(game) problem
1 Reply | Posted by: Netwatcher | Last post by Netwatcher, 4 days ago
i have a problem with the following (some vaiation of a word quiz game) (ignore first group of hashs) import... more »
gmpy
1 Reply | Posted by: zakad | Last post by casevh, 5 days ago
python 2.5.2 ubuntu 8.04 LTS (1) I find that python/gmpy is about 3 times slower than c++/gmp. Is this the general experience, or am I doing... more »
Need Help in Scrambling! Thank you
4 Replies | Posted by: pazzi | Last post by aberry, 5 days ago
I would like to make a code in which I scramble the words in the middle of a sentence so the first and last letter remain the same. example: The... more »
wx.Button in place of wx.Menu and wx.Notebook
Post Reply? | Posted by: sarabhjeet | Last post by sarabhjeet, 5 days ago
Hello all, I want to create a menu without using wx.Menu,shall i do this task using wx.Button.Actually wx.Menu uses the windows style so we can't... more »
line print out for sudoku solver
1 Reply | Posted by: Thekid | Last post by kaarthikeyapreyan, 6 days ago
Hi, I found this sudoku solver online and it works good but I was wondering how I could get the answer that's in matrix form, to also print out in a... more »
pySqlite cur.executescript problem
3 Replies | Posted by: OggVorbis | Last post by Strider1066, 6 days ago
Hello I'm using pySqlite and can return data using SELECT statement in SQLite ie cursor.execute ('select * from work order by name,ext') which... more »
I Need A Good Python Book
7 Replies | Posted by: tharden3 | Last post by tharden3, 7 days ago
I've tried using several online tutorials, and most of them are great, but I'd like to have a good Python book on hand. Any suggestions? One of my... more »
re-enumeration problem
Post Reply? | Posted by: markhugo | Last post by markhugo, 7 days ago
I have developed a piece of hardware that has an embedded micro-controller with usb controller. I communicate with the device via Interrupt... more »
word frequency
3 Replies | Posted by: frozz85 | Last post by bvdet, 7 days ago
I'm trying to print email address and each of their frequency on it's right by reading a text file. The counting part is correct but it prints other... more »
Encryption and Decryption from a dictionary.
5 Replies | Posted by: Netwatcher | Last post by Netwatcher, 8 days ago
well, i started messing around with dictionaries, yet, most of the pages i found about them always talk about getting only one word out of it and... more »
Troubles with file operations
3 Replies | Posted by: YarrOfDoom | Last post by YarrOfDoom, 9 days ago
I've started out on python a couple of weeks ago, and today I came to "7. Input and Output" in the python docs tutorial. So I tried some of it... more »
how to gernerate the fingerprints of a documents in python
1 Reply | Posted by: spaingermany | Last post by kudos, 10 days ago
i want to write a application for detecting near to duplicate document using rabin karp algorithm for generating fingerprint technique. please any... more »
Recognize a word from a list within a user input
8 Replies | Posted by: Netwatcher | Last post by Netwatcher, 11 days ago
Hello, i am trying to make a program that recognizes a certain word from a list (as shown below), My main problem is- how do i make something that... more »

Latest Articles: Read & Comment
Top Python Forum Contributors