FAQ

Search Discussions

854 discussions - 5,187 posts

  • I was under the assumption that everything in python was a refrence... so if I code this: lst = [1,2,3] for i in lst: if i==2: i = 4 print lst I though the contents of lst would be modified.. (After ...
    KraftDinerKraftDiner
    Jan 4, 2006 at 6:54 pm
    Jan 22, 2006 at 11:19 pm
  • I thought I read here that a new website design was in the works for python.org in time for the new year? Is that still true and of so, anyone know what is it's status? Thanks!
    BugsBugs
    Jan 2, 2006 at 3:09 am
    Feb 5, 2006 at 9:47 pm
  • In the process of learning about some deeper details of Python I am curious if it is possible to write a 'prefix' code assigning to a and b something special, so, that Python gets trapped in an ...
    Claudio GrondiClaudio Grondi
    Jan 18, 2006 at 12:09 pm
    Jan 21, 2006 at 4:19 am
  • I know that the standard idioms for clearing a list are: (1) mylist[:] = [] (2) del mylist[:] I guess I'm not in the "slicing frame of mind", as someone put it, but can someone explain what the ...
    Steven WatanabeSteven Watanabe
    Jan 31, 2006 at 4:57 pm
    Feb 10, 2006 at 10:01 pm
  • On the page http://wiki.python.org/moin/Python3%2e0Suggestions I noticed an interesting suggestion: "These operators ? ? ? should be added to the language having the following meaning: <= = != this ...
    Christoph ZwerschkeChristoph Zwerschke
    Jan 24, 2006 at 3:09 am
    Jan 31, 2006 at 5:35 am
  • That made me smile on a Monday morning (not an insignificant accomplishment). I noticed in the one footnote that the H.P. book had been "translated into American". I've always wondered about that. I ...
    Grant EdwardsGrant Edwards
    Jan 16, 2006 at 3:31 pm
    Jan 23, 2006 at 10:25 am
  • Hello guys, I am a novice in python.I have to implement a full fledged mail server .But i am not able to choose the language.Should i go for C(socket API) or python for this project? What are the ...
    AbhinavAbhinav
    Jan 28, 2006 at 6:43 am
    Feb 5, 2006 at 12:28 pm
  • Please visit http://www.python.org/peps/pep-0204.html first. As you can see, PEP 204 was rejected, mostly because of not-so-obvious syntax. But IMO the idea behind this pep is very nice. So, maybe ...
    Gregory PetrosyanGregory Petrosyan
    Jan 16, 2006 at 9:01 am
    Jan 24, 2006 at 5:02 am
  • I've spent hours trying to find a bug that was a simple spelling mistake. in an init method I declare a variable self.someLongName later in a different method of the class I use self.sumLongName Now ...
    KraftDinerKraftDiner
    Jan 6, 2006 at 3:30 pm
    Jan 13, 2006 at 8:01 am
  • Hello, One of the greatest feature of Python in my opinion is the way the interpreter can be used to integrate a wide variety of software packages by dynamically linking them. This approach has been ...
    Michel SannerMichel Sanner
    Jan 4, 2006 at 12:36 am
    Jan 5, 2006 at 12:49 am
  • How does http://beta.python.org/about/beginners/ look? regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC www.holdenweb.com PyCon TX 2006 www.python.org/pycon/
    Steve HoldenSteve Holden
    Jan 26, 2006 at 5:57 pm
    Feb 2, 2006 at 11:38 pm
  • In Python, it is possible to multiply a string with a number: 'hellohellohello' However, you can't multiply a string with another string: Traceback (most recent call last): File "<interactive input ...
    Christoph ZwerschkeChristoph Zwerschke
    Jan 22, 2006 at 6:51 am
    Jan 25, 2006 at 6:32 pm
  • Say I have some string that begins with an arbitrary sequence of characters and then alternates repeating the letters 'a' and 'b' any number of times, e.g. "xyz123aaabbaabbbbababbbbaaabb" I'm looking ...
    Roger L. CauvinRoger L. Cauvin
    Jan 26, 2006 at 2:09 pm
    Jan 28, 2006 at 3:39 pm
  • Hello, I am trying to study/understand OOP principles using Python. I have found following code http://tinyurl.com/a4zkn about FSM (finite state machine) on this list, which looks quite useful for my ...
    Petr JakesPetr Jakes
    Jan 19, 2006 at 8:01 pm
    Jan 28, 2006 at 2:43 pm
  • Hello, Guido has decided, in python-dev, that in Py3K the id-based order comparisons will be dropped. This means that, for example, "{} < []" will raise a TypeError instead of the current behaviour, ...
    Spam NoamSpam Noam
    Jan 9, 2006 at 10:40 pm
    Jan 16, 2006 at 8:54 am
  • I've been doing some file system benchmarking. In the process, I need to create a large file to copy around to various drives. I'm creating the file like this: fd = file('large_file.bin', 'wb') for x ...
    RbtRbt
    Jan 27, 2006 at 7:10 pm
    Jan 29, 2006 at 1:01 pm
  • The code below should be pretty self-explanatory. I want to read two files in parallel, so that I can print corresponding lines from each, side by side. itertools.izip() seems the obvious way to do ...
    RurpyRurpy
    Jan 3, 2006 at 10:19 am
    Jan 10, 2006 at 8:02 am
  • Hello, Let me start by saying that I am coming from a background using Matlab (or Octave), and C++. I am going to outline the basic nuts-and-bolts of how I work in these languages, and ask for some ...
    BblaisBblais
    Jan 12, 2006 at 8:20 pm
    Jan 19, 2006 at 5:42 am
  • Hi, Python beginner here and very much enjoying it. I'm looking for a pythonic way to find how many listmembers are also present in a reference list. Don't count duplicates (eg. if you already found ...
    MathijsMathijs
    Jan 19, 2006 at 4:06 pm
    Jan 25, 2006 at 8:16 am
  • Hi all, I have two files: - PSP0000320.dat (quite a large list of mobile numbers), - CBR0000319.dat (a subset of the above, a list of barred bumbers) # head PSP0000320.dat CBR0000319.dat == ...
    FynaliFynali
    Jan 12, 2006 at 5:04 pm
    Jan 14, 2006 at 10:29 pm
  • Is there some smart/fast way to flatten a level one list using the latest iterator/generator idioms. The problem arises in coneverting lists of (x,y) coordinates into a single list of coordinates eg ...
    Robin BeckerRobin Becker
    Jan 12, 2006 at 1:18 am
    Jan 14, 2006 at 12:13 am
  • After spending time I should have been sleeping working on it, the try python site is much more functional. It now allows statements, including multi-line statements and expressions. You can't create ...
    Mike MeyerMike Meyer
    Jan 1, 2006 at 4:11 pm
    Jan 9, 2006 at 5:59 am
  • Proposal -------- I am gathering data to evaluate a request for an alternate version of itertools.izip() with a None fill-in feature like that for the built-in map() function: [('a', '1'), ('b', ...
    Raymond HettingerRaymond Hettinger
    Jan 9, 2006 at 4:28 am
    Jan 25, 2006 at 7:30 am
  • Hi everyone, I need to write a web app, that will support millions of user accounts, template-based user pages and files upload. The client is going to be written in Flash. I wondered if I coudl get ...
    LiormLiorm
    Jan 1, 2006 at 7:48 pm
    Jan 12, 2006 at 7:36 am
  • I have a function in a program that works something like this. def load_pic_data(width,heigth,inpdat, filt=TRUE): data='' total=0 tnum=0 size0 for y in range(0,heigth): row='' for x in ...
    TuvasTuvas
    Jan 24, 2006 at 9:51 pm
    Jan 30, 2006 at 8:27 pm
  • I came across this link today. http://tinyurl.com/9c7ta It seems Microsoft is getting involved with Python. What do you think of it? Is it any good? Anything to worry about? -- Zach
    NaintoNainto
    Jan 3, 2006 at 8:35 pm
    Jan 12, 2006 at 4:50 pm
  • We have a program written in VB6 (over 100,000 lines of code and 230 UI screens) that we want to get out of VB and into a better language. The program is over 10 years old and has already been ported ...
    JoshJosh
    Jan 27, 2006 at 11:48 pm
    Feb 3, 2006 at 4:53 am
  • I need to call some Windows APIs. Is the only way to download ctypes or the win32 interfaces? Is there any plan to get ctypes batteries into the standard Python build?
    Paul WatsonPaul Watson
    Jan 6, 2006 at 10:58 pm
    Jan 11, 2006 at 7:06 am
  • I need a magical expanding hash with the following properties: * it creates all intermediate keys meh['foo']['bar] = 1 -- works even if meh['foo'] didn't exist before * allows pushing new elements to ...
    BraverBraver
    Jan 17, 2006 at 6:11 am
    Jan 19, 2006 at 1:35 am
  • I want my code to be Python 3000 compliant, and hear that lambda is being eliminated. The problem is that I want to partially bind an existing function with a value "foo" that isn't known until ...
    RussellRussell
    Jan 27, 2006 at 7:18 pm
    Feb 3, 2006 at 8:15 pm
  • Hi I hope the title of this message indicates my question. I am looking for basic array functionality in Python and it turns out that there are all these packages which are somehow related. Some are ...
    JJ
    Jan 21, 2006 at 12:29 am
    Jan 23, 2006 at 8:27 pm
  • Hi there, I seem to be unable to find a way to appends more keys/values to the end of a dictionary... how can I do that? E.g: mydict = {'a':'1'} I need to append 'b':'2' to it to have: mydict = ...
    Yves GlodtYves Glodt
    Jan 24, 2006 at 2:37 pm
    Jan 25, 2006 at 3:02 pm
  • Hi, The example below shows that result of a marshaled data structure is nothing but a string <type 'str' '{i\x02\x00\x00\x00t\x03\x00\x00\x00twoi\x03\x00\x00\x00t\x05\x00\x00\x00three0' Now, I need ...
    MikeMike
    Jan 13, 2006 at 8:25 pm
    Jan 15, 2006 at 7:06 pm
  • I have some CDs and have been archiving them on a PC. I wrote a Python script that spans the archive and returns a list of its contents: [[genre, artist, album, song]...]. I wanted to add a search ...
    BBandsBBands
    Jan 30, 2006 at 3:41 pm
    Feb 10, 2006 at 4:50 am
  • I'm just learning Python, so bear with. I was messing around with the webbrowser module and decided it was pretty cool to have the browser open a URL from within a python script, so I wrote a short ...
    Blair P. HoughtonBlair P. Houghton
    Jan 30, 2006 at 3:59 am
    Feb 2, 2006 at 4:47 pm
  • Is it possible to have method names of a class generated somehow dynamically? More precisely, at the time of writing a program that contains a class definition I don't know what the names of its ...
    Daniel NogradiDaniel Nogradi
    Jan 26, 2006 at 11:39 pm
    Jan 29, 2006 at 10:02 am
  • Hi all, I've read some thread about isinstance(), why it is considered harmful and how you can achieve the same results using a coding style that doesn't break polymorphism etc... Since I'm trying to ...
    Mr.RechMr.Rech
    Jan 26, 2006 at 5:46 pm
    Jan 27, 2006 at 11:09 pm
  • Helo guys, I am trying to query the MSSQL DB using ADO. I am not able to make the LIKE statement fetch the correct results. Can anyone tell me what I need to do to get this working? Below is the code ...
    Ram0812Ram0812
    Jan 18, 2006 at 3:26 pm
    Jan 19, 2006 at 2:58 pm
  • hi everyone, I'm googeling since some time, but can't find an answer - maybe because the answer is 'No!'. Can I call a function in python inline, so that the python byte compiler does actually call ...
    Riko WichmannRiko Wichmann
    Jan 4, 2006 at 12:18 pm
    Jan 6, 2006 at 2:34 am
  • Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no "restart" ("R" in perldb) or ...
    R. BernsteinR. Bernstein
    Jan 2, 2006 at 1:04 pm
    Jan 16, 2006 at 6:32 pm
  • Say I have... x = "132.00" but I'd like to display it to be "132" ...dropping the trailing zeros...I currently try this if x.endswith("0"): x = x[:len(x)-1] if x.endswith("0"): x = x[:len(x)-1] if ...
    PyPy
    Jan 11, 2006 at 1:58 pm
    Jan 14, 2006 at 4:10 am
  • I'd be interested in what people think about bundling one of the diverse Python webframeworks with the Python distribution which will be "just there" as like Tcl/Tk+Tkinter for GUI-programming. Its ...
    Kay SchluehrKay Schluehr
    Jan 18, 2006 at 11:27 am
    Jan 28, 2006 at 5:34 am
  • I'm porting a routing from C++ to python. There is a complex for loop that I don't know how to code in python for (i = nPoints-1, j = 0; j < nPoints; i = j, j++) Thanks. From http Wed Jan 4 02:46:00 ...
    KraftDinerKraftDiner
    Jan 4, 2006 at 1:42 am
    Jan 7, 2006 at 3:30 pm
  • An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/python-list/attachments/20060120/3686142c/attachment.html
    Debashis DeyDebashis Dey
    Jan 20, 2006 at 3:53 am
    Jan 23, 2006 at 12:50 pm
  • Typos happen to all of us, but in case you hadn't realized what "it's" is a contraction for ("it is"), now you do, and you can save yourself further embarrassment (assuming you care ;-). If your ...
    Bengt RichterBengt Richter
    Jan 18, 2006 at 12:11 pm
    Jan 21, 2006 at 3:09 am
  • There has been a bit of discussion about a way of providing test cases in a test suite that _should_ work but don't. One of the rules has been the test suite should be runnable and silent at every ...
    Scott David DanielsScott David Daniels
    Jan 9, 2006 at 5:50 pm
    Jan 13, 2006 at 12:32 am
  • Hello again - rather a newbie here... I want to work on a sudoku brute-forcer, just for fun. I am considering different strategies, but first I need to decide on the data-structure to use for the ...
    AnthonyberetAnthonyberet
    Jan 26, 2006 at 9:11 pm
    Feb 19, 2006 at 3:10 pm
  • within a python script, I like to create a collection which I fill with values from an external text-file (user editable). How is this accomplished the easiest way (if possible without the need of ...
    Ilias LazaridisIlias Lazaridis
    Jan 23, 2006 at 7:00 pm
    Jan 28, 2006 at 11:46 pm
  • Hi all, I need to retrieve an integer from within a range ... this works ... below is my out puts ... it just does not seem so random ... Is there perhaps a suggestion out there to create a more ...
    Steven MacintyreSteven Macintyre
    Jan 24, 2006 at 4:47 pm
    Jan 25, 2006 at 7:43 pm
  • Decimal("1.353299876254915295189966576E+758") but this one causes an error 5.5**1024 Traceback (most recent call last): File "<interactive input ", line 1, in ? OverflowError: (34, 'Result too ...
    Kay SchluehrKay Schluehr
    Jan 19, 2006 at 10:36 am
    Jan 23, 2006 at 8:59 am
Group Navigation
period‹ prev | Jan 2006 | next ›
Group Overview
grouppython-list @
categoriespython
discussions854
posts5,187
users1,012
websitepython.org

1,012 user for January 2006

Fredrik Lundh: 190 posts Mike Meyer: 136 posts Steve Holden: 126 posts Steven D'Aprano: 119 posts Alex Martelli: 117 posts Peter Hansen: 103 posts Fuzzyman: 81 posts Claudio Grondi: 73 posts Bengt Richter: 71 posts Tony Nelson: 62 posts Grant Edwards: 53 posts Diez B. Roggisch: 50 posts Martin v. Löwis: 47 posts Terry Hancock: 45 posts Raymond Hettinger: 41 posts Christoph Zwerschke: 40 posts Bonono: 39 posts Antoon Pardon: 38 posts James Stroud: 38 posts Robert Kern: 35 posts
show more
Archives