Search Discussions

699 discussions - 4,013 posts

  • This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
    Maurice LINGMaurice LING
    Nov 5, 2004 at 5:58 am
    Dec 9, 2004 at 2:09 am
  • http://appft1.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PG01&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.html&r=1&f=G&lP&s1=%2220040230959%22.PGNR.&OS=DN/20040230959&RS=DN/20040230959
    Neal D. BeckerNeal D. Becker
    Nov 19, 2004 at 5:40 pm
    Dec 12, 2004 at 9:39 am
  • Hello, def test(data): i = ? This is the line I have trouble with if i==1: return data else: return data[:i] a,b,c,d = test([1,2,3,4]) How can I set i based on the number of output arguments defined ...
    Darren DaleDarren Dale
    Nov 14, 2004 at 10:12 pm
    Nov 21, 2004 at 1:21 pm
  • Hello all, So Zope still lives, yay. Well, I like that they use Python. <rant What amazed me is they write that they "added types to the variables and hope that it will be added to the Python project ...
    Will StuyvesantWill Stuyvesant
    Nov 14, 2004 at 7:09 pm
    Nov 17, 2004 at 4:10 pm
  • I promised I'd put together a PEP for a 'generic object' data type for Python 2.5 that allows one to replace __getitem__ style access with dotted-attribute style access (without declaring another ...
    Steven BethardSteven Bethard
    Nov 29, 2004 at 11:19 pm
    Dec 7, 2004 at 11:52 am
  • hi all, I'm a newbie Python programmer with a C++ brain inside. I have a lightweight framework in which I design a base class and expect user to extend. In other part of the framework, I heavily use ...
    Mike MengMike Meng
    Nov 23, 2004 at 3:30 am
    Nov 29, 2004 at 10:09 am
  • I am a very satisfied user of Python and have been for number of years. I would never willing use another language. I wish all good things for Python, and that moves me to express some thoughts about ...
    Stephen FergStephen Ferg
    Nov 2, 2004 at 1:39 pm
    Nov 4, 2004 at 2:25 pm
  • Is there any generic way to use C++ libraries from within Python. I seem to recall that there are tools to generate wrappers for C-libraries semi-automatically. But those were still way too ...
    Gabriel ZachmannGabriel Zachmann
    Nov 5, 2004 at 4:45 pm
    Nov 13, 2004 at 9:23 am
  • OK, stupid question, but it?s been bothering me for ages.. :-) I love Python to bits, but .pyc files always litter my source tree, and they?ve always bothered me. I haven?t used Python in a while, so ...
    Eddie ParkerEddie Parker
    Nov 14, 2004 at 6:24 am
    Nov 23, 2004 at 7:42 pm
  • Is it possible to prototype an operating system in Python? If so, what would such a task entail? (i.e. How would one write a boot-loader in Python?) - Richard B.
    Richard BlackwoodRichard Blackwood
    Nov 6, 2004 at 2:23 pm
    Nov 9, 2004 at 1:55 pm
  • Hi, With awk, I can do something like $ echo 'hello' |awk '{a[$1]++}END{for(i in a)print i, a[i]}' That is, a['hello'] was not there but allocated and initialized to zero upon reference. With Python, ...
    Weiguang ShiWeiguang Shi
    Nov 25, 2004 at 6:38 pm
    Dec 9, 2004 at 2:36 pm
  • I have had a look at the signal module and the example and came to the conclusion that the example wont work if you try to do this in a thread. So is there a chance similar code will work in a ...
    Antoon PardonAntoon Pardon
    Nov 9, 2004 at 11:56 am
    Nov 23, 2004 at 7:48 am
  • PEP: 336 Title: Make None Callable Version: $Revision: 1.1 $ Last-Modified: $Date: 2004/11/03 16:58:30 $ Author: Andrew McClelland Status: Draft Type: Standards Track Content-Type: text/plain ...
    The Eternal SquireThe Eternal Squire
    Nov 4, 2004 at 3:59 am
    Nov 7, 2004 at 3:33 pm
  • I'm sorry if it's an replicate. Either my e-mail program is messing with things or the python-list sent my msg to /dev/null. I couldn't find anything related in previous PEP's, so here it goes a very ...
    Fábio MendesFábio Mendes
    Nov 6, 2004 at 9:36 pm
    Nov 8, 2004 at 7:47 pm
  • See: http://www.wxpython.org/quotes.php. especially: "wxPython is the best and most mature cross-platform GUI toolkit, given a number of constraints. The only reason wxPython isn't the standard ...
    BJörn LindqvistBJörn Lindqvist
    Nov 6, 2004 at 1:40 am
    Nov 12, 2004 at 4:51 am
  • In my project, I've got dozens of similar classes with hundreds of description variables in each. In my illustrative example below, I have a Library class that contains a list of Nation classes. In ...
    Nov 2, 2004 at 1:09 am
    Nov 26, 2004 at 7:26 am
  • Hi, I've an wxPython windows that creates a thread. An object of this thread raised an exception and i want to cach it in the main thread, that of the windows (I want this becouse the first ...
    Zunbeltz IzaolaZunbeltz Izaola
    Nov 2, 2004 at 4:28 pm
    Nov 4, 2004 at 2:44 pm
  • I've just made available the first general release of a configuration module for Python. It has grown out of the need to make configuration easier and more powerful (for developers and end users) ...
    Vinay SajipVinay Sajip
    Nov 3, 2004 at 2:50 pm
    Nov 10, 2004 at 9:29 am
  • Say I have a dictionary like the following {1:'one',2:'two',4:'three',8:'four',16:'five', etc...} and I am given some numbers, say 22, 25, and 9. I want to determine the keys, powers of 2, that ...
    Sean BerrySean Berry
    Nov 8, 2004 at 7:48 pm
    Nov 10, 2004 at 3:47 am
  • I'm very new to Python, but I couldn't find anything in the docs or faq about this. And I fished around in the IDLE menus but didn't see anything. Is there a tool that can determine all the ...
    Nov 19, 2004 at 3:38 am
    Dec 1, 2004 at 10:06 pm
  • Hi there, Background of this question is: I want to convert all words <word except 'and' / 'or' / 'and not' from a string into '*<word *'. Example: I have the following string: "test and testing and ...
    Nico GrubertNico Grubert
    Nov 25, 2004 at 2:43 pm
    Nov 29, 2004 at 12:16 am
  • Greetings - I've embarked on a small learning project, trying to get a better grasp of the asyncore and asynchat modules. The project involves building a simple instant messenger application for use ...
    Rob SnyderRob Snyder
    Nov 24, 2004 at 2:57 pm
    Dec 6, 2004 at 5:57 pm
  • Some statements use : in the tail such as while x 0: and def func(): What is the meaning and the usage of : in Python?
    Chang LIChang LI
    Nov 26, 2004 at 2:58 am
    Nov 30, 2004 at 10:51 am
  • Hi, we've just released Ice 2.0 with quite a lot of new features: - new language mappings for Visual Basic and Python - a new light-weight and super-efficient firewall - a streaming API that allows ...
    Michi HenningMichi Henning
    Nov 22, 2004 at 9:54 pm
    Dec 15, 2004 at 10:05 pm
  • Hi pythonistas, I am looking for methods of deploying applications with end users so that the python code is tamper proof. What are my options ? I understand I can supply .pyc or .pyo files but they ...
    Alan SheehanAlan Sheehan
    Nov 26, 2004 at 3:01 pm
    Nov 30, 2004 at 10:26 pm
  • Hello All, I'm looking at implementing DB in my program for analysis of CAD (STL Files). This database will require the basic functionality. Query Sort Delete/Add Records I did some looking at the DB ...
    Kevin McBreartyKevin McBrearty
    Nov 21, 2004 at 2:54 pm
    Nov 25, 2004 at 11:33 am
  • Hello, yesterday I met a cute person (after my dance class) who told me about an interesting experiment regarding cognition. People were told to read a typed text; However, in every word in the text, ...
    Johannes NixJohannes Nix
    Nov 11, 2004 at 9:31 pm
    Nov 17, 2004 at 10:47 pm
  • Hi all, Are there any tutorials or other resources on Windows GUI programming? Cross-platform code is not very interesting at this point, I would rather have a GUI toolkit which works the Python-way, ...
    Thomas EydeThomas Eyde
    Nov 9, 2004 at 8:01 am
    Nov 14, 2004 at 8:51 pm
  • My initial problem was to initialize a bunch of dictionaries at the start of a function. I did not want to do def fn(): a = {} b = {} c = {} . . . z = {} simply because it was ugly and wasted screen ...
    Frohnhofer, JamesFrohnhofer, James
    Nov 9, 2004 at 4:40 pm
    Nov 12, 2004 at 3:48 am
  • Dear all, is there a way in Python to comment out blocks of code without putting a # in front of each line? Somethings like C's /* block of code here is commented out */ Thanks, Riko
    Riko WichmannRiko Wichmann
    Nov 30, 2004 at 8:49 am
    Dec 1, 2004 at 5:02 am
  • Since Python floats are implemented using C doubles, assuming IEEE 754 compliance, certain operations should result in NaN or infinity. Don't such special values hide errors? Would we want our ...
    Nov 17, 2004 at 9:30 am
    Nov 21, 2004 at 4:31 am
  • Refering to the following codes I found, there is nothing displayed in the console, may I ask why? def thrd(param): # the thread worker function print "Received",param import thread for i in ...
    Nov 19, 2004 at 2:42 pm
    Nov 20, 2004 at 12:41 pm
  • Hi, I would like to know how can I create and assign variables by de-referencing the values in other variable in Python. I can illustrate what I mean by an example of perl $a = "task_id"; $i = "1"; ...
    Nov 2, 2004 at 7:30 am
    Nov 17, 2004 at 4:26 pm
  • Hi, I have been developing sites and cms's for the past few years using PHP and mysql. I've been interested in learning a new language and was considering Python. I have a pretty decent grasp of OOP ...
    Nov 2, 2004 at 9:28 pm
    Nov 16, 2004 at 8:59 pm
  • I have built a script inspired by a post on Speno's Pythonic Avocado: http://www.pycs.net/users/0000231/weblog/2004/01/04.html#P10 I'm setting NUM_FEEDERS to 1000. Is that crazy? Are there a better ...
    Jacob FriisJacob Friis
    Nov 4, 2004 at 3:21 pm
    Nov 12, 2004 at 7:23 am
  • On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4. Python 2.4 is a final, stable release, and we can recommend that Python users ...
    Anthony BaxterAnthony Baxter
    Nov 30, 2004 at 12:31 pm
    Dec 1, 2004 at 4:13 pm
  • Hello everyone. I have run into something which I believe is a bug or a shortcoming of the threading.Thread module. My program spawns 15 threads. For this I've creating a new class with ...
    Deepak SardaDeepak Sarda
    Nov 6, 2004 at 1:58 pm
    Nov 8, 2004 at 9:02 am
  • For example, in Python in a Nutshell, Alex Martelli shows how you can run a Windows (notepad.exe) or Unix-like (/bin/vim) text editor using os.spawnv(os.P_WAIT, editor, [textfile]) But how would you ...
    David HughesDavid Hughes
    Nov 4, 2004 at 10:50 am
    Nov 6, 2004 at 1:44 pm
  • I'm looking for ways to load new class definitions at runtime (I'm not talking about object instances here, so a persistent object database isn't what I am looking for [1]). I'm aware of a few ...
    Carlos RibeiroCarlos Ribeiro
    Nov 11, 2004 at 9:06 pm
    Nov 26, 2004 at 11:40 am
  • Has anyone built PIL (1.1.4 or 1.1.5) for Python 2.4? If yes, please let me know, since I can't test a couple of my apps using PIL with 2.4 . You can even reply by email (yes, I dare use true email ...
    Christos TZOTZIOY GeorgiouChristos TZOTZIOY Georgiou
    Nov 18, 2004 at 12:57 pm
    Nov 24, 2004 at 1:22 am
  • Hi i have some errors in my code that i can't find the reason for here is the error i have 3 classes: -Song -Album -Artist Song has 3 pieces of data with getter and setter meathods: -Name | i.e. song ...
    Tim HendersonTim Henderson
    Nov 19, 2004 at 4:07 am
    Nov 22, 2004 at 4:05 am
  • Hi, Textually from the highlights of python 2.4: "Assigning to None - the compiler now treats assigning to None as a SyntaxError." I think in general assignments to built-in types, functions, and ...
    Josef MeileJosef Meile
    Nov 12, 2004 at 9:11 pm
    Nov 15, 2004 at 8:45 am
  • The distutils download page has: -------------------------------------------------------- Current stable release The current stable release is Distutils 1.0.2; you can download it as: * ...
    Colin J. WilliamsColin J. Williams
    Nov 11, 2004 at 12:08 am
    Nov 12, 2004 at 12:04 am
  • This post is not strictly Python-specific, still I would like to learn other university teachers' opinion. Currently, I'm teaching "introduction to OO programming" at the undergrad level. My syllabus ...
    Gabriel ZachmannGabriel Zachmann
    Nov 24, 2004 at 8:48 am
    Dec 6, 2004 at 9:02 am
  • The queue and condition class allow threads to wait only a limited time. However this currently is implemented by a polling loop. Now for those who like to avoid polling I have here a Tlock class ...
    Antoon PardonAntoon Pardon
    Nov 23, 2004 at 9:16 am
    Nov 30, 2004 at 12:08 am
  • Hi, I wonder whether someone could explain me a bit what's going on here: import sys # I'm running Mandrake 1o and Windows XP. print sys.version ## 2.3.3 (#2, Feb 17 2004, 11:45:40) [GCC 3.3.2 ...
    Wolfgang haefelingerWolfgang haefelinger
    Nov 20, 2004 at 5:40 pm
    Nov 29, 2004 at 10:14 pm
  • Are there any instant messenging programs out there for use in a Python app?? I've heard of Jabber, but never looke into it.
    Lucas RaabLucas Raab
    Nov 19, 2004 at 10:08 pm
    Nov 24, 2004 at 1:09 pm
  • Will someone explain this to me? Why is the empty string found at position 0? Thanks! jw
    Jaime WyantJaime Wyant
    Nov 11, 2004 at 7:36 pm
    Nov 12, 2004 at 3:55 am
  • Decorators are not 'needed'. They are a convenience. Among the things that they are meant to make more convenient are the following... class foo: @staticmethod def goo(arg, ...): pass rather than... ...
    Josiah CarlsonJosiah Carlson
    Nov 30, 2004 at 6:46 pm
    Dec 8, 2004 at 7:14 am
  • I've got a C library with about 50 calls in it that I want to wrap in Python. I know I could use some tool like SWIG, but that will give me a too-literal translation; I want to make some ...
    Roy SmithRoy Smith
    Nov 19, 2004 at 1:10 am
    Nov 22, 2004 at 11:25 pm
Group Navigation
period‹ prev | Nov 2004 | next ›
Group Overview
grouppython-list @

920 users for November 2004

Steven Bethard: 106 posts Diez B. Roggisch: 105 posts Alex Martelli: 97 posts Peter Hansen: 93 posts Josiah Carlson: 76 posts Bengt Richter: 73 posts Steve Holden: 68 posts Mike Meyer: 54 posts Carlos Ribeiro: 46 posts Jp Calderone: 44 posts Scott David Daniels: 39 posts Jeff Shannon: 38 posts Peter Otten: 37 posts Tim Jarman: 35 posts Tim Peters: 35 posts Dan Perl: 32 posts Kent Johnson: 29 posts Terry Reedy: 29 posts Skip Montanaro: 27 posts Istvan Albert: 26 posts
show more