Why did Quora choose Python for its development?

2011-05-20 Thread Beliavsky
I thought this essay on why one startup chose Python was interesting. http://www.quora.com/Why-did-Quora-choose-Python-for-its-development PHP was out of the question. Facebook is stuck on that for legacy reasons, not because it's the best choice right now.[1] Our main takeaway from that experien

Python 2nd favorite language in Linux Journal poll

2005-10-07 Thread beliavsky
Linux Journal annually polls its readers on questions such as their favorite programming language. In the 2005 poll, Python is 2nd, its highest ranking ever. Below are the results by year. I wish that rankings beyond the first 3 were available and that the number of votes were shown. Nerds like num

Re: Python 2nd favorite language in Linux Journal poll

2005-10-08 Thread beliavsky
beza1e1 wrote: > Hm, you didn't include a link and my google did not find the final > results. I could not find a link, but the results appear on page 88 of the November 2005 issue of Linux Journal. -- http://mail.python.org/mailman/listinfo/python-list

Re: NEWBIE

2005-10-26 Thread beliavsky
brenden wrote: > hey everyonei'm new to all this programming and all this stuff and > i just wanted to learn how to do it... > > does anyone think they can teach me how to work with python? Don't waste readers' time with such vague and broad requests. Instead, post a specific question, for exa

Re: The Industry choice

2004-12-31 Thread beliavsky
Bulba wrote: >OK, so what projects and why would you consider >Python: >1. "clearly unsuitable" Large-scale scientific computing projects, such as numerical weather prediction, where performance is critical. Python could be used as the "glue" but not the "guts", where Fortran 95 and C++ are more a

OT: spacing of code in Google Groups

2004-12-31 Thread beliavsky
When I copy code from a source file into a Google Groups message, the indentation is messed up, making my Python code illegal and all my code ugly. Are there tricks to avoid this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Looping using iterators with fractional values

2005-01-01 Thread beliavsky
Mike Meyer wrote: >Or - and much safer when dealing with floating point numbers - iterate >over integers and generate your float values: >for j in range(1, 9): > i = j * .25 > print "%9.2f" % i I agree with this suggestion. As an historical aside, Fortran had loops with floating point variab

Re: The Industry choice

2005-01-01 Thread beliavsky
Paul Rubin wrote: >I don't find static type declarations to have much cost. It's just a >few more keystrokes. I'm open to persuasion about whether they have >benefit. Overall I agree with you and would like to have OPTIONAL static type declarations in Python, as has often been discussed. But witho

Re: Approximating scattered data

2005-01-01 Thread beliavsky
Grant Edwards wrote: >I've been looking for some way to approximate scattered 3D data >points in Python. The data doesn't seem to be amenable to >fitting functions like polymials, so I may have to use >something more like a spline surface. >However, I can't find anything usable from Python, and my

Re: The Industry choice

2005-01-02 Thread beliavsky
Roy Smith wrote: >I think you've hit the nail on the head. In awk (and perl, and most >shells, and IIRC, FORTRAN), using an undefined variable silently gets >you a default value (empty string or zero). This tends to propagate >errors and make them very difficult to track down. You may recall corre

Re: is python more popular than coldfusion?

2005-01-05 Thread beliavsky
>is python more popular than coldfusion? >I realsie that is a very general question as one thing does not directly >relate to the other. My issue is that I am ditching coldfusion due to >there being next to no work for it, and I am thinking of taking on >python as a second language to java in the

Re: is python more popular than coldfusion?

2005-01-05 Thread beliavsky
OTOH, Here are the numbers for Average Salary by Languages Used (2 numbers, staff and management) in ascending order from the 2004 Salary Survey from Software Development Magazine. I am surprised that there is so little variation across languages: 13 out of 22 are in the $81-$85K range. But Python

Re: how to extract columns like awk $1 $5

2005-01-07 Thread beliavsky
It takes a few more lines in Python, but you can do something like for text in open("file.txt","r"): words = text.split() print words[4],words[5] (assuming that awk starts counting from zero -- I forget). -- http://mail.python.org/mailman/listinfo/python-list

Re: DOS problem (simple fix??)

