Grokbase Groups Python tutor May 2005

Search Discussions

193 discussions - 777 posts

  • I seem to have lost the original link, but thanks to whoever posted the url for the python challenges. I've been working through them and they've made for a fun afternoon :) I even came up with a ...
    D. HartleyD. Hartley
    May 6, 2005 at 12:10 am
    May 11, 2005 at 3:12 pm
  • OK I am stuck on this one. I see what I need to do (correct me if I am wrong). But I need to write a script that will replace each letter by another one (In this case a -- c etc.). I look at String, ...
    John CarmonaJohn Carmona
    May 9, 2005 at 10:40 am
    May 10, 2005 at 9:11 pm
  • Hello, Let say I have several class instances in a list, and these class instances have an attribute named "value", whose value is an integer. I would like to know if it is possible to loop over the ...
    Bernard LebelBernard Lebel
    May 11, 2005 at 5:32 pm
    May 19, 2005 at 11:33 pm
  • Hello all, I've been trying to use javascript for coding something on a webpage, and I've just about given up on understanding the intricacies of why a given script will work now and not in 5 ...
    Orri GanelOrri Ganel
    May 21, 2005 at 3:03 am
    May 22, 2005 at 8:54 pm
  • Thanks I got it........finally Now I'm stucked in the riddle 6 As I understand I have to find a secret file (which I have but inside there is like 900 files) and do something with it Can someone give ...
    Alberto TroianoAlberto Troiano
    May 9, 2005 at 2:55 pm
    May 10, 2005 at 8:45 pm
  • Does anyone have a hint as to what things like this: \xaf\x82\r\x00\x00\x01\ refer to? I have googled it and searched python for modules/library sections related to the google pages I found, but as ...
    D. HartleyD. Hartley
    May 12, 2005 at 12:26 am
    May 12, 2005 at 3:06 pm
  • Hello, I am working on learning Python and writing some console applications to apply what I am learning - I am using a generator function to implement a status indicator as follows: import sys def ...
    John ClarkJohn Clark
    May 7, 2005 at 11:28 am
    May 9, 2005 at 7:01 pm
  • I know how to write a prog. But, I don't know how to plan a prog. with algorithm. If algorithm of a part of a prog. is like.. ...
    . ,. ,
    May 29, 2005 at 7:21 pm
    May 31, 2005 at 10:14 pm
  • With the help of Pujo Aji I have written this little script that print every single ASCII code S = [chr(x) for x in range (0,256)] for x in S: print x, The next step is to use the built-in functin ...
    John CarmonaJohn Carmona
    May 25, 2005 at 11:47 pm
    May 28, 2005 at 9:59 am
  • I've often found it convenient to run a Python program I'm developing with the -i flag. I find it convenient to use as a post-mortem as it hits bugs, or to explore data structures. I've recently ...
    Terry CarrollTerry Carroll
    May 17, 2005 at 5:32 pm
    May 20, 2005 at 9:56 am
  • Good morning, I came across a rather odd issue with scoping. Can someone explain why testa and testc works, but not testb. I am running under python 2.4.1 on Windows NT. thanks, Michael x = 5 def ...
    Michael Coll-BarthMichael Coll-Barth
    May 7, 2005 at 1:56 pm
    May 9, 2005 at 8:45 pm
  • Hey I'm working on Python 2.2 over Linux REd Hat 9.0 and here is the code I have import os import sys import MySQLdb import datetime import time class conexion(object): def __init__(self): self.db = ...
    Alberto TroianoAlberto Troiano
    May 17, 2005 at 1:36 pm
    May 19, 2005 at 12:48 pm
  • Hi list. I want to make a program to lock folders (so the user can only access them if he knows the password) under win32, the only problem is that I have no idea how to start or what to do. Do you ...
    Mark KelsMark Kels
    May 26, 2005 at 12:00 pm
    Sep 4, 2005 at 2:37 pm
  • I can't get: import wave as w def manipulate(): manipulate = raw_input("Type 'help' for help\nManipulate ") if manipulate == "play": w.tell() elif manipulate == "back()": main_menu() def open(): ...
    Joseph QuigleyJoseph Quigley
    May 24, 2005 at 1:49 am
    May 26, 2005 at 8:08 am
  • And just in case anyone *isnt* working on the riddles....: anyone have a pointer to a *SIMPLE* intro to xml as used in python? I looked in the library and there are about 11 xml-related modules. ...
    D. HartleyD. Hartley
    May 24, 2005 at 9:59 pm
    May 25, 2005 at 7:55 am
  • Version 0.8.5 of rur-ple has been released. The web site has completely changed; it includes over 35 pages. -------------------------------------- Learning to program ...
    André RobergeAndré Roberge
    May 10, 2005 at 3:48 am
    May 11, 2005 at 12:36 am
  • As seen on python-announce (via Dr Dobbs): Good fun! -- John. [currently on riddle 6]
    May 4, 2005 at 11:53 pm
    May 9, 2005 at 12:03 am
  • Hey all This is the program I need to do and I haven't been able to figure out photos all the time. The user configure his recording time and then a daemon has to check for the photos that does not ...
    Alberto TroianoAlberto Troiano
    May 2, 2005 at 9:36 pm
    May 4, 2005 at 3:18 pm
  • hello Restore internal state from object returned by getstate(). my question is " how can i loop through all the methods in a module and print out their '__doc__' content ? print ...
    Johan Meskens CS3 jmcs3Johan Meskens CS3 jmcs3
    May 27, 2005 at 11:46 am
    May 27, 2005 at 5:47 pm
  • I'm running an application that has a polling loop to check a serial port for certain signals, and on my laptop I can get about 6700 samples per second, which (of course) consumes 100% CPU; which may ...
    Roger MerchbergerRoger Merchberger
    May 23, 2005 at 10:46 pm
    May 26, 2005 at 9:52 pm
  • Is there a way to create an empty function definition with no lines of code in it? In my coding style I will often do this ( in other languages ) for RAD just to remind myself that I will need to ...
    Gooch, JohnGooch, John
    May 26, 2005 at 3:42 pm
    May 26, 2005 at 9:07 pm
  • I need to print all the ASCII characters within a string, how would I delimit for example to print the first 100 only? Many thanks JC
    John CarmonaJohn Carmona
    May 24, 2005 at 9:10 am
    May 24, 2005 at 6:40 pm
  • Does anyone know of a Python debugger that will run under OSX 10.4? The Eric debugger was looked at, but it's highly unstable under Tiger. Thanks. -MH An HTML attachment was scrubbed... URL: ...
    Mike HallMike Hall
    May 18, 2005 at 7:15 pm
    May 19, 2005 at 5:27 pm
  • Hello list How do I read the comments attached to a zipfile or for any file .?
    Servando GarciaServando Garcia
    May 28, 2005 at 3:53 pm
    Jun 15, 2005 at 6:39 pm
  • Hello Is there a increment operator in python similar to c++ like so "SomeVariable++"
    Servando GarciaServando Garcia
    May 28, 2005 at 3:25 am
    May 28, 2005 at 6:54 pm
  • An HTML attachment was scrubbed... URL:
    Mohammad MohiuddinMohammad Mohiuddin
    May 25, 2005 at 4:43 pm
    May 28, 2005 at 8:34 am
  • Good evening! I am trying to pass a number variable and have it converted to hex. Any recommendations on how to achieve this? Thank you. FAILS ---------- Traceback (most recent call last): File ...
    Tom TuckerTom Tucker
    May 25, 2005 at 2:56 am
    May 25, 2005 at 2:04 pm
  • Hello, I am having trouble with passing variables between frames (Frame1 and Dialog1). I'm using wxpython to write an application. when I run my application the parent frame appears and within the ...
    Jeff PeeryJeff Peery
    May 23, 2005 at 10:00 pm
    May 25, 2005 at 3:00 am
  • I'm making a program that opens a file and tries to find the word you specify. I can't get it to find the word! I also would like to know how I can get it to print 2 lines above and 2 lines below the ...
    Joseph QuigleyJoseph Quigley
    May 18, 2005 at 1:19 pm
    May 19, 2005 at 5:27 pm
  • Hello, I'm stuck on part 8 of the Python Challenge. To solve it, I want to feed 2 pieces of data to a Python module. I get those pieces by reading the webpage source, and then splitting it on "'", ...
    Pieter LustPieter Lust
    May 18, 2005 at 1:04 pm
    May 19, 2005 at 11:20 am
  • I'm working on a Python development project which spans multiple people. We are all working on Windows and using the PyWin IDE. Our code is revision controlled using Perforce. Already we had one ...
    Smith, JeffSmith, Jeff
    May 17, 2005 at 1:35 pm
    May 18, 2005 at 10:27 pm
  • Is there a more Pythonic way to get the Perl equivalent of $#var other than len(var) - 1 Thanks, Jeff
    Smith, JeffSmith, Jeff
    May 17, 2005 at 9:00 pm
    May 18, 2005 at 5:47 pm
  • Hey Another problem Here is an example of what I want to do: I run over Linux shell the following command: [root at siseg root]# fec=cam`date +%Y%m%d%H%M%S`.jpg [root at siseg root]# echo $fec ...
    Alberto TroianoAlberto Troiano
    May 13, 2005 at 8:03 pm
    May 17, 2005 at 7:27 am
  • Suppose I have several variables, e.g.: a, b, c, d, e, f, g. I would like to be able to see if they're all the same, I don't care what the value is, as long as they're equal. If they're all equal to ...
    Terry CarrollTerry Carroll
    May 15, 2005 at 5:54 am
    May 16, 2005 at 8:26 pm
  • Hi, i am a Biology student taking some early steps with programming. I'm currently trying to write a Python script to do some simple processing of a gene sequence file. A line in the file looks like: ...
    May 13, 2005 at 7:36 pm
    May 16, 2005 at 12:03 pm
  • Hello- I have been asked to write an article for the IEEE "IT Pro" magazine dealing with using Python in the medical field. The editors asked for about half the article dealing with using Python and ...
    Greg LindstromGreg Lindstrom
    May 13, 2005 at 12:52 pm
    May 13, 2005 at 8:06 pm
  • MyText = open('The_text.txt','r').read() In the above line could someone tell me what the 'r' stand for. Many thanks JC
    John CarmonaJohn Carmona
    May 11, 2005 at 4:50 pm
    May 11, 2005 at 10:20 pm
  • Thanks to the many hints from the list I have made it to level four, of the python challenges. Many thanks to all. I truly have been looking for a solid example to follow on the use of the URL ...
    Servando GarciaServando Garcia
    May 10, 2005 at 6:37 pm
    May 11, 2005 at 1:17 am
  • Hello, everyone! I know you didn't expect to hear from me anymore about these pesky challenges, since I started the off-tutor list about it, but I'm afraid I'm stuck and cannot get a hint. If I want ...
    D. HartleyD. Hartley
    May 31, 2005 at 9:11 pm
    Jun 1, 2005 at 5:58 pm
  • One of my favourite unix applications is wget. Thinking how easy (and fun) it might be to implement with pythons excellent librairies has led me to a few questions. First, I found the progress bar ...
    Aaron ElbazAaron Elbaz
    May 27, 2005 at 10:40 pm
    May 29, 2005 at 3:00 am
  • Hi, I have to write a function that will return the index of a line like this: gvcdgvcgdvagTVTVTVTVTVTHUXHYGSXUHXSU where it first becomes capital letters. I've had about a hundred different ideas of ...
    May 26, 2005 at 7:15 pm
    May 26, 2005 at 9:54 pm
  • short version: I need a way to get max and min E and N out of [(E0,N0),(E1,N1)...(En,Nn)] without reordering the list long version: I would like a list of geographic coordinates (Easting, Northing) ...
    Ron PhillipsRon Phillips
    May 25, 2005 at 1:03 pm
    May 26, 2005 at 11:22 am
  • Hi, How to know all the exceptions that there are? (i.e. OSError, ImportError) And all error messages of each exception? (i.e. err_o.strerror, err_o.filename) Thanks in advance!
    Jonas MelianJonas Melian
    May 25, 2005 at 10:31 am
    May 25, 2005 at 12:49 pm
  • Hi all, I have to working with the files lines in this directory: ::: dir_locales = "/usr/share/i18n/locales/" for line in fileinput.input(glob.glob(os.path.join\ (dir_locales, "*_[A-Z][A-Z]"))): ... ...
    Jonas MelianJonas Melian
    May 24, 2005 at 2:02 pm
    May 24, 2005 at 3:39 pm
  • Hi all, Any one know how to make a shutdown, restart, logoff call in windows os like 98, 2000 and xp? Implemented in python, can use python win32 extensions. But not os.system('rundll/shutodwn ...'). ...
    Shidai LiuShidai Liu
    May 22, 2005 at 11:21 pm
    May 24, 2005 at 11:56 am
  • I've seen many (python) "plugins" (some located in site-packages [windows here]) with the name What's their use? class foo: def __init__: print "this starts first" def foo1(): print ...
    Joseph QuigleyJoseph Quigley
    May 22, 2005 at 11:54 pm
    May 23, 2005 at 7:14 am
  • Hi I've asked a similar question before, but still I have to admit that I didn't find a solution with this particular problem here: Imaging you have a class with a certain __init__ function like: ...
    Christian MeestersChristian Meesters
    May 20, 2005 at 8:22 am
    May 21, 2005 at 10:29 am
  • When I am open()-ing a file, I sort of expect that if the file doesn't exist that it would be created, but it doesn't, it whines about it instead. So, how do I create a file with Python? I've looked ...
    William O'HigginsWilliam O'Higgins
    May 20, 2005 at 6:45 pm
    May 20, 2005 at 11:41 pm
  • I'm trying to make an RPG game which is only consisted of texts. But, it doesn't work! thanks. ...
    . ,. ,
    May 20, 2005 at 11:56 am
    May 20, 2005 at 3:41 pm
  • I am using the online book Dive Into Python. I ran the first program given and have run into an error on line 7 at the colon. Now I imagine that there is probably a corrections page at the site, but ...
    Chelan FarsightChelan Farsight
    May 19, 2005 at 9:18 pm
    May 20, 2005 at 1:07 pm
Group Navigation
period‹ prev | May 2005 | next ›
Group Overview
grouptutor @

132 users for May 2005

Kent Johnson: 64 posts Danny Yoo: 52 posts Alan Gauld: 50 posts Max Noel: 44 posts Alberto Troiano: 36 posts Jfouhy: 34 posts D. Hartley: 30 posts Terry Carroll: 25 posts Jonas Melian: 20 posts Liam Clarke: 19 posts Andrei: 17 posts Bernard Lebel: 17 posts John Carmona: 17 posts William O'Higgins: 16 posts Roel Schroeven: 14 posts Joseph Quigley: 13 posts . ,: 12 posts Chris Smith: 11 posts Lee Harr: 10 posts Bob Gailer: 9 posts
show more