After more than six months development work mock 0.8 has been
released. 0.8 is a big release with many new features, general
improvements and bugfixes.
You can download mock 0.8.0 final from the PyPI page or install it
with:
pip install -U mock
mock is a library for testing in Python. It
After more than six months development work mock 0.8 has been
released. 0.8 is a big release with many new features, general
improvements and bugfixes.
You can download mock 0.8.0 final from the PyPI page or install it
with:
pip install -U mock
mock is a library for testing in Python. It
On Aug 5, 12:29 pm, Ryan heni...@yahoo.com wrote:
In the context of descriptors, the __set__ method is not called for
class attribute access. __set__ is only
called to set the attribute on an instance instance of the owner class
to a new value, value. WHY?
It's an unfortunate asymmetry in the
On Aug 5, 1:16 pm, Duncan Booth duncan.bo...@invalid.invalid wrote:
Ryan heni...@yahoo.com wrote:
In the context of descriptors, the __set__ method is not called for
class attribute access. __set__ is only
called to set the attribute on an instance instance of the owner class
to a new
On Aug 7, 4:06 am, Eric Snow ericsnowcurren...@gmail.com wrote:
Thought I knew how to provide a dynamic __name__ on instances of a
class. My first try was to use a non-data descriptor:
# module base.py
class _NameProxy(object):
def __init__(self, oldname):
self.oldname =
On Aug 10, 4:25 pm, Ian Kelly ian.g.ke...@gmail.com wrote:
On Wed, Aug 10, 2011 at 8:48 AM, Fuzzyman fuzzy...@gmail.com wrote:
__name__ can be a descriptor, so you just need to write a descriptor
that can be fetched from classes as well as instances.
Here's an example with a property
On Aug 10, 5:27 pm, Eric Snow ericsnowcurren...@gmail.com wrote:
On Wed, Aug 10, 2011 at 8:33 AM, Fuzzyman fuzzy...@gmail.com wrote:
On Aug 5, 12:29 pm, Ryan heni...@yahoo.com wrote:
In the context of descriptors, the __set__ method is not called for
class attribute access. __set__ is only
Yay for conference driven development, I got the final release of mock
0.7.0 done in time for PyCon. No api changes since the release
candidate. The only changes are documentation improvements (double
yay!)
* http://pypi.python.org/pypi/mock/ (download)
* http://www.voidspace.org.uk/python/mock/
There is a new release of mock: mock 0.7.0 rc1
http://pypi.python.org/pypi/mock
This is intended to be the last release of mock before 0.7.0 final and
the only changes anticipated are documentation changes which I've
finally started work on.
mock is a Python library for simple mocking and
On Dec 29 2010, 11:31 pm, gervaz ger...@gmail.com wrote:
Hi all, I need to stop a threaded (using CTR+C or kill) application if
it runs too much or if I decide to resume the work later.
I come up with the following test implementation but I wanted some
suggestion from you on how I can
On Jan 4, 3:12 pm, Fuzzyman fuzzy...@gmail.com wrote:
On Dec 29 2010, 11:31 pm, gervaz ger...@gmail.com wrote:
Hi all, I need to stop a threaded (using CTR+C or kill) application if
it runs too much or if I decide to resume the work later.
I come up with the following test implementation
On Jan 4, 3:31 pm, Roy Smith r...@panix.com wrote:
In article
2ebc11a5-1b45-4faa-97b9-c84f0db01...@k22g2000yqh.googlegroups.com,
Fuzzyman fuzzy...@gmail.com wrote:
It is unsafe to terminate an os level thread at an arbitrary point
because it may be executing code in a critical section
On Nov 26, 1:10 am, Steven D'Aprano steve
+comp.lang.pyt...@pearwood.info wrote:
On Thu, 25 Nov 2010 08:15:21 -0800, Yingjie Lan wrote:
Intuition #1: as if you raise an exception type, and then match that
type.
It seems that no instances
are involved here (Intuitively).
Your intuition
I've released mock 0.7.0 beta 4. This is intended to be the last
release of 0.7.0 before the final.
http://pypi.python.org/pypi/mock/ (download)
http://www.voidspace.org.uk/python/mock/ (documentation)
https://code.google.com/p/mock/ (repo and issue tracker)
mock is a Python library for simple
On Oct 17, 12:35 pm, Florian Weimer f...@deneb.enyo.de wrote:
* Chris Torek:
In article 87y69xbz6h@mid.deneb.enyo.de
Florian Weimer f...@deneb.enyo.de wrote:
Are there libraries which implement some form of spreadsheet-style
dependency tracking? The idea is to enable incremental
On Sep 30, 6:07 pm, kj no.em...@please.post wrote:
This is a recurrent situation: I want to initialize a whole bunch
of local variables in a uniform way, but after initialization, I
need to do different things with the various variables.
What I end up doing is using a dict:
d = dict()
for
On Jul 12, 1:21 am, rantingrick rantingr...@gmail.com wrote:
On Jul 11, 5:28 pm,Fuzzymanfuzzy...@gmail.com wrote:
But why hijack someone else's announcement to do that? Congratulations
alone would have been great. However good your intentions your message
came across as but it would really
On Jul 11, 5:16 pm, rantingrick rantingr...@gmail.com wrote:
On Jul 11, 9:01 am, a...@pythoncraft.com (Aahz) wrote:
As usual, you would rather tell other people what to do instead of doing
any work yourself.
Dear God! My statement was intended to fetch responses like...
Hey, that
On Jul 5, 1:34 am, sturlamolden sturlamol...@yahoo.no wrote:
On 5 Jul, 01:58, John Nagle na...@animats.com wrote:
Exactly.
The incompatible with all extension modules I need part
is the problem right now. A good first step would be to
identify the top 5 or 10 modules that are
On Jun 18, 5:25 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Thu, 17 Jun 2010 07:12:23 -0300, Fuzzyman fuzzy...@gmail.com escribi�:
On Jun 17, 10:29 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Thu, 17 Jun 2010 04:52:48 -0300, Alf P. Steinbach al...@start.no
On Jun 17, 10:29 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Thu, 17 Jun 2010 04:52:48 -0300, Alf P. Steinbach al...@start.no
escribió:
But who would have thunk that Python *isn't dynamic enough*? :-)
Yep... There are other examples too (e.g. the print statement in 2.x
On Mar 23, 10:04 pm, geremy condra debat...@gmail.com wrote:
On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden m...@timgolden.me.uk wrote:
On 23/03/2010 16:55, Jose Manuel wrote:
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official
On Feb 3, 7:38 pm, Phlip phlip2...@gmail.com wrote:
On Feb 3, 10:57 am, Adam Tauno Williams awill...@opengroupware.us
wrote:
Current editors suck because they can't see into the code and browse
it - unless it's so statically typed it's painful.
? I edit Python in MonoDevelop 2.2;
mock is a Python mock object library for testing, with additional
support for runtime monkey patching.
Most mocking libraries follow the ‘record - replay’ pattern of
mocking. I prefer the ‘action - assertion’ pattern, which is more
readable and intuitive; particularly when working with the Python
The discover module is a backport of the automatic test discovery from
the unittest module in Python-trunk (what will become Python 2.7 and
3.2).
The discover module should work on versions of Python 2.4 upwards:
* discover module on PyPI: http://pypi.python.org/pypi/discover
The discover
On Aug 3, 10:04 pm, sturlamolden sturlamol...@yahoo.no wrote:
On 2 Aug, 15:50, Jizzai jiz...@gmail.com wrote:
Is a _pure_ python program buffer overflow proof?
For example in C++ you can declare a char[9] to hold user input.
If the user inputs 10+ chars a buffer overflow occurs.
Short
On Aug 4, 6:06 am, John Nagle na...@animats.com wrote:
Gabriel Genellina wrote:
En Mon, 03 Aug 2009 18:04:53 -0300, sturlamolden sturlamol...@yahoo.no
escribió:
On 2 Aug, 15:50, Jizzai jiz...@gmail.com wrote:
Is a _pure_ python program buffer overflow proof?
For example in C++ you
On Jul 26, 5:22 pm, Baz Walter baz...@ftml.net wrote:
hello
i thought that python automatically compiled pyc files after a module is
successfully imported. what could prevent this happening?
Python 2.6.1 (r261:67515, Apr 12 2009, 03:51:25)
[GCC 4.3.2] on linux2
Type help, copyright,
September 23-24th I'll be presenting a two day training session in
Stockholm (the training is in English) with addskills. It is aimed
at .NET developers looking to use IronPython for application
development, scripting, embedding, testing or just as another useful
tool. It will be a comprehensive
The discover module is a backport of the automatic test discovery from
python-trunk (what will become Python 2.7 3.2) to work with Python
2.4 or more recent (including Python 3.0).
Test discovery allows you to run all the unittest based tests (or just
a subset of them) in your project without
On Apr 21, 3:52 pm, a...@pythoncraft.com (Aahz) wrote:
In article slrnguqvne.eol.n...@irishsea.home.craig-wood.com,
Nick Craig-Wood n...@craig-wood.com wrote:
Python also converted me to using unit tests. If you add unit tests
into your methodology above then when you re-organize (or
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
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
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
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
On Apr 11, 12:16 am, Paul Watson paul.hermeneu...@gmail.com 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
--
After two and a half years of work IronPython in Action is finally
available!
http://www.ironpythoninaction.com/
IronPython in Action is the first book (in English anyway...) on
IronPython. It is written by myself and my colleague Christian
Muirhead, with a foreword by Jim Hugunin (the
On Mar 15, 3:46 pm, Gerhard Häring g...@ghaering.de 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,
On Jan 25, 2:28 pm, Alan G Isaac alan.is...@gmail.com 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.
On Jan 17, 3:52 pm, Vito De Tullio zak.mc.kra...@libero.it 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
On Jan 16, 5:45 pm, Alan G Isaac alan.is...@gmail.com 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 stdin, line 1, in module
TypeError:
On Jan 2, 2:49 pm, excord80 excor...@gmail.com 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
On Jan 2, 3:02 pm, J Kenneth King ja...@agentultra.com wrote:
Tokyo Dan huff...@tokyo.email.ne.jp 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
On Jan 2, 2:28 pm, John Machin sjmac...@lexicon.net wrote:
On Jan 3, 1:09 am, Kelly, Brian brian.ke...@uwsp.edu 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
On Jan 2, 6:11 pm, Kottiyath n.kottiy...@gmail.com 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
On Jan 2, 6:16 pm, Jean-Paul Calderone exar...@divmod.com wrote:
On Fri, 2 Jan 2009 09:44:55 -0800 (PST), Fuzzyman fuzzy...@gmail.com wrote:
On Jan 2, 3:02 pm, J Kenneth King ja...@agentultra.com wrote:
Tokyo Dan huff...@tokyo.email.ne.jp writes:
If your were going to program a game
On Jan 1, 8:32 pm, Paul Rubin http://phr...@nospam.invalid 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 get around
On Jan 1, 8:55 pm, Chris Rebert c...@rebertia.com wrote:
On Thu, Jan 1, 2009 at 12:24 PM, excord80 excor...@gmail.com wrote:
On Jan 1, 2:37 pm, Kay Schluehr kay.schlu...@gmx.net wrote:
There is no solution to this problem from a Python perspective. Do
what everyone does right now: [snip]
On Jan 1, 10:24 pm, Aaron Brady castiro...@gmail.com wrote:
On Jan 1, 2:55 pm, Chris Rebert c...@rebertia.com wrote:
On Thu, Jan 1, 2009 at 12:24 PM, excord80 excor...@gmail.com wrote:
On Jan 1, 2:37 pm, Kay Schluehr kay.schlu...@gmx.net wrote:
There is no solution to this problem
On Jan 2, 12:16 am, Steven D'Aprano st...@remove-this-
cybersource.com.au 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
On Dec 29 2008, 9:34 am, John Machin sjmac...@lexicon.net wrote:
On Dec 29, 5:01 pm, scsoce scs...@gmail.com 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+
+.
On Dec 23, 12:06 pm, Steve Holden st...@holdenweb.com 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
Resolver One is the Python powered spreadsheet created by Resolver
Systems.
Resolver One is a highly programmable spreadsheet program built with
IronPython. It is capable of creating powerful spreadsheet systems,
but is easy to program with Python and .NET libraries.
We’re convinced that
On Dec 14, 5:51 pm, Paul Moore p.f.mo...@gmail.com wrote:
On 14 Dec, 16:22, Bruno Desthuilliers
bdesth.quelquech...@free.quelquepart.fr 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
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 interpreter
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 in
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 *behaviour* you want from your
units and you test
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
get executed
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
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. We use
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 course I found
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 really:
1.
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
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 install Python 2.6 from the msi, on Windows Vista as an
administrative
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 compiled it using wp
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 misconception that is leading some folks around here into
tangled nots
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 misconception that is leading some folks around here into
tangled nots
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 is an expression.
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 fine. I was
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 the user.
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 commonly thought of as
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)
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)
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 someone
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
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 python?
I for
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 what you posted, 'type object at' should work.
It's still a hack...
I am
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 - it's a
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 '__lt__' method on a class:
if hasattr(clr, '__lt__
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 for the '__lt__' method on a class:
if hasattr(clr, '__lt__
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 how to
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:
Hello all,
I may well be being dumb (it has happened before), but I'm struggling
to fix
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]
wrote:
It's a very object oriented solution. Essentially you're inheriting
all the classes that you
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'm struggling
to fix some code breakage with Python 2.6.
I have some code
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 '__lt__' method on a class:
if hasattr(clr, '__lt__'):
However - in Python 2.6 object has grown a default implementation of
'__lt__',
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 '__lt__' method on a class:
if hasattr(clr, '__lt__'):
However - in Python 2.6 object has grown a default implementation of
'__lt__',
Hello all,
Sorry - my messages aren't showing up via google groups, so I'm kind
of posting on faith...
Anyway, I solved my problem (I think)...
import sys
if sys.version_info[0] == 3:
def _has_method(cls, name):
for B in cls.__mro__:
if B is object:
On Oct 5, 8:15 pm, [EMAIL PROTECTED] (Valentino
Volonghi aka Dialtone) wrote:
Fuzzyman [EMAIL PROTECTED] wrote:
So how do I tell if the X.__lt__ is inherited from object? I can look
I don't have python 2.6 installed so I can't try but what I think could
work is:
class Foo(object
On Sep 21, 4:04 pm, Fredrik Lundh [EMAIL PROTECTED] wrote:
Diez B. Roggisch wrote:
I wonder why something like myThread.exit() or myThread.quit() or
threading.kill(myThread) can't be implemented?
Is something like that present in Python 3000?
Not that I'm aware of it (which doesn't mean
On Sep 6, 1:23 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
Mohamed Yousef schrieb:
ðWhat about no Constructor , and a custom instancing function that can
return either None or the instance wanted
That doesn't solve the underlying problem - the instance is created.
Just because it wasn't
On Aug 3, 3:02 pm, CNiall [EMAIL PROTECTED] wrote:
I am very new to Python (I started learning it just yesterday), but I
have encountered a problem.
I want to make a simple script that calculates the n-th root of a given
number (e.g. 4th root of 625--obviously five, but it's just an example
PyCon UK 2008 is the second PyCon event in the UK, and is being held
on 12th to 14th September at the Birmingham Conservatoire.
The conference starts with a day of tutorials on the Friday. The
timetable for the tutorials day has now been published:
http://www.pyconuk.org/timetable.html
On Jul 29, 9:34 am, mindmind [EMAIL PROTECTED] wrote:
Hello,
I have a ironpython 1.1.1.0 host in my c# app, and When doing a
engine.ExecuteFile(file);
i often get the error below, when file is on a network share :
(winXp client , windows ??? server)
21-07-2008 12:47:28 : Traceback (most
On Jul 26, 8:02 pm, Rob Williscroft [EMAIL PROTECTED] wrote:
Martin v. Löwis wrote innews:[EMAIL PROTECTED]
comp.lang.python:
I just tested, I built a default C# forms app using the AnyCPU
option and it ran as a 64 bit app (no *32 in Task Manager), this is
on XP64.
I have though
PyCon UK 2008 is the second PyCon event in the UK, and is being held
on 12th to 14th September at the Birmingham Conservatoire.
We have a bevy of national and international Python stars speaking as
well as a host of members of the Python community.
The conference starts with a day of tutorials
On Jul 27, 6:02 am, castironpi [EMAIL PROTECTED] wrote:
On Jul 24, 11:04 pm, Tim Roberts [EMAIL PROTECTED] wrote:
castironpi [EMAIL PROTECTED] wrote:
Compiling a program is different than running it. A JIT compiler is a
kind of compiler and it makes a compilation step. I am saying
On Jul 24, 6:41 am, Jordan [EMAIL PROTECTED] wrote:
Hi everyone,
I'm a big Python fan who used to be involved semi regularly in
comp.lang.python (lots of lurking, occasional posting) but kind of
trailed off a bit. I just wrote a frustration inspired rant on my
blog, and I thought it was
On Jul 19, 8:45 pm, Michiel Overtoom [EMAIL PROTECTED] wrote:
On Saturday 19 July 2008 21:13:04 Lamonte Harris wrote:
Where can I get the win32api module? I been searching all day on google and
nothing, i installed
https://sourceforge.net/project/showfiles.php?group_id=78018which requires
On Jul 13, 7:56 am, Steven D'Aprano [EMAIL PROTECTED]
cybersource.com.au wrote:
On Sat, 12 Jul 2008 19:25:18 -0400, Terry Reedy wrote:
ssecorp wrote:
def fib(n):
def fibt(a, b, n):
if n = 1:
return b
else:
return fibt(b, a + b, n - 1)
On Jul 11, 10:09 am, Kay Schluehr [EMAIL PROTECTED] wrote:
P4D = E4X style embedded DSL for Python but without E and X.
For more information see:
http://pypi.python.org/pypi/P4D/1.1-py2.5
That looks a lot like YAML. Any reason to use it over YAML?
Michael Foord
1 - 100 of 810 matches
Mail list logo