FAQ

Search Discussions

805 discussions - 4,132 posts

  • Hi everyone, I'm a big Python fan who used to be involved semi regularly in comp.lang.python (lots of lurking, occasional posting) but kind of trailed off a bit. I just wrote a frustration inspired ...
    JordanJordan
    Jul 24, 2008 at 5:41 am
    Aug 5, 2008 at 12:47 am
  • I'm just learning about Python now and it sounds interesting. But I just read (on the Wiki page) that mainstream Python was written in C. That's what I was searching for: Python was written in what ...
    Giveitawhril2008Giveitawhril2008
    Jul 20, 2008 at 10:50 pm
    Aug 1, 2008 at 3:45 pm
  • I'm curious about some of the details of the internals of the Python interpreter: I understand C from a hardware perspective. x= y+ 1; Move value from place y into a register Add 1 to the value in ...
    CastironpiCastironpi
    Jul 17, 2008 at 10:08 pm
    Aug 9, 2008 at 4:47 am
  • What can be the cause of the large difference between re.search and grep? This script takes about 5 min to run on my computer: #!/usr/bin/env python import re row="" for a in range(156000): row+="a" ...
    Henning_ThornbladHenning_Thornblad
    Jul 4, 2008 at 11:43 am
    Jul 10, 2008 at 5:15 pm
  • I am performing simulations on networks (graphs). I have a question on speed of execution (assuming very ample memory for now). I simplify the details of my simulation below, as the question I ask ...
    Suresh PillaiSuresh Pillai
    Jul 25, 2008 at 9:57 am
    Jul 29, 2008 at 9:17 pm
  • I want to prevent some process from running. The code is in the following. I encounter some unexpected troubles. Probelm1: This program cannot terminate "scrcons.exe" and ...
    PatrolPatrol
    Jul 13, 2008 at 12:16 pm
    Jul 18, 2008 at 7:18 am
  • Hi, Hi, I am taking a string as an input from the user and it should only contain the chars:L , M or R I tried the folllowing in kodos but they are still not perfect: [^A-K,^N-Q,^S-Z,^0-9] [L][M][R] ...
    ArnimavidyarthyArnimavidyarthy
    Jul 18, 2008 at 10:33 am
    Jul 21, 2008 at 11:08 am
  • Hello, Can someone explain to me the difference between a type and a class? After reading http://www.cafepy.com/article/python_types_and_objects/ it seems to me that classes and types are actually ...
    Nikolaus RathNikolaus Rath
    Jul 31, 2008 at 10:37 am
    Aug 5, 2008 at 7:03 pm
  • In trunk of the svn there is a folder called PCbuild. Now lets say that I am running linux on my Personal Computer and want to build python. I go into the PCbuild directory, but wait. This is for ...
    Joel TeichroebJoel Teichroeb
    Jul 18, 2008 at 10:46 pm
    Aug 2, 2008 at 2:43 pm
  • I'm trying to convert the URLs contained in iTunes' XML file into a form comparable with the filenames returned by iTunes' COM interface. I'm writing a podcast sorter in Python; I'm using iTunes ...
    William tanksleyWilliam tanksley
    Jul 28, 2008 at 11:42 pm
    Aug 2, 2008 at 12:42 am
  • Hi, I want to test if an object IS in a list (identity and not equality test). I can if course write something like this : test = False myobject = MyCustomClass(*args, **kw) for element in mylist: if ...
    Nicolas PourcelotNicolas Pourcelot
    Jul 18, 2008 at 9:09 am
    Jul 21, 2008 at 8:58 am
  • I've seen the PERL saying/motto/boast, "There's more than one way to do it" derided on more than one occasion on this group so what's the reason for this additional way to put an if else statement on ...
    DaveMDaveM
    Jul 27, 2008 at 2:17 pm
    Jul 29, 2008 at 4:29 am
  • Background: I'm going to be processing some raw transaction logs that are 30G in size. As part of this processing I may need to create some very large dictionary structures. I will be running my ...
    PythonPython
    Jul 25, 2008 at 6:13 am
    Jul 29, 2008 at 8:02 pm
  • Hi all, I'm writing some code that monitors a directory for the appearance of files from a workflow. When those files appear I write a command file to a device that tells the device how to process ...
    WritesonWriteson
    Jul 9, 2008 at 3:52 pm
    Jul 19, 2008 at 8:18 pm
  • My programming skills are pretty rusty and I'm just learning Python so this problem is giving me trouble. I have a list like [108, 58, 68]. I want to return the sorted indices of these items in the ...
    Ervan EnsisErvan Ensis
    Jul 28, 2008 at 9:24 pm
    Jul 30, 2008 at 9:20 pm
  • Yet another noob question... Is there a way to mimic C's static variables in Python? Or something like it? The idea is to equip a given function with a set of constants that belong only to it, so as ...
    KjKj
    Jul 29, 2008 at 8:40 pm
    Oct 22, 2008 at 4:05 pm
  • I need to know if I'm running on 32bit or 64bit ... so far I haven't come up with how to get this info via python. sys.platform returns what python was built on ... but not what the current system ...
    KjhishereKjhishere
    Jul 15, 2008 at 8:10 pm
    Aug 2, 2008 at 5:44 am
  • Hi All I am wondering what I can do to turn a python app (.py) into a mac OSX applicaiton (.app). Just like py2exe does. But I am also wondering since in your applications folder on macs it usually ...
    AlexnbAlexnb
    Jul 12, 2008 at 10:39 pm
    Aug 1, 2008 at 2:11 pm
  • Hi, Sorry I've posted a similar question some weeks ago, but I got no answers. I want to embed a Python application on a device with limited resources, esp. storage limitations. Is there a way to ...
    Thomas TroegerThomas Troeger
    Jul 15, 2008 at 9:51 am
    Jul 30, 2008 at 7:04 am
  • Hi there, This is my first post over here and I hope someone can give me some guidance. I'm trying to embed Python into a Visual C++ 2008 application and I'm getting linker problems. I've compiled a ...
    Jaco NaudeJaco Naude
    Jul 23, 2008 at 7:45 am
    Jul 25, 2008 at 11:21 am
  • Greetings, I'm trying to wrap a function in a C library as a compiled C Python module. Everything is going great, but I've hit a snag. There's a function in the form of this: First the typedef: ...
    SquishywaffleSquishywaffle
    Jul 31, 2008 at 1:51 pm
    Aug 28, 2008 at 1:10 pm
  • Hi - experienced programmer but this is my first Python program. This URL will retrieve an excel spreadsheet containing (that day's) msci stock index returns. ...
    PatfPatf
    Jul 28, 2008 at 10:00 pm
    Jul 29, 2008 at 10:32 am
  • I have a class that I need to do some finalization on when it dies. I know I can use the __del__ method, but I seem to recall that it impedes garbage collection. Is this the case? (keep in mind that ...
    Jason BakerJason Baker
    Jul 18, 2008 at 6:31 pm
    Jul 20, 2008 at 11:30 am
  • Hello everyone, I'm storing functions in a dictionary (this is basically for cooking up my own fancy schmancy callback scheme, mainly for learning purpose): ... return "f2 " + arg ... ... return "f1" ...
    MkMk
    Jul 17, 2008 at 11:45 am
    Jul 18, 2008 at 5:53 pm
  • Luckily I tried it before saying no, that's not how "in" works: True False Is there a reason for the inconsistency? I would have thought "in" would check for elements of a sequence, regardless of ...
    David C. UllrichDavid C. Ullrich
    Jul 7, 2008 at 9:23 pm
    Jul 10, 2008 at 6:21 am
  • Is there a special pythonic idiom for iterating over a list (or tuple) two elements at a time? I mean, other than for i in range(0, len(a), 2): frobnicate(a[i], a[i+1]) ? I think I once saw something ...
    KjKj
    Jul 29, 2008 at 5:36 pm
    Aug 7, 2008 at 6:05 pm
  • Hi everybody, I have a weird problem. Say I have a .py file with some functions in it, like this: # (...) def foo(): print("bar") When I open it and add a line to one of the functions, # (...) def ...
    PtnPtn
    Jul 22, 2008 at 9:02 pm
    Aug 4, 2008 at 6:00 pm
  • Hello, I often need to parse strings which contain a mix of characters, integers and floats, the C-language scanf function is very practical for this purpose. I've been looking for such a feature and ...
    André Michel DescombesAndré Michel Descombes
    Jul 19, 2008 at 3:54 pm
    Aug 3, 2008 at 2:00 pm
  • Dear Group, I am trying the following code line: def try2(n): a1=raw_input("PRINT A STRING:") a2=a1.split() a3="God Godess Heaven Sky" for x in a2: a4=a3.find(x) if a4 -1: a5=a3[a4] print a5 elif ...
    SUBHABRATASUBHABRATA
    Jul 18, 2008 at 8:31 am
    Jul 21, 2008 at 6:48 am
  • http://snipr.com/PracticalDjango
    Dave U. RandomDave U. Random
    Jul 14, 2008 at 4:08 am
    Jul 19, 2008 at 1:43 pm
  • isPrime works when just calling a nbr but not when iterating on a list, why? adding x=1 makes it work though but why do I have to add it? Is there a cleaner way to do it? def isPrime(nbr): for x in ...
    Defn noobDefn noob
    Jul 15, 2008 at 4:26 pm
    Jul 16, 2008 at 11:46 pm
  • No fucking shit, Sherlock, why double the volume by pointing out the obvious?
    Nobody HereNobody Here
    Jul 11, 2008 at 11:21 pm
    Jul 14, 2008 at 7:01 am
  • Hello, for my Python application (Windows platform) to be standards compliant, I need to embbed Ecmascript(Javascript) interpreter - I need to execute plugins written in this language. Which engine ...
    Jiri ZahradilJiri Zahradil
    Jul 5, 2008 at 1:28 pm
    Jul 11, 2008 at 6:35 pm
  • Hi fans, I want to use a 'for' iteration to manipulate files in a set of folders, something like: folders= ['1A28','1A6W','56Y7'] for x in folders: print x # print the current folder f = ...
    Ben KeshetBen Keshet
    Jul 9, 2008 at 12:08 am
    Jul 10, 2008 at 3:34 pm
  • Hello pythonistas. I'm a newbie to pretty much both programming and Python. I have a task that involves writing a test script for every possible combination of preference settings for a software I'm ...
    Bjorklund EmilBjorklund Emil
    Jul 2, 2008 at 9:53 pm
    Jul 4, 2008 at 2:30 pm
  • Is there a standard library for parsing emails that can cope with the different way email clients quote?
    Phillip B OldhamPhillip B Oldham
    Jul 30, 2008 at 12:49 pm
    Jul 31, 2008 at 10:25 pm
  • Hi Everyone, I am relatively new to Python so please forgive me for what seems like a basic question. Assume that I have a list, a, composed of nested lists with string representations of integers, ...
    SamirSamir
    Jul 21, 2008 at 7:06 pm
    Jul 22, 2008 at 2:41 pm
  • Any people that use Python as the predominant language for their game development here? ~Michael
    Michael LubkerMichael Lubker
    Jul 18, 2008 at 9:38 pm
    Jul 21, 2008 at 4:03 am
  • Whats is the way to clone "independent" iterator? I can't use tee(), because I don't know how many "independent" iterators I need. copy and deepcopy doesn't work... --pavel
    Yosifov PavelYosifov Pavel
    Jul 13, 2008 at 6:53 am
    Jul 16, 2008 at 8:39 am
  • I need a dictionary where get the result from a 'key' (on left), but also from a 'value' (on right), how to get it? I know that dictionaries aren't bidirectional, but is there any way without use two ...
    KlessKless
    Jul 13, 2008 at 11:21 pm
    Jul 14, 2008 at 2:24 pm
  • Hello. I want to convert unicode character into ascii one. The method ".encode('ASCII') " can convert only those unicode characters, which fit into 0..128 range. But there are still lots of ...
    Peter BulychevPeter Bulychev
    Jul 1, 2008 at 6:31 pm
    Jul 2, 2008 at 4:42 pm
  • How to insert letter "A" on each line (of a very long list of lines) at position 22, i.e., one space after "LEU", leaving all other characters at the same position as in the original example: ATOM 1 ...
    Francesco PietraFrancesco Pietra
    Jul 26, 2008 at 7:41 am
    Jul 31, 2008 at 5:49 am
  • How would one make a list of the files in the top directory using os.walk. I need to pick a random file from said list. Thanks. -- Posted on news://freenews.netfront.net - Complaints to news at ...
    LannyLanny
    Jul 24, 2008 at 1:52 am
    Jul 26, 2008 at 10:24 pm
  • Hi, I am tryiong to do something obviously trivial such as: I have a c program called "tsys2list" that when it is ran it asks the user to give the value of "tcal" which is a variable. I want to call ...
    Emmanouil AngelakisEmmanouil Angelakis
    Jul 25, 2008 at 12:56 pm
    Jul 25, 2008 at 9:53 pm
  • Although the standard library in Python is great, there are undoubtedly some great packages available from 3rd parties, and I've encountered a few almost by accident. However, I don't know how a user ...
    Ben SizerBen Sizer
    Jul 16, 2008 at 2:16 pm
    Jul 22, 2008 at 2:47 pm
  • Why is Perl so much better than python?
    Perl_wizardPerl_wizard
    Jul 19, 2008 at 9:27 am
    Jul 20, 2008 at 8:27 pm
  • Hey, forgive me for just diving in, but I have a question I was thinking of asking on another list but it really is a general question so let me ask it here. It's about how to approach making ...
    Craig AllenCraig Allen
    Jul 16, 2008 at 10:20 pm
    Jul 20, 2008 at 5:05 pm
  • Hello Chaps, I have an unusual situation with my application which I've also seen once or twice in the past but never found a solution too. Basically the application stops properly reporting ...
    Robert RawlinsRobert Rawlins
    Jul 17, 2008 at 3:23 pm
    Jul 20, 2008 at 1:51 pm
  • I just came across an assignment of the form x, = y where y is a string (in case it matters). 1. What's the meaning of the comma in the LHS of the assignment? 2. How could I have found this out on my ...
    KjKj
    Jul 17, 2008 at 7:11 pm
    Jul 18, 2008 at 3:49 pm
  • Hello internet. I am wondering, is there a simple way to test for Internet connection? If not, what is the hard way :p -- View this message in context: ...
    AlexnbAlexnb
    Jul 15, 2008 at 8:45 am
    Jul 17, 2008 at 11:58 am
Group Navigation
period‹ prev | Jul 2008 | next ›
Group Overview
grouppython-list @
categoriespython
discussions805
posts4,132
users922
websitepython.org

922 users for July 2008

Fredrik Lundh: 144 posts Terry Reedy: 119 posts Martin Gregorie: 106 posts Diez B. Roggisch: 86 posts Peter Otten: 57 posts Tim Golden: 56 posts Ben Finney: 55 posts John Machin: 47 posts Marc 'BlackJack' Rintsch: 46 posts Russ P.: 40 posts Castironpi: 39 posts Mk: 39 posts Alex23: 38 posts Alexnb: 38 posts Bruno Desthuilliers: 36 posts Carl Banks: 36 posts Gabriel Genellina: 34 posts Mike Driscoll: 34 posts Gary Herron: 33 posts Steven D'Aprano: 33 posts
show more
Archives