Search Discussions
-
I like to hash a list of words (actually, the command line args of my program) in such a way that different words will create different hash, but not sensitive to the order of the words. Any ideas?
Neal Becker
Nov 30, 2011 at 12:32 pm
Dec 11, 2011 at 3:04 am -
Hello: I am currently working on designing a new programming language. It is a compiled language, but I still want to use Python as a reference. Python has a lot of similarities to my language, such ...
Travis Parks
Nov 21, 2011 at 12:46 am
Dec 2, 2011 at 8:58 pm -
My criterion for success is that it puts IDLE as a choice for editor on the menu produced with a right-click on a py file. So far no response on this has solved the problem. I know it sets up that ...
W. eWatson
Nov 21, 2011 at 4:39 pm
Nov 26, 2011 at 4:22 pm -
... for a in x: ... if a not in (True, False): ... return False ... return True number) 0: 9.7685158309226452 import x', number) 1: 12.348196768024984 ... for a in x: ... if not a <= 100: ... ...
OKB (not okblacke)
Nov 7, 2011 at 9:00 pm
Nov 15, 2011 at 4:02 pm -
Months ago 2.5.2 stopped functioning on my Win7 PC, so a few days ago I uninstalled and installed. Same problem. If one right-clicks on a py file, IDLE is not shown in the menu as Edit with IDLE. ...
W. eWatson
Nov 17, 2011 at 4:55 pm
Nov 21, 2011 at 10:43 pm -
Hi, Using Windows. Is there a python shell that has a history of typed in commands? I don't need output of commands just what I typed it. I need it to save between sessions - something that no shell ...
Goldtech
Nov 16, 2011 at 3:38 am
Nov 28, 2011 at 1:20 am -
Undoubtedly some of you have seen my post Both Python 2.5.2 and 2.7.2 flop the same way under Win 7. One thing I think no one has offered is whether their installation of 2.7.2 has the same IDLE ...
W. eWatson
Nov 18, 2011 at 6:06 pm
Nov 23, 2011 at 7:11 pm -
Hi all, i'm developing a new program. Mission: learn a bit of database management Idea: create a simple, 1 window program that show me a db of movies i've seen with few (<10) fields (actors, name, ...
Tracubik
Nov 14, 2011 at 10:41 am
Nov 28, 2011 at 8:51 am -
Greetings experts: I just dl'd the duqu driver finder script from a link to NSS on /., and fixed enough of the tabs in it to make it run error-free. At least python isn't having a litter of cows over ...
Gene heskett
Nov 6, 2011 at 6:14 pm
Nov 8, 2011 at 6:42 am -
In our current setup, the script in charge to run our applications also scan all the directories and if it finds any "pyc" file without the corresponding module, it removes it. This was done because ...
Andrea Crotti
Nov 2, 2011 at 2:03 pm
Nov 4, 2011 at 11:15 pm -
I'm working on a project where I need to communicate with some devices via modem which have the possibility of using MARK and SPACE parity. These are not defined by POSIX and therefore are not ...
Mlenz
Nov 21, 2011 at 2:00 pm
Nov 22, 2011 at 12:32 am -
Greetings: As you know, there are several kinds of relationships between classes in the UML -- dependency, association, aggregation, composition. Q1. Is there any article or code example on its ...
Jerry Zhang
Nov 10, 2011 at 1:15 pm
Nov 11, 2011 at 2:42 am -
Hi Folks I pass a nested dictionary to a function. def Dicty( dict[k1][k2] ): print k1 print k2 There is a fast way (trick) to get k1 and k2 as string. Whithout loop all dict. Just it! Regards macm
Macm
Nov 11, 2011 at 1:31 pm
Nov 15, 2011 at 3:07 am -
I've done some research, but I'm not sure what's most appropriate for my situation. What I want to do is have a long running process that spawns processes (that aren't necessarily written in Python) ...
Andrew Berg
Nov 30, 2011 at 9:03 pm
Dec 8, 2011 at 4:21 pm -
Hi, Is there a way to suppress all the errors when importing a module in python? By that I mean.. If I have other imports in the module I'm trying to import that fail, I still want my module to be ...
Andreea Babiuc
Nov 15, 2011 at 5:11 pm
Nov 16, 2011 at 11:05 am -
Howdy, If I have a few lists like a=[1,2,3,4,5] b=["one", "two", "three", "four", "five"] c=["cat", "dog", "parrot", "clam", "ferret"] what is the most pythonic method of removing the first element ...
JoeM
Nov 7, 2011 at 5:12 pm
Nov 15, 2011 at 10:54 pm -
it's an all-out disgrace. when is python going to get a decent module distribution system??? and don't tell me to do it myself: it's clear that the sorry situation we have now is precisely that too ...
Kj
Nov 26, 2011 at 1:40 pm
Nov 28, 2011 at 2:23 pm -
Hello, I am looking for a way how to bring Python interpreter to JavaScript, in order to provide a web-based application with python scripting capabilities. The app would have basic IDE for writing ...
Passiday
Nov 15, 2011 at 8:37 pm
Nov 22, 2011 at 3:46 pm -
In which cases should we use the is() function ? The is() function compares identity of objects rather than values so I was wondering in which circumstances comparing identities of objects is really ...
Candide
Nov 26, 2011 at 9:20 pm
Nov 29, 2011 at 5:11 pm -
I'm happily using the ast module to analyze some code, but my scripts need also to run unfortunately on python 2.5 The _ast was there already, but the ast helpers not yet. Is it ok if I just copy ...
Andrea Crotti
Nov 28, 2011 at 11:45 am
Dec 2, 2011 at 6:43 pm -
Good after I have a string liststr = '["aaaa","bbbb","ccc"]' ,and I need convert it to a list like list = ["aaaa","bbbb","ccc"],what can id do? Thanks. -- ??? ??????????????? guojunquan{at}gmail.com ...
郭军权
Nov 30, 2011 at 6:20 am
Dec 1, 2011 at 4:33 am -
Hi folks, I'm trying to write tidy, modular code which includes a long-running process. From time to time I MIGHT like to check in on the progress being made by that long-running process, in various ...
John Ladasky
Nov 18, 2011 at 2:18 am
Nov 18, 2011 at 1:03 pm -
When I run this (python 2.6.1): class C: @staticmethod def foo(): pass print "inside", foo, callable(foo) print "outside", C.foo, callable(C.foo) I get: inside <staticmethod object at 0x421df0 False ...
Roy Smith
Nov 17, 2011 at 2:30 am
Nov 18, 2011 at 2:31 am -
I am trying to convince Python to open more than 32k files .. this is on FreeBSD. Now I know I have to set appropriate limits .. I did: $ sysctl kern.maxfiles kern.maxfiles: 204800 $ sysctl ...
Tobias Oberstein
Nov 14, 2011 at 3:57 pm
Nov 30, 2011 at 7:29 pm -
I wondered whether there is any way to un-import a library, such, that it's occupied memory and the related shared libraries are released. My usecase is following: success = False try: import ...
Gelonida N
Nov 20, 2011 at 3:15 pm
Nov 24, 2011 at 3:23 am -
First, could you confirm the following syntax import foo as f equivalent to import foo f = foo Now, I was wondering about the usefulness in everyday programming of the as syntax within an import ...
Candide
Nov 12, 2011 at 11:56 am
Nov 18, 2011 at 2:38 am -
Hello, I have a py script that reads for all "m2ts" video files and convert them to "mpeg" using ffmpeg with command line. What I want to do is: I need my script to run 2 separated threads, and then ...
Eduardo Oliva
Nov 16, 2011 at 1:48 pm
Nov 17, 2011 at 7:38 am -
For many months I had sporadically used 2.5.2 under Win 7, then something went awry. I tried an uninstall/install and it didn't get any better. I thought I'd take another shot at it today. The ...
W. eWatson
Nov 13, 2011 at 5:46 pm
Nov 14, 2011 at 6:08 pm -
I'm trying to use a custom version of mongoengine. I cloned the git repo and put the directory on my PYTHONPATH, but python is still importing the system's installed version. Looking at sys.path, ...
Roy Smith
Nov 17, 2011 at 1:57 am
Nov 20, 2011 at 8:44 pm -
Hello: A new guy showed up at work a few weeks ago and has started talking about replacing a 6 month old project, written in ASP.NET MVC, with an open source solution that can handle massive scaling. ...
Travis Parks
Nov 5, 2011 at 8:11 pm
Nov 12, 2011 at 4:11 pm -
Python newbie here. So, when creating dictionaries, I am noticing that each time I print it out, that its not in the same order as when I typed it in. They seem to be getting sorted somehow. Is there ...
Scott Ware
Nov 3, 2011 at 6:46 pm
Nov 4, 2011 at 12:19 pm -
Hi everyone.. My question is exactly as in the subject of This Mail. I have made a Python script which is to slow and i have heard (and common sense also suggest) that if you use some libraries to ...
Ricardo Mansilla
Nov 24, 2011 at 6:36 am
Nov 29, 2011 at 3:53 am -
Hi All, I'm trying to leverage my core i5 to send more UDP packets with multiprocssing, but I found a interesting thing is that the socket.bind is always reporting 10048 error even the process didn't ...
Junfeng Hu
Nov 18, 2011 at 10:23 am
Nov 19, 2011 at 2:45 am -
Good evening, I have defined a new numbering structure for certain mathematical advantages. How do I implement this in Python, or would I be better off writing this in C or C++? Ultra concise ...
Alec Taylor
Nov 30, 2011 at 3:19 pm
Nov 30, 2011 at 7:05 pm -
Dear friends, I am a newbie in python and basically i use python for postprocessing like plotting, data manipulation etc. Based on ease of programming on python I am wondering if I can consider it ...
Rudra Banerjee
Nov 24, 2011 at 12:31 pm
Nov 27, 2011 at 5:54 pm -
The logging cookbook gives an Filter example, explainning how to add contextural info to log. I can't figure out how to filter log from it. Suppose I have 3 file, a.py, b.py and main.py #file: a.py ...
Sword
Nov 16, 2011 at 6:09 am
Nov 21, 2011 at 11:39 am -
Lemme preface this post by saying the following - I've taken my computer to the local IT office on RIT campus, asked a Computer Science professor specializing in Python, and posted my question on ...
CAMERON ALLEY
Nov 10, 2011 at 10:40 pm
Nov 11, 2011 at 11:23 am -
Sorry to resurrect this topic. By google search the last discussion was in 2003. I would like to find out what is the current prevailing view or consensus (if any) on the use of Design Pattern in ...
Anthony Kong
Nov 4, 2011 at 12:33 am
Nov 4, 2011 at 8:11 pm -
Hi, A bytearray is pickled (using max protocol) as follows: 0: \x80 PROTO 2 2: c GLOBAL '__builtin__ bytearray' 25: q BINPUT 0 27: X BINUNICODE u'\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff' 52: q ...
Irmen de Jong
Nov 27, 2011 at 2:33 pm
Dec 7, 2011 at 8:13 am -
Hi, I am just starting to learn Python (I have been at it only a few hours), so please bear with me. I have a few very small scripts (do you call them scripts or programs?) which work properly, and ...
Colin Higwell
Nov 29, 2011 at 8:06 pm
Nov 30, 2011 at 11:36 am -
Hello Fellow Pythonistas, I am very glad to be back after an unfortunate incident caused my Google account to be deleted. Unfortunately for those of you that have been following along and supporting ...
Rick Johnson
Nov 25, 2011 at 2:19 am
Nov 28, 2011 at 7:24 pm -
Hi everyone, I have to parse a string and splitting it by spaces. The problem is that the string can include substrings comprises by quotations which must mantain the spaces. What I need is to pass ...
Massi
Nov 23, 2011 at 5:10 pm
Nov 24, 2011 at 3:53 am -
Hi All, I am using Python 2.7, windows Env. I have an Installer written in Python(45%) and Powershell(55%) which is used to install Virtual Machines at specific locations. It is single threaded. I am ...
Nikunj Badjatya
Nov 17, 2011 at 10:39 am
Nov 21, 2011 at 1:08 pm -
Hello, I'm trying my hand at creating a Tkinter application, but not having much luck. I'm trying to have my top level window be a series of buttons with different options on them. Every time a ...
Jason Swails
Nov 13, 2011 at 6:27 pm
Nov 16, 2011 at 8:42 pm -
Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on ...
Roark
Nov 15, 2011 at 12:04 pm
Nov 15, 2011 at 3:57 pm -
The code in 'else' in a 'try/except/else[/finally]' block seems pointless to me, as I am not seeing any difference between having the code in the 'else' suite vs having the code in the 'try' suite. ...
Ethan Furman
Nov 14, 2011 at 9:53 pm
Nov 15, 2011 at 3:06 pm -
Hi, I got some code. - This code contains a package named tests - there are at least 100 references in different python files importing from above mentioned tests package. - the code also imports ...
Gelonida N
Nov 11, 2011 at 8:27 pm
Nov 12, 2011 at 1:46 am -
Hi, Can anyone provide links or basic info on memory management, variable dereferencing, or the like? I have a script that traverses a file structure using os.walk and adds directory names to a list. ...
Juan Declet-Barreto
Nov 7, 2011 at 7:43 pm
Nov 9, 2011 at 2:53 pm -
Hi This it to let you know that I'm writing (in Python) a script that places the content of CTAN into a git repository. https://bitbucket.org/jfine/python-ctantools I'm working from the TeX ...
Jonathan Fine
Nov 6, 2011 at 3:17 pm
Nov 7, 2011 at 10:03 pm -
I'm converting JSON data to XML using the standard library's json and xml.dom.minidom modules. I get the input this way: input_source = codecs.open(input_file, 'rb', encoding='UTF-8', ...
Adam Funk
Nov 25, 2011 at 1:50 pm
Dec 2, 2011 at 10:30 am
Group Overview
group | python-list |
categories | python |
discussions | 257 |
posts | 1,286 |
users | 321 |
website | python.org |
321 users for November 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)