Re: newbie: dictionary - howto get key value

2005-03-13 Thread Bengt Richter
On Mon, 14 Mar 2005 05:02:25 GMT, Joal Heagney <[EMAIL PROTECTED]> wrote: >Tim Roberts wrote: >> "G. Völkl" <[EMAIL PROTECTED]> wrote: >> >>>I use a dictionary: >>> >>>phone = {'mike':10,'sue':8,'john':3} >>> >>>phone['mike'] --> 10 >>> >>>I want to know who has number 3? >>> >>>3 --> 'john' >

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread "Martin v. Löwis"
Brian van den Broek wrote: A comment about the msi process: even though I set it to install to a different directory, 2.4.1c1 clobbered my 2.4 install. I remember reading something somewhere such that I expected this, but a quick glance at the obvious places for the 2.4.1c1 doesn't produce anyth

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread Brian van den Broek
Martin v. Löwis said unto the world upon 2005-03-10 20:55: Anthony Baxter wrote: On behalf of the Python development team and the Python community, I'm happy to announce the release of Python 2.4.1 (release candidate 1). I'd like to encourage feedback on whether the Windows installer works for peo

html parsing

2005-03-13 Thread Suchitra
Hi all,     Please help me in parsing  the html document and extract the http links .   Thanks in advance!!1   Suchitra -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Who Knows of a Good Computational Physics Textbook?

2005-03-13 Thread Sean Richards
This may be of interest http://farside.ph.utexas.edu/teaching/329/lectures/lectures.html Cheers, Sean -- "Hver sin smak", sa vintapperen, han drakk mens de andre sloss." -- http://mail.python.org/mailman/listinfo/python-list

some information

2005-03-13 Thread Sandeep Avinash Gohad
Hi,I want to know weather python conducts any certification exams like the other programming languages - Microsoft (MCP,MCSD) Sun  (sun certification) Regards, Sandeep    -- http://mail.python.org/mailman/listinfo/python-list

Re: SimpleHTTPRequestHandler handling long lasting requests problem

2005-03-13 Thread Andy Leszczynski
Steve Holden wrote: Andy Leszczynski wrote: Sorry for questioning Python :-) - it turned out that this is a problem with Mozilla. For some reason it holds up with opening second connection to given host until the previous one is completed. Interestingly enough, IE works better with Python multi

A Font Dialog (Tkinter)

2005-03-13 Thread Harlin Seritt
Is there a way to call up the Font dialog box (at least in the Windows API) from Tkinter or another module? thanks, Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: issues installing readine-1.12 on WinXP

2005-03-13 Thread Michele Simionato
Well, this is ugly as the sin but it seems to work, at least for the moment: vk = VkKeyScan(ord(char)) if vk == -1: # ugly fix for backtips vk = 96 I will write to Gary Bishop to point out this issue with the Italian keyboard and see if he has some decent solution. Michele

Re: Unimport module

2005-03-13 Thread Chmouel Boudjnah
Terry Reedy wrote: Yes, Python's import mechanism assumes that sys.path is relatively static, or grow only. I not sure what 'reload Module' would do after the first loop. it does work using like that : if sys.modules.has_key("Module"): reload(Module)

Re: Itertools wishlists

