FAQ

Search Discussions

780 discussions - 4,182 posts

  • Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying to ...
    KryptoKrypto
    Oct 30, 2007 at 6:14 pm
    Sep 23, 2013 at 1:06 pm
  • I'm stuck trying to write a function that generates a factorial of a number using iteration and not recursion. Any simple ideas would be appreciated.
    Py-FunPy-Fun
    Oct 22, 2007 at 12:26 pm
    Oct 31, 2007 at 2:20 am
  • At work we are shopping for a Web framework, so I have been looking at the available options on the current market. In particular I have looked at Paste and Pylons and I have written my impressions ...
    Michele SimionatoMichele Simionato
    Oct 6, 2007 at 8:33 am
    Dec 15, 2007 at 11:30 am
  • Sorry if this is a completely newbie question ... I was trying to get information about the logging.handlers module, so I imported logging, and tried dir(logging.handlers), but got: AttributeError: ...
    RjcarrRjcarr
    Oct 2, 2007 at 3:03 am
    Oct 6, 2007 at 6:28 am
  • When i first heard about distributed revision control system about 2 years ago, i heard of Darcs, which is written in Haskell. I was hugely excited, thinking about the functional programing i love, ...
    Xah LeeXah Lee
    Oct 20, 2007 at 3:28 am
    Nov 14, 2007 at 10:14 pm
  • Will len(a_string) become a_string.len()? I was just reading http://docs.python.org/dev/3.0/whatsnew/3.0.html One of the criticisms of Python compared to other OO languages is that it isn't OO enough ...
    BradBrad
    Oct 29, 2007 at 8:25 pm
    Nov 2, 2007 at 8:35 am
  • Hi. I've got a question on the differences and how to define static and class variables. AFAIK, class methods are the ones which receives the class itself as an argument, while static methods are the ...
    Minkoo SeoMinkoo Seo
    Oct 9, 2007 at 4:16 pm
    Oct 19, 2007 at 12:38 am
  • Python is supposed to be readable, but after programming in Python for a while I find my Python programs can be more obfuscated than their C/C ++ counterparts sometimes. Part of the reason is that ...
    Licheng FangLicheng Fang
    Oct 7, 2007 at 6:07 pm
    Oct 18, 2007 at 10:24 am
  • Hi All, I am using pytz.common_timezones to populate the timezone combo box of some user registration form. But as it has so many timezones (around 400), it is a bit confusing to the users. Is there ...
    SanjaySanjay
    Oct 8, 2007 at 7:32 am
    Oct 10, 2007 at 12:56 pm
  • I was doing some programming in Python, and the idea came to my mind: using fractions instead of floats when doing 2/5. The problem arises when you try to represent some number, like 0.4 in a float. ...
    AndresjAndresj
    Oct 1, 2007 at 1:35 am
    Oct 4, 2007 at 11:20 pm
  • I want to convert a string to command.. For example i have a string: a="['1']" I want to do this list.. How can i do ?
    AbandonedAbandoned
    Oct 18, 2007 at 2:23 pm
    Oct 19, 2007 at 1:02 pm
  • I was thinking of a way I could make writing Python Class Files a little less painful. I was considering a Ptyhon script that read a file with a list of property names and method names and then ...
    Sunburned SurveyorSunburned Surveyor
    Oct 22, 2007 at 5:12 pm
    Oct 30, 2007 at 12:01 pm
  • Again I am depressed to encounter a fundamentally new concept that I was all along unheard of. Its not even in paul graham's book where i learnt part of Lisp. Its in Marc Feeley's video. Can anyone ...
    Gnuist006Gnuist006
    Oct 9, 2007 at 5:15 am
    Oct 15, 2007 at 4:17 am
  • I've been programming in Python for 5 or more years now and whenever I want a quick-n-dirty GUI, I use Tkinter. This is partly because it's the first toolkit I learnt, but also because it's part of ...
    PsaffreyPsaffrey
    Oct 12, 2007 at 8:13 am
    Oct 26, 2007 at 4:03 pm
  • Python has had the Decimal data type for some time now. The Decimal data type is ideal for financial calculations. Using this data type would be more intuitive to computer novices than float as its ...
    Lennart BenschopLennart Benschop
    Oct 26, 2007 at 8:54 am
    Jul 14, 2009 at 3:55 pm
  • Hi. I would like to have declarative properties in Python, ie. something like slots definitions in defclass in Common Lisp. It seems that even Java will have it, using a library ( ...
    Artur SiekielskiArtur Siekielski
    Oct 11, 2007 at 11:48 am
    Oct 13, 2007 at 8:21 pm
  • What is the backstory to why Python includes Tk bindings, as opposed to some other set of bindings? I've written a few little Tkinter-based apps, and it's nice and simple. I like it well enough. That ...
    BrambleBramble
    Oct 2, 2007 at 1:04 am
    Oct 5, 2007 at 4:43 am
  • I have recently (today) just started learning/playing with Python. So far I am excited and impressed (coming from PHP background). I have a few questions regarding Python behavior... val = 'string' ...
    IxiausIxiaus
    Oct 17, 2007 at 7:37 pm
    Oct 19, 2007 at 2:43 pm
  • Does anyone else feel that unittesting is too much work? Not in general, just the official unittest module for small to medium sized projects? It seems easier to write some quick methods that are ...
    BradBrad
    Oct 4, 2007 at 7:02 pm
    Oct 10, 2007 at 4:00 pm
  • ANNOUNCE: NUCULAR fielded text searchable indexing Nucular is a system for creating disk based full text indices for fielded data. It can be accessed via a Python API or via a suite of command line ...
    Aaron WattersAaron Watters
    Oct 8, 2007 at 8:28 pm
    Oct 27, 2007 at 12:37 pm
  • Hello, can I determine somehow if the iteration on a list of values is the last iteration? Example: for i in [1, 2, 3]: if last_iteration: print i*i else: print i that would print 1 2 9 Can this be ...
    Florian LindnerFlorian Lindner
    Oct 12, 2007 at 10:58 am
    Oct 20, 2007 at 12:15 am
  • I'm just wondering, if I could write a in a "better" way this code lMandatory = [] lOptional = [] for arg in cls.dArguments: if arg is True: lMandatory.append(arg) else: lOptional.append(arg) return ...
    Alexandre BadezAlexandre Badez
    Oct 24, 2007 at 12:09 pm
    Oct 24, 2007 at 8:09 pm
  • Given the following: def outer(arg) avar = '' def inner1(arg2) # How can I set 'avar' here ? ------------------------------------- This sig is dedicated to the advancement of Nuclear Power Tommy ...
    Tommy NordgrenTommy Nordgren
    Oct 29, 2007 at 8:19 pm
    Nov 4, 2007 at 1:49 pm
  • Hi.. I want to do this: for examle: 12332321 == 12.332.321 How can i do?
    AbandonedAbandoned
    Oct 31, 2007 at 7:58 pm
    Nov 2, 2007 at 8:19 pm
  • Hello, Is there a way I can, for debugging, access the instance variable name from within a class? E.g: Class X: def debug(self): print "My instance var is %s" % (some magic Python stuff) So that: ( ...
    Donn IngleDonn Ingle
    Oct 28, 2007 at 10:01 am
    Oct 30, 2007 at 8:58 pm
  • The first issue is issue number 10? That's a bit silly. -- Grant Edwards grante Yow! I can't decide which at WRONG TURN to make first!! visi.com I wonder if BOB GUCCIONE has these problems!
    Grant EdwardsGrant Edwards
    Oct 5, 2007 at 2:44 pm
    Oct 11, 2007 at 2:37 am
  • Hi.. I am using python with postgresql. And i have a query : aia.execute("SELECT id, w from list") links=aia.fetchall() print links and result [(1, 5), (2,5).......] (2 million result) I want to see ...
    Besturk.Net AdminBesturk.Net Admin
    Oct 1, 2007 at 1:32 pm
    Oct 3, 2007 at 12:51 am
  • My apologies in advance, I'm new to python Say, I have a dictionary that looks like this: record={'BAT': '14.4', 'USD': '24', 'DIF': '45', 'OAT': '16', 'FF': '3.9', 'C3': '343', 'E4': '1157', 'C1': ...
    Frank StutzmanFrank Stutzman
    Oct 27, 2007 at 4:29 am
    Nov 4, 2007 at 9:56 pm
  • the subject pretty much says it all. if I check a string for for a substring, and this substring isn't found, should't the .find method return 0 rather than -1? this breaks the if ...
    JelleJelle
    Oct 31, 2007 at 1:31 pm
    Oct 31, 2007 at 8:57 pm
  • Can anyone link me or explain the following: I open a file in a python script. I want the new file's location to be on the user's desktop in a Windows XP environment. fileHandle = open (....., 'w' ) ...
    GoldtechGoldtech
    Oct 7, 2007 at 3:31 am
    Oct 9, 2007 at 8:24 am
  • Traceback (most recent call last): File "<pyshell#40 ", line 1, in <module len(object=[1,2]) TypeError: len() takes no keyword arguments but not when I use a "normal" function: return len(object) 2
    Armando Serrano LombilloArmando Serrano Lombillo
    Oct 29, 2007 at 1:52 pm
    Oct 31, 2007 at 2:07 am
  • Hello all It would be great if I could make a number that can go beyond current size limitations. Is there any sort of external library that can have infinitely huge numbers? Way way way way beyond ...
    Jimmy MusselwhiteJimmy Musselwhite
    Oct 26, 2007 at 10:35 pm
    Oct 28, 2007 at 9:50 pm
  • The function I wrote (below) reverses lists all right: def reverse(xs): if xs == []: return [] else: return (reverse (xs[1:])) + [xs[0]] [3, 2, 1] Yet when I try to reverse a string I get: ... ... ...
    Dmitri O.KondratievDmitri O.Kondratiev
    Oct 14, 2007 at 9:06 pm
    Oct 17, 2007 at 12:19 pm
  • Hello, Can anyone recommend a simple python template engine for generating HTML that relies only on the Pyhon Core modules? No need for caching, template compilation, etc. Speed is not a major issue. ...
    Allen.fowlerAllen.fowler
    Oct 15, 2007 at 3:36 am
    Oct 17, 2007 at 7:34 am
  • Hi. I have a problem with weak refs and bound methods. The best explanation for the problem is a short bit of code. I have the three classes Wrapper, Foo and Bar: import weakref class ...
    Mathias PanzenboeckMathias Panzenboeck
    Oct 7, 2007 at 2:51 pm
    Oct 11, 2007 at 7:05 pm
  • Hello, As an electronics engineer I use some very expensive EDA CAD tool programs that are scriptable using Tcl. I was wondering why these companies have choose to use Tcl instead of Python. Some of ...
    Chewie54Chewie54
    Oct 30, 2007 at 9:25 pm
    Nov 8, 2007 at 3:03 pm
  • Hi, Is there a C++ version of the C Python API packaged with python 2.5? It would be nice to have a OOP approach to embedding python in C++. It would also be a bonus if this C++ Python API cleaned up ...
    Robert DaileyRobert Dailey
    Oct 19, 2007 at 10:37 pm
    Oct 23, 2007 at 8:38 am
  • hello, I'm always have great difficulties, replying to this beautiful and helpful list. When I hit the reply button, the message is sent personally to the sender and not to the list. I've subscribed ...
    Stef mientkiStef mientki
    Oct 16, 2007 at 9:45 pm
    Oct 19, 2007 at 4:28 am
  • I have two lists: a = [1, 2, 3] b = [4, 5, 6] What I'd like to do is append all of the elements of b at the end of a, so that a looks like: a = [1, 2, 3, 4, 5, 6] I can do this using map(a.append, b) ...
    Debajit AdhikaryDebajit Adhikary
    Oct 17, 2007 at 8:27 pm
    Oct 18, 2007 at 6:45 pm
  • Hi all, I started Python just a little while ago and I am stuck on something that is really simple, but I just can't figure out. Essentially I need to take a text document with some chemical ...
    Patrick WaldoPatrick Waldo
    Oct 14, 2007 at 1:48 pm
    Oct 18, 2007 at 4:21 am
  • Hi All, I do not understand the packages system in python. I have read this http://docs.python.org/tut/node8.html a 100 times and I can not get it to work. I make a test app like this: ...
    MarkyMarcMarkyMarc
    Oct 7, 2007 at 11:10 am
    Oct 7, 2007 at 11:24 pm
  • I am trying to install Python 2.5 on Windows XP. It installs into the root directory on C:\ instead of C:\Python25 which it shows by default as what it plans to install to. Selecting D:\Python25 on a ...
    TheFlyingDutchmanTheFlyingDutchman
    Oct 24, 2007 at 3:11 am
    Oct 29, 2007 at 9:30 am
  • The documentation for marshal makes it clear that there are no guarantees about being able to correctly deserialize marshalled data structures across Python releases. It also implies that marshal is ...
    Evan KlitzkeEvan Klitzke
    Oct 31, 2007 at 7:31 am
    Nov 2, 2007 at 7:36 pm
  • Hello, is there a function in the Python stdlib to test if a string is a valid email address? Thanks, florian
    Florian LindnerFlorian Lindner
    Oct 12, 2007 at 7:55 pm
    Oct 13, 2007 at 6:25 pm
  • Also, that pattern can be easily modified to have any number of words at the end: patt = "\d+ (\w+){1,}" This would take care of 3120 De la Cruz Boulevard.
    Shawn MilochikShawn Milochik
    Oct 10, 2007 at 5:02 pm
    Oct 12, 2007 at 11:50 pm
  • Crazy question, but has anyone attempted this or seen Python code that does? For example, if a text file contained 'Guido' and or 'Robert' and or 'Susan', then we should return True, otherwise return ...
    BradBrad
    Oct 11, 2007 at 3:22 pm
    Oct 11, 2007 at 8:05 pm
  • My website is built from a Python CGI and works great. I'm now including Google Ads, which requires two pieces of JavaScript; the first contains the display settings for the ads, and the second piece ...
    IamIanIamIan
    Oct 11, 2007 at 6:23 am
    Oct 22, 2007 at 1:05 pm
  • Hi, I'm currently writing my own CSV parser since the built in one doesn't support Unicode. I'm wondering if there's a way to iterate over the characters in a unicode string and have access to both ...
    Robert DaileyRobert Dailey
    Oct 10, 2007 at 7:56 pm
    Oct 11, 2007 at 8:12 am
  • <http://www.redcanary.ca/view/top-programming Dick Moores
    Dick MooresDick Moores
    Oct 7, 2007 at 6:05 am
    Oct 8, 2007 at 10:03 am
  • Hi all. I have a single file with several classes, wich i want to separate into several packages. The big file is named, say MYCLASES, and contains a class named A(object), and B(A). We have been ...
    Gerardo HerzigGerardo Herzig
    Oct 3, 2007 at 4:42 pm
    Oct 5, 2007 at 2:00 pm
Group Navigation
period‹ prev | Oct 2007 | next ›
Group Overview
grouppython-list @
categoriespython
discussions780
posts4,182
users948
websitepython.org

948 users for October 2007

Diez B. Roggisch: 112 posts Gabriel Genellina: 94 posts Steven D'Aprano: 86 posts Marc 'BlackJack' Rintsch: 85 posts Bruno Desthuilliers: 79 posts Bruno Desthuilliers: 68 posts Paul Hankin: 60 posts Tim Chase: 56 posts Rjack: 52 posts Besturk.Net Admin: 51 posts Mensanator: 50 posts Ben Finney: 45 posts Steve Holden: 45 posts J. Clifford Dyer: 44 posts Kyosohma: 44 posts Chris Mellon: 42 posts Duncan Booth: 41 posts Hrvoje Niksic: 41 posts Bjoern Schliessmann: 37 posts Carsten Haese: 37 posts
show more
Archives