2005-01-07 Thread beliavsky
When I have a Python script generating a lot of output, I either open an output file and then print to it with fp = open("results.txt","w") print>>fp,"stuff" or I redirect output to a file from the command line using ">" (also works on Unix), for example python foo.py > results.txt An alternati

Re: Another look at language comparisons

2005-01-08 Thread beliavsky
>From the web site: "Why Microsoft can Blow-Off with C#? These people have thought up programming languages Fortran, Prologue, Ada." The author is ignorant. Fortran was invented by IBM in the late 1950s, long before Microsoft existed. Ada was commissioned by the U.S. Department of Defense in the 1

Re: Other notes

2005-01-08 Thread beliavsky
Bengt Richter wrote: >OTOH, there is precedent in e.g. fortran (IIRC) for named operators of the >form .XX. -- e.g., .GE. for >= so maybe there could be room for both. Yes, but in Fortran 90 "==", ">=" etc. are equivalent to ".EQ." and ".GE.". It is also possible to define operators on native an

Re: read numbers from file and covert to integer

2005-01-09 Thread beliavsky
If you have a file "ints.txt" with contents 10 20 30 40 50 60 You could read integers into a list with ivec = [] for text in open("ints.txt","r"): words = text.split() for x in words: ivec.append(int(x)) print ivec If you know you want to read two integers into variables a,b from a line you cou

Re: Python3: on removing map, reduce, filter

2005-01-09 Thread beliavsky
Steve Holden wrote: >> def square(x): >> return x*x >> map(square, range(1000)) >> versus >> [x*x for x in range(1000)] >> Hint: function calls are expensive. >$ python -m timeit -s "def square(x): return x*x" "map(square, range(1000))" >1000 loops, best of 3: 693 usec per loop >$

Re: python 2.3.4 for windows: float("NaN") throws exception

2005-01-13 Thread beliavsky
Tim Peters wrote: >Neither -- all Python behavior in the presence of float NaNs, infinities, or signed zeroes is a platform-dependent accident. C99 and Fortran 2003 have IEEE arithmetic. If CPython could be compiled with a C99 compiler, would it also have IEEE arithmetic? Do Python number-cruncher

Re: OCAMl a more natural extension language for python?

2005-01-17 Thread beliavsky
Jelle Ferringa wrote: >Since I haven't got actual experience programming CAML I'd like to speculate >that OCAML would be a very pythonic way of extending python: its >open-source, object oriented, as fast as C, and ! garbage collecting! The open source g95 Fortran 95 compiler is already usable an

Re: dynamic data types

2005-01-17 Thread beliavsky
rbt wrote: >I've always thought of it like this... in C, we have to do something >like this when declaring a variable: >int x = 0; >We had to specifically tell the language compiler that x is an integer. >In Python, all we have to do is: >x = 0 >The interpretor knows that x is an integer. We c

Re: [OT] Good C++ book for a Python programmer