2005-03-13 Thread Raymond Hettinger
[bearophile] > This was my suggestion for a possible flatten(): > > flatten(sequence, level=-1, tuples=True, strings=False, safe=False) > - tuples=True then it flattens tuples too. > - strings=True then it flattens strings with len(s)>1 too. > - safe if True it cheeks (with something like an iterat

Re: how to delete the close button (the X on the right most corner of the window) on a window

2005-03-13 Thread Harlin Seritt
What GUI toolkit are you using? I think this is the point Jeremy is making. Harlin Seritt -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib's functionality with urllib2

2005-03-13 Thread Harlin Seritt
Is there any reason why you can't import both? import urllib as u import urllib2 as uu -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
ahh Frame! I didn't even think of extending Frame. I kept wondering how I could instead extend entry and listbox... thanks for the pointer. Yeah I know there are others out there, I just wanted to create one from tkinter widgets and keep the constructor as close to other tkinter widgets as possible

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Harlin Seritt
Thanks nirinA... I've played with that one before. I'm not a big fan of Pmw or Tix so much I guess although when it gets down to it, those 'extra' toolkits are probably more functional. Cheers, Harlin -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie: dictionary - howto get key value

2005-03-13 Thread Joal Heagney
Tim Roberts wrote: "G. Völkl" <[EMAIL PROTECTED]> wrote: I use a dictionary: phone = {'mike':10,'sue':8,'john':3} phone['mike'] --> 10 I want to know who has number 3? 3 --> 'john' How to get it in the python way ? If you need to do this a lot, just keep two dictionaries, where the keys in each

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
Marek Franke wrote: Just wondering how you're supporting the Xbox controller. I bought a cable and driver a few months back to hook up to my computer. Are you using a Python alternative?? No, I rebuild the connector to USB and loaded the xpad-driver (Linux), that's all. Just the same with the SNES

Re: Unimport module

2005-03-13 Thread Terry Reedy
"Chmouel Boudjnah" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > dir = listdir('/path/') > for i in dir: > sys.path.append('/path/' + i "/") > import Module > doStuff() > sys.path.remove('/path/' + i "/") > > it's obviously not working since it get only the first import Module >

Re: Linux Multimedia System

2005-03-13 Thread Marek Franke
> Freevo is pure python already ;) > > Greetings, Roland OK, but it's more the 'thrill' to create something own, not the matter which language we/they use. And even there is only a little image-viewer and a little CD-player, it's fun (for me) to use it already on my TV. Marek -- http://mail.

Re: Linux Multimedia System

2005-03-13 Thread Marek Franke
> Just wondering how you're supporting the Xbox controller. I bought a > cable and driver a few months back to hook up to my computer. Are you > using a Python alternative?? > No, I rebuild the connector to USB and loaded the xpad-driver (Linux), that's all. Just the same with the SNES pads (para

Re: Python-list Digest, Vol 18, Issue 208

2005-03-13 Thread Charles Hartman
I know this isnt that big of a problem, but i cannot think of one reason why they would not allow numbers preceded with a 0 to have a number higher then a 7 in them... And it seems very inconsistant to me... Is there a reason for this? I *love* questions I can answer! Answer: because that's how y

Unimport module

2005-03-13 Thread Chmouel Boudjnah
Hi, I have some code like that to do kind of plugins load : dir = listdir('/path/') for i in dir: sys.path.append('/path/' + i "/") import Module doStuff() sys.path.remove('/path/' + i "/") it's obviously not working since it get only the first import Module while t

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. --

[OT] Who Knows of a Good Computational Physics Textbook?

2005-03-13 Thread Dan Sommers
Hi, I posted this to sci.physics and alt.sci.physics and got nowhere; perhaps the much more friendly and helpful crowd here can help me. I know that a lot of pythonistas are, in fact, scientists. I am a non-traditional, undergraduate physics (and math) student with 20+ years of professional soft

Re: Convert python to exe

2005-03-13 Thread [EMAIL PROTECTED]
Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Adapting code to multiple platforms

2005-03-13 Thread Peter Hansen
Paul Watson wrote: "Peter Hansen" <[EMAIL PROTECTED]> wrote: Simon John wrote: You could try import win32api and checking for an exception ;-) (Winky noted) Just in case anyone thinks that last is a useful idea, keep in mind that win32api is not installed (with the standard distribution) but must

Re: Convert python to exe

2005-03-13 Thread Stephen Thorne
On 13 Mar 2005 14:31:53 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > I have a python script under linux, I wonder if I can be converted to > an executable or not? Yes, you can use cx_Freeze. Regards, Stephen Thorne -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug?

