scrolledtext widget error?

2009-05-07 Thread shstein2002
I wrote a twitter client which writes the statuses into a ScrolledText widget, but it rarely gives a error that I can't nail down. The code is: twitwin.scrolled.config(state=NORMAL) twitwin.scrolled.delete("1.0", END) evens = True _.links = [] for x in _.parser.tweets: start = _.scrolled.index

Re: update python version

2009-05-07 Thread Gerhard Häring
km wrote: > Hi all, > > Is there a way to update python 2.6.1 to 2.6.2 using easy_install ? No, easy_install installs Python packages. It doesn't upgrade Python itself. If this is Windows, just install the newer Python version. No need to uninstall the 2.6.1 first. If this is some Unix variant,

Re: configuring python with disable-thread in Ubuntu

2009-05-07 Thread Gerhard Häring
Deepak Chandran wrote: > Hello, > > I am embedding python inside a C++ program. For some reason (I think > libxml2), I am getting Segmentation fault at PyThread_release_lock. > > The solution I found online was to configure python with --disable-thread. That doesn't sound like a solution, but

Simple programme - Just want to know whether this is correct way of coding

2009-05-07 Thread guptha
Hi group, This is my first programme in python ,I need to know whether my code is in the right path of performance I wrote a code using multithreading to send mails FROM = 'com' SUBJECT = 'This is the subject' MSGBODY = 'This the body of the message ' MAILSERVER = 'mailcom' port = 25 use

Public attributes with really private data

2009-05-07 Thread Mark Summerfield
Hi, I had a quick search & didn't find anything _nice_ that produced attributes with really private data, so I came up with a possible solution---for Python 3. (For Python 2 there does seem to be an approach although I'm not keen on it: http://www.builderau.com.au/blogs/byteclub/viewblogpost.htm?p

configuring python with disable-thread in Ubuntu

2009-05-07 Thread Deepak Chandran
Hello, I am embedding python inside a C++ program. For some reason (I think libxml2), I am getting Segmentation fault at PyThread_release_lock. The solution I found online was to configure python with --disable-thread. I used "apt-get install python-dev" to install python. How do I re-config

