FAQ

Search Discussions

663 discussions - 4,203 posts

  • Of interest: ? Why Can't You Be Normal? http://xahlee.org/Netiquette_dir/why_cant_you_be_normal.html ? Ban Xah Lee http://xahlee.org/Netiquette_dir/ban_Xah_Lee.html I consider this post relevant ...
    Xah LeeXah Lee
    Mar 7, 2009 at 10:52 pm
    Sep 1, 2009 at 3:18 pm
  • Hi everybody, while testing a module today I stumbled on something that I can work around but I don't quite understand. True True True # all good so far False # eeeeek! Why c and d point to two ...
    Emanuele D'ArrigoEmanuele D'Arrigo
    Mar 6, 2009 at 7:17 pm
    Mar 14, 2009 at 2:20 pm
  • Very simple question on the preferred coding style. I frequently write classes that have some data members initialized to immutable values. For example: class Test(object): def __init__(self): ...
    Maxim KhitrovMaxim Khitrov
    Mar 14, 2009 at 4:32 pm
    Mar 31, 2009 at 2:52 pm
  • If anyone here is interested, here is a proposal I posted on the python-ideas list. The idea is to make numbering formatting a little easier with the new format() builtin in Py2.6 and Py3.0: ...
    Raymond HettingerRaymond Hettinger
    Mar 12, 2009 at 7:30 am
    Mar 22, 2009 at 5:04 pm
  • Hi I hope I won't sound trivial with asking my question. I am a C++ programmer and I am thinking of learning something else because I know second language might be very helpful somehow. I have heard ...
    ZikOZikO
    Mar 9, 2009 at 10:43 am
    Mar 22, 2009 at 3:39 am
  • Hi all - I have succeeded in building Python 2.6.1 from source under Windows XP by running Visual C++ 2008 Express on the PCbuild/pcbuild.sln file both from the Visual C++ application as well as from ...
    Dan Erik PetersenDan Erik Petersen
    Mar 6, 2009 at 8:52 am
    Mar 12, 2009 at 10:21 pm
  • I am using Python 2.5, and I would like to write a decorator (or using some other elegant, declarative approach) to mangle the name of function in a class. I would like to be able to have two methods ...
    AdamAdam
    Mar 17, 2009 at 4:35 pm
    Apr 3, 2009 at 1:11 pm
  • Hi All, I'm fairly new to Python so I still have a lot to learn. But I'd like to know how to correectly use relative imports. Please, please... please! don't go off on rants about why you think ...
    CinnamonDonkeyCinnamonDonkey
    Mar 23, 2009 at 2:16 pm
    Apr 1, 2009 at 3:25 am
  • I'm an experienced C/Java/Perl developer learning Python. What's the canonical Python way of implementing this pseudocode? String buf File f while ((buf=f.read(10000)).length() 0) { do something.... ...
    Jim GarrisonJim Garrison
    Mar 17, 2009 at 10:04 pm
    Mar 21, 2009 at 4:25 pm
  • I've written a short post on including support for configuration down at the language level, including a small preliminary half-functional example of what this might look like in Python, available at ...
    JfagerJfager
    Mar 30, 2009 at 1:40 pm
    Apr 2, 2009 at 3:13 am
  • Hi, As our resident python advocate, I've been asked by my team leader to give a bit of a presentation as an introduction to python to the rest of our department. It'll be less than an hour, with ...
    Paddy O'LoughlinPaddy O'Loughlin
    Mar 26, 2009 at 9:35 am
    Apr 2, 2009 at 10:16 pm
  • I have a date in the form of a datetime object and I want to add (for example) three months to it. At the moment I can't see any very obvious way of doing this. I need something like:- myDate = ...
    TinnewsTinnews
    Mar 15, 2009 at 5:28 pm
    Mar 16, 2009 at 9:08 pm
  • Hello all, I am wondering if anyone is using python to write script files? Right now I have a bigg'ish bash/tcsh script that contain some grep/awk command plus various files are processed and ...
    EsmailEsmail
    Mar 21, 2009 at 1:26 pm
    Mar 25, 2009 at 12:34 pm
  • When we say readability counts over complexity, how do we define what level of complexity is ok? For example: Say I have dict a = {'a': 2, 'c': 4, 'b': 3} I want to increment the values by 1 for all ...
    KottiyathKottiyath
    Mar 18, 2009 at 5:30 pm
    Mar 28, 2009 at 10:11 pm
  • Hi all, This might be trivial ... Can someone suggest a easy method to do the inverse of dict(zip(x,y)) to get two lists x and y? So, if x and y are two lists, it is easier to make a dictionary using ...
    Lone_eagleLone_eagle
    Mar 4, 2009 at 10:02 am
    Mar 6, 2009 at 1:28 pm
  • Hello, I am new to using Python and am looking at exporting some of my code into a seperate document. The code I am using for the pickle is: file = open('testdoc.txt', 'w') ...
    Fab86Fab86
    Mar 3, 2009 at 9:52 am
    Mar 5, 2009 at 6:02 pm
  • For ex:?to check list 'A' is empty or not.. if A == []: if A.count == 0: if len(A) == 0: if not A: Connect with friends all over the world. Get Yahoo! India Messenger at ...
    Srinivasan srinivasSrinivasan srinivas
    Mar 25, 2009 at 2:26 pm
    Mar 26, 2009 at 7:27 am
  • Hi, 'dfdfdgagdfgdf\ngdgfadgagadg\nagafg\n\nfs\nf\nsadf\n\nsdfsdfsadf\n' './mango.txt_snaps/snap1/0' The above code works fine and it reads the whole file till EOF. But when this method is used in a ...
    Sreejith KSreejith K
    Mar 20, 2009 at 6:36 am
    Mar 24, 2009 at 12:20 pm
  • Here's a new, fun recipe for you guys: http://code.activestate.com/recipes/576694/ Enjoy, Raymond
    Raymond HettingerRaymond Hettinger
    Mar 19, 2009 at 9:26 pm
    Mar 31, 2009 at 5:33 pm
  • Hi. So now I have this class that works to allow me to pass in my reg_info struct. However when I try to make it part of my class it gets an error "global name 'self' is not defined. I've never seen ...
    Mark SeagoeMark Seagoe
    Mar 30, 2009 at 4:18 am
    Mar 31, 2009 at 12:57 am
  • I'm a complete newbie to GUI. I have a couple questions about tkinter. 1. Where is the list of changes in Python 3's tkinter? 2. What exactly is the role of the root object, traditionally created as ...
    Alan G IsaacAlan G Isaac
    Mar 28, 2009 at 7:15 pm
    Mar 30, 2009 at 4:25 pm
  • I'm doing this in my code, how to make it define all this functions for me with lambda, I've been up for a while and cant seem to figure it out, whats the most efficient way to do it? with lambda? ...
    Alex goretoyAlex goretoy
    Mar 14, 2009 at 10:40 pm
    Mar 25, 2009 at 11:11 pm
  • Hi everyone, I'm new to python and I want to create some simple code in order to code the classical genetic algorithm example: given a population of chromosomes, encoded using 1 and 0, find the ...
    MattiaMattia
    Mar 4, 2009 at 6:02 pm
    Mar 19, 2009 at 11:55 am
  • Is it possible to make a GUI email program in Python that stores emails, composes, ect?
    JJ
    Mar 1, 2009 at 1:50 am
    Mar 8, 2009 at 7:38 pm
  • Hey, I'm retrieving records from MySQL database that contains non english characters. Then I create a String that contains HTML markup and column values from the previous result set. +++++ markup = ...
    Hussein BHussein B
    Mar 1, 2009 at 1:31 pm
    Mar 27, 2009 at 11:17 am
  • The Python home page no longer sports a promotion from NASA. What happened, did we lose NASA. Where did they go?
    RR
    Mar 12, 2009 at 2:40 am
    Mar 19, 2009 at 7:18 pm
  • I'm an experienced Perl developer learning Python, but I seem to be missing something about raw strings. Here's a transcript of a Python shell session: Python 3.0 (r30:67507, Dec 3 2008, 20:14:27) ...
    Jim GarrisonJim Garrison
    Mar 12, 2009 at 5:59 pm
    Mar 17, 2009 at 8:07 am
  • I'm looking at some Tk code written by someone else, and am curious about a methodology in the code. A setup object called SetDlg contains to code to set up parameters for some widgets for a dialog ...
    W. eWatsonW. eWatson
    Mar 9, 2009 at 2:34 am
    Mar 13, 2009 at 7:40 am
  • Hi, I'm new to python, and as the title says, can I improve this snippet (readability, speed, tricks): def get_fitness_and_population(fitness, population): return [(fitness(x), x) for x in ...
    MattiaMattia
    Mar 6, 2009 at 10:19 am
    Mar 8, 2009 at 7:02 am
  • Hi Folks, I wonder that does Python have certificate? You see, java, .NET, PHP, and so on, they have certificates for developers to get. Python is quite popular nowadays, I wonder is there such a ...
    Muddy CoderMuddy Coder
    Mar 24, 2009 at 12:15 am
    Apr 1, 2009 at 7:41 am
  • Python 2.5.1 (r251:54863, Oct 30 2007, 13:45:26) [GCC 4.1.2 20070925 (Red Hat 4.1.2-33)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call ...
    Daniel FetchinsonDaniel Fetchinson
    Mar 10, 2009 at 3:07 am
    Mar 12, 2009 at 6:06 am
  • Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is ...
    BruceBruce
    Mar 1, 2009 at 5:46 am
    Mar 3, 2009 at 2:53 pm
  • I've been working on a program that will talk to an embedded device over the serial port, using some basic binary communications with messages 4-10 bytes long or so. Most of the nuts and bolts ...
    Nick TimkovichNick Timkovich
    Mar 21, 2009 at 8:52 pm
    Apr 11, 2009 at 4:50 pm
  • Hey thr, I need some help here actually. So i thought i could get it easily from here. I need to make a linked list that can do the following: 1) Point to multiple nodes at one time 2) Should have 2 ...
    J-BurnsJ-Burns
    Mar 21, 2009 at 11:38 am
    Apr 7, 2009 at 6:51 pm
  • Hello all, I've a requirement where I need to create around 1000 files under a given folder with each file size of around 1GB. The constraints here are each file should have random data and no two ...
    Venutaurus539Venutaurus539
    Mar 31, 2009 at 5:44 am
    Apr 2, 2009 at 2:33 pm
  • Hi, A week ago, I posted a question and an idea about Python's garbage collector. I got a few replies. Some days later, I posted a mock-up implementation of it, and got *NO* replies. Does this mean: ...
    Aaron BradyAaron Brady
    Mar 28, 2009 at 3:07 pm
    Apr 2, 2009 at 1:55 pm
  • I am looking to clean up this code... any help is much appreciated. Note: It works just fine, I just think it could be done cleaner. The result is a stack of dictionaries. the query returns up to ...
    OdeitsOdeits
    Mar 7, 2009 at 4:55 am
    Mar 18, 2009 at 11:42 pm
  • How would I import with __import__ from dict values? I want sys.path value inside d['syspath'], below code doesn't work for me d={} d['sys']='sys' d['path']='path' ...
    Alex goretoyAlex goretoy
    Mar 12, 2009 at 9:58 am
    Mar 14, 2009 at 8:34 am
  • Hi, This is to announce the first official release of Dao. Dao is a simple yet powerful object-oriented programming language with many advanced features including, soft (or optional) typing, BNF-like ...
    Limin FuLimin Fu
    Mar 6, 2009 at 5:57 pm
    Mar 8, 2009 at 5:14 am
  • Hi, Executing the example below doesn't produce the expected behavior, but using the commented code does. Is this normal, or is it a problem with Python? I've tested it with version 2.6.1 on Windows ...
    Márcio FaustinoMárcio Faustino
    Mar 19, 2009 at 9:52 pm
    Mar 23, 2009 at 2:11 pm
  • Hi, In the source for 3.0.1, PyObject_RichCompareBool seems to perform an extra check on identity that PyObjecct_RichCompare does not perform. Here's the excerpt from RichCompareBool (line 612): /* ...
    Aaron BradyAaron Brady
    Mar 2, 2009 at 10:33 am
    Mar 9, 2009 at 3:51 pm
  • Hey list, I was given a task, to reproduce functionality of command specified below by writing proper python functions to reuse in some monitoring script: rivendell# snmpwalk -Os -mALL -v1 ...
    SpamMePlease PleasePleaseSpamMePlease PleasePlease
    Mar 5, 2009 at 8:32 pm
    Mar 9, 2009 at 5:03 am
  • Hi... Sorry that this is a bit off track. Ok, maybe way off track! But I don't have anyone to bounce this off of.. I'm working on a crawling project, crawling a college website, to extract ...
    BruceBruce
    Mar 4, 2009 at 9:44 pm
    Mar 8, 2009 at 9:22 am
  • After reading the discussion about the same subject ( From: "Thomas Moore" <jsfrank.c... at msa.hinet.net Date: Tue, 1 Nov 2005 21:45:56 +0800 ), I tried myself some tests with some confusing results ...
    Avetis KAZARIANAvetis KAZARIAN
    Mar 4, 2009 at 7:22 am
    Mar 5, 2009 at 4:36 pm
  • I'm writing a tool to do some binary file comparisons. I'm opening the file using fd=open(filename,'rb') # Need to seek to 0x80 (hex 80th) location fd.seek(0x80) # Need to read just 8 bytes and get ...
    VibgyorbitsVibgyorbits
    Mar 4, 2009 at 10:58 pm
    Mar 5, 2009 at 3:27 pm
  • i found a guy twittin supercollider code this means his followers can listen to a noiz by activating that 1 line (well if he has sc installed) if lots of sc users start twittin ... it would be no ...
    '2+'2+
    Mar 27, 2009 at 5:54 pm
    Apr 9, 2009 at 1:13 am
  • Hi, I have a C extension, which takes a unicode or string value from python and convert it to unicode before doing more operations on it. The skeleton looks like: static PyObject *unicode_helper( ...
    AbhiAbhi
    Mar 19, 2009 at 10:27 am
    Mar 25, 2009 at 1:51 pm
  • ''' A python 3 question. Presume this code is in file p.py. The program fails. $ python3 p.py ... ValueError: I/O operation on closed file. Removing the comment character to increase the stream ...
    LambertdwLambertdw
    Mar 22, 2009 at 2:58 am
    Mar 23, 2009 at 12:46 am
  • How can I convert the following string: 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC', EGC','SXF','BZR','BIQ','BLL','BHX','BLQ' into this sequence: ['AAR','ABZ','AGA','AHO','ALC','LEI','AOC', ...
    MattiaMattia
    Mar 14, 2009 at 9:09 am
    Mar 17, 2009 at 10:17 am
  • Hello all, I am writing a python script which has to access deep paths then supported normally by the Windows OS ( 255). So I am appending "\ \?\" to do so. But when I use the path in the above ...
    Venutaurus539Venutaurus539
    Mar 11, 2009 at 5:22 am
    Mar 11, 2009 at 6:15 pm
Group Navigation
period‹ prev | Mar 2009 | next ›
Group Overview
grouppython-list @
categoriespython
discussions663
posts4,203
users784
websitepython.org

784 users for March 2009

Gagsl-Py2: 152 posts Andrew cooke: 117 posts Chris Rebert: 95 posts MRAB: 90 posts John Machin: 84 posts Terry Reedy: 80 posts Aahz: 67 posts Aaron Brady: 66 posts Rdmurray: 65 posts Scott David Daniels: 57 posts Alex goretoy: 49 posts Tim Golden: 49 posts Lie Ryan: 48 posts Steve Holden: 46 posts Tim Chase: 45 posts Mattia: 44 posts Peter Otten: 44 posts Rhodri James: 44 posts Benjamin Peterson: 40 posts Christian Heimes: 34 posts
show more
Archives