2005-03-13 Thread Artie Gold
[EMAIL PROTECTED] wrote: Hello Ive recently found that you cannot type anything over 7 into a number that is preceded with a 0. ex: >>> 01 1 >>> 07 7 >>> 08 SyntaxError: invalid token >>> 011 9 >>> 017 15 >>> 077 63 >>> 078 SyntaxError: inva

Re: Bug?

2005-03-13 Thread Joe Wong
I think python is expecting a octet number from the input?   - Joe   - Original Message - From: [EMAIL PROTECTED] To: python-list@python.org Sent: Monday, March 14, 2005 10:51 AM Subject: Bug? HelloIve recently found that you cannot type anything over 7 into a nu

Bug?

2005-03-13 Thread [EMAIL PROTECTED]
Hello Ive recently found that you cannot type anything over 7 into a number that is preceded with a 0. ex: >>> 01 1 >>> 07 7 >>> 08 SyntaxError: invalid token >>> 011 9 >>> 017 15 >>> 077 63 >>> 078 SyntaxError: invalid token I know this i

[ANN] pysqlite 2.0.alpha2

2005-03-13 Thread Gerhard Haering
pysqlite 2.0.alpha2 === The last release was back in Nov. 2004, but pysqlite 2 development is going on faster now. So it's time for another alpha release to collect feedback. Please report any bugs you find on the pysqlite mailing list, or even better on the trac tracking system a

Re: Apparently, I don't understand threading

2005-03-13 Thread Dave Brueck
[EMAIL PROTECTED] wrote: The following script does not behave as expected. I wanted to terminate the 'mythread' thread after 5 seconds. What I see is the threading.Thread call blocking until the 15 second sleep is done. Suggestions? [snip] foo = FooClass() mythread = threading.Thread(foo.stall()

RE: Apparently, I don't understand threading

2005-03-13 Thread jwsacksteder
I realize that. I'm using a variant of the polite shutdown request technique used in the python cookbook. The problem is that thread creation is apparently blocking instead of continuing program execution. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday,

Re: Apparently, I don't understand threading

2005-03-13 Thread jepler
The Python threading model doesn't allow one thread to forcibly terminate another. This has been discussed many times before, I think that the short answer is a combination of (a) it's hard to specify what happens in the terminated thread, without the possibility of leaving the program in an unkno

Re: Creating desktop icons for Innosetup file

2005-03-13 Thread Greg Ewing
Will McGugan wrote: You need to set the working dir for the icon in the [Icons] sections. It would be better to re-design the application so that it doesn't rely on being started with any particular working directory. Then it will still work if the user creates additional shortcuts that don't have

Re: Unicode BOM marks

2005-03-13 Thread Steve Horsley
Martin v. LÃwis wrote: Steve Horsley wrote: It is my understanding that the BOM (U+feff) is actually the Unicode character "Non-breaking zero-width space". My understanding is that this used to be the case. According to http://www.unicode.org/faq/utf_bom.html#38 the application should now speci

Re: Convert python to exe

2005-03-13 Thread [EMAIL PROTECTED]
I wonder if I get the executable like c program compiled by gcc -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert python to exe

2005-03-13 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > I have a python script under linux, I wonder if I can be converted to > an executable or not? Place '#!/usr/bin/env python' as the first line of your script and type:: chmod u+x yourscript.py at the command line. ;-) Ciao, Marc 'Bla

Re: Determining the length of strings in a list

2005-03-13 Thread Michael Hoffman
[EMAIL PROTECTED] wrote: I have a dictionary. Each key contains a list. I am using the contents of the list to build a portion of a command line. However, before I can build the command line, I have to make sure that the command isn't too long. This means that I have to step through each item in

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread olsongt
[JanC] > The code below makes it possible to write assembler code for different > architectures (in case pyasm ever supports that ;) and also a Python > code version to use when running on a system where no assembler code > can be used. It prints: [Michael] > Another (perhaps wacky) approach woul

