raw_input just continues anyway?

2007-04-03 Thread [EMAIL PROTECTED]
Hey Everyone, This is probably going to sound like a bit of a stupid question - but why does (in the following code) the script just continue to run past the raw_input, when the user hasn't entered anything? if __name__ == "__main__": bucket_name = raw_input('Name of the bucket you wish t

Re: Finding and copying files with python.

2007-04-03 Thread [EMAIL PROTECTED]
Just sort them and then select the bottom one from a list by using a negative indices. I.e.: list[-1] Would return the bottom result out of a list On Apr 3, 2:21 pm, "gtb" <[EMAIL PROTECTED]> wrote: > I wish to copy the highest version number of a file from directory \

Re: raw_input just continues anyway?

2007-04-03 Thread [EMAIL PROTECTED]
Hi There, Here's the full code, if it helps: """ Takes a list of filenames via standard input and uploads them to Amazon S3. Requires S3.py: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=134&categoryID=47 Usage: cd /directory/with/media/files/ fin

Re: raw_input just continues anyway?

2007-04-03 Thread [EMAIL PROTECTED]
How could I resolve this? Many thanks, O -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen--which one to use?

2007-04-03 Thread [EMAIL PROTECTED]
On Apr 3, 12:53 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > I'm confused by the number of variations on "popen" that Python offers. > > I'm using os.popen in my programs without difficulty. Is this wrong? > Should I be using popen 2, popen3, etc.? I'm n

Tkinter, how to get a button's bg color

2007-04-03 Thread [EMAIL PROTECTED]
I am new to Tkinter. Following an example, I executed the following: window = Tk() b = Button(window) b.configure(bg = '#FF00FF') b.grid(row = 0, column = 0) how can I later get the value of this button's background color? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

How can I time how much each thread takes?

2007-04-03 Thread [EMAIL PROTECTED]
Hi, I have the following code which spawn a number of thread and do something (in the run method of MyThread). how can I record how much time does EACH thread takes to complete the 'run'? for j in range(threadCount): t = MyThread(testNo) threads.append(t)

Meetup in Amsterdam

2007-04-04 Thread [EMAIL PROTECTED]
I'm going to Amsterdam friday the 6. and would like to grab a beer with anyone interested in Python and possible Django development. My company is looking into building a CMS based on Django. Mail me at martinskou [at] gmail [dot] com. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to build a forum in Python?

2007-04-04 Thread [EMAIL PROTECTED]
There are several different web frameworks in which a forum can be implemented. Try to take a look at Django and Turbogear. You will need to put some time into learning the framework. But, if you want an easy "copy-paste" forum solution, I guess you will be better of with one of the PHP open sourc

Symposium "Computational Methods in Image Analysis" within the USNCCM IX Congress - Announce & Call for Papers

2007-04-04 Thread [EMAIL PROTECTED]
- (Apologies for cross-posting) Symposium "Computational Methods in Image Analysis" National Congress on Computational Mechanics (USNCCM IX) San Francisco,

How can I make sure my python exit

2007-04-04 Thread [EMAIL PROTECTED]
Hi, I have a python script: At the end of the script, I have: print "Build Done!" my question is does that mean my python script exits after it prints "Build done!" I have a java program which calls this python script. But i run into a problem in which the python script never returns to the jav

Re: operator overloading

2007-04-04 Thread [EMAIL PROTECTED]
On Apr 4, 4:55 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Ziga Seilnacht" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | This looks like a bug in Python. It works for all the other > | operators: [SNIP] > | >>>

snippet manager idea

2007-04-05 Thread [EMAIL PROTECTED]
Hi. I am writing a opensource code snippet manager in python (pyqt4). The idea is that users can upload their snippets to remote subversion server, (if they choose) and add comments to existing snippets, vote for snippet deletion, add flags to snippets: (tested, working, not working... etc) The sni

snippet manager idea

