Search Discussions

816 discussions - 5,108 posts

  • Hi, I'm new to Python and I'd like to know if Python has the following support: *please answer to each individually, thanks* 1. Multi line comments 2. Functions as variables: a. functions can be ...
    Richard BlackwoodRichard Blackwood
    Oct 5, 2004 at 3:10 am
    Dec 6, 2004 at 10:41 am
  • Is it correct to say that strong/weak typing does not make a difference if one does not use any pointers (or adress-taking operator)? More concretely, I am thinking particularly of Python vs C++. So, ...
    Gabriel ZachmannGabriel Zachmann
    Oct 28, 2004 at 4:17 pm
    Nov 13, 2004 at 1:45 am
  • there seems to be a serious problem with allowing numbers to grow in a nearly unbounded manner, as int/long unification does: it hides bugs. most of the time, i expect my numbers to be small. 2**31 ...
    Oct 25, 2004 at 12:56 pm
    Oct 31, 2004 at 2:34 am
  • Let's say I use a GPL'd python module (e.g. something installed in site-packages) in an application. Let's also say I use py2exe to package and distribute said application. Is what I'm distributing a ...
    Grant EdwardsGrant Edwards
    Oct 25, 2004 at 3:16 pm
    Dec 16, 2004 at 10:50 pm
  • How hard/easy is it to extend the Python syntax? Perhaps there are macro facilities for this? I'd like to add messages and message passing, for example. Thanks.
    Arich ChanachaiArich Chanachai
    Oct 4, 2004 at 3:26 pm
    Oct 11, 2004 at 2:55 am
  • Hi, I'm working on an C++/embedded-Python application that will run on multi-CPU hardware and I need to efficiently distribute the execution of multiple scripts across the CPUs. I'm embedding Python ...
    Oct 5, 2004 at 4:45 am
    Oct 26, 2004 at 7:22 am
  • I wrote a function to compare whether two strings are "similar" because I'm using python to make a small text adventure engine and I want to it to be responsive to slight mispellings, like "inevtory" ...
    Oct 8, 2004 at 8:19 pm
    Oct 13, 2004 at 7:10 pm
  • I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but ...
    Andrea GriffiniAndrea Griffini
    Oct 18, 2004 at 8:06 pm
    Oct 24, 2004 at 1:05 am
  • Hello, another Perl/Python question: the subject says it all. Perl is going to change dramatically to become a more powerful and easier to (read|write) language. Is Python taking a similar step (- ...
    Reinhold BirkenfeldReinhold Birkenfeld
    Oct 30, 2004 at 9:18 am
    Nov 5, 2004 at 8:51 am
  • A few weeks ago, the suggestion was made on Python-Dev that it might be time to consider replacing the ConfigParser module and that we should hold a "shootout" (ie ask for implementations and see ...
    Michael ChermsideMichael Chermside
    Oct 17, 2004 at 10:13 pm
    Oct 25, 2004 at 9:59 am
  • Hi, I wonder, does Python support generic programming paradigm, and to what extent (I guess, it doesn't do it in full)? And (or) does it move in that direction? Will we ever see concept WellAlright: ...
    Roman SuziRoman Suzi
    Oct 21, 2004 at 6:03 pm
    Dec 4, 2004 at 12:08 am
  • Hi all, Can someone who has use PHP before and know quite well about the language, tell me what are the stuffs that Python offers and PHP doesn't. A few examples will be nice. I know about the date ...
    Oct 22, 2004 at 6:03 am
    Oct 27, 2004 at 3:59 pm
  • Hi all! How does Python pass arguments to a function? By value or by reference? Thanks, Riccardo Rossi.
    Riccardo RossiRiccardo Rossi
    Oct 18, 2004 at 3:30 pm
    Oct 20, 2004 at 10:00 pm
  • I'd like to formalise slightly the license I release my projects under. At the moment it's 'free to use, modify, distribute and relicense'. This is basically fine as I don't want t oprevent people ...
    Michael FoordMichael Foord
    Oct 27, 2004 at 11:31 am
    Oct 31, 2004 at 7:10 pm
  • Hello My question has to do with python and linux - I was interested in finding out what it would take to reimplement the Linux Kernel in python basically just taking the source code from linux and ...
    Oct 13, 2004 at 10:32 pm
    Oct 18, 2004 at 12:02 am
  • Is there a purpose for using trailing and leading double underscores for built-in method names? My impression was that underscores are supposed to imply some sort of pseudo-privatization, but would ...
    Chris S.Chris S.
    Oct 21, 2004 at 5:57 am
    Nov 2, 2004 at 4:38 pm
  • After searching through comp.lang.python and the web regarding metaclasses, I could not find an example for customing classes using metaclass parameters. I want to be able to create a class at ...
    Oct 3, 2004 at 3:10 am
    Oct 6, 2004 at 5:02 pm
  • One thing I liked about Lisp was the ability to use the question mark (and the exclamation mark) in function names. I found this particularily useful when checking boolean properties of a object like ...
    Andr? N?ssAndr? N?ss
    Oct 6, 2004 at 3:01 pm
    Oct 13, 2004 at 7:17 pm
  • The pragmatic programmers (Dave & Andy) are spreading a good word about RubyOnRails. I was wondering if there are any Python programmers who are /also/ familiar with Rails - and if they could ...
    Flab baFlab ba
    Oct 31, 2004 at 1:55 am
    Nov 17, 2004 at 4:42 pm
  • Two smallish things that have been bugging me; I'm not sure whether they're actually broken or not, but anyway here it goes: 1. ``os.system`` (and co): Shouldn't ``os.system``'s signature really be ...
    Alexander SchmolckAlexander Schmolck
    Oct 1, 2004 at 4:53 pm
    Oct 4, 2004 at 11:10 pm
  • I'm trying to find an IDE for python that I'm comfortable with. For my needs IDLE actually works 99% of the time, but on my current project I need to have lots of files open at once, and I would ...
    Oct 10, 2004 at 2:28 am
    Oct 22, 2004 at 8:49 am
  • Hi , How do you identify the last line of a file? I am in a "for" loop and need to know which is the last line of the file while it is being read in this loop. Thanks Kat
    Oct 7, 2004 at 7:29 am
    Oct 13, 2004 at 1:45 pm
  • I hesitate a bit to post this, but... on the Italian Python NG, somebody was asking whether there was any way to convert an integer number x into a string which represents it in an arbitrary base N ...
    Alex MartelliAlex Martelli
    Oct 29, 2004 at 9:58 pm
    Nov 1, 2004 at 9:09 pm
  • hi! is there an authoritative source on the performance of scripting languages such as python vs. something like java, c, c++. its for a report, so it would be awesome if i could quote some ...
    Oct 27, 2004 at 5:26 pm
    Nov 27, 2004 at 10:15 pm
  • Hi, just wondering what options I would have if I wanted to use Python to produce real-time graphs. Is there any plotting package suitable for this. Thanks, Mike
    Oct 28, 2004 at 3:23 pm
    Oct 31, 2004 at 2:54 pm
  • Rodrigo B. de Oliveira released version 0.4.3 of boo, I thought I'd share it here since there has been so much interest for similar projects like IronPython. http://boo.codehaus.org/ Boo is a ...
    Doug HoltonDoug Holton
    Oct 8, 2004 at 11:09 pm
    Oct 14, 2004 at 12:02 pm
  • Ville Vainio: Few more notes on the language. I don't know if I can really suggest improvements to the language... but I hope to learn something :-) I think some things are better in Delphi/Pascal ...
    Oct 21, 2004 at 10:16 pm
    Oct 26, 2004 at 7:02 am
  • How does one detect the EOF gracefully? Assuming I have a pickle file containing an unknown number of objects, how can I read (i.e., pickle.load()) until the EOF is encountered without generating an ...
    Oct 7, 2004 at 6:03 pm
    Oct 14, 2004 at 9:29 am
  • Hello all, Here I am using some deeply nested, tree-like data structures. In some situations I need to traverse the tree; the old-style way to do it is to write a recursive method on the node class, ...
    Carlos RibeiroCarlos Ribeiro
    Oct 18, 2004 at 11:43 am
    Oct 20, 2004 at 5:43 pm
  • I have a number of strings, containing wildcards (e.g. 'abc#e#' where # is anything), which I want to match with a test string (e.g 'abcdef'). What would be the best way for me to store my strings so ...
    Chris S.Chris S.
    Oct 16, 2004 at 9:11 am
    Oct 18, 2004 at 3:01 am
  • I seem often to allow list/tuple arguments to be a singleton. This leads to code of the form if type(arg) not in (type(()),type([])): arg = [arg] or alternatively from type import ListType, TupleType ...
    Robin BeckerRobin Becker
    Oct 7, 2004 at 9:30 am
    Oct 8, 2004 at 1:09 pm
  • Hi, I am trying to find all lists of length x with elements a, b, and c. To this end, I have created the class below, but it is not quite working and I am having trouble figuring out what to change. ...
    Oct 23, 2004 at 7:37 pm
    Nov 15, 2004 at 11:40 am
  • Hello, i have a question on the following code. test_list = [1, 2, 3] for i in test_list: print i if 1 in test_list: test_list.remove(1) Why is the second item not print ? Is that a bug or a feature ...
    Thomas M.Thomas M.
    Oct 29, 2004 at 5:15 pm
    Nov 2, 2004 at 7:40 pm
  • I have some large files (between 2 & 4 GB) that I want to do a few things with. Here's how I've been using the md5 module in Python: original = file(path + f, 'rb') data = original.read(4096) ...
    Brad TilleyBrad Tilley
    Oct 17, 2004 at 4:34 pm
    Oct 19, 2004 at 11:06 pm
  • Jef Raskin (namedropping) has pointed me at a neat scheme for quoting arbitrary textual matter called "Mandis quotes". Since google is ignorant of the phrase, I presume that Jef made it up. It is ...
    Russell NelsonRussell Nelson
    Oct 4, 2004 at 2:45 pm
    Oct 6, 2004 at 4:23 am
  • ctypes 0.9.2 released - Oct 28, 2004 =================================== Overview ctypes is a ffi (Foreign Function Interface) package for Python 2.3 and higher. ctypes allows to call functions ...
    Thomas HellerThomas Heller
    Oct 28, 2004 at 6:38 pm
    Nov 27, 2004 at 6:01 pm
  • This is my first post here, I hope this is the right place to talk about such things. I have few comments and notes on the Python language. I've just started to learn it; this is negative because I'm ...
    Oct 12, 2004 at 8:38 pm
    Oct 17, 2004 at 8:34 pm
  • An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-list/attachments/20041005/1034267d/attachment.html ? Hi I want to develope a simple Database connectivity program with ...
    Sandeep Avinash GohadSandeep Avinash Gohad
    Oct 5, 2004 at 12:02 pm
    Oct 14, 2004 at 10:18 am
  • [This is a repost from a message to python-dev on the users' list, because python-dev-ers thought a broader discussion of this is a good idea.] Last December, we had a short thread discussing (in ...
    Gerhard HaeringGerhard Haering
    Oct 21, 2004 at 8:13 am
    Oct 24, 2004 at 1:28 am
  • def warehouse(stock, factory=None): """warehouse(stock, factory=None) - iavailable, iremainder. Iterate over stock, yielding each value. Once the 'stock' sequence is exhausted, the factory function ...
    Robert BrewerRobert Brewer
    Oct 18, 2004 at 8:51 pm
    Oct 23, 2004 at 3:58 am
  • Hi, I need to replace the following loop with a list comprehension: res=[0] for i in arange(10000): res[0]=res[0]+i In practice, res is a complex 2D numarray. For this reason, the regular output of a ...
    Darren DaleDarren Dale
    Oct 14, 2004 at 2:36 pm
    Oct 18, 2004 at 11:02 am
  • 18


    hi! what would happen if i try to access a variable locked by another thread? i am not trying to obtain a lock on it, just trying to access it. cheers ...
    Oct 13, 2004 at 11:05 am
    Oct 13, 2004 at 8:07 pm
  • Hi All, I have tried to come up with a way to do this myself and all I end up with is very long code. What I have is a say item1, item4, item2, item1 etc... What I want to do is append to each item ...
    M. CliftM. Clift
    Oct 3, 2004 at 2:23 pm
    Oct 5, 2004 at 5:49 pm
  • Ok so this is really an HTTP question... but I'd far rather ask it here !! If I don't get an answer I'll have to try elsewhere I guess :-( I'm developing a simple web user statistics program and I'd ...
    Oct 7, 2004 at 8:58 am
    Oct 9, 2004 at 9:31 am
  • Hi all, I've just a few hours looking via google, http://c2.com/cgi/wiki, and the python.org wiki, but haven't had luck, so it's time to ask: I'm looking for a stand alone Python wiki engine that ...
    Brian van den BroekBrian van den Broek
    Oct 7, 2004 at 7:32 am
    Oct 9, 2004 at 1:02 am
  • As part of a pet project of mine, I needed to find a way to re-execute a class declaration[1]. The reason behind it was simple: the class declaration in question had some external dependencies that ...
    Carlos RibeiroCarlos Ribeiro
    Oct 6, 2004 at 2:09 am
    Oct 6, 2004 at 8:38 pm
  • Recently, I've been fortunately placed in a position to possibly mandate the use of python for certain tasks in my new organization. Now, I've inherited an environment which is windows-centric, ...
    Alia KhouriAlia Khouri
    Oct 2, 2004 at 8:35 pm
    Oct 4, 2004 at 6:42 pm
  • First off, sorry for this message-in-a-bottle-like post... I haven't been able to phrase my questions well enough to get a meaningful answer from Google in my research. OTOH, it is standard flattery ...
    Fred PacquierFred Pacquier
    Oct 26, 2004 at 1:40 pm
    Oct 27, 2004 at 8:50 am
  • I have a the list: info = [['Ali',18], ['Zainab',16], ['Khalid',18]] I want this info to show on a tk window like this: I was wondering how to do this?
    Oct 7, 2004 at 10:31 pm
    Oct 14, 2004 at 2:08 pm
  • [apologies if you got this twice] ----- Original Message ----- From: "Josiah Carlson" <jcarlson at uci.edu Steve, Andrew, Josiah, Thanks for your answers. The outgoing SMTP is multi-threaded, so the ...
    Tim WilliamsTim Williams
    Oct 8, 2004 at 11:34 am
    Oct 11, 2004 at 12:16 pm
Group Navigation
period‹ prev | Oct 2004 | next ›
Group Overview
grouppython-list @

908 users for October 2004

Alex Martelli: 314 posts Josiah Carlson: 174 posts Peter L Hansen: 131 posts Andrew Dalke: 117 posts Cliff Wells: 100 posts Carlos Ribeiro: 91 posts Steve Holden: 89 posts Bengt Richter: 86 posts Werner Merkl: 83 posts Richard Blackwood: 71 posts Grant Edwards: 70 posts Michael Foord: 67 posts Peter Otten: 62 posts Ville Vainio: 62 posts Diez B. Roggisch: 58 posts Michael Hoffman: 52 posts Jeff Shannon: 47 posts Jeremy Bowers: 46 posts Robert Brewer: 43 posts Steven Bethard: 43 posts
show more