Re: Regular Expressions: large amount of or's

2005-03-13 Thread Scott David Daniels
Daniel Yoo wrote: John Machin <[EMAIL PROTECTED]> wrote: : tree.search("I went to alpha beta the other day to pick up some spam") : could use a startpos (default=0) argument for efficiently restarting : the search after finding the first match Ok, that's easy to fix. I'll do that tonight. I have a

Re: tkinter: always scroll to show last line of text

2005-03-13 Thread Raseliarison nirinA
"Martin Franklin" wrote: > Benjamin Rutt wrote: > > I have a tkinter 'Text' and 'Scrollbar' connected and working > > normally. When a new line of text is inserted (because I'm > > monitoring > > an output stream), I'd like the text and scrollbar to be scrolled > > to > > the bottom, so the late

Apparently, I don't understand threading

2005-03-13 Thread jwsacksteder
The following script does not behave as expected. I wanted to terminate the 'mythread' thread after 5 seconds. What I see is the threading.Thread call blocking until the 15 second sleep is done. Suggestions?   import threading from time import sleep   class FooClass:     def

Determining the length of strings in a list

2005-03-13 Thread robin . siebler
I have a dictionary. Each key contains a list. I am using the contents of the list to build a portion of a command line. However, before I can build the command line, I have to make sure that the command isn't too long. This means that I have to step through each item in the list twice: once to

Convert python to exe

2005-03-13 Thread [EMAIL PROTECTED]
Hi I have a python script under linux, I wonder if I can be converted to an executable or not? Richard -- http://mail.python.org/mailman/listinfo/python-list

Re: running a python script in drpython

2005-03-13 Thread john
john wrote: Haveing problems writeing a program then running it in python 2.3.5 interpreter. Called the program test.py used chmod to make it executable in linux #! /usr/bin/python print 2** 8 print 'the bright side ' + 'of life' >>> python test.py File "", line 1 python test.py

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread Michael Spencer
JanC wrote: [an example of using decorators to control pyasm] Another (perhaps wacky) approach would be to change the assembler source syntax enough to make it legal Python - in particular, this means parenthesizing the arguments - then it can just be stored in-line with other Python source. Thi

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread "Martin v. Löwis"
Richie Hindle wrote: I could try again, but maybe there's some useful information you can get from the partially upgraded environment. Here's how the \python24 directory looks: I tried to reproduce it, and failed - if the DLL is not in use, it is updated correctly; if it is in use, a window pops u

Re: Licensing Python code under the Python license

2005-03-13 Thread "Martin v. Löwis"
JanC wrote: This is difficult to do right, if you have to consider all the laws in different countries... Right. So he points out that his explanations are for US copyright law only, and then that legislation even in different US states, or perhaps even in districts, might be different. Therefore,

Re: tkinter: always scroll to show last line of text

2005-03-13 Thread Benjamin Rutt
Martin Franklin <[EMAIL PROTECTED]> writes: > text.yview_pickplace("end") Thank you, works perfectly! -- Benjamin Rutt -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Raseliarison nirinA
"Harlin Seritt" wrote: > I've created a ghetto-ized ComboBox that should work nicely for > Tkinter > (unfortunately no dropdown capabilities yet). > how about: >>> import Tix >>> print Tix.ComboBox.__doc__ ComboBox - an Entry field with a dropdown menu. The user can select a choice by either

Re: Install problem Windows xp HE

2005-03-13 Thread Raseliarison nirinA
"Jan Ekström" wrote: > Here is the error. > IDLE 1.1 > >>> python > > Traceback (most recent call last): > File "", line 1, in -toplevel-python > NameError: name 'python' is not defined > >>> this should be a success install report! not an error. start coding and see what happens. >>> print "He

Re: issues installing readine-1.12 on WinXP

2005-03-13 Thread Simon Percivall
Well, just modify the source in that case. -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib / solaris (newbie problem?)

2005-03-13 Thread "Martin v. Löwis"
[EMAIL PROTECTED] wrote: The error message 'Connection refused' got me thinking that the SMTP server wouldn't allow this or required some authentication, or etc. In case this isn't clear yet: the "connection refused" error happens in TCP sockets if the remote machine is turned on, but offers no ser

Re: Extending and Embedding

2005-03-13 Thread Eduardo Rodrigues
Sorry, I guess that I wasn't clear. I've made a module using swig that wrap functions written in C. If I load that module in python using: >>> from import * it works fine. But if I execute this same command using PyRun_SimpleString in another code written in C, it doesn't work, i.e. I can't load

Re: Licensing Python code under the Python license

2005-03-13 Thread JanC
Martin v. Löwis schreef: > Larry argues that a license should be legally meaningful, and > legally clear - or else there is little point in formulating > a license in the first place. This is difficult to do right, if you have to consider all the laws in different countries... -- JanC "Be str

running a python script in drpython

2005-03-13 Thread john
Haveing problems writeing a program then running it in python 2.3.5 interpreter. Called the program test.py used chmod to make it executable in linux #! /usr/bin/python print 2** 8 print 'the bright side ' + 'of life' >>> python test.py File "", line 1 python test.py ^ Syntax

Re: Regular Expressions: large amount of or's

2005-03-13 Thread Daniel Yoo
John Machin <[EMAIL PROTECTED]> wrote: : tree.search("I went to alpha beta the other day to pick up some spam") : could use a startpos (default=0) argument for efficiently restarting : the search after finding the first match Ok, that's easy to fix. I'll do that tonight. -- http://mail.python

Re: Adapting code to multiple platforms

2005-03-13 Thread Paul Watson
"Peter Hansen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Simon John wrote: >> If you're using a GUI, then that may help you decode the platform too - >> for example wxPython has wx.Platform, there's also platform.platform() >> , sys.platform and os.name >> >> You could try impo

Re: Web framework

2005-03-13 Thread Venkat B
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1] > implementation. Hi Sridhar, Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer in particular) that come packaged with Python itself ? Thanks, /venkat -- http://mail.python.org/mailman/listinfo

