Search Discussions

681 discussions - 4,706 posts

  • I am sorry all I am not here to just blame Python. This is just an introspection of whether what I believe is right. Being a devotee of Python from past 2 years I have been writing only small apps ...
    Jan 11, 2009 at 9:22 pm
    Jan 28, 2009 at 5:33 am
  • Object oriented languages doesn't allow execution of the code without class objects, what is actually happening when we execute some piece of code, is it bound to any class? Those who have time and ...
    M KumarM Kumar
    Jan 29, 2009 at 10:01 am
    Feb 6, 2009 at 12:59 pm
  • So I kind of wanted to ask this question on the pypy mailing list.. but there's only a pypy-dev list, and I don't want to put noise on the dev list. What's the point of RPython? By this, I don't mean ...
    Brendan MillerBrendan Miller
    Jan 17, 2009 at 12:37 am
    Jan 31, 2009 at 3:32 pm
  • PEP 8 doesn't mention anything about using all caps to indicate a constant. Is all caps meaning "don't reassign this var" a strong enough convention to not be considered violating good python style? ...
    Brendan MillerBrendan Miller
    Jan 14, 2009 at 6:49 am
    Jul 5, 2009 at 9:56 pm
  • Just out of curiousity, have there been any attempts to make a version of Python that looks like actual English text? I mean, so much of Python is already based on the English language that it seems ...
    The Music GuyThe Music Guy
    Jan 16, 2009 at 1:02 am
    Feb 3, 2009 at 9:59 pm
  • Hello group, I've come from C/C++ and am now trying to code some Python because I absolutely love the language. However I still have trouble getting Python code to run efficiently. Right now I have a ...
    Johannes BauerJohannes Bauer
    Jan 9, 2009 at 3:04 am
    Jan 23, 2009 at 3:12 pm
  • I've done a good bit of Perl, but I'm new to Python. I find myself doing a lot of typecasting (or whatever this thing I'm about to show you is called), and I'm wondering if it's normal, or if I'm ...
    Jan 2, 2009 at 9:15 pm
    Jan 17, 2009 at 5:21 pm
  • comp.lang.lisp,comp.lang.scheme,comp.lang.functional,comp.lang.python,comp.lang.ruby Here's a interesting toy problem posted by Drew Krause to comp.lang.lisp: ------------------------ On Jan 16, 2:29 ...
    Xah LeeXah Lee
    Jan 17, 2009 at 5:16 pm
    Feb 26, 2009 at 12:46 am
  • Hi, while checking out Python 3, I read that all text strings are now natively Unicode. In the Python language reference (http://docs.python.org/3.0/reference/ lexical_analysis.html) I read that I ...
    Jan 26, 2009 at 6:16 pm
    Jan 28, 2009 at 6:29 pm
  • The error... Traceback (most recent call last): File "<pyshell#23 ", line 1, in <module file = zipfile.ZipFile('data.zip', "r") File "C:\Python25\lib\zipfile.py", line 346, in __init__ ...
    Jan 9, 2009 at 12:47 am
    Jan 13, 2009 at 6:14 am
  • Greetings! I've heard enough raving about Python, I'm going to see for myself what all the praise is for! I'm on a Mac. I use Netbeans for Java, PHP, and C if needed. Do you even use an IDE for ...
    Joseph A MarlinJoseph A Marlin
    Jan 27, 2009 at 11:06 pm
    Feb 2, 2009 at 8:58 pm
  • I would like to develop some module for Python for IPC. Socket programming howto recommends that for local communication, and I personally experienced problems with TCP (see my previous post: "Slow ...
    Laszlo NagyLaszlo Nagy
    Jan 13, 2009 at 4:25 pm
    Jan 15, 2009 at 5:11 pm
  • Hello, I would like to evaluate list comprehension expressions, from within which I'd like to call a function. For a first level it works fine but for second level it seems to lose the "_[1]" ...
    Mario ruggierMario ruggier
    Jan 15, 2009 at 11:29 am
    Jan 22, 2009 at 10:30 am
  • In PythonWin I'm running a program to find the 13th root (say) of millions of hundred-digit numbers. I'm using n = 13 root = base**(1.0/n) which correctly computes the root to a large number of ...
    Jan 31, 2009 at 2:45 am
    Feb 2, 2009 at 5:49 pm
  • I curious of how many are "really" out there. I have been watching the list for some time but basically see the same 10 or so people answering questions. Reply to this message so we can see how many ...
    Jan 27, 2009 at 3:07 pm
    Jan 28, 2009 at 5:04 pm
  • Hi, Im trying to write a program for my USB device and I'm thinking of using python to do this. The USB device is of my own making and it is activated when one of the two data pins of the USB is ...
    Astan CheeAstan Chee
    Jan 22, 2009 at 7:38 am
    Jan 27, 2009 at 10:43 pm
  • I want to implement a internal DSL in Python. I would like the syntax as human readable as possible. This means no disturbing '.;()\' characters. I like to have the power of the hosting language as ...
    Jan 6, 2009 at 3:32 pm
    Jan 9, 2009 at 6:45 pm
  • Hi All, Anyone knows why the code below gives an error? global_vars = {} local_vars = {'ar':["foo", "bar"], 'y':"bar"} print eval('all((x == y for x in ar))', global_vars, local_vars) Error: ...
    Fabio ZadroznyFabio Zadrozny
    Jan 27, 2009 at 11:31 pm
    Jan 31, 2009 at 11:12 am
  • raise ValueError(errmsg("Expecting property name", s, end)) http://docs.python.org/library/json.html What am I doing wrong ?
    Jan 25, 2009 at 9:12 pm
    Jan 27, 2009 at 5:11 pm
  • Hi -- Some time ago I ran across a comment recommending using <var is None instead of <var == None (also <var is not None, etc.) My own testing indicates that the former beats the latter by about 30% ...
    Gerald BrittonGerald Britton
    Jan 23, 2009 at 7:58 pm
    Jan 27, 2009 at 2:46 pm
  • I have following packet format which I have to send over Bluetooth. packet_type (1 byte unsigned) || packet_length (1 byte unsigned) || packet_data(variable) How to construct these using python data ...
    Jan 24, 2009 at 6:55 pm
    Jan 26, 2009 at 3:54 am
  • Please, why isn't a set permitted as the second argument to isinstance?
    Lambert, David W (S&T)Lambert, David W (S&T)
    Jan 14, 2009 at 10:14 pm
    Jan 16, 2009 at 2:29 pm
  • Where in the world is a description of pack() for Tkinter widgets? Is it some sort of general method for all widgets? I'm looking in a few docs that use it without ever saying where it is described. ...
    W. eWatsonW. eWatson
    Jan 29, 2009 at 4:12 am
    Feb 9, 2009 at 11:45 am
  • I just started using python last week and I'm addicted. I hate Perl. I never did learn to use it with any competence. I has to be the most obfuscated, cryptic language I've ever seen. Making it ...
    Jan 24, 2009 at 2:58 am
    Jan 29, 2009 at 7:15 am
  • Hello, I'va read a text file into variable "a" a=open('FicheroTexto.txt','r') a.read() "a" contains all the lines of the text separated by '\n' characters. Now, I want to work with each line ...
    Jan 25, 2009 at 1:32 pm
    Jan 26, 2009 at 10:38 pm
  • Hi I'm getting started with Python and in order to get good habits for Python 3, i'd like to run my Python 2.6.1 with Python 3 warning mode. When i run python -3 and execute statement then i expect ...
    Aivar AnnamaaAivar Annamaa
    Jan 9, 2009 at 5:17 pm
    Jan 13, 2009 at 6:29 am
  • Hi, I have a new project, that I just released in beta (http:// www.acooke.org/lepl - a recursive decent parser with full backtracking). At the moment I am using pypi and setuptools for distribution ...
    Andrew cookeAndrew cooke
    Jan 31, 2009 at 11:46 am
    Feb 7, 2009 at 8:51 pm
  • I have the following list of tuples: L = [(1, 2), (3, 4, 5), (6, 7)] I want to loop through the list and extract the values. The only algorithm I could think of is: ... u = None ... try: ... (k, v) = ...
    Jan 2, 2009 at 6:11 pm
    Jan 13, 2009 at 2:07 pm
  • I use the Python shell daily, plus of course normal editors to edit python scripts. They both are very useful for different purposes. But the default interactive shell isn't much handy if you want to ...
    Jan 22, 2009 at 9:10 am
    Jan 27, 2009 at 6:02 pm
  • Context - http://docs.python.org/3.0/reference/datamodel.html?highlight=data model#object.__iadd__ Just a suggestion I thought I'd throw out... There's a restriction in the language implementation on ...
    Andrew cookeAndrew cooke
    Jan 18, 2009 at 10:56 am
    Jan 24, 2009 at 8:58 am
  • Hi, I'm sure the message I'm going to write will seem quite dumb to most people but I really don't understand the str/bytes/unicode differences introduced in Python 3.0 so be patient. What I'm trying ...
    Giampaolo Rodola'Giampaolo Rodola'
    Jan 17, 2009 at 12:47 am
    Jan 18, 2009 at 11:56 am
  • I been around the list for a while and rubbed sholders with some pythonistas(some you would not beleieve if i told you) and i just don't see a community spirit here. Where are the community projects ...
    Jan 30, 2009 at 12:21 am
    Feb 2, 2009 at 8:21 pm
  • Hi! I have written a Python program that serach for specifik customer in files (around 1000 files) the trigger is LF01 + CUSTOMERNO So a read all fils with dirchached Then a loop thru all files each ...
    Jan 29, 2009 at 11:51 pm
    Feb 1, 2009 at 7:18 pm
  • I need to make a small, relatively low-traffic site that users can create accounts on and log into. Scripts must run as cgi (no mod_python or FastCGI is available). Can anyone recommend a small and ...
    Jan 27, 2009 at 9:19 pm
    Jan 29, 2009 at 6:02 pm
  • Hi, I want to start Python at the client side from a web application. The app is an intranet application, and all client PCs are under our control (we can install software on them). But I don't want ...
    Thomas GuettlerThomas Guettler
    Jan 21, 2009 at 8:10 am
    Jan 28, 2009 at 7:37 am
  • Hey, Why this code is working? ... x = 88 ... f2(x) ... ... print x ... 88 Thanks.
    Hussein BHussein B
    Jan 14, 2009 at 9:54 am
    Jan 26, 2009 at 1:48 am
  • Hi all! I had touch with some different python behavior: I was tried to write into a file a string with the '\x1a' symbol, and for FreeBSD system, it gives expected result: 'before\x1aafter' but for ...
    Jan 10, 2009 at 3:45 pm
    Jan 16, 2009 at 7:53 pm
  • Hey all, The following fails for me: Traceback (most recent call last): File "<stdin ", line 1, in <module File "/usr/lib/python2.6/urllib2.py", line 124, in urlopen return _opener.open(url, data, ...
    James MillsJames Mills
    Jan 12, 2009 at 1:59 am
    Jan 14, 2009 at 10:05 pm
  • If your were going to program a game in python what technologies would you use? The game is a board game with some piece animations, but no movement animation...think of a chess king exploding. The ...
    Tokyo DanTokyo Dan
    Jan 1, 2009 at 11:37 am
    Jan 7, 2009 at 5:04 am
  • python is great.
    Nomen NescioNomen Nescio
    Jan 3, 2009 at 1:30 pm
    Feb 11, 2009 at 11:23 am
  • I'm not sure this is possible, but I would like to have a list of objects A=[a,b,c,d,...,z] where, in the midst of a lot of processing I might do something like, ...
    Jan 27, 2009 at 9:16 pm
    Feb 9, 2009 at 6:45 am
  • hello all, I have a strange situation where I have to load initiate an instance of a class at run-time with the name given by the user from a dropdown list. Is this possible in python and how? To ...
    Jan 14, 2009 at 5:46 am
    Jan 15, 2009 at 2:24 am
  • I'm running a WSGI app under apache/mod_wsgi and I've noticed that whenever I restart the server after making a code change it takes a very long time (like a minute) before the script is active ...
    Ron GarretRon Garret
    Jan 28, 2009 at 9:35 pm
    Jan 30, 2009 at 4:34 pm
  • The collections module in Python 2.7 and Python 3.1 has gotten a new Counter class that works like bags and multisets in other languages. I've adapted it for Python2.5/2.6 so people can start using ...
    Raymond HettingerRaymond Hettinger
    Jan 22, 2009 at 6:11 pm
    Jan 24, 2009 at 3:02 pm
  • Hello all: I'm a beginner to Python (and programming altogether), and am now looking to create a program of my own. What I've got in mind is a very basic pest control program that would keep track of ...
    Jan 15, 2009 at 2:28 am
    Jan 17, 2009 at 2:58 am
  • Hello, First post so bear with me if I'm being a numpty ... Is it me or is there something slightly counter intuitive and thus not so pythonesque about this: ... else: False ... False '' Regards, AJ
    AJ OstergaardAJ Ostergaard
    Jan 31, 2009 at 11:35 am
    Jan 31, 2009 at 5:48 pm
  • Hello, below is my first fragment of working python code. As you can see it is very java like as that is all I know. Is this the right approach to be taking? Should I be taking a different approach? ...
    Jan 18, 2009 at 1:11 am
    Jan 26, 2009 at 7:16 pm
  • Hello everybody, I know how to spawn a sub-process and then wait until it completes. I'm wondering if I can do the same thing with a Python function. I would like to spawn off multiple instances of a ...
    Catherine MoroneyCatherine Moroney
    Jan 14, 2009 at 1:02 am
    Jan 15, 2009 at 5:58 am
  • Hi! I asked something similar a few days ago. Is it possible to compile Python 2.6.1 with a dynamic path? I don't know how the configure command would look like. This is my current configure command ...
    Googler 1 WebmasterGoogler 1 Webmaster
    Jan 10, 2009 at 9:28 pm
    Jan 12, 2009 at 12:22 pm
  • One of my users has reported that my app is giving them scientific notation instead of decimal notation for one specific value among many that display properly. I am unable to reproduce on my end, ...
    Paul McNettPaul McNett
    Jan 8, 2009 at 1:00 am
    Jan 9, 2009 at 7:14 pm
Group Navigation
period‹ prev | Jan 2009 | next ›
Group Overview
grouppython-list @

761 users for January 2009

Steve Holden: 153 posts Terry Reedy: 125 posts James Mills: 122 posts John Machin: 109 posts Gabriel Genellina: 101 posts MRAB: 101 posts Steven D'Aprano: 97 posts Mark Wooding: 87 posts Chris Rebert: 78 posts Russ P.: 72 posts Diez B. Roggisch: 71 posts R: 70 posts Aaron Brady: 62 posts Steven D'Aprano: 59 posts Bruno Desthuilliers: 52 posts Scott David Daniels: 48 posts Carl Banks: 47 posts Martin v. Löwis: 44 posts Alex23: 40 posts Koranthala: 39 posts
show more