Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks
xahlee.org/UnixResource_dir/writ/python_doc.html > http://mail.python.org/pipermail/python-list/2005-May/280634.html >\ Please don't use Xah Lee as an example...please. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks
would say that Perl module documentation is really good. Most of them have plenty examples on how to use the module itself. That said...the Python docs are open source. Just start going through them and adding examples. It shouldn't be too hard and will benefit everyone who use the

Re: Finding dynamic libraries

2006-09-17 Thread Robert Kern
MonkeeSage wrote: > Robert Kern wrote: >> No, his extensions link against other shared libraries which are not Python >> extensions. Those shared libraries are in nonstandard locations because he is >> running his tests before installing the libraries and his Python co

Re: Finding dynamic libraries

2006-09-17 Thread Robert Kern
MonkeeSage wrote: > Robert Kern wrote: >> It depends on the OS. Most Linux systems do not. > > Hmm. Looks like 'man dlopen' confirms that (on my box anyway). It looks > like the working directory is never searched at all (unless it is > explicitly listed somew

Re: help with relative imports

2006-09-19 Thread Robert Kern
sing. How do > you know where D, E, F and G are to figure this out? If all you are > given is A.B.C, and then someone gives you the above three examples, > what steps do you take to figure out what gets imported from where? What is ambiguous about A.B.D, A.E, and A.F.G? But if you like:

Re: help with relative imports

2006-09-19 Thread Robert Kern
John Salerno wrote: > Robert Kern wrote: > >> What is ambiguous about A.B.D, A.E, and A.F.G? But if you like: > > I guess maybe I was looking at it backwards. From the way it was worded, > I thought the only information we had to use was the structure A.B.C, > and the

Re: Pythonic way to condese my array

2006-09-19 Thread Robert Kern
st_o_dicts = [{'column': 1}, ...] columns = set(x['column'] for x in list_o_dicts) column_map = dict((column, i+1) for i, column in enumerate(sorted(columns))) for d in list_o_dicts: d['column'] = column_map[d['column']] Of course, code that I wouldn't ge

Re: SciPy Optimization syntax

2006-09-20 Thread Robert Kern
onPnL = array([0.0, 0, 0, 0, 1, 2, 3]) x = optimize.brent(func, args=(optionPnL,)) Of course, there are an infinite number of solutions for this data since there is a cusp and a weird residual function. Any x in [0, 1] will yield 0 error since it is always on or below the data. -- 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

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
#x27;t forget to test the > build process, so why would my machine be special in this regard? > > I'm running Linux FC4 on a dual intel p4 (~3.2 GHz) with sundry > libraries in non-standard places. Is this non-standard part what's > killing me? Possibly. Won't know

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
ndry > libraries in non-standard places. Is this non-standard part what's > killing me? It's possible that distutils is not finding the information about how the python interpreter was built. Did you build your own python(1)? Is the information in $PREFIX/lib/python2.4/co

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
-llibrary type flags for all > of the libraries it doesn't know about. What versions of gcc and g77 are you using? > If its necessary, I can run setup.py build again and send the output to > a file and post that to scipy-dev if you think it might be helpful. Yes, that is what

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
AGS="" python setup.py build If such environment variables are present, I think that numpy.distutils may clobber the values that are inferred from the configuration. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made ter

Re: How does IPython modify the sys.path?

2006-09-21 Thread Robert Kern
Daniel Mark wrote: > So how dos IPython modify my sys.path without trace??? sys.path.append() Specifically, line 321 of ipmaker.py -- 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

Re: Building things with setup.py

2006-09-22 Thread Robert Kern
James Stroud wrote: > Robert Kern wrote: >> James Stroud wrote: >>> The build process, by the way, required my copying libpython2.5.a to >>> $HOME/Programs/lib. >> Hmm. That doesn't quite sound right, but it's been a while since I >> compiled th

Re: Building things with setup.py

2006-09-22 Thread Robert Kern
James Stroud wrote: > Robert Kern wrote: >>> Sorry. To clarify, making libpython2.5a available in a >>> $LD_LIBRARY_PATH was necessary to build numpy and scipy. >> I don't see how that could have affected anything. Static libraries >> aren't looked up i

Re: no-installation version of python

2006-09-22 Thread Robert Kern
ce py2exe is somewhat fiddly, something like Movable Python might give him most of the benefits with less effort. -- 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

Re: Application logging to screen and file - any favorite modules (no luck on cheeseshop)

2006-09-22 Thread Robert Kern
hould look in the standard library before hitting the Package Index. http://www.python.org/doc/current/lib/module-logging.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

Re: f2py on windows tutorials

2006-09-23 Thread Robert Kern
u try? What errors are you seeing? How are you trying to compile your modules, i.e. with just the f2py command or are you building a setup.py file? Did you pass "--compiler=mingw --fcompiler=gnu" to your build command? -- Robert Kern "I have come to believe that the whole world is an e

Re: Reverse a String?

2006-09-23 Thread Robert Kern
switched to linux. > > In any case, can we get that added? Not in that form, no, since this already exists: text[::-1] -- 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 t

Re: Reverse a String?

2006-09-23 Thread Robert Kern
Gregory Piñero wrote: > On 9/23/06, Robert Kern <[EMAIL PROTECTED]> wrote: >> Not in that form, no, since this already exists: >> >>text[::-1] > > Wow, that's really cool! Here are my questions: > > 1. How long has this thing been going on? I did

Re: QuoteSQL

2006-09-23 Thread Robert Kern
Anders J. Munch wrote: > Always sad to see an SQL DBMS willfully violate the SQL standard. You must be a constantly depressed person, then. :-) -- 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 at