2005-01-19 Thread beliavsky
Rick Muller wrote: >I was wondering whether anyone could recommend a good C++ book, with >"good" being defined from the perspective of a Python programmer. The STL and the template feature of C++ gives the programmer some of the functionality of Python (using templates instead of duck typing, vect

Re: problems with duplicating and slicing an array

2005-01-20 Thread beliavsky
Yun Mao wrote: >I have some questions when I'm using python numeric: >1. When I do v = u[:, :], it seems u and v still point to the same >memory. e.g. When I do v[1,1]=0, u[1,1] will be zero out as well. >What's the right way to duplicate an array? Now I have to do v = >dot(u, identity(N)), which

Re: problems with duplicating and slicing an array

2005-01-21 Thread beliavsky
Yun Mao wrote: >Thanks for the help. numarray doesn't provide what I look for either. e.g. >a = array( [[1,2,3],[4,5,6]] ) >I sometimes what this: a[ [1,0], :], or even >a[ [1,0], [0,1] ] , which should give me >[[4, 5], [1,2]] I think Fortran 90 and 95 have the array slicing you want. For examp

Re: Browsing text ; Python the right tool?

2005-01-25 Thread beliavsky
Here is an elementary suggestion. It would not be difficult to write a Python script to make a csv file from your text files, adding commas at the appropriate places to separate fields. Then the csv file can be browsed in Excel (or some other spreadsheet). A0 and C1 records could be written to sepa

Re: python without OO

2005-01-26 Thread beliavsky
Peter Maas wrote: > Davor schrieb: > > so initially I was hoping this is all what Python is about, but when I > > started looking into it it has a huge amount of additional (mainly OO) > > stuff which makes it in my view quite bloated now. > > So you think f.write('Hello world') is bloated and fil

Re: python without OO

2005-01-26 Thread beliavsky
Nick Coghlan wrote: > Davor wrote: > > thanks for the link > > > > > >>know what's funny: in the Lua mailing list there is currently a > >>discussion about adding OO to Lua. > > > > > > I guess most of these newer languages have no choice but to support OO > > if they want to attract a larger user

Re: python without OO

2005-01-26 Thread beliavsky
John Hunter wrote: > > "Davor" == Davor <[EMAIL PROTECTED]> writes: > > Davor> not really - it was not my intention at all - but it seems > Davor> people get upset whenever this OO stuff is mentioned - and > Davor> what I did not expect at all at this forum as I believed > Davo

Re: python without OO

2005-01-27 Thread beliavsky
[EMAIL PROTECTED] wrote: > >> There is not much than can be done at the Python level. But I would > >> see with interest a Python spinoff geared towards simplicity. > > >I think this would be useless because advanced concepts exist for > >a reason. A simplified spin-off would aquire advanced conce

Re: what's OOP's jargons and complexities?

2005-01-28 Thread beliavsky
PA wrote: > Plus, a man which such cinematographic tastes [1] cannot be entirely > bad :P > > http://xahlee.org/PageTwo_dir/Personal_dir/favorite_movies.html The site proves he is evil. Grep "Titus" if you have a strong stomach. I'm sure you did not get that far. -- http://mail.python.org/mailm

Re: Coding style article with interesting section on white space

2005-01-29 Thread beliavsky
Nick Coghlan wrote: > Thought some folks here might find this one interesting. No great revelations, > just a fairly sensible piece on writing readable code :) > > The whole article: > http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=271&page=1 > > The section specifically on white

Re: Coding style article with interesting section on white space

2005-01-29 Thread beliavsky
Michael Tobis wrote: > (unwisely taking the bait...) > > If you like your language to look like this > http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html > then more power to you. Thanks for pointing out that interesting article on Fortran 90 bugs. How long would a comparable C++ list be? Even Python

Re: Coding style article with interesting section on white space

2005-01-30 Thread beliavsky
Alex Martelli wrote: > > For scientific computation, consider the case of Numeric > > and Numarray. I don't think Numeric binaries are available for Python > > 2.4, > > ? Just > googled and visited the first hit -- I don't currently

Re: Need programming tip

2005-01-30 Thread beliavsky
A Usenet tip is that one should never use such a generic subject as "need programming tip" or the ever-popular "newbie question". In this case, "create a database of posts made to binary groups" could have been a better title, so that people unable to answer to the question and not interested in th

Re: Regarding exception handling

