Search Discussions
-
The removal of cmp from the sort method of lists is probably the most disliked change in Python 3. On the python-dev mailing list at the moment, Guido is considering whether or not it was a mistake. ...
Steven D'Aprano
Mar 13, 2011 at 12:59 pm
Apr 8, 2011 at 7:40 pm -
Once, many, many, years ago, I programmed some type of 'graphical' interface on a VT200 terminal (only DEC VAX/VMS programmers are going to know what this is). Question. What was the library I linked ...
GrayShark
Mar 10, 2011 at 6:38 am
Mar 13, 2011 at 6:32 pm -
We've been doing a fair amount of Python scripting, and now we have a directory with almost a hundred loosely related scripts. It's obviously time to organize this, but there's a problem. These ...
Phat Fly Alanna
Mar 12, 2011 at 5:19 am
Mar 17, 2011 at 12:46 pm -
Hi everyone, Variables in Python are resolved dynamically at runtime, which comes at a performance cost. However, a lot of times we don't need that feature. Variables can be determined at compile ...
Yingjie Lan
Mar 3, 2011 at 3:45 am
Mar 23, 2011 at 5:37 am -
from collections import Counter from itertools import product print('\n'.join('*'*(c//2000) for _,c in sorted(Counter(map(sum, product(range(6), repeat=8))).items()))) almost-normally-yours, Raymond
Raymond Hettinger
Mar 29, 2011 at 9:50 am
Apr 14, 2011 at 7:08 pm -
I was showing a nice memoize decorator to a friend using the classic fibonacci problem. --8<---------------cut here---------------start------------- 8--- def memoize(f, cache={}): def g(*args, ...
Andrea Crotti
Mar 24, 2011 at 1:48 pm
Mar 27, 2011 at 1:15 am -
I tried the following 3.1428571428571428 3.1415926535897931 Why is the difference is so much ?is pi "/7 or something ? -- winning regards kracekumar An HTML attachment was scrubbed... URL: ...
Kracekumar ramaraju
Mar 17, 2011 at 4:46 pm
Mar 20, 2011 at 12:22 pm -
Let me present my newborn project (in Python) ImSim: http://sourceforge.net/projects/imsim/ Its README.txt: --------------------------------------------------------------------- ImSim is a python ...
N00m
Mar 5, 2011 at 7:23 am
Mar 8, 2011 at 12:26 am -
I am currently a Computer Science student, I can write in pascal, C, and Java, and recently I learned about Python and fell in love with it. I watched some python programming tutorials on youtube, ...
ErichCart ErichCart
Mar 4, 2011 at 8:08 pm
Mar 7, 2011 at 4:16 am -
Hi, I have a question about generating variable assignments dynamically. I have a list of 2-tuples like this ( (var1, value1), (var2, value2), .. , ) where var1, var2, ecc. are strings and value1, ...
Seldon
Mar 24, 2011 at 6:39 pm
Mar 26, 2011 at 1:32 pm -
Hello all, I am pretty new to Python and am trying to write data to a file. However, I seem to be misunderstanding how to do so. For starters, I'm not even sure where Python is looking for these ...
Jon Herman
Mar 18, 2011 at 9:33 pm
Mar 25, 2011 at 7:48 pm -
Howdy, Is there any way to attach to an already running process by pid? I want to send commands from python to an application that is already running. I don't want to give the command name to ...
Danny Shevitz
Mar 8, 2011 at 11:20 pm
Mar 16, 2011 at 8:11 pm -
Hi, if one has a set of values which should never step outside certain bounds (for example if the values were negative then they wouldn't be physically meaningful) is there a nice way to bounds ...
Martin De Kauwe
Mar 18, 2011 at 2:24 pm
Mar 21, 2011 at 11:03 am -
Hi, could someone help me with a small problem? I wrote a Python script that does some RegEx... transformations. Now, this script loads some configuration data from a file located in the same ...
Alexander Schatten
Mar 14, 2011 at 9:25 am
Mar 15, 2011 at 9:22 pm -
Hello Python-list, I don't know how to call it, but the following Python 3.2 code seems to raise a FutureWarning. def func(root=None): nonlocal arg if root: arg += 1 The warning is "FutureWarning: ...
Claudiu Popa
Mar 2, 2011 at 1:51 pm
Mar 4, 2011 at 3:16 am -
I'm using python to do some log file analysis and I need to store on disk a very large dict with tuples of strings as keys and lists of strings and numbers as values. I started by using cPickle to ...
Bob Fnord
Mar 5, 2011 at 1:56 am
Mar 12, 2011 at 1:28 am -
Hello. I have a written Python program which currently uses numpy to perform linear algebra operations. Specifically, I do matrix*matrix, matrix*vector, numpy.linalg.inv(matrix), and ...
Ben123
Mar 2, 2011 at 2:42 pm
Mar 3, 2011 at 3:40 am -
Hello all, I am new to the Python language and writing a Runge-Kutta-Fellberg 7(8) integrator in Python, which requires an extreme numerical precision for my particular application. Unfortunately, I ...
Jon Herman
Mar 4, 2011 at 10:32 pm
Mar 8, 2011 at 8:21 pm -
FBI cryptanalysis hasn?t decrypted notes from 1999 murder mystery http://tinyurl.com/4d56zsz The FBI is seeking the public's help in breaking the encrypted code found in two notes discovered on the ...
Joe Snodgrass
Mar 30, 2011 at 8:25 pm
Apr 3, 2011 at 4:46 am -
Is there a push to one toolkit or the other? -- Robert
Robert
Mar 11, 2011 at 2:25 am
Mar 12, 2011 at 9:24 pm -
Hey, all. A co-worker asked me a question, and I've got no idea how (or if) it can be done. Bottom line: he'd like to save off the text from an interpreter session, his thinking being that you've ...
Ken D'Ambrosio
Mar 25, 2011 at 9:03 pm
Apr 12, 2011 at 6:04 pm -
I was looking at the list of bytecode instructions that Python uses and I noticed how much it looked like assembly. So I figured it can't be to hard to convert this to actual machine code, to get at ...
Rouslan Korneychuk
Mar 31, 2011 at 10:33 pm
Apr 3, 2011 at 3:25 am -
http://docs.python.org/py3k/whatsnew/3.0.html What's the fuss abt it? Imo all is ***OK*** with 3k (in the parts I understand). I even liked print as a function **more** than print as a stmt Now I ...
N00m
Mar 11, 2011 at 1:58 am
Mar 11, 2011 at 6:19 pm -
I am able to embed the interactive Python interpreter in my C program except that when the interpreter exits, my entire program exits. #include <stdio.h #include <Python.h int main(int argc, char ...
Eric Frederich
Mar 25, 2011 at 4:02 pm
Mar 29, 2011 at 12:36 am -
Just curious how others view the 2 examples below for creating and writing to a file in Python (in OS X). Is one way better than the other? If it was a large amount of text, would the 'os.system' ...
Jyoung79
Mar 25, 2011 at 3:07 pm
Mar 28, 2011 at 8:46 pm -
This gives a particularly nasty abend in Windows - "Python.exe has stopped working", rather than a regular exception stack error. I've fixed it, after I figured out the cause, which took a while, but ...
J Peyret
Mar 18, 2011 at 12:24 am
Mar 19, 2011 at 7:09 am -
Hi; I have this code: #!/usr/bin/python import datetime, Cookie, random import time, string import cgitb; cgitb.enable() import cgi import sys,os sys.path.append(os.getcwd()) def index(): form = ...
Victor Subervi
Mar 9, 2011 at 9:01 pm
Mar 14, 2011 at 5:07 pm -
Hello I have got a project in which I have to extract keywords given a URL. I would like to know methods for extraction of keywords. Frequency of occurence is one; but it seems naive. I would prefer ...
Cross
Mar 8, 2011 at 7:18 am
Dec 5, 2013 at 1:39 pm -
I am trying to use the mouse wheel to scroll a list box, but I'm not getting the event. When I bind "<Button-1 " to the listbox I get the event and I'm able to scroll using yview_scroll. I've tried ...
Richard Holmes
Mar 10, 2011 at 8:28 pm
Mar 2, 2013 at 11:14 pm -
Simple question. I use these functions much more frequently than many others which are included in __builtins__. I don't know if my programming needs are atypical, but my experience has led me to ...
John Ladasky
Mar 28, 2011 at 3:29 am
Mar 31, 2011 at 12:35 am -
Greetings, We have an old barcode program (MSDOS and source code unavailable.) I've figured out how to populate the fields (by hacking into one of the program's resource files.) However, we still ...
Justin Ezequiel
Mar 11, 2011 at 12:58 am
Mar 30, 2011 at 12:38 am -
Dear Group, I got a question which might be possible but I am not getting how to do it. If I have a list, named, list1=[1.0,2.3,4.4,5.5....] Now each element in the array holds the string property if ...
Joy99
Mar 25, 2011 at 3:19 pm
Mar 26, 2011 at 12:07 am -
11
Syntax Error
I hope this is the place to post this question. I am a really new pythonista. I am studying Tkinter and when I run this basic code, I get a syntax error on line 20, print "hi there, everyone". Its a ...Manatee
Mar 19, 2011 at 4:39 am
Mar 19, 2011 at 9:31 pm -
Hi, Sad news (for me, at least), in the upcoming version 7.0 of NetBeans there will be no Python plugin anymore. I have been using NetBeans for Python development for a while now and I was very happy ...
Kees Bakker
Mar 24, 2011 at 2:32 pm
Nov 5, 2012 at 7:40 am -
print "How old are you?", age = raw_input() print "How tall are you?", height = raw_input() print "How much do you weigh?", weight = raw_input() print "So, you're %r old, %r tall and %r heavy." % ( ...
Joseph Sanoyo
Mar 31, 2011 at 3:03 am
Mar 31, 2011 at 11:08 pm -
How do i delete a module namespace once it has been imported? I use import banner Then i make a modification to banner.py. When i import it again, the new changes are not reflected. Is there a global ...
Monkeys paw
Mar 30, 2011 at 1:14 am
Mar 31, 2011 at 5:11 am -
Is it possible to make a directly executable (such as .exe on Windows) file from scripts written in Python? So as to prevent the end-user from having to download an interpreter to run the program.
Jordan Meyer
Mar 29, 2011 at 3:37 am
Mar 31, 2011 at 12:29 am -
10
python time
I'm working on a script that will run all the time. at time specified in a config file, will kick-off a backup. problem is, its not actually starting the job. the double while loop runs, the first ...Ecu_jon
Mar 21, 2011 at 1:19 am
Mar 21, 2011 at 7:02 am -
Hi all, I would like to put an alphanumeric string like this one EE472A86441AF2E629DE360 in a list, then iterate inside the entire string lenght and change each digit with a random digit. Do u have ...
Yqyq22
Mar 15, 2011 at 8:10 am
Mar 16, 2011 at 1:13 pm -
Hi, I think this might be obvious? I have a base class which contains X objects which other classes inherit e.g. class BaseClass(object): def __init__(self, something, something_else): self.something ...
Martin De Kauwe
Mar 8, 2011 at 10:51 pm
Mar 9, 2011 at 3:36 am -
Hello, everyone, recently I am trying to learn python's multiprocessing, but I got confused as a beginner. If I run the code below: from multiprocessing import Pool import urllib2 otasks = [ ...
Vincent Ren
Mar 5, 2011 at 4:08 am
Mar 8, 2011 at 7:09 am -
Hi, i have a list of files, some of which end with .hdf and one of them end with hdf5. I want to filter the hdf5 file. Thereforei set extensions: hdf5 I try to filter as below: if ...
Matt Funk
Mar 3, 2011 at 11:39 pm
Mar 4, 2011 at 5:59 pm -
hey guys, what are some of the best games made in python? free games really. like pygames stuff. i want to see what python is capable of. cant see any good one on pygames site really, though they ...
Sogeking99
Mar 26, 2011 at 2:39 am
Mar 31, 2011 at 12:40 am -
Hi, I saw in the Beginner document that "?Is easily extended by adding new modules implemented in a compiled language such as C or C++. ". While to my investigation, it seems not that easy or did I ...
Patrick
Mar 11, 2011 at 9:15 pm
Mar 22, 2011 at 10:54 pm -
Today I noticed that an expression like this: "one:%(one)s two:%(two)s" % {"one": "is the loneliest number", "two": "can be as bad as one"} could be evaluated at compile time, but is not: ... ...
Gerald Britton
Mar 10, 2011 at 4:23 pm
Mar 14, 2011 at 10:11 pm -
Hi everyone i understood that the goal of Python is to make programing easy (of course, powerful at the same time). I think one way to do it is to eliminate unnecessary syntax exceptions. One is the ...
Victor Paraschiv
Mar 7, 2011 at 11:33 am
Mar 8, 2011 at 6:27 am -
I can extend dictionary to allow for the my own special look-up tables. However now I want to be able to define multidimensional dictionary which supports look-up like this: d[1]['abc'][40] = 'dummy' ...
Ravi
Mar 5, 2011 at 5:43 pm
Mar 7, 2011 at 9:03 pm -
Hi all, Ok, I managed to work with c++ data types in python and can store serialize c++ objects to store in json. Now the task is backward. I wrote a c++ code to get the list of objects using again ...
Arthur Mc Coy
Mar 6, 2011 at 4:40 pm
Mar 7, 2011 at 8:07 am -
I have the following file: FileInfo.py: import UserDict class FileInfo(UserDict): "store file metadata" def __init__(self, filename=None): UserDict.__init__(self) self["name"] = filename When i ...
Monkeys paw
Mar 18, 2011 at 8:13 pm
Mar 21, 2011 at 10:07 am -
I'm using Python 2.6.5 on ubuntu 10.04 32-bit. My issue however, is with a code base that goes back to 2002, which at that time was 1.5~ or so. I have been since that time using my own cgi module ...
Tim Johnson
Mar 12, 2011 at 7:53 pm
Mar 14, 2011 at 11:21 pm
Group Overview
group | python-list |
categories | python |
discussions | 330 |
posts | 1,759 |
users | 456 |
website | python.org |
456 users for March 2011
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)