Re: Looking for opinions

2006-09-23 Thread Robert Kern
erent from yours in this > respect. Is this like the back-end code or do you mean something else? Yes. The code that represents player characters, NPCs, artifacts, maps, GM notes, etc. rather than dialog boxes, windows, config files, HTML templates. -- Robert Kern "I have come to believ

Re: Extended slices and indices

2006-09-23 Thread Robert Kern
e is no set of indices that will both reverse > the string and produce the correct range! > > Is this a bug or a feature? I'd say bug in the .indices() method. The meaning of [4:-1:-1] is unavoidable different than [::-1] since the index -1 points to the last element, not the imag

Re: Extended slices and indices

2006-09-23 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Robert Kern wrote: >> I'd say bug in the .indices() method. The meaning of [4:-1:-1] is unavoidable >> different than [::-1] since the index -1 points to the last element, not the >> imaginary element before the first element. Unfortunately,

Re: Automatic import PEP

2006-09-24 Thread Robert Kern
use, which is exactly what Connelly is suggesting. It's not a bad thing in that context. -- 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

Re: IDLE - Customizing output format

2006-09-24 Thread Robert Kern
the output by replacing sys.displayhook with your own function: http://www.python.org/doc/current/lib/module-sys.html >>> import sys >>> 1 1 >>> def f(obj): print '' + repr(obj) >>> sys.displayhook = f >>> 1 1 &

Re: ruby %w equivalent

2006-09-24 Thread Robert Kern
Antoine De Groote wrote: > Hi everybody, > > is there a python equivalent for the ruby %w operator? > %w{a b c} creates an array with strings "a", "b", and "c" in ruby... I assume that ['a', 'b', 'c'] isn't what yo

Re: Automatic import PEP

2006-09-24 Thread Robert Kern
you need A, but you may not know what you need underneath it. -- 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

Re: unicode, bytes redux

2006-09-24 Thread Robert Kern
one you suggest doesn't really make any sense to me. -- 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

Re: does anybody earn a living programming in python?

2006-09-25 Thread Robert Kern
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Well I do. So do the other dozen or so developers at my company. We're looking to hire a few more, in fact. http://www.enthought.com/careers.htm -- Robert Kern "I have come to believe that th

Re: Iterating by both element and index?...

2006-09-25 Thread Robert Kern
[EMAIL PROTECTED] wrote: > I'd like to iterate over a sequence by both element > and index, something like > > for (element, index) in somefun(sequence): > ... for index, element in enumerate(sequence): ... -- Robert Kern "I have come to believe that the wh

Re: IDLE - Customizing output format

2006-09-26 Thread Robert Kern
Ilias Lazaridis wrote: > Robert Kern wrote: >> Anyways, against my better judgement, I will tell you that you can customize >> the >> output by replacing sys.displayhook with your own function: >> >>http://www.python.org/doc/current/lib/module-sys.html >

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
ing', ext_modules=[Extension('my_subroutines', sources=['wrapper.pyf', 'lib1.f', 'lib2.f'], )], ) -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma

Re: Reading a file using a UNC - help!

