Search Discussions
-
that is a lie. Compilation only makes sure that values provided at compilation-time are of the right datatype. What happens though is that in the real world, pretty much all computation depends on ...
Namekuseijin
Sep 27, 2010 at 5:46 pm
Oct 29, 2010 at 9:02 am -
I need to create a simple utility to remove characters from either the right or left side of directories. This works, but there has to be a better way. I tried to use a variable inside the brackets ...
DataSmash
Sep 16, 2010 at 7:35 pm
Sep 27, 2010 at 11:07 am -
Hi all, I'm studying PyGTK tutorial and i've found this strange form: button = gtk.Button(("False,", "True,")[fill==True]) the label of button is True if fill==True, is False otherwise. i have ...
Tracubik
Sep 29, 2010 at 10:42 am
Oct 13, 2010 at 5:25 pm -
Hi, I noticed that in python3k, multiplying a sequence by a negative integer is the same as multiplying it by 0, and the result is an empty sequence. It seems to me that there is a more meaningful ...
Yingjie Lan
Sep 25, 2010 at 8:22 am
Oct 6, 2010 at 1:28 pm -
Hello list, I've been working with Python now for about a year using it primarily for scripting in the Puredata graphical programming environment. I'm working on a project where I have been given a ...
Patrick mcnameeking
Sep 1, 2010 at 11:35 pm
Sep 23, 2010 at 1:37 am -
Hi, I was comparing the speed of a simple loop program between Matlab and Python. My Codes: $ cat addition.py imax = 1000000000 a = 0 for i in xrange(imax): a = a + 10 print a $ cat addition.m imax = ...
Michael Kreim
Sep 2, 2010 at 10:02 am
Sep 10, 2010 at 1:06 am -
here's a interesting toy list processing problem. I have a list of lists, where each sublist is labelled by a number. I need to collect together the contents of all sublists sharing the same label. ...
Xah Lee
Sep 26, 2010 at 4:05 am
Feb 6, 2013 at 11:37 pm -
level: beginner how can i access the contents of a text file in Python? i would like to compare a string (word) with the content of a text file (word_list). i want to see if word is in word_list. ...
Baba
Sep 5, 2010 at 9:47 pm
Sep 16, 2010 at 10:36 am -
Pythonistas: The "Samurai Principle" says to return victorious, or not at all. This is why django.db wisely throws an exception, instead of simply returning None, if it encounters a "record not ...
Phlip
Sep 7, 2010 at 3:48 am
Sep 12, 2010 at 7:55 am -
Hi all, I've just seen this: http://sheddingbikes.com/posts/1285063820.html Whatever you think of Zed Shaw (author of the Mongrel Ruby server and relatively recent Python convert), he has a very good ...
Ant
Sep 21, 2010 at 12:29 pm
Sep 26, 2010 at 6:44 am -
Hi, I have some trouble with Python on Snow Leopard (10.6.3). I compile Python as a framework(for 32/64bit) without any problems. But implementing the lib in my C app, I get the following error on ...
Moerchendiser2k3
Sep 16, 2010 at 3:34 pm
Sep 20, 2010 at 6:30 am -
Hi, I would like to send code from Vim [1] to R [2] on Microsoft Windows. Vim needs python 2.7 but the pre-compiled SendKeys module [3] is only avaiable for python 2.6. How can I make SendKeys work ...
Jakson A. Aquino
Sep 9, 2010 at 10:07 am
Sep 17, 2010 at 11:04 pm -
Hello Folks. It doesn't seem to be common knowledge when and how a[x] gets translated to a[x+len(x)]. So, here's a short info post on how Python supports negative indices for sequences. I've put the ...
Raymond Hettinger
Sep 10, 2010 at 1:37 am
Sep 13, 2010 at 8:07 pm -
I have a list of tuples that indicate a relationship, ie a is related to b, b is related to c etc etc. What I want to do is cluster these relationships into groups. An item will only be associated ...
Astley Le Jasper
Sep 20, 2010 at 9:42 pm
Sep 22, 2010 at 5:06 pm -
Hi There, I get a socket error "[Errno 98] Address already in use" when i try to open a socket that got closed before with close(). How come close() doesn't close the socket properly? My socket code ...
Cerr
Sep 15, 2010 at 6:32 pm
Sep 21, 2010 at 12:02 pm -
Hi All, I am new to programming and python, Being a system administrator I have chose Inventory (Software & Hardware ) as my first project. I would like to know experts advice on the best way to ...
KING LABS
Sep 13, 2010 at 12:45 pm
Sep 18, 2010 at 5:03 am -
I've seen Python programs that can be activated from the command line. For example: hg This displays a list of commands for the Mercurial revision control system. But another command is this: hg ...
Aug dawg
Sep 6, 2010 at 3:48 pm
Sep 13, 2010 at 3:18 pm -
I have found it for windows and mac, but no luck under linux. Any idea? Thanks -- Hugo L?veill? hugol at fastmail.net
Hugo Léveillé
Sep 29, 2010 at 11:27 am
Sep 30, 2010 at 10:58 am -
Hi How can I make the visibility of a variable across many methods or files? To avoid repeating the same line eg url = os.environ['HTTP_HOST'] if os.environ.get('HTTP_HOST') else ...
Niklasro
Sep 18, 2010 at 3:25 pm
Sep 25, 2010 at 10:51 pm -
I know that I can index into a list of lists like this: a=[[1,2,3],[4,5,6],[7,8,9]] a[0][2]=3 a[2][0]=7 but when I try to use fancy indexing to select the first item in each list I get: ...
Jonno
Sep 8, 2010 at 6:55 pm
Sep 9, 2010 at 4:33 pm -
Hi All, I'm curious as to why, with a file called "Foo.txt" os.path.normcase('FoO.txt') will return "foo.txt" rather than "Foo.txt"? Yes, I know the behaviour is documented, but I'm wondering if ...
Chris Withers
Sep 15, 2010 at 1:49 pm
Sep 24, 2010 at 11:00 pm -
I write some Python code almost every day, but lately I am using a lot the D language too. After using D for about three years I now know some of it, but when I need to write short (< about 1000 ...
Bearophile
Sep 11, 2010 at 2:33 pm
Sep 13, 2010 at 3:05 pm -
File "<stdin ", line 1 [((s += t) and s) for t in range(1, 10)] ^ SyntaxError: invalid syntax What's the best way to get a list of partial sums? TIA! kj
Kj
Sep 28, 2010 at 10:57 pm
Sep 30, 2010 at 5:34 am -
Has anyone written code or worked with Python software for downloading financial time series data (e.g. from Yahoo financial)? If yes, would you please contact me. --Thanks, V. Stokes
Virgil Stokes
Sep 2, 2010 at 5:12 pm
Sep 4, 2010 at 9:17 am -
Hi query level: beginner as part of a learning exercise i have written code that: a) asks for a single letter input (assumption: only 1 letter wil be entered) b) adds that letter to list1 and then ...
Baba
Sep 21, 2010 at 10:39 pm
Sep 24, 2010 at 1:14 pm -
i've got a python.txt that contain python and it must stay as it (python.txt) how can i include it in my program ? import python.txt doesn't work is there a way : a) to make an include("python.txt") ...
Bussiere bussiere
Sep 5, 2010 at 10:57 pm
Sep 10, 2010 at 2:50 pm -
level: beginner word= 'even' dict2 = {'i': 1, 'n': 1, 'e': 1, 'l': 2, 'v': 2} i want to know if word is entirely composed of letters in dict2 my approach: step 1 : convert word to dictionary(dict1) ...
Baba
Sep 7, 2010 at 7:46 pm
Sep 8, 2010 at 5:09 am -
I have a list like ['1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.1881', '1.7689', '1.7689', '3.4225', '7.7284', '10.24', '9.0601', '9.0601', '9.0601', ...
Ceycey
Sep 7, 2010 at 12:37 am
Sep 7, 2010 at 2:52 pm -
Is there a plan to adopt PyPy and RPython under the python foundation in attempt to standardize both. I have been watching PyPy and RPython evolve over the years. PyPy seems to have momentum and is ...
Sarvi
Sep 1, 2010 at 5:49 pm
Sep 3, 2010 at 9:07 am -
2010-09-27 How about this: LC(func, inputList, P) compared to [func for myVar in inputList if P] the functional form is: ? shorter ? not another idiysyncratic new syntax -------------------- now, a ...
Xah Lee
Sep 27, 2010 at 7:06 pm
Sep 30, 2010 at 3:48 am -
In python 3.1.2(I'm using windows edition, 32bit), accessing __class__ of an int literal will raise a SyntaxException, while other literals will not. For example. 1.__class__ is an error, while ...
AlexWalk
Sep 28, 2010 at 9:27 am
Sep 30, 2010 at 1:21 am -
I was trying to use Pypdf following a recipe from the Activestate cookbooks. However I cannot get it too work. Unsure if it is me or it is beacuse sets are deprecated. I have placed a pdf in my C:\ ...
Flebber
Sep 26, 2010 at 11:10 pm
Sep 27, 2010 at 2:19 pm -
Hi All, I am attempting to create a Windows Service in Python. I have the framework (from Mark Hammond and Andy Robinason's book) running - see below. It starts fine - but it will not stop. :( net ...
Ian Hobson
Sep 2, 2010 at 3:22 pm
Sep 24, 2010 at 4:56 am -
Hi There, I'm calling a python script from a php script which again calls a perl script with subprocess.popen(). This seems to work fine so far only that once the python script completed it is ...
Cerr
Sep 9, 2010 at 9:45 pm
Sep 10, 2010 at 8:36 pm -
Hi list, I'm looking for a possibility to access the partiton inforamtion of a hard disk of my computer from within a python program. Googling I found the module 'parted' but didn't see any ...
Hellmut Weber
Sep 21, 2010 at 10:31 pm
Oct 5, 2010 at 2:11 am -
Hi everybody. I've played for few hours with encoding in py, but it's still somewhat confusing to me. So I've written a test file (encoded as utf-8). I've put everything I think is true in comment at ...
Goran Novosel
Sep 19, 2010 at 7:43 pm
Sep 20, 2010 at 8:19 pm -
# bigdigits2.py import sys zero=["***", "* *", "***"] one=["***", " * ", "***"] digits=[zero,one,zero,one,zero,one,zero,one,zero,one] inputted_digit=sys.argv[1] column_max=len(inputted_digit) ...
Fridge
Sep 19, 2010 at 2:23 am
Sep 20, 2010 at 8:52 am -
Hello, I'm used to write in Python something like and then have a dictionary like and get the formatted output like this: Occasionally I want to extract the field names from the template string. I ...
Andre Alexander Bell
Sep 14, 2010 at 4:59 pm
Sep 15, 2010 at 10:35 am -
Hi, I'm trying to rewrite a c program in python & encountered several problems. I have some data structures in my c program like below: typedef struct { unsigned short size; unsigned short ...
Kwan Lai Cheng
Sep 7, 2010 at 4:06 am
Sep 15, 2010 at 5:31 am -
I have a list of tuples l = [(('s','a'),(5,9)), (('u','w'),(9,2)), (('y','x'),(3,0))] some functions using this list and fetch data using index l[0][1], l[1] [1] I need to change position of each ...
Sajuptpm
Sep 6, 2010 at 2:54 pm
Sep 8, 2010 at 6:39 am -
Hi girls & guys, Just joined the group. I'm new to Python but been picking it up pretty easy. I love it! I'm hoping to use it to make a controlling application for an experiment. Basically I want to ...
Jack Keegan
Sep 4, 2010 at 1:36 pm
Sep 4, 2010 at 7:45 pm -
Given: a large list (10,000,000) of floating point numbers; Task: fastest python code that finds k (small, e.g. 10) smallest items, preferably with item indexes; Limitations: in python, using only ...
Dmitry Chichkov
Sep 2, 2010 at 1:08 am
Sep 2, 2010 at 11:21 pm -
This is a recurrent situation: I want to initialize a whole bunch of local variables in a uniform way, but after initialization, I need to do different things with the various variables. What I end ...
Kj
Sep 30, 2010 at 5:07 pm
Oct 5, 2010 at 1:40 am -
I'm having a weird problem with the 'External Tools' plugin for gedit, that seems to get weirder the more I dig into it. When I start gedit by clicking a launcher (from the Ubuntu menu, panel or ...
Joel Hedlund
Sep 30, 2010 at 10:17 am
Oct 1, 2010 at 8:03 am -
Hello list, i had seriously troubles with the connection between a form and the wsgi, i' ve made an application on Python3 and was running perfectly but when i try to use the <form to pass the data ...
Hidura
Sep 30, 2010 at 3:33 pm
Oct 1, 2010 at 4:33 am -
Hi all, Have been grappling with a list problem for hours... a = [2, 3, 4, 5,.....] b = [4, 8, 2, 6,.....] Basicly I am trying to place a[0], b[0] in a seperate list IF a[2] and b[2] is present. I ...
Rog
Sep 28, 2010 at 6:44 pm
Sep 30, 2010 at 12:42 am -
Hi I have succesfully created daemon with python script and as next step I am trying to give input to that python script daemon from Apache Logs....here I have got stuck and I have even checked IRC ...
Vineet daniel
Sep 21, 2010 at 12:49 pm
Sep 26, 2010 at 6:50 pm -
Thanks for the link, unfortunately I am already familiar with the page. What I need help with is the first sentence of the note at the bottom: Each entry consists of the record number, duplicate byte ...
Ethan Furman
Sep 18, 2010 at 4:16 pm
Sep 19, 2010 at 6:45 pm -
OK, this is a very stupid question about a very simple topic, but Google is failing me this morning... I'm trying to print a string that looks like this: Reported memory amounts are within 10% ...
J
Sep 16, 2010 at 3:25 pm
Sep 17, 2010 at 11:23 am -
Hi Folks, For a quick testing purpose, I deliver .pyc files to my customer. I don't want the black DOS console appearing behind my GUI, but I have no idea how to do it. Somebody can help? Thanks! ...
Muddy Coder
Sep 11, 2010 at 3:28 am
Sep 13, 2010 at 10:13 am
Group Overview
group | python-list |
categories | python |
discussions | 375 |
posts | 2,108 |
users | 523 |
website | python.org |
523 users for September 2010
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)