Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
> Hi Jeremy, that's the problem I'm having. Where should I type that " > python setup.py install" ? Once again I'm using Windows system and not > Unix. Should I move the file to a specific folder under Python 2.5 and > then type " python setup.py install" in IDLE or Command Line window? > I get th

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
So, I wonder what might be the problem now? ^^ :) On Feb 27, 11:27 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > Hi Jeremy, that's the problem I'm having. Where should I type that " > > python setup.py install" ? Once again I'm using Wi

Re: Installing java2python (Newbie)

2007-02-27 Thread [EMAIL PROTECTED]
This is my friend's computer, BTW! -- http://mail.python.org/mailman/listinfo/python-list

Re: database without installation again

2007-02-27 Thread [EMAIL PROTECTED]
On 28 fév, 00:06, "andrew_s" <[EMAIL PROTECTED]> wrote: > Hi! > > I'm looking for any database which I could use without need of instalation. > I've read some threads here but I couldn't find any complete answer. > On my ISP's server I can use Py

SocketServer.ForkingMixIn and zombie processes

2007-02-28 Thread [EMAIL PROTECTED]
Hi, I noticed that when I used SocketServer.ForkingMixIn (ForkingTCPServer), there were always zombie processes around. I searched for where waitpid() is called in ForkingMixIn and found it in SocketServer.py: def process_request(self, request, client_address): """Fork a new subproc

Re: Python Source Code Beautifier

2007-02-28 Thread [EMAIL PROTECTED]
On Feb 28, 11:24 am, Alan Franzoni <[EMAIL PROTECTED]> wrote: > Il 27 Feb 2007 16:14:20 -0800, [EMAIL PROTECTED] ha scritto: > > > > > Those mean different things: > > >>>> a=[1] > >>>> b=a > >>>> a += [2] > >>>&g

How to Read Bytes from a file

2007-02-28 Thread [EMAIL PROTECTED]
It seems like this would be easy but I'm drawing a blank. What I want to do is be able to open any file in binary mode, and read in one byte (8 bits) at a time and then count the number of 1 bits in that byte. I got as far as this but it is giving me strings and I'm not sure how to accurately get

Re: Question about raise and exceptions.

2007-03-01 Thread [EMAIL PROTECTED]
On 1 mar, 04:46, Daniel Klein <[EMAIL PROTECTED]> wrote: > On Wed, 28 Feb 2007 22:03:13 +0100, Bruno Desthuilliers > > > > <[EMAIL PROTECTED]> wrote: > >Daniel Klein a écrit : > >> The arguments for TransitionError must be a tuple, > > >Err... &g

Re: Curious UnboundLocalError Behavior

2007-03-01 Thread [EMAIL PROTECTED]
On 28 fév, 18:15, "Matthew Franz" <[EMAIL PROTECTED]> wrote: > I'm probably fundamentally misunderstanding the way the interpreter > works with regard to scope, but is this the intended behavior... > (snip traceback) > import os,sys > > SOMEGLOBAL=1 > &

Re: Python installation problem (sorry if this is a dup)

2007-03-01 Thread [EMAIL PROTECTED]
On 1 mar, 06:22, Ray Buck <[EMAIL PROTECTED]> wrote: > I've been trying to install Mailman, which requires a newer version > of the Python language compiler (p-code generator?) It's actually the whole thing : (byte-code) compiler, virtual machine, and stdlib. > than the

Re: django learn

2007-03-01 Thread [EMAIL PROTECTED]
On 1 mar, 14:36, Gigs_ <[EMAIL PROTECTED]> wrote: > HI folks! > > I want to learn to make web pages with django. > I dont know nothing about HTML. > > How much of HTML I need to know to be able to learn django well? > Anyway : 1/ you'll obviously need to have a

Re: How to Read Bytes from a file

2007-03-01 Thread [EMAIL PROTECTED]
On Mar 1, 8:53 am, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > On Mar 1, 7:52 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > It seems like this would be easy but I'm drawing a blank. > > > What I want to do is be able to o

Re: How to Read Bytes from a file

2007-03-01 Thread [EMAIL PROTECTED]
On Mar 1, 12:46 pm, "Bart Ogryczak" <[EMAIL PROTECTED]> wrote: > > This solution looks nice, but how does it work? I'm guessing > > struct.unpack will provide me with 8 bit bytes > > unpack with 'B' format gives you int value equivalent to unsig

Re: Questions about app design - OOP with python classes

2007-03-02 Thread [EMAIL PROTECTED]
On 2 mar, 05:14, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Thu, 01 Mar 2007 21:45:55 +0100, Bruno Desthuilliers wrote: > > As a side note : hungarian notation is usually considered bad form here. > > Look here for usual naming conventions: > >http://

how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-02 Thread [EMAIL PROTECTED]
hi i am looking for some info about mapping btw values in an array and corresponding columns of a matrix i have an numpy array=[11.0,33.0,22.0,55.0,44.0] and a numpy matrix object= matrix(([1.3,2.5,3.2,6.7,3.1], [9.7,5.6,4.8,2.5,2.2],

how does google search in phrase

2007-11-04 Thread [EMAIL PROTECTED]
hi my friends; google can searching in phrase but it is imposible. it have a lot of page in data base and quadrillions sentence it can't search in fulltxt all of them .it need a super algorithm. ı need the algorithm now. if you have a idea ,pls share to me thanks (sorry for my bad english :(

Re: how to do the mapping btw numpy arrayvalues and matrix columns

2007-11-04 Thread [EMAIL PROTECTED]
CW, thanx for the reply..but i was looking for a mapping BTW each item of a numpy.ndarray and the corresponding column of a numpy.matrix ,after some struggle :-) i came up with this #a function to return a column from a matrix def getcol(data, colindex): return data[:,colindex]#returns a m

Re: Adding GNU Readline after installation?

2007-11-05 Thread [EMAIL PROTECTED]
> > I really just want to get my "up arrow" history working... > > Google for "rlwrap". Thanks for the rlwrap tip - much easier than reinstalling Python (for the short term). For anyone interested, I installed it and put this in my .bashrc file: alias python='rlwrap python' Now I have my up-arro

IDLE won't color code!

2007-11-05 Thread [EMAIL PROTECTED]
Please help! IDLE color codes only the shell, not the open files! How can I solve this? -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE won't color code!

2007-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 9:41 pm, JamesHoward <[EMAIL PROTECTED]> wrote: > On Nov 5, 12:33 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Please help! > > IDLE color codes only the shell, not the open files! How can I solve > > this? > > My fi

Re: dictionary viewer

2007-11-05 Thread [EMAIL PROTECTED]
On Nov 5, 3:10 pm, Erika Skoe <[EMAIL PROTECTED]> wrote: > That's funny, I can't see anything. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parallel Python environments..

2007-11-06 Thread [EMAIL PROTECTED]
In Gentoo Linux you can select between installed python version using python-config script. -- http://mail.python.org/mailman/listinfo/python-list

Looking for a good Python environment

2007-11-06 Thread [EMAIL PROTECTED]
Hey, I'm looking for a good Python environment. That is, at least an editor and a debugger, and it should run on Windows. Does anyone have any idea? -- http://mail.python.org/mailman/listinfo/python-list

Re: Get Only the Last Items in a Traceback

2007-11-06 Thread [EMAIL PROTECTED]
On Sep 12, 10:35 am, Peter Otten <[EMAIL PROTECTED]> wrote: > Am Wed, 12 Sep 2007 15:09:02 + schrieb [EMAIL PROTECTED]: > > > On Sep 12, 5:17 am, Peter Otten <[EMAIL PROTECTED]> wrote: > > >> Your assessment is wrong. You only get the extra lines in the tra

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 3:51 am, Jens <[EMAIL PROTECTED]> wrote: > Just wrote a mini "review" of three Python code editors on my blog... > > http://pyminer.blogspot.com/2007/11/python-code-editors.html > > I use PSPad or Notepad++ for quick editing, and Komodo Edit 4.2 for > l

Re: Looking for a good Python environment

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 1:15 pm, jwelby <[EMAIL PROTECTED]> wrote: > On Nov 6, 10:56 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hey, I'm looking for a good Python environment. That is, at least an > > editor and a debugger, and it should run

Re: os.popen does not seem to catch stdout

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 11:31 am, [EMAIL PROTECTED] wrote: > On Nov 7, 7:58 am, [EMAIL PROTECTED] wrote: > > > > > Hi there, > > > I've been banging my head against this for a day, and I can't take it > > anymore. It's probably a stupid error, but I don't

regular expression syntax the same in Python, Perl and grep?

2007-11-07 Thread [EMAIL PROTECTED]
How similar is Python's re module (regular expressions) compared to Perl's and grep's regular expression syntaxes? I really hope regular expression syntax is sufficiently standardized that we don't have to learn new dialects everytime we move from one language or shell command to another. chris

pydoc - generating HTML docs from string input

2007-11-07 Thread [EMAIL PROTECTED]
Has anyone ever tried mucking with pydoc to the point where you can get it to give you output from a string input? For example I'd like to give it a whole module to generate documentation for but all within a string: #little sample module_code=''' """Module docstring""" def func1(): """ som