2006-09-26 Thread Robert Kern
backslash, you need to double it: fileList = "c:\\a_list_of_filenames.txt" or use "raw" string literals, which don't do any escaping: fileList = r"c:\a_list_of_filenames.txt" Please see the tutorial: http://docs.python.org/tut/node5.html#SECTION00512

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
Flavio wrote: > Thank you Robert, > > I was surprised that the setup.py was virtually identical to the one I > use for Linux. However I was not at all surprised when it didn't work. > ;-) > > It complains it can't find msvc: > > No module named msvccom

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
Robert Kern wrote: > Flavio wrote: >> Thank you Robert, >> >> I was surprised that the setup.py was virtually identical to the one I >> use for Linux. However I was not at all surprised when it didn't work. >> ;-) >> >> It complains it can&

Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
libraries=libs, > library_dirs=libdirs, > f2py_options=f2pyopts, > > sources=['model-builder/Bayes/flib.f','model-builder/Bayes/flib.pyf',] The .pyf file needs to come first. -- Robert Ker

Re: License / Registration key enabled software

2006-09-27 Thread Robert Kern
single person who has used FlexLM-licensed software and does not hate FlexLM with a burning passion. -- 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 tr

Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
Flavio wrote: > Hi Robert, > > Putting the .pyf first didn't do any good. I still get the same error > message of unknown file type That's ... odd. It works perfectly fine for scipy, and yet I can't get it to work, either, standing alone. > However when I try t

Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
Flavio wrote: > Hi Robert, > > Good News, > > I tried creating the setup.cfg as you suggested and ran > > python setup.py bdist_wininst > and > python setup.py bdist_egg > > both of them worked perfectly!!! compiled my Fortran extension, and > packed it

Re: ElementTree and proper identation?

2006-09-27 Thread Robert Kern
; filename, indent(root) >> >> But that only wrote the value "None" into the file. > > Ok, I see that indent() returns None. In that case, how do I get the > formatted text that it produces? The indent() function modifies the elements themselves to add the indentatio

Re: Difference between two dates in seconds

2006-09-27 Thread Robert Kern
rienced as Fredrik doesn't need to be told why > peppering code with magic constants like 84600 are a less than ideal > solution -- and for those who do need to be told, carefully compare what I > wrote to what Fredrik wrote to see one of those reasons. Well, you don't pepper yo

Re: another distutils question

2006-09-29 Thread Robert Kern
ing that decision, not the package author. -- 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

Re: another distutils question

2006-09-29 Thread Robert Kern
Eric S. Johansson wrote: > Robert Kern wrote: >> Eric S. Johansson wrote: >>> is there anyway I can, in a setup.py file, set and internal equivalent >>> to the '--install-scripts' commandline option? >> Please don't. Hard-coding that interferes wit

Re: another distutils question

2006-09-29 Thread Robert Kern
http://peak.telecommunity.com/DevCenter/setuptools http://peak.telecommunity.com/DevCenter/PkgResources 2.2 is tricky, but there are ways. Let me know if you need them. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own

Re: another distutils question

2006-09-29 Thread Robert Kern
7;t use package data for things that are going to be modified. Instead, use a directory like ~/.myscript/ or something else. -- 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 i

Re: another distutils question

2006-09-29 Thread Robert Kern
an the script). You might also add a command-line option to *only* install that directory. -- 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

Re: The Python world tries to be polite [formerly offensive to another language]

2006-09-30 Thread Robert Hicks
mean to newbies!". I ask the author of the talk and he said he didn't actually have to read the slide but it was effective non-the-less. Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Python threads and Numeric/SciPy exploit Dual Core ?

2006-10-02 Thread Robert Kern
robert wrote: > Fredrik Lundh wrote: > >> "robert" wrote: >> >>> Simple Python code obviously cannot use the dual core by Python threads. >>> Yet, a program drawing CPU mainly for matrix computations - preferably >>> with Numeric/SciP

Re: How to coerce a list of vars into a new type?

2006-10-02 Thread Robert Kern
, [a, b, c]) > ...code... That won't do anything since the names a, b, and c are never rebound. -- 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 a

Re: How to coerce a list of vars into a new type?

2006-10-02 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Me: >>> def f(a, b, c): >>> map(int, [a, b, c]) >>> ...code... > > Robert Kern: >> That won't do anything since the names a, b, and c are never rebound. > > I think you are wrong. Try to give a "35

Re: zeta function for complex argument

2006-10-02 Thread Robert Kern
.rexx.com/~dkuhlman/scipy_course_01.html#special But not for a complex argument. -- 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." -- Um

