Re: * in Python

2006-06-24 Thread placid
Bruno Desthuilliers wrote: > placid wrote: > > Bruno Desthuilliers wrote: > > > (snip) > >>Why don't you try by yourself in the Python shell ? One of the nice > >>things with Python is that it's quite easy to explore and experiment. > > > > > > i did try it in a Python shell after i learnt what i

HTTP server

2006-06-24 Thread placid
Hi all, Ive been reading about creating a HTTP server like the one pydoc creates (and studying pydoc source code). What i want to know, is it possible to create server that creates a webpage with hyperlinks that communicate back to the HTTP server, where each link accessed tells the server to exec

sum fonction in gadfly

2006-06-24 Thread jean-jeanot
I am writing a prototype program whose aim is to collect bookkeeping transactions in a Database ( Gadfly). After creating the table I create the variables with varAmount = StringVar() I then create labels in Tkinter to ease the input of data. With a function def treatment (): requete = "insert

PyGTK and Py2Exe troubles

2006-06-24 Thread Tim N. van der Leeuw
I tried to create a windows executable of a pygtk program. My first attempt worked, kinda, except that no themes were applied and no readable fonts were found by pango; so all letters where just empty squares. But the program worked. I looked up some docs, found the following recipe on the PyGTK W

Re: reaching to the notification area

2006-06-24 Thread Bayazee
hi i can fine somethings in google such this : http://www-128.ibm.com/developerworks/linux/library/l-wrap/ but i can not copmile files ! Any idea !!!??? -- http://mail.python.org/mailman/listinfo/python-list

search engine

2006-06-24 Thread vinodh kumar
hai all, i am student of computer science dept. i have planned to design a search engine in python. i am seeking info about how to proceed further. i need to know what r the modules that can be used. - -- http://mail.python.org/mailman/listinfo/python-list

Python web server

2006-06-24 Thread arvind
When I run the script on server,only HTML part gets executed. But the python code appears as it is on the screen in the text format. How to run the CGI script on web server using Python2.4.3? -- http://mail.python.org/mailman/listinfo/python-list

Re: USB and Python

2006-06-24 Thread Diez B. Roggisch
Sybren Stuvel schrieb: > Philippe Martin enlightened us with: >> I need to talk to a USB device (PC or other) from Python - I am not >> talking about mounting a file system but sharing information as you >> would though a TCP-IP socket layer or an RS232 interface. > > You could wrap libusb on Linu

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Ben C
On 2006-06-21, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hey guys, > > I am absolutely new to Linux programming, with no w##s programming > experience except a small amount of C++ console apps. > Reasonably new to Linux, BSD etc, got good sound networking base of > knowledge and dont have

FTPUTIL WITH TKFILEDIALOG

2006-06-24 Thread veki
HI,ALL I am new ftputil user and I need help about something: my prog: >>> import tkFileDialog >>> import ftputil >>> name=tkFileDialog.askopenfile() >>>ftp=ftputil.FTPHost() #Please when you want try this prog use your ftp server >>> nesto1=name.name >>> ftp.upload(nesto1,nesto1,'b') ERROR IS:

Re: sum fonction in gadfly

