> "AgenteSegreto" == AgenteSegreto <[EMAIL PROTECTED]> writes:
AgenteSegreto> I've been a Matlab user for years and have recently
AgenteSegreto> started using Python with matplotlib and NumPy for
AgenteSegreto> most of my work. The only thing I found that is
AgenteSegreto> st
Lawrence D'Oliveiro wrote:
> In article <[EMAIL PROTECTED]>, Kun <[EMAIL PROTECTED]>
> wrote:
>
>
>>... but i am
>>wondering if there is a way to create a button which would automatically
>>insert today's date in the date form field if the user chooses to use
>>today's date.
>
>
> If you're
I think there's a slight design flaw in the Queue class that makes it
hard to avoid nested monitor deadlock. The problem is that the mutex
used by the Queue is not easy to change. You can then easily get
yourself into the following situation (nested monitor deadlock):
Say we have a class that cont
aum wrote:
>
> Makes me wonder, just out of curiosity - are there any universities
> actually teaching python (in anything bigger than a small elective
> module), or are they all still owned by Java, C++, C# and Visual Basic?
>
like NLTK, maybe?
http://www.ldc.upenn.edu/sb/home/papers/nltk.pdf
Hi Mickle.
A quick search on the www.python.org site leads to:
http://wiki.python.org/moin/LanguageComparisons
The thing about language comparisons are that they are all
subjective/biased. Best to read other things by the author to know
'where they are coming from'.
Oh, and check the dates of t
[EMAIL PROTECTED] wrote:
> hi
> i was looking at this :
> http://www.python.org/doc/essays/comparisons.html
> on comparisons of python and other languages? are there any updates to
> this doc? or is there
> other reliable source for such comparison elsewhere? thanks
lots of blogs out there, check
Jonathan Amsterdam <[EMAIL PROTECTED]> wrote:
...
> As I'm new to the Python community, I'm not sure that this is the right
> forum for this suggestion. Is it the sort of thing one would put on the
> SourceForge bug list? Advice appreciated.
Posting a patch and/or bug to Sourceforge is probably
Hi everybody, I'm developing a distributed application in
Python and I intend to use SOAP over a SSL connection.
I looked at the SOAPpy package and it seems to have all I
need but client authentication; in other words I want my client
certificate be sent to the server during the SSL handshake.
SOP
I've traditionally been a Java developer, although I play around with
LISP. I recently migrated to Linux and I was exploring Mono as an
option for development on Linux. However, I've had some problems with
the maturity and support when working with Mono. So I was considering
Python as an alternativ
"Jonathan Amsterdam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I think there's a slight design flaw in the Queue class that makes it
> hard to avoid nested monitor deadlock. The problem is that the mutex
> used by the Queue is not easy to change. You can then easily get
> yourse
If you don't want to call it deadlock, fine, but the program execution
I describe will make no progress to the end of time. Thread 2 can never
put anything in the queue, because Thread 1 holds M, and Thread 1 will
never release M because that can only happen if someone puts something
on the queue.
Hi.
I'm trying to use Python 2.4 with MySql 5.0, but I'm having
installation problems.
I've tried to follow the following articles to install mysql-python
with the free visual c++ toolkit
http://mail.python.org/pipermail/python-list/2004-December/255184.html
http://www.vrplumber.com/programming/m
>> I've traditionally been a Java developer, although I play around with LISP.
For most java developers, understanding dynamic typing is a big step.
Your Lisp background however would mean that you will pick up Python
very quickly.
>> I recently migrated to Linux and I was exploring Mono as an
op
BartlebyScrivener wrote:
>
> You may want to try disabling any anti-virus software you have running
> as they
> frequently cause software installation failures.
NONE!!
>
> MSI Installers have a known issue with mapped network drives; please
> copy the
> installer to the c:\ root drive and try
On Mon, Apr 17, 2006 at 09:41:37AM -0700, Jonathan Amsterdam wrote:
> If you don't want to call it deadlock, fine, but the program execution
> I describe will make no progress to the end of time. Thread 2 can never
> put anything in the queue, because Thread 1 holds M, and Thread 1 will
> never rel
How can a proprietary software developer protect their Python code?
People often ask me about obfuscating Python bytecode. They don't want
people to easily decompile their proprietary Python app.
I suppose another idea is to rewrite entire Python app in C if compiled
C code
is harder to decompile
Steven D'Aprano wrote:
> On Sat, 15 Apr 2006 22:39:37 -0600, Miguel E. wrote:
>
>
>>I am trying to create a function that removes an item as specified by
>>the user. Apparently, the list operation "del list[:]" deletes the
>>entire list. Below is the sample function.
>
>
> If you know the value
>
> c:\temp1>msiexec /I c:\temp1\python-2.4c1.msi /L*v install.log
> /L*v ok here it is... before downloading and installin the VB
> scripting crap.( in case it starts closing apps
> trying to reboot and clear all this typing I've done hehe.
> install.log
> === Verbose logging started: 17/04
Phoe6 wrote:
> Hi all,
>I have this Code Context feature under Options in the IDLE.
> How should I use it? Are there folks here who use it regularly and find
> it useful.
> Please guide me.
Well, you could start by looking at the Help:
Options Menu:
Configure IDLE -- Open a configura
Jonathan Amsterdam wrote:
> If you don't want to call it deadlock, fine, but the program execution
> I describe will make no progress to the end of time. Thread 2 can never
> put anything in the queue, because Thread 1 holds M, and Thread 1 will
> never release M because that can only happen if so
>> the reason I can't move to brand new installation is because I am missing
>> sound drivers.
If I were you, I'd download the latest ActiveState version of Python
from:
http://www.activestate.com/Products/ActivePython/
I would install it from c:\
Who cares about sound drivers if all you want
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> How can a proprietary software developer protect their Python code?
> People often ask me about obfuscating Python bytecode. They don't want
> people to easily decompile their proprietary Python app.
>
> I suppose another idea is to r
Hi,
I'm trying to update the fuse python bindings to my app and I was
curious if there were any C utility functions that would turn a
sys.argv into a C style argv array, or am I going to have to write
those myself?
Thanks.
--
burton samograd kruhft .at. gmail
kru
"Jonathan Amsterdam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If you don't want to call it deadlock, fine, but the program execution
> I describe will make no progress to the end of time. Thread 2 can never
> put anything in the queue, because Thread 1 holds M, and Thread 1 wil
"Jonathan Amsterdam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> As I'm new to the Python community, I'm not sure that this is the right
> forum for this suggestion. Is it the sort of thing one would put on the
> SourceForge bug list? Advice appreciated.
As a sometimes bug revi
On 2006-04-17, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
> Hi All,
> I've done a bunch of searching in google and in python's help, but,
> I haven't found any function to decode a string like:
> Refresh! (ihenvyr)
> In to plain english.
> [...]
I needed to do that the other day, and did it li
Hi,
Running Fedora Core 4: Python 2.4.3 and Python 2.4.1.
I'm getting:
IOError: [Errno socket error] (2, 'No such file or directory')
all the time.
Trying to track down this problem:
Python 2.4.1 (#1, May 16 2005, 15:19:29)
[GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2
Type "help", "copyright
In article <[EMAIL PROTECTED]>,
Jonathan Amsterdam <[EMAIL PROTECTED]> wrote:
>If you don't want to call it deadlock, fine, but the program execution
>I describe will make no progress to the end of time. Thread 2 can never
>put anything in the queue, because Thread 1 holds M, and Thread 1 will
>nev
I'm pretty new myself. But if you don't get anywhere using
mysql-python, I can recommend
mxODBC. I have connected to both MS Access DB and MySQL DB. You get it
from:
http://www.egenix.com/files/python/mxODBC.html
But read the instructions carefully as I think there are two things to
install.
If
I have been working on a little frontend for newspost. It runs
newspost just fine and gets it's output. The problem is that i want it to
get the stdout as the program runs, not hold it all till it's
finished. I've tried a few variations of popen , and others with no luck.
Here is the subroutine th
Burton Samograd <[EMAIL PROTECTED]> writes:
> I'm trying to update the fuse python bindings to my app and I was
> curious if there were any C utility functions that would turn a
> sys.argv into a C style argv array, or am I going to have to write
> those myself?
Following up to myself again...foun
Hi all,
I have a problem with threading. The following part should be running in a main programm all the time, but so that the main programm also works (like 2 seperate programms, but in one)
How to integrate the Code-part in the main programm, so that the mainprogramm works?
Code:
impo
Hi all,
I have a problem with threading. The following part should be running in a
main programm all the time, but so that the main programm also works (like 2
seperate programms, but in one)
How to integrate the part in the main programm?
Code:
import win32com.client
import time
import os
imp
well, you can do something silly: create a c file into which you embed
your code, ie.,
#include
char code[] = "print 'hello moshe'";
void main(...)
{
Py_ExecString(code);
}
then you can compile the C file into an object file, and use regular
obfuscators/anti-debuggers. of course people who
I forgot to add that i'm running ubuntu with python 2.4, and the imports
are:
import os
import pygtk
pygtk.require('2.0')
import gtk
import gtk.glade
--
http://mail.python.org/mailman/listinfo/python-list
QOTW: "Discussion about Python 3000 is heating up. What I haven't seen so far
is a list of things that will be dropped from the language to make room for
new ideas." - Greg Wilson
"The longer I work at writing software, the more I come to appreciate that
people are the hardest thing to figure out.
[EMAIL PROTECTED] wrote:
> How can a proprietary software developer protect their Python code?
> People often ask me about obfuscating Python bytecode. They don't want
> people to easily decompile their proprietary Python app.
>
> I suppose another idea is to rewrite entire Python app in C if com
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Aahz <[EMAIL PROTECTED]> wrote:
>>
>> Method resolution order is the primary up-front difference, but
>> introspective code can also have problems.
>
>The crucial difference between the old-style classes and the new ones
>
[EMAIL PROTECTED] wrote:
> ---
> Code Context -- Open a pane at the top of the edit window which
> shows the block context of the section of code
> which is scrolling off the top or the window.
>
> But what does that actually mean?
>
> Take this code fragment example (with line numbers added
> for
Ravi Teja wrote:
> >> I've traditionally been a Java developer, although I play around with LISP.
>
> For most java developers, understanding dynamic typing is a big step.
> Your Lisp background however would mean that you will pick up Python
> very quickly.
>
> >> I recently migrated to Linux and
I tried mxODBC now, and it worked out of the box. Thanks for the tip!
--
http://mail.python.org/mailman/listinfo/python-list
This is a reply to Alan Morgan, Paul McGuire and Duncan Booth.
I need mutex M because I have other fields in my class that need to be
thread-safe.
The reason I want to use a Queue and not a list is that a Queue has
additional synchronization besides the mutex. For instance, Queue.get()
will block
Peter Hansen wrote:
> bruce wrote:
>> I'm not that familiar with Pythin, but I wasn wondering if there are any
>> XPath/Python Gurus that I might be able to talk to regarding screen
>> scraping
>> applications...
>
> Since you mention XPath, it seems likely you are really interested in
> *web-sc
I'm coming from a Java background, so please don't stone me...
I see that Python is missing "interfaces". The concept of an interface
is a key to good programming design in Java, but I've read that they
aren't really necessary in Python. I am wondering what technique I can
use in Python to get the
[EMAIL PROTECTED] wrote:
> Dear c.l.p,
>
> I have recently been doing the tutorial of Python and everything is
> well, i'm upto the pass section. Anyway, when I try to launch idle now
> I get the error message: Socket Error: Connection Refused. I do not
> have a firewall, so I don't know what
"Jonathan Amsterdam" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> This is a reply to Alan Morgan, Paul McGuire and Duncan Booth.
>
> I need mutex M because I have other fields in my class that need to be
> thread-safe.
>
> The reason I want to use a Queue and not a list is that a Q
[EMAIL PROTECTED] enlightened us with:
> I see that Python is missing "interfaces".
No it isn't. It just hasn't got them.
> The concept of an interface is a key to good programming design in
> Java, but I've read that they aren't really necessary in Python.
> In Java I would accomplish this by
# In Python, you would simply call the functions you need. No need to
# make things that rigidly defined.
Except when you need to handle exceptions when those methods don't
exist. I think interfaces can definitely be useful.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python
Jonathan Daugherty wrote_
> # In Python, you would simply call the functions you need. No need to
> # make things that rigidly defined.
>
> Except when you need to handle exceptions when those methods don't
> exist. I think interfaces can definitely be useful.
so with interfaces, missing methods
I have a python-cgi file that pulls data from an sql database, i am
wondering what is the easiest way to remove all instances of
'00:00:00.00' in my date column.
how would i write a python script to scan the entire page and delete all
instances of '00:00:00.00', would i use regular expressions?
Have you tried running python with '-u'? That turns off most buffering
within python at least. I'm not familiar with newspost, so I've no
idea what to do about any output buffering it might be doing.
--
http://mail.python.org/mailman/listinfo/python-list
# so with interfaces, missing methods will suddenly appear out of thin
# air ?
With interfaces, the idea is that they're enforced; so, they'll appear
because someone implements them.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
Jonathan Daugherty wrote:
> # so with interfaces, missing methods will suddenly appear out of thin
> # air ?
>
> With interfaces, the idea is that they're enforced; so, they'll appear
> because someone implements them.
enforced by whom, at what point ?
--
http://mail.python.org/mailman/list
Thanks for the responses...Looks like I might have opened Pandora's box
here. Could I accomplish the above with an abstract class?
If the mechanic class had a "fixIt()" method defined, could I pass it
any object I wanted, and then just call the method that I expect to
find there, or do I need to s
# enforced by whom, at what point ?
In the case of Java, I think the JVM enforces interface implementation
(probably at the parser level).
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/listinfo/python-list
# Thanks for the responses...Looks like I might have opened Pandora's
# box here. Could I accomplish the above with an abstract class?
Zope 3 has an interface system which is good. I recommend you look at
that.
--
Jonathan Daugherty
http://www.parsed.org
--
http://mail.python.org/mailman/l
> I have a python-cgi file that pulls data from an sql
> database, i am wondering what is the easiest way to
> remove all instances of '00:00:00.00' in my date column.
>
> how would i write a python script to scan the entire page
> and delete all instances of '00:00:00.00', would i use
> regular e
Aleksandar Cikota wrote:
> How to integrate the Code-part in the main programm, so that the
> mainprogramm works?
>
> Code:
>
> import win32com.client
> import time
> import os
> import threading
>
> Document = win32com.client.Dispatch('MaxIm.Document')
> Application = win32com.client.Dispatch(
[EMAIL PROTECTED] wrote:
> If the mechanic class had a "fixIt()" method defined, could I pass it
> any object I wanted
absolutely.
> and then just call the method that I expect to find there
yes.
> or do I need to strictly define the type, or class, of an object that is
> passed to a method.
Jonathan Daugherty wrote:
> # Thanks for the responses...Looks like I might have opened Pandora's
> # box here. Could I accomplish the above with an abstract class?
>
> Zope 3 has an interface system which is good. I recommend you look at
> that.
Zope 3's interface system is quite good, but it's
Kun wrote:
> I have a python-cgi file that pulls data from an sql database, i am
> wondering what is the easiest way to remove all instances of
> '00:00:00.00' in my date column.
>
> how would i write a python script to scan the entire page and delete all
> instances of '00:00:00.00', would i use
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Have a look at Zope 3.
(http://www.zope.org/DevHome/Wikis/DevSite/Projects/ComponentArchitecture/FrontPage).
It has an interface implementation. You can use this implementation with
the apllication server Zope 3 or alone.
Regards,
Egon
[EMAIL PROTECT
"Kun" wrote:
> I have a python-cgi file that pulls data from an sql database, i am
> wondering what is the easiest way to remove all instances of
> '00:00:00.00' in my date column.
>
> how would i write a python script to scan the entire page and delete all
> instances of '00:00:00.00', would i us
[EMAIL PROTECTED] wrote:
> I see that Python is missing "interfaces". The concept of an interface
> is a key to good programming design in Java, but I've read that they
> aren't really necessary in Python. I am wondering what technique I can
> use in Python to get the same benefits to a program de
[EMAIL PROTECTED] wrote:
> I'm coming from a Java background, so please don't stone me...
>
> I see that Python is missing "interfaces". The concept of an interface
> is a key to good programming design in Java, but I've read that they
> aren't really necessary in Python. I am wondering what techn
Fredrik Lundh wrote:
> "Kun" wrote:
>
>> I have a python-cgi file that pulls data from an sql database, i am
>> wondering what is the easiest way to remove all instances of
>> '00:00:00.00' in my date column.
>>
>> how would i write a python script to scan the entire page and delete all
>> instanc
Jonathan Daugherty wrote:
> Except when you need to handle exceptions when those methods don't
> exist. I think interfaces can definitely be useful.
I think I see what you mean, but that's an odd way to put it.
Typically, you aren't going to handle the exceptions produced by type
errors. Of cours
<[EMAIL PROTECTED]> wrote:
> I see that Python is missing "interfaces". The concept of an interface
> is a key to good programming design in Java, but I've read that they
> aren't really necessary in Python. I am wondering what technique I can
> use in Python to get the same benefits to a program d
encouraged by the great response to the python tutorial wiki, I've
set up another semi-open wiki for the Python FAQ:
http://pyfaq.infogami.com/
the immediate goal is to get the FAQ ready for the 2.5 release, by
using the wiki to collect comments. for more on future plans, see
this page:
"Kun" wrote:
> because in my sql database, the date is only 'date' (as in -mm-dd),
> only when i extract it with my python-cgi does the date turn into
> (-mm-dd 00:00:00.00), thus i figured the best way to fix this
> problem is to parse it after the matter.
you still make no sense. why n
Jonathan Daugherty wrote:
> # so with interfaces, missing methods will suddenly appear out of thin
> # air ?
>
> With interfaces, the idea is that they're enforced; so, they'll appear
> because someone implements them.
But if you're writing tests you will check method signatures anyway, so
why bo
Thanks for the solution!
Farshid Lashkari wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
> > I want to pass something like this to a C function via the Python C
> > API.
> > mytuple = (("string_one", 1.2, 1.3), ("string_two", 1.4, 1.5), ..,
> > ., )
> > This tuple is dynamic in size, it needs
Thank You, but now it cannot open a file, but it should work...
Here the error message:
>>> Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Program Files\Python\lib\threading.py", line 442, in __bootstrap
self.run()
File "G:\Robot teleskop\VRT\test\test2.py", line
Fredrik Lundh wrote:
> "Kun" wrote:
>
>> because in my sql database, the date is only 'date' (as in -mm-dd),
>> only when i extract it with my python-cgi does the date turn into
>> (-mm-dd 00:00:00.00), thus i figured the best way to fix this
>> problem is to parse it after the matter.
>
Kun> i have the following python-cgi which extracts data from a mysql
Kun> table, how do i parse the date so that it doesn't display the time
Kun> '00:00:00.00'?
I have no idea which column in your table is a datetime object, but just
convert it to a date. For example:
>>> impor
> for col in range(0, numcols):
> print "", record[col], ""
This is the point at which you want to intercept the column
data and make your change:
print "", str(record[col]).replace("00:00:00.0", ""), "%s" % foo
or alternatively
DATECOLUMNS = [3, 14]
for col
[EMAIL PROTECTED] wrote:
> Kun> i have the following python-cgi which extracts data from a mysql
> Kun> table, how do i parse the date so that it doesn't display the time
> Kun> '00:00:00.00'?
>
> I have no idea which column in your table is a datetime object, but just
> convert it to
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm coming from a Java background, so please don't stone me...
Most of us came to Python from some other language background ;-)
> I see that Python is missing "interfaces".
As someone else noted, Python objectively does not have 'i
as we all know, * (asterisk) can be used to "inline" or "flatten" a
tuple into an argument list, i.e.:
def f(a, b, c):
...
x = (1,2,3)
f(*x)
so... mainly for symmetry's sake, why not make a "flattening" operator
that also works outside the context of function calls? for example:
a = (1,2,3)
> I think this PEP is going off the rails. It's primary virtue was that it
was a simpler, clearer way to write:
class Foo(args):
__metaclass__ = some_metaclass
#...
And it doesn't even do that. What's wrong with "class Foo:
__metaclass__ = blah"? Two lines of code, and the
I want to use freeze to create the .o's to then include in a library
that will be distributed. When I use freeze it creates a binary and a
main, and the main calls some frozenmain func. Obviously I dont want a
main() in this code. Do I need to extract the code that was generated
by freeze in main
Tim Chase wrote:
>> for col in range(0, numcols):
>> print "", record[col], ""
>
> This is the point at which you want to intercept the column data and
> make your change:
>
> print "", str(record[col]).replace("00:00:00.0", ""), "
> If it's possible/plausible that other fie
I want to create a work schedule; I will have to input some names
(in alphabetical order) and the days they can't be working because they
have a license, are in vacation or are doing special services. Then,
using that information, the program would assign, from a Monday
specified onwards, from tw
Hey guys.
I should warn you, first off, that I'm relatively new to Python.
Basically, what I'm trying to do is create a word-wrapping function
with the added complication that it add a character at the beginning
and end of each line, so that it encloses the text in a sort of 'box':
--
Hi,
I am trying to run a Tkinter application in a thread and it
works pretty well to an extent. However, when I try to
recreate the application after the thread exits, the new
application never shows up. The code below the message
explains what I am trying.
On running this, you should see a simpl
Kun> assuming that my date column is 2, how would i parse out the date?
No parsing required. Just get its date:
d = record[2].date()
The str() of a datetime.date object is a string in -MM-DD form.
Kun> the example you gave is of you parsing out the current time, but
Kun> h
lo there all !
i have a huge delima, i have to be able to connect to a data server and
recieve info from it. The servers software guys release some visual C++
modules that one can incorporate into a visual C++ project. Which is
great, but i am developing in linux, and only am very familliar with
p
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> The word-wrapping function I'm working with is
I have never used this, but it might help you
>>> import textwrap
>>> dir(textwrap)
['TextWrapper', '__all__', '__builtins__', '__doc__', '__file__',
'__name__', '__revision__', '_white
I am using numarray.
Suppose I have
>>> p = array(range(25), shape=(5,5))
>>> p
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14],
[15, 16, 17, 18, 19],
[20, 21, 22, 23, 24]])
How do I easily slice out [0,1,2] or [1,2,3] or
[2,7,12] or [7,12,17]
Aahz <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Alex Martelli <[EMAIL PROTECTED]> wrote:
> >Aahz <[EMAIL PROTECTED]> wrote:
> >>
> >> Method resolution order is the primary up-front difference, but
> >> introspective code can also have problems.
> >
> >The crucial difference
Ravi Teja <[EMAIL PROTECTED]> wrote:
> >> I've traditionally been a Java developer, although I play around with LISP.
>
> For most java developers, understanding dynamic typing is a big step.
> Your Lisp background however would mean that you will pick up Python
> very quickly.
Very good point.
Jonathan Daugherty <[EMAIL PROTECTED]> wrote:
> # enforced by whom, at what point ?
>
> In the case of Java, I think the JVM enforces interface implementation
> (probably at the parser level).
"parser"...?! If you have an 'Object o', say one just received as an
argument, and cast it to IBlahble
gangesmaster <[EMAIL PROTECTED]> wrote:
...
> but anyway, it's stupid. why be a dick? those who *really* want to get
> to the source will be able to, no matter what you use. after all, the
> code is executing on their CPU, and if the CPU can execute it, so
> can really enthused men. and those wh
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
> Consider for example that one of the additions to Python 2.5 (currently
> in alpha stage) is the inclusion in the Python standard library of
> ctypes
Indeed, I think the inclusion of ctypes is far and away the most exci
Mike Orr wrote:
> > I think this PEP is going off the rails. It's primary virtue was that it
> was a simpler, clearer way to write:
>
> class Foo(args):
> __metaclass__ = some_metaclass
> #...
>
> And it doesn't even do that. What's wrong with "class Foo:
> __metaclass__ = bla
Anthony Liu wrote:
> I am using numarray.
I will be using numpy for this post, and if you are new to numarray, then you
should probably skip it and use numpy instead. All new development is going
towards numpy.
http://numeric.scipy.org/
> Suppose I have
>
p = array(range(25), shape=(5,5))
# "parser"...?! If you have an 'Object o', say one just received as an
# argument, and cast it to IBlahble, a la
#
# IBlahble blah = (IBlahble) o;
#
# ...what can the parser ever say about it?
Maybe you didn't read the "I think" in my OP. Anyway, you clearly
know more about (or have more r
Forgive me if this has already been discussed, but it seems to me that
one could reduce the memory usage of dictionaries by 2/3 by removing
the precomputed hash in each bucket.
Since Dictionaries only allow immutable objects as keys, one could move
the precomputed hash into the keys.
* Strings ar
Hi, Robert,
Thanks a lot.
I figure it out, too. NumArray is so flexible, it's
like cutting the cheese. You can cut it anyway you
want. I really like NumArray.
--- Robert Kern <[EMAIL PROTECTED]> wrote:
> Anthony Liu wrote:
> > I am using numarray.
>
> I will be using numpy for this post,
Anyone know if there is a book for Ironpython in the works? A good
knowledge of .NET and Python is enough to get started but just poking
around Ironpython homepage it seems like there are some new language
features added to handle some quirks with working within the CLR.
Although I could be wrong.
1 - 100 of 153 matches
Mail list logo