Re: Need help with an array problem.

2006-10-02 Thread Robert Kern
[EMAIL PROTECTED] wrote: > To your question on casting long to short. This is how: > a=1234L # long > b=int(a) # int (short) No, a Python int is a C long. A Python long is an arbitrary-precision number and does not correspond to any C type. -- Robert Kern "I have c

Re: Need help with an array problem.

2006-10-02 Thread Robert Kern
SpreadTooThin wrote: > Robert Kern wrote: >> [EMAIL PROTECTED] wrote: >>> To your question on casting long to short. This is how: >>> a=1234L # long >>> b=int(a) # int (short) >> No, a Python int is a C long. A Python long is an arbitrary-preci

Re: [Q]An error with my module in C

2006-10-02 Thread Robert Kern
er incrementing its reference count: Py_INCREF(Py_None); return Py_None; -- 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

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Robert Kern
alled JIRA - never heard before of course) > for Python itself. > > Does this smell "Bitkeeper fiasco" to anyone else than me? 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

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Robert Kern
Fredrik Lundh wrote: > Robert Kern wrote: > >>> Does this smell "Bitkeeper fiasco" to anyone else than me? >> No. > > that's just not true. lots of people have voiced concerns over using > closed-sourced stuff originally designed for enterprise-

Re: Python to use a non open source bug tracker?

2006-10-03 Thread Robert Kern
Fredrik Lundh wrote: > Robert Kern wrote: > >> Sure. But what's the similarity to the fiasco part of the BitKeeper fiasco? > > depends on what you consider being the cause of that fiasco. I'm not > sure it was quite as simple as people are trying to make it so

Re: A Universe Set

2006-10-03 Thread Robert Kern
62]: U = UniverseSet() In [63]: 1 in U Out[63]: True In [64]: 2 in U Out[64]: True In [65]: 'something' in U Out[65]: True In [66]: U in U Out[66]: 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 attem

Re: switching to numpy and failing, a user story

2006-10-03 Thread Robert Kern
s. I give up; I guess NumPy is only for people > living in the US. Or you could have emailed Travis, and he would have worked around the issue. I'm sorry that you had such problems, but if you had let us know about them earlier, we could have helped you out. -- Robert Kern "I have com

Re: numpy magic: cast scalar returns auto to python types float & int ?

2006-11-17 Thread Robert Kern
robert wrote: > Didn't find the relevant reasoning within time. Yet guess the reason is > isolated-module-centric. I gave you a brief rundown on this list already. http://mail.python.org/pipermail/python-list/2006-October/411145.html And I'll note again that a fuller discus

Re: What python modules are available?

2006-11-17 Thread Robert Kern
Why Tea wrote: > All I need is something to provide me with array features. I can't > remember why I chose to use numarray a while ago... You will probably want numpy these days. numarray is being phased out. http://numpy.scipy.org/ -- Robert Kern "I have come to believ

Re: What python modules are available?

2006-11-17 Thread Robert Kern
documentation: http://www.scipy.org/Documentation -- 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

Re: Decimal() instead of float?

2006-11-17 Thread Robert Kern
Michael B. Trausch wrote: > I don't have (so far as I know) a 64-bit float available to me. Yes, you do: the regular Python float type. -- 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

Re: Decimal() instead of float?

2006-11-17 Thread Robert Kern
application that you think requires these exact results. What operations are you actually performing? Surely there's a square root or trig function in there somewhere. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible b

Re: Decimal() instead of float?

2006-11-17 Thread Robert Kern
I'd guess we're talking > Ångströms here, right?) The meter was originally defined to be 1e-7 of the distance between the equator and the North pole, so 1 degree of latitude is roughly 1e7 m/90 ~ 1e5 m. 1e-16 * 1e5 = 1e-11, 1/10th of an Ångström. -- Robert Kern "I have come to

Re: Decimal() instead of float?

