> Why are you doing this in the first place? Trying to escape from
> Zope-land? Exporting data on a regular basis, for use in another
app?
Hi Jonh,
Thank you for your reply.
Yes, I'm traing to escape from Zope-land, to be more clarify I want to
migrate from Plone to PHP Application, which uses
Hi all,
by reading through the docs, the func_closure attribute of function objects is
listed as writable. Yet, nowhere does it say _how_ to write to it. I am
trying to do a run-time modification of a function's closure, where I want to
modify the value of one of the variables in the closure. B
Kenneth Miller wrote:
> Hello All,
>
> I need a python module to do real time graphs so I chose Matplotlib. I
> am trying to compile matplotlib at the moment and I have some problems,
> well not really. It compiles fine, it's how it compiles that's the
> problem. I am attempting to build
Dave Benjamin wrote:
> Here's the problem: the "mmap" object doesn't have a reference to
> "somefile", only to its file descriptor number. So, when getfile() goes
> out of scope, there are no references left, and the file gets closed
> automatically.
That makes a lot of sense. It's now how I woul
Hello,
I have two modules (file1.py and file2.py)
Is that ok in python (without any weird implication) if my module
import each other. I mean in module file1.py there exist command import
file2 and in module file2.py there exist command import file1?
This is not working in C#.
pujo
--
http://m
Not all leakage problems caused by qt or python. There is a wrapping
layer between Qt and Python provided by SIP. Therefore, SIP may cause
leakages. Also PyQt had a paintCell memory leakage problem several
months ago. If you're using an old snapshot of PyQt or SIP, that would
be a problem. Try usin
barney wrote:
> I realise that theses are windows rather than python issues but I would
> expect there would be some reliable way of changing the file
> permissions from within python. I'm updating ID3 tags in MP3 file to
> give some context. If I use something like winamp to make the change to
>
flupke wrote:
> Which projects are you talking about? I only found a library in c to
> evaluat ranks but i didn't find the code to be very understandable.
pokersource is the main was I was thinking about, yes.
> With histogram do you mean something like this:
> Card hand: 2 clubs, 3 diamonds, 1
Fernando Perez wrote:
> I am trying to do a run-time modification of a function's closure,
> where I want to modify the value of one of the variables in the closure.
Out of curiosity, why?
> In [21]: def wrap(x):
>: def f(y):
>: return x+y
>: return f
>
seems like it is not a platform specific,
i think to solve the problem i need put settings in order (in php it is php.ini
file) thus i'll have a portable code.
i've check the following code on my various servers, and it gives me different
results:
import time
time.tzname
time.daylight
time.strp
Terry Reedy wrote:
> This should REALLY be on the doc page of the Python site.
Agreed.
> It is really time to stop pretending that the only Python users
> that count have a *nix on their desk.
I agree with this too, but if you're a programmer
on the Windows platform with possibility to install
s
Erik Max Francis wrote:
> flupke wrote:
>
>> Which projects are you talking about? I only found a library in c to
>> evaluat ranks but i didn't find the code to be very understandable.
>
>
> pokersource is the main was I was thinking about, yes.
>
>> With histogram do you mean something like t
Magnus Lycka wrote:
>Terry Reedy wrote:
>
>
>>This should REALLY be on the doc page of the Python site.
>>
>>
>Agreed.
>
>
>
>>It is really time to stop pretending that the only Python users
>>that count have a *nix on their desk.
>>
>>
>I agree with this too, but if you're a program
ls wrote:
> I'm experienced mostly in C, PHP, also with some backgrounds of CPP
> and Java, but I'm totaly new in Python ...
>
> What do you suggest in this case?
The simplest approach is to run Zope with the Data.fs file. If you have
access to the zope instance you want to export from, you on
[EMAIL PROTECTED] wrote:
> X-No-Archive: yes
> Can some one help me improve this block of code...this jus converts the
> list of data into tokens based on the range it falls into...but it
> takes a long time.Can someone tell me what can i change to improve
> it...
>
> def Tkz(tk,data):
> no_
In article <[EMAIL PROTECTED]>,
Greg Krohn wrote:
> Do you have the unicode version of wxPython?
>
> http://prdownloads.sourceforge.net/wxpython/wxPython2.6-win32-unicode-2.6.1.0-py24.exe
I think I do, because it shows the Unicode demo correctly, and I recall
that I specifically chose that fro
Don't know if this is what you mean, but:
Binary to decimal:
>>> bin_num = '11011'
>>> int(bin_num, 2)
267
>>> def dec2bin(dec_number):
... if dec_number == 0: return '0'
... return (dec2bin(dec_number >> 1) + str(dec_number % 2))
...
>>> dec2bin(267)
'011011'
--
Guyon Morée
[EM
On Tue, 2005-06-07 at 10:35 -0500, Greg Lindstrom wrote:
I would check out the shuttleworth foundation's schooltool
http://www.schooltool.org/
> Hello-
>
> I just picked up my daughters' report cards for the year (they did well,
> thank-you) and was approached by the school administrator abou
[EMAIL PROTECTED] wrote:
> thanks for your input...
> well I just find out that modifying environment through ksh call is not
> possible (can't get the new evironment back to python).
I thought about this a few days ago. Can't you copy it like this:
import os
env_rows = os.popen('. some.script
Hello,
is there any way how to generate GUI form from given XML Schema?
I mean, any lib which can do it? I think it's usable for "gui editing" of
XML File.
Google give me only completed standalone programs or non-python solutions.
Thanks,
--
Lukas "Almad" Linhart
[:: http://www.almad.net/ :
"Tim Golden" <[EMAIL PROTECTED]> said :
> Just wanted to say thank you to Simon and all the
> other people who have edited the Python-URL! weekly
> digest over the years. Despite my being a pretty much
> constant reader of c.l.py and various blogs and other
> on-line sources, I still look forward
L.S.,
I would like to learn how does work the "unit test" concept in Python. I
have try the 'romantest.py' of the "Dive in Python" book and I get the
next problem:
Traceback (most recent call last):
File "romantest.py", line 153, in ?
unittest.main()
File "/usr/lib/python2.3/unittest
Hello,
I use MoinMoin (a python wiki) desktop edition to collect and sort code
snippets and classes.
It runs standalone (comes with its own webserver) and does the job just
fine.
regards
dc
--
http://mail.python.org/mailman/listinfo/python-list
On 6/8/05, Nader Emami <[EMAIL PROTECTED]> wrote:
> L.S.,
>
> I would like to learn how does work the "unit test" concept in Python. I
> have try the 'romantest.py' of the "Dive in Python" book and I get the
> next problem:
>
> Traceback (most recent call last):
>File "romantest.py", line 153
Hi!
Em Quarta 08 Junho 2005 09:38, Guyon Morée escreveu:
> Don't know if this is what you mean, but:
>
> Binary to decimal:
> >>> bin_num = '11011'
> >>> int(bin_num, 2)
>
> 267
Dont know this way of using it. Thanks for the teachings :)
See ya !
--
Douglas Soares de Andrade
http://douglas
Nader Emami wrote:
>File "/usr/lib/python2.3/unittest.py", line 657, in run
> startTime = time.time()
> AttributeError: 'module' object has no attribute 'time'
I suspect that you have a module named "time.py" that is being
imported instead of the standard library's time module. Do this
rbt wrote:
> data = ['0', 'a', '1', 'b', '2', 'c',\
> '3', 'd', '4', 'e', '5', 'f',\
> '6', 'g', '7', 'h', '8', 'i',\
> '9', 'j', '~', '!', '@', '#',\
> '$', '%', '^', '&', '*', ';']
>
Note that the backsl
Hello,
I have the following code:
def foo(x,y):
pass
How can I query the function object foo to know the number of parameters
it expects. I can find it is a function using callable(f), I can find
some information (listed by dir(foo)) such as the name of the
function,etc.. but nowhere
On Wed, 8 Jun 2005 00:52:06 -0400,
Lee Cullens <[EMAIL PROTECTED]> wrote:
> ... My thinking is that class/subclass method instances would replace
> the recursive functions approach, but have as yet not formed the
> coding in my mind.
I don't remember the original post, but methods and recursion a
Hi.
The reason is simple enough. I plan to do some academic research
related to computer algebra for which i need some package which i can
call as a library. Since i am not going to use the package
myself..(rather my program will)..it will be helpful to have a python
package since i wanted to writ
Use the inspect module like:
>>> def tf( a, b, c, *arguments, **keywordArguments ):
... print "tf"
...
>>> import inspect
>>> inspect.getargspec( tf )
(['a', 'b', 'c'], 'arguments', 'keywordArguments', None)
>>>
Xavier Décoret schrieb:
> Hello,
>
> I have the following code:
>
> def foo(x,
no takers?
--
http://mail.python.org/mailman/listinfo/python-list
Xavier Décoret wrote:
> Hello,
>
> I have the following code:
>
> def foo(x,y):
> pass
>
> How can I query the function object foo to know the number of parameters
> it expects. I can find it is a function using callable(f), I can find
> some information (listed by dir(foo)) such as the n
Kent Johnson a écrit :
> Xavier Décoret wrote:
>
>> Hello,
>>
>> I have the following code:
>>
>> def foo(x,y):
>> pass
>>
>> How can I query the function object foo to know the number of
>> parameters it expects. I can find it is a function using callable(f),
>> I can find some information
> "Fred" == Fred Pacquier <[EMAIL PROTECTED]> writes:
Fred> Same here : thanks for letting us get away with being
Fred> lazy(er) ! :-)
Ditto. As someone who's done a couple of p-url's, I can say it's quite
a bit of work to find the interesting tidbits from the depths of
500-post threa
Hello all
I need to build a program that check the sintax in a line:
SIZE (1 BYTE)
and change the correct number of bytes to the following format:
SIZE(1)
without the "BYTE" word. But, the number of bytes can be over 3 digits,
and the entitie can't have spaces but the correct number of bytes i
Daniel wrote:
> Hello all
>
> I need to build a program that check the sintax in a line:
>
> SIZE (1 BYTE)
>
> and change the correct number of bytes to the following format:
>
> SIZE(1)
>
> without the "BYTE" word. But, the number of bytes can be over 3 digits,
> and the entitie can't have sp
Hi !
Im a python begginer, but...
> form = cgi.FieldStorage()
> DataRecord = form['DataTime'].value
> Customer = form['CustName'].value # should be automatically filled in
>
Can you try this ?
print "Content-Type: text/html\n\n"
print
WorkingFile =
open("/var/www/stretch/web_root/SidCrops/"+C
Hello,
I use windows notepad editor to write text.
For example I write (in d:\myfile.txt):
Helo
World
If I open it with python:
FName = open(d:\myfile.txt,'r')
h = FName.readlines()
print h
I get h : ['Helo\n', 'World']
I thought notepad use \r\n to to end the line.
What's wrong with it
ThanThanks for the reply Dan,Yes, my take was flawed, and a number of individuals on the Tutor list pointed me in the right direction. Thanks again,Lee CFrom: Dan Sommers <[EMAIL PROTECTED]>Date: June 8, 2005 8:22:39 AM EDTTo: python-list@python.orgSubject: Re: OO re-factoring (was Pythonese/Effic
[EMAIL PROTECTED] wrote:
> Hello,
>
> I use windows notepad editor to write text.
>
> For example I write (in d:\myfile.txt):
> Helo
> World
>
> If I open it with python:
> FName = open(d:\myfile.txt,'r')
> h = FName.readlines()
> print h
>
> I get h : ['Helo\n', 'World']
>
> I thought n
On 8 Jun 2005 06:24:05 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I use windows notepad editor to write text.
>
> For example I write (in d:\myfile.txt):
> Helo
> World
>
> If I open it with python:
> FName = open(d:\myfile.txt,'r')
> h = FName.readlines()
> print h
>
The next meeting of BayPIGgies will be Thurs, June 9 at 7:30pm at
IronPort.
Drew Perttula will discuss his Python-based lighting system controller.
The system includes a music player, a variety of programs to design and
time light cues, and drivers for hardware that outputs the DMX protocol
used b
Hello thanks everyone,
It means in windows we should use 'wb' to write and 'rb' to read ?
Am I right?
pujo
--
http://mail.python.org/mailman/listinfo/python-list
On 8 Jun 2005 06:44:40 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> It means in windows we should use 'wb' to write and 'rb' to read ?
> Am I right?
It depends what you are trying to do with the file. If you are
processing it as a text file, open it as a text file, and all will be
well:
praba kar wrote:
> Dear All,
>
> I have one doubt. Is there python.ini
> file like php.ini in Php?
There is no such thing in Python. Python is a programming
language. It doesn't try to be an operating system or a web
server. There are a number of web application toolkits
written in Python,
The names are at least platform specific, see below the names of the
timezones on my Windows NT 4 box
*** Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit
(Intel)] on win32
*** Type "help", "copyright", "credits" or "license" for more
information.
*** >>> import time
*** >>> print time
Hi,
Does anyone know the reasoning or pros/cons for either (in a
multi-threaded C++ app):
- creating many sub-interpreters (Py_NewInterpreter) with a thread
state each
Or
- creating one interpreter with many thread states (PyThreadState_New)
When do I choose one approach over the other and w
[EMAIL PROTECTED] wrote:
> It means in windows we should use 'wb' to write and 'rb' to read ?
> Am I right?
There is a conceptual difference between "text" files and other files
(which are lumped under the label "binary").
Binary files have any kind of data in them (bytes from 0 to 255) and no
Hello all.
We don't have admin privs on our Windows boxes, but I'd like to be able
to install a package built using distutils. I was able to install
Python without admin, but when I tried to run the installer for this
package I'm trying to install, I get a message saying that I need admin
privs.
[EMAIL PROTECTED] wrote:
> Hello all.
>
> We don't have admin privs on our Windows boxes, but I'd like to be able
> to install a package built using distutils. I was able to install
> Python without admin, but when I tried to run the installer for this
> package I'm trying to install, I get a mes
Am Wed, 08 Jun 2005 01:11:50 -0700 schrieb [EMAIL PROTECTED]:
> Hello,
>
> I have two modules (file1.py and file2.py)
> Is that ok in python (without any weird implication) if my module
> import each other. I mean in module file1.py there exist command import
> file2 and in module file2.py there
Hello All,
Thanks for the response.
I use mysql and find something strange lately while load text file to
my database table using LINES TERMINATED BY '\r\n',
And I found that mysql think I have '\r\r\n'. this is happened because
in one of my code I use 'w' to write element of string + '\r\n'. no
yes, i agree, on my WinXP it gives another values.
but my question is how to setup the python (or OS) to make it gives the same
results when i call
time.strptime("2005-06-07 15:07:12", "%Y-%m-%d %H:%M:%S")
on various servers (and maybe with various OS)?
for now, i can't get it even with the same
Rahul wrote:
>
> Hi.
> The reason is simple enough. I plan to do some academic research
> related to computer algebra for which i need some package which i can
> call as a library. Since i am not going to use the package
> myself..(rather my program will)..it will be helpful to have a python
> pa
Thanks for the feedback! It is a very good idea to use dictionaries. I
will try to implemented it this way.
Thanks,
Kris
Andrea Griffini schreef:
> On 7 Jun 2005 12:14:45 -0700, [EMAIL PROTECTED] wrote:
>
> >I am writing a Python program that needs to read XML files and contruct
> >a tree objec
Michael Hoffman wrote:
> Fernando Perez wrote:
>
> > I am trying to do a run-time modification of a function's closure,
> > where I want to modify the value of one of the variables in the closure.
>
> Out of curiosity, why?
Oh, I was just trying to play a little trick inside a tight loop whe
I'm creating a python package foo.
What is intended use for __init__.py files?
Well, I found this: http://www.python.org/doc/essays/packages.html
>From what I can gather it is for initialization of the package when doing an
import, but I would really like to see an example or situation that makes
Hi !
> Circular import does not work on module level, but you can
> import the module in a method:
>
> file1.py:
> import file2
>
>
>
> file2.py:
> # import file1 # Does not work!
> def foo():
> import file1 # Does work
Cool idea !
It works on local namespaces, wich dont cause trouble t
Hi, all !!!
How i can made Popup ListBox ?
Example in Demo is not working...
Have anybody examples ?
--
http://mail.python.org/mailman/listinfo/python-list
Stephen A. Silen
Polaroid Corporation
1265 Main Street - Bldg. W3-3
Waltham, Massachusetts 02451
U.S.A.
tel: 781-386-8410
fax: 781-833-8410
--
This transmission is intended only for use by the addressee(s) named herein and may contain information that is proprietary, confidential and/or l
> Is there a way, to find out all references to the QMainWindow or its
> hosted QTable, for having a mechanism to destroy them?
>
Yes, of coarse, the docs are your friend :)
QObject::children()
QObject::removeChild()
QObject::parent()
To find all the children for an instance you
can create a lo
On Wed, 08 Jun 2005 08:35:39 -0400, Kent Johnson wrote:
>> How can I query the function object foo to know the number of parameters
>> it expects. I can find it is a function using callable(f), I can find
>> some information (listed by dir(foo)) such as the name of the
>> function,etc.. but no
Ara.T.Howard wrote:
>
> hi-
>
> i know nada about python so please forgive me if this is way off base.
> i'm trying to fix a bug in MoinMoin whereby
>
>WordsWithTwoCapsInARowLike
> ^^
> ^^
> ^^
>
> do not become WikiNames. th
>>Circular import does not work on module level, but you can
>>import the module in a method:
>>
>>file1.py:
>>import file2
>>
>>
>>
>>file2.py:
>># import file1 # Does not work!
>>def foo():
>>import file1 # Does work
>
>
> Cool idea !
>
> It works on local namespaces, wich dont cause t
Hi there,
I am trying to create a window that appears one label1="First Message" and after
of 3,4 seconds I would like to append another label in the same window
label2="Second Message" bellow of the first label, but I can only show both
labels in the same time, and not in diferent time in the same
That's the only way out I found with some module import problem using code
generated by wxDesigner.
Josef Meile wrote:
>>>Circular import does not work on module level, but you can
>>>import the module in a method:
>>>
>>>file1.py:
>>>import file2
>>>
>>>
>>>
>>>file2.py:
>>># import file1 #
Hi All,
PyDev - Python IDE (Python Development Enviroment for Eclipse) version
0.9.4 has just been released.
Check the homepage (http://pydev.sourceforge.net/) for more details.
Release Highlights:
- New PYTHONPATH configuration (for the whole ambient), used for running
your files, PyLint, co
> Em Quarta 08 Junho 2005 09:38, Guyon Morée escreveu:
> > Don't know if this is what you mean, but:
> >
> > Binary to decimal:
> > >>> bin_num = '11011'
> > >>> int(bin_num, 2)
> >
> > 267
>
> Dont know this way of using it. Thanks for the teachings :)
>
> See ya !
>>> def binary(i):
..
Hi Lukasz,
> Yes, I'm traing to escape from Zope-land, to be more clarify I want to
> migrate from Plone to PHP Application, which uses MySQL database
> engine, so I have to move all data from ZODB to MySQL. I suppose that
> python script shouldn`t be so complex. I need just iterate ZODB and
> wri
Fernando Perez <[EMAIL PROTECTED]> writes:
> Rahul wrote:
>
>> Hi.
>> The reason is simple enough. I plan to do some academic research
>> related to computer algebra for which i need some package which i can
>> call as a library. Since i am not going to use the package
>> myself..(rather my progra
I didn't build the installer, someone else did. I did get the source
and installed cygwin to see if I could recreate it; at least build the
library, but when I tried to do a build_ext I got a message saying I
needed to have the .NET SDK installed.
--
http://mail.python.org/mailman/listinfo/python
Can anybody please give me a decent justification for this:
class A(object):
def __init__(self, a):
self.a = a
def __eq__(self, other):
return self.a == other.a
s = A(3)
t = A(3)
>>> print s == t
True
>>> print s != t
True
I just spent a long, long time tracking down a
On Tue, 07 Jun 2005 09:41:16 -0400, Peter Hansen wrote:
On Tue, 07 Jun 2005 06:28:33 -0700, Prashanth Ellina wrote:
> Hi,
>
> I have used the low-level thread module to write a multi-threaded app.
>
> tid = thread.start_new_thread(process, ())
> tid is an integer thread ident.
>
> the thread
On 6/8/05, Fernando Perez <[EMAIL PROTECTED]> wrote:
> Rahul wrote:
>
> >
> > Hi.
> > The reason is simple enough. I plan to do some academic research
> > related to computer algebra for which i need some package which i can
> > call as a library. Since i am not going to use the package
> > myself
Jordan Rastrick wrote:
> Surely the != operator should, if no __ne__ method is present for
> either object, check to see if an __eq__ method is defined, and if so,
> return its negation?
>
> Actually, that brings me to a wider question - why does __ne__ exist at
> all? Surely its completely incons
Bill Mill wrote:
> On 6/8/05, Fernando Perez <[EMAIL PROTECTED]> wrote:
>> Rahul wrote:
>>
>> >
>> > Hi.
>> > The reason is simple enough. I plan to do some academic research
>> > related to computer algebra for which i need some package which i can
>> > call as a library. Since i am not going to
How do i fill 1 byte and 4 bytes in a single array? This array contains
packet information.
Python code...
from array import *
size = 526
pData = array("B", '\0'* 526)
# Destination MAC address
destAddress =
for i in range(0, len(destAddress), 2):
pData[i/2] = int(destAddress[i:
You probably want to look at using struct.pack. That will allow you
to back heterogenious groups of data into a string that can be saved
to disk or sent over the network. It also does a really good job of
taking care of byte order for you(if you tell it to).
-Chris
On 8 Jun 2005 10:40:43 -0700,
Le Wed, 08 Jun 2005 10:34:38 -0500, Gary Wilson Jr a écrit :
> I'm creating a python package foo.
>
> What is intended use for __init__.py files?
> Well, I found this: http://www.python.org/doc/essays/packages.html
>>From what I can gather it is for initialization of the package when doing an
> im
Hi,
I have to do some data manipulation that needs to be fast. I had a
generator approach (that was faster than a list approch) which was
taking approximately 5 seconds to run both encode and decode.
I have done a conversion to pyrex and have gotten it down to about 2
seconds to run both encode
Jordan Rastrick wrote:
> I just spent a long, long time tracking down a bug in a program that
> results from this behaviour.
>
> Surely the != operator should, if no __ne__ method is present for
> either object, check to see if an __eq__ method is defined, and if so,
> return its negation?
>
> Act
No, why should Python assume that if you use != without supplying a
__ne__ that this is what you want? Without direction it will compare
the two objects which is the default behavior.
So, s != t is True because the ids of the two objects are different.
The same applies to, for example s > t and s
How do i make a child window "active" like the root window?
from Tkinter import *
def open_child():
c = Toplevel(root)
c.title("Child window")
c.geometry('200x160+230+130')
Label(c, text="Child window").grid()
root = Tk()
root.title("root window")
Button(root, text="Open child
Mahesh wrote:
> No, why should Python assume that if you use != without supplying a
> __ne__ that this is what you want?
Because every single time I've used __ne__, that *is* what I want.
> Without direction it will compare
> the two objects which is the default behavior.
It's also the default b
On 6/8/05, Chris Lambacher <[EMAIL PROTECTED]> wrote:
> My question is, is there a better way to
> allocate the memory for the array.array object than:
> a = array.array('B', [0] * (pixels * 2))
cdef unsigned char *buffer
temp_string = PyString_FromStringAndSize(NULL, length)
buffer = PyStr
As a hobby project, I'm writing a MUD client -- this scratches an itch,
and is also a good excuse to become familiar with the Python language.
I have a conceptual handle on most of the implementation, but the
biggest unknown for me is the seemingly trivial matter of text display.
My first requi
Well, I don't really want the objects to be comparable. In fact, to
quote that PEP you linked:
An additional motivation is that frequently, types don't have a
natural ordering, but still need to be compared for equality.
Currently such a type *must* implement comparison and thus
The memory is not temporary, I am passing it out as an array, thus the
malloc/free route will require double allocation(once for malloc/free,
once for array.array). I am not using string because when I tried to
pass the data in as string, pyrex complained about the conversion.
However, I could pr
Fredrik Lundh wrote:
> for a number of situations where __ne__ cannot be derived from __eq__,
> see:
>
> http://www.python.org/peps/pep-0207.html
That "number" being "one"?
I can see only one comment that seems to describe that situation, where
it refers to "IEEE 754 floating point numbers
Kent Johnson wrote:
> Terry Reedy wrote:
>
>> "Kent Johnson" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>>
>>> Terry Reedy wrote:
>>>
"kosuke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> man python ---
>
> COMMAND LINE OPTIONS
"Ara.T.Howard" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> i'm trying to fix a bug in MoinMoin whereby
A 'bug' is a discrepancy between promise (specification) and perfomance
(implementation). Have you really found such -- does MoinMoin not follow
the Wiki standard -- or are
Just because a behaviour is documented, doesn't mean its not counter
intutitive, potentially confusing, and unnessecary.
I have spent a fair amount of time reading the Python docs. I have not
yet memorised them. I may have read this particular section of the
reference manual, or I may have not, I
I replaced:
a = array.array('B', , [0] * (pixels * 2))
with:
a = PyString_FromStringAndSize(NULL, pixels * 2)
and got:
C:\work\testing\plink_o_ip>python ycbycr.py
Traceback (most recent call last):
File "ycbycr.py", line 62, in ?
ycbycr = image2ycbycr(im)
File "ycbycr.py", line 38, in imag
Jordan Rastrick wrote:
> Unless someone can explain some sort of problem that arises from having
> != take advantage of a __eq__ method where present, I'd suggest that it
> should do so in Python 2.5.
If you're serious about this proposal, please formalize it in a PEP.
Things to specify:
How ex
You are opening up the file open dialog when you are trying to do this
right?
If so you will need to use winguiauto. To find the dialog and the use
it to enter the info you want.
I included some code that shows how to do this. One other problem you
are going to have is that these dialogs are call
"Jordan Rastrick" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Well, I don't really want the objects to be comparable. In fact, to
> quote that PEP you linked:
>
> An additional motivation is that frequently, types don't have a
> natural ordering, but still need to be co
And we have a winner.
For reference the final code is below.
Thanks for your help,
-Chris
import array
cdef extern from "Python.h":
int PyObject_AsWriteBuffer(object obj, void **buffer, int *buffer_len)
int PyObject_AsReadBuffer(object obj, void **buffer, int *buffer_len)
object PySt
I'd suggest the only nessecary change is, if objects a,b both define
__eq__ and not __ne__, then a != b should return not (a == b)
If a class defines __ne__ but not __eq__, well that seems pretty
perverse to me. I don't especially care one way or another how thats
resolved to be honest.
The order
Jordan,
On 8 Jun 2005 11:44:43 -0700, Jordan Rastrick
<[EMAIL PROTECTED]> wrote:
> But I explicitly provided a method to test equality. And look at the
> plain english meaning of the term "Not equals" I think its pretty
> reasonable
Indeed. Furthermore, it seems quite silly that these would be di
1 - 100 of 199 matches
Mail list logo