[OT] Re: Ordering of dict keys & values

2009-08-03 Thread Benjamin Kaplan
On Mon, Aug 3, 2009 at 9:18 PM, Gabriel Genellina wrote: > > [1] If you don't know what "SQL injection" means, see http://xkcd.com/327/ I love how XKCD is one of the preferred learning tools (along with Wikipeida) for people on this list. I think Randall Munroe should make a comic about it. :) --

Re: Problem in installing PyGreSQL

2009-08-04 Thread Benjamin Kaplan
On Tue, Aug 4, 2009 at 8:48 AM, D'Arcy J.M. Cain wrote: > On Tue, 04 Aug 2009 00:42:25 -0400 > David Lyon wrote: >> > Then I tried to download the module.But I am not able to download it. >> >> Did none of the links here work? >> >> http://www.pygresql.org/readme.html#where-to-get > > The RPM seem

Re: Problem in installing PyGreSQL

2009-08-04 Thread Benjamin Kaplan
On Tue, Aug 4, 2009 at 9:55 AM, D'Arcy J.M. Cain wrote: > On Tue, 4 Aug 2009 09:03:55 -0400 > Benjamin Kaplan wrote: >> Doesn't matter here. Debians use DEBs (DEBian packages), not RPMs (for >> the Red Hat Package Manager). Either way, the OP can't install syst

Re: pylucene installation problem on Ubuntu 9.04

2009-08-06 Thread Benjamin Kaplan
On Thu, Aug 6, 2009 at 2:49 PM, KK wrote: > > kk-laptop$ sudo apt-get install pylucene > and it did install python2.5, python2.5-minimal and pylucene. I must > mention one thing that I already had python2.6 on my box as the > default python i.e /usr/bin/python is linked to python2.6. Anyway s, > no

Re: Character encoding & the copyright symbol

2009-08-06 Thread Benjamin Kaplan
On Thu, Aug 6, 2009 at 12:41 PM, Robert Dailey wrote: > On Aug 6, 11:31 am, "Richard Brodie" wrote: >> "Robert Dailey" wrote in message >> >> news:29ab0981-b95d-4435-91bd-a7a520419...@b15g2000yqd.googlegroups.com... >> >> > UnicodeEncodeError: 'charmap' codec can't encode character '\xa9' in >> >

Re: how to overload operator "< <" (a < x < b)?

2009-08-07 Thread Benjamin Kaplan
On Fri, Aug 7, 2009 at 8:00 AM, dmitrey wrote: > hi all, > is it possible to overload operator "<  <"? (And other like this one, > eg "<=  <=", ">  >", ">=  >=") > Any URL/example? > Thank you in advance, D. That isn't an operator at all. Python does not support compound comparisons like that. You

Re: compression level with tarfile (w:gz) ?

