Search Discussions

257 discussions - 1,286 posts

  • 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 BeckerNeal 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 ParksTravis 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. eWatsonW. 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)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. eWatsonW. 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 ...
    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. eWatsonW. 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, ...
    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 heskettGene 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 CrottiAndrea 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 ...
    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 ZhangJerry 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
    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 BergAndrew 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 BabiucAndreea 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 ...
    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 ...
    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 ...
    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 ...
    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 CrottiAndrea 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 LadaskyJohn 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 SmithRoy 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 ObersteinTobias 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 NGelonida 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 ...
    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 OlivaEduardo 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. eWatsonW. 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 SmithRoy 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 ParksTravis 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 WareScott 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 MansillaRicardo 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 HuJunfeng 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 TaylorAlec 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 BanerjeeRudra 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 ...
    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 ...
    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 KongAnthony 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 JongIrmen 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 HigwellColin 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 JohnsonRick 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 ...
    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 BadjatyaNikunj 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 SwailsJason 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 ...
    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 FurmanEthan 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 NGelonida 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-BarretoJuan 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 FineJonathan 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 FunkAdam Funk
    Nov 25, 2011 at 1:50 pm
    Dec 2, 2011 at 10:30 am
Group Navigation
period‹ prev | Nov 2011 | next ›
Group Overview
grouppython-list @

321 users for November 2011

Chris Angelico: 73 posts Steven D'Aprano: 62 posts W. eWatson: 45 posts Terry Reedy: 38 posts Dave Angel: 37 posts Alex23: 30 posts Roy Smith: 25 posts John Gordon: 21 posts Andrea Crotti: 20 posts Peter Otten: 20 posts Ian Kelly: 19 posts Jean-Michel Pichavant: 19 posts Sedab Bunay: 19 posts Alec Taylor: 17 posts MRAB: 17 posts Christian Heimes: 16 posts Travis Parks: 16 posts Devin Jeanpierre: 15 posts Stefan Behnel: 15 posts Miki Tebeka: 14 posts
show more