Re: Automatic Generation of Python Class Files

2007-10-30 Thread Fuzzyman
On Oct 29, 11:35 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Fuzzyman wrote: > > On Oct 22, 6:43 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > >> # Inherit from object. There's no reason to create old-style classes. > > > We recently had to change

Re: Py 2.5 on Language Shootout

2007-01-20 Thread Fuzzyman
parative speed of langauges' then hopefully the error should be obvious. But then to discuss the speed of languages rather than implementations would be a generalisations, and generalisations are always wrong... ;-) Fuzzyman http://www.voidspace.org.uk/python/articles.shtml > > Cheers, > > Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

[ANN] ConfigObj 4.4.0 and Validate 0.2.3

2007-02-04 Thread Fuzzyman
Updated versions of both `ConfigObj `_ and `Validate `_ are now available. * `ConfigObj 4.4.0 `_ * `Validate 0.

[ANN] Python Akismet 0.1.5

2007-02-05 Thread Fuzzyman
`Python Akismet 0.1.5 `_ is now available. Fixed a typo/bug in ``submit_ham``. Thanks to Ian Ozsvald for pointing this out. **Python Akismet** is a Python interface to the `Akismet `_, spam blocking web-service. It is aimed at trapping s

Re: Best Free and Open Source Python IDE

2007-02-08 Thread Fuzzyman
eemed very good. What was your problem with it? I personally use Wing, which I have a free license for as an OSS developer. It is commercial (we now use it at work as well) but I like it a great deal. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a MoinMoin guru - MoinMoin+SpamBayes == no wiki spam?

2007-02-08 Thread Fuzzyman
>http://www.publicradio.org/columns/futuretense/ > > Scroll down and listen to the February 1st episode. > You could also try akismet which is designed for finding spam 'comments' in blogs, a similar problem area. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml > Thanks, > > Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Pep 3105: the end of print?

2007-02-16 Thread Fuzzyman
are that most existing libraries won't work - and it will be a long time (2 to 3 yearsafter the release of 3.0 final ?) before the majority of Python users have switched. This will provide plenty of time for migration patterns and tools to be establishe

Re: Bush, yank bastards kicked by india in their arse Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-02-16 Thread Fuzzyman
On Jan 29, 10:18 pm, [EMAIL PROTECTED] wrote: > On Jan 29, 11:15 am, "Vance P. Frickey" <[EMAIL PROTECTED]> wrote: > > > Directorate (overseas espionage), his old employers owned > > someone in just about every important government agency in > > India, from the 1970s until they stopped being able t

Re: Pep 3105: the end of print?

2007-02-16 Thread Fuzzyman
d, it *is* the end of print > Why won't it be possible to make 'print' in Python 3 that supports all the functionality of the current print statement, and then translate to that ? I saw an assertion to the effect that it wasn't possible - but no proof. It sounds relatively s

Re: Pep 3105: the end of print?

2007-02-16 Thread Fuzzyman
entioned the 2to3 translator- the goal of which is *precisely* to allow you to write code that will run on Python 2.X and when translated run under Python 3.0. You then repeated the problem with the 'print' statement. It may be true that you won't be able to write code that runs unt

Re: Pep 3105: the end of print?

2007-02-16 Thread Fuzzyman
On Feb 16, 2:54 pm, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 16 Feb 2007 06:42:55 -0800, Fuzzyman wrote: > > I mentioned the 2to3 translator- the goal of which is *precisely* to > > allow you to write code that will run on Python 2.X and when > >

Re: Pep 3105: the end of print?

2007-02-16 Thread Fuzzyman
rsonally I wish it wasn't, print 'feels like a statement' to me. But it's not the end of the world and it is *definitely* going to be able to be handled by 2to3. It's also not about to change. Fuzzyman http://www.voidpsace.org.uk/python/articles.shtml > Edward >

Re: output to console and to multiple files

2007-02-16 Thread Fuzzyman
but it isn't live streaming of stdout/stderr. Most of the > time, if you stream both, one could lock the process, or have the > stdout/stderr printed in the wrong order. Everytime I've looked to do something like this (non-blocking read on the stdout of a subprocess)

Re: Getting a class name

2007-02-18 Thread Fuzzyman
n inspect its name: > > >>> class Foo(object): pass > ... > >>> f = Foo() > >>> f.__class__.__name__ > 'Foo' > >>> > Why is the __name__ attribute not available to the instance? Why don't normal lookup rules apply (mea

Re: Getting a class name

2007-02-18 Thread Fuzzyman
On Feb 18, 1:22 pm, "Michele Simionato" <[EMAIL PROTECTED]> wrote: > On Feb 18, 1:24 pm, "Fuzzyman" <[EMAIL PROTECTED]> wrote: > > > Why is the __name__ attribute not available to the instance? Why don't > > normal lookup rules apply (mean

Re: Getting a class name

2007-02-18 Thread Fuzzyman
File "", line 1, in ? > >> File "", line 2, in C > >> NameError: name 'C' is not defined > > > I were asking, why do you want a "name" attribute since "__name__" > > already exists and has the needed information. A

Re: Getting a class name

2007-02-19 Thread Fuzzyman
On Feb 19, 5:11 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 18 Feb 2007 20:56:48 -0300, Fuzzyman <[EMAIL PROTECTED]> escribió: > > > > > [somebody] wrote: > >> >>> > def getCodeName(deap=0): > >> >>&g

Re: PLY for standard library

2007-02-20 Thread Fuzzyman
On Feb 20, 6:29 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote: > Is PLY destined for the standard library? I've never heard it suggested... but +1 Fuzzyman http://www.voidspace.org.uk/python/articles.shtml > If not, what module providing substantially similar func

Re: Bypassing __setattr__ for changing special attributes

2007-02-20 Thread Fuzzyman
nism (instance.__dict__, then instance.__class__.__dict__) for > some reason. > > >>> Foo.x = 1 # stored in class __dict__ > >>> f.x > 1 > >>> f.__dict__['x'] = 2 # stored in instance __dict__ > >>> f.x > 2 > >>> Foo.x > > 1 > > But __class__ doesn't behave like this. Why? > Magic attributes like __class__ are looked up on the class rather than the instance. Fuzzyman http://www.voidspace.org.uk/python/articles.shtml > -- > Steven. -- http://mail.python.org/mailman/listinfo/python-list

Re: Should proxy objects lie about their class name?

2007-11-27 Thread Fuzzyman
On Nov 26, 11:56 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Nov 20, 3:50 pm, [EMAIL PROTECTED] (John J. Lee) wrote: > > > Not much to add to the subject line. I mean something like this: > > > ProxyClass.__name__ = ProxiedClass.__name__ > > > I've been told that this is common practice. Is it

Re: Minimalistic Software Transactional Memory

2007-12-08 Thread Fuzzyman
On Dec 8, 10:53 pm, Michael Sparks <[EMAIL PROTECTED]> wrote: > Hi, > > I'm interested in writing a simple, minimalistic, non persistent (at this > stage) software transactional memory (STM) module. The idea being it should > be possible to write such a beast in a way that can be made threadsafe fa

Re: Minimalistic Software Transactional Memory

2007-12-09 Thread Fuzzyman
> STM seems more in > keeping with Kamaelia being generally lock-free. STM isn't lock free - it just abstracts the locks away from the 'user'. You still need to lock around committing the transaction. Other threads accessing the data during the transaction should see the old values until the commi

[ANN] ConfigObj 4.3.1 & validate 0.2.2

2006-04-29 Thread Fuzzyman
`ConfigObj 4.3.1 `_ and `validate 0.2.2 `_ are now available. These are both minor bugfix/feature enhancement releases. What is New in ConfigObj ? Changes since **ConfigObj** 4.3.0 : * Added ``

[ANN] Movable Python 1.0.2

2006-05-01 Thread Fuzzyman
`Movable Python 1.0.2 `_ is now available. This release if for the Python 2.4 distribution of **Movable Python**, and is now available for `download `_. Features new to this release include : * Now built with Py

Re: Non-web-based templating system

2006-05-02 Thread Fuzzyman
eplaces them with whatever the code prints to stdout. These are of the form : <# print name if name2.startswith('something'): print name2 #> This is very useful for simple templating. All the best, Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml > Thanks, > - QS Computing. -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling module from string and put into namespace

2006-05-13 Thread Fuzzyman
ng like that, you will need to look up the semantics.) This is a hack really though, just return the module object and bind the right name to it where you call it from. Fuzzyman http://www.voidspace.org.uk/python/index.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Fuzzyman
Try Rapyd-Tk. It's new, which is why it isn't featured on the pages you looked at. (I'm not the author, but it looks interesting.) http://home.cogeco.ca/~rapyd/ Fuzzyman http://www.voidspace.org.uk/python/shareware.shtml -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a HTML parser who can reconstruct the original html EXACTLY?

2008-01-23 Thread Fuzzyman
[EMAIL PROTECTED] wrote: > Hi, I am looking for a HTML parser who can parse a given page into > a DOM tree, and can reconstruct the exact original html sources. > Strictly speaking, I should be allowed to retrieve the original > sources at each internal nodes of the DOM tree. > I have tried

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Fuzzyman
.debian.org/sandbox/benchmark.php?test=all&lang... > > This doesn't look like Mono to me: > >IronPython1.1 (1.1) on .NET 2.0.50727.42 Running on Debian? Fairly unlikely. :-) Fuzzyman http://www.manning.com/foord > > Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Fuzzyman
On Feb 5, 6:52 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > Jeff wrote: > >IronPythonruns on top of .NET. I would be suspect of any claims that > > it is faster than cPython, just as I would of claims that Stackless or > > Jython are faster. > > Well don't be. There are benchmarks that clearly sh

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Fuzzyman
On Feb 6, 9:27 pm, Huayang Xia <[EMAIL PROTECTED]> wrote: > Hello All, > > I have several .NET DLL (I have no source code for them), is there > anyway to use them from python instead of from C#. > > Thanks, > Huayang To access .NET types you either need to use IronPython or Python.NET. .NET assemb

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Fuzzyman
On Feb 6, 9:59 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > On Feb 6, 6:27 pm, Huayang Xia <[EMAIL PROTECTED]> wrote: > > > Hello All, > > > I have several .NET DLL (I have no source code for them), is there > > anyway to use them from python instead of from C#. > > > Thanks, > > Huayang > >

Re: Is there a way to use .NET DLL from Python

2008-02-07 Thread Fuzzyman
Luis M. González wrote: > On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote: > > On Feb 6, 9:59 pm, "Luis M. Gonz�lez" <[EMAIL PROTECTED]> wrote: > > > > > On Feb 6, 6:27 pm, Huayang Xia <[EMAIL PROTECTED]> wrote: > > > > >

Re: loading dictionary from a file

2008-02-07 Thread Fuzzyman
ython. I > could do (foreach line in file, split by ":" and then do dictionary > insert). Wondering, if some python built-in function can just read a > valid dictionary-file and load it? > If you change the format slightly you could use ConfgiObj < http://www.voidspace.org.uk/p

Re: Is there a way to use .NET DLL from Python

2008-02-07 Thread Fuzzyman
On Feb 7, 2:35 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > On 7 feb, 05:52, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > > > Luis M. González wrote: > > > On 6 feb, 21:17, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > &

ANN: ConfigObj 4.5.1 and validate 0.3.1

2008-02-07 Thread Fuzzyman
After one year and two days since the last release, there is a new release of ConfigObj. * ConfigObj 4.5.1 http://www.voidspace.org.uk/python/configobj.html> * Validate 0.3.1 http://www.voidspace.org.uk/python/validate.html This release adds a few new features, plus has several bugfixes and minor

Re: Is there a way to use .NET DLL from Python

2008-02-07 Thread Fuzzyman
On Feb 7, 9:38 pm, Huayang Xia <[EMAIL PROTECTED]> wrote: > On Feb 7, 3:30 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > > > On Feb 7, 2:35 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > > > > On 7 feb, 05:52, Fuzzyman <[EMAIL PROT

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-12 Thread Fuzzyman
On Feb 12, 7:49 pm, [EMAIL PROTECTED] wrote: > Fuzzyman: > > > Another interesting little benchmark of CPython and IronPython. Can't > > see the code, but it looks like an implementation of the 11 queens > > problem and IronPython comes out a clear winner on this one.

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-12 Thread Fuzzyman
On Feb 5, 5:31 pm, dmitrey <[EMAIL PROTECTED]> wrote: > Hi all, > the urlhttp://torquedev.blogspot.com/2008/02/changes-in-air.html > (blog of a game developers) > saysIronPythonis faster than CPython in 1.6 times. > Is it really true? > If yes, what areIronPythondrawbacks vs CPython? > And is it po

Re: Is there a way to use .NET DLL from Python

2008-02-14 Thread Fuzzyman
On Feb 13, 6:58 pm, "Luis M. González" <[EMAIL PROTECTED]> wrote: > On 13 feb, 00:26, Dino Viehland <[EMAIL PROTECTED]> wrote: > > > >> Oh, I know what you mean. > > >> But that was exactly the reason for having a .DLLs folder, isn't it? > > >> When you place an assembly into this folder, you avoid

ANN: ConfigObj 4.5.2 and validate 0.3.2

2008-02-27 Thread Fuzzyman
There was a bug in release 4.5.1 of ConfigObj, so there is now an updated release: * `ConfigObj 4.5.2 `_ * `Validate 0.3.2 `_ The bug affected the use of ``None`` as a default value in configspec

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread Fuzzyman
On Mar 1, 12:47 am, Kamilche <[EMAIL PROTECTED]> wrote: > Here's a snippet of code for pythoners to enjoy. > Make the Microsoft genie speak text and dance about! Code (with pretty pictures!) to do similar things from IronPython: http://www.ironpython.info/index.php/AgentServerObjects Michael F

Re: Python-URL! - weekly Python news and links (Feb 18)

2008-03-10 Thread Fuzzyman
On Mar 10, 2:33 pm, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > > Peter Otten <[EMAIL PROTECTED]> (PO) wrote: > >PO> Piet van Oostrum wrote: > "Gabriel Genellina" <[EMAIL PROTECTED]> (GG) wrote: > > >GG> "Given this indispensable process and architecture issue, isn't it > obviou

Re: Pycon disappointment

2008-03-16 Thread Fuzzyman
On Mar 16, 11:10 am, Bruce Eckel <[EMAIL PROTECTED]> wrote: [snip..] > But it gets worse. The lightning talks, traditionally the best, newest > and edgiest part of the conference, were also sold like commercial air > time. Vendors were guaranteed first pick on lightning talk slots, and > we in the

Re: Pycon disappointment

2008-03-16 Thread Fuzzyman
> "It is easier to optimize correct code than to correct optimized code." > --Bill Harlan That's a great quote that I had not heard before. :-) Michael Foord http://www.manning.com/foord -- http://mail.python.org/mailman/listinfo/python-list

Re: Why I hate lambdas (Re: Do any of you recommend Python as a first programming language?)

2008-03-23 Thread Fuzzyman
On Mar 23, 4:24 pm, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Jeff Schwab <[EMAIL PROTECTED]> wrote: > > > > >Also, despite reassurances to the contrary, I still get the impression > >that there is a strong anti-lambda sentiment among the Python "in" > >crowd. Is it just

Re: Do any of you recommend Python as a first programming language?

2008-03-23 Thread Fuzzyman
On Mar 22, 6:40 pm, Jeff Schwab <[EMAIL PROTECTED]> wrote: > jmDesktop wrote: > > For students 9th - 12th grade, with at least Algebra I. Do you think > > Python is a good first programming language for someone with zero > > programming experience? Using Linux and Python for first exposure to > >

Re: Python 3: range objects cannot be sliced

2009-01-16 Thread Fuzzyman
On Jan 16, 5:45 pm, Alan G Isaac wrote: > Is the behavior below expected? Documented? > (The error msg is misleading.) > Thanks, > Alan Isaac > >  >>> x = range(20) >  >>> s = slice(None,None,2) >  >>> x[s] > Traceback (most recent call last): >    File "", line 1, in > TypeError: sequence index

Re: vb2py status?

2009-01-17 Thread Fuzzyman
On Jan 17, 3:52 pm, Vito De Tullio wrote: > Giampaolo Rodola' wrote: > >> > So is vb2py dead? If not, any idea when it'll support python 3? > >> I don't know this vb2py, but you can do a 2 pass conversion > >> [vb] -> (vb2py) -> [py2] -> (2to3) -> [py3] > > ...and presumibly get something which do

Re: Python 3: range objects cannot be sliced

2009-01-25 Thread Fuzzyman
On Jan 25, 2:28 pm, Alan G Isaac wrote: > On 1/16/2009 3:13 PM Alan G Isaac apparently wrote: >  > It is documented: >  >http://docs.python.org/3.0/library/stdtypes.html#sequence-types-str-b... > > But then again, the opposite is also documented, > since `range` is a sequence type.  Quoting: > >  

Re: Exhaustive Unit Testing

2008-11-28 Thread Fuzzyman
On Nov 27, 4:32 pm, "Emanuele D'Arrigo" <[EMAIL PROTECTED]> wrote: > On Nov 27, 5:00 am, Steven D'Aprano > > <[EMAIL PROTECTED]> wrote: > > Refactor until your code is simple enough to unit-test effectively, then > > unit-test effectively. > > Ok, I've taken this wise suggestion on board and of cou

Re: Exhaustive Unit Testing

2008-11-29 Thread Fuzzyman
On Nov 29, 3:33 am, "Emanuele D'Arrigo" <[EMAIL PROTECTED]> wrote: > On Nov 29, 12:35 am, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > Your experiences are one of the reasons that writing the tests *first* > > can be so helpful. You think about the *be

Re: double import protection - how to ?

2008-11-29 Thread Fuzzyman
On Nov 29, 3:40 pm, Helmut Jarausch <[EMAIL PROTECTED]> wrote: > Peter Otten wrote: > > Helmut Jarausch wrote: > > >> I have a module which gets imported at several different places > >> not all of which are under my control. > > >> How can I achieve that  all/some statements within that module > >

Re: Pycon 2009

2008-11-29 Thread Fuzzyman
On Nov 29, 4:22 am, r <[EMAIL PROTECTED]> wrote: > Sorry friend, i could not view your link, but if you are trying to > garner support for python nobody here cares. I have already been > lynched by the community for tying to promote python. > > see the > thread:http://groups.google.com/group/comp.

Re: Windows Installer testing using python.

2008-11-29 Thread Fuzzyman
On Nov 28, 10:02 am, kalyan <[EMAIL PROTECTED]> wrote: > Hi, > > How can we test Windows Installer using python. > Is there any module available for testing? > Please mail to [EMAIL PROTECTED] > > Thanks, > Kalyan. What do you need to test? We test our msi installers by automating them from Python

Re: Dabo 0.9.0 Released

2008-12-10 Thread Fuzzyman
On Dec 10, 7:24 pm, Ed Leafe <[EMAIL PROTECTED]> wrote: > We are proud (and relieved!) to finally release Dabo 0.9.0, the first   > official release of the framework in six months. We haven't been   > taking it easy during that period; rather, we made some changes that   > clean up some weak spots

Re: Looking for the best way to translate an idiom

2008-12-14 Thread Fuzzyman
On Dec 14, 5:51 pm, Paul Moore wrote: > On 14 Dec, 16:22, Bruno Desthuilliers > > wrote: > > if you only want the first returned value, you can just apply a slice: > > > def f(): > >     return 1,2,3 > > > a = f()[0] + 1 > > Hmm, true. I'm not sure it's any less ugly, though :-) > > > FWIW, Pyth

Re: Python 3.0 crashes displaying Unicode at interactive prompt

2008-12-14 Thread Fuzzyman
> That's an interesting definition of crash. You're just like saying: "C > has crashed because I made a bug in my program". In this context, it is > your program that crashes, not python nor C, it is misleading to say so. > > It will be python's crash if: > 1. Python 'segfault'ed > 2. Python inter

Re: On Whose Desktop

2008-12-23 Thread Fuzzyman
On Dec 23, 12:06 pm, Steve Holden wrote: > Thanks to Barry Warsaw the "On Your Desktop" blog now has a new entry: > >  http://onyourdesktop.blogspot.com/ > > Who would you like to see profiled next? > > regards >  Steve > -- > Steve Holden        +1 571 484 6266   +1 800 494 3119 > Holden Web LLC

Re: Why not Ruby?

2009-01-01 Thread Fuzzyman
On Jan 1, 8:32 pm, Paul Rubin wrote: [snip...] > > Of course pythons list, dict, strings in my opinion just can't be beat, > > On many occasions I've wished for a functional dictionary > implementation in Python, like Haskell's Data.Map.  One of these years > I'll g

Re: If your were going to program a game...

2009-01-01 Thread Fuzzyman
On Jan 1, 8:55 pm, "Chris Rebert" wrote: > On Thu, Jan 1, 2009 at 12:24 PM, excord80 wrote: > > On Jan 1, 2:37 pm, Kay Schluehr wrote: > > >> There is no solution to this problem from a Python perspective. Do > >> what everyone does right now: [snip] > > > It still surprises me that no one has i

Re: If your were going to program a game...

2009-01-01 Thread Fuzzyman
On Jan 1, 10:24 pm, Aaron Brady wrote: > On Jan 1, 2:55 pm, "Chris Rebert" wrote: > > > > > On Thu, Jan 1, 2009 at 12:24 PM, excord80 wrote: > > > On Jan 1, 2:37 pm, Kay Schluehr wrote: > > > >> There is no solution to this problem from a Python perspective. Do > > >> what everyone does right n

Re: Why not Ruby?

2009-01-01 Thread Fuzzyman
On Jan 2, 12:16 am, Steven D'Aprano wrote: > On Thu, 01 Jan 2009 12:32:53 -0800, Paul Rubin wrote: > > On many occasions I've wished for a functional dictionary implementation > > in Python, like Haskell's Data.Map.  One of these years I'll get around > > to writing one. > > You don't think Pyth

Re: why cannot assign to function call

2009-01-01 Thread Fuzzyman
On Dec 29 2008, 9:34 am, John Machin wrote: > On Dec 29, 5:01 pm, scsoce wrote: > > > I have a function return a reference, > > Stop right there. You don't have (and can't have, in Python) a > function which returns a reference that acts like a pointer in C or C+ > +. Please tell us what manual,

Re: mod_pylite?

2009-01-02 Thread Fuzzyman
On Jan 2, 2:49 pm, excord80 wrote: [snip...] > > It sounds interesting, however, after reading a bit about it, I see > that a large part of wsgi is providing a nice interface between web > server and webapp. I don't think I need any such interface, or at > least, a replacement for CGI. I just need

Re: If your were going to program a game...

2009-01-02 Thread Fuzzyman
On Jan 2, 3:02 pm, J Kenneth King wrote: > Tokyo Dan writes: > > If your were going to program a game in python what technologies would > > you use? > > > The game is a board game with some piece animations, but no movement > > animation...think of a chess king exploding. The game runs in a > > b

Re: FW: python import sys.path

2009-01-02 Thread Fuzzyman
On Jan 2, 2:28 pm, John Machin wrote: > On Jan 3, 1:09 am, "Kelly, Brian" wrote:> After > following your suggestions I was able to confirm that the 2.5 > > interpreter was being invoked. So then I grepped for all instances of python > > in the scripts that were imported as modules: from bacula_c

Re: Is there a better algorithm?

2009-01-02 Thread Fuzzyman
On Jan 2, 6:11 pm, Kottiyath wrote: > I have the following list of tuples: > L = [(1, 2), (3, 4, 5), (6, 7)] > > I want to loop through the list and extract the values. > The only algorithm I could think of is:>>> for i in l: > > ...  u = None > ...  try: > ...   (k, v) = i > ...  except ValueErro

Re: If your were going to program a game...

2009-01-02 Thread Fuzzyman
On Jan 2, 6:16 pm, Jean-Paul Calderone wrote: > On Fri, 2 Jan 2009 09:44:55 -0800 (PST), Fuzzyman wrote: > >On Jan 2, 3:02 pm, J Kenneth King wrote: > >> Tokyo Dan writes: > >> > If your were going to program a game in python what technologies would > >>

Re: Python 2.6 / 3.0: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 6, 1:13 am, MRAB <[EMAIL PROTECTED]> wrote: > Fuzzyman wrote: > > Hello all, > > > I may well be being dumb (it has happened before), but I'm struggling > > to fix some code breakage with Python 2.6. > > > I have some code that looks for the 

Re: Python 2.6: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 5, 11:54 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > Fuzzyman wrote: > > Hello all, > > > I may well be being dumb (it has happened before), but I'm struggling > > to fix some code breakage with Python 2.6. > > > I have some code that looks

Re: Python 2.6: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 6, 7:16 am, Christian Heimes <[EMAIL PROTECTED]> wrote: > Terry Reedy wrote: > > In 3.0, the test returns true because function attributes only get > > wrapped when bound. In the meanwhile, " 'object' in repr(X.__lt__)" > > should do it for you. > > This session should give you some hints h

Re: Python 2.6 / 3.0: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 6, 7:01 pm, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Oct 6, 4:30 am, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > > > On Oct 6, 1:13 am, MRAB <[EMAIL PROTECTED]> wrote: > > > > Fuzzyman wrote: > >

Re: Python 2.6 / 3.0: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 6, 7:23 pm, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> wrote: > On Oct 6, 1:17 pm, Fuzzyman <[EMAIL PROTECTED]> wrote: > > > > > On Oct 6, 7:01 pm, "Aaron \"Castironpi\" Brady" <[EMAIL PROTECTED]> > >

Re: Python 2.6: Determining if a method is inherited

2008-10-06 Thread Fuzzyman
On Oct 6, 7:02 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > Fuzzyman wrote: > > On Oct 5, 11:54 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > >> Fuzzyman wrote: > >>> Hello all, > >>> I may well be being dumb (it has happened before), but I&#x

Re: Is PyFIT dead and abandoned?

2008-10-07 Thread Fuzzyman
On Oct 7, 1:34 am, Ben Finney <[EMAIL PROTECTED]> wrote: > "James Mills" <[EMAIL PROTECTED]> writes: > > On Tue, Oct 7, 2008 at 5:18 AM,  <[EMAIL PROTECTED]> wrote: > > > Has PyFIT been completely abandoned? Is there a better alternative or > > > other resources to help me integrate fitnesse and py

Re: Python 2.6: Determining if a method is inherited

2008-10-07 Thread Fuzzyman
On Oct 7, 2:29 am, Terry Reedy <[EMAIL PROTECTED]> wrote: > Fuzzyman wrote: > > On Oct 6, 7:02 pm, Terry Reedy <[EMAIL PROTECTED]> wrote: > >> fuzzyman wrote: > >>> Doesn't sound like a particularly *good* solution to me. :-) > >>  From w

Re: Python on JavaScript VM's (such as V8)?

2008-10-07 Thread Fuzzyman
On Oct 2, 1:06 pm, lkcl <[EMAIL PROTECTED]> wrote: > On Sep 3, 10:02 pm, [EMAIL PROTECTED] wrote: > > > Berco Beute: > > > > I wonder what it would take to implement Python in JavaScript so it > >  it's been done.  http://pyjamas.sf.net > That's hardly an implementation of Python in Javascript - i

ANN: Mock 0.4.0 released

2008-10-13 Thread Fuzzyman
Mock 0.4.0 has just been released, the first release in about ten months (but worth the wait). Mock is a simple library for testing: specifically for mocking, stubbing and patching. * Mock Homepage & Documentation http://www.voidspace.org.uk/python/mock.html * mock.py (module only)

Re: Making class attributes non-case-sensitive?

2008-10-13 Thread Fuzzyman
On Oct 13, 10:11 am, Rafe <[EMAIL PROTECTED]> wrote: > Hi, > > I'm working within an application (making a lot of wrappers), but the > application is not case sensitive. For example, Typing obj.name, > obj.Name, or even object.naMe is all fine (as far as the app is > concerned). The problem is, If

Re: compile() and comments

2008-10-13 Thread Fuzzyman
Hello Ed, It is certainly an odd restriction, but the docs for compile [1] do explicitly state that the input must be newline terminated. When compiling multi-line statements, two caveats apply: line endings must be represented by a single newline character ('\n'), and the input must be termi

Re: Finding the instance reference of an object

2008-10-22 Thread Fuzzyman
On Oct 17, 10:39 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 17, 2008, at 3:19 PM, Grant Edwards wrote: > > >> And my real point is that this is exactly the same as in every > >> other modern language. > > > No, it isn't.  In many other languages (C, Pascal, etc.), a > > "variable" is common

Re: Global dictionary or class variables

2008-10-25 Thread Fuzzyman
On Oct 24, 9:44 pm, Mr.SpOOn <[EMAIL PROTECTED]> wrote: > Hi, > in an application I have to use some variables with fixed valuse. > > For example, I'm working with musical notes, so I have a global > dictionary like this: > > natural_notes = {'C': 0, 'D': 2, 'E': 4 } > > This actually works fin

Re: How to examine the inheritance of a class?

2008-10-25 Thread Fuzzyman
On Oct 24, 7:27 pm, Derek Martin <[EMAIL PROTECTED]> wrote: > On Fri, Oct 24, 2008 at 11:59:46AM +1000, James Mills wrote: > > On Fri, Oct 24, 2008 at 11:36 AM, John Ladasky <[EMAIL PROTECTED]> wrote: > > > etc.  The list of subclasses is not fully defined.  It is supposed to > > > be extensible by

Re: Finding the instance reference of an object

2008-10-29 Thread Fuzzyman
On Oct 28, 3:59 pm, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 27, 2008, at 11:28 PM, Gabriel Genellina wrote: > > > > > En Tue, 28 Oct 2008 00:58:10 -0200, greg   > > <[EMAIL PROTECTED]> escribió: > > >> Let's look at the definitions of the terms: > > >> (1) Call by value: The actual parameter

Re: Finding the instance reference of an object

2008-10-30 Thread Fuzzyman
On Oct 30, 1:13 am, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 29, 2008, at 4:52 PM, Fuzzyman wrote: > > > You're pretty straightforwardly wrong. In Python the 'value' of a > > variable is not the reference itself. > > That's the misconc

Re: Finding the instance reference of an object

2008-10-30 Thread Fuzzyman
On Oct 30, 1:13 am, Joe Strout <[EMAIL PROTECTED]> wrote: > On Oct 29, 2008, at 4:52 PM, Fuzzyman wrote: > > > You're pretty straightforwardly wrong. In Python the 'value' of a > > variable is not the reference itself. > > That's the misconc

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
On Nov 9, 7:39 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > Heh. Well it would, except the administrator user doesn't have a > > password (purely a VM) and this is unacceptable for runas. :-) > > There is, unfortunately, no other way to install Python 2.6 on Vista. > So your choices are rea

Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
Hello guys, Not sure if this is a Windows question or a Python problem... I'm trying to install Python 2.6 from the msi, on Windows Vista as an administrative user with UAC on. If I try to install for all users then I am told I don't have privileges to do that... (No UAC prompt.) The only other

Re: Installing Python 2.6 on Vista

2008-11-09 Thread Fuzzyman
On Nov 9, 6:23 pm, "Guilherme Polo" <[EMAIL PROTECTED]> wrote: > On Sun, Nov 9, 2008 at 4:14 PM, Fuzzyman <[EMAIL PROTECTED]> wrote: > > Hello guys, > > > Not sure if this is a Windows question or a Python problem... > > > I'm trying to i

Re: Is psyco available for python 2.6?

2008-11-09 Thread Fuzzyman
On Nov 9, 2:18 pm, Anton Vredegoor <[EMAIL PROTECTED]> wrote: > On Thu, 30 Oct 2008 17:45:40 +0100 > > Gerhard Häring <[EMAIL PROTECTED]> wrote: > > psyco seems to just work on Linux with Python 2.6. So it is probably > > "only" a matter of compiling it on Windows for Python 2.6. > > Yes. I compile

Re: PyPy Progress (and Psyco)

2009-03-15 Thread Fuzzyman
On Mar 15, 3:46 pm, Gerhard Häring wrote: > andrew cooke wrote: > > This looks very promising - > >http://www.voidspace.org.uk/python/weblog/arch_d7_2009_03_14.shtml#e1063 > > > I am really looking forwards to PyPy having a final release.  I hope it > > happens. > > Me too. I doubt it, though. Fro

Re: llvm vs. parrot

2009-04-12 Thread Fuzzyman
On Apr 11, 12:16 am, Paul Watson wrote: > Is Parrot out of favor these days?  It appears that Google is going to > use llvm. > > http://code.google.com/p/unladen-swallow/ Has Parrot ever been in favour? Actually they're quite different things. Michael -- http://www.ironpythoninaction.com/ -- ht

ANN: ConfigObj 4.6.0 and Validate 1.0.0 released

2009-04-17 Thread Fuzzyman
Finally a fresh release ConfigObj and Validate. * ConfigObj Home page: http://www.voidspace.org.uk/python/configobj.html * Validate Home page: http://www.voidspace.org.uk/python/validate.html **ConfigObj** is a simple to use but powerful Python library for the reading and writing of configuration

ANN: Mock 0.5.0 Release

2009-04-19 Thread Fuzzyman
Mock 0.5.0 has just been released. * Mock Homepage http://www.voidspace.org.uk/python/mock/ * Download Mock 0.5.0 release (zip) http://www.voidspace.org.uk/downloads/mock-0.5.0.zip * Mock Documentation as a PDF http://www.voidspace.org.uk/downloads/mock.pdf * Mock entry on PyPI http://pypi.python

Re: A Special Thanks

2009-04-21 Thread Fuzzyman
On Apr 21, 3:52 pm, a...@pythoncraft.com (Aahz) wrote: > In article , > Nick Craig-Wood   wrote: > > > > >Python also converted me to using unit tests.  If you add unit tests > >into your methodology above then when you re-organize (or refactor to > >use the modern jargon) the code you can be 100%

Re: Replacing module with a stub for unit testing

2009-06-04 Thread Fuzzyman
On May 23, 2:00 pm, pigmart...@gmail.com wrote: > Hi, > > I'm working on a unit test framework for a module.  The module I'm > testing indirectly calls another module which is expensive to access > --- CDLLs whose functions access a database. > >     test_MyModule --->MyModule--->IntermediateModule

Re: about python

2008-05-18 Thread Fuzzyman
On Apr 23, 3:50 am, [EMAIL PROTECTED] wrote: > How can python execute in browser? > > Mukul The best way of running Python code in the browser is with the Silverlight browser plugin. Silverlight 2 (currently working with IE, Safari and Firefoxon Windows and Mac OS X - but Silveright 2 for Linux, c

Re: New to Python, Discussion Groups.

2008-05-19 Thread Fuzzyman
On May 19, 1:34 am, cmoller <[EMAIL PROTECTED]> wrote: > Hi, > > I am new to Python and the use of discussion groups. Is there a FAQ > for basic information so certain questions are not repeated? > > I am NOT an experienced programmer, but have decided to write a data > logger for sensors sending d

Re: python script to windows exe

2008-05-19 Thread Fuzzyman
On May 19, 8:32 am, sandeep <[EMAIL PROTECTED]> wrote: > hi all > > i am very much a newbie to python but has some experience of > development.i am trying to write a script which will loop through the > outlook 2003 inbox and save the email data in an simple data.html page > and save all the attach

<    2   3   4   5   6   7   8   9   >