FAQ

Search Discussions

509 discussions - 3,235 posts

  • Of interest: ? Why Must Software Be Rewritten For Multi-Core Processors? http://xahlee.org/UnixResource_dir/writ/multi-core_software.html plain text version follows. ...
    Xah LeeXah Lee
    Jun 4, 2009 at 4:46 pm
    Jun 11, 2009 at 12:06 am
  • Greetings. Are there any modules, packages, whatever, that will measure the fractal dimensions of a dataset, e.g. a time-series ? Like the Correlation Dimension, the Information Dimension, etc... ...
    Peter BillamPeter Billam
    Jun 12, 2009 at 3:32 am
    Jun 30, 2009 at 8:57 am
  • Why no trees in the standard library, if not as a built in? I searched the archive but couldn't find a relevant discussion. Seems like a glaring omission considering the batteries included ...
    Tom ReedTom Reed
    Jun 26, 2009 at 5:29 am
    Jul 3, 2009 at 8:39 am
  • Hi all, I do understand that this is not a python question and I apologize for that straight up. But I am a full time follower of this group and I have seen very very brilliant programmers and ...
    KoranthalaKoranthala
    Jun 13, 2009 at 3:49 pm
    Jun 29, 2009 at 12:15 pm
  • See here for introduction: http://groups.google.si/group/comp.lang.python/browse_thread/thread/370f8a1747f0fb91 Digging through my problem, I discovered Python isn't exactly thread safe and to solve ...
    Jure ErznožnikJure Erznožnik
    Jun 19, 2009 at 9:52 am
    Jun 22, 2009 at 8:03 am
  • i can traverse a directory using os.listdir() or os.walk(). but if a directory has a very large number of files, these methods produce very large objects talking a lot of memory. in other languages ...
    TomTom
    Jun 14, 2009 at 4:35 pm
    Jul 8, 2009 at 11:49 pm
  • Hi, random.random() will generate a random value in the range [0, 1). Is there an easy way to generate random values in the range [0, 1]? I.e., including 1? I am implementing an algorithm and want to ...
    EsmailEsmail
    Jun 9, 2009 at 9:33 pm
    Jun 14, 2009 at 9:38 am
  • Kind people, Using Python 3.0 on a Gatesware machine (XP). I am building a class in which I want to constrain the types that can be stored in various instance variables. For instance, I want to be ...
    Paul LaFollettePaul LaFollette
    Jun 12, 2009 at 2:05 pm
    Jun 17, 2009 at 3:10 pm
  • So I was curious whether it's possible to use the ctypes module with C++ and if so how difficult it is. I figure in principal it's possible if ctypes knows about each compiler's name mangling scheme. ...
    Joseph GarvinJoseph Garvin
    Jun 2, 2009 at 8:50 pm
    Jun 5, 2009 at 3:33 pm
  • Is there any reason to prefer one or the other of these statements? if e.message.code in [25401,25402,25408]: if e.message.code in (25401,25402,25408): I'm currently using [], but only coz I think ...
    MhMh
    Jun 8, 2009 at 9:36 pm
    Jun 19, 2009 at 12:13 pm
  • On behalf of the Python development team, I'm thrilled to announce the first production release of Python 3.1. Python 3.1 focuses on the stabilization and optimization of the features and changes ...
    Benjamin PetersonBenjamin Peterson
    Jun 27, 2009 at 9:12 pm
    Jun 29, 2009 at 4:17 pm
  • Switching from Perl here, and having a hard time letting go... Suppose I have an "array" foo, and that I'm interested in the 4th, 8th, second, and last element in that array. In Perl I could write: ...
    KjKj
    Jun 13, 2009 at 6:11 pm
    Jun 23, 2009 at 6:13 pm
  • Hello, I am trying to generate this list of tuples: [(0, ''), (1, 'Dr'), (2, 'Miss'), (3, 'Mr'), (4, 'Mrs'), (5, 'Ms')] My code works fine in the Python shell: [(0, ''), (1, 'Dr'), (2, 'Miss'), (3, ...
    SscSsc
    Jun 17, 2009 at 10:19 pm
    Jun 30, 2009 at 2:12 am
  • ... my first Python program! So please be gentle (no fifty ton weights on the head!), but tell me if it's properly "Pythonic", or if it's a dead parrot (and if the latter, how to revive it). I'm ...
    Angus RodgersAngus Rodgers
    Jun 24, 2009 at 7:53 pm
    Jul 1, 2009 at 3:48 pm
  • How to change the first character of the line to uppercase in a text file? e.g. input is: abc xyz Bd ef gH ij output should be: Abc xyz Bd ef GH ij
    PowahPowah
    Jun 26, 2009 at 7:43 pm
    Jun 28, 2009 at 5:36 am
  • Hi, I'm PHP developer and entirely new to Python. I installed it (version 2.5.2, from Debian repos) today on the persuasion of a friend, who is a Python addict. The first thing I typed into it was ...
    Bojan SudarevicBojan Sudarevic
    Jun 25, 2009 at 6:04 pm
    Jun 26, 2009 at 10:27 pm
  • One can go from lb = ['b','a','n','a','n','a'] to s = "banana" by using s = "".join(lb) Is there a way to go the reverse route? I have not been able to find one. It is obviously easy to write a for ...
    Hendrik van RooyenHendrik van Rooyen
    Jun 9, 2009 at 7:25 am
    Jun 10, 2009 at 9:49 pm
  • This is from Python built from the py3k branch: ... print(q()) ... 11 12 13 14 15 ... print(q()) ... 15 15 15 15 15 Looking at the implementation, I see why this happens: ... ...
    Brian QuinlanBrian Quinlan
    Jun 4, 2009 at 9:40 pm
    Jun 8, 2009 at 4:57 pm
  • When the days get colder and the nights longer, then evil things are hatched. A can is like a pickle, in that it is a string, but anything can be canned. Unlike a pickle, a can cannot leave the ...
    Hendrik van RooyenHendrik van Rooyen
    Jun 4, 2009 at 7:25 am
    Jun 6, 2009 at 11:26 am
  • I currently have something like this. class applicant(): def __int__(self, x, y): self.randomnum = normalvariate(x, y) then other stuff x, y are only used to calculate self.randomnum and this seems ...
    Vincent DavisVincent Davis
    Jun 20, 2009 at 5:20 am
    Jun 25, 2009 at 11:53 pm
  • I was just looking at the python tutorial, and I noticed these lines: http://docs.python.org/tutorial/inputoutput.html#reading-and-writing-files "Windows makes a distinction between text and binary ...
    SteveSteve
    Jun 16, 2009 at 2:56 am
    Jun 19, 2009 at 12:26 am
  • This probably has a snowballs change in hell of ending up in builtins or even some in some module, but such things should not prevent one to try and present the arguments for what one thinks is ...
    PataphorPataphor
    Jun 4, 2009 at 1:37 pm
    Jun 13, 2009 at 1:48 pm
  • Just got a new computer and I'm trying to download my favourite applications. All's well until I get to PIL, and here pythonware and effbot both return a 502 Proxy error. Is this just a temporary ...
    PeterPeter
    Jun 27, 2009 at 9:52 am
    Jun 30, 2009 at 4:56 pm
  • Hi, please forgive the multi-posting on this general topic. Some time ago, I recommended a pursuit of keeping 'persistent composite' types on disk, to be read and updated at other times by other ...
    Aaron BradyAaron Brady
    Jun 14, 2009 at 2:27 pm
    Jun 20, 2009 at 11:36 pm
  • I am very excited by this project (as well as by pypy) and I read all their plan, which looks quite practical and impressive. But I must confess that I can't understand why LLVM is so great for ...
    Luis M. GonzálezLuis M. González
    Jun 5, 2009 at 1:08 am
    Jun 11, 2009 at 9:29 pm
  • Hi all, I am trying to visualize a number of small objects moving over a 2D surface during run-time. I was wondering what would the easiest way to accomplish this using Python? Ideally I am looking ...
    EsmailEsmail
    Jun 3, 2009 at 3:53 pm
    Jun 4, 2009 at 11:52 pm
  • I want to ensure that the url ends with a '/', now I have to do thisa like below. url = url + '' if url[-1] == '/' else '/' Is there a better way?
    TsangpoTsangpo
    Jun 6, 2009 at 3:07 pm
    Jun 11, 2009 at 8:34 am
  • Hi, As you can imagine, I am new, both to this group and to Python. I have read various posts on the best book to buy or online tutorial to read and have started to go through them. I was wondering, ...
    Sato PhotoSato Photo
    Jun 27, 2009 at 2:22 am
    Jun 28, 2009 at 12:38 pm
  • I was staring at a logic table the other day, and I asked myself, "what if one wanted to play with exotic logics; how might one do it?" I did some searching but not being too sure of what to look for ...
    William CliffordWilliam Clifford
    Jun 17, 2009 at 5:46 am
    Jun 19, 2009 at 12:11 am
  • hello, I've pictures stored in a path relative to my python source code. To get a picture, I need to know what path I'm on in each python module. I thought __file__ would do the job, but apparently I ...
    Stef MientkiStef Mientki
    Jun 1, 2009 at 9:28 pm
    Jun 15, 2009 at 3:33 pm
  • Hello I'm writing an application in Python 2.5.4 under Windows (xp sp3 en). I use Tkinter as the main GUI toolkit. The app is intended to be portable (not fully but win & mac os x is a must). It ...
    Sebastian PająkSebastian Pająk
    Jun 25, 2009 at 7:02 pm
    Jun 26, 2009 at 11:55 pm
  • Hi, Please consider this example: A non-text attachment was scrubbed... Name: vacuum.py Type: text/x-python Size: 964 bytes Desc: not available URL: ...
    Nikolaus RathNikolaus Rath
    Jun 12, 2009 at 2:28 am
    Jun 18, 2009 at 4:09 pm
  • Hello, I would like to propose this PEP for inclusion into Python 2.7 / 3.2 http://www.python.org/dev/peps/pep-0376/ It has been discussed a lot already in the distutils-SIG, but new feedbacks are ...
    Tarek ZiadéTarek Ziadé
    Jun 30, 2009 at 7:41 pm
    Jul 6, 2009 at 12:30 am
  • Hi, During a fun coding session yesterday, I came across a problem that I thought was already solved by itertools, but on investigation it seems it isn't. The problem is simple: given one or more ...
    David WilsonDavid Wilson
    Jun 10, 2009 at 10:24 pm
    Jun 22, 2009 at 8:08 pm
  • I have a question about the "Using Backslash to Continue Statements" in the howto "Idioms and Anti-Idioms in Python" ...
    Ben CharrowBen Charrow
    Jun 22, 2009 at 4:14 am
    Jul 4, 2009 at 12:08 am
  • [PYTHON NOOB ALERT] I want to write a module that serves as a Python front-end to a database. This database can be either in the form of tab-delimited flat files, XML files, or a PostgreSQL server. ...
    KjKj
    Jun 27, 2009 at 8:31 pm
    Jun 30, 2009 at 10:17 am
  • Hi, I have very basic question about Python that do we consider pyhton as script language. I searched in google but it becomes more confusion for me. After some analysis I came to know that Python ...
    Abhishek goswamiAbhishek goswami
    Jun 17, 2009 at 11:32 am
    Jun 18, 2009 at 7:17 pm
  • I am trying to print some values to a file (using c's printf like method). TypeError: int argument required # this works, i see value on screen print w, h, absX, absY # where result is the return ...
    LuciusLucius
    Jun 12, 2009 at 3:56 am
    Jun 18, 2009 at 5:54 pm
  • Python 2.6.2 on OS X 10.5.7: [ron at mickey:~]$ echo $LANG en_US.UTF-8 [ron at mickey:~]$ cat frob.py #!/usr/bin/env python print u'\u03BB' [ron at mickey:~]$ ./frob.py ? [ron at mickey:~]$ ./frob.py ...
    Ron GarretRon Garret
    Jun 5, 2009 at 1:18 am
    Jun 5, 2009 at 5:22 pm
  • Hi,everyone! When i run the following in IDLE: IDLE 2.6.1 everything goes well,but when i save these to a .py file and run it: Traceback (most recent call last): File ...
    WillgunWillgun
    Jun 4, 2009 at 5:15 am
    Jun 5, 2009 at 1:04 pm
  • As every one related to security probably knows, Rivest (and his friends) have a new hashing algorithm which is supposed to have none of the weaknesses of MD5 (and as a side benefit - not too many ...
    Mikle3Mikle3
    Jun 5, 2009 at 7:42 pm
    Jun 6, 2009 at 12:50 pm
  • Hi, I'm looking for a Python library function that provides the same functionality as the `which' command--namely, search the $PATH variable for a given string and see if it exists anywhere within. I ...
    DestroooooyDestroooooy
    Jun 29, 2009 at 5:54 pm
    Jun 29, 2009 at 10:08 pm
  • Hi all. Assuming that python dictionaries already provide a bit of "shoot yourself in the foot", I think what I have in mind would not be so bad. What do you think of dictionaries having a self ...
    Norberto LopesNorberto Lopes
    Jun 24, 2009 at 9:39 am
    Jun 28, 2009 at 9:39 am
  • Hi, I am looking for a python library which will allow me to do a simple web development. I need to use some forms (but nice looking :-) ), creating images based on input from those forms, etc. I ...
    Private PrivatePrivate Private
    Jun 25, 2009 at 7:29 am
    Jun 27, 2009 at 6:35 pm
  • Hi, I'm wondering what would be the preferred way to solve the following forward reference problem: --------------------------------------- class BaseA(object): def __init__(self): return class ...
    Lorenzo Di GregorioLorenzo Di Gregorio
    Jun 20, 2009 at 3:40 pm
    Jun 22, 2009 at 11:33 am
  • Hello, everyone. I've noticed that if I have a class with so-called "rich comparison" methods (__eq__, __ne__, etc.), when its instances are included in a set, set.__contains__/__eq__ won't call the ...
    Gustavo NareaGustavo Narea
    Jun 19, 2009 at 7:02 pm
    Jun 21, 2009 at 12:27 pm
  • Hello All, I have a very large csv file 14G and I am planning to move all of my data to hdf5. I am using h5py to load the data. The biggest problem I am having is, I am putting the entire file into ...
    Mag GamMag Gam
    Jun 23, 2009 at 3:17 am
    Jul 15, 2009 at 8:00 pm
  • This is purely sport question. I don't really intend to use the answer in my code, but I am wondering, if such a feat could be done. I have a following problem: I have a list based upon which I would ...
    Filip GruszczyńskiFilip Gruszczyński
    Jun 30, 2009 at 8:44 am
    Jun 30, 2009 at 11:30 am
  • I just read a blog post of Guido's http://neopythonic.blogspot.com/2009/06/ironpython-in-action-and-decline-of.html and notice that he doesn't comment on what he wants in a GUI toolkit for Python. I ...
    Laplacian42Laplacian42
    Jun 27, 2009 at 4:54 pm
    Jun 30, 2009 at 7:00 am
  • Summary: I have XML as string and I want to pull it into ElementTree so that I can play with it but it is not working for me. XML and fromstring when used with a string do not do the same thing as ...
    Kee NetheryKee Nethery
    Jun 26, 2009 at 1:02 am
    Jun 27, 2009 at 6:06 am
Group Navigation
period‹ prev | Jun 2009 | next ›
Group Overview
grouppython-list @
categoriespython
discussions509
posts3,235
users686
websitepython.org

686 users for June 2009

Terry Reedy: 89 posts Lawrence D'Oliveiro: 86 posts Scott David Daniels: 76 posts Aahz: 66 posts Chris Rebert: 62 posts Gabriel Genellina: 58 posts MRAB: 56 posts Lie Ryan: 52 posts Carl Banks: 48 posts Piet van Oostrum: 45 posts Steven D'Aprano: 44 posts Steven D'Aprano: 42 posts Dave Angel: 40 posts Robert Kern: 39 posts Diez B. Roggisch: 38 posts Ben Finney: 35 posts Peter Otten: 35 posts Aaron Brady: 33 posts Rhodri James: 33 posts Mike Kazantsev: 32 posts
show more
Archives