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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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
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
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
I haven't been keeping up. Is Gadfly still in development?
--
http://mail.python.org/mailman/listinfo/python-list
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
> 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
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
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
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
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
dvsdfvsdfvsdfvsf
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
edoardo batini wrote:
> dvsdfvsdfvsdfvsf
Oh no. Not another question about permutations!
TJG
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
"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
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
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=
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
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
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
[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
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
blog-of-justin.blogspot.com
Sorry for the error.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
"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
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
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
>> >
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
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
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,
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
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
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
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-
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
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
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
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,
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
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
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
[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
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
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(
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
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,
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
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
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
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>
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
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
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
[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
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
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
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
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
hi
is there a module in Python to extract metadata in MS office documents
thanks
--
http://mail.python.org/mailman/listinfo/python-list
[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
89 matches
Mail list logo