FAQ

Search Discussions

847 discussions - 5,345 posts

  • Microsoft Hatred, FAQ Xah Lee, 20020518 Question: U.S. Judges are not morons, and quite a few others are not morons. They find MS guilty, so it must be true. Answer: so did the German population ...
    Xah LeeXah Lee
    Oct 15, 2005 at 2:01 am
    Dec 18, 2005 at 6:43 pm
  • I am contemplating getting into Python, which is used by engineers I admire - google and Bram Cohen, but was horrified to read "no variable or argument declarations are necessary." Surely that means ...
    James A. DonaldJames A. Donald
    Oct 2, 2005 at 8:52 pm
    Oct 15, 2005 at 10:38 pm
  • I want to scan a file byte for byte for occurences of the the four byte pattern 0x00000100. I've tried with this: # start import sys numChars = 0 startCode = 0 count = 0 inputFile = sys.stdin while ...
    PinkfloydhomerPinkfloydhomer
    Oct 28, 2005 at 11:06 am
    Nov 2, 2005 at 7:35 pm
  • Hi. I am interested in learning a new programming language, and have been debating whether to learn Ruby or Python. How do these compare and contrast with one another, and what advantages does one ...
    Amol VaidyaAmol Vaidya
    Oct 20, 2005 at 2:35 am
    Nov 16, 2005 at 11:50 pm
  • Is there any emerging consensus on the "best" UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the ...
    Kenneth McDonaldKenneth McDonald
    Oct 13, 2005 at 8:17 pm
    Oct 20, 2005 at 2:45 pm
  • I would need to make some high-reliability software running on Linux in an embedded system. Performance (or lack of it) is not an issue, reliability is. The piece of software is rather simple, ...
    Ville VoipioVille Voipio
    Oct 9, 2005 at 8:00 pm
    Oct 14, 2005 at 5:27 pm
  • I was wondering how people would feel if the cmp function and the __cmp__ method would be a bit more generalised. The problem now is that the cmp protocol has no way to indicate two objects are ...
    Antoon PardonAntoon Pardon
    Oct 20, 2005 at 7:14 am
    Oct 31, 2005 at 8:56 am
  • Hello All, I would like to gather some information on Python's runtime performance. As far as I understand, it deals with a lot of string objects. Does it require a lot string processing during ...
    DaveDave
    Oct 8, 2005 at 4:06 am
    Oct 14, 2005 at 9:03 pm
  • I have to lists, A and B, that may, or may not be equal. If they are not identical, I want the output to be three new lists, X,Y and Z where X has all the elements that are in A, but not in B, and Y ...
    Odd-R.Odd-R.
    Oct 10, 2005 at 7:32 am
    Oct 18, 2005 at 5:27 am
  • After working through a fair number of the challenges at www.mathschallenge.net, I noticed that some long-running functions can be helped *a lot* by caching their function results and retrieving from ...
    Lasse Vågsæther KarlsenLasse Vågsæther Karlsen
    Oct 8, 2005 at 1:20 pm
    Oct 13, 2005 at 12:49 am
  • Hello, Python regular expressions must not have more than 100 capturing groups. The source code responsible for this reads as follows: # XXX: <fl get rid of this limitation! if p.pattern.groups 100: ...
    Joerg SchusterJoerg Schuster
    Oct 24, 2005 at 1:31 pm
    Oct 27, 2005 at 4:57 pm
  • Hey there, i have tried about every graphing package for python i can get to work on my system. gnuplot, pychart, biggles, gdchart, etc.. (cant get matplot to work) so far, they all are working ok. I ...
    NephishNephish
    Oct 20, 2005 at 3:44 pm
    Oct 25, 2005 at 9:11 pm
  • Hi all, I have a program that serves client programs. The server has a login password, which has to be used by each client for logging in. So, when the client connects, it sends a string with a ...
    DcrespoDcrespo
    Oct 10, 2005 at 3:06 pm
    Oct 13, 2005 at 10:02 pm
  • Hi all, I have a very long list of parameters coming from a web form to my method foo(self, **kwargs) I would like to avoid manually binding the variables to the values coming through the **kwargs ...
    LbologniniLbolognini
    Oct 28, 2005 at 10:49 pm
    Nov 9, 2005 at 3:37 am
  • Another question from a not even newbie: In Unix you can set an environment variable with the command export PYTHONPATH but I would like to set the variable from at .py script. So my question is: How ...
    ChristianChristian
    Oct 20, 2005 at 5:50 am
    Oct 27, 2005 at 4:32 pm
  • Hi, I found the following to be a useful way to access arguments after they are passed to a function that collects them with **kwds. class namespace(dict): def __getattr__(self, name): return ...
    Ron AdamRon Adam
    Oct 25, 2005 at 2:06 am
    Oct 26, 2005 at 11:44 pm
  • Hi all, How can I get a raised exception from other thread that is in an imported module? For example: --------------- programA.py --------------- import programB thread = programB.MakeThread() ...
    DcrespoDcrespo
    Oct 14, 2005 at 9:45 pm
    Oct 22, 2005 at 3:10 pm
  • For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my "main" system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour ...
    Kenneth McDonaldKenneth McDonald
    Oct 13, 2005 at 8:30 pm
    Oct 20, 2005 at 3:41 pm
  • What possible tricky areas/questions could be asked in Python based Technical Interviews?
    PyPKPyPK
    Oct 23, 2005 at 7:54 pm
    Oct 25, 2005 at 3:46 pm
  • I need to merge several sources of values into one stream of values. All of the sources are sorted already and I need to retrieve the values from them all in sorted order. In other words: s1 = [10, ...
    Lasse Vågsæther KarlsenLasse Vågsæther Karlsen
    Oct 6, 2005 at 5:42 pm
    Oct 11, 2005 at 1:29 pm
  • This post comes from a boring morning, if you are busy ignore this. This post is only for relaxed people. I've found this page, "Syntax Across Languages", it contains many errors and omissions, but ...
    BearophileHUGSBearophileHUGS
    Oct 23, 2005 at 7:31 am
    Oct 25, 2005 at 4:36 pm
  • Hello, I came accross what i think is a serious bug in the python interpreter. Membership testing seems not to work for list of objects when these objects have a user-defined __cmp__ method. It is ...
    AlainpointAlainpoint
    Oct 7, 2005 at 12:07 pm
    Oct 7, 2005 at 7:53 pm
  • I am looking for the best and efficient way to replace the first word in a str, like this: "aa to become" - "/aa/ to become" I know I can use spilt and than join them but I can also use regular ...
    Hagai26Hagai26
    Oct 20, 2005 at 3:26 pm
    Oct 23, 2005 at 9:56 am
  • Sort a List Xah Lee, 200510 In this page, we show how to sort a list in Python & Perl and also discuss some math of sort. To sort a list in Python, use the ?sort? method. For example: li=[1,9,2,3]; ...
    Xah LeeXah Lee
    Oct 10, 2005 at 9:51 am
    Oct 18, 2005 at 9:24 pm
  • Is it just me, or does python-list at python.org not send with a Reply- To header? --- Andrew Gwozdziewycz apgwoz at gmail.com http://ihadagreatview.org http://plasticandroid.org
    Andrew GwozdziewyczAndrew Gwozdziewycz
    Oct 3, 2005 at 12:24 pm
    Oct 4, 2005 at 4:59 pm
  • Hi, I heard time and again that you are not _supposed_ to update the locals dictionary. Can anyone tell me why, if the following code works, I should not do this? # # Extending Local namespace # def ...
    FlavioFlavio
    Oct 5, 2005 at 4:33 pm
    Oct 15, 2005 at 12:27 am
  • i try to run my app and i get this %python DutyShift.py error thats it. thats the error. mya pp was previously working, and i did make some fairly large changes to it, but i'd expect a more ...
    Timothy SmithTimothy Smith
    Oct 7, 2005 at 4:57 am
    Oct 12, 2005 at 8:26 pm
  • The Main Issue in a nutshell I am a corporate developer, working for a single company. Got a new project coming up and wondering if I should stay with Python for this new, fairly large project, are ...
    SpiffoSpiffo
    Oct 3, 2005 at 2:01 pm
    Oct 5, 2005 at 3:59 pm
  • Hi all, when I moved from Windows to Linux I choosed Python as my language of reference and as GUI, Qt (not much investigated up to now). Till now I didn't regret but one thing: Python can't act as a ...
    QwweeeitQwweeeit
    Oct 29, 2005 at 12:26 am
    Nov 1, 2005 at 10:35 pm
  • I'm new to Python but am wondering what IDE Python developers use? I use Mac OS X 10.4.2. I have PythonIDE which comes with MacPython but I don't think that has even rudimentary "intellisense". Xcode ...
    MicrosnotMicrosnot
    Oct 23, 2005 at 4:54 am
    Oct 24, 2005 at 11:06 am
  • Is there a way to override a data property in the instance? Do I need to create another class with the property changed? -- Robin Becker
    Robin BeckerRobin Becker
    Oct 17, 2005 at 5:52 pm
    Oct 22, 2005 at 1:46 pm
  • Hello, I'm looking for any work/paper/ressource about continuous system simulation using Python or any similar object oriented languages (or even UML theory !). I'm aware of SimPy for discrete event ...
    Nicolas PernettyNicolas Pernetty
    Oct 6, 2005 at 11:12 pm
    Oct 12, 2005 at 12:49 am
  • i'd like to use os.access(path,mode) where path may contain linux style wildcards. i've failed so far. my workaround is the bash command. os.system('[ -e %s ]' % fn ) any suggestions?
    MikeMike
    Oct 7, 2005 at 6:18 am
    Oct 17, 2005 at 2:39 am
  • Is it an idea to include a new __filename__ predefined attribute to 2.5, so that __file__ contains the entire path to the module, and __filename__ only the name of the module? For instance it's ...
    Rune StrandRune Strand
    Oct 12, 2005 at 6:31 am
    Oct 14, 2005 at 2:12 pm
  • I am developing a program for a client. She runs a shop where her clients bring in items for sale or short term buyback. Development of the program has been going great but she's mentioned that there ...
    CigarCigar
    Oct 4, 2005 at 3:10 am
    Oct 7, 2005 at 7:48 am
  • After some thought on what I need in a Python ORM (multiple primary keys, complex joins, case statements etc.), and after having built these libraries for other un-named languages, I decided to start ...
    GrunarGrunar
    Oct 20, 2005 at 2:18 am
    Oct 21, 2005 at 6:20 am
  • I've launched a new forum not too long ago, and I invite you all to go there: www.wizardsolutionsusa.com (click on the forum link). We offer all kinds of help, and for those of you who just like to ...
    Csheppard91Csheppard91
    Oct 8, 2005 at 7:11 pm
    Oct 9, 2005 at 7:19 pm
  • I have a config file with the following contents: service A = { params { dir = "c:\test", username = "test", password = "test" } } I want to find username and replace the value with another value. I ...
    UsgogUsgog
    Oct 25, 2005 at 4:37 pm
    Nov 16, 2005 at 5:33 pm
  • Hey everyone. First off, I'm new to the list. I had had a little bit of experience with Perl before discovering Python. The more Python I learn, the more I love it :) I just have a quick question to ...
    James ColanninoJames Colannino
    Oct 24, 2005 at 4:42 am
    Oct 26, 2005 at 12:53 am
  • I would like to redirect the output from os.system to a variable, but am having trouble. I tried using os.popen(..).read() ...but that doesn't give me exactly what i want. ..this is windows by the ...
    JasJas
    Oct 21, 2005 at 8:44 pm
    Oct 25, 2005 at 2:13 pm
  • So I want to define a method that takes a "boolean" in a module, eg. def getDBName(l2): ... Now, in Python variables are bound to types when used, right? Eg. x = 10 # makes it an INT whereas x = ...
    Pranab_bajpaiPranab_bajpai
    Oct 19, 2005 at 7:51 pm
    Oct 24, 2005 at 4:41 pm
  • is there a way to condense the following loop into one line? # -*- coding: utf-8 -*- # python import re, os.path imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg', ...
    Xah LeeXah Lee
    Oct 18, 2005 at 9:56 pm
    Oct 24, 2005 at 1:59 pm
  • Hi, I am trying to change the data in a form field from python. The following code does not crash but has no effect as if "form" is just a copy of the original html form. Must I recreate the form ...
    Philippe C. MartinPhilippe C. Martin
    Oct 21, 2005 at 6:55 pm
    Oct 22, 2005 at 1:06 am
  • I have one folder containing mp3 files, the folder is: C:\My Shared Folder\Rubber Soul And the files are: 01 drive my car.mp3 02 norwegian wood.mp3 03 you won't see me.mp3 04 nowhere man.mp3 . . . ...
    DudufigueiredoDudufigueiredo
    Oct 31, 2005 at 4:33 pm
    Nov 18, 2005 at 1:48 am
  • I have two lists. I want to sort by a value in the first list and have the second list sorted as well... Any suggestions on how I should/could do this?
    KraftDinerKraftDiner
    Oct 28, 2005 at 6:41 pm
    Oct 30, 2005 at 10:36 pm
  • Hi all, Finally diving into XML programmatically. Does anyone have a best practice recommendation for programmatically discovering the structure of an arbitrary XML document via Python? It seems like ...
    Eric PedersonEric Pederson
    Oct 24, 2005 at 7:44 pm
    Oct 30, 2005 at 7:50 pm
  • What's the easiest and quickest way to execute a compiled C "command line interface" program THROUGH Python?
    ErnestoErnesto
    Oct 20, 2005 at 9:45 pm
    Oct 26, 2005 at 2:44 pm
  • I'm reading about "high order messages" in Ruby by Nat Pryce, and thinking if it could be util and if so, if it could be done in Python. Someone already tried? References: ...
    Eduardo PadoanEduardo Padoan
    Oct 22, 2005 at 9:12 pm
    Oct 24, 2005 at 2:52 pm
  • static PyObject *wrap_doStuff(PyObject *self, PyObject *args) { // this will store the result in a Python object PyObject *finalResult; // get arguments from Python char *result = 0; char *in= 0; ...
    Java and SwingJava and Swing
    Oct 12, 2005 at 1:00 pm
    Oct 15, 2005 at 4:56 am
  • Alright heres another noob question for everyone. Alright, say I have a menu like this. print "1. . .Start" print "2. . .End" choice1 = raw_input(" ") and then I had this to determine what option. if ...
    Ivan ShevanskiIvan Shevanski
    Oct 8, 2005 at 12:46 am
    Oct 9, 2005 at 8:27 pm
Group Navigation
period‹ prev | Oct 2005 | next ›
Group Overview
grouppython-list @
categoriespython
discussions847
posts5,345
users1,034
websitepython.org

1,034 user for October 2005

Fredrik Lundh: 232 posts Mike Meyer: 181 posts Steve Holden: 165 posts Steven D'Aprano: 150 posts Roedy Green: 118 posts David Schwartz: 111 posts Alex Martelli: 82 posts Diez B. Roggisch: 69 posts Py: 67 posts Antoon Pardon: 66 posts Grant Edwards: 64 posts Ron Adam: 60 posts Bengt Richter: 58 posts Peter Hansen: 56 posts John Bokma: 54 posts Lasse Vågsæther Karlsen: 51 posts Tony Nelson: 42 posts George Sakkis: 41 posts Jepler: 41 posts Robert Kern: 40 posts
show more
Archives