2007-04-05 Thread [EMAIL PROTECTED]
Hi. I am writing a opensource code snippet manager in python (pyqt4). The idea is that users can upload their snippets to remote subversion server, (if they choose) and add comments to existing snippets, vote for snippet deletion, add flags to snippets: (tested, working, not working... etc) The sni

Re: RFC: Assignment as expression (pre-PEP)

2007-04-05 Thread [EMAIL PROTECTED]
On Apr 5, 4:22 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > Can you come up with a real example where this happens and which cannot be > easily rewritten to provide better, clearer code without the indentation? > > I'll admit to having occasionally had code not entirely di

Re: RFC: Assignment as expression (pre-PEP)

2007-04-05 Thread [EMAIL PROTECTED]
On Apr 5, 6:01 pm, Neil Hodgson <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED]: > > > else: > > my_match = capper_re.match(f): > > if my_match: > > capper = capper_re.match(f).group(1) > > if

HTML Parser in python

2007-04-06 Thread [EMAIL PROTECTED]
Hi, Is there a HTML parser (not xml) in python? I need a html parser which has the ability to handle mal-format html pages. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

SWIG, Python, C++, and Coca-Cola

2007-04-06 Thread [EMAIL PROTECTED]
Hi Everyone, Recently I have been working on building a module for Python from C++ code, with SWIG, and towards the end of compiling the various sets of code I'm getting an error. [comp:~/swig_project] user% swig -c++ -python example.i [comp:~/swig_project] user% g++ -c example.cpp [comp:~/swig_p

Re: Getting Stack Trace on segfault

2007-04-06 Thread [EMAIL PROTECTED]
On Apr 6, 8:13 am, James Stroud <[EMAIL PROTECTED]> wrote: > Hello All, > > The built-in mac osx vecLib is segfaulting in some cases--A very fun > fact to find out the hard way over two nights of work. I also spent an > embarrassing amount of time figuring out just where. Alth

Re: Getting Stack Trace on segfault

2007-04-07 Thread [EMAIL PROTECTED]
etween the two with respect to colorizing lines of code. On Apr 6, 10:49 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Apr 6, 8:13 am, James Stroud <[EMAIL PROTECTED]> wrote: > > > > > Hello All, > > > The built-in mac osx vecLib is segfa

Re: Checking whether list element exists

2007-04-07 Thread [EMAIL PROTECTED]
On Apr 7, 10:37�am, Wojciech Mula <[EMAIL PROTECTED]> wrote: > Rehceb Rotkiv wrote: > > I want to check whether, for example, the element myList[-3] exists. So > > far I did it like this: > > > index = -3 > > if len(myList) >= abs(index): > > �

Re: Checking whether list element exists

2007-04-07 Thread [EMAIL PROTECTED]
On Apr 7, 10:52�am, Rehceb Rotkiv <[EMAIL PROTECTED]> wrote: > > In general case it won't work, because lists accept negative indexes: > >http://docs.python.org/lib/typesseq.html, 3rd note. > > Yes, I know! I _want_ the "3rd last list element", i.e. list[-3].

Why does not my wx.html.HtmlWindow work?

2007-04-07 Thread [EMAIL PROTECTED]
Below are my source code: import wx import wx.html class MyHtmlFrame(wx.Frame): def __init__(self, parent, title): wx.Frame.__init__(self, parent, -1, title, size=(600,400)) html = wx.html.HtmlWindow (self) if "gtk2" in wx.PlatformInfo: html.SetStandardFon

Re: Why does not my wx.html.HtmlWindow work?

2007-04-08 Thread [EMAIL PROTECTED]
On 4月8日, 下午2时29分, Thomas Krüger <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > html.LoadPage("http://www.pythonthreads.com/articles/python/incorporating-into-wxpyt...";) > > Quickshot: There's a space at the start of your U

Re: How do I get a slice of a string held in a tuple?

2007-04-08 Thread [EMAIL PROTECTED]
On Apr 8, 11:34?am, Lorenzo Thurman <[EMAIL PROTECTED]> wrote: > I have tuple which hold a string in tup[0]. I want to get a slice of > that string. I thought I would do something like: > tup[0][start:end] > But this fails. No, it doesn't. >>> a = ('abcdefg

