mep wrote:
Any free UML modelling tools that generate python code?
I've been working on Gaphor (htp://gaphor.sourceforge.net) for the past
few years.
Gaphor is an UML modeling tool written in Python. It is completely UML
2.0 compliant (in fact the data model is UML 2.0).
Gaphor has currently s
fuego <[EMAIL PROTECTED]> wrote:
> My company (http://primedia.com/divisions/businessinformation/) has
> two job openings that we're having a heckuva time filling. We've
> posted at Monster, Dice, jobs.perl.org and python.jobmart.com. Can
> anyone advise other job boards that might be helpful?
On Wed, 2004-12-01 at 06:59, Mark Doberenz wrote:
> pyRunFile
> =PyRun_File(pythonFileP,filename,Py_file_input,globals,globals);
> runMethod = PyObject_CallMethod(pyRunFile,"proc1","s","Blah");
> --- It's crashing when I try to do the PyObject_CallMethod.
(I'm going to assume 'c
Jp Calderone wrote:
One thing I notice with both of these versions:
>>> Hash(self=10)
Traceback (most recent call last):
File "", line 1, in ?
TypeError: __init__() got multiple values for keyword argument 'self'
Good call. I've adjusted my methods to look like:
def __init_
On Wed, 2004-12-01 at 00:15, Thomas Heller wrote:
> To answer the original question: To create class methods in C code, you
> use the METH_CLASS flag in the PyMethodDef structure. Supported in
> Python 2.3 and above, in 2.2 it is more complicated. If needed, I can
> post a snippet for 2.2 as wel
On Tue, 2004-11-30 at 20:39, Nick Coghlan wrote:
> You probably want to look at staticmethod(). (classmethod() is slightly
> different, and probably not what you want. In fact, classmethod() is
> practically
> *never* what you want. Guido wrote it himself, and even he ended up not using
> it)
"Alex Genkin" <[EMAIL PROTECTED]> wrote:
>Hi Python experts!
>
>With ver 22, I used to be able to invoke Python script by simply typing .py
>file
>name on the command line.
>With ver 23 it no longer works. If set up Windows file association, then the
>script gets invoked, but command line argumen
My company (http://primedia.com/divisions/businessinformation/) has
two job openings that we're having a heckuva time filling. We've
posted at Monster, Dice, jobs.perl.org and python.jobmart.com. Can
anyone advise other job boards that might be helpful? Also, feel free
to have a look at the job
Don't forget
'''
This is a comment
'''
Which you'll need to use if you use """ for docstrings.
Byron wrote:
> """
> Yes, this is generally how it is done in python.
> """
--
http://mail.python.org/mailman/listinfo/python-list
I did this a while back, and I can't remember exactly. Therefore, I may only
be able to give you a push in the right direction until someone else can
answer it fully.
However, I think you have to force the db into the py2exe compile. I think
it's something like this:
--force-imports dbhash
Tr
Hi Python experts!
With ver 22, I used to be able to invoke Python script by simply typing .py file
name on the command line.
With ver 23 it no longer works. If set up Windows file association, then the
script gets invoked, but command line arguments disappear.
Any idea what to do?
Thank you,
Ale
Python 2.3 placed a registry key under:
'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Python2.3'
When this key was removed, Python no longer appeared in the Windows 'Add
Remove Programs' list. We would remove this registry key to keep users
from uninstalling the software
Hello,
Im trying to compile a script with py2exe. The pickle module is causing the
program to give an error.
Traceback (most recent call last):
File "SETIstat.pyw", line 330, in ?
File "SETIstat.pyw", line 84, in start_up
File "SETIstat.pyw", line 79, in config_load
File "pickle.pyc", lin
On Tue, 30 Nov 2004 17:52:33 -0500, =?iso-8859-1?Q?Fran=E7ois?= Pinard <[EMAIL
PROTECTED]> wrote:
>[Scott David Daniels]
>
> > You can simplify this:
> > class Hash(object):
> > def __init__(self, **kwargs):
> > for key,value in kwargs.items():
> > setattr(self, key, value
ActivePython 2.4.0 (final) is now available from:
http://www.ActiveState.com/Products/ActivePython
This is a release candidate matching the recently tagged core Python
2.4.0. Builds for Linux, Solaris and Windows are available.
We would welcome any and all feedback to:
[EMAIL PROTECTED]
Ple
At 10:50 PM 1/31/2004 +0100, Nuff Said wrote:
On Sat, 31 Jan 2004 11:23:42 -0800, Bob=Moore wrote:
If anyone is interested, I used the following non-threaded code; I tried
pipedream.py, but had apparent timing issues with the threads that I
couldn't clear up.
I usually use wxPython. An *NIX versi
Chang LI wrote:
I tried to launch "python.exe test.py" in another program. After the
launch the console was showed and exited on Windows. I want the
console stay there. Is there a Python statement to wait an event loop
like Tcl's "after forever"?
If you need to keep a cmd window open maybe you c
Thank you Josiah Carlson for your answers. If certain parts of my
messages upset you, then you can surely skip those parts.
(Now I am reading a big good manual: "Learning Python, II ed.", so in
the future I hope to write better things about this language.)
>That is simple and clean?<
Well, it's
I managed to get steps 2 and 4 fixed (grabbing and putting the
pixels). I converted some code found at
http://effbot.org/zone/pil-numpy.htm written by Fredrick Lundh.
Currently, it only works for RBG bitmaps.
I'm certain that there are better ways to do some of this, but it's
pretty zippy as it
Is there a PyArg_ParseKeywords along the lines of
PyArg_ParseTupleAndKeywords? I want to parse only the keywords,
ignoring the arguments. Currently I do this with something like:
const char *format = "O:min";
static char *kwlist[] = {"key", 0};
PyObject *empty_args = Py_BuildValue("()");
if (!
apm wrote:
Marc Laukien <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
100% of the Ice source code has been developed by ZeroC employees.
Fixes, bug reports, and enhancement requests have come in from Open
Source developers around the world, as can be seen from the forums on
the
--- I'm trying to
run a method in a python file called pyFile.py...
class dc:
def
proc1(var1):
print
"Proc1 was run:",var1
def
main():
pass
if __name__ ==
"__main__":
main()
--- and here's my c
program:
int main(){
printf("Hello
World!\n");
Diez B. Roggisch wrote:
> > I tried to launch "python.exe test.py" in another program. After the
> > launch the console was showed and exited on Windows. I want the
> > console stay there. Is there a Python statement to wait an
> event loop
> > like Tcl's "after forever"?
>
...
> Apart from that,
> I tried to launch "python.exe test.py" in another program. After the
> launch the console was showed and exited on Windows. I want the
> console stay there. Is there a Python statement to wait an event loop
> like Tcl's "after forever"?
I'm a happy linux user who is always amazed by such things
[Scott David Daniels]
> You can simplify this:
> class Hash(object):
> def __init__(self, **kwargs):
> for key,value in kwargs.items():
> setattr(self, key, value)
Might it be:
def __init__(self, **kwargs):
self.__dict__.update(kwargs)
--
François Pinard h
> I believe whichever road you take, ZeroC is going to find itself in
> problems. If ZeroC merges the changes made by this/these person(s),
> how can ZeroC now sell it under a commercial license, as closed source
> (violation of GPL)? If you refuse to merge the changes, you have just
> given them
Marc Laukien <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> 100% of the Ice source code has been developed by ZeroC employees.
Fixes, bug reports, and enhancement requests have come in from Open
Source developers around the world, as can be seen from the forums on
the ZeroC web
On Tue, 30 Nov 2004 21:54:46 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote:
[...]
>
>If there's an overall why for doing it at all, why not just iterate through
>keys of interest? I.e., (untested)
>
> dict( (key, row[key]) for key in cols )
>
Sorry Anton, I didn't see your post. Newsfeed delays seem
Grant Edwards wrote:
On 2004-11-29, Peter Maas <[EMAIL PROTECTED]> wrote:
If the "reverse engineering" argument boils down to "protecting source
doesn't make sense" then why does Microsoft try so hard to protect
its sources?
To avoid embarassment.
+1 QOTW (Everyone else was doing it, I just wanted
Brad Tilley wrote:
When memory usage is a concern, is it better to do:
from X import Y
or
import X
Also, is there a way to load and unload modules as they are needed. I
have some scripts that sleep for extended periods during a while loop
and I need to be as memory friendly as possible. I can pos
Peter Hansen wrote:
Gustavo CÃrdova Avila wrote:
Peter Maas wrote:
Grant Edwards schrieb:
On 2004-11-29, Peter Maas <[EMAIL PROTECTED]> wrote:
If the "reverse engineering" argument boils down to "protecting source
doesn't make sense" then why does Microsoft try so hard to protect
its sources?
To
> Daniel Dittmar wrote:
> >- that suggest a different solution; like declarations on local
> >variables that say "call destructor when object goes out of scope"
I did not follow all of this thread (that precise subject reoccurs
once in a while, with some regularity), but I merely would like to
po
I tried to launch "python.exe test.py" in another program. After the
launch the console was showed and exited on Windows. I want the
console stay there. Is there a Python statement to wait an event loop
like Tcl's "after forever"?
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 30 Nov 2004 15:20:19 +0100, Stefan Behnel <[EMAIL PROTECTED]> wrote:
>
>
>shark schrieb:
>> row = {"fname" : "Frank", "lname" : "Jones", "city" : "Hoboken", "state" :
>> "Alaska"}
>> cols = ("city", "state")
>>
>> Is there a best-practices way to ask for an object containing only the keys
On Mon, 29 Nov 2004 20:51:50 GMT, "drs"
<[EMAIL PROTECTED]> wrote:
>Is there any way to generate random numbers based on arbitrary real valued
>functions? I am looking for something like random.gauss() but with natural
>log and exponential functions.
Try with CRNG, it may have what you need, or b
Dave Merrill wrote:
Should have been more specific.
As I recall, after I installed 2.4rc1 I installed the latest versions of
wxWindows and SPE IDE into it. The 2.4 copy of SPE died silently when
started, which I can accept as a incompatible versions.
What was strange to me was that at that point, t
Chang LI wrote:
Is there Windows 64-bit edition available?
Yes:
http://www.python.org/ftp/python/2.4/python-2.4.ia64.msi
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I can't help you directly, but I am also finding im.putpixel to be
extremely slow - as the docs recommend, can you try using the
pixel-placing method of Draw? This is what I am going to try for my
application (resampling algorithms).
Thx
Caleb
On 30 Nov 2004 11:18:40 -0800, irond_will <[
Scott David Daniels wrote:
Nick Craig-Wood wrote:
class Hash:
def __init__(self, **kwargs):
for key,value in kwargs.items():
setattr(self, key, value)
def __getitem__(self, x):
return getattr(self, x)
def __setitem__(self, x, y):
setattr(self, x, y)
Morten Lied Johansen wrote:
On Tue, 30 Nov 2004 23:31:34 +1100, Anthony Baxter wrote:
On behalf of the Python development team and the Python community, I'm
happy to announce the release of Python 2.4.
Question from a noob:
I have several third party python-modules installed on my current
Windowss
Marc Boeren wrote:
Well, you could fake it by doing
"""
block of code here is commented out
"""
"""
Yes, this is generally how it is done in python.
"""
Byron
---
--
http://mail.python.org/mailman/listinfo/python-list
Consider the *hypothetical* situation where an individual or a group
of people re-write large portions of Ice. This could enhance the
value of Ice (obviously to some, if not all), or this could conflict
with the ideologies of Ice (again, not in everyone's point of view).
How will ZeroC react to t
Damjan <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> > MySQLdb is working fine at command line, however when I tried to use
> > it with mod_python, it give me a "server not initialized" error.
>
> Maybe its this problem?
> http://www.modpython.org/FAQ/faqw.py?req=show&file=faq
John Roth wrote:
> It's not an error. As one of the first responders said, check
> the language definition. That defines both 'in' and 'is'
> as equality operators, and defines exactly what a chain
> of equality operators means.
>
> In this case, it means:
>
> (0 in l) and (l is False)
>
> The
Brad Tilley <[EMAIL PROTECTED]> writes:
> When memory usage is a concern, is it better to do:
>
> from X import Y
>
> or
>
> import X
Depending on "Y", the latter can technically use less memory, but it's
likely to be fairly small and depends on how many symbols from that
module you want to ha
"Paul Robson" <[EMAIL PROTECTED]> wrote in
message news:[EMAIL PROTECTED]
Sylvain Thenault wrote:
l = []
0 in (l is False)
(l is False) is not a tuple or list, it's a boolean value.
Traceback (most recent call last):
File "", line 1, in ?
TypeError: iterable argument required
(0 in l) is False
Tru
On Tue, 30 Nov 2004 23:31:34 +1100, Anthony Baxter wrote:
>
> On behalf of the Python development team and the Python community, I'm
> happy to announce the release of Python 2.4.
Question from a noob:
I have several third party python-modules installed on my current
Windowssystem, and I was wond
"Caleb Hattingh" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL
PROTECTED]>...
> thx, I already have and use PythonForDelphi (and am on the mailing list).
>
> It works very well indeed, my impression is that Python-Delphi connection
> is even easier than Python-C integration (e.g. via SWIG,
Sylvain Thenault wrote:
Hi there !
Can someone explain me the following behaviour ?
l = []
0 in (l is False)
Traceback (most recent call last):
File "", line 1, in ?
TypeError: iterable argument required
(0 in l) is False
True
0 in l is False
False
This is really obscur to me...
A suggestion:
Wh
Anthony Baxter <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> On behalf of the Python development team and the Python community, I'm
> happy to announce the release of Python 2.4.
>
Is there Windows 64-bit edition available?
--
http://mail.python.org/mailman/listinfo/python-l
Russ wrote:
My sysadmin recently installed 2.4c1 on our network. Should we now
install 2.4, or is it the same as 2.4c1? Thanks.
See
http://www.python.org/2.4/NEWS.html
-Peter
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
To be, this 'patent' is so absurd that I initially had difficulty believing
to to be real and not a joke.
So did I - a trojan horse like Sokal's in 1996, but substituting
Social Texts --> Patent Office
Social Scientists --> Patent Lawyers
Physicists --> Software Engineers
--
htt
"km" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi all,
> was going thru the new features introduced into python2.4 version.
> i was stuck with 'decorators' - can someone explain me the need of such a
thing called decorators ?
> tia
> KM
Here are some example on the Python Wik
Wow, that was pretty clueless of me...right there on the *next* page of
the manual (I thought "im.paste(image, box)" and "im.paste(image, color)"
were the general forms for "paste", apparently didn't look further)
thx
Caleb
On 29 Nov 2004 22:17:36 -0800, Tom Hanks <[EMAIL PROTECTED]>
wrote:
Steven Bethard wrote:
Thanks for the pointers. What's the "doco gadget" you're talking about?
I conclude from this question that you are not using a Windows python.
I suspect, therefore, the answer is Gilda Ratner's " Never mind."
--Scott David Daniels
[EMAIL PROTECTED]
--
http://mail.python.o
Marc Laukien <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>...
> >
(...)
> > Am interested to know, what "percentage" (*) of the code in your CVS
> > repository has been contributed by people other than the group
> > mentioned in the quote above? Obviously, you do not allow anonymo
My sysadmin recently installed 2.4c1 on our network. Should we now
install 2.4, or is it the same as 2.4c1? Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know how I might directly access PIL's bicubic
interpolator? I have an arbitrary array of points for which I need to
find interpolated color values. Unfortunately, I have no clue how to
acceess the bicubic filter in the PIL module, and my NumArray solution
is very slow and clunky.
I'
Nick Craig-Wood wrote:
class Hash:
def __init__(self, **kwargs):
for key,value in kwargs.items():
setattr(self, key, value)
def __getitem__(self, x):
return getattr(self, x)
def __setitem__(self, x, y):
setattr(self, x, y)
You can simplify this:
class
Tim Peters wrote:
[Peter Hansen]
I think Skip was intending that the format string be mandatory,
to avoid such ambiguity.
It's still a bottomless pit -- ask Brett, who implemented the Python
strptime .
True, I did overlook timezones at the time.
On the other hand, that's because *my* use cases
km <[EMAIL PROTECTED]> wrote:
>
> Hi all,
> was going thru the new features introduced into python2.4 version.
> i was stuck with 'decorators' - can someone explain me the need of such a
> thing called decorators ?
Decorators are not 'needed'. They are a convenience.
Among the things that
>> if False:
>>
>> (indented) block of code here is commented out
>> I've no idea how efficient it is compared to triple-quoted strings or
>> line by line comments.
Gustavo> Actually, it's infinitly [sp?] more defficient (contrary of
Gustavo> efficient?) than triple-
Stefan Behnel wrote:
shark schrieb:
row = {"fname" : "Frank", "lname" : "Jones", "city" : "Hoboken",
"state" :
"Alaska"}
cols = ("city", "state")
Is there a best-practices way to ask for an object containing only the
keys
named in cols out of row? In other words, to get this:
{"city" : "Hoboken
Gustavo Córdova Avila wrote in news:mailman.6944.1101838678.5135.python-
[EMAIL PROTECTED] in comp.lang.python:
> Actually, it's infinitly [sp?] more defficient
> (contrary of efficient?) than triple-quoted strings
> or line-by-line comments, because those two never
> make it to execution stage, b
[EMAIL PROTECTED] (bearophile) wrote:
>
> Thank you for the comments and answers, and sorry for my answering
> delay...
>
> Josiah Carlson:
>
> >Decorators can do this without additional syntax. Think @accepts and
> @returns.<
>
> The purpose of those pre-post is to write something simile and
Rob Williscroft wrote:
Riko Wichmann wrote in news:[EMAIL PROTECTED] in
comp.lang.python:
Dear all,
is there a way in Python to comment out blocks of code without putting a
# in front of each line? Somethings like C's
/*
block of code here is commented out
*/
if False:
(indented) block of
Steven Bethard wrote:
So I've been playing around with trying to add a keyword argument to min
and max that works similarly to the one for sorted. It wasn't too hard
actually, but it does raise a few questions about proper handling of
keyword arguments.
Sorry to reply to my own post, but I thou
Riko Wichmann wrote in news:[EMAIL PROTECTED] in
comp.lang.python:
> Dear all,
>
> is there a way in Python to comment out blocks of code without putting a
> # in front of each line? Somethings like C's
>
> /*
> block of code here is commented out
> */
>
if False:
(indented) block of
Jp Calderone wrote:
Why not use apt-get?
well, I am recommending using apt-get but within entirely different and
separate namespace for modules. But on second thought,, it might not be
necessary to separate the namespace. If you just need to add the
repository for Python modules to the apt
Hi all,
was going thru the new features introduced into python2.4 version.
i was stuck with 'decorators' - can someone explain me the need of such a
thing called decorators ?
tia
KM
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
Well I just fired up the doco gadget and pasted
"PyArg_ParseTupleAndKeywords" into the Search box and the 2nd
reference it came up with was this:
manual: Python/C API Reference Manual
section: 5.5 Parsing arguments and building values
The 1st, 3rd & 4th references were examples
On Tue, 30 Nov 2004 23:31:34 +1100, Anthony Baxter
<[EMAIL PROTECTED]> wrote:
> On behalf of the Python development team and the Python community, I'm
> happy to announce the release of Python 2.4.
Anthony, congratulations with this smooth release! Thanks for all the
hard work. Enjoy your beer, I'
Nick Coghlan wrote:
The proposed use cases sound more appropriate for a "named tuple" than
any sort of dictionary. (This may have been mentioned in previous
discussions. I wasn't keeping track of those, though)
For the return values, yeah, a "named tuple" is probably at least as
appropriate. I'
Hi. I have a very simple task to perform and I'm having a hard time
doing it.
Given an array called 'x' (created using the numarray library), is
there a single command that rounds each of its elements to the nearest
integer? I've already tried something like
>>> x_rounded = x.astype(numarray.Int
Nick Craig-Wood wrote:
Steven Bethard <[EMAIL PROTECTED]> wrote:
I promised I'd put together a PEP for a 'generic object' data type for
Python 2.5 that allows one to replace __getitem__ style access with
dotted-attribute style access (without declaring another class). Any
comments would be appr
Riko> I'm using emacs (with python-mode) to do most of my editing.
C-c # is bound to py-comment-region in python-mode.
Skip
--
http://mail.python.org/mailman/listinfo/python-list
Your mail to 'gpul-traduccion' with the subject
FwD: Details
Is being held until the list moderator can review it for approval.
The reason it is being held:
SpamAssassin identified this message as possible spam (score 2.4)
Either the message will get posted to the list, or you will rec
Your mail to 'Trasno' with the subject
FwD: Details
Is being held until the list moderator can review it for approval.
The reason it is being held:
SpamAssassin identified this message as possible spam (score 2.4)
Either the message will get posted to the list, or you will receive
noti
On 2004-11-26, alastair <[EMAIL PROTECTED]> wrote:
> When I send the data on windows everything is ok - on Linux I get the
> following traceback:
>
> Traceback (most recent call last):
> ...
> File "/home/pythonCode/loader.py", line 155,
> in serialWrite
> ser.write(buffer)
> File "/usr/lib/python
Peter Otten wrote:
Steven Bethard wrote:
def __eq__(self, other):
"""x.__eq__(y) <==> x == y"""
return (isinstance(other, self.__class__)
and self.__dict__ == other.__dict__)
This results in an asymmetry:
[snip]
Whether this is intended, I don't know. If someone can enlighten me...
Fredrik Lundh wrote:
Steven Bethard wrote:
Currently, if a Python programmer makes this design decision, they are
forced to declare a new class, and then build instances of this class.
FORCED to create a new class, and FORCED to create instances of
their own class instead of your class?
I don't see
At long last, I can annouce that Release 1.20 of the
ReportLab Toolkit is out.
The ReportLab Toolkit is a mature, full-featured library
for generating PDF documents and data graphics. This release
offers a number of minor formatting improvements ad new
features, especially within tables. Full d
Jp Calderone <[EMAIL PROTECTED]> writes:
> On Tue, 30 Nov 2004 22:39:15 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote:
>>Craig Ringer wrote:
>> > Hi folks
>> >
>> > I've been doing some looking around, but have been unable to find out
>> > how to implement class methods on Python objects written
Peter Hansen wrote:
I would be inclined to say that the "p" format in struct (using
Python 2.4rc1 or Python 2.3.3) does not act as documented on
Windows XP SP2, at least...
I hope we've both just missed something obvious.
Okay, we were certainly missing something, but I don't believe
I would call i
sepgy wrote:
Can anyone help me to use a python to create an HTML photo gallery
generator. When it's finished, it will be able find all the picture
files (i.e. .jpg, .gif. .png files) in any given folder on the
computer, automatically create smaller thumbnails for each image, and
then generate a co
Kevin,
thanks for picking this up. What I did was:
- Start python from the command line
- run "import orange" (orange is in site-packages)
I get a 'bus error' and python crashes.
Orange is a data mining lib for python:
http://www.ailab.si/orange/forum/index.php
I tried it with their lib, I compile
Robert Brewer wrote:
http://www.google.com/search?q=%22py.test%22
Just a little OT note, but Google ignores the '.' and, in fact, any
punctuation whether it is in a quoted string or not.
And while on the subject, many people incorrectly assume that Google
supports parentheses to change precedenc
Tim Peters wrote:
[Skip Montanaro]
I think inputs from strings would be much more common.
Me too, although it's a bottomless pit.
guess-6-intended-meanings-for-1/2/3-before-breakfast-ly y'rs
I think Skip was intending that the format string be mandatory,
to avoid such ambiguity. At least, that's w
Geoffrey wrote:
As I mentioned, I can parse the string and read it with multiple
statements, I am just looking for a more efficient solution.
This looks like about the best you can do, using the information
from Tim's reply:
>>> buf = '\0\0\xb9\x02\x13EXCLUDE_CREDIT_CARD'
>>> import struct
>>> x =
Interesting to see this blend of GPL and an alternative for
closed-source software.
Not totally unrelated, I saw this in your web-site (Ice vs CORBA
page):
No "Design by Committee"
Ice was designed by a small group of dedicated and highly experienced
people.
Am interested to know, what "percent
[Skip Montanaro]
>>> I think inputs from strings would be much more common.
[Tim Peters]
>> Me too, although it's a bottomless pit.
>>
>> guess-6-intended-meanings-for-1/2/3-before-breakfast-ly y'rs
[Peter Hansen]
> I think Skip was intending that the format string be mandatory,
> to avoid such a
Jp Calderone wrote:
On Tue, 30 Nov 2004 10:02:27 -0500, Brad Tilley <[EMAIL PROTECTED]> wrote:
When memory usage is a concern, is it better to do:
from X import Y
or
import X
There is no difference. If you are concerned about memory usage, you
probably need to take a look at the data structure
Geoffrey wrote:
I am trying to read data from a file binary file and then unpack the
data into python variables. Some of the data is store like this;
...
As I read the documentation the "p" format string seems to address
this situation, where the number bytes of the string to read is the
first byt
[Geoffrey <[EMAIL PROTECTED]>]
> I am trying to read data from a file binary file and then unpack the
> data into python variables. Some of the data is store like this;
>
> xbuffer: '\x00\x00\xb9\x02\x13EXCLUDE_CREDIT_CARD'
> # the above was printed using repr(xbuffer).
> # Note that int(0x13) =
http://www.ardice.com/Arts/Movies/Titles/1/13th_Letter,_The
--
http://mail.python.org/mailman/listinfo/python-list
Dave Merrill wrote:
Newb question: Is it possible/recommended to have multiple versions of
Python installed simultaneously? Earlier, I installed 2.4rc1, and a number
of things in my 2.3.3 install stopped working. Are there known techniques
for managing multiple versions?
What exactly stopped worki
What versions of Python, PyQt, SIP, Qt?
Qt imposes restrictions on which parts of the API can be called in
different threads - check the Qt documentation.
Python has bugs in its thread implementation. These (the ones that affect
PyQt anyway) are fixed in Python 2.4.
Also see the "Support for Thr
On Tue, 30 Nov 2004 10:02:27 -0500, Brad Tilley <[EMAIL PROTECTED]> wrote:
>When memory usage is a concern, is it better to do:
>
> from X import Y
>
> or
>
> import X
There is no difference. If you are concerned about memory usage, you
probably need to take a look at the data structures ho
Guillaume Weymeskirch wrote:
I've got the same problem. Errno 11 is because too much data, sending
is in progress.
Fix is easy: assign a non zero value to the writeTimeout property of
your serial objet.
Then the write method will wait up to this time for sending data.
Note that writeTimeout is new
Brad Tilley wrote:
Also, is there a way to load and unload modules as they are needed. I
have some scripts that sleep for extended periods during a while loop
and I need to be as memory friendly as possible. I can post a detailed
script that currently uses ~ 10MB of memory if anyone is interest
1 - 100 of 202 matches
Mail list logo