Re: command-line arguments in IDLE

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 6:27 am, "Russ P." <[EMAIL PROTECTED]> wrote: > Is it possible to pass command-line arguments when running a program > in IDLE? The "Run" menu does not seem to provide that option. Thanks. Can't you just fake the command line args by setting sys.ar

Re: pydoc - generating HTML docs from string input

2007-11-07 Thread [EMAIL PROTECTED]
On Nov 7, 4:47 pm, Laszlo Nagy <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Has anyone ever tried mucking with pydoc to the point where you can > > get it to give you output from a string input? For example I'd like > > to give it a whole module to ge

Re: Is pyparsing really a recursive descent parser?

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 3, 10:49 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > grammar << ((word + grammar) | (word + Literal(end))) > which works. [Clarifies that the common (and similar) solution doesn't work -- this works only because the literal binds tightly to the word, so yo

Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
I'm trying to get a list of messages from GMAIL using it's new IMAP access. So far I've tried running this command but it just hangs. Any ideas? >>> import imaplib >>> M=imaplib.IMAP4('imap.gmail.com',993) I figured that's the first line to run from this example: http://docs.python.org/lib/imap

Re: Using python as primary language

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 2:09 pm, "Michael Bacarella" <[EMAIL PROTECTED]> wrote: > > In our company we are looking for one language to be used as default > > language. So far Python looks like a good choice (slacking behind > > Java). A few requirements that the language should

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 2:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > > > > > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > > wrote: > > > > I'

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm trying to get a list of messages from GMAIL using it's new IMAP > > access. > > > So far

Re: spawn background process and detach it w/o problems

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 8:09 am, "Dmitry Teslenko" <[EMAIL PROTECTED]> wrote: > Hello! > How to write portable (win32, unix) script that launches another > program and continues its execution? > > I've looked at spawn*() but it doesn't look in PATH dirs on windows so &g

Re: Using imaplib module with GMAIL's IMAP - hangs

2007-11-08 Thread [EMAIL PROTECTED]
On Nov 8, 1:52 pm, Jason <[EMAIL PROTECTED]> wrote: > On Nov 8, 11:41 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > I'm trying to get a list of messages from GMAIL using it's new IMAP > > access. > > > So far

Python Developers needed for Rackspace Managed Hosting-full time employment opportunities

2007-11-08 Thread [EMAIL PROTECTED]
Hello! Please feel free to forward this on to your network. All those interested in this position, please email me at [EMAIL PROTECTED] Thanks!-Amanda Papp Python Developer Job Description: Rackspace is a highly awarded and respected managed web hosting company. We earned our place by approaching

Closure/binding problem or misunderstanding

2007-11-09 Thread [EMAIL PROTECTED]
If I run the following code: class path(object): def __init__(self, **subdirs): for name, path in subdirs.iteritems(): def getpath(): return path setattr(self, name, getpath) export = path( one = 'this is one', two = 'this is two', ) pr

Re: Closure/binding problem or misunderstanding

2007-11-09 Thread [EMAIL PROTECTED]
On Nov 9, 9:49 am, Paul Hankin <[EMAIL PROTECTED]> wrote: > It's behaving as defined though, and the usual work-around is to add a > variable with a default value. > > class path(object): > def __init__(self, **subdirs): > for name, path in subdirs.i

Re: Closure/binding problem or misunderstanding

2007-11-09 Thread [EMAIL PROTECTED]
On Nov 9, 9:54 am, Boris Borcic <[EMAIL PROTECTED]> wrote: > Yes this is the expected behavior. Both your getpath() functions return the > current value of the single path variable at the time of invocation. Perhaps > this would be the slightest bit clearer if subdir.iteritems()

security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
hii my friends; I want to create picture of security code.can i do it ? if yes,how , which module will help me? have you got a example that can create a picture whit my name pls help me thansk oruc -- http://mail.python.org/mailman/listinfo/python-list

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
is there anybody here !!! -- http://mail.python.org/mailman/listinfo/python-list

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
wha :S -- http://mail.python.org/mailman/listinfo/python-list

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
have you got any example?pls :S -- http://mail.python.org/mailman/listinfo/python-list

Re: security code whit python

2007-11-10 Thread [EMAIL PROTECTED]
On 10 Kas m, 23:57, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I want to create picture of security code.can i do it ? > > I don't know what you mean by "security code". > > I take it you want to create techni

HI I AM VIVEK

2007-11-11 Thread [EMAIL PROTECTED]
http://www.anrdoezrs.net/ click-2701385-10313598"> http://www.tqlkg.com/image-2701385-10313598"; width="600" height="300" alt="Search FastWeb see Green!" border="0"/> http://www.jdoqocy.com/ click-2701385-10484777"> http://www.tqlkg.com/image-2701385-10484777"; width="160" height="600" alt="Want

how to know if folder contents have changed

2007-11-11 Thread [EMAIL PROTECTED]
hi i am trying to create a cache of digitized values of around 100 image files in a folder..In my program i would like to know from time to time if a new image has been added or removed from the folder.. one scheme suggested was to create a string from the names of sorted image files and give it

Moving from java to python.

2007-11-12 Thread [EMAIL PROTECTED]
Hi, I have recently been learning python, and coming from a java background there are many new ways of doing things that I am only just getting to grips with. I wondered if anyone could take a look at a few pieces of code I have written to see if there are any places where I am still using java-

Re: how to know if folder contents have changed

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 11, 11:03 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi > i am trying to create a cache of digitized values of around 100 > image files in a folder..In my program i would like to know from time > to time if a new image has been added or removed from

Re: Transfer socket connection between programs

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 1:41 pm, JamesHoward <[EMAIL PROTECTED]> wrote: > Does anyone know any method to have one program, acting as a server > transfer a socket connection to another program? I looked into > transferring the connection via xml rpc to no avail. It seems to be a > problem of

Re: preparing data for visualization

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 5:12 pm, John Machin <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > I would like to have my data in a format so that I can create a > > contour plot. > > > My data is in a file with a format, where there may be multiple fields > > >

Re: persisting data within a module

2007-11-12 Thread [EMAIL PROTECTED]
On Nov 12, 5:30 pm, "Peter J. Bismuti" <[EMAIL PROTECTED]> wrote: > I'm having trouble understanding how namespaces work in modules. I want to > execute a module within the interpreter and then have values that are > calculated persist so that other modules that

New comer

2007-11-13 Thread [EMAIL PROTECTED]
Hi all, I'm new comer here -- http://mail.python.org/mailman/listinfo/python-list

Selamat malem

2007-11-13 Thread [EMAIL PROTECTED]
selamat malem -- http://mail.python.org/mailman/listinfo/python-list

NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread [EMAIL PROTECTED]
from numpy import * a = zeros((2,40), int) fields = {} field = 10 fields[field] = '30A', 5 iy = int(fields[field][1]) ix = int(fields[field][0].rstrip('AB')) for i in range(2): for j in range(iy): #put(a,[39 - j],[1]) #1d Can someone help me figure out how I would do it for m

Re: NumPy Question - numpy.put in multi-dimensional array

2007-11-13 Thread [EMAIL PROTECTED]
On Nov 13, 1:22 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > from numpy import * > > a = zeros((2,40), int) > > fields = {} > field = 10 > fields[field] = '30A', 5 > > iy = int(fields[field][1]) > ix = int(fields[field][0].rs

Re: how to know if folder contents have changed

2007-11-13 Thread [EMAIL PROTECTED]
On Nov 12, 11:27 am, "Martin Marcher" <[EMAIL PROTECTED]> wrote: > 2007/11/12, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > > Why not use the file creation/modification timestamps? > > because you'd have to > > a) create a thread that pulls al

Re: Arrays

2007-11-13 Thread [EMAIL PROTECTED]
1, in ImportError: cannot import name math --Nathan Davis On Nov 13, 7:25 pm, "Gordon C" <[EMAIL PROTECTED]> wrote: > OK Steve, But why do we say "from array import array" and NOT "from math > import math"? Why the difference in syntax? > Gord > >

Re: mpmath puzzle

2007-11-14 Thread [EMAIL PROTECTED]
On Nov 13, 11:55 pm, Dick Moores <[EMAIL PROTECTED]> wrote: > For 1234 ** 10.9, why the wrong result from mpmath.power()? > > > #!/usr/bin/env python > #coding=utf-8 > from mpmath import * > > mpf.dps = 32 > > x = mpf(123

general information

2007-11-14 Thread [EMAIL PROTECTED]
hi my friends ; i keep one's mind; can i read this document ?? http://rapidshare.com/files/69725750/MTU.TRK pls somebody tell me it -- http://mail.python.org/mailman/listinfo/python-list

Re: general information

2007-11-14 Thread [EMAIL PROTECTED]
yyyyyyyyyyGyUykypy{yˆy‹y™y¢y ¥yµyºy½yÂyÔyäyçyêyêyzzz)z,zƒz»z¾zÃzÆz†{‰ {||g|l|l|l|l|l|r|·|·|Â|Ø| Û|}닁 '·› ¢¨ʁρԁU,˜,›, ,¡,¤ ,½,À,Å,Ë,ƒ ƒFƒ³ƒ¶ƒ¶ƒ¶ƒσσԃõƒùƒüƒ$,,',,l,,g...k...n

Re: formated local time

2007-11-15 Thread [EMAIL PROTECTED]
On Nov 15, 7:19 am, Nikola Skoric <[EMAIL PROTECTED]> wrote: > I have been trying to find appropriate way to do get local time in > "-mm-dd hh:mm:ss" format, but the best I got is this: > datetime.datetime.fromtimestamp(time.mktime(time.localtime())) > It seems to m

Re: Movement recognition in video file

2007-11-15 Thread [EMAIL PROTECTED]
On Nov 15, 8:29 am, [EMAIL PROTECTED] wrote: > Hi, > > I am looking for a python tool or module that helps me build a script > that can perceive object moves in a video file captured by a (web) > camera. My main goal is to be able to count people entering a store > using the st

Which uses less memory?

2007-11-15 Thread [EMAIL PROTECTED]
I'm not sure if this is as easy a question as I'd like it to be, but here goes I'm working on an application that is very memory intensive, so we're trying to reduce the memory footprint of classes wherever possible. I have a need for a class which is able to have a type identifier which can

Python Design Patterns - composition vs. inheritance

2007-11-15 Thread [EMAIL PROTECTED]
In learning about design patterns, I've seen discussion about using inheritance when an object's relationship to another object is 'is-a' and composition when the relationship is 'has-a'. Since this is all new and I'm still learning, I was hoping someone can give me some pointers on best practices

Re: Python Design Patterns - composition vs. inheritance

2007-11-15 Thread [EMAIL PROTECTED]
> Yes. Of course there are other ways, establishing the connection later, > and of course making the Owner know her pets. But your unidirectional, > ctor-passed implementation is sensible. I think my main concern while getting my toes wet on this was to not reference the owner object out of "thin

Interfaces.

2007-11-15 Thread [EMAIL PROTECTED]
Hi, Does anyone know what the state of progress with interfaces for python (last I can see is http://www.python.org/dev/peps/pep-0245/) I would argue that interfaces/(similar feature) are necessary in any modern language because they provide a way of separating the specification from the implemen

Re: implement random selection in Python

2007-11-15 Thread [EMAIL PROTECTED]
On Nov 15, 10:40�pm, Bruza <[EMAIL PROTECTED]> wrote: > I need to implement a "random selection" algorithm which takes a list > of [(obj, prob),...] as input. Each of the (obj, prob) represents how > likely an object, "obj", should be selected based on its probab

Re: Interfaces.

2007-11-15 Thread [EMAIL PROTECTED]
On Nov 15, 7:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I would argue that interfaces/(similar feature) are necessary in any > modern language because they provide a way of separating the > specification from the implementation of a module. > First of

Re: What is python?????

2007-11-16 Thread [EMAIL PROTECTED]
On Nov 16, 8:14 am, Thorsten Kampe <[EMAIL PROTECTED]> wrote: > * Cope (Fri, 16 Nov 2007 06:09:31 -0800 (PST)) > > > please tell me what is python.This group is so crowded. > > A Python is dangerous snake[1]. This group here mainly consists of > misguided snake worshippe

Re: overriding methods - two questions

2007-11-16 Thread [EMAIL PROTECTED]
On Nov 16, 11:35 am, Donn Ingle <[EMAIL PROTECTED]> wrote: > >This may help (on an old Python version): > >>>> class Sam: pass > >>>> class Judy: > > ...def foo(self): pass > > ... > >>>> children = [Sam(), Judy(), Sam()]

Symposium "Image Processing and Analysis" within the ICCES'08 USA - Announce & Call for Papers

2007-11-16 Thread [EMAIL PROTECTED]
itting your work you should choose the Symposium "Image Processing and Analysis". Important dates: - 15 Dec 2007: Deadline for abstract submission; - 20 Dec 2007: End of abstract selection; - 1 Feb 2008: Deadline for final 6-page paper submission. Kind regards, João Manuel R. S. Tavare

Re: What is python?????

2007-11-16 Thread [EMAIL PROTECTED]
On Nov 16, 3:10�pm, Alan <[EMAIL PROTECTED]> wrote: > On Nov 16, 8:29 pm, [EMAIL PROTECTED] wrote: > > > I still don't get it and I've been haunting this group for months... > > > Mike > > Go on then �... > > What ? > > The punchline, do the

Troubleshooting garbage collection issues

2007-11-17 Thread [EMAIL PROTECTED]
Hi folks - wondering if anyone has any pointers on troubleshooting garbage collection. My colleagues and I are running into an interesting problem: Intermittently, we get into a situation where the garbage collection code is running in an infinite loop. The data structures within the garbage col

Re: What is python?????

2007-11-17 Thread [EMAIL PROTECTED]
On Nov 17, 10:00�am, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-11-17, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > > On Nov 16, 3:10?pm, Alan <[EMAIL PROTECTED]> wrote: > >> On Nov 16, 8:29 pm, [EMAIL PROTECTED] wrote: > &

Re: Python too complex ?!?!?!

2007-11-17 Thread [EMAIL PROTECTED]
On Nov 17, 8:25 am, Donn Ingle <[EMAIL PROTECTED]> wrote: > I dunno about your dog :) but Python libs are not too demanding. From a > Gnu/Linux pov with package managers things are quite simple. > > My wish is to find a way to make that even easier because the packaged > modu

Re: which Python ? asks beginner

2007-11-17 Thread [EMAIL PROTECTED]
ython please stand up. > Thanks, Dave WB3DWE [EMAIL PROTECTED] Hi. The right version is 2.5. Bye, :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: implement random selection in Python

2007-11-17 Thread [EMAIL PROTECTED]
Knuth says to pick N distinct records from a collection where the probability is equal you should: first fill up N records by chosing the first seen. if less than N were in the collection, quit. otherwise, t = (the number of items looked at) or N to start. while your not at the end of the colle

How to add a Decorator to a Class Method

2007-11-19 Thread [EMAIL PROTECTED]
How do I add a decorator to a class method? Here's what I want to do, but I guess my syntax isn't right. Any advice? class A: def pre(self,fn): def new_func(*args,**kwargs): print 'hi' fn(*args,**kwargs) return new_func @self.pre def func(self,

Re: pydoc - how to generate documentation for an entire package?

2007-11-19 Thread [EMAIL PROTECTED]
On Nov 19, 12:50 pm, Jens <[EMAIL PROTECTED]> wrote: > On 8 Nov., 02:46, Jens <[EMAIL PROTECTED]> wrote: > > > I have a project/package for which I want to generate documentation > > usingpydoc. > > > My problem is that when I type "pydoc.py -w MyPack

Re: Web update library in python?

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 8:48 am, "Jorgen Bodde" <[EMAIL PROTECTED]> wrote: > Hi Paul, > > Like I said, I do not want to limit my end users into installing > something in Apache or some other solution in order to get my tool > working. On the end user side (which also are th

Re: How to add a Decorator to a Class Method

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 2:05 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Mon, 19 Nov 2007 20:59:51 -0800, [EMAIL PROTECTED] wrote: > > How do I add a decorator to a class method? Here's what I want to do, > > but I guess my syntax isn't right. Any ad

Re: How to add a Decorator to a Class Method

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 12:32 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Nov 20, 2:05 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > > > On Mon, 19 Nov 2007 20:59:51 -0800, [EMAIL PROTECTED] wrote: > > > How do I a

Re: Trouble getting loop to break

2007-11-20 Thread [EMAIL PROTECTED]
, 1:41 am, Dick Moores <[EMAIL PROTECTED]> wrote: > I'm writing a demo of the infinite series > > x**0/0! + x**1/1! + x**2/2! + x**3/3! + ... = e**x (x is non-negative) > > It works OK for many x, but for many the loop doesn't break. Is there > a way to get i

Re: Python too complex ?!?!?!

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 10:20 am, Aaron Watters <[EMAIL PROTECTED]> wrote: > On Nov 19, 1:41 am, MonkeeSage <[EMAIL PROTECTED]> wrote: > > > On the other hand, C# and .NET seems like a lot of baggage to bring to > > the table. First off, you have to introduce the CLR and how it re

Re: Create thumbnail image (jpg/png) of PDF file using Python

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 11:36 am, sophie_newbie <[EMAIL PROTECTED]> wrote: > Is there any way to do this directly within python? > > If not is there any other good way to achieve it? > > Thanks in advance for any help! Take a look at PIL -- http://www.pythonware.com/products/pil/. A

Re: Python too complex ?!?!?!

2007-11-20 Thread [EMAIL PROTECTED]
On Nov 20, 5:01 pm, "Patrick Mullen" <[EMAIL PROTECTED]> wrote: > (Oops, sent as private, reposting to list) > > On Nov 20, 2007 12:36 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > FWIW it's trivial to run pyflakes on your code

Contextmenu in a QTreeWidget with PyQT

2007-11-21 Thread [EMAIL PROTECTED]
I apologize in advance if this is not the correct forum to ask this and if someone knows a better place, please let me know. But, I am trying to create a Contextmenu (a right-click popup menu) from within a QTreeWidget. I tried setting the contextMenuPolicy to CustomContextMenu and then handling

Re: Problems with if/elif statement syntax

2007-11-22 Thread [EMAIL PROTECTED]
On 22 Nov, 12:09, Neil Webster <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm sure I'm doing something wrong but after lots of searching and > reading I can't work it out and was wondering if anybody can help? > > I've got the following blo

error handling

2007-11-22 Thread [EMAIL PROTECTED]
i want to capture run time errors so that the execution of program doesnt stop. like i want an error handler function ( that will email me or something like that ) on error and not stop the execution of program. how do i do this? i can not use try except for this... thanks -- http://mail.python.or

Re: How to import xplt, pylab?

2007-11-22 Thread [EMAIL PROTECTED]
.plot([1, 2, 3]) pylab.show() On Nov 22, 9:48 pm, Caren Balea <[EMAIL PROTECTED]> wrote: > > Thank you. I've tried both suggestions. > But they both don't work :( > > Here are the outputs: > > >>> import math > >>> import scipy > >&

Re: Looking to learn python willing to clean up code

2007-11-22 Thread [EMAIL PROTECTED]
On Nov 22, 11:36 pm, "Nathan McSween" <[EMAIL PROTECTED]> wrote: > Hi I would like to learn python I have background in php, pawn, bash. I was > wondering if anyone would like to show me the ropes or even just throw me > some code that needs work and seeing what I com

Re: the annoying, verbose self

2007-11-23 Thread [EMAIL PROTECTED]
quot;Readability counts." My opinion is that "self" is a minor issue in python that we can all live with. On Nov 21, 9:51 pm, braver <[EMAIL PROTECTED]> wrote: > Is there any trick to get rid of having to type the annoying, > character-eating "self." prefix every

Re: eof

2007-11-23 Thread [EMAIL PROTECTED]
On Nov 22, 1:17 pm, braver <[EMAIL PROTECTED]> wrote: > Ruby has iterators and generators too, but it also has my good ol' > f.eof(). I challenge the assumption here of some majectically Python- Ruby doesn't have the good ol' eof. Good old eof tests a single f

Re: eof

2007-11-23 Thread [EMAIL PROTECTED]
On Nov 24, 2:24 am, MonkeeSage <[EMAIL PROTECTED]> wrote: > > Actually, to be a bit more technical, IO#eof acts like standard C eof > for File objects, it only blocks / requires a previous read() on > character devices and pipes and such. For files, it's the same as

Re: Function stopping a function

2007-11-23 Thread [EMAIL PROTECTED]
On Nov 23, 2:30 am, Sorin Schwimmer <[EMAIL PROTECTED]> wrote: > Hi All, > > We all know that a function can launch the execution > of another function. How can a function stop the > execution of another function? > > For instance, lenghty_function() executes, when an

Re: Clean way to get one's network IP address?

2007-11-23 Thread [EMAIL PROTECTED]
On Nov 21, 5:34 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Wed, 21 Nov 2007 12:00:52 -0500, Joe Riopel wrote: > > On Nov 21, 2007 10:15 AM, Gilles Ganault <[EMAIL PROTECTED]> wrote: > >> I know about socket.gethostbyname, but this

error handling

2007-11-23 Thread [EMAIL PROTECTED]
i want to capture run time errors so that the execution of program doesnt stop. i want an error handler function ( that will email me or something like that ) on error and not stop the execution of program. how do i do this? i can not use try except for this... thanks -- http://mail.python.org/ma

<    32   33   34   35   36   37   38   39   40   41   >