Re: How do I get a slice of a string held in a tuple?

2007-04-08 Thread [EMAIL PROTECTED]
On Apr 8, 12:29�pm, Lorenzo <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > > > > > > �"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > On Apr 8, 11:34?am, Lorenzo Thurman <[EMAIL PROTECTED]> > > wrote: > &g

Re: How do I get a slice of a string held in a tuple?

2007-04-08 Thread [EMAIL PROTECTED]
On Apr 8, 12:29�pm, Lorenzo <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > > > > > > �"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > On Apr 8, 11:34?am, Lorenzo Thurman <[EMAIL PROTECTED]> > > wrote: > &g

Re: Why does not my wx.html.HtmlWindow work?

2007-04-08 Thread [EMAIL PROTECTED]
On Apr 9, 1:01 am, Rob Williscroft <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote innews:[EMAIL PROTECTED] > comp.lang.python: > > > > > Below are my source code: > > > import wx > > import wx.html > > > class MyHtmlFrame(wx

pluie documentation in english

2007-04-09 Thread [EMAIL PROTECTED]
I have converted the pluie documentation from french to english in a pdf. There may be some errors due to translation of the commands themselves that I have not fixed yet. I am still playing around with the library to see if it is of any use so there may be more documentation to come.. http

Re: pluie documentation in english

2007-04-09 Thread [EMAIL PROTECTED]
On Apr 9, 4:25 am, Michel Claveau <[EMAIL PROTECTED]> wrote: > Hi! > Bonjour ! > > Thanks very well for translation. > Merci beaucoup pour la traduction. > > I add a link on the index page of the site. > J'ai ajouté un lien vers le document, dans la page d&#x

Re: Is there a simple function to generate a list like ['a', 'b', 'c', ... 'z']?

2007-04-09 Thread [EMAIL PROTECTED]
map(chr,range(65,91)) /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: pluie documentation in english

2007-04-09 Thread [EMAIL PROTECTED]
On Apr 9, 4:25 am, Michel Claveau <[EMAIL PROTECTED]> wrote: > Hi! > Bonjour ! > > Thanks very well for translation. > Merci beaucoup pour la traduction. > > I add a link on the index page of the site. > J'ai ajouté un lien vers le document, dans la page d&#x

Re: SNMP agent

2007-04-09 Thread [EMAIL PROTECTED]
Consider taking a look at pysnmp-4 -- it has been designed with Agent role in mind. Here's an example Agent script: http://pysnmp.sourceforge.net/examples/4.x/v3arch/agent/cmdrsp.html > I have a Python app and i would like to add someSNMPagent > functionality to it. -- http://mail.python.org/ma

focus trap in tkinter

2007-04-09 Thread [EMAIL PROTECTED]
Hi all, I'm trying to write a simple tkinter program, then this problem popped up. The followin code will describe the problem. -- import Tkinter class countdown(Tkinter.Frame): def __init__(self, master = None): Tkinter.Frame.__in

How can I import functions from another python file

2007-04-09 Thread [EMAIL PROTECTED]
Hi, i have 2 python files in *different directory* , how can I import python functions from 1 python file to another? i get this error: import task ImportError: No module named task/ Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Exec Statement Question

2007-04-10 Thread [EMAIL PROTECTED]
Thanks for the responses everyone. That does make sense to me now. -Greg -- http://mail.python.org/mailman/listinfo/python-list

exec statement Syntax Error on string pulled from MySQL

2007-04-10 Thread [EMAIL PROTECTED]
It's the strangest thing, I'm pulling some text out of a MySQL table and trying to run exec on it, and it keeps giving me a syntax error, always at the end of the first line. Thanks in advance for any help. I'm really stuck on this one! -Greg I'm not sure what information would be most useful

Re: pluie documentation in english

2007-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 3:14 am, "Méta-MCI" <[EMAIL PROTECTED]> wrote: > Bonjour ! > > Avec Internet-Explorer 6 : > > Dans Internet-explorer, par le menu, faire : Outils + Options_internet > Aller sur le dernier onglet (Avancé), et cocher : autoriser le contenu actif >

Re: pluie documentation in english

2007-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 3:14 am, "Méta-MCI" <[EMAIL PROTECTED]> wrote: > Bonjour ! > > Avec Internet-Explorer 6 : > > Dans Internet-explorer, par le menu, faire : Outils + Options_internet > Aller sur le dernier onglet (Avancé), et cocher : autoriser le contenu actif >

Re: Kill thread or at least socket.getaddrinfo

2007-04-10 Thread [EMAIL PROTECTED]
On 26 Mar., 18:08, [EMAIL PROTECTED] wrote: > you know the pid, you can kill it, but that's not always a > clean way of accomplishing the task. So I have to open the connection in a new process... Sigh.. How I hate this part of Python. -- http://mail.python.org/mailman/listinfo/python-list

Re: exec statement Syntax Error on string pulled from MySQL

2007-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 4:49 am, Georg Brandl <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] schrieb: > > > > > It's the strangest thing, I'm pulling some text out of a MySQL table > > and trying to run exec on it, and it keeps giving me a syntax error, > > always

