Search Discussions

187 discussions - 794 posts

  • If anyone will help me learn file I/O, it would be appreciated. I went through Josh Cogliani's Non-Programmer's Tutorial for Python, and I still can't understand it. Thanks in advance, Nathan Pinno ...
    Nathan PinnoNathan Pinno
    Jul 31, 2005 at 3:49 am
    Aug 4, 2005 at 1:49 am
  • Hi all, I am a Europa Universalis II freak, and in attempting to recreate a lost saved game, I had to delve into the mechanics of the save game file. Which, luckily, is plain text. It's formatted ...
    Liam ClarkeLiam Clarke
    Jul 18, 2005 at 11:24 am
    Jul 26, 2005 at 1:37 pm
  • I'm going to be doing some work where I'll be doing existence testings on keys on about a million records where it may require multiple passes so I'm a bit concerned about the timing of these tests. ...
    Bill CampbellBill Campbell
    Jul 17, 2005 at 6:18 pm
    Aug 1, 2005 at 9:32 pm
  • How do I make Python draw a shape? e.g. a triangle Is there a specific module that I have to call, or what is the command(s)? Thanks, Nathan Pinno P.S. Knowing this will help me make my shape_calc ...
    Nathan PinnoNathan Pinno
    Jul 27, 2005 at 7:03 pm
    Jul 29, 2005 at 6:20 pm
  • This is a bit OT but here goes. My work wants me to write a fairly large python script to analyze some technical ASCII data files. Python and its libraries are GPL. That being the case am I right in ...
    Dave SDave S
    Jul 12, 2005 at 9:49 am
    Jul 14, 2005 at 10:51 am
  • Hi all, a bit off topic for Python Tutor, but I am think there are decent odds that folks here both know good resources and have an idea of what level would be appropriate for me. So, I hope no one ...
    Brian van den BroekBrian van den Broek
    Jul 1, 2005 at 11:43 pm
    Jul 3, 2005 at 11:20 pm
  • Hello, I have a signal that I want to do a fourier transform on. I tried using FFT.fft(data).real but I don't understand the output. what is output from this function, and why doesn't it require ...
    Jeff PeeryJeff Peery
    Jul 29, 2005 at 6:44 pm
    Aug 3, 2005 at 4:27 pm
  • hey guys, so I've been trying to get my head around the try except statement in Python, and ideally what I'd like is for my procedural program, when it runs through its steps and encounters an error, ...
    Jul 28, 2005 at 5:45 pm
    Aug 1, 2005 at 10:57 pm
  • Hi, Seems to me as very unuseful thing in this phorum, when I choose Replay to any message, the field "to whom or Receiver" is all the time not tutor at python.org but the original sender! Why? I can ...
    Jul 18, 2005 at 8:40 pm
    Jul 19, 2005 at 3:05 pm
  • Hi all, Why does invalid syntax popup? Here is the latest code: # This is the code for a password protected program to store passwords. password = "hello" print "The Password Program" print ...
    Nathan PinnoNathan Pinno
    Jul 7, 2005 at 5:43 pm
    Jul 8, 2005 at 9:16 pm
  • Hello, A simple question: what is the syntax in a try/except for the OLE error? Let say you want to catch OLE error: try: print stuff except OLEError: print 'ole' Now the problem is that I just can't ...
    Bernard LebelBernard Lebel
    Jul 14, 2005 at 1:43 pm
    Jul 15, 2005 at 2:27 pm
  • I'm confused. I was just reading the URL below.. http://jaynes.colorado.edu/PythonGuidelines.html and this statement confused me: "Always use from module import Name, Name2, Name3.. syntax instead of ...
    Mike HansenMike Hansen
    Jul 11, 2005 at 4:12 pm
    Jul 13, 2005 at 5:56 am
  • Hi all, Im on the Tkinter GUI learning curve :-) . Its going quite well - im reading O'reilly 'programming python' but I am unclear on the following I understand the standard form ie ... root = Tk() ...
    Dave SDave S
    Jul 13, 2005 at 11:28 am
    Jul 14, 2005 at 10:27 pm
  • What's wrong with this code? I'm using 2.2.3 if this helps. #This is for a password protected program to store passwords. password = "hello" print "The Password Program" print "Copywrite 2005. All ...
    Nathan PinnoNathan Pinno
    Jul 5, 2005 at 12:30 am
    Jul 7, 2005 at 10:57 am
  • I've got a little problem with my socket program(s): #Client import socket #create an INET, STREAMing socket s = socket.socket( socket.AF_INET, socket.SOCK_STREAM) s.connect(("localhost", 2000)) ...
    Joseph QuigleyJoseph Quigley
    Jul 31, 2005 at 3:42 am
    Aug 1, 2005 at 8:34 pm
  • When I run the following code it just keeps repeating. Here is a screen shot showing what I mean: Mini Calculator By Nathan Pinno CALCULATE MENU 1) Add 2) Subraction 3) Multiplication 4) Division w/o ...
    Nathan PinnoNathan Pinno
    Jul 31, 2005 at 1:55 am
    Jul 31, 2005 at 2:58 pm
  • Terry and all, I thought something like this might popup. I find it easier to remember and faster to code than int(raw_input()). The faster I can code a program, the better in my opinion. So what if ...
    Nathan PinnoNathan Pinno
    Jul 18, 2005 at 7:20 am
    Jul 28, 2005 at 12:16 am
  • Hey there, i have a script that i am trying to use to add a record to a MySQL database. i keep getting a syntax error. this works cursor.execute("INSERT INTO Table ( numberone ) VALUES ( 'one');") ...
    Jul 18, 2005 at 7:13 pm
    Jul 19, 2005 at 8:55 am
  • Hi all, Is the subject possible without getting an error? Nathan Pinno Crew, McDonalds Restaurant, Camrose, AB Canada http://www.npinnowebsite.ca/ An HTML attachment was scrubbed... URL: ...
    Nathan PinnoNathan Pinno
    Jul 9, 2005 at 11:03 pm
    Jul 10, 2005 at 8:03 am
  • Anyone have a good (*simple*) tutorial on making/sending cookies via python? (i.e., not receiving/messing with them). Thanks :) ~Denise
    D. HartleyD. Hartley
    Jul 1, 2005 at 10:58 pm
    Jul 6, 2005 at 4:41 am
  • hey there i have a file that i want to read. each line in the file is the name of a file. the next line is how many lines are in that file. example of loglist.txt log1.txt 232 log2.txt 332 log3.txt ...
    Jul 3, 2005 at 3:41 am
    Jul 4, 2005 at 2:23 pm
  • Hi all, I wrote a few small applications, couple hundred of lines each and one of them playing around with tkinter. Now py2exe leaves 10 or so files of all sorts and one executable to "distribute", ...
    Jorge Louis De CastroJorge Louis De Castro
    Jul 31, 2005 at 12:31 am
    Aug 1, 2005 at 7:05 am
  • What the invalid syntax? Here is the error message: SyntaxError: invalid syntax File "D:/Python22/grades.py", line 66 which = which-1 ^ SyntaxError: invalid syntax Here is the code: max_points = ...
    Nathan PinnoNathan Pinno
    Jul 31, 2005 at 11:38 pm
    Aug 1, 2005 at 12:26 am
  • ... def __init__(self, blank=False, editable=True, name='foo'): ... self.blank = blank ... self.editable = editable ... self.name = name ... (False, True, 'foo') All as expected. Now I want that ...
    Negroup -Negroup -
    Jul 28, 2005 at 2:48 pm
    Jul 28, 2005 at 6:01 pm
  • Hi, I was wondering if someone knowledgeable of both Tcl and Python could suggest whether it would be a good or a bad idea to write a Python/Tk application, with the motive to rewrite the application ...
    Luis NLuis N
    Jul 16, 2005 at 8:19 am
    Jul 19, 2005 at 8:00 am
  • This doesn't work. Not an error though. :) What I'm trying to do is get the text value of a label. def icon_click(self, event=None): print event.widget.option_get("text", event.widget) Or, more to ...
    Ron WeidnerRon Weidner
    Jul 14, 2005 at 6:37 pm
    Jul 15, 2005 at 4:31 pm
  • Hello, everyone! I am trying to figure out what a palette actually is, how it works, and what PIL's "putpalette()" does with a given data set (it has to be a string, I believe). PIL's documentation ...
    D. HartleyD. Hartley
    Jul 13, 2005 at 11:11 pm
    Jul 15, 2005 at 6:18 am
  • I am writing a small program to speed up the efficiency of me on my home linux machine. I need it to communicate serveral times to the bash shell to issue and retrieve info. I took a guess and tryed ...
    Mike PindzolaMike Pindzola
    Jul 13, 2005 at 12:12 am
    Jul 15, 2005 at 1:51 am
  • Hi first off, here's my code: # -*- coding: utf-8 -*- from Tkinter import * import random import time import about import quotes def closeprog(): raise SystemExit class main: root = Tk() frame = ...
    Joseph QuigleyJoseph Quigley
    Jul 11, 2005 at 5:22 pm
    Jul 13, 2005 at 10:54 pm
  • just assume all the below code is correct. I am not having a problem with it, it is all for example only. I have a dictionary like this: alpha = {'a':0,'b':0, ... 'z':0} and the following code f = ...
    Luke pLuke p
    Jul 8, 2005 at 11:40 pm
    Jul 9, 2005 at 1:18 am
  • I have a function def updateit(self,**mydict): which is intended to update a dictionary self.somedict. If there are keys in mydict that are not in self.somedict I want them returned in a new dict. ...
    David DriverDavid Driver
    Jul 7, 2005 at 3:33 pm
    Jul 8, 2005 at 11:33 pm
  • Hi there I wrote a recursive function a got this error how can I increase maximum recursion depth. And what is its default value? -- Mohammad do you Python?!!
    Mohammad MoghimiMohammad Moghimi
    Jul 7, 2005 at 10:24 am
    Jul 8, 2005 at 4:32 pm
  • Hi all, Here's one of the messages that pops up: Traceback (most recent call last): File "D:\password.py", line 77, in ? filename == raw_input("Filename to load: ") NameError: name 'filename' is not ...
    Nathan PinnoNathan Pinno
    Jul 7, 2005 at 6:54 am
    Jul 7, 2005 at 10:51 am
  • How do I add an argument too my program (with sys.argv) so that at a console I can type: python foo.py -info or python foo.py open /home/joe/foo.txt Thanks, Joe
    Joseph QuigleyJoseph Quigley
    Jul 18, 2005 at 5:38 pm
    Aug 3, 2005 at 11:06 am
  • Hi All, Is there a command like more(1) or less(1) in python to display the output of a command (e.g. dir()) one page at a time? Thanks Hossein
    Hossein MovahhedianHossein Movahhedian
    Jul 18, 2005 at 9:02 am
    Jul 25, 2005 at 10:56 pm
  • Hello, I'm trying to bind an event to the changes made to an OptionMenu. Ie the user chooses a different item, the rest of the Tk window gets updated. To repopulate the window, a function would be ...
    Bernard LebelBernard Lebel
    Jul 21, 2005 at 4:19 pm
    Jul 23, 2005 at 9:20 pm
  • Hey there, i am trying to get an email through an SMTP server on a windows computer from a linux machine on the same network. {} but nothing goes through, now if i do this... i get this Traceback ...
    Jul 20, 2005 at 4:55 pm
    Jul 22, 2005 at 5:32 am
  • Hello, Not sure if it's a Python thing, but... When sending command to the MySQL server by command line, I can use SHOW COLUMNS FROM <tablename , the list of all columns with a bunch of properties is ...
    Bernard LebelBernard Lebel
    Jul 19, 2005 at 8:13 pm
    Jul 20, 2005 at 7:04 am
  • Hi, I am sending and receiving for a simple server application over wirless link. Can I get the signal strength of the received packet in Python? One way would be to get the value of the RSSI from ...
    Sunny sunnySunny sunny
    Jul 19, 2005 at 5:17 pm
    Jul 20, 2005 at 6:30 am
  • hello all I am trying to write a script in python that parses a gzipped logfile the unzipped logfiles can be very large ( 2GB) basically the statements file = gzip.GzipFile(logfile) data = ...
    Frank h.Frank h.
    Jul 19, 2005 at 2:15 pm
    Jul 19, 2005 at 9:02 pm
  • Hello List I am working on creating a Domain Specific Language that will solve partial differential equations. The user will enter a equation in pseudo code format. I will need to parse the equation. ...
    Servando GarciaServando Garcia
    Jul 14, 2005 at 8:41 pm
    Jul 18, 2005 at 8:04 am
  • From a python program, I want to delete certain files that are older than x days old. To get the time that the file was last modified, it looks like I need to use os.path.getmtime(path). This gives ...
    Mike HansenMike Hansen
    Jul 13, 2005 at 4:54 pm
    Jul 13, 2005 at 10:10 pm
  • Here is the error message: Traceback (most recent call last): File "D:\GC.py", line 67, in ? if option == 1: NameError: name 'option' is not defined And the relevant code: print "The Giant ...
    Nathan PinnoNathan Pinno
    Jul 10, 2005 at 3:07 am
    Jul 11, 2005 at 7:55 am
  • Hello, Any ideas how I can use Python and the Windows API to open a PC's mail client and send an attachment? The idea is saving some data onto a file and then invoke the email client (OE or Outlook ...
    Jorge Louis De CastroJorge Louis De Castro
    Jul 21, 2005 at 12:43 pm
    Aug 1, 2005 at 11:17 am
  • You can do this with the translate() method of a string. It is a two-step process. First you have to make a translation table that defines the translation. Do this with string.maketrans(): Next use ...
    Kent JohnsonKent Johnson
    Jul 31, 2005 at 7:46 pm
    Jul 31, 2005 at 10:08 pm
  • O.k., I'm running SUSE Linux 9.2, Python 2.3.4, I have changed my DB back-end from MySQL to Postgres for the larger feature set. However, in attempting to load the pgdb module for use in my script, I ...
    Don ParrisDon Parris
    Jul 27, 2005 at 2:13 pm
    Jul 28, 2005 at 11:35 pm
  • How do I split the list members up in the following code? What am I forgetting? lista = [] listb = [] lista = raw_input("Enter lista, separated by commas: ") listb = raw_input("Enter listb, separated ...
    Nathan PinnoNathan Pinno
    Jul 27, 2005 at 11:17 pm
    Jul 28, 2005 at 12:40 am
  • Hi all, How do I go about the following: I want to write a program that will print two lists one after another, then show all the available possibilities for matches e.g a0 and x0. Here is what I ...
    Nathan PinnoNathan Pinno
    Jul 27, 2005 at 7:22 pm
    Jul 27, 2005 at 9:13 pm
  • Hello, Is there a way of creating a Windows .exe from a .py file that does not involve unzipping several files onto a folder? Does someone know of a program that wraps all the files needed into one ...
    Jorge Louis De CastroJorge Louis De Castro
    Jul 20, 2005 at 10:20 pm
    Jul 24, 2005 at 3:30 pm
  • is this where i send my questions??
    Dina lenningDina lenning
    Jul 20, 2005 at 10:48 pm
    Jul 22, 2005 at 2:33 am
Group Navigation
period‹ prev | Jul 2005 | next ›
Group Overview
grouptutor @

151 users for July 2005

Nathan Pinno: 78 posts Alan G: 74 posts Danny Yoo: 73 posts Kent Johnson: 56 posts Jfouhy: 31 posts Liam Clarke: 28 posts Brian van den Broek: 24 posts Bernard Lebel: 20 posts Alberto Troiano: 14 posts Nephish: 14 posts Luis N: 12 posts Michael Lange: 11 posts D. Hartley: 10 posts Don Parris: 10 posts Geon: 9 posts Jorge Louis De Castro: 9 posts Paul McGuire: 9 posts Adam Bark: 7 posts Byron: 7 posts Luke p: 7 posts
show more