2006-06-24 Thread Scott David Daniels
jean-jeanot wrote: > After creating the table I create the variables with > varAmount = StringVar() Maybe you want to use DoubleVar or IntVar here? > With a function > def treatment (): >requete = "insert into transactions ( date,amount,,) > values(..) "% (varDate.get(), >varAmoun

Re: search engine

2006-06-24 Thread George Sakkis
vinodh kumar wrote: > hai all, > i am student of computer science dept. i have planned to > design a search engine in python. i am seeking info about how to > proceed further. > i need to know what r the modules that can be used. There is not a "search engine module" around AFAI

Re: templating languages for webdev

2006-06-24 Thread Bruno Desthuilliers
a wrote: > cheetah vs django vs kid You forgot SimpleTal and Myghty (and many others). I don't like cheetah's syntax at all. I'm not in love with Django templates choices for markup ( '{% tag %}' and '{{ var }}'), but it can be customised, and I found the system very nice otherwise. -- bruno de

Re: Python web server

2006-06-24 Thread Bruno Desthuilliers
arvind wrote: > When I run the script Which one ? And how ? > on server, Which one ? > only HTML part gets executed. HTML executed ??? > But the python code appears as it is on the screen in the text format. > How to run the CGI script on web server using Python2.4.3? Depends on your web ser

Re: String negative indices?

2006-06-24 Thread Filip Wasilewski
Steven D'Aprano wrote: > On Fri, 23 Jun 2006 02:17:39 -0700, Filip Wasilewski wrote: > > > [EMAIL PROTECTED] wrote: > > > >> Logically, I should be able to enter x[-2:-0] to get the last and next to > >> last characters. However, since Python doesn't distinguish between > >> positive and negative

Re: module docstring, documentation, anything? please note is the module type/object NOT some module

2006-06-24 Thread Maric Michaud
Le Samedi 24 Juin 2006 04:41, Jorge Vargas a écrit : > On 6/23/06, Jorge Vargas <[EMAIL PROTECTED]> wrote: > > Hi everyone I have wasted 2 hours trying to figure out how to get a > > reference to the module object. that is the one returned by > > > > __import__ or when you call a module for name li

dragging with Boa Constructor

2006-06-24 Thread icebear
There's some non-obvious trick to being able to drag widgets around on a frame screen using Boa Constructor. I'd appreciate hearing from anybody who knows what it is. -- http://mail.python.org/mailman/listinfo/python-list

Re: search engine

2006-06-24 Thread placid
George Sakkis wrote: > vinodh kumar wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There is not

Re: sum fonction in gadfly

2006-06-24 Thread Robert Hicks
I haven't been keeping up. Is Gadfly still in development? -- http://mail.python.org/mailman/listinfo/python-list

Re: search engine

2006-06-24 Thread faulkner
http://www.voidspace.org.uk/cgi-bin/pysearch/search.py http://www.voidspace.org.uk/ http://www.vex.net/parnassus/ http://cheeseshop.python.org/pypi http://aspn.activestate.com/ASPN/Cookbook/Python http://www.google.com vinodh kumar wrote: > hai all, > i am student of computer science

Re: search engine

2006-06-24 Thread Daniel Nogradi
> hai all, > i am student of computer science dept. i have planned to > design a search engine in python. i am seeking info about how to > proceed further. > i need to know what r the modules that can be used. There are these two guys Sacha or Sergey and Larry (if I remember cor

Re: search engine

2006-06-24 Thread gene tani
George Sakkis wrote: > vinodh kumar wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There is not

Re: search engine

2006-06-24 Thread placid
Daniel Nogradi wrote: > > hai all, > > i am student of computer science dept. i have planned to > > design a search engine in python. i am seeking info about how to > > proceed further. > > i need to know what r the modules that can be used. > > There are these two guys Sacha or

Re: Python web server

2006-06-24 Thread Paul Boddie
arvind wrote: > When I run the script on server,only HTML part gets executed. > But the python code appears as it is on the screen in the text format. > How to run the CGI script on web server using Python2.4.3? We don't have much specific information from you here, but taking a few guesses, it so

Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
I thought people would be interested in this little script I wrote to reproduce the 256 simple automata that is shown in the first chapters of "A New Kind of Science". You can see a few results without running the script, at http://cooper-j.blogspot.com . And here is the code (You will need PIL (Py

adad

2006-06-24 Thread edoardo batini
dvsdfvsdfvsdfvsf -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread placid
defcon8 wrote: > I thought people would be interested in this little script I wrote to > reproduce the 256 simple automata that is shown in the first chapters > of "A New Kind of Science". You can see a few results without running > the script, at http://cooper-j.blogspot.com . And here is the cod

Re: Kamaelia 0.4.0 RELEASED - Faster! More Tools! More Examples! More Docs! ;-)

2006-06-24 Thread Robin Becker
Michael wrote: > Hi! > > > (OK, slightly silly subject line :) > > I'm extremely pleased to say - Kamaelia 0.4.0 has been released! > ... Windows users might see problems with the attempt at importing libc.so.6 in the Axon Scheduler. I changed the lines at line 44 of scheduler.py to somet

Re: Kamaelia 0.4.0 RELEASED - Faster! More Tools! More Examples! More Docs! ;-)

2006-06-24 Thread Robin Becker
Robin Becker wrote: > Michael wrote: >> Hi! >> >> >> (OK, slightly silly subject line :) >> >> I'm extremely pleased to say - Kamaelia 0.4.0 has been released! >> . whoops, forgot to say thanks as I think this is very nice work -- Robin Becker -- http://mail.python.org/mailman/listinfo/python-lis

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
Sorry about the code. It seems to have been truncated. I have it hosted at http://xahlee.org/x/realautomata.py Thanks to Xah Lee. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Anton van Straaten wrote: > [EMAIL PROTECTED] wrote: > >> I very much agree with the observation that every programmer performs >> "latent typing" in his head [...] >> But I also think that "latently typed language" is not a meaningful >> characterisation. And for the very same reason! Since any