2006-11-17 Thread Robert Kern
Robert Kern wrote: > Fredrik Lundh wrote: >> Terry Reedy wrote: >> >>> This is far more accurate than any measured latitude could be. >> you're saying that we don't measure geographical positions on an atomic >> scale? ;-) >> >> (it's

Re: numpy magic: cast scalar returns auto to python types float & int ?

2006-11-18 Thread Robert Kern
robert wrote: > There remains the argument, that (float64,int32) scalars coming out should - > by default - support the array interface. > How many people are there to expect and use this? I'd have never noticed it, > if it wouldn't have been mentioned here. Have never s

Re: Trying to understand Python objects

2006-11-21 Thread Robert Kern
eggs = 2 There's a typo there. For the sake of not confusing the OP, this is correct: class Point(object): spam = 4 def __init__(self): self.eggs = 2 -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible b

Re: The Python Papers Edition One

2006-11-24 Thread Robert Kern
m the > website? How do you attribute credits when you are using the codes? I'm not going to go through this point by point, but nearly everything you've said is wrong. -- 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

Re: my small hashlib - using pythons hash-functions

2006-11-25 Thread Robert Kern
;fair use," but simply the use of material that cannot be copyrighted by itself (in many jursidictions, at least) because it is so short, obvious, non-creative, etc. A good overview of fair use is here: http://fairuse.stanford.edu/Copyright_and_Fair_Use_Overview/chapter9/index.html IANA

Re: About alternatives to Matlab

2006-11-25 Thread Robert Kern
but the rest are judgement calls that only you can make. To make an accurate judgement, you will probably need to have a little bit of experience trying to wrap one such raw DLL. If you can't afford the time to do that one experiment, then you probably have your answer. -- Robert Kern "I h

Re: Generator question

2006-11-26 Thread Robert Kern
y iterate over it and yield its values. E.g. In [2]: def test_gen(x): ...: yield x ...: x -= 1 ...: if x != 0: ...: for y in test_gen(x): ...: yield y ...: ...: In [3]: list(test_gen(3)) Out[3]: [3, 2, 1] -- Robert Kern "I have come to

Re: --enable-shared, how do i set the rpath?

2006-11-27 Thread Robert Kern
x27;s. I find that most of my Apache problems stem from incorrect permissions. Make sure that the user running the Apache process has "read" and "execute" permissions for the .so's. -- Robert Kern "I have come to believe that the whole world is an enigma, a harm

Re: splitting a long string into a list

2006-11-27 Thread Robert Kern
want it to - any ideas? Did you follow the recommendations given to you the last time you asked this question? What did you try? What results do you want to get? -- 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

Re: extremely slow array indexing?

2006-11-30 Thread Robert Kern
e on mine. Changing the last line to "currSum += row" gets a 3x speedup. Dropping the "row[:] = 1" line as it's a really just a time-consuming no-op in the example and probably not an accurate reflection of what's going on in the real code gets you another 2x spe

best way to align words?

2006-11-30 Thread Robert R.
Hello, i would like to write a piece of code to help me to align some sequence of words and suggest me the ordered common subwords of them s0 = "this is an example of a thing i would like to have".split() s1 = "another example of something else i would like to have".split() s2 = 'and this is anot

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
y questions on the numpy list: http://www.scipy.org/Mailing_Lists Use numpy.set_printoptions(threshold=sys.maxint) to disable all summarization. -- 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

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Grant Edwards wrote: > On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: >> Grant Edwards wrote: >>> How do you print a numpy array? > >> You might want to ask numpy questions on the numpy list: >> >> http://www.scipy.org/Mailing_Lists >

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
nce the interactive prompt prints things out without the user explicitly asking for it, it's not enough simply to have two functions available. numarray set the default to summarize, and numpy kept numarray's choice. -- Robert Kern "I have come to believe that the whole world is an

Re: How do I print a numpy array?

2006-12-01 Thread Robert Kern
Grant Edwards wrote: > On 2006-12-02, Robert Kern <[EMAIL PROTECTED]> wrote: >> Grant Edwards wrote: >>> On 2006-12-01, Robert Kern <[EMAIL PROTECTED]> wrote: >>>> Grant Edwards wrote: >>>>> How do you print a numpy array? >

Re: best way to align words?

2006-12-02 Thread Robert R.
Hello, thanks for all your replies, i'm now looking to dynamic programming... sorry for forgetting to say that i wanted the words to be ordered, thus : s1 = "hello there dudes" s2 = "dudes hello there" s3 = "there dudes hello" will not return anything while sharing all three words. Bearophile

Re: best way to align words?

2006-12-03 Thread Robert R.
Oleg Batrashev a écrit : > This means that if you have 10 sentences with 5 words in each there is > 5^10 space and time complexity. Definitelly, there are better > algorithms from dynamic programming, but you should review your needs: > how many sentences, words you have. it can be few to many,

Re: Why not just show the out-of-range index?

2006-12-03 Thread Robert Kern
ing > to go to defend this omission. It promises to be entertaining. I'm not sure that anybody is going to defend it as a deliberate omission. Rather, they (like I) will encourage to OP to submit a patch that fixes the problem. -- Robert Kern "I have come to believe that the w

Re: Why not just show the out-of-range index?

2006-12-03 Thread Robert Kern
on than posting a patch. They listen to patch submissions much more than comp.lang.python. At the very least, you should submit a bug report even if you don't want to take the opportunity to learn how to fix it yourself. -- Robert Kern "I have come to believe that the whole world is an

Re: problem formatting dates from text fields.

2006-12-03 Thread Robert Kern
#x27;s website: http://www.manning.com/rappin/ If their Yahoo store is not accessible via your web reader (I have no experience, so I won't depend on it), you can email the publisher's customer service at [EMAIL PROTECTED] and I'm sure they will get the book to you in a form you can re

Re: Why not just show the out-of-range index?

2006-12-03 Thread Robert Kern
mention it? No one is castigating the OP for bringing up the issue. His suggestion that his time is worth more than that of anyone else, though, is drawing some ire. Fortunately, he seems to have backed off this position and seems amenable to doing something more productive than posting here. -- Robert

Re: Why not just show the out-of-range index?

2006-12-04 Thread Robert Kern
;ve been pointed to the productive things you can do to resolve the issue that you have: 1. Submit a bug report. 2. Submit a patch. Nothing is going to happen until you do one of these two things. Being more rude (and yes, you are being incredibly rude and insulting) won't move things alo

Re: Why not just show the out-of-range index?

2006-12-04 Thread Robert Kern
Russ wrote: > Robert Kern wrote: > >> Nothing is going to happen until you do one of these two things. Being more >> rude >> (and yes, you are being incredibly rude and insulting) won't move things >> along. > > I re-read the thread, and I don't s

Re: Inheritance doesn't work

2006-12-04 Thread Robert Kern
hon 2.4 from the Debian (Sid) packages. > > Is it a bug, or am I doing something wrong? You're doing something wrong. PIL.Image is a module, not a class. -- 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

Re: SQLObject release 0.7.2

2006-12-04 Thread Robert Hicks
Oracle? Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not just show the out-of-range index?

2006-12-04 Thread Robert Kern
if anyone construed my comments as insults. However, facts are facts, and I stated them as I believe them. If you can pick out the precise comments that you felt were insulting, I will be happy to attempt clarifying them in a way that you do not find insulting. -- Robert Kern "I have come to be

Re: Why not just show the out-of-range index?

2006-12-04 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Robert Kern wrote: >> [EMAIL PROTECTED] wrote: >>> I saw no posts where there OP insulted anybody without being >>> insulted first. It is ironic the Mr. Kern was the most consistent >>> insulter while at the same time accusing the OP

Re: Linear regression in NumPy

2006-12-05 Thread Robert Kern
g/Documentation And please join us on numpy-discussion if you have any more questions. http://www.scipy.org/Mailing_Lists -- 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 thou

Re: Book recommendations

2006-12-06 Thread Robert Hicks
by Wesley Chun There are plenty of "Free" online ones as well. HTH Robert -- http://mail.python.org/mailman/listinfo/python-list

Re: advice on stripped down python

2006-12-06 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Will old Python releases, like 1.5.x, work with newer Numpy and Scipy? No. numpy and scipy require 2.3. -- 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 a

Re: Windows installer for Scientific Python for Python 2.4?

2006-12-06 Thread Robert Kern
://sourcesup.cru.fr/projects/scientific-py/ -- 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

Re: Problem of understanding inheritance

2006-12-06 Thread Robert Kern
e __add__(). I'm almost certain that the implementation of datetime.date.__add__ creates a new datetime.date object explicitly rather than using self.__class__ to figure out what it should construct. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigm

Re: newb: What is the purpose of if __name__ == "__main__":

2006-12-06 Thread Robert Kern
johnny wrote: > What is the purpose of > if __name__ == "__main__": > > If you have a module, does it get called automatically? http://docs.python.org/lib/module-main.html -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma t

Re: merits of Lisp vs Python

2006-12-09 Thread Robert Brown
Paul Rubin writes: > For a long time Scheme had no macros, and Scheme developers who were > exceedingly familiar with Common Lisp were nonetheless willing to get > by without them. So I have to think macros aren't all THAT important. > Scheme did eventually get macros,

<    15   16   17   18   19   20   21   22   23   24   >