Re: is there a problem on this simple code

2005-03-13 Thread John Machin
Jan Rienyer Gadil wrote: > @ sir Peter > so you mean that it is correct (at least on the unpack() part) No he doesn't mean that at all. All it means is that minor scuffles have broken out among the spectators. Don't worry about them, batons & water cannon will fix them; you concentrate on the foo

Re: Debugging Python Scripts inside other processes

2005-03-13 Thread Peter Maas
A. Klingenstein schrieb: I embedded Python in a Windows C++ program. Now I want to debug my embedded scripts which of course won't run in any IDE process. Commercial IDEs like WingIDE can attach to external processes by importing a module in the scripts. Is there a debugger capable of this whic

Re: Huge performance gain compared to perl while loading a text file in a list ...!?

2005-03-13 Thread Martin Franklin
Paul Rubin wrote: "Marc H." <[EMAIL PROTECTED]> writes: I'm fairly new to python, and don't know much of its inner working so I wonder if someone could explain to me why it is so much faster in python to open a file and load it in a list/array ? My guess is readlines() in Python is separating on n

Re: autoexecution in Windows

2005-03-13 Thread Thorsten Kampe
On Mon, 07 Mar 2005 16:06:46 -0500, rbt wrote: > Earl Eiland wrote: >> In Linux, if I make the first line #!/path/to/Python, all I have to do >> to execute the program is type ./FileName (assuming my pwd is the same >> as FileName). what's the Windows equivalent? >> Earl >> >> On Mon, 2005-03-07

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
Marek Franke wrote: Hi there, we have started with some people from our LUG (Linux User Group) a 'little' project, called LMMS (Linux Multimedia System). When it's 'finished' it shall be a window-manager for use on TV and handle with joysticks/gamepads. As the name says, it is for multimedia-appl

