Search Discussions

330 discussions - 1,759 posts

  • 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'ApranoSteven 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 ...
    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 AlannaPhat 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 LanYingjie 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 HettingerRaymond 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 CrottiAndrea 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 ramarajuKracekumar 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 ...
    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 ErichCartErichCart 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, ...
    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 HermanJon 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 ShevitzDanny 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 KauweMartin 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 SchattenAlexander 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 PopaClaudiu 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 FnordBob 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 ...
    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 HermanJon 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 SnodgrassJoe 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
    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'AmbrosioKen 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 KorneychukRouslan 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 ...
    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 FrederichEric 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' ...
    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 PeyretJ 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 SuberviVictor 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 ...
    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 HolmesRichard 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 LadaskyJohn 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 EzequielJustin 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 ...
    Mar 25, 2011 at 3:19 pm
    Mar 26, 2011 at 12:07 am
  • 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 ...
    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 BakkerKees 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 SanoyoJoseph 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 pawMonkeys 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 MeyerJordan Meyer
    Mar 29, 2011 at 3:37 am
    Mar 31, 2011 at 12:29 am
  • 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 ...
    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 ...
    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 KauweMartin 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 RenVincent 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 FunkMatt 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 ...
    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 ...
    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 BrittonGerald 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 ParaschivVictor 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' ...
    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 CoyArthur 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 pawMonkeys 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 JohnsonTim Johnson
    Mar 12, 2011 at 7:53 pm
    Mar 14, 2011 at 11:21 pm
Group Navigation
period‹ prev | Mar 2011 | next ›
Group Overview
grouppython-list @

456 users for March 2011

Steven D'Aprano: 63 posts Terry Reedy: 60 posts Dan Stromberg: 44 posts Eryksun (): 40 posts MRAB: 31 posts N00m: 25 posts Stefan Behnel: 25 posts Ian Kelly: 22 posts Jean-Michel Pichavant: 22 posts Santoso Wijaya: 22 posts Arthur Mc Coy: 21 posts Chris Rebert: 21 posts Grant Edwards: 21 posts Benjamin Kaplan: 20 posts Peter Otten: 19 posts Tim Johnson: 19 posts Paul Rubin: 18 posts John Nagle: 16 posts Martin De Kauwe: 16 posts Raymond Hettinger: 16 posts
show more