Search Discussions
-
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 ...
Jordan
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 ...
Giveitawhril2008
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 ...
Castironpi
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_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 Pillai
Jul 25, 2008 at 9:57 am
Jul 29, 2008 at 9:17 pm -
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] ...
Arnimavidyarthy
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 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 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 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 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 ...
DaveM
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 ...
Python
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 ...
Writeson
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 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 ...
Kj
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 ...
Kjhishere
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 ...
Alexnb
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 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 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: ...
Squishywaffle
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. ...
Patf
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 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" ...
Mk
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. 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 ...
Kj
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 ...
Ptn
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 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 ...
SUBHABRATA
Jul 18, 2008 at 8:31 am
Jul 21, 2008 at 6:48 am -
http://snipr.com/PracticalDjango
Dave 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 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 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 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 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 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 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, ...
Samir
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 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 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 ...
Kless
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 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 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 ...
Lanny
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 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 Sizer
Jul 16, 2008 at 2:16 pm
Jul 22, 2008 at 2:47 pm -
12
Question
Why is Perl so much better than python?Perl_wizard
Jul 19, 2008 at 9:27 am
Jul 20, 2008 at 8:27 pm -
12
singletons
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 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 Rawlins
Jul 17, 2008 at 3:23 pm
Jul 20, 2008 at 1:51 pm -
12
x, = y (???)
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 ...Kj
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: ...
Alexnb
Jul 15, 2008 at 8:45 am
Jul 17, 2008 at 11:58 am
Group Overview
group | python-list |
categories | python |
discussions | 805 |
posts | 4,132 |
users | 922 |
website | python.org |
922 users for July 2008
Archives
- September 2015 (591)
- August 2015 (1,058)
- July 2015 (1,440)
- June 2015 (1,704)
- May 2015 (1,841)
- April 2015 (1,231)
- March 2015 (1,717)
- February 2015 (1,612)
- January 2015 (889)
- December 2014 (1,283)
- November 2014 (1,600)
- October 2014 (1,447)
- September 2014 (1,031)
- August 2014 (1,867)
- July 2014 (1,618)
- June 2014 (1,357)
- May 2014 (1,431)
- April 2014 (1,285)
- March 2014 (2,093)
- February 2014 (1,999)
- January 2014 (2,089)
- December 2013 (2,060)
- November 2013 (2,507)
- October 2013 (1,932)
- September 2013 (1,634)
- August 2013 (1,532)
- July 2013 (2,062)
- June 2013 (2,795)
- May 2013 (1,935)
- April 2013 (1,980)
- March 2013 (1,953)
- February 2013 (1,789)
- January 2013 (1,924)
- December 2012 (1,569)
- November 2012 (1,579)
- October 2012 (1,961)
- September 2012 (2,311)
- August 2012 (1,808)
- July 2012 (1,577)
- June 2012 (1,199)
- May 2012 (1,197)
- April 2012 (1,416)
- March 2012 (1,373)
- February 2012 (1,442)
- January 2012 (1,446)
- December 2011 (1,895)
- November 2011 (1,291)
- October 2011 (1,188)
- September 2011 (1,587)
- August 2011 (2,069)
- July 2011 (2,140)
- June 2011 (1,908)
- May 2011 (2,475)
- April 2011 (2,098)
- March 2011 (1,761)
- February 2011 (1,746)
- January 2011 (2,123)
- December 2010 (1,671)
- November 2010 (2,355)
- October 2010 (2,518)
- September 2010 (2,187)
- August 2010 (3,098)
- July 2010 (2,579)
- June 2010 (3,238)
- May 2010 (2,458)
- April 2010 (2,356)
- March 2010 (2,759)
- February 2010 (3,486)
- January 2010 (3,294)
- December 2009 (2,899)
- November 2009 (3,396)
- October 2009 (3,346)
- September 2009 (3,087)
- August 2009 (3,903)
- July 2009 (3,761)
- June 2009 (3,321)
- May 2009 (3,370)
- April 2009 (4,272)
- March 2009 (4,228)
- February 2009 (3,965)
- January 2009 (4,732)
- December 2008 (4,335)
- November 2008 (3,799)
- October 2008 (4,123)
- September 2008 (3,816)
- August 2008 (4,056)
- July 2008 (4,238)
- June 2008 (3,737)
- May 2008 (4,976)
- April 2008 (4,708)
- March 2008 (4,122)
- February 2008 (4,132)
- January 2008 (4,145)
- December 2007 (3,686)
- November 2007 (3,419)
- October 2007 (4,234)
- September 2007 (4,332)
- August 2007 (4,189)
- July 2007 (3,771)
- June 2007 (4,142)
- May 2007 (5,018)
- April 2007 (4,912)
- March 2007 (4,365)
- February 2007 (3,951)
- January 2007 (3,864)
- December 2006 (4,449)
- November 2006 (4,229)
- October 2006 (5,506)
- September 2006 (5,244)
- August 2006 (4,829)
- July 2006 (4,720)
- June 2006 (5,054)
- May 2006 (5,302)
- April 2006 (4,845)
- March 2006 (5,729)
- February 2006 (4,839)
- January 2006 (5,249)
- December 2005 (5,011)
- November 2005 (5,677)
- October 2005 (5,387)
- September 2005 (4,458)
- August 2005 (4,428)
- July 2005 (4,472)
- June 2005 (4,562)
- May 2005 (4,269)
- April 2005 (5,019)
- March 2005 (5,070)
- February 2005 (5,159)
- January 2005 (5,194)
- December 2004 (5,211)
- November 2004 (4,048)
- October 2004 (5,191)
- September 2004 (5,534)
- August 2004 (6,168)
- July 2004 (4,217)
- June 2004 (4,202)
- May 2004 (3,890)
- April 2004 (4,285)
- March 2004 (5,077)
- February 2004 (4,213)
- January 2004 (3,988)
- December 2003 (3,818)
- November 2003 (4,940)
- October 2003 (6,297)
- September 2003 (4,299)
- August 2003 (5,654)
- July 2003 (4,912)
- June 2003 (4,933)
- May 2003 (4,938)
- April 2003 (5,017)
- March 2003 (5,031)
- February 2003 (7,701)
- January 2003 (6,229)
- December 2002 (4,102)
- November 2002 (4,346)
- October 2002 (3,307)
- September 2002 (4,206)
- August 2002 (4,919)
- July 2002 (4,826)
- June 2002 (4,215)
- May 2002 (5,295)
- April 2002 (5,967)
- March 2002 (5,323)
- February 2002 (5,245)
- January 2002 (5,617)
- December 2001 (4,443)
- November 2001 (4,565)
- October 2001 (3,669)
- September 2001 (3,719)
- August 2001 (5,208)
- July 2001 (6,528)
- June 2001 (4,905)
- May 2001 (5,492)
- April 2001 (4,713)
- March 2001 (4,478)
- February 2001 (3,871)
- January 2001 (4,187)
- December 2000 (3,099)
- November 2000 (2,336)
- October 2000 (3,820)
- September 2000 (3,933)
- August 2000 (4,253)
- July 2000 (4,199)
- June 2000 (4,089)
- May 2000 (4,269)
- April 2000 (3,217)
- March 2000 (3,719)
- February 2000 (4,000)
- January 2000 (2,682)
- December 1999 (2,283)
- November 1999 (1,896)
- October 1999 (2,048)
- September 1999 (2,001)
- August 1999 (2,151)
- July 1999 (2,351)
- June 1999 (2,386)
- May 1999 (2,201)
- April 1999 (1,706)
- March 1999 (6)
- February 1999 (1)