Re: Linux Multimedia System

2005-03-13 Thread Lucas Raab
Marek Franke wrote: Hi there, we have started with some people from our LUG (Linux User Group) a 'little' project, called LMMS (Linux Multimedia System). When it's 'finished' it shall be a window-manager for use on TV and handle with joysticks/gamepads. As the name says, it is for multimedia-appl

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Martin Franklin
Martin Franklin wrote: Harlin Seritt wrote: I've created a ghetto-ized ComboBox that should work nicely for Tkinter (unfortunately no dropdown capabilities yet). I've found why it's such a pain in the @ss to create one. You have to re-create common methods and make sure they're mapped to the right

Re: Itertools wishlists

2005-03-13 Thread Terry Reedy
"Raymond Hettinger" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > FWIW, requests for additions to the itertools module have not fallen on > deaf > ears. There are no arbitrary restraints on building out this module. > Each > request has gotten careful thought and a couple of th

Re: Bind Escape to Exit

2005-03-13 Thread Martin Franklin
Kent Johnson wrote: Binny V A wrote: Hello Everyone, I am new to python and I am trying to get a program to close a application when the Escape Key is pressed. Here is a version that works. The changes from yours: - Bind , not These amount to the same thing AFAIK - Bind the key to the root, not

Re: Overloading the "and" operator

2005-03-13 Thread Terry Reedy
"Fredrik Bertilsson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am trying to overload the "and" operatior, but my __and__ method is > never called. That is because, properly speaking, 'and' and 'or' are, in Python, in-line flow-control keywords (related to 'if' and 'else'),

Re: Searching for a ComboBox for Tkinter?