Re: Python 2.6, File read() problems in Windows Xp

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 10:04 PM, Li Wang wrote: > Hi all: > > I am trying to read a non-text file as a string by using Python > read(), however, it seems there is some thing wrong with it. I can use > read() on text file correctly, but unable to read .xls file correctly. > (The program can read an

Python 2.6, File read() problems in Windows Xp

2009-05-07 Thread Li Wang
Hi all: I am trying to read a non-text file as a string by using Python read(), however, it seems there is some thing wrong with it. I can use read() on text file correctly, but unable to read .xls file correctly. (The program can read any file correctly in Fedora 10) Any idea how to solve this p

Re: heapq.merge with key=

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 2:23 PM, Kevin D. Smith wrote: > I need the behavior of heapq.merge to merge a bunch of results from a > database.  I was doing this with sorted(itertools.chain(...), key=...), but > I would prefer to do this with generators.  My issue is that I need the key= > argument to s

heapq.merge with key=

2009-05-07 Thread Kevin D . Smith
I need the behavior of heapq.merge to merge a bunch of results from a database. I was doing this with sorted(itertools.chain(...), key=...), but I would prefer to do this with generators. My issue is that I need the key= argument to sort on the correct field in the database. heapq.merge does

Re: free chart lib for Python?

2009-05-07 Thread alex23
On May 8, 12:27 pm, oyster wrote: > is there such a thing with many kinds of chart, i.e. pie-chart, > line-chart, ..? The best place to look is PyPI, there are several possible candidates there: http://pypi.python.org/pypi?%3Aaction=search&term=charts&submit=search I've had a lot of success

Re: Which one is best Python or Java for developing GUI applications?

2009-05-07 Thread David Cook
On 2009-05-05, srinivasan srinivas wrote: > Could you tell me does Python have any advantages over Java for the > development of GUI applications? You don't have to choose between them. You can program Swing applications in Jython. And Jython is just a jar that you can bundle in another jar f

Re: SQL and CSV

2009-05-07 Thread John Machin
On May 8, 1:45 am, Nick wrote: > On May 5, 8:27 pm, Tim Golden wrote: > > > > > Nick wrote: > > > Part of the problem is that the 'selection' needs to be in a config > > > file. I can put the if row['status'] != 'Cancelled': return True into > > > a config, read it and eval it, but its not quite

free chart lib for Python?

2009-05-07 Thread oyster
I mean chart, not plot. If you don't know the difference, you can check www.advsofteng.com, which is a commercial program is there such a thing with many kinds of chart, i.e. pie-chart, line-chart, ..? A long time ago, I programmed a rmchart interface, however rmchart is windows only, and www

update python version

2009-05-07 Thread km
Hi all, Is there a way to update python 2.6.1 to 2.6.2 using easy_install ? thanks, regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Code works fine except...

2009-05-07 Thread John Yeung
On May 7, 8:32 pm, Ross wrote: > I've managed to solve the problem. If you go in > order, the discrepancy between the player with the > least amount of byes and the greatest amount of byes > is only 1. I don't mean to rain on your parade, but that's not the case for all values. For example, with

Web Based Front End?

2009-05-07 Thread baseelinger
I have been using Python for several years now and although my main occupation is not directly related to writing code I have been able to use Python to accomplish writing complex configuration files and analyzing data against standards, etc. I now have a requirement to provide a web based interfa

Re: Call a function when a thread exits

2009-05-07 Thread Carl Banks
On May 7, 6:12 pm, "Giampaolo Rodola'" wrote: > Hi, > I'm searching for a smooth way to call a certain function when a > thread has finished its job. > I guess I can keep calling isAlive() in a loop and call my function > when it returns False but it's not very elegant. > Actually I'm a bit surpri

Re: regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
Thanks for your replies. I changed the file to look like this: { testName : {"someParam": "value1", "anotherParam": (value2, value3)}, } to make it look like a hash to Python. Thanks, Raj On Thu, May 7, 2009 at 5:19 PM, Rhodri James wrote: > On Fri, 08 May 2009 00:51:14 +0100, Rajanikanth J

Call a function when a thread exits

2009-05-07 Thread Giampaolo Rodola'
Hi, I'm searching for a smooth way to call a certain function when a thread has finished its job. I guess I can keep calling isAlive() in a loop and call my function when it returns False but it's not very elegant. Actually I'm a bit surprised it doesn't exists an "atexit" function. Something like:

Re: IIR filter conversion routines for Python?

2009-05-07 Thread Aahz
In article , wzab wrote: > >I'm looking for procedures converting the IIR filters into cascade and/ >or parallel forms. Something like dir2cas.m or dir2par.m known in the >Matlab/Octave world. >Unfortunately SciPy does not contain such functions. >If they are not available, I would be grateful fo

Re: Code works fine except...

2009-05-07 Thread Ross
On May 7, 1:11 am, John Yeung wrote: > On May 7, 12:30 am, Ross wrote: > > > > > If I were to set up a dictionary that counted players used in the bye > > list and only allowed players to be added to the bye list if they were > > within 2 of the least used player, would this be a good approach fo

Re: Pygame

2009-05-07 Thread Dave Angel
cripplem...@gmail.com wrote: I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, and what version would that be? What release, and what platform? print sys.version and include the output in your

Re: regular expression for getting content between parentheses

2009-05-07 Thread Rhodri James
On Fri, 08 May 2009 00:51:14 +0100, Rajanikanth Jammalamadaka wrote: Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the first and last parenthese

Re: regular expression for getting content between parentheses

2009-05-07 Thread Emile van Sebille
On 5/7/2009 4:51 PM Rajanikanth Jammalamadaka said... Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the first and last parentheses. In this case,

Re: Pygame

2009-05-07 Thread Mensanator
On May 7, 6:52 pm, cripplem...@gmail.com wrote: > I am following this tutorial on python, and it has instructed me to > download pygame. I am not sure it works with the new version of python > I am using, as the last version it states on the tutorial is 2.6. If the module says 2.6, then that's the

Re: Pygame

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 4:52 PM, wrote: > I am following this tutorial on python, and it has instructed me to > download pygame. I am not sure it works with the new version of python > I am using, as the last version it states on the tutorial is 2.6. > > It is telling me the module does not exist

Pygame

2009-05-07 Thread cripplemeal
I am following this tutorial on python, and it has instructed me to download pygame. I am not sure it works with the new version of python I am using, as the last version it states on the tutorial is 2.6. It is telling me the module does not exist after I download, and I even tried placing it in t

regular expression for getting content between parentheses

2009-05-07 Thread Rajanikanth Jammalamadaka
Hi I have a text file as follows: testName = ( someParam = value1 anotherParam = (value2, value3) ) how do I write a regular expression to get all the contents of the file which are between the first and last parentheses. In this case, I want: someParam = value1 anotherParam = (value2, va

Re: subprocess.Popen howto?

2009-05-07 Thread Carl Banks
On May 7, 2:58 pm, norseman wrote: > If you don't like a lot of typing that obscures the process, > take a look at os.Popen2  Pg.39 or so in Lib.pdf for 2.5.2 > In this case - the popen3 is probably your best bet. > > I took a test run on "subprocess" a few months ago. My review: > excessive typin

Re: Python 2.4.3 array memory leak

2009-05-07 Thread Robert Kern
On 2009-05-07 16:31, danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import

Re: subprocess.Popen howto?

2009-05-07 Thread Chris Rebert
2009/5/7 Øystein Johansen (OJOHANS) : > Hi, > > I have problems understanding the subprocess.Popen object. I have a > iterative calculation in a process running and I want to pipe the output > (stdout) from this calculation to a Python script. > > Let me include a simple code that simulates the cal

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 4:41 pm, Terry Reedy wrote: > danmcle...@yahoo.com wrote: > > I am using the array module to instantiate many arrays in my > > application. It seems like there is a memory leak in there somewhere. > > Can anyone confim this and let me know what, if anything, I can do > > about it? I am u

Re: Python 2.4.3 array memory leak

2009-05-07 Thread Terry Reedy
danmcle...@yahoo.com wrote: I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import commands import array

Re: Python 3.1 beta 1

2009-05-07 Thread Benjamin Peterson
lycos.com> writes: > > collections.Counter and collections.OrderedDict: very nice and useful. > Is the order inside OrderedDict kept with a double linked list of the > items? There's a doubly-linked list containing the values. Another dictionary maps keys to the list. -- http://mail.python.

Re: Python 3.1 beta 1

2009-05-07 Thread Benjamin Peterson
latinmail.com> writes: > Congratulations! Thanks! > > Is it just me or was some nice summary output added to the make > process? I get a nice list of modules that didn't compile and the ones > where the library could not be found. Are you compiling on a different platform? The nice output has

Re: Best practice for operations on streams of text

2009-05-07 Thread Terry Reedy
MRAB wrote: James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowerc

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:58 pm, "danmcle...@yahoo.com" wrote: > On May 7, 3:47 pm, "danmcle...@yahoo.com" > wrote: > > > > > On May 7, 3:31 pm, "danmcle...@yahoo.com" > > wrote: > > > > I am using the array module to instantiate many arrays in my > > > application. It seems like there is a memory leak in the

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:47 pm, "danmcle...@yahoo.com" wrote: > On May 7, 3:31 pm, "danmcle...@yahoo.com" > wrote: > > > > > I am using the array module to instantiate many arrays in my > > application. It seems like there is a memory leak in there somewhere. > > Can anyone confim this and let me know what, i

Re: subprocess.Popen howto?

2009-05-07 Thread norseman
Øystein Johansen (OJOHANS) wrote: Hi, I have problems understanding the subprocess.Popen object. I have a iterative calculation in a process running and I want to pipe the output (stdout) from this calculation to a Python script. Let me include a simple code that simulates the calculating p

Re: Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
On May 7, 3:31 pm, "danmcle...@yahoo.com" wrote: > I am using the array module to instantiate many arrays in my > application. It seems like there is a memory leak in there somewhere. > Can anyone confim this and let me know what, if anything, I can do > about it? I am using Fedora Core 5 Linux: >

Re: Newcomer to Python tutorial question

2009-05-07 Thread Terry Reedy
Alan Cameron wrote: why is the printed result of basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) {'orange', 'banana', 'pear', 'apple'} in the sequence given? It appears that I used a reserved term when I used 'sequence'. No and Sort-of. No: We often use

Re: Python 3.1 beta 1

2009-05-07 Thread bearophileHUGS
Terry Reedy: bearophile: > > Well, I'd like function call semantics pass-in keyword arguments to > > use OrderedDicts then... :-) [...] > It would require a sufficiently fast C implementation. Right. Such dict is usually small, so if people want it ordered, it may be better to just use an array o

Python 2.4.3 array memory leak

2009-05-07 Thread danmcle...@yahoo.com
I am using the array module to instantiate many arrays in my application. It seems like there is a memory leak in there somewhere. Can anyone confim this and let me know what, if anything, I can do about it? I am using Fedora Core 5 Linux: import commands import array import itertools import sys

Re: Best practice for operations on streams of text

2009-05-07 Thread MRAB
James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the inpu

Re: SimpleXMLRPCServer and creating a new object on for each new client request.

2009-05-07 Thread Piet van Oostrum
> Jelle Smet (JS) wrote: >JS> Hi list, >JS> My goals is to have concurrent and separated client sessions using xmlrpc. >JS> Initially my though was that SimpleXMLRPCServer was able to create a new >JS> object instance for each incoming request. >JS> But this doesn't appear to be the case, un

Re: Downloading most recently modified files

2009-05-07 Thread Shawn Milochik
On Thu, May 7, 2009 at 2:19 PM, AllenLars wrote: > > I am trying to code a script that will allow me to go to ftp site and > download files based on most recently modified file (date, time).  I am > brand new to programming.  Any and all help is appreciated. > -- I've actually written code to do

Re: Which python version do I use with "virtualenv"?

2009-05-07 Thread Duncan Booth
OldGrantonian wrote: > Where do I find the win32 extensions? http://www.google.com/search?q=python+win32 Any of the first 4 hits should help. -- http://mail.python.org/mailman/listinfo/python-list

Re: Best practice for operations on streams of text

2009-05-07 Thread Gary Herron
James wrote: Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the inpu

Re: Python 3.1 beta 1

2009-05-07 Thread Terry Reedy
bearophileh...@lycos.com wrote: Is the order inside OrderedDict kept with a double linked list of the items? That is one of the things Raymond tried. Check the code for what he settled on for the Python version. I believe he thinks the best C implementation might be different from the best

Re: Which python version do I use with "virtualenv"?

2009-05-07 Thread OldGrantonian
On May 7, 9:03 pm, Emile van Sebille wrote: > On 5/7/2009 12:53 PM OldGrantonian said... > > > > > On May 7, 12:34 pm, Duncan Booth wrote: > >> OldGrantonian wrote: > >>> Thanks to both Steven D'Aprano and Ant :) > >  Sounds like you've downloaded the Python 2.5 version of Easy Install. > >>

Re: Which one is best Python or Java for developing GUI applications?

2009-05-07 Thread norseman
Tim Rowe wrote: 2009/5/6 Dennis Lee Bieber : (the "near" is because I feel Ada is stricter than any other language) Try SPARK -- it's Ada based, but /much/ stricter. It's just right for some really critical stuff, but is no sort of an answer to "Which one is best Python or Java for developing

Re: list comprehension question

2009-05-07 Thread Terry Reedy
J Kenneth King wrote: Keep in mind that nested comprehensions are still available because they do have a use case that justifies their existence. Nested comprehensions are available because because the syntax makes them available by default and making a fiddly exception would be contrary to

Re: Best practice for operations on streams of text

2009-05-07 Thread J Kenneth King
James writes: > Hello all, > I'm working on some NLP code - what I'm doing is passing a large > number of tokens through a number of filtering / processing steps. > > The filters take a token as input, and may or may not yield a token as > a result. For example, I might have filters which lowerca

Re: Which python version do I use with "virtualenv"?

2009-05-07 Thread Emile van Sebille
On 5/7/2009 12:53 PM OldGrantonian said... On May 7, 12:34 pm, Duncan Booth wrote: OldGrantonian wrote: Thanks to both Steven D'Aprano and Ant :) Sounds like you've downloaded the Python 2.5 version of Easy Install. There's no Python 2.6 version of EasyInstall :( I wonder what I've been r

Best practice for operations on streams of text

2009-05-07 Thread James
Hello all, I'm working on some NLP code - what I'm doing is passing a large number of tokens through a number of filtering / processing steps. The filters take a token as input, and may or may not yield a token as a result. For example, I might have filters which lowercases the input, filter out b

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Piet van Oostrum
> elwinter (e) wrote: >e> Hi Ned. The Python module I am building is actually the Python module >e> for ROOT, a large package from CERN. However, the problem arises >e> before that code enters the picture, when I am building Python itself. >e> All I want to do is create "libpython2.5.dylib",

Re: P2P text chat engine

2009-05-07 Thread Emile van Sebille
On 5/7/2009 11:23 AM Diez B. Roggisch said... Navanjo schrieb: If you have the source code of a p2p text chat engine please send to me I found that & a pot of gold under my bed. Care to give me your address so that I can send it to you? Yeah -- this is how it starts. Before too long you'

Re: Which python version do I use with "virtualenv"?

2009-05-07 Thread OldGrantonian
On May 7, 12:34 pm, Duncan Booth wrote: > OldGrantonian wrote: > > Thanks to both Steven D'Aprano and Ant :) > > >>>  Sounds like you've downloaded the Python 2.5 version of Easy Install. > > > There's no Python 2.6 version of EasyInstall :( > > I wonder what I've been running then? > > > > > For

Re: Python 3.1 beta 1

2009-05-07 Thread pruebauno
On May 6, 9:32 pm, Benjamin Peterson wrote: > On behalf of the Python development team, I'm thrilled to announce the first > and > only beta release of Python 3.1. > > Python 3.1 focuses on the stabilization and optimization of features and > changes > Python 3.0 introduced.  For example, the ne

Re: Threading and GIL

2009-05-07 Thread googler . 1 . webmaster
hey, thanks, that works fine. I wrapped it around, done a lot of tests and it works fine. Just had done a few other things to make it stable. cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newcomer to Python tutorial question

2009-05-07 Thread Peter Otten
Alan Cameron wrote: > "Alan Cameron" wrote in message > news:hrfml.50224$tb.4...@newsfe07.ams2... >>I am not sure of this is the right place to ask a question about the >>tutorial >> >> http://docs.python.org/3.0/tutorial/datastructures.html#sets >> >> why is the printed result of >> > basket

Re: Newcomer to Python tutorial question

2009-05-07 Thread Alan Cameron
"Chris Rebert" wrote in message news:mailman.5238.1241723354.11746.python-l...@python.org... > On Thu, May 7, 2009 at 11:58 AM, Alan Cameron > wrote: >> "Alan Cameron" wrote in message >> news:hrfml.50224$tb.4...@newsfe07.ams2... >>>I am not sure of this is the right place to ask a question ab

RE: Wing vs Netbeans IDE?

2009-05-07 Thread J. Clifford Dyer
On Thu, 2009-05-07 at 10:49 -0700, Benjamin J. Racine wrote: > I'd love to see an updated shootout between these three, as I cannot for the > life of me seem to be able to settle down with one of them. > > Things I don't like: > Wing's lack of integrated mercurial/svn support. Wing *does* have

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread Stefan Behnel
Florian Wollenschein wrote: > Will Wang wrote: >> *emphasis* >> **strong emphasis** >> ***very strong emphasis*** >> _underlined_ >> =verbatim and monospace= >> >> emacs-muse : http://mwolson.org/projects/EmacsMuse.html > > Thank you for this information. I already thought of using dots or > aster

Re: Newcomer to Python tutorial question

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 11:58 AM, Alan Cameron wrote: > "Alan Cameron" wrote in message > news:hrfml.50224$tb.4...@newsfe07.ams2... >>I am not sure of this is the right place to ask a question about the >>tutorial >> >> http://docs.python.org/3.0/tutorial/datastructures.html#sets >> >> why is the

Re: Self function

2009-05-07 Thread bearophileHUGS
Francis Carr: I don't know who are you talking to, but I can give you few answers anyway. >collections of multiply-recursive functions (which get used very frequently -- >by no means is it an uncommon situation, as you suggest in your initial post),< They may be frequent in Scheme (because it's

Re: P2P text chat engine

2009-05-07 Thread Diez B. Roggisch
Navanjo schrieb: If you have the source code of a p2p text chat engine please send to me I found that & a pot of gold under my bed. Care to give me your address so that I can send it to you? SCNR, Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: hex(dummy)[2:] - issue...

2009-05-07 Thread Florian Wollenschein
Tim Chase wrote: I need some advice :-) I'm using hex(dummy)[2:] to represent a color in hexadecimal format for the bgcolor in an html file. dummy is the color value in RGB of course... Now, if there's an R, G or B value of zero, this command only prints one single 0 instead of two. What's w