2009-08-10 Thread Benjamin Kaplan
On Mon, Aug 10, 2009 at 8:50 AM, Esmail wrote: > Hello, > > I was wondering if it possible to specify a compression level when I > tar/gzip a file in Python using the tarfile module. I would like to > specify the highest (9) compression level for gzip. > > Ideally: > >   t = tarfile.open(tar_file_n

Re: compression level with tarfile (w:gz) ?

2009-08-10 Thread Benjamin Kaplan
On Mon, Aug 10, 2009 at 9:37 AM, Esmail wrote: > Benjamin Kaplan wrote: >> >> On Mon, Aug 10, 2009 at 8:50 AM, Esmail wrote: >>> >>> I was wondering if it possible to specify a compression level when I >>> tar/gzip a file in Python using the tarfile modul

Re: i Don't get why it makes trouble

2009-08-13 Thread Benjamin Kaplan
On Thu, Aug 13, 2009 at 4:09 PM, Philip Semanchuk wrote: > > On Aug 13, 2009, at 2:56 PM, azrael wrote: > > j > [u'Tata', u'Oriovac', u'PrimorskoGoranska', u'hrvatska', u'Kuna'] >> >>> len(j) > 5 >> >>> h = """SELECT distinct u.id_ulica, o.id_opcina, z.id_zupanija, > d.id_dr

Re: OT Signature quote [was Re: Unrecognized escape sequences in string literals]

2009-08-14 Thread Benjamin Kaplan
On Fri, Aug 14, 2009 at 12:42 PM, Douglas Alan wrote: > > P.S. Overloading "left shift" to mean "output" does indeed seem a bit > sketchy, but in 15 years of C++ programming, I've never seen it cause > any confusion or bugs. The only reason it hasn't is because people use it in "Hello World". I

Re: Python 'for' loop is memory inefficient

2009-08-16 Thread Benjamin Kaplan
On Sun, Aug 16, 2009 at 2:30 AM, Emmanuel Surleau wrote: > > I don't see what's particularly un-Pythonic with this code. Not using xrange() > is a mistake, certainly, but it remains clear, easily understandable code > which correctly demonstrates the naive algorithm for detecting whether n is a >

Re: Python 'for' loop is memory inefficient

2009-08-16 Thread Benjamin Kaplan
On Sun, Aug 16, 2009 at 6:35 PM, sturlamolden wrote: > > A compiler could easily recognise a statement like > >   for i in range(n): > > as a simple integer loop. In fact, Cython is able to do this. but special cases aren't special enough to break the rules. -- http://mail.python.org/mailman/lis

Re: IDLE is not as interactive as Maple

2009-08-20 Thread Benjamin Kaplan
On Wed, Aug 19, 2009 at 11:22 PM, laser wrote: > In the future, will Python provide programe enviroment like Maple > does? In Maple, you can remove anything unneeded in the editor. And > the code execution order are not necessary in one direction. You can > run any command line on the screen by > p

Re: Silly question

2009-08-20 Thread Benjamin Kaplan
On Thu, Aug 20, 2009 at 2:13 PM, David C Ullrich wrote: > I just noticed that > >  sequence[i:j:k] > > syntax in a post here. When did this happen? > > (I'm just curious whether it existed in 1.5.x or not. > If so I'm stupid - otoh if it was introduced in 2.x > I'm just slow...) > Well, I got some

Re: install package in a particular python version

2009-08-20 Thread Benjamin Kaplan
whoops, sent it to you instead of the list On Thu, Aug 20, 2009 at 9:05 PM, Benjamin Kaplan wrote: > On Thu, Aug 20, 2009 at 8:57 PM, Steve1234 wrote: >> >> I installed the boto module in my Ubuntu system using "python setup.py >> install" and it installs in my py

Re: unexpected token `;'

2009-08-25 Thread Benjamin Kaplan
On Tue, Aug 25, 2009 at 7:25 AM, Diez B. Roggisch wrote: > > > Hello to all! > > > > I am struggling with a script in python for a while now, and decided > > to look for some help. I am running a code that takes commands from > > Marsyas(open source for Music analysis). > > > > #!/Library/Framewor

Re: Does Class implements Interface?

2009-08-27 Thread Benjamin Kaplan
On Thu, Aug 27, 2009 at 9:16 AM, Emanuele D'Arrigo wrote: > Greetings everybody, > > let's say I have a Class C and I'd like to verify if it implements > Interface I. If I is available to me as a class object I can use > issubclass(C, I) and I can at least verify that I is a superclass of > C. Th

Re: Question on the "csv" library

2009-08-27 Thread Benjamin Kaplan
On Thu, Aug 27, 2009 at 3:06 PM, vsoler wrote: > > I am trying to read a csv file generated by excel. > > Although I succeed in reading the file, the format that I get is not > suitable for me. > > I've done: > > >>> import csv > >>> spamReader = csv.reader(open('C:\\abc.csv', 'r')) > > >>> print

Re: why python got less developers ?

2009-08-27 Thread Benjamin Kaplan
On Thu, Aug 27, 2009 at 10:12 PM, Esam Qanadeely wrote: > On Aug 28, 3:46 am, Chris Rebert wrote: >> On Thu, Aug 27, 2009 at 5:34 PM, Deep_Feelings wrote: >> > python got relatively fewer numbers of developers than other high >> > level languages like .NET , java .. etc  why ? >> >> We lack Sun an

Re: Python installation

2009-08-31 Thread Benjamin Kaplan
On Mon, Aug 31, 2009 at 9:32 PM, Vo, Trinh (388C) wrote: > Hello Python Users, > > > > I am new to Python.  I have errors message when I installed Python.  I > appreciate if you can help. > > > > I download Python-2.6-2.  I then did the following steps: > > ./configure > > make > > > > In the secon

Re: Q on naming nested packages/modules

2009-09-01 Thread Benjamin Kaplan
On Tue, Sep 1, 2009 at 11:58 AM, kj wrote: > > > > I'm having a hard time getting the hang of Python's package/module > scheme.  I'd like to find out what's considered best practice when > dealing with the scenario illustrated below. > > The quick description of the problem is: how can I have two n

Re: print syntax

2009-09-03 Thread Benjamin Kaplan
On Thu, Sep 3, 2009 at 12:22 PM, wrote: > I am new to python, working by way through 'Core Python Programming'. I can > find no description of using print with the built-in type for formatting. I > think I have got some [most?] of it from Chun, google, and python.org. My > comment is - it should n

Re: beginner's python help

2009-09-06 Thread Benjamin Kaplan
On Sun, Sep 6, 2009 at 4:28 AM, Maggie wrote: > On Sep 6, 4:19 am, Chris Rebert wrote: >> On Sun, Sep 6, 2009 at 1:10 AM, Maggie wrote: >> > On Sep 6, 3:58 am, Chris Rebert wrote: >> >> On Sun, Sep 6, 2009 at 12:54 AM, hrishy wrote: >> >> > Hi >> >> >> > sum = 0 >> >> >  for item in readData: >>

Re: Is "#!/usr/bin/env python" the better shebang line ?

2009-09-06 Thread Benjamin Kaplan
On Sun, Sep 6, 2009 at 10:01 AM, Timothy Madden wrote: > Hello > > Sorry if this has been discussed before, my search did not find it. > My questions is if I should use >  #!/usr/bin/env python > as the shebang line in a portable and open python script and if it does help > with portability and usa

Re: using python interpreters per thread in C++ program

2009-09-07 Thread Benjamin Kaplan
On Mon, Sep 7, 2009 at 6:31 PM, Mark Hammond wrote: > On 7/09/2009 10:50 PM, MRAB wrote: >> >> sturlamolden wrote: >>> >>> On 7 Sep, 13:53, ganesh wrote: >>> I need to use these to get the proper concurrency in my multi-threaded application without any synchronization mechanisms. >>> >>>

Re: Simple Text Processing

2009-09-10 Thread Benjamin Kaplan
On Thu, Sep 10, 2009 at 11:36 AM, AJAskey wrote: > New to Python. I can solve the problem in perl by using "split()" to > an array. Can't figure it out in Python. > > I'm reading variable lines of text. I want to use the first number I > find. The problem is the lines are variable. > > Input

Re: Why can't I run this test class?

2009-09-11 Thread Benjamin Kaplan
On Fri, Sep 11, 2009 at 4:01 AM, Kermit Mei wrote: > On Fri, 2009-09-11 at 00:43 -0700, Chris Rebert wrote: > > On Fri, Sep 11, 2009 at 12:40 AM, Kermit Mei > wrote: > > > On Fri, 2009-09-11 at 00:33 -0700, Chris Rebert wrote: > > >> On Fri, Sep 11, 2009 at 12:30 AM, Kermit Mei > wrote: > > >>

Re: Python and flash charts

2009-09-15 Thread Benjamin Kaplan
On Tue, Sep 15, 2009 at 10:06 AM, Massi wrote: > > Hi everyone, I'm trying to incorporate in my script flash charts like > those of yahoo finance (for example this: > http://it.finance.yahoo.com/echarts?s=^DJI#symbol=^DJI;range=1d), > possibly using wxpython. Does anybody have any idea on how to d

Re: Re: Can print() be reloaded for a user defined class?

2009-09-20 Thread Benjamin Kaplan
On Sun, Sep 20, 2009 at 11:16 AM, Peng Yu wrote: > On Sun, Sep 20, 2009 at 9:19 AM, Dave Angel wrote: >> Peng Yu wrote: >>> >>> you might use: >>> >>> Is __repr__ =_str__ copy by reference or by value? If I change >>> __str__ later on, will __repr__ be changed automatically? >>> >

Re: How to refer to class name and function name in a python program?

2009-09-20 Thread Benjamin Kaplan
On Sun, Sep 20, 2009 at 12:43 PM, Peng Yu wrote: > On Sun, Sep 20, 2009 at 11:32 AM, Vijayendra Bapte > wrote: >> On Sep 20, 8:38 pm, Peng Yu wrote: >>> Hi, >>> >>> I have the following code. I want to change the function body of >>> __repr__ to something like >>> >>>     return 'In %s::%s' % ($

Re: raise errors

2009-09-21 Thread Benjamin Kaplan
On Mon, Sep 21, 2009 at 5:17 AM, daved170 wrote: > Hi everybody, > I need help with exceptions raising. > My goal is to print at the outer functions all the errors including > the most inner one. > > For example: > > def foo1(self): >   try: >        foo2() >   except ? : >         print "outer Er

Re: arrays in python

2009-09-23 Thread Benjamin Kaplan
On Sep 23, 2009, at 1:16 PM, Rudolf wrote: > Can someone tell me how to allocate single and multidimensional arrays > in python. I looked online and it says to do the following x = > ['1','2','3','4'] > > However, I want a much larger array like a 100 elements, so I cant > possibly do that. I wan

Re: How to convert (unicode) text to image?

2010-08-27 Thread Benjamin Kaplan
On Fri, Aug 27, 2010 at 8:01 PM, kj wrote: > > > Hi!  Does anyone know of an easy way to convert a Unicode string into an > image file (either jpg or png)? > Do you mean you have some text and you want an image containing that text? PIL's ImageDraw module can do that. -- http://mail.python.org/

Re: python 2.6.6 installation problems on osx

2010-08-30 Thread Benjamin Kaplan
On Mon, Aug 30, 2010 at 10:29 AM, jal wrote: > Hi All, > > I'm attempting a framework install of python 2.6.6 from source, on an > intel mac running osx 10.6.4. > > At the end of the install the following errors occur. > > install: mkdir /usr/local/bin: Permission denied > make[1]: *** [altinstall

Re: Stackless Python and EVE Online

2010-08-31 Thread Benjamin Kaplan
On Tuesday, August 31, 2010, Roman Sokolyuk wrote: > Hi, > > I am new to Python and I wanted to understand something... > The EVE Online Client is build using Stackless Python > So when I install the client on my machine, how doe sit get run if I do not > have Python installed? > We call it "free

Re: Stackless Python and EVE Online

2010-08-31 Thread Benjamin Kaplan
On Tue, Aug 31, 2010 at 5:45 PM, Krister Svanlund wrote: > On Tue, Aug 31, 2010 at 5:10 PM, Benjamin Kaplan > wrote: >> On Tuesday, August 31, 2010, Roman Sokolyuk wrote: >>> Hi, >>> >>> I am new to Python and I wanted to understand something... &

Re: accessing a text file

2010-09-05 Thread Benjamin Kaplan
On Sun, Sep 5, 2010 at 5:47 PM, Baba wrote: > level: beginner > > how can i access the contents of a text file in Python? > > i would like to compare a string (word) with the content of a text > file (word_list). i want to see if word is in word_list. let's assume > the TXT file is stored in the s

Re: Database problems

2010-09-06 Thread Benjamin Kaplan
On Mon, Sep 6, 2010 at 3:01 PM, Edward Grefenstette wrote: > Dear Pythonistas, > > For a project I'm working on, I need to store fairly large > dictionaries (several million keys) in some form (obviously not in > memory). The obvious course of action was to use a database of some > sort. > > The o

Re: The Samurai Principle

2010-09-07 Thread Benjamin Kaplan
On Tue, Sep 7, 2010 at 6:20 PM, Phlip wrote: > On Sep 7, 1:06 pm, Bruno Desthuilliers > wrote: > >> try: >>    return Model.objects.get(pk=42) >> except Model.DoesNotExist: >>    return sentinel > > Visual Basic Classic had a Collection Class, which worked essentially > like a real language's Has

Re: listening socket

2010-09-08 Thread Benjamin Kaplan
On Wed, Sep 8, 2010 at 12:59 PM, cerr wrote: > Hi, > > I'm trying to create a listening socket connection on port 1514. > I tried to follow the documentation at: > http://docs.python.org/release/2.5.2/lib/socket-example.html > and came up with following lines: > import socket > > host = ''        

Re: Slice a list of lists?

2010-09-08 Thread Benjamin Kaplan
On Wed, Sep 8, 2010 at 2:55 PM, Jonno wrote: > I know that I can index into a list of lists like this: > a=[[1,2,3],[4,5,6],[7,8,9]] > a[0][2]=3 > a[2][0]=7 > > but when I try to use fancy indexing to select the first item in each > list I get: > a[0][:]=[1,2,3] > a[:][0]=[1,2,3] > > Why is this a

Re: Slice a list of lists?

2010-09-08 Thread Benjamin Kaplan
On Wed, Sep 8, 2010 at 4:23 PM, Jonno wrote: > On Wed, Sep 8, 2010 at 3:18 PM, Jonno wrote: >> On Wed, Sep 8, 2010 at 3:06 PM, Jonno wrote: >>> On Wed, Sep 8, 2010 at 2:11 PM, Benjamin Kaplan >>> wrote: >>>> On Wed, Sep 8, 2010 at 2:55 PM, Jonno wrot

Re: how to extract an implicit dict expression (with statement return)

2010-09-09 Thread Benjamin Kaplan
On Thu, Sep 9, 2010 at 11:20 AM, Fritz Loseries wrote: > Hi, > > I do not know how to subject my problem in a better way. > > I have the following statement: > >    return [ dict(x1 = elem.x1, x2 = elem.x2, x3 = elem.x3,) >                for elem in method(in_values) >              ] > > How can

Re: default value for __init__ doesn't work

2010-09-10 Thread Benjamin Kaplan
On Sat, Sep 11, 2010 at 12:38 AM, 人言落日是天涯,望极天涯不见家 wrote: > Please look at below code snippet: > class test(): >    def __init__(self, a, dic={}): >        self.a = a >        self.dic = dic >        print('__init__ params:',a, dic) > This is a pretty popular mistake to make. Default arguments ar

Re: bug in python documentation?

2010-09-11 Thread Benjamin Kaplan
On Sat, Sep 11, 2010 at 11:34 AM, Vito 'ZeD' De Tullio wrote: > from http://docs.python.org/library/unittest.html > > -->8>8>8>8>8>8>8>8>8>8>8>8-- > > Here is a short script to test three functions from the random module: > > import random > import unitt

Re: Install python-mcrypt on Ubuntu

2010-09-14 Thread Benjamin Kaplan
On Tue, Sep 14, 2010 at 10:26 AM, lsolesen wrote: > > mcrypt.c:23:20: error: mcrypt.h: No such file or directory Well, there's your problem. You don't have the mcrypt headers installed. sudo apt-get install libmcrypt-dev -- http://mail.python.org/mailman/listinfo/python-list

Re: String formatting with the format string syntax

2010-09-14 Thread Benjamin Kaplan
On Tue, Sep 14, 2010 at 3:20 PM, Thomas Jollans wrote: > On Tuesday 14 September 2010, it occurred to Miki to exclaim: >> You can use ** syntax: >> >>> english = {'hello':'hello'} >> >>> s.format(**english) > > No, you can't. This only works with dicts, not with arbitrary mappings, or > dict subcl

Re: Too much code - slicing

2010-09-16 Thread Benjamin Kaplan
On Thu, Sep 16, 2010 at 3:35 PM, DataSmash wrote: > I need to create a simple utility to remove characters from either the > right or left side of directories. > This works, but there has to be a better way.  I tried to use a > variable inside the brackets but I can't get > that to work.  Can anyo

Re: Pyflakes and IPython does not work for Emacs on Windows?

2010-09-24 Thread Benjamin Kaplan
On Friday, September 24, 2010, Dsrt Egle wrote: > Hi, > > With Python on Windows, I tried to use Emacs as the programming > environment. For syntax checking I installed pyflakes, but flymake > always reports "fail to launch. No such file or directory: pyflakes" > when opening a Python file. Is pyf

Re: Random math op

2010-10-02 Thread Benjamin Kaplan
use the add, sub, div, and mul functions in the operator module. Stick them in a list, and then randomly pull one out. On Sat, Oct 2, 2010 at 12:53 PM, Hugo Léveillé wrote: > Hi > let say I have a simple math apps that randomize number X and number Y. > How would you randomize between '/','*','+

Re: direct print to log file

2010-10-05 Thread Benjamin Kaplan
On Tue, Oct 5, 2010 at 10:41 AM, Dave Angel wrote: > On 2:59 PM, Dirk Nachbar wrote: > >> How can I direct all print to a log file, eg some functions have their >> own print and I cannot put a f.write() in front of it. >> >> Dirk >> >> > When code does a print() without specifying a file, it goe

Re: unicode problem?

2010-10-09 Thread Benjamin Kaplan
On Sat, Oct 9, 2010 at 7:59 PM, Brian Blais wrote: > This may be a stemming from my complete ignorance of unicode, but when I do > this (Python 2.6): > > s='\xc2\xa9 2008 \r\n' > > and I want the ascii version of it, ignoring any non-ascii chars, I thought I > could do: > > s.encode('ascii','ign

Re: open file on mac

2010-10-10 Thread Benjamin Kaplan
On Sun, Oct 10, 2010 at 5:29 PM, tinauser wrote: > On Oct 10, 6:54 am, Lawrence D'Oliveiro central.gen.new_zealand> wrote: >> In message >> , >> >> tinauser wrote: >> > now,the file will be opened only if i give the full path, not if i >> > give only the name of the file, although the folder is i

Re: what difference does redirection make?

2010-10-17 Thread Benjamin Kaplan
On Sun, Oct 17, 2010 at 3:04 PM, Nikola Skoric wrote: > When I execute > n...@rilmir:~/code/simplepyged/docs/examples$ python latex.py > I get expected output (bunch of latex markup). > > But, when I add a redirection, I get: > n...@rilmir:~/code/simplepyged/docs/examples$ python latex.py > foo.te

Re: OO and game design questions

2010-10-18 Thread Benjamin Kaplan
On Mon, Oct 18, 2010 at 9:50 AM, dex wrote: >> You're aware Python can collect reference cycles, correct?  You don't >> have to delete references; Python will get them eventually. > > I'm not sure I understand this part? If I don't delete all strong > references, the object will not be deleted. >

Re: linking on OSX Snow Leopard

2010-10-24 Thread Benjamin Kaplan
On Sun, Oct 24, 2010 at 4:15 PM, john skaller wrote: > I'm not able to find the shared library version of Python3 on my Mac. > There are libpython.dylib things for Python2. There is a Python3 > libpython.a static lib. > > > The docs on linking indicate a serious problem, there is mention > of app

Re: Why "flat is better than nested"?

2010-10-26 Thread Benjamin Kaplan
On Tue, Oct 26, 2010 at 9:05 AM, kj wrote: > In Terry Reedy > writes: > >>On 10/25/2010 3:11 PM, kj wrote: > >>> Well, it's pretty *enshrined*, wouldn't you say? > >>No. > >> >  After all, it is part of the standard distribution, > >>So is 'import antigravity' > > Are you playing with my feelin

Re: Is there a way to pring a list object in Python?

2010-10-31 Thread Benjamin Kaplan
On Sun, Oct 31, 2010 at 3:04 PM, Zeynel wrote: > >        Rep().replist = L >        Rep().put() >        query = Rep.all() >        for result in query: >            self.response.out.write(result.replist) > > The output of this is: > > [u'a', u'b'][u'a', u'b'][u'a', u'b']. . . > > So, these are

Re: [Beginer Question] I heard about python needing somesort of_VariableName_ boiler plate?

2010-11-01 Thread Benjamin Kaplan
On Mon, Nov 1, 2010 at 2:18 PM, wrote: > Sorry that is what I mean. What is it for? > Sent wirelessly from my BlackBerry. > What is what for? There is no boiler plate on variable names. *BY CONVENTION*, variables and methods with a special meaning will start and end with two underscores. *BY CON

Re: serial I/O install fail -- DLL not found

2010-11-01 Thread Benjamin Kaplan
On Mon, Nov 1, 2010 at 5:55 PM, Fossil wrote: > Just starting with Python. > Installed: >  Python 2.7 >  pywin32-214.win32-py2.7.exe >  pyserial-2.5.win32.exe > on a Home WinXP SP3 Toshiba laptop with 2GB memory.  Open Python and > try to do simple I/O test and can't even get past first line. > Tr

Re: execute shell script from python, needs sys.argv

2010-11-04 Thread Benjamin Kaplan
On Thu, Nov 4, 2010 at 11:37 AM, Matt wrote: > Hi All, > > I am trying to execute a shell script from within python..  This shell > script takes the format, where $1 and $2 are variables from the > command line: cat $1 | Fastx_trimmer -n COUNT -o $2 > > straight into the cmd line it would be:  cat

Re: Making ActivePython and Python co-exist on Windows

2010-11-07 Thread Benjamin Kaplan
On Sun, Nov 7, 2010 at 2:25 PM, CWC wrote: > I'm new to Python.  Is it possible to make ActivePython 3.12 and > Python 3.12 co-exist on Windows?  I've got an app which requires the > former, but I want to stay with the latter, since I'm interested in > getting into development.  The main area of c

Re: [Python] scipy code runs in empty directory, not another

2010-11-13 Thread Benjamin Kaplan
On Saturday, November 13, 2010, Chris Gonnerman wrote: > On 11/13/2010 07:52 AM, Beliavsky wrote: > > After installing numpy, scipy, and matplotlib for python 2.6 and > running the code from http://www.scipy.org/Cookbook/OptimizationDemo1 > (stored as xoptimize.py) in a directory with other python

<    3   4   5   6   7   8