2005-03-13 Thread Martin Franklin
Harlin Seritt wrote: I've created a ghetto-ized ComboBox that should work nicely for Tkinter (unfortunately no dropdown capabilities yet). I've found why it's such a pain in the @ss to create one. You have to re-create common methods and make sure they're mapped to the right component (inside this

Re: tkinter: always scroll to show last line of text

2005-03-13 Thread Martin Franklin
Benjamin Rutt wrote: I have a tkinter 'Text' and 'Scrollbar' connected and working normally. When a new line of text is inserted (because I'm monitoring an output stream), I'd like the text and scrollbar to be scrolled to the bottom, so the latest line of text is always shown. How to do this? Th

Re: brand new to python

2005-03-13 Thread Bengt Richter
On 13 Mar 2005 11:22:54 -0800, [EMAIL PROTECTED] wrote: >I am sure this is old news, the syntax of python is crazy to me. >There I said it, I'm sure I'll get over it or around it. > >I was trying to make a whois script work and was unable. > >May be someone with lint-like eyes can tell what's wron

Re: pyasm 0.2 - dynamic x86 assembler for python

2005-03-13 Thread JanC
Stefan Behnel schreef: > Meaning: Put the assembler into the doc-string of a function. Then > use a decorator to run the assembler on the function's __doc__ string > and build an assembly function that takes the same arguments to make > the assembly function directly callable. That would 'disa

Re: Beware complexity

2005-03-13 Thread Brandon J. Van Every
Philip Smith wrote: > > Conventions on type conversion are just one example. Without using > strict coding conventions the richness of the language could, and > often did, result in ambiguity. In my experience too C++ has > defeated its own object (eg portability) - I've given up in many > cases

Re: brand new to python

2005-03-13 Thread Dmitry A.Lyakhovets
Hello! You should at least close the 'try' block, which you started at line 68 (if i'm not mistaken): def _whois(domainname, whoisserver): s = None ## try until we are connected while s == None: try: There is no corresponding 'except' till DomainRecord class definition.

Re: how to delete the close button (the X on the right most corner of the window) on a window

2005-03-13 Thread Jeremy Bowers
On Sun, 13 Mar 2005 09:25:43 -0800, jrlen balane wrote: > i am working on an MDIParentFrame and MDIChildFrame. Now, what i want > to do is make the ChildFrame not that easy to close by removing the > close button (the X on the right most corner of the window) if this is > possible... > > how am i

Re: PEP 246 revision

2005-03-13 Thread boisgera
> >Have you read the BDFL's "Python Optional Typechecking Redux" ? > > Yes. > > >(http://www.artima.com/weblogs/viewpost.jsp?thread=89161) > >It's usage of adapt assumes that "a class is a protocol", so I > >guess that it does not work with the new version of PEP 246. > > Why not? There's nothin

brand new to python

2005-03-13 Thread richard . hubbell
I am sure this is old news, the syntax of python is crazy to me. There I said it, I'm sure I'll get over it or around it. I was trying to make a whois script work and was unable. May be someone with lint-like eyes can tell what's wrong. Using xemacs I had hoped that python mode would do more for

Re: Linux Multimedia System

2005-03-13 Thread Roland Heiber
Marek Franke wrote: too. The whole project is just for fun. Afaik Freevo and/or MythTV are written in C/C++ and don't have any support for joysticks (afaik!). And the Freevo is pure python already ;) Greetings, Roland -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a problem on this simple code

2005-03-13 Thread Bengt Richter
On Sun, 13 Mar 2005 10:46:52 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: >> Sorry for jumping in with a largely irrelevant comment. I didn't look >> at the code, just sought to illustrate the 6/18 thing further, in a kneejerk >> reaction. >> Though BTW FWIW the visual seq

Re: Linux Multimedia System

2005-03-13 Thread Marek Franke
> Be sure to check out freevo at http://freevo.sourceforge.net/ as it is > quite similar to what you are describing and they are quite far along. > > max Yes, there are a lot of projects like LMMS, just take a look at www.freshmeat.net or www.sourceforge.net. Or MythTV is something like LMMS too.

Re: Coding help...very basic

2005-03-13 Thread Igorati
Hello all, I am still needing some help on this code, I have gone a bit further on it. Thank you for the help. I am trying to understand how to make the file searchable and how I am to make the deposit and withdrawl interact with the transaction class. class Account: def __init__(self, initia

Re: Web framework

2005-03-13 Thread Diez B. Roggisch
Joe wrote: > On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote: > >>You should definitely have a look at Zope 3. There is good >>documentation available and it can do a lot of good stuff. > > But then, the thing I hate about Zope, is that source code is not > accessible with normal developm

Re: Linux Multimedia System

2005-03-13 Thread Max Erickson
Marek Franke wrote: > Hi there, > > we have started with some people from our LUG (Linux User Group) a 'little' > project, called LMMS (Linux Multimedia System). When it's 'finished' it > shall be a window-manager for use on TV and handle with joysticks/gamepads. > > As the name says, it is for mu

Re: Web framework

2005-03-13 Thread Joe
On 13 Mar 2005 01:13:00 -0800, [EMAIL PROTECTED] wrote: >You should definitely have a look at Zope 3. There is good >documentation available and it can do a lot of good stuff. But then, the thing I hate about Zope, is that source code is not accessible with normal development tools since it's stu

Re: issues installing readine-1.12 on WinXP

2005-03-13 Thread Michele Simionato
No, I don't even know how to get it under Windows (usually I use Linux). Switching to the US keyboard does not help, anyway. I get the same error. Michele -- http://mail.python.org/mailman/listinfo/python-list

Linux Multimedia System

2005-03-13 Thread Marek Franke
Hi there, we have started with some people from our LUG (Linux User Group) a 'little' project, called LMMS (Linux Multimedia System). When it's 'finished' it shall be a window-manager for use on TV and handle with joysticks/gamepads. As the name says, it is for multimedia-applications, like list

how to delete the close button (the X on the right most corner of the window) on a window

2005-03-13 Thread jrlen balane
i am working on an MDIParentFrame and MDIChildFrame. Now, what i want to do is make the ChildFrame not that easy to close by removing the close button (the X on the right most corner of the window) if this is possible... how am i going to do this? -- http://mail.python.org/mailman/listinfo/python

Re: Turning String into Numerical Equation

2005-03-13 Thread Brian Kazian
Wow, thanks so much guys! "Michael Spencer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Brian Kazian wrote: >> Thanks for the help, I didn't even think of that. >> >> I'm guessing there's no easy way to handle exponents or logarithmic >> functions? I will be running into thes

Re: is there a problem on this simple code

2005-03-13 Thread Jan Rienyer Gadil
@ sir Peter so you mean that it is correct (at least on the unpack() part) when i run this program on IDLE , Python 2.3 (enthought edition), nothing is outputted on the shell, until i decide to close the shell, wherein it tells me if i would like to kill a process... import serial import string

urllib's functionality with urllib2

2005-03-13 Thread Monty
Hello, Sorry for this maybe stupid newbie question but I didn't find any answer in all my readings about python: With urllib, using urlretrieve, it's possible to get the number of blocks transferred and the total size of the file. Is it possible to get those informations with urllib2 ? ( I have

Re: Turning String into Numerical Equation

2005-03-13 Thread Paul McGuire
Almost this exact parser, called fourFn.py, is included in the examples with pyparsing (at http://pyparsing.sourceforge.net). Since it is pure Python, you can extend the grammar with whatever builtin functions you like. But it *is* a parser, not just a short cut. -- Paul -- http://mail.python.

Re: survey

2005-03-13 Thread Peter Hansen
D H wrote: Peter Hansen wrote: Dave Zhu wrote: Is there any survey on scripting languages? I would like to get information on several scripting languages including Python, Perl, Ruby, Tcl, etc. What kind of information? ... See the other responses to his question. Why would I want to do that? Did

An array of a "list" of names.

2005-03-13 Thread spencer
Hi, I'm using NumPy to build an array of a list of names that will be of multiple dimensions.I did do a google on this subject, but couldn't find what I was looking for. The problem I'm having is there are space between each character in each name. To fix this I used the attribute 'tostring'. Thi

tkinter: always scroll to show last line of text

2005-03-13 Thread Benjamin Rutt
I have a tkinter 'Text' and 'Scrollbar' connected and working normally. When a new line of text is inserted (because I'm monitoring an output stream), I'd like the text and scrollbar to be scrolled to the bottom, so the latest line of text is always shown. How to do this? Thanks, -- Benjamin Ru

Re: Why does this not work?

2005-03-13 Thread Peter Hansen
D H wrote: Ask on the wxpython or python-tutor list instead of this one. You'll get better help than there as you've already found out. Not likely. IMHO he got the best help he could possibly have gotten, but clearly that's debatable. :-) The only thing I'd agree with is what Michael Hoffman sai

Re: Web framework

2005-03-13 Thread Sridhar
I'd say Nevow! For apache setup, you might be interested in my wsgi [1] implementation. [1] http://twistedmatrix.com/pipermail/twisted-web/2005-March/001293.html -- http://mail.python.org/mailman/listinfo/python-list

Re: confusion around CustomException example in 'Python in a Nutshell'

2005-03-13 Thread Peter Hansen
[EMAIL PROTECTED] wrote: What I am trying to do is get information from a raised custom exception. I am catching the exception in a main() function but it was actually raised in a separate module function. It would be nice if I could print out where the exception was raised from (module.functio

Re: is there a problem on this simple code

2005-03-13 Thread Peter Hansen
Dennis Lee Bieber wrote: rx_data1=0 while (rx_data1 != 0x46): rx_data1 = ser.read(1) (rx_command) = unpack('1B', rx_data1) Isn't this unpack rather redundant -- assuming ser.read(1) only reads one byte, then rx_data1 and rx_command would be identical. Brain fart... unpack converts the raw

  1   2   >