Re: exec statement Syntax Error on string pulled from MySQL

2007-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 2:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Now I just have to figure out how the '\r' are getting in > there. I entered that piece of code using PHPMyAdmin so that could be > doing it, or MySQLdb could be doing it when returning it, o

Re: NLTK, Random Sentence Generators?

2007-04-10 Thread [EMAIL PROTECTED]
On Apr 10, 1:59 pm, Paulo da Silva <[EMAIL PROTECTED]> wrote: > gene tani escreveu: > > > On Apr 10, 1:36 am, Passer By <[EMAIL PROTECTED]> wrote: > >> Has any created or not of examples of random sentence generators using > >> n-gram models (or other mode

Re: ValueError: too many values to unpack

2007-04-11 Thread [EMAIL PROTECTED]
That happens when you try something like this: a,b,c = [1,2,3,4] It means there are more items on the right side than the left. You probably have < 11 variables on the left side. On Apr 11, 10:13 am, "fscked" <[EMAIL PROTECTED]> wrote: > Trying to use CSV to read in a lin

Re: pop() clarification

2007-04-11 Thread [EMAIL PROTECTED]
Carl Banks wrote: > On Apr 11, 3:10 pm, "7stud" <[EMAIL PROTECTED]> wrote: > > On Apr 11, 10:44 am, "Scott" <[EMAIL PROTECTED]> wrote: > > > > > > > > > As said before I'm new to programming, and I need in depth explain

Re: reading from sys.stdin

2007-04-12 Thread [EMAIL PROTECTED]
On Apr 12, 4:20 am, "7stud" <[EMAIL PROTECTED]> wrote: > I can't break out of the for loop in this example: > > -- > import sys > > lst = [] > for line in sys.stdin: > lst.append(line) > break > > print lst > --- You ma

Re: reading from sys.stdin

2007-04-12 Thread [EMAIL PROTECTED]
On Apr 12, 10:25 am, "Matimus" <[EMAIL PROTECTED]> wrote: > * well, not ALL, it will read in chunks. But, I think they are 4096 > Byte chunks by default. If you are referring to the read ahead buffer size, it is 8192 bytes. Raghu. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lists and Tuples and Much More

2007-04-12 Thread [EMAIL PROTECTED]
On Apr 12, 5:38 pm, "Scott" <[EMAIL PROTECTED]> wrote: > I'm going to start grouping all my questions in one post as this is my > second today, and sorta makes me feel dumb to keep having to bother you all > with trivial questions. I'

Re: Problem with algorithm

2007-04-12 Thread [EMAIL PROTECTED]
On Apr 12, 10:16�pm, "Jia Lu" <[EMAIL PROTECTED]> wrote: > Hi all. > �I want to create a large list like: > > ~ > > Is there any good algorithm to do this? Sure. test = '01' for m in test: for n in test: for o in test:

Re: Getting Stack Trace on segfault

2007-04-13 Thread [EMAIL PROTECTED]
f you compiled you're module code with debug options Cheers! Bernhard On Apr 11, 10:51 pm, [EMAIL PROTECTED] (John J. Lee) wrote: > James Stroud <[EMAIL PROTECTED]> writes: > > Hello All, > > > The built-in mac osx vecLib is segfaulting in some cases--A very fun > >

Re: How to get a forum for your free site?

2007-04-13 Thread [EMAIL PROTECTED]
On Apr 13, 9:38 pm, "Ann" <[EMAIL PROTECTED]> wrote: > If you have something good and want to show or share it with > eachother ,what would you do then? > Send it one by one ?It's so slow and boring that you will be tired and > have no interested to do that again

Re: Making a tree out of a 2 column list

2007-04-14 Thread [EMAIL PROTECTED]
On Apr 14, 9:37�am, "Sebastian Bassi" <[EMAIL PROTECTED]> wrote: > I have a two column list like: > > 2,131 > 6,335 > 7,6 > 8,9 > 10,131 > 131,99 > 5,10 > > And I want to store it in a tree-like structure. > So if I request 131, it should return

Re: Making a tree out of a 2 column list

2007-04-14 Thread [EMAIL PROTECTED]
Hope this helps # list of pairs [child,parent] list=[[2,131],[6,335],[7,6],[8,9],[10,131],[131,99],[5,10]] # list with loop #list=[[2,131],[6,335],[7,6],[8,9],[10,131],[131,99],[5,10],[3,10], [131,3]] # put the pairs in a dictionary, for easy retrieval d={} for c,p in list: # must be abl

Re: Getting started with python

2007-04-14 Thread [EMAIL PROTECTED]
I'd like to second this request or at least find out if there are any type of Python mentorship programs I could join. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > Hello, after reading some of the book Programming Python it seems that > python is something I would like to delve deeper into. The only thing > is, I have no idea what I should try and write. So I was hoping that

Re: combination function in python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 15, 11:34�am, Anton Vredegoor <[EMAIL PROTECTED]> wrote: > Jussi Piitulainen wrote: > >> There's probably even a really clever way to avoid that final > >> division, but I suspect that would cost more in time and memory than > >> it would sav

Re: combination function in python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 15, 4:16?pm, Anton Vredegoor <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > >> We're getting closer and closer to something I already posted a few > >> times here. This implementation was unfortunate because I consistently > >> used an uncom

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 15, 8:05 pm, [EMAIL PROTECTED] wrote: > On Apr 15, 9:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Apr 14, 7:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > > > > Hello, after reading some of the boo

Re: Getting started with python

2007-04-15 Thread [EMAIL PROTECTED]
The Python Papers (http://pythonpapers.org) is another resource for Python developers, especially those interested in keeping tabs on the various projects and articles out there in the community. Cheers, -T (Editor-In-Chief, The Python Papers) -- http://mail.python.org/mailman/listinfo/python-li

Re: How to initialize a table of months.

2007-04-15 Thread [EMAIL PROTECTED]
On Apr 16, 1:14 pm, "Paul McGuire" <[EMAIL PROTECTED]> wrote: > On Apr 15, 10:33 pm, "7stud" <[EMAIL PROTECTED]> wrote: > > > > > On Apr 15, 9:30 pm, "7stud" <[EMAIL PROTECTED]> wrote: > > > > On Apr 15, 7:30 pm,

Re: How to generate a continuous string

2007-04-16 Thread [EMAIL PROTECTED]
On 16 avr, 12:03, "人言落日是天涯,望极天涯不见家" <[EMAIL PROTECTED]> wrote: > How to generate a continuous string, like this > "aaa" > the number of characters is dynamic. Is there a module or function > implement this string ? > such as: duplicate_

Re: strange behaviour with keyword arguments and inheritance

2007-04-16 Thread [EMAIL PROTECTED]
On Apr 17, 8:56 am, "matthewperpick" <[EMAIL PROTECTED]> wrote: > Check out this toy example that demonstrates some "strange" behaviour > with keyword arguments and inheritance. > > = > > class Parent: > def __i

Re: combination function in python

2007-04-16 Thread [EMAIL PROTECTED]
On Apr 16, 6:40 pm, Anton Vredegoor <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Isn't that what docstrings are for? Can't you leave > > the function name noverk() and add something to the > > effect of "this function calculates combinatio

Re: list insertion question

2007-04-16 Thread [EMAIL PROTECTED]
On Apr 17, 9:47 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > hi > > i have a list (after reading from a file), say > > data = [ 'a','b','c','d','a','b','e','d

Re: strange behaviour with keyword arguments and inheritance

2007-04-16 Thread [EMAIL PROTECTED]
On Apr 17, 9:36 am, livibetter <[EMAIL PROTECTED]> wrote: > On Apr 17, 8:56 am, "matthewperpick" <[EMAIL PROTECTED]> wrote: > > > Check out this toy example that demonstrates some "strange" behaviour > > with keyword arguments and inheritance. &

Re: The smallest and largest values of numeric types

2007-04-17 Thread [EMAIL PROTECTED]
On Apr 17, 11:37 am, [EMAIL PROTECTED] wrote: > Thank you for your answers. Seems like the limits of numeric values > aren't considered as important in Python as in C ;) Sure, they're important, we just don't want to notice them. That's why conversion to longs is auto

Re: rewrite for achieving speedup

2007-04-17 Thread [EMAIL PROTECTED]
On Apr 17, 11:25 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: > > Johnny Blonde wrote: > >> Hello Group! > > >> I really tried hard for two hours to rewrite the following expression > >> (python 2.4): > >> ---

Future Python Gui?

2007-04-17 Thread [EMAIL PROTECTED]
I've been trying to find out what the future of Python is with regard to Tk. It seems there are several interfaces that make use of new functionality, including "Tile" and "Ttk". If I want to write a program that will run under the standard Python distribution of the future, what extension module

How to communicate via USB "port"

2007-04-17 Thread [EMAIL PROTECTED]
Can someone explain how I would read the data from the USB "port"? I don't know if it matters, but I am trying to read the data from a GPS plugged in to the USB port. Thank you, Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting started with python

2007-04-18 Thread [EMAIL PROTECTED]
On Apr 17, 11:00 pm, Basilisk96 <[EMAIL PROTECTED]> wrote: > On Apr 14, 8:46 pm, "Eric" <[EMAIL PROTECTED]> wrote: > > > Hello, after reading some of the book Programming Python it seems that > > python is something I would like to delve deeper into. The

Re: The smallest and largest values of numeric types

2007-04-18 Thread [EMAIL PROTECTED]
On Apr 18, 3:09�am, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Wed, 18 Apr 2007 07:15:11 +0200, Hendrik van Rooyen wrote: > > I once made a thing that tried to find the limit of longs and stopped > > when I had two or three screenfulls of numbers. > > You shou

Re: Future Python Gui?

2007-04-18 Thread [EMAIL PROTECTED]
> I'd say that the best bet is to learn swig and similar > bridging, expanding, and embedding mechanisms. > Python GUI programming is likely to involve either > python hooking into frameworks like Cocoa, Qt, or > wxWidgets, python embedded in frameworks > like Java or .NET, or flavors of python use

Re: What makes an iterator an iterator?

2007-04-18 Thread [EMAIL PROTECTED]
On Apr 18, 10:36 am, [EMAIL PROTECTED] wrote: > > I find myself perplexed as to this behaviour. > > You can not iterate over a dead object! It's not dead, it's restin'. All shagged out over a long squak. -- http://mail.python.org/mailman/listinfo/python-list

Re: Future Python Gui?

2007-04-18 Thread [EMAIL PROTECTED]
> Tile is available right now in Tk as an extension package, and a Tkinter > wrapper for it can be found here: > > http://tkinter.unpythonic.net/wiki/TileWrapper That site seems to be down (500 Internal Server Error). > Tile will be integrated into Tk's core when 8.5 is released. It's > supposed

Python Papers Reader Survey

2007-09-14 Thread [EMAIL PROTECTED]
Greetings, readers. I have put together a survey designed to capture a little information about how I can better target "The Python Papers" towards the needs of its readers. This survey has been created as a part of my "Marketing Management" assignment for my Masters of Business Administration stud

Re: Can You Program?

2007-09-15 Thread [EMAIL PROTECTED]
On Sep 13, 3:37 am, [EMAIL PROTECTED] wrote: > We are offering $2000 USD for the best website developed withwww.hatspin.com > > Are you up to it?? Hey, thanks for spamming our group. Perhaps you should try again after you learn proper HTML coding. Results from http://validator.w3.org/

problems using pythom tempfile module

2007-09-15 Thread [EMAIL PROTECTED]
Hello everyone, I'm trying to test the tempfile module with the following script, which basically creates a temporary file, fills the file with some test data and prints it. import tempfile t = tempfile.TemporaryFile() t.write("lalalala") t.flush() print t.read() Unfortunately, the print statem

Re: problems using pythom tempfile module

2007-09-15 Thread [EMAIL PROTECTED]
On Sep 15, 5:24 pm, buffi <[EMAIL PROTECTED]> wrote: > On Sep 15, 11:11 pm, "[EMAIL PROTECTED]" > > > > <[EMAIL PROTECTED]> wrote: > > Hello everyone, > > > I'm trying to test the tempfile module with the following script, > > whi

best site for hacking tricks , computer tweaks

2007-09-16 Thread [EMAIL PROTECTED]
check this out buddies... a kool site for anti hacking and hacking tips and tricks , computer tweaks to enhance ur pc,small virus creation ,etc it's the best site ... www.realm-of-tricks.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 1:10?pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sun, 16 Sep 2007 01:46:34 -0700, GeorgeRXZ <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > Then Open the Notepad and type the following sentence, and save the > > file

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 2:22?pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sep 16, 1:10?pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > >> On Sun, 16 Sep 2007 01:46:34 -0700, GeorgeRXZ <[EMAIL PROTECTED]> > >> declaimed the followi

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 5:28?pm, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 17, 7:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Sep 16, 2:22?pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > > > [EMAIL PROTECTED] wrote:

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 6:25?pm, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sep 16, 5:28?pm, John Machin <[EMAIL PROTECTED]> wrote: > >> On Sep 17, 7:54 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > >>&g

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 6:21?pm, John Machin <[EMAIL PROTECTED]> wrote: > On Sep 17, 8:53 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > > > > > On Sep 16, 5:28?pm, John Machin <[EMAIL PROTECTED]> wrote: > > > > On Sep 17, 7:54 am, "

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 8:59?pm, "J. Cliff Dyer" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > The very presence of an algorithm to detect encoding is a bug. > > Files with they .txt extension should always be treated as ANSI > > even if they contain binary data

Re: Try this

2007-09-16 Thread [EMAIL PROTECTED]
On Sep 16, 9:27?pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 16 Sep 2007 21:58:09 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribi : > > >> I'm eagerly awaiting publication of your professional specification > >> for c

Re: Try this

2007-09-17 Thread [EMAIL PROTECTED]
On Sep 17, 6:09 am, Steve Holden <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Sep 16, 9:27?pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > > wrote: > >> En Sun, 16 Sep 2007 21:58:09 -0300, [EMAIL PROTECTED] > [...] > >> What

Re: raw string

2007-09-18 Thread [EMAIL PROTECTED]
On Sep 18, 5:20 am, Konstantinos Pachopoulos <[EMAIL PROTECTED]> wrote: > Hi, > i am trying to execute the following query on a DB: > qe.execQuery(r"SELECT * FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY > '"' LINES TERMINATED BY '\n' FRO

Re: Looking for web software in Python.

2007-09-18 Thread [EMAIL PROTECTED]
On Sep 17, 9:53 pm, Kevin Ar18 <[EMAIL PROTECTED]> wrote: > Are any of the following pieces of web software available in Python (under a > non-copyleft license like BSD or MIT or Python license)? > > Mailing list - with web accessable archive and list maintenance. > Source

Re: HTTP Protocol Client

2007-09-19 Thread [EMAIL PROTECTED]
On Sep 19, 6:10 am, [EMAIL PROTECTED] wrote: > Hi, > > I am writing http protocol to get some data from servers. If i was > using my localhost, getting replay from local and if want access other > remote sites, i am getting error. Please reply it > > My localhost clie

Re: I could use some help making this Python code run faster using only Python code.

2007-09-20 Thread [EMAIL PROTECTED]
On Sep 20, 5:46 pm, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Sep 20, 10:59 pm, Python Maniac <[EMAIL PROTECTED]> wrote: > > > I am new to Python however I would like some feedback from those who > > know more about Python than I do at this time. > >

__contains__() : Bug or Feature ???

2007-09-21 Thread [EMAIL PROTECTED]
Hi everybody, I need to overload the operator in and let him return an object ... It seems it is not a behavior Python expect : >>> class A: ...def __contains__(self,a): ...return 'yop' ... >>> a=A() >>> print 'toto' in a True >>> print a.__contains__('toto') yop I don't know if it's

__contains__() and overload of in : Bug or Feature ???

2007-09-21 Thread [EMAIL PROTECTED]
Thanks for your quick response. > > I need to overload the operator in and let him > > return an object ... It seems it is not a > > behavior Python expect : > > > class A: > > ...def __contains__(self,a): > > ...return 'yop' > > ... > a=A() > print 'toto' in a > > True

TRying to import files from my folder not pythons lib folder

2007-09-21 Thread [EMAIL PROTECTED]
Hi, I'm trying to create my own lib of functions, but it seems like I can only import them if they are in pythons lib folder. Example I have a folder called K:\mypython Now in the interactive python shell I type Import k:\mypython\listall And get a error on : If I store listall.py in pythons li

can I run pythons IDLE from a command line??

2007-09-22 Thread [EMAIL PROTECTED]
Hi, Is their a version of pythons IDLE that will run in a dos command line? The reason is that I would like to be able to run python code interactively from my parable by connecting to my desktop using remote command line or a telnet program. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting rid of bitwise operators in Python 3?

2007-09-22 Thread [EMAIL PROTECTED]
On Sep 21, 10:44?pm, Carl Banks <[EMAIL PROTECTED]> wrote: > Anyone with me here? (I know the deadline for P3 PEPs has passed; this > is just talk.) Are you a loony? Python doesn't have enough bit operations. I'm always using the gmpy module's bit functions: d

Small changes in side library

2007-09-22 Thread [EMAIL PROTECTED]
Hi, all! May be this question have been already discussed, but I found nothing closer :-/ I have the side library which provides wide set of different functions, but I'm going to replace some of them with mine and provided such 'modified' library thought my project. The following way works well f

subprocess -popen - reading stdout from child - hangs

2007-09-22 Thread [EMAIL PROTECTED]
Let's say I have this Python file called loop.py: import sys print 'hi' sys.stdout.flush() while 1: pass And I want to call it from another Python process and read the value 'hi'. How would I do it? So far I have tried this: >>> proc = subprocess.Popen('python >>> /home/chiefinnovator/loo

Re: subprocess -popen - reading stdout from child - hangs

2007-09-22 Thread [EMAIL PROTECTED]
On Sep 22, 11:28 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Let's say I have this Python file called loop.py: > > import sys > print 'hi' > sys.stdout.flush() > while 1: > pass > > And I want to call it from another Python pro

<    28   29   30   31   32   33   34   35   36   37   >