2005-01-30 Thread beliavsky
Aggelos I. Orfanakos wrote: > (I don't know why, but indentation was not preserved once I posted.) This problem and its possible solutions was discussed here in the thread "OT: spacing of code in Google Groups". -- http://mail.python.org/mailman/listinfo/python-list

Fortran pros and cons (was Re: Coding style article with interesting section on white space)

2005-01-30 Thread beliavsky
Michael Tobis wrote: > > Fortran programmers are generally happy with the portability of the > > language. > > Until they try to port something...? Honestly, I can't imagine where > anyone would get this impression. >From the fact that Fortran has been used on hundreds of platforms and that many

Re: Fortran pros and cons (was Re: Coding style article with interesting section on white space)

2005-01-30 Thread beliavsky
Michael Tobis wrote: > [EMAIL PROTECTED] wrote: > > Michael Tobis wrote: > > > Fortran 90/95 is more expressive than Fortran 77 in many ways, as > > described in ... > > http://www.nr.com/CiP97.pdf . > > > > > ... expresses more science per > > line of code and per programming workday. > > The exam

Re: How do you do arrays

2005-02-01 Thread beliavsky
If you want do numerical calculations with vectors and matrices, you should probably use the Numarray module. Python's built-in lists are not intended for heavy numerical computations. They are more flexible than the arrays in languages like C and Fortran in that they can store elements of differen

Re: How do you do arrays

2005-02-01 Thread beliavsky
wes weston wrote: > Thomas, > If you were allowed to do what you're doing, the > list first element would be getting skipped as "index" > is always > 0. The thing is, you don't want the "index" > var at all for adding to the list; just do jMatrix.append(k). > You can iterate over the list w

Re: Is there a market for python developers?

2005-02-03 Thread beliavsky
Mabon Dane wrote: > I am new to python and took my first attempts at working with this > language today. Is there a market for people who work with Python? You can Google this newsgroup for "[EMAIL PROTECTED] jobs" to find two messages I posted with statistics. -- http://mail.python.org/mailman

article on PyNSol in CISE

2005-06-21 Thread beliavsky
The July/August 2005 issue of Computing in Science & Engineering has an article by Michael Tobis about PyNSol (slides from the talk at http://geosci.uchicago.edu/~tobis/PS0/PS3.html ). It appears to be a code generation tool that takes a few equations specified by the user and translates them to Py

Re: Python, mysql, floating point values question

2005-07-03 Thread beliavsky
Dennis Lee Bieber wrote: > Considering how often this has come up, I've sort of lost faith > in CS programs at colleges. Now, this might be an unfair statement as I > don't know if any of those bringing up the question ever had college CS > courses... But the fluff of floating point data was

Re: FORTRAN like formatting

2005-07-09 Thread beliavsky
Dennis Lee Bieber wrote: > > On 7/8/05, Einstein, Daniel R <[EMAIL PROTECTED]> wrote: > > > > > > > > > Hi, > > > > > > Sorry for this, but I need to write ASCII from my Python to be read by > > > FORTRAN and the formatting is very important. Is there any way of doing > > > anything like: > > > >

use SciPy with Python 2.4.1?

2005-08-24 Thread beliavsky
Is SciPy usable with Python 2.4.1? At http://www.scipy.org/download/ it says that 2.3.3 is recommended, and I don't see a binary for 2.4.1. -- http://mail.python.org/mailman/listinfo/python-list

Re: Robust statistics and optimmization from Python

2005-08-29 Thread beliavsky
Robert Kern wrote: > If you find suitable > FORTRAN or C code that implements a particular "robust" algorithm, it > can probably wrapped for scipy relatively easily. An alternative would be to call R (a free statistical package) from Python, using something like the R/SPlus - Python Interface a

Re: First release of Shed Skin, a Python-to-C++ compiler.

2005-09-12 Thread beliavsky
A.B., Khalid wrote: > Mark Dufour wrote: > > After nine months of hard work, I am proud to introduce my baby to the > > world: an experimental Python-to-C++ compiler. > > Good work. > > I have good news and bad news. > > First the good news: ShedSkin (SS) more or less works on Windows. After > patc

ANN: PyTrilinos (wrapper for parallel linear algebra)

2005-09-19 Thread beliavsky
PyTrilinos is a Python wrapper for the Trilinos linear algebra library. It is described at http://software.sandia.gov/trilinos/packages/pytrilinos/index.html and in more detail in the PDF file at that site. It was just announced on NA Digest. I have not tried it myself. Here are some quotes from t

Re: scipy for python 2.4 on windows

2005-09-21 Thread beliavsky
Z.L. wrote: > I am a newbie to python, and have not so much experiences on package > installation and related issues. I am looking for Scipy binaries for > python 2.4 on windows. Please see the recent thread "use SciPy with Python 2.4.1?" for discussion of this. -- http://mail.python.org/mailman

Re: Python versus Perl ?

2005-02-06 Thread beliavsky
Jorgen Grahn wrote: > > I've read that many people prefer Python and that it is better than > > Perl. However, I want to ask a few other questions. > > I could go on and on, but this essay by Eric Raymond says it better: > > http://www.linuxjournal.com/article/3882 His survey of programming la

Re: declarations summary

2005-02-07 Thread beliavsky
Alex Martelli wrote: > > socks off yet again, but I can't see counting on it. So the successor > > to Fortran (presuming it isn't C++, which I do presume) may be > > influenced by Python, but probably it won't be Python. > > You appear to assume that Fortran is dead, or dying, or is gonna die > so

Re: Is Python as capable as Perl for sysadmin work?

2005-02-07 Thread beliavsky
John M. Gabriele wrote: > I recently posted this sort of question to the c.l.p.m but > didn't get much of a response. I know a little Perl and a > little Python, but master neither at the moment. > > I see that Python is a general purpose OO programming language > that finds use among some system

Re: Loop in list.

2005-02-10 Thread beliavsky
Jim wrote: > Wow! All I wanted to do was write the equivalence > of the Fortran statement: Real*4 matrix(n,n). If you are doing numerical linear algebra in Python, you should use the Numeric or Numarray modules. With Numeric, the equivalent is just from Numeric import zeros matrix = zeros([n,n]

exception handling for a function returning several values

2005-02-12 Thread beliavsky
If a function that normally returns N values raises an exception, what should it return? N values of None seems reasonable to me, so I would write code such as def foo(x): try: # code setting y and z return y,z except: return None,None y,z = foo(x) If I try to use y

Re: FS: O'Reilly Python Pocket Reference

2005-02-14 Thread beliavsky
I think a better place than this newsgroup to offer used Python books for sale is Amazon or Ebay or Alibris. -- http://mail.python.org/mailman/listinfo/python-list

naming convention for scalars, lists, dictionaries ...

2005-02-28 Thread beliavsky
Since Python does not have declarations, I wonder if people think it is good to name function arguments according to the type of data structure expected, with names like "xlist" or "xdict". -- http://mail.python.org/mailman/listinfo/python-list

GOTO (was Re: Appeal for python developers)

2005-03-05 Thread beliavsky
Torsten Bronger wrote: > Hallöchen! > > BOOGIEMAN <[EMAIL PROTECTED]> writes: > > > Please include "goto" command in future python realeses I know > > that proffesional programers doesn't like to use it, but for me as > > newbie it's too hard to get used replacing it with "while", "def" > > or othe

Re: survey

2005-03-05 Thread beliavsky
Dave Zhu wrote: > Hello All, > > Is there any survey on scripting languages? I would > like to get information on several scripting languages > including Python, Perl, Ruby, Tcl, etc. The Language Shootout at http://shootout.alioth.debian.org/ has code samples in many languages, both interpreted a

Re: survey

2005-03-12 Thread beliavsky
[EMAIL PROTECTED] wrote: > > The Language Shootout at http://shootout.alioth.debian.org/ has code > > samples in many languages, both interpreted and compiled, including > the > > ones you mentioned. Don't trust the lines-of-code statistics, though > -- > > the LOC measure is wrongly shown as zero

Re: Who Knows of a Good Computational Physics Textbook?

2005-03-13 Thread beliavsky
There is some info on teaching computational physics at Rubin Landau's site http://www.physics.orst.edu/~rubin/ . Springer recently published the book "Python Scripting for Computational Science" by Hans P. Langtangen . Searching "computational physics" at Amazon returns some relevant books. --

Re: Who Knows of a Good Computational Physics Textbook?

2005-03-14 Thread beliavsky
Sean Richards wrote: > This may be of interest > > http://farside.ph.utexas.edu/teaching/329/lectures/lectures.html The information at http://farside.ph.utexas.edu/teaching/329/lectures/node7.html about scientific programming languages is out of date, since g95 http://www.g95.org is a free Fortran

PyGoogle featured on Google Code

2005-03-17 Thread beliavsky
Google has started a site Google Code http://code.google.com/ to showcase Open Source software, and the first featured project is PyGoogle, a Python module wrapper for the Google Web APIs. Also mentioned is goopy/functional, a library that brings functional language attributes to Python. -- http:

Python tutorial for LinuxQuestions.org?

2005-03-18 Thread beliavsky
I think a short Python tutorial at LinuxQuestions.org http://www.linuxquestions.org/questions/answers.php?action=viewcat&catid=4 would be a good way of introducing Python to new programmers. There are currently tutorials there for C, C++, and Java that have been viewed thousands of times. Of course

Python 3000 and "Python Regrets"

2004-12-01 Thread beliavsky
I just came across the slides for Guido van Rossum's "Python Regrets" talk, given in 2002. It worries me that much of my Python code would be broken if all of his ideas were implemented. He doesn't even like 'print'. Of course, I am not qualified to argue with Van Rossum about the direction of Pyth

Replace string except inside quotes?

2004-12-03 Thread beliavsky
The code for text in open("file.txt","r"): print text.replace("foo","bar")[:-1] replaces 'foo' with 'bar' in a file, but how do I avoid changing text inside single or double quotes? For making changes to Python code, I would also like to avoid changing text in comments, either the '#' or '""

Re: your favorite quick reference? (was Python Docs. Hardcopy 2.4 Library Reference, interested?)

2004-12-11 Thread beliavsky
O'Reilly has CD bookshelves http://cdbookshelves.oreilly.com/ , combining their books on a topic into a CD, for various subjects, including Perl, but not yet for Python. I own the paper copies of several of their Python books. A single CD containing their books Jython Essentials Learning Python, 2

Re: lies about OOP

2004-12-14 Thread beliavsky
A paper finding that OOP can lead to more buggy software is at http://www.leshatton.org/IEEE_Soft_98a.html Les Hatton "Does OO sync with the way we think?", IEEE Software, 15(3), p.46-54 "This paper argues from real data that OO based systems written in C++ appear to increase the cost of fixing de

Re: mathmatical expressions evaluation

2004-12-22 Thread beliavsky
There is QuantLib at http://quantlib.org/ . The site says "QuantLib is written in C++ with a clean object model, and is then exported to different languages such as Python, Ruby, and Scheme." I have not tried it -- if it is easily usable from Python please write back to c.l.p. There is a Python Fi

Re: mathmatical expressions evaluation

2004-12-22 Thread beliavsky
Paul McGuire wrote: >And I wouldn't necessarily agree with beliavsky's assertion that numarray >arrays are needed to represent payment dates and amounts, unless you were >going to implement a major banking financial system in Python. Maybe arrays are not "needed", but especially for vectors of flo

Re: Complementary language?

2004-12-26 Thread beliavsky
Robert Kern wrote: >If you do numeric calculations, learning just enough FORTRAN to do loops >and math can be quite useful. I find that F2PY makes writing FORTRAN >subroutines for numerical calculations over Numeric arrays much easier >than C. I agree with this and would add that Fortran, from th

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread beliavsky
I like the current edition. Since it is a reference work, I would like to see it in a CD-ROM as well as in print, either packaged with a book or as part of a Python CD Bookshelf, analogous to the other CD bookshelves O'Reilly offers. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting the word to conventional programmers

2005-03-23 Thread beliavsky
Advocates of languages and programming methodologies sometimes compare the current version of their favorite language to an old version of their disfavored language, resulting in skewed comparisons. For example, Conway writes "Interpreted languages do two things much better than compiled languages

Re: looking for programmer

2005-03-24 Thread beliavsky
Peter Tyler wrote: > Hi There, >I'm looking for someone to write some wx/python code on a small job, but want > to avoid a spam invasion. > I was thinking of setting up a temp yahoo account for people to respond to. > Is this the right way of going about this, or is there somewhere else I shoul

Re: Getting the word to conventional programmers

2005-03-24 Thread beliavsky
Terry Reedy wrote: > "Cameron Laird" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > *DevSource* profiles "The State of the Scripting Universe" in > > http://www.devsource.com/article2/0,1759,1778141,00.asp >. > > Interesting quote from Guido: "If the same effort were poured into

Use informative subject lines! (was Re: Dumb*ss newbie Q)

2005-03-27 Thread beliavsky
A subject line should say what the message is about, for example "Create HTML tag using objects (newbie Q)" and enable people who are not interested in or knowledgable about a topic to skip it, while grabbing the attention of people who are knowledgable/interested. -- http://mail.python.org/mai

Re: author index for Python Cookbook 2?

2005-03-30 Thread beliavsky
Premshree Pillai wrote: > There's an index here: http://harvestman.freezope.org/cookbook/creds.html That lists the authors. Where is a list of the recipes? -- http://mail.python.org/mailman/listinfo/python-list

TOC of Python Cookbook now online (was Re: author index for Python Cookbook 2?)

2005-03-30 Thread beliavsky
[EMAIL PROTECTED] wrote: > Premshree Pillai wrote: > > There's an index here: > http://harvestman.freezope.org/cookbook/creds.html > > That lists the authors. Where is a list of the recipes? I emailed the O'Reilly webmaster, and the table of contents are now online at http://www.oreilly.com/catalo

Re: text analysis in python

2005-04-03 Thread beliavsky
The book "Text Processing in Python" by David Mertz, available online at http://gnosis.cx/TPiP/ , may be helpful. -- http://mail.python.org/mailman/listinfo/python-list

Re: Symbol Referencing Error in Fortran 90

2005-04-04 Thread beliavsky
This message was also posted and replied to on comp.lang.fortran -- I think it's presence here is an accident. -- http://mail.python.org/mailman/listinfo/python-list

Re: TOC of Python Cookbook now online (was Re: author index for Python Cookbook 2?)

2005-04-04 Thread beliavsky
robin wrote: > [EMAIL PROTECTED] wrote: > > >I emailed the O'Reilly webmaster, and the table of contents are now > >online at http://www.oreilly.com/catalog/pythoncook2/toc.html and also > >listed below. > > Unfortunately there is no list of authors for the sections in the > book. This is likely it

Re: Best editor?

2005-04-05 Thread beliavsky
ChinStrap wrote: > When not using the interactive prompt, what are you using? I keep > hearing everyone say Emacs, but I can't understand it at all. I keep > trying to learn and understand why so many seem to like it because I > can't understand customization even without going through a hundred >

Re: UselessPython 2.0

2005-04-10 Thread beliavsky
Nice idea for a site, but I suggest renaming it to something like FunPython.com . My guess from reading the subject of your message was that you hated Python! Besides, "fun" is shorter than "useless" and is therefore more Pythonic :). -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Language for Systems Administrator

2005-04-12 Thread beliavsky
Ville Vainio wrote: > If you don't need to edit already existing system scripts, you don't > really need to know bash scripting. For debugging purposes, it's easy > to see what commands the script executes to perform a task. > > You just need to know about `backticks` and $ENV_VARS, but that's mor

Re: Programming Language for Systems Administrator

2005-04-12 Thread beliavsky
Brian van den Broek wrote: > [EMAIL PROTECTED] said unto the world upon 2005-04-12 08:11: > > > > > I actually like the Windows cmd language (it's an acquired taste), but > > I have read it is going away in Windows Longhorn (WH). That's an > > argument for writing more complicated scripts in Pytho

Re: preallocate list

2005-04-13 Thread beliavsky
Jim wrote: > Hi all > > Is this the best way to preallocate a list of integers? > listName = range(0,length) For serious numerical work you should use Numeric or Numarray, as others suggested. When I do allocate lists the initial values 0:n-1 are rarely what I want, so I use ivec = n*[None] so t

Re: ANN: Python 2.3.2 for PalmOS available

2005-04-18 Thread beliavsky
What are the potential applications of Python on PalmOS? Just curious. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread beliavsky
Terry Hancock wrote: > So I like Python's slicing because it "bites *less*" than intervals in C or Fortran. I disagree. Programming languages should not needlessly surprise people, and a newbie to Python probably expects that x[1:3] = [x[1],x[2],x[3]] . Array-oriented languages, such as Fortran

Re: Define Constants

2005-04-21 Thread beliavsky
A "recipe" for "Constants in Python" by Alex Martelli is at http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65207 . -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Python does *SLICING* the way it does??

2005-04-21 Thread beliavsky
Dan Bishop wrote: > Antoon Pardon wrote: > > Like users have a choice in how long they make a list, they > > should have a choice where the indexes start. (And that > > shouldn't be limited to 0 and 1). > > Suppose you could. Then what should > > ([3, 1, 4] indexbase 0) + ([1, 5, 9] indexbase

Re: Can .py be complied?

2005-04-28 Thread beliavsky
IMO the fact that so many people ask "How can I create executables in Python on Windows" indicates that standard "batteries included" Windows Python distribution is missing a vital battery. There are tools such as py2exe, but this functionality should be built-in, so that a newbie to Python can j

Re: OOP

2005-04-28 Thread beliavsky
[EMAIL PROTECTED] wrote: > Hey yall, > I'm new to Python and I love it. Now I can get most of the topics > covered with the Python tutorials I've read but the one thats just > stumping me is Object Orientation. I can't get the grasp of it. Does > anyone know of a good resource that could possibly p

Re: Python 3.x adoption

2014-01-17 Thread beliavsky
On Tuesday, January 14, 2014 2:38:29 PM UTC-5, Skip Montanaro wrote: > > What's the problem with Python 3.x? It was first released in 2008, but > > > web hosting companies still seem to offer Python 2.x rather. > > > > > > For example, Google App Engine only offers Python 2.7. > > > > > > What

Re: Python 3.x adoption

2014-01-18 Thread beliavsky
On Friday, January 17, 2014 6:03:45 PM UTC-5, Terry Reedy wrote: > On 1/17/2014 5:16 PM, beliav...@aol.com wrote: > > Python 2 and 3 are incompatible in ways that do not apply to Fortran > > > standards pre- and post- F77. > > > > As stated above, I disagree with respect to pre-F77 and F77

Re: [OT] fortran lib which provide python like data type

2015-01-29 Thread beliavsky
On Thursday, January 29, 2015 at 10:01:00 AM UTC-5, Liu Zhenhai wrote: > Hi, > I am not sure here is the right place to ask this question, but I want to > give it a shot:) > are there fortran libs providing python like data type, such as set, dict, > list? > Thanks, > Yours liuzhenhai The "Fortr

Re: [OT] fortran lib which provide python like data type

2015-02-02 Thread beliavsky
On Friday, January 30, 2015 at 5:51:38 PM UTC-5, Gregory Ewing wrote: > Michael Torrie wrote: > > On 01/30/2015 10:31 AM, Rustom Mody wrote: > > > >>And what about the grey area between lightweight and heavyweight? > > > > That's what the smart pointers are for. > > I'd say it's what higher-leve

Python(x,y) interferes with earlier Numpy installation

2014-02-13 Thread beliavsky
I am running Python 2.7.5 on Windows 7 and installed Numpy, which worked. Then I installed Python(x,y) from a file Python(x,y)-2.7.5.2.exe, and now running the script from numpy import array, size, shape, min, max, sum a = array([1, 2, 3]) print shape(a) gives the error messages Traceback (most

Re: Python(x,y) interferes with earlier Numpy installation

2014-02-13 Thread beliavsky
I fixed the problem by reinstalling Numpy. -- https://mail.python.org/mailman/listinfo/python-list

Re: Best Python book(s) for a pre-teen?

2013-08-01 Thread beliavsky
On Tuesday, February 18, 2003 2:27:58 PM UTC-5, Mike Silva wrote: > Hi all, > > My son is 11 and wants to try programming, partly because it's what I > do for a living. Even though I don't (yet?) use or even know Python, > through some unexplainable thought process I've decided it would be a > go

Re: EuroPython 2015: Django Girls Workshop

2015-04-17 Thread beliavsky
On Friday, April 17, 2015 at 1:25:51 PM UTC-4, M.-A. Lemburg wrote: > We are happy to announce that we will be hosting a Django Girls Workshop > during the EuroPython 2015. It will take place on 20th of July, the > first day of the conference. > > We believe in the work that this group is doing to

lists vs. NumPy arrays for sets of dates and strings

2014-06-09 Thread beliavsky
I am going to read a multivariate time series from a CSV file that looks like Date,A,B 2014-01-01,10.0,20.0 2014-01-02,10.1,19.9 ... The numerical data I will store in a NumPy array, since they are more convenient to work with than lists of lists. What are the advantages and disadvantages of st

Re: Python 3 is killing Python

2014-08-06 Thread beliavsky
On Wednesday, May 28, 2014 6:38:22 PM UTC-4, Ben Finney wrote: > Larry Martell writes: > > > > > No company that I work for is using python 3 - they just have too much > > > of an investment in a python 2 code base to switch. > > > > There are many large companies still using FORTRAN and CO

  1   2   3   >