Re: PIL problems

2006-06-24 Thread Fredrik Lundh
defcon8 wrote: > The error I get is: > > Traceback (most recent call last): > File "realautomata.py", line 72, in ? > nim.putdata(y) > File "C:\Python24\Lib\site-packages\PIL\Image.py", line 1120, in > putdata > self.im.putdata(data, scale, offset) > TypeError: too many data entries

Re: adad

2006-06-24 Thread Tim Golden
edoardo batini wrote: > dvsdfvsdfvsdfvsf Oh no. Not another question about permutations! TJG -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Rob Thorpe wrote: > Andreas Rossberg wrote: >>Rob Thorpe wrote: >> >>>Its easy to create a reasonable framework. >> >>Luca Cardelli has given the most convincing one in his seminal tutorial >>"Type Systems", where he identifies "typed" and "safe" as two orthogonal >>dimensions and gives the followi

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Dr.Ruud wrote: > Marshall schreef: >>Rob Thorpe: > >>>Can I make a type in C that can only have values between 1 and 10? >>>How about a variable that can only hold odd numbers, or, to make it >>>more difficult, say fibonacci numbers? >> >>Well, of course you can't in *C*; you can barely zip you pa

Re: HTTP server

2006-06-24 Thread Simon Forman
placid wrote: > Hi all, > > Ive been reading about creating a HTTP server like the one pydoc > creates (and studying pydoc source code). What i want to know, is it > possible to create server that creates a webpage with hyperlinks that > communicate back to the HTTP server, where each link accessed

Re: dragging with Boa Constructor

2006-06-24 Thread icebear
icebear wrote: > There's some non-obvious trick to being able to drag widgets around on a > frame screen using Boa Constructor. I'd appreciate hearing from anybody > who knows what it is. Sem to have figured it out myself here the REAL widgets can be dragged, and the ones which can't s

Re: tkinter modifying multiple widgets with one scrollbar

2006-06-24 Thread Simon Forman
spohle wrote: > hi > > how can i modify multiple widgets with one scrollbar ? > > thanks in advance > > sven If you're using Tkinter check out: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52266 Peace, ~Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Chris Uppal wrote: > David Hopwood wrote: > >>>But some of the advocates of statically >>>typed languages wish to lump these languages together with assembly >>>language a "untyped" in an attempt to label them as unsafe. >> >>A common term for languages which have defined behaviour at run-time is

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Anton van Straaten wrote: > I'm suggesting that if a language classifies and tags values in a way > that supports the programmer in static reasoning about the behavior of > terms, that calling it "untyped" does not capture the entire picture, > even if it's technically accurate in a restricted sens

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Anton van Straaten
David Hopwood wrote: > I can accept that dynamic tagging provides some support for latent typing > performed "in the programmer's head". But that still does not mean that > dynamic tagging is the same thing as latent typing No, I'm not saying it is, although I am saying that the former supports t

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread bearophileHUGS
Few coding suggestions: - Don't mix spaces and tabs; - Don't write line (comments) too much long; - Don't post too much code here; - For this program maybe Pygame is more fit (to show the images in real time) instead of PIL; - Maybe Psyco can help speed up this program; - Maybe ShedSkin will suppor

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread Terry Reedy
"defcon8" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I thought people would be interested in this little script I wrote to > reproduce the 256 simple automata that is shown in the first chapters > of "A New Kind of Science". You can see a few results without running > the script

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Anton van Straaten
Chris Smith wrote: > Dr.Ruud <[EMAIL PROTECTED]> wrote: ... >>The 'dynamic type' is just another type. > > > That's essentially equivalent to giving up. I doubt many people would > be happy with the conclusion that dynamically typed languages are typed, > but have only one type which is approp

Re: subprocess.Popen on Windows

