y>from win32gui import Rectangle
py>Rectangle(hdc, 100,100, 300,300)
py>ReleaseDC(hdc,0)
0
py>
You should see a white square on your screen.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respond
a, name)
You *know* your bases because you wrote them in the class statement
(or use super() instead of playing with __bases__); and getattr works
fine here so you don't need to mess with the __dict__ details.
(Note that #1
ningful error:
Traceback (most recent call last):
File "", line 1, in ?
TypeError: Error when calling the metaclass bases
module.__init__() takes at most 2 arguments (3 given)
--
Gabriel Genellina
Softlab SRL
___
ystems
where it doesn't matter, and it's the right way on systems where it does.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
your class is supposed
to be used).
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http
At Friday 5/1/2007 05:40, belinda thom wrote:
I've been using the following hack to determine if a type is
acceptable and I suspect there is a better way to do it:
This has been discussed today under the thread "Set type?", and a few
days ago as "type classobj not def
e like the original.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar/
current time again and
the working out the difference) this would give me duration that it
took to retrieve the web-page, not the download rate?
Then, the download rate in bytes/sec would be (size of page in
bytes)/(time elapsed in seconds)
--
Gabriel Genellina
Softlab SRL
;m running Python2.4 on Windows XP.
Call the function SetPriorityClass; documentation is on msdn.microsoft.com
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y
copy
b2 = copy.deepcopy(b)
assert b2.something=='something'
b2.foo(123)
b2.x(123)
=== cut ===
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber
5.1 is the lowest SDK version I found on
http://www.microsoft.com/downloads/details.aspx?FamilyId=5E86EC97-40A7-453F-B0EE-6583171B4530&displaylang=en#QuickInfoContainer
After you download and install version 5.1, it should appear on the list.
--
Gabriel Genelli
quot; and is roughly equivalent to
your code. Section 5 of the tutorial covers them.
http://docs.python.org/tut/node7.html
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que quería
an, values.
py> value = True
py> negvalue = ~value
py> if negvalue: print "oops!"
...
oops!
py> bool(negvalue)
True
If you want to express the condition "The led is ON when the value of
Anode is > 0 and the value of Cathode is < 0" that would be
self.On = self.An
as well as the rationale behind them.
Where do you find the "What's new" for previous releases? I have to
read them online.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
ed* PythonWin in order to use Python on Windows.
The standard Python distribution works fine. Even includes a Python
editor (IDLE) but you can use whichever editor you like to write your
code (even Notepad...)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
e, deep in an unknown function, the original coder
changed the process priority - with no valid reason, and in any case,
that should be an application-level setting. It was hard to find why,
after doing such and such things, the system responsiveness were so
slow.
--
Gabriel Genellina
--
http://ma
nd sys.argv[1] the first
argument after the script, and so on. It doesn't matter if you call
python implicitely, or with other options. Try this:
/usr/bin/python -i -u -O prog.py
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
now when Py_Initialize() and
Given all those constraints, I think the only safe option is to run
Python in another process.
You write a very simple plugin (NOT in Python, maybe C code) that
spawns another process (the actual Python code) and forwards all
requests to that other process, using so
On 7 ene, 15:48, "nyenyec" <[EMAIL PROTECTED]> wrote:
> urllib.quote chokes on unicode in 2.4.4.
>>> urllib.quote(u"\xe9")
> KeyError: u'\xe9'
>
> but it seems to work in Python 2.3.5
>
> Is this a known bug?
See some recent
ined, then I'll go to the
> default editor built into python-2.5.msi.
It *does* work for me. Try
https://sourceforge.net/project/showfiles.php?group_id=78018&package_id=79063
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
r
> implemented in Python, so I need some analog of 'gdb attach' for C.
On Windows, Pythonwin has an option "Break into running code".
Try starting the script with python -i, and send it a signal..
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
On 7 ene, 16:34, [EMAIL PROTECTED] wrote:
> Gabriel> Where do you find the "What's new" for previous releases? I
> Gabriel> have to read them online.
>
> Google for
> > what's new site:python.org
That's what I do. But this post:
>
wo threads to read from stdout and stderr
to avoid a potential deadlock; they can put read lines into a Queue,
and DisplayOutput just get these lines in order. (See the warnings in
the popen2 module documentation).
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
effect in the same block. This, and the explicit self,
make very clear which x you are referring to.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
yncronize both reading threads and the display thread using
semaphores by hand.)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
ater ones, it's on
http://www.python.org/download/releases/2.5/NEWS.txt (replacing 2.5 as
desired)
You can use google with site:www.python.org (or the Search box in the
Python web) to locate them.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
r simply "help" (without quotes) in the interpreter.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuest
example, you have
some files to be processed:
for fname in filenames:
do_something_with(fname)
==>
for fname in filenames:
try:
do_something_with(fname)
except StandardError, E:
log_error(E)
--
Gabriel Genellina
Softlab
lower it.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://www.yahoo.com.ar
use up to three separate threads for
processing stdin, stdout, stderr.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo!
in patterns:
if fnmatch.fnmatch(some_file_name, p):
return True
...is there a built-in function that will match using multiple patterns?
matched = any(fnmatch(filename, p) for p in patterns)
--
Gabriel G
c.
I'll file a bug report.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
htt
ersions...
Or search for a rootkit...
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya!
http://ww
recent thread "bizarre floating point output".
And the last section on the Python Tutorial "Floating Point
Arithmetic: Issues and Limitations"
--
Gabriel Genellina
Softlab SRL
__
Preg
t -an from the command line and see how many open
connections you have.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en
oing this:
Using a thread for each stream is the safest way, specially if you
can't control the child process.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Respondé. Descubrí.
Todo lo que querías sabe
a regular (types.FunctionType) function?
Yes, that's what actually happens. It's not easy to *retrieve* it
later without getting a MethodType.
Any references that discuss these issues would be greatly appreciated.
Descriptors are documented somewhere... I think they came in Pyth
tting stung b/c I see
both sides and have no preference for one vs. the other.
1.5, but I doubt anyone is still using a version earlier than 1.52 anymore.
--
Gabriel Genellina
Softlab SRL
__
Preguntá. Res
I have a module that defines a variable with a constant value and now I
need to make that value dynamic, without affecting module clients. In
other words, I need to call a function witout using parenthesis.
Example:
mymod.py--
def value():
return "hi"
client.py---
There are modules (like os) that define some stuff that depends on the
platform (for example linesep). This platform dependent constants gets
their values assigned when the module gets loaded, but in our
application, different threads might run on different computers (by
proxying syscalls).. and we
Your post didn't provide any help at all, it was a useless sarcastic
post and I'm a very sensible person.
--
http://mail.python.org/mailman/listinfo/python-list
Tim and Carsten,
Thank you very much for your replies. I'm afraid this is not going to
work for me (but I'm not 100% sure), coz if I access those modules from
the Python's C API (PyModule_* functions), the PyModule_Check() calls
will fail.
Thanks again.
--
http://mail.python.org/mailman/listinfo/
ocess to import the index and or it
explode in some point or they simply kill it after some time). and
they obviously don't run that process very often.
Now... anyone has some implementation of pygoogle.py that scraps the
regular html service instead of using SOAP? :)
Gabriel B.
--
http://mai
2006/2/25, Sybren Stuvel <[EMAIL PROTECTED]>:
> Lad enlightened us with:
> > Body='Rídících Márinka a Školák Kája
> > Marík'.decode('utf8').encode('windows-1250')# I use the text written
> > in my editor with utf-8 coding, so first I decode and then encode to
> > windows-1250
what does a string be
isn't Tk supposed to be imported globaly?
And If i import Tkinter again inside every other file, will it be
really imported several times and be independent in each file or the
python interpreter just use the subsequent imports to know where to
propagate stuff?
Thanks,
Gabriel
--
http://mail.py
sage class to
generate and parse HTTP headers.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
item()
...
py> def a(): print "a"
...
py> def b(): return 4
...
py> def c(): pass
...
py> def d():
... global z
... z = 1
...
py> z="A"
py> x = CallableList([a,b,c,d])
py> x()
a
py> z
1
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
It took me quite some time understanding what the __get__ method does,
> but I think now I figured it out. I've made a quantum leap in my
> understanding of Python (esp. method binding) with this! Awesome!
To proceed to next energy level, read some articles from
http://www.python.org/doc/news
that they should
not be tested that way?
My actual use case: I want to check if an object (instance of a class
that inherits from file) still uses the original write method or has
overriden it.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
name = raw_input("Your name? ")
print "Hello,", name
raw_input is a built-in function, see
http://docs.python.org/lib/built-in-funcs.html#l2h-59
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
inside IDLE and the console.
Python versions earlier than 2.3 did not have a distutils.log module.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
QOTW: "Stop thinking of three lines as 'extensive coding' and your problem
disappears immediately." - Steve Holden
"Hey, did you hear about the object-oriented version of COBOL? They call
it 'ADD ONE TO COBOL'." - Tim Roberts
EuroPython: Registration is open!
http://www.europyth
; f = tempfile.TemporaryFile(mode='w+')
> sys.stdout = f
> traceback.print_tb(sys.exc_info()[2])
In this case you can use StringIO instead of a temporary file, and the
file argument to print_tb instead of swapping sys.stdout
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
identity between type(o).write and file.write -- seems a
> more direct expression of that thought (and implementable with the C-API
> just as well as with pure Python).
Thanks! It looks obvious now :)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
it,still single) argument.
Yes, it appears that you are building a plain list but your code is
expecting another kind of object. I'm unfamiliar with Numeric arrays, if
that is what you need; perhaps someone else can help, or ask again in a
Numeric-specific list.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
p://docs.python.org/lib/built-in-funcs.html#l2h-55> for the ord()
function and <http://docs.python.org/lib/typesseq-strings.html> for the
"%#x" format
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 04 Jun 2007 23:03:04 -0300, <[EMAIL PROTECTED]> escribió:
> Thanks Gabriel. That was exactly what I was looking for. Also, I'm
> glad to make a connection to the StringIO class. I'm sure I will
> remember it the next time I need it.
Glad to see it helped. Cer
En Tue, 05 Jun 2007 03:41:19 -0300, <[EMAIL PROTECTED]> escribió:
> On 5 Jun., 01:32, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
>> Yes, it appears that you are building a plain list but your code is
>> expecting another kind of object. I'm unfamili
exceptions.TypeError: exceptions must be classes, instances, or strings
> (deprecated), not NoneType
> Unhandled exception in thread started by
> Error in sys.excepthook:
>
> Original exception was:
Looks similar to this reported bug:
http://sourceforge.net/tracker/index.php?func=deta
ach item, do: d.setdefault(bucket, []).append(item)
If you are using Python 2.5, use a defaultdict instead, the very first
example looks like what you want.
<http://docs.python.org/lib/defaultdict-objects.html>
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
failure - it's just more likely
to happen on a big file.
The REST ftp command is used to restart the transfer from a certain offset.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Wed, 06 Jun 2007 16:20:09 -0300, Mike Meyer <[EMAIL PROTECTED]> escribió:
> In 2.5.1 (and 2.[45], but not 2.3):
Care to tell some details?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
'Too
> few bytes from client. Expected ' + str(num) + '; got ' + str(len(data)),
> num, len(data))
>
> return data
Without much analysis, shouldn't be: data += conn.recv(num - len(data)) or
something like that?
Else you are discarding the previously received data.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
tattr/getattr, use a property, and you'll get much cleaner
code.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 08 Jun 2007 10:00:58 -0300, flebber <[EMAIL PROTECTED]>
escribió:
>> I will, baby steps at the moment for me at the moment though as I am
>> only learning and can't get gzip to work
Try reading some tutorial from http://wiki.python.org/moin/BeginnersGuide
tionary .I'm only interested in the value field of
> torrents key which again is a list of lists.
See this Cookbook recipe: safe eval
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/364469
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
rthogonal coordinates and Newton's
laws to solve it - the "obvious" way would be to use spherical coordinates
and the Lagrangian formulation (or at least I hope so - surely
knowledgeable people will find more "obviously" which is the right way).
All classical mechanic
t; C.) a Python repository, as in the SVN/CVS area?
D.) The Python Package Index perhaps? http://www.python.org/pypi
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
x27; call stacks are
frozen for as long as they remain deadlocked. The frame returned for a
non-deadlocked thread may bear no relationship to that thread's current
activity by the time calling code examines the frame.
This function should be used for internal and specialized purposes on
En Sat, 09 Jun 2007 22:53:08 -0300, boyeestudio <[EMAIL PROTECTED]>
escribió:
> Are there any python jobs worked at home from the internet?
> I want to find a part time job.
> Please give a clue to this for me.
I know of http://www.rentacoder.com/ but I've never actually u
ry anyway.
Python 2.2 (the version that the OP is using) did include a xreadlines
module (now defunct) but on this case it is painfully slow -
perhaps it tries to read the source one character at a time.
So the best way would be to use (as Paul Rubin already said):
for line
En Sun, 10 Jun 2007 09:17:21 -0300, Fabio Zadrozny <[EMAIL PROTECTED]>
escribió:
> On 6/10/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>>
>> En Sat, 09 Jun 2007 21:40:40 -0300, Fabio Zadrozny <[EMAIL PROTECTED]>
>> escribió:
>>
>> >
a different class name (altough it
may be confusing...):
py> f = type("Foo", (Foo,Bar), {})()
py> f.bar()
'bar'
> This "new" module seems to be the key to it all;
It's almost useless now that types are callable.
> but the only docs I have for that say:
>
>>>> help(new)
> Help on module new:
> [...]
> MODULE DOCS
> http://www.python.org/doc/current/lib/module-new.html
Did you follow the above link?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
4)
> I would get 8 bytes,
Why do you think so? read(4) will read up to 4 bytes, or less if the
specified timeout elapses.
> Is there a trick to read 9 bytes off of a serial port?
read(9) (don't forget to set the timeout)
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
w. Escape
characters should not be a problem then. Have you verified the contents of
the text file? With notepad?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
QOTW: "That's the Martellibot for you. Never use a word where a paragraph
with explanatory footnotes will do.
Sigh. I miss him on c.l.py." - Simon Brunning
"Conclusion: advice to 'try Python for yourself' is apt in a way the
original questioner might not realize." - Cameron Laird
A
import statements at the top of mainscript.py that are
responsible for bringing AddPlot and DrawPlots into the current namespace?
Import the same things in your second module.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Mon, 11 Jun 2007 15:46:51 -0300, Paul Rudin <[EMAIL PROTECTED]>
escribió:
> HMS Surprise <[EMAIL PROTECTED]> writes:
>>>
>>> Why not use grep?
>>
>> With Windows XP?
>
> www.cygwin.com
Why? Try findstr /? at the command prompt.
--
Ga
uplicates in the
original list, the new list won't have any.
> also, the line "pinger = ping[server]" would have to be extracted from
> this loop otherwise your going to ping the same server repeatedly
> until it answers...
Uh...?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
x27;: '0', 'H9': '9', 'I2': '0', 'E8': '0', 'H3': '0', 'H7': '0',
> 'I7': '3', 'I4': '0', 'H5': '0', 'F9': '0
En Mon, 11 Jun 2007 17:29:35 -0300, reubendb <[EMAIL PROTECTED]> escribió:
> On Jun 11, 3:30 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> En Mon, 11 Jun 2007 15:18:58 -0300, reubendb <[EMAIL PROTECTED]>
>> escribió:
>>
>> &
atic too - there is no way to "uninitialize"
them, and nothing forbids an extension to hold a reference to any object.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
plotModule = module('plot')
for key,value in namespace.items():
if key[:2] != '__':
setattr(plotModule, key, value)
sys.modules['plot'] = plotModule
--- myModule.py ---
import plot
def do_work():
plot.DrawPlot(...)
...
(Having to type
ltiline lambdas as functions? Wouldn't that be a
> win-win
> for everyone?
If you want to "implement multiline lambdas as functions"... why don't you
use a plain old function?
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
o another value. But you can create *new* objects from the
desired values, using PyInt_FromLong and PyFloat_FromDouble.
If this is your first approach to Python, I suggest first become familiar
with the language, and later try to mix it with C code.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
s using the pywin32 extensions (available from
sourceforge) or the ctypes module.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
e, that gets executed
whenever the loop exits normally (in this case, when divisor goes up to
number, and the break statement is never executed). So you don't need
is_prime:
for number in range(10,100):
for divisor in range(2,number):
if number % divisor == 0:
, "i", &nValue);
>
> But, how can I parse the False value?
Parse them as integers, with False==0 and True==1.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
%1.00
> 1.00
>
> I just expect it to output "1" , but these way will output 1.00
def my_formatter_ommitting_trailing_zeroes(value):
result = '%.2f' % value
if result[-3:]=='.00': result = result[:-3]
return result
for f in [1.0, 1.002, 1.12, 1.567, 2324.012]:
print "%g -> %s" % (f, my_formatter_ommitting_trailing_zeroes(f))
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Tue, 12 Jun 2007 06:34:49 -0300, exhuma.twn <[EMAIL PROTECTED]> escribió:
> On Jun 12, 6:57 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> for number in range(10,100):
>> for divisor in range(2,number):
>> if number % di
between them. So why not just make compute()
> the very last thing that __init__ does?
As far as I understand what the OP said, (2) may never happen. And since
(4) is expensive, it is avoided until it is actually required.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
}
>
> If I changed INT64 nValue to be static INT64 nValue at LINE_HERE, it
> is ok.
> Why?
I don't know, but I don't see either where Python is involved... you don't
use any argument and the returned Python object is not an INT64...
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
En Tue, 12 Jun 2007 09:09:12 -0300, rhXX <[EMAIL PROTECTED]> escribió:
> i'm using this tutorial example
Glad to see you could make it work finally. Which tutorial was that? The
httplib.HTTP class that you were using is very old and deprecated for
several years now.
--
Gab
En Tue, 12 Jun 2007 10:41:28 -0300, Chris Mellon <[EMAIL PROTECTED]>
escribió:
> On 6/12/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>> for x in iterable:
>>do something with x
>> else:
>>do something when there are no more x
>>
>&g
That will be the original "current directory" when the program starts; but
it may be changed afterwards.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
t gets worse: any previously created instances will still be
instances of the *old* class. I think that there are some recipes in the
Python Cookbook about this problem.
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
th all the normal definitions and #include's
void test(void)
{
INT64 i=1;
printf("%d\n", sizeof(i));
}
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
findtext('title')
...
Title1:Description
Title2:Description
ElementTree is infinitely more flexible and easier to use.
See <http://effbot.org/zone/element-index.htm>
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
ey,value in namespace.items():
>> if key[:2] != '__':
>> setattr(plotModule, key, value)
>> sys.modules['plot'] = plotModule
>>
>
> Hm.. apparently this works for function but doesn't work for method :(.
> Do you
> know of any re
init__ is rather useless for immutable types. You have to override
__new__ instead.
See <http://docs.python.org/ref/customization.html>
--
Gabriel Genellina
--
http://mail.python.org/mailman/listinfo/python-list
701 - 800 of 5091 matches
Mail list logo