ributions
implemented.
numpy.random does not implement jumpahead(). random, naturally, does not require
a third-party package.
By and large, I'd say the distinguishing factor is whether or not you want to
use numpy in your program. If so, then use numpy.random. If not, then use
random.
--
Robe
at a higher level for external
callers. If you have a module whose contents are being exposed in your
__init__.py, never rely on the contents of that __init__.py in that code.
Instead, go straight to the real modules that implement the symbols that you
need. So mytest.py should read:
from importtest.tes
essage...
wx.Point objects are being recognized as sequences by array(). Consequently,
reshape() thinks you are trying to reshape a (height*width, 2) array into a
(height, width) array. You might want to create an empty (height, width)
PyObject array first, and simply assign wx.Point values into i
lst = list(arr)
For N-D arrays, that will give you a list of arrays. If you want a list of lists
(of lists of lists ... etc N times), use the .tolist() method of arrays.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made t
ist()
> Traceback (most recent call last):
> File "", line 1, in
> ValueError: rank-0 arrays don't convert to lists.
>
> Here I used Python 2.4.3, numpy 1.02
All of these results are entirely correct. A scalar (or rank-0 array) is not a
sequence.
If you have a need to
hich is non-random, varies
across Python implementations, and depends on the dictionary's history of
insertions and deletions.
"""
The sets documentation is a bit less explicit, though.
http://docs.python.org/lib/types-set.html
"""
Like other collections, sets
)
Out[10]: True
In [11]: 1.0 + 1e-8 == 1.0
Out[11]: False
If you can afford to be slow, I believe there is an ASPN Python Cookbook recipe
for simulating floating point arithmetic of any precision.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
th
Alan G Isaac wrote:
> Robert Kern wrote:
>> http://docs.python.org/lib/typesmapping.html
>> """
>> Keys and values are listed in an arbitrary order which is non-random, varies
>> across Python implementations, and depends on the dictionary's history o
Alan Isaac wrote:
>>> Robert Kern wrote:
>>>> http://docs.python.org/lib/typesmapping.html
>>>> """
>>>> Keys and values are listed in an arbitrary order which is non-random,
> varies
>>>> across Python implementations,
Steven D'Aprano wrote:
> On Wed, 09 May 2007 21:18:25 -0500, Robert Kern wrote:
>
>> Actually, the root cause of Peter's specific example is the fact that the
>> default implementation of __hash__() and __eq__() rely on identity
>> comparisons.
>> Two sepa
mory location of the elements.
It's misleading. It only depends on the memory location of the elements if
__hash__() is implemented as id() (the default).
How about this?
"""Never rely on the order of dictionaries and sets."""
--
Robert Kern
"
sturlamolden <[EMAIL PROTECTED]> writes:
> On May 10, 7:18 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote:
>
> CMUCL and SBCL depends on the dominance of the x86 architecture.
CMUCL and SBCL run on a variety of architectures, including x86, 64-bit x86,
PowerPC, Sparc, Alpha, and Mips. See
http
3.0 team. They've already implemented the translation for print
statements, too:
http://svn.python.org/view/sandbox/trunk/2to3/
http://svn.python.org/view/sandbox/trunk/2to3/fixes/fix_print.py?rev=54501&view=auto
--
Robert Kern
"I have come to believe that the whole world is
ept:
> else:
> print "couldn't find incident"
The except: block still needs something in it, even if it is just "pass".
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our ow
ill need to
install libfreetype, then build matplotlib.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.pytho
Steve Holden wrote:
> Alternatively use the Python Imaging Library (PIL), which I believe
> includes freetype support.
The OP seems to be trying to build matplotlib, which actually does require the
FreeType library. The PIL, lovely though it is, is not a substitute.
--
Robert Kern
&
= 2
c = 4
def myFun(self):
print self.a, self.b, myClass.c
return numpy.sin(self.a)
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
t to the bottom of an issue they
> are having by reading those comments.
And most will simply be confused.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an under
uot;. For empty lists, strings, tuples, dicts and some other things,
"bool(foo) == False", while for lists, etc., with at least one element,
"bool(foo) == True".
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
No.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote:
> These days, because of the cancelbot wars, ...
Heh. Sounds like a particularly dire episode of Doctor Who.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as thoug
99969733e+199
In [58]: x * x
Out[58]: 9.99939489e+399
In [59]: x * x * x
Out[59]: 9.99909194e+599
In [60]: 1e200 * 1e200 * 1e200
Out[60]: inf
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by
__, __repr__ will get
> called. Is this a bug?
No, it's deliberate design. The string representation of a list object, either
list.__str__() or list.__repr__(), uses the __repr__() of its contained objects.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a
First, take a look at my example code:
-
import csv
def pass1( reader ):
print reader.next()
print reader.next()
def pass2( reader ):
print reader.next()
print reader.next()
reader = csv.reader( open( "C:/IT/Meth
Hi,
I have 3 columns in my list control, each with a different "type" of
data (for example, one column has names, the other has dates, etc).
Can anyone reference a tutorial for solving this issue? I've done my
share of googling to no avail. I need the user to be able to click any
of the column hea
Hi,
I have a string in the following format:
"00:00:25.886411"
I would like to pass this string into the datetime.time() class and
have it parse the string and use the values. However, the __init__()
method only takes integers (which means I'd be forced to parse the
string myself). Does anyone k
to double without writing a giant switch() that exhausts
> every single type of number?
Convert it to a Python float using PyNumber_Float(), then use PyFloat_AsDouble()
to get the C double value from it.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless eni
Hi,
Is there build-in or third party support for large integer types, such
as 96 or 128 bits in size? I require such large sizes for precision
issues (nanoseconds). Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Jul 6, 7:39 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 7, 9:26 am,RobertDailey<[EMAIL PROTECTED]> wrote:
>
>
>
> > On Jul 6, 3:06 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
> > >RobertDaileyschrieb:
>
> > > > Hi,
>
> > > > I'm interested in making a C++ library of mine usable t
Okay I've actually got it compiling now, however it is saying it can't
find "stdio.h" (No such file or directory). This means it doesn't know
where the include directories are. How do I specify include
directories?
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I have the following code:
str = "C:/somepath/folder/file.txt"
for char in str:
if char == "\\":
char = "/"
The above doesn't modify the variable 'str' directly. I'm still pretty new
to Python so if someone could explain to me why this isn't working and what
I can do to achieve
7;t able to find the
'replace()' function you guys are talking about. It's actually the perfect
solution for the problem.
I appreciate your time.
On 7/31/07, Hexamorph <[EMAIL PROTECTED]> wrote:
>
> Jay Loden schrieb:
> > Robert Dailey wrote:
> >>
Too bad it's not free. I'll stick with PSPad & IPython
On 7/31/07, Wingware <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm happy to announce the first beta release of Wing IDE 3.0. It is
> available from http://wingware.com/wingide/beta
>
> Wing IDE is a commercial IDE designed specifically for Pytho
Hi,
I'm well aware of the datetime module, however it is really inconsistent and
useless to me. In order to do any arithmetic on time objects, I have to use
the 'timedelta' class, which doesn't even allow me to do all the math I want
to do.
For example, I want to do "1 / timeobj", where timeobj m
Hi,
I'm currently interested in creating an __add__() operator for one of my
classes. This class handles both integers and objects its own type, however
I don't know how I can perform special add operations depending on which is
passed in. Since I haven't seen any evidence of function overloading,
He's secretly an employee of Wing IDE in disguise!!!
On 8/1/07, Joshua J. Kugler <[EMAIL PROTECTED]> wrote:
>
> On Wednesday 01 August 2007 13:28, John K Masters wrote:
>
> > On 15:34 Tue 31 Jul , Wingware wrote:
> >> Hi,
> >>
> >> I'm happy to announce the first beta release of Wing IDE 3.0.
Both strings in your example are exactly the same, unless I'm missing
something.
On 8/2/07, Roman <[EMAIL PROTECTED]> wrote:
>
> Is there a package that converts a string that contains special
> characters in xml to to literal value. For instance, converts string
> http://myhome/¶m to http://myho
; hi=mean
> sd=10
> sum=0
> while(i<=samplen):
> x=random.normalvariate(mean,sd)
> #print x
> if x if x>hi: high=x
> sum+=x
> i+=1
> print 'sample mean=', sum/samplen, '\n'
> print 'low value =', l
orrectly on Python 2.5 on WinVista?
If you can connect again to scipy.org, please tell us the problems you've had
installing numpy on Vista at [EMAIL PROTECTED] I believe that someone
has mentioned that the binary installer worked fine for them.
http://scipy.org/Mailing_Lists
--
Robert Ke
I had this very same problem with the doxygen mailing list... doxygen is
such a great tool but full of assholes in their mailing list.
On 8/2/07, Jamie <[EMAIL PROTECTED]> wrote:
>
> In <[EMAIL PROTECTED]>,
> [EMAIL PROTECTED] mentions:
> >Python is a better language, with php support, anyway, but
Hi, I was wondering if there is a built in module that supports conversion
in any direction between Binary, Hex, and Decimal strings? Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
pure
stupidity.
On 8/11/07, Greg Donald <[EMAIL PROTECTED]> wrote:
>
> On 8/11/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
> > I had this very same problem with the doxygen mailing list... doxygen is
> > such a great tool but full of assholes in their mailing list.
s unlikely that the bug is in Python. Let's
bring it over to numpy-discussion. What version of numpy are you using? Can you
give us a complete example that demonstrates the leak?
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terri
Well, I decided to implement my own way of doing this. I've attached the
source. You're all welcome :)
On 8/12/07, Michael Bentley <[EMAIL PROTECTED]> wrote:
>
> Hi Robert,
> On Aug 11, 2007, at 3:59 PM, Robert Dailey wrote:
>
> Hi, I was wondering if there is
Hi,
I'm currently developing a game for a cell phone. The game has a GUI system
that's currently using XML to define the individual menus. Basically this
means that for every single menu the user goes to, it loads and parses an
XML file. Would using Python Script instead of XML be a reasonable
rep
Just curious Dick, why are you making your own to_base method? Doesn't the
source I provided in my earlier email give you all that you need? I was
hoping my source might be useful to a few people, even though it's pretty
trivial code.
On 8/12/07, Dick Moores <[EMAIL PROTECTED]> wrote:
>
> At 07:04
Hi,
I have a class that derives from threading.Thread. To signal the thread to
exit its infinite loop, I set an Event. Once the thread checks Event.isSet()
and it is true, it proceeds to break out of the loop and exit the function.
In the main thread, right after calling Event.set(), I call Thread
*bump*
On 8/12/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm currently developing a game for a cell phone. The game has a GUI
> system that's currently using XML to define the individual menus. Basically
> this means that for every single menu the
On Mon, 13 Aug 2007 08:18:40 -, Lepi Duja <[EMAIL PROTECTED]>
wrote:
: All the informations about car air conditioners can be found on this
: website...
:
: http://car-air-conditioning.blogspot.com/
It's hard to imagine anything more OT in this newsgroup, but FWIW my 2003 Kia
has the most pow
he game to create the menu
and other important things.
I hope I've given enough examples and details. If I haven't, please let me
know and I'll answer any questions you may have. Thanks for following up.
On 8/13/07, Jay Loden <[EMAIL PROTECTED]> wrote:
>
> Robert Daile
Hi,
I previously created a topic named "Pass by reference or by value" where I
inquired on how python's function parameters work. I received a lot of nice
responses, however I'm still confused on the topic. Note that I come from a
C++ background to Python, so any comparisons to C++ would be very h
an object of type class Integer would allow me to modify the
value from inside the function?
On 8/16/07, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> Robert Dailey wrote:
> > Hi,
> >
> > I previously created a topic named "Pass by reference or by value" where
( 5 )
def change_me( var ):
var.set( 6 )
Of course, I'd probably use overloaded operators in a more realized example.
On 8/16/07, Steve Holden <[EMAIL PROTECTED]> wrote:
>
> Robert Dailey wrote:
> > So immutable objects cannot be modified directly? I guess this
older. The output is consistent with the 'print' statements you
will see in the function I posted earlier.
On 8/17/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I've created a function that is used to recurse a directory tree in
> Windows XP using os.
Hi,
I've created a function that is used to recurse a directory tree in Windows
XP using os.walk(). For the most part it works, however in some instances
the data is incorrect and I'm getting invalid sub-directory paths. Here's
the function:
def __doSearch( root_dir, sub_path, restype, ext ):
I figured it out.
I was doing a recursive function call when I didn't have to. The walk()
method already walks into every possible sub-directory for you!
On 8/17/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Here's part of the output that's incorre
pend(float("0.1"))
>>>> x[0]
> 0.1000149011612
>>>> float("0.1")
> 0.10001
>
> I'm expecting x[0] = 0.10001
'f' denotes a single-precision floating point number. Python's float objects are
double-precision fl
Hi,
I noticed that the 'for' loop can be used inline with a list definition. For
example:
print [i for i in mylist]
My first question is what is the name for this? I couldn't find this usage
in the python docs; I only managed to learn about it through code samples on
the internet.
Secondly, I'm
Hi,
First have a look at the following code:
In main.py:
---
space = " "
includes = space.join( system._user_includes ) + " " + space.join(
system._system_includes )
In system.py:
-
exiting!
>
>
> On 8/20/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> > En Mon, 13 Aug 2007 20:10:53 -0300, Robert Dailey <[EMAIL PROTECTED]>
> > escribi�:
> >
> > > I have a class that derives from threading.Thread. To signal the thread
>
./../Symbian/9.1/NGAGE_SDK_1.1/EPOC32/include",
"../../../../../../Symbian/9.1/NGAGE_SDK_1.1/EPOC32/include/osextensions/rga",
"../../../../../../Symbian/9.1/NGAGE_SDK_1.1/EPOC32/include/osextensions/stdapis",
"../../../../../../Symbian/9.1/NG
uses this API. It's
only available in OSX 10.4, however.
http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/index.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt
kern/cgi-bin/hgwebdir.cgi/lcms
Let me know if there is anything I can do to make this code more useful to you.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Thanks for your response. I figured out the issue. I was using
list.append() to append another list, when I should have been using
expand(). Sorry for the confusion.
On 8/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> On Aug 20, 1:16 pm, "Robert Dailey" <[E
Hi,
I've been reading through the python documentation on the optparse module
and I was unable to find out how to specify if an option is optional or
required. The documentation vaguely states that actions can be used to do
this, however I was not able to figure out how. If anyone could help I'd
g
Robert Kern wrote:
> Googling around a bit more, however, I see that the Quartz Event Services is
> documented and provides similar functionality. The DarwiinRemote project has a
> mouse emulation mode for the Nintendo Wii controller that uses this API. It's
> only available in
e it convenient. It would
definitely help on code duplication.
Thanks for your response.
On 8/20/07, Jay Loden <[EMAIL PROTECTED]> wrote:
>
> Robert Dailey wrote:
> > Hi,
> >
> > I've been reading through the python documentation on the optparse
> > module and I was
A small off topic question. Why use divmod() instead of the modulus
operator?
On 8/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> On Aug 20, 4:17 pm, [EMAIL PROTECTED] wrote:
> > On Aug 20, 3:15 pm, John Machin <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > On Aug 20, 9:52 pm, [EMAIL PROTEC
Robert Dailey wrote:
> A small off topic question. Why use divmod() instead of the modulus
> operator?
Because he needed both the quotient and the remainder. % only gives you the
remainder.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enig
Yeah! That's it lol. Sorry, I wasn't looking at the documentation. At least
you got the point!
Thanks again guys.
On 8/20/07, Terry Reedy <[EMAIL PROTECTED]> wrote:
>
>
> "Robert Dailey" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
Hi,
Note: I'm using Python on Windows
I have an application that allows a user to submit a password as a command
line parameter. The password of choice may contain any characters the user
wishes, including quotes. If I do the following:
python password.py ""MyPassword
The resulting output w
Thank you for your response. The back slashes work! It's a bit annoying; but
I have Microsoft to thank for that.
On 8/21/07, Gary Herron <[EMAIL PROTECTED]> wrote:
>
> Robert Dailey wrote:
> > Hi,
> >
> > Note: I'm using Python on Windows
> >
> >
Hi,
I am looking for a sort of "tokenizer" for python. I've taken a look at the
tokenize module, but that seems to parse python code from what I read. I
want a tokenizer that works a little like boost::tokenizer, however for
python. Basically I want to be able to pass in an arbitrary string (or li
lol...
On 8/21/07, Tony <[EMAIL PROTECTED]> wrote:
>
> I don't who is posting here stupid shit about guitars
> who ever is do self fever hang your self with one of strings
>
>
> "kaldrenon" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Aug 20, 8:54 pm, Twisted <[EMAIL PROTEC
W. Watson wrote:
> Is there a single source that explains these statements?
http://docs.python.org/tut/node8.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it
Hi,
I'm wondering where the most appropriate location is to cleanup class
objects. For example, i have a file handle as an instance attribute in one
of my classes and I need to call f.close() on it when the class object falls
out of scope. Any ideas? I've tried __del__() but I don't remember this
lob, bisect, and datetime are standard library modules.
http://docs.python.org/modindex.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
--
Thanks; I'll give it a try.
On 8/22/07, Nils Oliver Kröger <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Robert Dailey schrieb:
> > Hi,
> >
> > I'm wondering where the most appropriate location is to cleanup cla
W. Watson wrote:
> Thanks very much. Where's the global index?
http://docs.python.org/modindex.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an und
Thank you VERY much for mentioning argparse- this is EXACTLY what I needed!
Thank you!
On 8/23/07, Steven Bethard <[EMAIL PROTECTED]> wrote:
>
> Omari Norman wrote:
> > On Mon, Aug 20, 2007 at 05:31:00PM -0400, Jay Loden wrote:
> >> Robert Dailey wrote:
> >>>
Wildemar Wildenburger wrote:
> Torsten Bronger wrote:
>> Hallöchen!
>>
> Yes, you're German. Have you ever noticed that (we) Germans are
> virtually the only ones that feel the need to rub our nationality into
> everyones faces? ;)
Howdy!
We Americans do the sa
hem do what I need?
>
> That's weird. random.randint(a,b) will be enough for most cases. Test
> your system to see the distribution is uniform with something like:
The distribution is uniform. However, he wants a way to get non-uniform sampling
of that list.
--
Robert Kern
"
-via-gmane on gmane
> before seeing the original post appear there I shall assume they've
> been having some sort of issue.
>
See http://news.gmane.org/gmane.discuss for some discussion of this...
Robert
--
La grenouille songe..dans son château d'eau
Links and things http://rmst
A that are not in directory B.
> I have used exceptions in other languages and only do so on logic that
> should never happen.
Python is different than those languages. Exceptions are used much more
frequently in Python and often for things that will *definitely* happen not just
those things t
__init__() method on str.
class MyString(str):
def __init__(self, strInput):
str.__init__(self, strInput)
# ... other stuff
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpr
o the 0s stack.
#
#
###
###
0123
The method does not work because of that.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
I won't have
problems.
Binary floating point has the advantage of being widely implemented and quite
fast compared to decimal floating point.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to inter
[EMAIL PROTECTED] (Alex Martelli) writes:
> DbC and allegedly rigorous compile-time typechecking (regularly too weak
> due to Eiffel's covariant vs countervariant approach, btw...), based on
> those empirical results, appear to be way overhyped.
My experience with writing Eiffel code was a bit di
Jeffrey Barish wrote:
> Robert Kern wrote:
>
>> Ivan Voras wrote:
>>> Jeffrey Barish wrote:
>>>
>>>> If you take the difference between two uniformly distributed random
>>>> variables, the probability density function forms an isosceles tr
Jeffrey Barish wrote:
> I'm sorry that I took the time to respond.
I'm sorry. I didn't intend my post to be as harsh as it was.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to in
into a separate package. If
you can remember what problems you had, I'd like to fix them. I'm clearing up a
number of (really dumb) memory leaks.
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad att
t; 0.4294860.1897141.]]
>
> Am I going in the right direction?
No. The reshape didn't do what you want it to. The elements will have the same
order; it won't transpose the array. To do that, use the transpose() function.
> What do I do with the result? :)
When
py-user/2007-September/013573.html
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I'm developing a quick python script to test an algorithm of mine. I would
like to be able to plot the algorithm results to a diagram (much like you
can do in Matlab). I was wondering if there's an API around that would allow
me to quickly do this? Perhaps some sort of rendering API or plottin
Well, I guess I wrote too soon. I found this:
http://matplotlib.sourceforge.net/
I'm going to try it out and see if it is what I'm looking for, however I'm
pretty confident!
On 9/4/07, Robert Dailey <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm developing a qu
DA" rather than "NIVIDAS CUDO").
http://code.google.com/p/pystream/
--
Robert Kern
"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-
Paddy wrote:
> On Sep 6, 10:12 pm, Robert Kern <[EMAIL PROTECTED]> wrote:
>> Veronika Lindstrand Kant wrote:
>>> Hi!
>>> I just wonder if there are any plans for building any support using
>>> NIVIDAS CUDO plattform into python?
>> Not into Pytho
a.m. wrote:
> If I type this in shell
>
> $ ./yourfile.py 12:34 PM &
>
> What does '$', '.', '/' and '& means in this succession? Note: 12:34
> PM is a argument to the yourfile.py.
>
This not python syntax but Unix shell.
$ = shell prompt
./= look for the program in my
johnny wrote:
> from people.models import *
>
> Now I make changes to the models.py. How do I reload this module in
> Python Shell?
import people.models
reload(people.models)
from people.models import *
--
Robert Kern
"I have come to believe that the whole world is an e
Neil Cerutti <[EMAIL PROTECTED]> writes:
> On 2007-09-02, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>> A big question mark in my mind is Lisp, which according to
>> aficionados is just as dynamic as Python, but has native
>> compilers that generate code running as fast as highly
>> optimized C.
2301 - 2400 of 4255 matches
Mail list logo