2006-06-24 Thread mmamsch
On 23.06.2006 23:12:02, "3c273" wrote: >"madpython" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >> playing with subprocess.Popen on Windows I stumbled into the following >> problem: >> Python 2.4.3 (#69, Mar 29 2006, 17:35:34) >> >> IDLE 1.1.3 >> >> >>> import subprocess >> >>> p1=

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread David Hopwood
Patricia Shanahan wrote: > Vesa Karvonen wrote: > ... > >> An example of a form of informal reasoning that (practically) every >> programmer does daily is termination analysis. There are type systems >> that guarantee termination, but I think that is fair to say that it is >> not yet understood h

Re: PyGTK and Py2Exe troubles

2006-06-24 Thread riquito
Tim N. van der Leeuw ha scritto: > I tried to create a windows executable of a pygtk program. My first > attempt worked, kinda, except that no themes were applied and no > readable fonts were found by pango; so all letters where just empty > squares. But the program worked. > > I looked up some d

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Anton van Straaten
David Hopwood wrote: > Anton van Straaten wrote: ... >>When you get to more complex cases, though, most type inferencers for >>Scheme assign traditional static-style types to terms. If you think >>about this in conjunction with the term "latent types", it's an obvious >>connection to make that wha

Re: PyGTK and Py2Exe troubles

2006-06-24 Thread Tim N. van der Leeuw
[EMAIL PROTECTED] wrote: > Tim N. van der Leeuw ha scritto: > > > I tried to create a windows executable of a pygtk program. My first > > attempt worked, kinda, except that no themes were applied and no > > readable fonts were found by pango; so all letters where just empty > > squares. But the pr

Re: Kamaelia 0.4.0 RELEASED - Faster! More Tools! More Examples! More Docs! ; -)

2006-06-24 Thread Michael
Robin Becker wrote: > Michael wrote: >> I'm extremely pleased to say - Kamaelia 0.4.0 has been released! > Windows users might see problems with the attempt at importing libc.so.6 > in the Axon Scheduler. > > I changed the lines at line 44 of scheduler.py to something like this [ .. patch .. ] Ma

Re: Python and cellular automata (It works this time!)

2006-06-24 Thread defcon8
blog-of-justin.blogspot.com Sorry for the error. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Marshall
Anton van Straaten wrote: > > But beyond that, there's an issue here about the definition of "the > language". When programming in a latently-typed language, a lot of > action goes on outside the language - reasoning about static properties > of programs that are not captured by the semantics of t

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread Marshall
David Hopwood wrote: > > A type system that required an annotation on all subprograms that do not > provably terminate, OTOH, would not impact expressiveness at all, and would > be very useful. Interesting. I have always imagined doing this by allowing an annotation on all subprograms that *do* pr

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread Gabriel Dos Reis
"Marshall" <[EMAIL PROTECTED]> writes: | David Hopwood wrote: | > | > A type system that required an annotation on all subprograms that do not | > provably terminate, OTOH, would not impact expressiveness at all, and would | > be very useful. | | Interesting. I have always imagined doing this by

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread Marshall
Gabriel Dos Reis wrote: > "Marshall" <[EMAIL PROTECTED]> writes: > > | David Hopwood wrote: > | > > | > A type system that required an annotation on all subprograms that do not > | > provably terminate, OTOH, would not impact expressiveness at all, and > would > | > be very useful. > | > | Interes

Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread test
On Sat, 24 Jun 2006 01:28:29 GMT, [EMAIL PROTECTED] (John J. Lee) wrote: >[EMAIL PROTECTED] writes: > >> On 22 Jun 2006 16:19:50 -0700, "Justin Azoff" >> <[EMAIL PROTECTED]> wrote: >> >> >Jeethu Rao wrote: >> >> You need to use httplib. >> >> http://docs.python.org/lib/httplib-examples.html >> >

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Chris F Clark
Chris Smith <[EMAIL PROTECTED]> writes: > I thought about this in the context of reading Anton's latest post to > me, but I'm just throwing out an idea. I think there is some sense of convergence here. In particular, I reason about my program using "unsound types". That is, I reason about

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Pascal Costanza
Marshall wrote: > Anton van Straaten wrote: >> But beyond that, there's an issue here about the definition of "the >> language". When programming in a latently-typed language, a lot of >> action goes on outside the language - reasoning about static properties >> of programs that are not captured b

2Qs

2006-06-24 Thread SuperHik
1st question: If a make an exe with i.e. py2exe, can I get any kind of error/bug report from the exe file saved into a file error.log and how? 2nd question: is there a better way to do this: def tritup(x,y,z): #here is a while loop giving 3 results, i.e. r1,r2,r3 return r1,r2,

puzzlement about classmethod