Re: Simple way of handling errors

2009-05-07 Thread Matt Nordhoff
Steven D'Aprano wrote: > On Wed, 06 May 2009 20:21:38 -0700, TomF wrote: > >>> The only reason you would bother going to the time and effort of >>> catching the error, printing your own error message, and then exiting, >>> is if you explicitly want to hide the traceback from the user. >> Well, to

[RELEASED] Python 3.1 beta 1

2009-05-07 Thread Benjamin Peterson
On behalf of the Python development team, I'm thrilled to announce the first and only beta release of Python 3.1. Python 3.1 focuses on the stabilization and optimization of features and changes Python 3.0 introduced. For example, the new I/O system has been rewritten in C for speed. File system

subprocess.Popen howto?

2009-05-07 Thread OJOHANS
Hi, I have problems understanding the subprocess.Popen object. I have a iterative calculation in a process running and I want to pipe the output (stdout) from this calculation to a Python script. Let me include a simple code that simulates the calculating process: /* This code simulates a big

Re: Could this expression parser be more 'Pythonic'?

2009-05-07 Thread Amr
Hi John, Thanks for the tips, I will check them out. --Amr -- http://mail.python.org/mailman/listinfo/python-list

Re: Newcomer to Python tutorial question

2009-05-07 Thread Peter Otten
Alan Cameron wrote: > I am not sure of this is the right place to ask a question about the > tutorial > > http://docs.python.org/3.0/tutorial/datastructures.html#sets > > why is the printed result of > basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) > {

Re: Newcomer to Python tutorial question

2009-05-07 Thread Alan Cameron
"Alan Cameron" wrote in message news:hrfml.50224$tb.4...@newsfe07.ams2... >I am not sure of this is the right place to ask a question about the >tutorial > > http://docs.python.org/3.0/tutorial/datastructures.html#sets > > why is the printed result of > basket = {'apple', 'orange', 'apple',

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread News123
Florian Wollenschein wrote: > As you might have mentioned I'm just working on a txt to html converter > called "thc". This project is intended for me to learn Python and now > pyQT4 to which I changed a few days ago (started with Tkinter). > > I have implemented the following features so far: > >

Re: Newcomer to Python tutorial question

2009-05-07 Thread Florian Wollenschein
Alan Cameron wrote: I am not sure of this is the right place to ask a question about the tutorial http://docs.python.org/3.0/tutorial/datastructures.html#sets why is the printed result of basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) {'orange', 'banana', 'p

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread Florian Wollenschein
Will Wang wrote: "Florian" == Florian Wollenschein writes: Florian> As you might have mentioned I'm just working on a txt to html converter called Florian> "thc". This project is intended for me to learn Python and now pyQT4 to which I Florian> changed a few days ago (started wi

Re: Newcomer to Python tutorial question

2009-05-07 Thread Arnaud Delobelle
"Alan Cameron" writes: > I am not sure of this is the right place to ask a question about the > tutorial > > http://docs.python.org/3.0/tutorial/datastructures.html#sets > > why is the printed result of > basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} print(basket) >

Re: Newcomer to Python tutorial question

2009-05-07 Thread Chris Rebert
On Thu, May 7, 2009 at 11:35 AM, Alan Cameron wrote> I am not sure of this is the right place to ask a question about the > tutorial > > http://docs.python.org/3.0/tutorial/datastructures.html#sets > > why is the printed result of > basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'ban

Get Into The World Of YOUSUF JUSANI

2009-05-07 Thread muhammadanushanif
Get The Most Valuable and Best For Investment Properties IN ASIA, !! Real Estate Builders.. Real Estate Dealer Buy, Sell REAL EASTAE IN GULF ,DUBAI AND AUSTRIA FOR MORE INFO http://www.yousufjusani.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Newcomer to Python tutorial question

2009-05-07 Thread Alan Cameron
I am not sure of this is the right place to ask a question about the tutorial http://docs.python.org/3.0/tutorial/datastructures.html#sets why is the printed result of >>> basket = {'apple', 'orange', 'apple', 'pear', 'orange', 'banana'} >>> print(basket) {'orange', 'banana', 'pear', 'apple'}

Re: Threading and GIL

2009-05-07 Thread Carl Banks
On May 7, 12:20 am, googler.1.webmas...@spamgourmet.com wrote: > thats the reason why its not working. Imagine the end() method of the > thread object is called so the C++ Function is opened where the code > for this method is in. You're going to have to post some code if you want better help; thi

Re: Updating an Imported Function

2009-05-07 Thread Diez B. Roggisch
Donovan Parks schrieb: Hello, I'm new to Python and have what is probably a very basic question. I am writing a helloWorld() function within a file called helloWorld.py: def helloWorld(): print 'hi' Now, I can import and run this function: import helloWorld helloWorld.helloWorld() Wh

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread Will Wang
> "Florian" == Florian Wollenschein > writes: Florian> As you might have mentioned I'm just working on a txt to html converter called Florian> "thc". This project is intended for me to learn Python and now pyQT4 to which I Florian> changed a few days ago (started with Tkint

Downloading most recently modified files

2009-05-07 Thread AllenLars
I am trying to code a script that will allow me to go to ftp site and download files based on most recently modified file (date, time). I am brand new to programming. Any and all help is appreciated. -- View this message in context: http://www.nabble.com/Downloading-most-recently-modified-file

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread norseman
Dotan Cohen wrote: As you might have mentioned I'm just working on a txt to html converter called "thc". This project is intended for me to learn Python and now pyQT4 to which I changed a few days ago (started with Tkinter). I have implemented the following features so far: - Giving a title for

Updating an Imported Function

2009-05-07 Thread Donovan Parks
Hello, I'm new to Python and have what is probably a very basic question. I am writing a helloWorld() function within a file called helloWorld.py: def helloWorld(): print 'hi' Now, I can import and run this function: import helloWorld helloWorld.helloWorld() Which will print 'hi' as ex

RE: Wing vs Netbeans IDE?

2009-05-07 Thread Benjamin J. Racine
I'd love to see an updated shootout between these three, as I cannot for the life of me seem to be able to settle down with one of them. Things I don't like: Wing's lack of integrated mercurial/svn support. The clunkiness and scattered plugin approach of Eclipse (the latter is relavent when sta

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Ned Deily
In article <0e05eca2-b460-4e01-aa54-cc1055f51...@q14g2000vbn.googlegroups.com>, elwinter wrote: > The Python module I am building is actually the Python module > for ROOT, a large package from CERN. However, the problem arises > before that code enters the picture, when I am building Python itse

Re: What would YOU like to see in a txt to html converter?

2009-05-07 Thread Dotan Cohen
> As you might have mentioned I'm just working on a txt to html converter > called "thc". This project is intended for me to learn Python and now pyQT4 > to which I changed a few days ago (started with Tkinter). > > I have implemented the following features so far: > > - Giving a title for the html

Re: Wing vs Netbeans IDE?

2009-05-07 Thread nnp
I've tried Wing but not NetBeans. I would personally recommend Eclipse with the PyDev plugin. I prefer it to Wing by *far* and if you prefer Eclipse to NetBeans for Java then it might be worth your while checking it out. If you take a few minutes to learn a few of the shortcuts in Eclipse you can r

Re: list comprehension question

2009-05-07 Thread J Kenneth King
Steven D'Aprano writes: > On Wed, 06 May 2009 09:48:51 -0400, J Kenneth King wrote: > >> Emile van Sebille writes: >> >>> On 5/5/2009 9:15 AM J Kenneth King said... >>> List comprehensions can make a reader of your code apprehensive because it can read like a run-on sentence and thus

Wing vs Netbeans IDE?

2009-05-07 Thread Lawrence Hanser
Dear Colleagues, I have been using NetBeans for a month or so now and am reasonably happy with it. I'm considering other options, and ran across Wing. I'm interested in opinions about NetBeans and Wing as IDE for Python. Thanks, Larry -- http://mail.python.org/mailman/listinfo/python-list

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread elwinter
Hi Ned. The Python module I am building is actually the Python module for ROOT, a large package from CERN. However, the problem arises before that code enters the picture, when I am building Python itself. All I want to do is create "libpython2.5.dylib", or its equivalent, and I can't seem to make

Re: Logging exceptions to a file

2009-05-07 Thread segfaulthunter
On May 7, 1:19 pm, Pierre GM wrote: > On May 7, 5:32 am, Lie Ryan wrote: > > > > > Pierre GM wrote: > > > All, > > > I need to log messages to both the console and a given file. I use the > > > following code (on Python 2.5) > > > import logging > > # > > logging.basicConfig(level=

Re: Self function

2009-05-07 Thread Arnaud Delobelle
Luis Alberto Zarrabeitia Gomez writes: > A bit offtopic: a while ago I think I saw a recipe for a decorator > that, via bytecode hacks, would bind otherwise global names to the > local namespace of the function. Can anyone remember it/point me to > it? An @bind decorator that would 'localize' all

Re: Logging exceptions to a file

2009-05-07 Thread Stephen Hansen
> > > > > So far so good, but I'd like to record (possibly unhandled) exceptions > > > in the logfile. > > > * Do I need to explicitly trap every single exception ? > > > * In that case, won't I get 2 log messages on the console (as > > > illustrated in the code below: > Check out sys.excepthook,

What would YOU like to see in a txt to html converter?

2009-05-07 Thread Florian Wollenschein
As you might have mentioned I'm just working on a txt to html converter called "thc". This project is intended for me to learn Python and now pyQT4 to which I changed a few days ago (started with Tkinter). I have implemented the following features so far: - Giving a title for the html - Choose

Re: Unable to build libpython2.5.so on OS X 10.4

2009-05-07 Thread Ned Deily
In article , Eric Winter wrote: > Hi all. I'm trying to build some internal code that needs to link > against libpython2.5.so on a OS X 10.4 (Tiger) machine. It seems that > no matter what combination of options and environment variables I give > to the configure script from python 2.5.1, all I

  1   2   >