Search Discussions

668 discussions - 4,157 posts

  • In answering the recent question by Mark Tarver, I think I finally hit on why Lisp programmers are the way they are (in particular, why they are often so hostile to the "There should only be one ...
    Carl BanksCarl Banks
    Apr 25, 2009 at 6:06 am
    Apr 29, 2009 at 12:44 pm
  • I'm coming from fortran and c background so I'm certainly biased by them. But if you could explain one thing to me: in fortran for example: for i=1,n goes from 1,2,3,4,...,n in python for example: ...
    Lada KugisLada Kugis
    Apr 1, 2009 at 12:24 am
    Apr 7, 2009 at 5:45 pm
  • Hi I am looking for one of those experimental languages that might be combination of python+basic. Now thta sounds weird and awkward I know. The reason I am asking is that I always liked how I could ...
    Apr 17, 2009 at 8:37 pm
    Apr 21, 2009 at 4:59 pm
  • I propose the following PEP for inclusion to Python 3.1. Please comment. Regards, Martin Abstract ======== Namespace packages are a mechanism for splitting a single Python package across multiple ...
    Martin v. LöwisMartin v. Löwis
    Apr 2, 2009 at 3:32 pm
    Apr 29, 2009 at 6:41 am
  • Is there any obvious reason why [False,True] and [True,True] gives [True, True] Python 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
    Apr 20, 2009 at 7:03 am
    Apr 29, 2009 at 2:35 am
  • I want to compare two binary files and see if they are the same. I see the filecmp.cmp function but I don't get a warm fuzzy feeling that it is doing a byte by byte comparison of two files to see if ...
    Apr 13, 2009 at 7:54 pm
    Apr 18, 2009 at 8:19 am
  • Hello, Is there a way to easily build an object that behaves exactly like a float, but whose value can be changed? The goal is to maintain a list [x, y,?] of these float-like objects, and to modify ...
    Eric Le BigotEric Le Bigot
    Apr 14, 2009 at 1:03 pm
    May 1, 2009 at 7:19 am
  • Hi there, Exploring the Python standard library, I was surprised to see that several packages (ConfigParser, logging...) use mixed case for methods all over the place. I assume that they were written ...
    Emmanuel SurleauEmmanuel Surleau
    Apr 19, 2009 at 4:43 pm
    Apr 21, 2009 at 10:23 am
  • Hi, I was getting some surprising false positives as a result of not expecting this: all(element in item for item in iterable) to return True when 'iterable' is empty. I guess it goes into hairy ...
    John O'HaganJohn O'Hagan
    Apr 12, 2009 at 4:00 am
    Apr 20, 2009 at 4:22 pm
  • python's list needs a thing list.clear() like c# arraylist and python needs a writeline() method
    Online ServiceOnline Service
    Apr 2, 2009 at 10:25 pm
    Apr 5, 2009 at 11:38 am
  • Hello everyone, I am wanting to create an installer for my project. I first use py2exe to create win32 executables and then would like to have an easy to use (for the end user) installer. I would ...
    Gabriel RossettiGabriel Rossetti
    Apr 22, 2009 at 9:17 am
    Apr 23, 2009 at 11:10 pm
  • Hello I'd like to go through a list of e-mail addresses, and extract those that belong to well-known ISP's. For some reason I can't figure out, Python shows the whole list instead of just e-mails ...
    Gilles GanaultGilles Ganault
    Apr 8, 2009 at 9:56 am
    Apr 10, 2009 at 9:03 am
  • I am going around in circles right now and have to admit I do not understand what is going on with import of hierarchical packages/modules. Perhaps someone can get me on the road again. Here is a ...
    Dale AmonDale Amon
    Apr 29, 2009 at 5:52 pm
    May 1, 2009 at 7:00 am
  • Hi, I am trying to work out if its possible, to create a virtual serial port with Python? Would anyone know how to go about this in code? Any help would be greatly appreciated! :) I have a had a ...
    Stuart DavenportStuart Davenport
    Apr 10, 2009 at 6:59 pm
    Apr 19, 2009 at 7:30 pm
  • Hi all, I am a programmer who works with some different kinds of programming languages, like python, C++(in COM), action script, C#, etc. Today, I realized that, what ever language I use, I always ...
    Apr 1, 2009 at 7:44 am
    Apr 4, 2009 at 12:32 pm
  • Hi, I've just stumbled over this (http://showmedo.com/) and being the very visual person I am, it seems like it could be a good way to learn about python. However, before I smack down $60, I wondered ...
    Astley Le JasperAstley Le Jasper
    Apr 28, 2009 at 3:09 pm
    May 21, 2009 at 6:14 pm
  • What is the rationale for considering all instances true of a user- defined type? Is it strictly a practical stipulation, or is there something conceptually true about objects? ''' ...
    Aaron BradyAaron Brady
    Apr 28, 2009 at 6:11 am
    May 2, 2009 at 8:23 am
  • I'm proposing the following PEP for inclusion into Python 3.1. Please comment. Regards, Martin PEP: 383 Title: Non-decodable Bytes in System Character Interfaces Version: $Revision: 71793 $ ...
    Martin v. LöwisMartin v. Löwis
    Apr 22, 2009 at 6:50 am
    Apr 30, 2009 at 11:02 pm
  • It seems to me that mailbox.mbox.add() sets the access time of a mbox file as well as the modification time. This is not good for MUAs that detect new mail by looking to see if the access time is ...
    Apr 23, 2009 at 10:50 pm
    Apr 28, 2009 at 8:59 pm
  • I have a program that is generated from a generic process. It's job is to check to see whether records (replicated from another system) exist in a local table, and if it doesn't, to add them. I have ...
    Carbon ManCarbon Man
    Apr 27, 2009 at 3:01 am
    Apr 29, 2009 at 11:22 am
  • What is the consensus of the Python community regarding these code checkers? In particular, are the stylistic recommendations that pylint makes considered sensible/valid? Are there any other tools ...
    Apr 22, 2009 at 1:11 am
    Apr 27, 2009 at 8:17 pm
  • from subprocess import * check_call(['mode', 'COM1:9600,N,8,1,P'],shell=True) while True: with open('com1', 'r') as f: for line in f: print('line') This works very well except for one thing. After a ...
    Apr 2, 2009 at 5:01 pm
    Apr 7, 2009 at 9:51 pm
  • This page says that Python lists are often flexible arrays http://www.brpreiss.com/books/opus7/html/page82.html but also says that their representation is implementation dependent. As far as I see ...
    Mark TarverMark Tarver
    Apr 24, 2009 at 3:19 pm
    Apr 27, 2009 at 7:18 pm
  • What is the best way to compare the *contents* of two different lists regardless of their respective order? The lists will have the same number of items, and be of the same type. E.g. a trivial ...
    Apr 24, 2009 at 1:31 am
    Apr 25, 2009 at 11:39 pm
  • [off but interesting topic] Hi folks, I've come across many times the claim that 'joins are bad' for large databases because they don't scale. Okay, makes sense, we agree. But what I don't get, ...
    Daniel FetchinsonDaniel Fetchinson
    Apr 16, 2009 at 6:45 pm
    Apr 19, 2009 at 5:04 am
  • Inspired by recent threads (and recalling my first message to Python edu-sig), I did some Internet searching on producing prime numbers using Python generators. Most algorithms I found don't go for ...
    John PosnerJohn Posner
    Apr 4, 2009 at 6:50 pm
    Apr 13, 2009 at 11:52 am
  • Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote "python", this should take me to the python command line, but it did not! i'm getting : python is ...
    Apr 22, 2009 at 7:20 am
    Apr 23, 2009 at 7:23 am
  • I'm trying to design an iterator that produces two lists. The first list will be a list of unique pairings and the second will be a list of items that weren't used in the first list. After each ...
    Apr 11, 2009 at 3:50 am
    Apr 15, 2009 at 9:08 pm
  • Hi all! I'm writing a program that presents a lot of numbers to the user, and I want to let the user apply moderately simple arithmentics to these numbers. One possibility that comes to mind is to ...
    Joel HedlundJoel Hedlund
    Apr 9, 2009 at 3:56 pm
    Apr 11, 2009 at 4:29 pm
  • Give the following code.. ... def __init__(self): ... self.count = -1 ... def next(self): ... self.count +=1 ... if self.count < 4: ... return self.count ... else: ... raise StopIteration ... ... ...
    Apr 2, 2009 at 10:14 pm
    Apr 3, 2009 at 9:57 am
  • I guess I did not articulate myself well enough. I was just looking for a toy to play around. I never suggested that Python+Basic would be better than Python and everyone should use it. Python is ...
    Apr 17, 2009 at 9:21 pm
    Apr 21, 2009 at 2:52 am
  • Hi all, I have a problem with Condition.wait(), it doesn't return after the given timeout. The thing is that if I try to create a simple program, it works as expected, but in the actual code, the ...
    Stephane BisingerStephane Bisinger
    Apr 18, 2009 at 1:20 am
    Apr 19, 2009 at 7:41 pm
  • I have a script like this myscript.py def func01() def func02() def func03() .... def funcnn() How can i execute my func in the code ? import myscript for i in range(1,n): myscript.func?? many thanks ...
    Apr 17, 2009 at 7:00 am
    Apr 18, 2009 at 7:52 am
  • Hi all, I'm having a weird problem with a regular expression (tested in 2.6 and 3.0): Basically, any of these: _re_comments = re.compile(r'^(([^\\]+|\\.|"([^"\\]+|\\.)*")*)#.*$') _re_comments = ...
    David LiangDavid Liang
    Apr 9, 2009 at 9:56 am
    Apr 17, 2009 at 8:48 pm
  • I want to start learning python and not wanna waste my time learning python 2.x ,so i need your advise to what IDE to use for python 3.0.1 thank you
    Apr 15, 2009 at 10:36 pm
    May 4, 2009 at 12:29 pm
  • Anybody have a solution for Windows (XP) Explorer search not finding ordinary text in *.py files? Thanks.
    John DoeJohn Doe
    Apr 4, 2009 at 4:21 am
    Apr 27, 2009 at 7:55 pm
  • Hello all, I wonder if someone could help me with sorting two corresponding lists. For instance the first list contains some items, and the second list contains their value (higher is better) items = ...
    Apr 20, 2009 at 4:10 pm
    Apr 24, 2009 at 5:11 pm
  • Hello all, I really like the lambda function for a particular task i have: I am writing some simulation software, working with many different materials. Each material with many different properties, ...
    Apr 15, 2009 at 1:47 pm
    Apr 17, 2009 at 8:46 pm
  • Hello, I'm python newbie and i need to write gui for my school work in python. I need to write it really quick, because i haven't much time .) So question is, which of gui toolkits should i pick and ...
    Apr 12, 2009 at 1:07 pm
    May 28, 2009 at 11:30 am
  • i try to load a big file into a dict, which is about 9,000,000 lines, something like 1 2 3 4 2 2 3 4 3 4 5 6 code for line in open(file) arr=line.strip().split('\t') dict[arr[0]]=arr but, the dict is ...
    Forrest yangForrest yang
    Apr 28, 2009 at 12:54 pm
    Apr 30, 2009 at 7:43 am
  • I'm using the CSV library to process a large amount of data - 28 files, each of 130MB. Just reading in the data from one file and filing it into very simple data structures (numpy arrays and a ...
    Apr 27, 2009 at 11:22 am
    Apr 29, 2009 at 11:42 pm
  • So I installed the module and tryed to make it work but... It gave me: Traceback (most recent call last): File "first.py", line 24, in <module client2.connect() File ...
    Apr 28, 2009 at 3:52 pm
    May 5, 2009 at 11:21 am
  • Hello, I'm trying to do a if statement with a function inside it. I want to use that variable inside that if loop , without defining it. def Test(): return 'Vla' I searching something like this: if ...
    Apr 24, 2009 at 10:00 am
    May 4, 2009 at 10:49 pm
  • Hi. I'm building a script that closely follows a producer-consumer model. In this case, the producer is disk-bound and the consumer is cpu-bound, so I'm using the multiprocessing module (python2.5 ...
    Luis ZarrabeitiaLuis Zarrabeitia
    Apr 30, 2009 at 8:49 pm
    May 4, 2009 at 1:52 pm
  • I have a subclass of int where I want all the standard arithmetic operators to return my subclass, but with no other differences: class MyInt(int): def __add__(self, other): return ...
    Steven D'ApranoSteven D'Aprano
    Apr 14, 2009 at 9:09 am
    Apr 18, 2009 at 8:33 pm
  • On behalf of the Python community, I'm happy to announce the availability of Python 2.6.2. This is the latest production-ready version in the Python 2.6 series. Dozens of issues have been fixed since ...
    Barry WarsawBarry Warsaw
    Apr 15, 2009 at 3:45 pm
    Apr 17, 2009 at 11:13 pm
  • Hello all, I have a question about the if/else aspect of list comprehension: I would like to go through a list and place quotes around an item if it is a string, and keep the item the same if it's ...
    Mike HMike H
    Apr 10, 2009 at 9:07 pm
    Apr 12, 2009 at 8:00 am
  • A similar discussion has already occurred, over 4 years ago: ...
    Apr 7, 2009 at 3:17 am
    Apr 9, 2009 at 5:09 am
  • Hi, I tried writing a small game on a pygame layer. The graphics are fine, and at the moment, it is not graphics intensive. It is multi- player, and for the communication, I am sending a pickle ...
    Aaron BradyAaron Brady
    Apr 2, 2009 at 12:58 am
    Apr 5, 2009 at 2:11 am
  • Hi: If I use an integer to represent bits: e.g. 99 represents '1100011' How can I locate, say the second bit of 99(i.e. '1')? Although bin(99)[4] could be used to locate it, this transform cost too ...
    Li WangLi Wang
    Apr 28, 2009 at 2:36 pm
    Apr 30, 2009 at 2:35 am
Group Navigation
period‹ prev | Apr 2009 | next ›
Group Overview
grouppython-list @

801 users for April 2009

Lawrence D'Oliveiro: 115 posts Aahz: 102 posts MRAB: 97 posts Aaron Brady: 96 posts Gabriel Genellina: 79 posts Scott David Daniels: 77 posts Steven D'Aprano: 74 posts Peter Otten: 70 posts Steven D'Aprano: 69 posts Chris Rebert: 64 posts John Machin: 64 posts Diez B. Roggisch: 63 posts Andrew cooke: 57 posts Terry Reedy: 56 posts Martin v. Löwis: 53 posts Piet van Oostrum: 52 posts Esmail: 46 posts Carl Banks: 45 posts Dave Angel: 45 posts Arnaud Delobelle: 44 posts
show more