2006-06-24 Thread Faheem Mitha
Hi, Consider the following small script. My understanding of how this works is that, conceptually, class B holds a separate copy of variable x from class A. Nearly everything behaves the way I would expect, except that setting x to 12 in A using class_setx at the beginning also sets the value fo

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Anton van Straaten
Marshall wrote: > Anton van Straaten wrote: > >>But beyond that, there's an issue here about the definition of "the >>language". When programming in a latently-typed language, a lot of >>action goes on outside the language - reasoning about static properties >>of programs that are not captured by

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Chris F Clark
Chris Smith <[EMAIL PROTECTED]> writes: > I thought about this in the context of reading Anton's latest post to > me, but I'm just throwing out an idea. I wrote: > I think there is some sense of convergence here. Apologies for following-up to my own post, but I forgot to describe the converg

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Chris Smith
Chris F Clark <[EMAIL PROTECTED]> wrote: > Chris Smith <[EMAIL PROTECTED]> writes: > > I thought about this in the context of reading Anton's latest post to > > me, but I'm just throwing out an idea. > > I wrote: > > I think there is some sense of convergence here. > > Apologies for following-

Re: puzzlement about classmethod

2006-06-24 Thread Duncan Booth
Faheem Mitha wrote: > Nearly everything behaves the way I would expect, except that setting > x to 12 in A using class_setx at the beginning also sets the value for > x in B. However, the converse (setting x in B using class_setx), does > not change the value in A, which I would consider to be the

Re: 2Qs

2006-06-24 Thread bearophileHUGS
SuperHik, for the second question there is builtin sum(): >>> values = 10.5, 5, -12 >>> sum(values) 3.5 Your if becomes: if x>10 and y>10 and z>10 and sum(tritup(x,y,z)): print "OK" Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Termination and type systems

2006-06-24 Thread David Hopwood
Marshall wrote: > David Hopwood wrote: > >>A type system that required an annotation on all subprograms that do not >>provably terminate, OTOH, would not impact expressiveness at all, and would >>be very useful. > > Interesting. I have always imagined doing this by allowing an > annotation on all

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread David Hopwood
Pascal Costanza wrote: > Vesa Karvonen wrote: > >> I think that we're finally getting to the bottom of things. While >> reading your reponses something became very clear to me: latent-typing and >> latent-types are not a property of languages. Latent-typing, also known as >> informal reasoning,

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Anton van Straaten wrote: > David Hopwood wrote: > >> I can accept that dynamic tagging provides some support for latent typing >> performed "in the programmer's head". But that still does not mean that >> dynamic tagging is the same thing as latent typing > > No, I'm not saying it is, although I

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
David Hopwood wrote: > Anton van Straaten wrote: > >>I'm suggesting that if a language classifies and tags values in a way >>that supports the programmer in static reasoning about the behavior of >>terms, that calling it "untyped" does not capture the entire picture, >>even if it's technically acc

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread David Hopwood
Marshall wrote: > Joe Marshall wrote: > >>Marshall wrote: > >>>2) I want to run my program, even though it is broken, and I >>>want to run right up to a broken part and trap there, so I can >>>use the runtime facilities of the language to inspect what's >>>going on. >> >>I do this quite often. S

Re: Python to PHP Login System (HTTP Post)

2006-06-24 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: [...] > #--- > import mechanize > > SHOW_COOKIES = True > > br = mechanize.Browser() > if SHOW_COOKIES: > cj = mechanize.CookieJar() > br.set_cookiejar(cj) > br.open("http://www.magnetshare.com/main.php";) > br.select_for

Mix-In Class Methods At Run-Time

2006-06-24 Thread digitalorganics
Hi all. If I have an instance of class A, called say foo, and I need to mix-in the functions and variables of another class (class B) to this instance at runtime, how do I do it? In other words, I want to make foo an instance of an anonymous and temporary class that inherits its functionality from

Re: Mix-In Class Methods At Run-Time

2006-06-24 Thread bearophileHUGS
I think it's possible, most of such kind of things are possible with Python. I'm not an expert yet in such kind of things, so this can be a starting point for you (note the shadowing of m2, the class docstrings, etc). Other people can give you something better or more correct. class A: def m1(

Re: 2Qs

2006-06-24 Thread Diez B. Roggisch
if x>10 and y>10 and z>10 and sum((x,y,z)): print "OK" Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: String negative indices?

2006-06-24 Thread Steven D'Aprano
On Sat, 24 Jun 2006 05:36:17 -0700, Filip Wasilewski wrote: > Steven D'Aprano wrote: >> On Fri, 23 Jun 2006 02:17:39 -0700, Filip Wasilewski wrote: >> >> > [EMAIL PROTECTED] wrote: >> > >> >> Logically, I should be able to enter x[-2:-0] to get the last and next to >> >> last characters. However,

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Chris F Clark
Chris Smith <[EMAIL PROTECTED]> writes: > Unfortunately, I have to again reject this idea. There is no such > restriction on type theory. Rather, the word type is defined by type > theorists to mean the things that they talk about. Do you reject that there could be something more general th

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: ><[EMAIL PROTECTED]> wrote: > >> Hey guys, >> >> I am absolutely new to Linux programming, with no w##s programming >> experience except a small amount of C++ console apps. >> Reasonably new to Linux, BSD etc, got good so

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Ben C <[EMAIL PROTECTED]> wrote: . . . >My favourite's Python, but Tcl is definitely worth a look. It's been >around a bit longer than Python (so more time for every conceivable >problem to have

Re: 2Qs

2006-06-24 Thread Steven D'Aprano
On Sat, 24 Jun 2006 21:24:33 +0200, SuperHik wrote: > 1st question: > > If a make an exe with i.e. py2exe, can I get any kind of error/bug > report from the exe file saved into a file error.log and how? Write the program to write a log file as it runs? > 2nd question: [snip] > if x>10 and y>

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Marshall
Chris F Clark wrote: > > I'm particularly interested if something unsound (and perhaps > ambiguous) could be called a type system. I definitely consider such > things type systems. I don't understand. You are saying you prefer to investigate the unsound over the sound? > However, I like my defi

Re: 2Qs

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, SuperHik <[EMAIL PROTECTED]> wrote: >1st question: > >If a make an exe with i.e. py2exe, can I get any kind of error/bug >report from the exe file saved into a file error.log and how? . . . Yes

Python is fun and useful (was: Python is fun (useless social thread) ; -))

2006-06-24 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Carl Trachte <[EMAIL PROTECTED]> wrote: . . . >Yes. I was a production geologist in a copper mine in the mid 90's. Our >mine planning software vendor Mintec (www.mintec.com) had chosen it as >t

Re: Absolute noob to Linux programming needs language choice help

2006-06-24 Thread Carl Banks
[EMAIL PROTECTED] wrote: > Hey guys, > > I am absolutely new to Linux programming, with no w##s programming > experience except a small amount of C++ console apps. > Reasonably new to Linux, BSD etc, got good sound networking base of > knowledge and dont have any problem working the command lin

Re: Saying "latently-typed language" is making a category mistake

2006-06-24 Thread Matthias Blume
David Hopwood <[EMAIL PROTECTED]> writes: > Patricia Shanahan wrote: >> Vesa Karvonen wrote: >> ... >> >>> An example of a form of informal reasoning that (practically) every >>> programmer does daily is termination analysis. There are type systems >>> that guarantee termination, but I think tha

Re: What is Expressiveness in a Computer Language

2006-06-24 Thread Chris Smith
Chris F Clark <[EMAIL PROTECTED]> wrote: > Do you reject that there could be something more general than what a > type theorist discusses? Or do you reject calling such things a type? I think that the correspondence partly in the wrong direction to describe it that way. If someone were to stan

pygame.draw deadline extended to Sunday midnight UTC

2006-06-24 Thread richard
I'm not going to be awake at midnight, so that means that entrants in the pygame.draw challenge have a few extra hours to get their entries in. http://media.pyweek.org/static/pygame.draw-0606.html Get entries to me by email before UTC (GMT) 23:59 Sunday 25th June. Richard -- Visit the

Re: String negative indices?

2006-06-24 Thread Erik Max Francis
Steven D'Aprano wrote: > In mathematics, well, maybe... certainly in the Real number system, there > is no difference, and +0 and -0 are just two ways of writing the same > thing. In the hyperreals, +0 and -0 are the same, but there are > infinitesimals which are different, and signed. I don't kno

MSoffice metadata

2006-06-24 Thread micklee74
hi is there a module in Python to extract metadata in MS office documents thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: MSoffice metadata

2006-06-24 Thread Gary Herron
[EMAIL PROTECTED] wrote: > hi > is there a module in Python to extract metadata in MS office documents > thanks > > Perhaps. OpenOffice can read and write MS office files, and OpenOffice has an API (called UNO for Universal Network Objects) which has a Python binding (called the Python-UNO bridg