Graph, how to?

2005-01-25 Thread jrlen balane
i'm going to use now the matplotlib in plotting a graph. i'm currently using python 2.3(enthought edition) on win 2000/xp. i'm using boa constructor on the GUI part. i am using an MDIParentFrame. one of the child frame will be used for the table part. then another child frame will be used to show

Re: How to assign

2005-01-25 Thread Laszlo Zsolt Nagy
Jan Rienyer Gadil wrote: Sort of a newbie question: How am i going to assign to a variable anything the user inputs on a wxTxtCtrl? I'm affraid you have to do it manually. I think the best solution is to use a property like this: import wx class FrameMain(wx.Frame): def __init__(self, *args

Re: delay and force in Python

2005-01-25 Thread Nick Coghlan
Bengt Richter wrote: You can bail out of a generator expression with a raise-StopIteration expression spelled iter([]).next() ;-) >>> list(show(x) for x in xrange(20) if x<8 or iter([]).next() or True) 0 1 2 3 4 5 6 7 [0, 1, 2, 3, 4, 5, 6, 7] This is both neat and incredibly arcane at the same

Re: python without OO

2005-01-25 Thread Nick Coghlan
Davor wrote: thanks for the link know what's funny: in the Lua mailing list there is currently a discussion about adding OO to Lua. I guess most of these newer languages have no choice but to support OO if they want to attract a larger user base :-(... Tell me, have you ever defined a C structure

Re: how to write a tutorial

2005-01-25 Thread Xah Lee
in my previous two messages, i've criticized the inanity of vast majority of language documentations and tutorials in the industry. I've used the Python tutorial's chapter on class as an example. I've indicated that proper tutorial should be simple, covering just common cases, be self-contained, an

Re: delay and force in Python

2005-01-25 Thread Bengt Richter
On Tue, 25 Jan 2005 23:53:26 +1000, Nick Coghlan <[EMAIL PROTECTED]> wrote: >Peter Otten wrote: >> Nick Coghlan wrote: >> >> Py> print islice((x for x in xrange(1, 996) if x % 2 == 0), 1, 2).next() 4 >>> >>>Wouldn't it be nice if this could be spelt: >>> >>>print (x for x in xrange(1, 99

How to assign

2005-01-25 Thread Jan Rienyer Gadil
Sort of a newbie question: How am i going to assign to a variable anything the user inputs on a wxTxtCtrl? -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Terry Reedy
Davor, Before I learned Python, I too was put off by OO hype. And I suppose I still would be if I still listened to it. But Python's class statement is somewhere inbetween a C typedef and C++/Jave classes. Stripped down pretty much to the essentials and only used when really useful, it made m

Re: script to search ebay?

2005-01-25 Thread Kamilche
This script works. But why not make a 'Favorite Search' in ebay, and have it send you daily email for a year? --Kamilche |import urllib |import smtplib | |def main(): |# Perform the search |results = SearchEbay(['So long and thanks for all the fish', | 'NOMATCHFOUND',

RE: I want update one record using ADO,but I can't ,why?

2005-01-25 Thread Robert Brewer
nightmarch wrote: > Sorry, I mean this code line " rs.Supports( wc.constants.adUpdate ) " > got False result, So I can't update one record,i.e. I can't execute > this code "rs.Fields.Item(0).Value = 11". > > And , if code is written like this: > > ##conn.Open(connStr ) >rs.Open( tblName,

Re: alternatives to mod python

2005-01-25 Thread Brian Beck
Anyone have any suggestions? The only other thing I looked at was twisted, which I'm still evaluating. Might as well check out CherryPy as well. www.cherrypy.org Might turn out to be simpler for your needs. -- Brian Beck Adventurer of the First Order -- http://mail.python.org/mailman/listinfo/pyth

Re: alternatives to mod python

2005-01-25 Thread Sridhar
> Anyone have any suggestions? The only other thing > I looked at was twisted, which I'm still evaluating. I second that. Add Nevow too - www.nevow.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Python with no significant whitespace

2005-01-25 Thread Tom
Just though I'd point out that Logix *does* use whitespace for delimiting blocks. Or rather, it can use whitespace, and the languages that come as standard do. With Logix you could quite easily make a version of Python with, e.g., braces instead of whitespace for delimiting blocks. That's probably

Re: python without OO

2005-01-25 Thread Davor
thanks for the link > know what's funny: in the Lua mailing list there is currently a > discussion about adding OO to Lua. I guess most of these newer languages have no choice but to support OO if they want to attract a larger user base :-(... davor -- http://mail.python.org/mailman/listinfo/p

[ANN] SQLObject 0.6.1

2005-01-25 Thread Ian Bicking
SQLObject 0.6.1 --- Version 0.6.1 is a bug fix release for 0.6. Most of the work on this release has been thanks to the contributions of Oleg Broytmann. Thanks Oleg! A brief list of changes: * All class methods take a connection argument. * "DISTINCT" option for select results. * Conne

import hook, overwrite import?

2005-01-25 Thread Torsten Mohr
Hi, is there some description available to overwrite the import hook? By googling i found out so far that i need to overwrite __builtins__.__import__ with something else. Can i also do this with a C function that is provided when using an embedded python interpreter? So my own C program provide

alternatives to mod python

2005-01-25 Thread snacktime
I'm looking for a simple async ssl http server that can accept http POST requests. Performance is an issue, which is why I'm currently using mod python. I don't really want to require installing apache and mod python though if I can help it, since this is software that will be distributed to end

Re: python without OO

2005-01-25 Thread Davor
M.E.Farmer, first to clarify few things - I'm neither manager nor professionally involved in code development - I'm just embarking on a small project that I would like to attract some programmers to later on and make it a nice open-source system. Based on my previous experience with few SMALL proj

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread JanC
Francis Girard schreef: > I'm really not sure but there might be some way to embed Java Script > within Jython. You can embed JavaScript in CPython, but I don't know how secure or stable it is: -- JanC "Be strict when sending and toleran

Re: threading.py Condition wait overflow error

2005-01-25 Thread Tim Peters
[Mark English] > Every once in a while since I moved to Python 2.4 I've been seeing the > following exception in threading.py Condition: > > File "mctest3.py", line 1598, in WaitForMessages >self.condResponses.wait(1.0) > File "C:\Program Files\Python24\lib\threading.py", line 221, in wait >

Re: python without OO

2005-01-25 Thread Frank Bechmann (w)
even if I follow the other answers above - language-wise and management-advise-wise - just for the sake of completeness - I would like to point you to Lua: http://www.lua.org/ 1. portability (interpreter runs quite a bit architectures) => yes, nearly pure ANSI-C should compile 2. good ba

Re: py2exe problem

2005-01-25 Thread Grant Edwards
On 2005-01-26, Club-B42 <[EMAIL PROTECTED]> wrote: > i've compiled my programm using command "python setup.py py2exe >1" > > python script works fine, but .exe version fails with > LookupError: no codec search functions registered: can't find encoding Googling for the error message will find you

Re: re Insanity

2005-01-25 Thread Aahz
In article <[EMAIL PROTECTED]>, Tim Daneliuk <[EMAIL PROTECTED]> wrote: > >Given an arbitrary string, I want to find each individual instance of >text in the form: "[PROMPT:optional text]" > >I tried this: > > y=re.compile(r'\[PROMPT:.*\]') > >Which works fine when the text is exactly "[PROMP

py2exe problem

2005-01-25 Thread Club-B42
i've compiled my programm using command "python setup.py py2exe >1" python script works fine, but .exe version fails with = D:\[Egor]\Scripts\B-4-2\la2luncher\dist>la2launcher.exe Traceback (most recent call last): File "la2launc

Re: Classical FP problem in python : Hamming problem

2005-01-25 Thread Bengt Richter
On Tue, 25 Jan 2005 11:46:04 -0800, Jeff Shannon <[EMAIL PROTECTED]> wrote: >Bengt Richter wrote: > >> On 25 Jan 2005 08:30:03 GMT, Nick Craig-Wood <[EMAIL PROTECTED]> wrote: >> >>>If you are after readability, you might prefer this... >>> >>>def hamming(): >>> def _hamming(): >>> yield 1 >>>

Re: Textual markup languages (was Re: What YAML engine do you use?)

2005-01-25 Thread Aahz
In article <[EMAIL PROTECTED]>, Alan Kennedy <[EMAIL PROTECTED]> wrote: > >However, I'm torn on whether to use ReST for textual content. On the one >hand, it's looks pretty comprehensive and solidly implemented. But OTOH, >I'm concerned about complexity: I don't want to commit to ReST if it's >

Re: Help! Host is reluctant to install Python

2005-01-25 Thread Daniel Bickett
On [EMAIL PROTECTED] wrote: > Daniel Bickett <[EMAIL PROTECTED]> writes: > > I've been trying to convince my host to install python/mod_python on > > his server for a while now, however there are a number of reasons he > > is reluctant to do so, which I will outline here: > > I'm surprised that yo

OT

2005-01-25 Thread Jim Benson
On Wed, 26 Jan 2005 [EMAIL PROTECTED] wrote: > That sounds like you're doing a closed source product and need an ENC > exception or something even worse. Python should qualify for the TSU > exception which only requires sending an email. > > http://www.bxa.doc.gov/encryption/PubAvailEncSourceCod

DDE syntax help

2005-01-25 Thread Dana Marcusanu
Hello, I am trying to convert an Excel SpreadSheet to Python. The formula in Excel for one of the cells is =DDE("ser1","ser2","ser3"). The name of the server is ser1, ser2 is the topic, and ser3 is an item. I already tried using: >>> import dde >>> ddes = dde.CreateServer() >>> ddes.Create("ser1

Re: Can't load bytecode with execfile ?

2005-01-25 Thread Nick Coghlan
Bo Jacobsen wrote: I have a number of files compiled to bytecode using py_compile.compile(). The .pyc files can be invoked by python directly ($python file.pyc), but "loading" them by execfile just throws an exception ? Py> help(execfile) Help on built-in function execfile in module __builtin__: ex

Re: Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement)

2005-01-25 Thread phr
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > So far getting the agreement for my product has taken two months of work > (http://www.bis.doc.gov/encryption/) I hope to get a positive > response this week (wish me luck!) That sounds like you're doing a closed source product and need an EN

Re: HAVE YOU HEARD THE GOOD NEWS!

2005-01-25 Thread has
[EMAIL PROTECTED] wrote: > Good News! What! Guido's just announced Python 3000? Woo-HoOh. F**t. -- TROLLS 13.12: 'And lo, did the Lord Gawd Almighty command: "Go ye forth and Spam all the Seven Thousand and Seventy-seven Groups of Usenet. For truly I am a Beneficent Gawd, and shall surely

Re: python without OO

2005-01-25 Thread M.E.Farmer
Davor, I was gonna let it go but I never was good at shutin up ;) The greatest strength a manager can have is delegation. And with that add the ability to best use the resources available . It seems you are telling me that : 1) You do not understand most programming concepts 2) You are not wil

Re: Python with no significant whitespace

2005-01-25 Thread Stephen Thorne
On Wed, 26 Jan 2005 11:31:18 +0800, mep <[EMAIL PROTECTED]> wrote: > Hi,all > Is there anybody trying to release a modification version to current > python source code with no significant whitespace, say replacing whitespace > by {} > like C or java. I do *NOT* mean whitespace is good or bad, j

Python with no significant whitespace

2005-01-25 Thread mep
Hi,all Is there anybody trying to release a modification version to current python source code with no significant whitespace, say replacing whitespace by {} like C or java. I do *NOT* mean whitespace is good or bad, just want to know. Best Regards, mep -- http://mail.python.org/mailman/lis

Re: Open Folder in Desktop

2005-01-25 Thread Kamilche
Thanks, startfile worked great for me! -- http://mail.python.org/mailman/listinfo/python-list

Re: I want update one record using ADO,but I can't ,why?

2005-01-25 Thread nightmarch
Sorry, I mean this code line " rs.Supports( wc.constants.adUpdate ) " got False result, So I can't update one record,i.e. I can't execute this code "rs.Fields.Item(0).Value = 11". And , if code is written like this: ##code- I got error msg like following: ##errorMsg

Can't load bytecode with execfile ?

2005-01-25 Thread Bo Jacobsen
I have a number of files compiled to bytecode using py_compile.compile(). The .pyc files can be invoked by python directly ($python file.pyc), but "loading" them by execfile just throws an exception ? Any suggestions Bo. -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Jeff Shannon
Davor wrote: M.E.Farmer wrote: Wrap your head around Python, don't wrap the Python around your head! This is NOT Java, or C++ or C , it IS Python. that's interesting hypothesis that behavior will vary due to the use of different language ... If using a different language doesn't require/encourage

Re: Browsing text ; Python the right tool?

2005-01-25 Thread John Machin
Jeff Shannon wrote: > Paul Kooistra wrote: > > > 1. Does anybody now of a generic tool (not necessarily Python based) > > that does the job I've outlined? > > 2. If not, is there some framework or widget in Python I can adapt to > > do what I want? > > Not that I know of, but... > > > 3. If not, s

Re: string.atoi and string.atol broken?

2005-01-25 Thread Nick Coghlan
Peter Otten wrote: Mike Moum wrote: s.atoi('4',3) should result in 11 s.atoi('13',4) should result in 31 s.atoi('12',4) should result in 30 s.atoi('8',4) is legitimate, but it generates an error. Is this a bug, or am I missing something obvious? You and atoi() seem to disagree about the direction

Re: python without OO

2005-01-25 Thread Jeremy Bowers
On Tue, 25 Jan 2005 15:01:23 -0800, Davor wrote: > Thanks, > > I do not hate OO - I just do not need it for the project size I'm > dealing with - and the project will eventually become open-source and > have additional developers - so I would prefer that we all stick to > "simple procedural" stuf

Re: Open Folder in Desktop

2005-01-25 Thread Steve Holden
Kamilche wrote: Is there a command you can execute in Python that will open a window on the desktop, such as 'My Documents'? Kind of like 'system', but for folder names, not just programs. I'm running on Windows 2000. os.system("start .") works for me. regards Steve -- Steve Holden h

Re: python without OO

2005-01-25 Thread Jeff Shannon
Davor wrote: [...] what I need that Python has and bash&dos don't is: 1. portability (interpreter runs quite a bit architectures) 2. good basic library (already there) 3. modules for structuring the application (objects unnecessary) 4. high-level data structures (dictionaries & lists) 5. no strong

Re: Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement)

2005-01-25 Thread Philippe C. Martin
>In the USA, it's pretty simple, you just send an email to an address >at the BXA telling them what you're exporting. >See http://www.bxa.doc.gov/Encryption for info. I wish it were so :-) So far getting the agreement for my product has taken two months of work (http://www.bis.doc.gov/encryptio

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Arthur
On Tue, 25 Jan 2005 23:08:06 GMT, [EMAIL PROTECTED] (Cameron Laird) wrote: >In article <[EMAIL PROTECTED]>, >Terry Reedy <[EMAIL PROTECTED]> wrote: > . > . > . >>worrying about Python security seems superfluous. Why worry, for inst

Maximum Number of Class Attributes

2005-01-25 Thread Bob Parnes
In its default configuration, my version of pylint (0.5.0) sets the maximum number of class attributes at 7. This seems low to me, but I can see how an excessive number might make maintenance more difficult. Is this indeed the best value for a maximum under ordinary conditions? If not, can anyone s

Re: Help! Host is reluctant to install Python

2005-01-25 Thread phr
Daniel Bickett <[EMAIL PROTECTED]> writes: > I've been trying to convince my host to install python/mod_python on > his server for a while now, however there are a number of reasons he > is reluctant to do so, which I will outline here: I'm surprised that you're getting such detailed answers from

Re: python without OO

2005-01-25 Thread Erik Johnson
"Davor" <[EMAIL PROTECTED]> wrote > I do not hate OO - I just do not need it for the project size I'm > dealing with - and the project will eventually become open-source and > have additional developers... If you think your project is valuable enough to eventually be "Open Source", you can b

Re: MySQLdb

2005-01-25 Thread nobody
> The problem I have is that it takes just over two minuted to execute the > 3000 insert statements which seems really slow! Are you creating a new DB connection for every insert? I just did a test on my system (Athlon 2500+), 3000 rows with an auto_increment field and a randomly generated 128 ch

Re: string.atoi and string.atol broken?

2005-01-25 Thread Mike Moum
Dennis Benzinger wrote: Just out of curiosty: What did you think what atoi does? I don't understand how you came to expect that atoi('4',3) should result in 11. Bye, Dennis Mea culpa. For some strange reason, I had it in my mind that atoi would take a base ten number as a string and convert it to

Re: string.atoi and string.atol broken?

2005-01-25 Thread Fredrik Lundh
Mike Moum wrote: > s.atoi('4',3) should result in 11 > > s.atoi('13',4) should result in 31 > > s.atoi('12',4) should result in 30 > > s.atoi('8',4) is legitimate, but it generates an error. > > Is this a bug, or am I missing something obvious? the function's named "atoi", not "atoitoa". --

HAVE YOU HEARD THE GOOD NEWS!

2005-01-25 Thread google_groups_web
Good News! Do you know how simple it is to go to Heaven after this life has ended? Some people believe that belonging to a local church, temple, mosque or synagogue will get them to Heaven. Others believe that water baptism, obeying the ten commandments or just being a good person will get th

Re: Help! Host is reluctant to install Python

2005-01-25 Thread Jeff Shannon
Daniel Bickett wrote: I've been trying to convince my host to install python/mod_python on his server for a while now, however there are a number of reasons he is reluctant to do so, which I will outline here: 1. His major reason is optimization. He uses Zend's optimization of PHP as an example, an

Re: python without OO

2005-01-25 Thread richard
Davor wrote: > M.E.Farmer wrote: >> Wrap your head around Python, don't wrap the Python around your head! >> This is NOT Java, or C++ or C , it IS Python. > > that's interesting hypothesis that behavior will vary due to the use of > different language - actually most python scripts that I have se

Re: Where can I find Mk4py.dll for python24 ?

2005-01-25 Thread Steven Bethard
Jose Rivera wrote: I installed the new release and I have not been able to make work metakit. Please give me some help to enjoy metakit and python 24. Repeating your request every 10 minutes is not likely to get you help quicker. On the contrary, it's more likely to make people ignore your threa

Re: string.atoi and string.atol broken?

2005-01-25 Thread Dan Bishop
Peter Otten wrote: > Mike Moum wrote: > > > s.atoi('4',3) should result in 11 > > > > s.atoi('13',4) should result in 31 > > > > s.atoi('12',4) should result in 30 > > > > s.atoi('8',4) is legitimate, but it generates an error. > > > > Is this a bug, or am I missing something obvious? > > You and a

Re: Browsing text ; Python the right tool?

2005-01-25 Thread Jeff Shannon
Paul Kooistra wrote: 1. Does anybody now of a generic tool (not necessarily Python based) that does the job I've outlined? 2. If not, is there some framework or widget in Python I can adapt to do what I want? Not that I know of, but... 3. If not, should I consider building all this just from scratc

Re: smtplib bug with Windows XP

2005-01-25 Thread Steve Christensen
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > thank Peter, elbert, for the suggestions. I hadn't thought of using > telnet to try to connect to the SMTP server. and when I do try, telnet > can't connect either, at least on port 25. On port 110, it has no > problem. So, perhaps the

Re: string.atoi and string.atol broken?

2005-01-25 Thread Peter Otten
Mike Moum wrote: > s.atoi('4',3) should result in 11 > > s.atoi('13',4) should result in 31 > > s.atoi('12',4) should result in 30 > > s.atoi('8',4) is legitimate, but it generates an error. > > Is this a bug, or am I missing something obvious? You and atoi() seem to disagree about the direct

Where can I find Mk4py.dll for python24 ?

2005-01-25 Thread Jose Rivera
I installed the new release and I have not been able to make work metakit. Please give me some help to enjoy metakit and python 24. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Tuple slices

2005-01-25 Thread George Sakkis
"Jeff Shannon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > George Sakkis wrote: > > > An iterator is perfectly ok if all you want is to iterate over the > > elements of a view, but as you noted, iterators are less flexible than > > the underlying sequence. The view should be (or a

Where can I find Mk4py.dll for Python24?

2005-01-25 Thread Jose Rivera
Hi I changed for python24 and the only thing missed is metakit for python24. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Davor
M.E.Farmer wrote: Wrap your head around Python, don't wrap the Python around your head! This is NOT Java, or C++ or C , it IS Python. that's interesting hypothesis that behavior will vary due to the use of different language - actually most python scripts that I have seen do not even use OO which

Re: python without OO

2005-01-25 Thread Michael Spencer
Davor wrote: Thanks, I do not hate OO - I just do not need it for the project size I'm dealing with - and the project will eventually become open-source and have additional developers - so I would prefer that we all stick to "simple procedural" stuff rather than having to deal with a developer that

Re: python without OO

2005-01-25 Thread Davor
On the other hand, this does beggar for a reason to bother with Python at all. It seems you could be happy doing BASH scripts for Linux or DOS batch files for Windows. Both are "nice&simple" scripting languages free of object oriented contamination. not really, what I need that Python has and bas

Re: string.atoi and string.atol broken?

2005-01-25 Thread Dennis Benzinger
Mike Moum wrote: > I think there may be a bug in string.atoi and string.atol. Here's some > output from idle. > > >>Python 2.3.4 (#2, Jan 5 2005, 08:24:51) >>[GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2 >>Type "copyright", "credits" or "license()" for more information. >> >>**

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Terry Reedy <[EMAIL PROTECTED]> wrote: . . . >worrying about Python security seems superfluous. Why worry, for instance, >about os.unlink when the user can just do the same much easier in a tex

Is thera a Metakit for Python 2.4 release ??

2005-01-25 Thread Jose Rivera
Hi Do you know where I can find the Mk4py.dll for Python24 ?. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: python without OO

2005-01-25 Thread Davor
Thanks, I do not hate OO - I just do not need it for the project size I'm dealing with - and the project will eventually become open-source and have additional developers - so I would prefer that we all stick to "simple procedural" stuff rather than having to deal with a developer that will be con

string.atoi and string.atol broken?

2005-01-25 Thread Mike Moum
I think there may be a bug in string.atoi and string.atol. Here's some output from idle. Python 2.3.4 (#2, Jan 5 2005, 08:24:51) [GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2 Type "copyright", "credits" or "license()" for more information. **

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Lee Harr
>> That approach creates a sort of fragility, though. >> Python includes, along with much else, os.unlink(). >> Suppose our original poster doesn't want end-users >> to be able to delete files (or directories ...). > > I don't remember if the OP specified *where* the scripted application is to > b

Re: delay and force in Python

2005-01-25 Thread John J. Lee
Nick Coghlan <[EMAIL PROTECTED]> writes: [...] > (xrange can't handle Python longs, unfortunately, so we *are* > constrained by sys.maxint. However, since my machine only has half a > gig of RAM, the above is still a damn sight quicker than the > equivalent list comprehension would be!) [...] Othe

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Jeff Shannon
Grant Edwards wrote: On 2005-01-25, Rocco Moretti <[EMAIL PROTECTED]> wrote: Bottom line: Don't exec or eval untrusted code. Don't import untrusted modules. I still don't see how that's any different for Python than for any other language. Yep, and one should be careful about executing untrusted C

Re: limited python virtual machine (WAS: Another scripting language implemented into Python itself?)

2005-01-25 Thread Michael Spencer
Cameron Laird wrote: In article <[EMAIL PROTECTED]>, Michael Spencer <[EMAIL PROTECTED]> wrote: . . . Right - the crux of the problem is how to identify dangerous objects. My point is that if such as test is possible, then s

Re: rotor replacement

2005-01-25 Thread John J. Lee
Paul Rubin writes: > [EMAIL PROTECTED] (John J. Lee) writes: > > > Building larger ones seems to > > > have complexity exponential in the number of bits, which is not too > > > > Why? > > The way I understand it, that 7-qubit computer was based on embedding > the qubit

Re: string.atoi and string.atol broken?

2005-01-25 Thread Steven Bethard
Mike Moum wrote: s.atoi('4',3) Traceback (most recent call last): File "", line 1, in -toplevel- s.atoi('4',3) File "/usr/lib/python2.3/string.py", line 220, in atoi return _int(s, base) ValueError: invalid literal for int(): 4 What did you expect the value of '4' in base 3 to be? Ther

Re: limited python virtual machine (WAS: Another scripting language implemented into Python itself?)

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Michael Spencer <[EMAIL PROTECTED]> wrote: . . . >Right - the crux of the problem is how to identify dangerous objects. My >point >is that if such as test is possible, then safe exec is very

Re: Another scripting language implemented into Python itself?

2005-01-25 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Quest Master <[EMAIL PROTECTED]> wrote: . . . >I know C/C++ might be better suited for a task of this kind, but most >of the modules in my application which need speed have already been >coded i

Re: Tuple slices

2005-01-25 Thread George Sakkis
"Terry Reedy" <[EMAIL PROTECTED]> wrote in message news:mailman.1308.1106688018.22381.python- > > Unless you are GvR or Tim Peters, Actually I am the OP. I posted my previous mail from Google groups, which for some reason put my email instead of my name; it should be ok now. > throwing 'pythoni

Re: python without OO

2005-01-25 Thread M.E.Farmer
Wrap your head around Python, don't wrap the Python around your head! This is NOT Java, or C++ or C , it IS Python. Davor wrote: > (note, I am not an experienced developer, nor the > others I'll be working with (even though some think they are:-)) Don't worry we didn't get confused, it was quite cl

Re: Crypto in Python: (Was: What's so funny? WAS Re: rotor replacement)

2005-01-25 Thread phr
"Philippe C. Martin" <[EMAIL PROTECTED]> writes: > I do not know in which country the python.msi is compiled (Deuchland ?), > but most likely, the county has rules like most other as far as crypto > code in binary format export (especially if distributed as part of a > commercial package): for inst

Re: python without OO

2005-01-25 Thread Thomas Bartkus
"Davor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it possible to write purely procedural code in Python, ... Of course! > or the OO > constructs in both language and supporting libraries have got so > embedded that it's impossible to avoid them? You can always *write your o

building Python: up arrow broken on SuSE Linux 8.2

2005-01-25 Thread Erik Johnson
I am trying to upgrade my Python installation. After downloading sources and building Python 2.3.4, I am unable to use the command history editing feature in the interactive interpreter (where the up-arrow would previously give you the last command line to edit, it now just prints "^[[A".) Thi

Re: Help with saving and restoring program state

2005-01-25 Thread M.E.Farmer
Jacob H wrote: > Hello list... > > I'm developing an adventure game in Python (which of course is lots of > fun). I am glad you are having fun , after all life is so short, isn't that what it is all about ;) > One of the features is the ability to save games and restore the > saves later. I'm usi

Re: What's so funny? WAS Re: rotor replacement

2005-01-25 Thread phr
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > There isn't. The interface might be beautifully designed, and you might > claim it is, and I would *still* require that the module gets field > testing before being incorporated into Python. Yes, of course, that's completely reasonable. > If other p

script to search ebay?

2005-01-25 Thread Lance Hoffmeyer
Hi all, Anyone know where I can find a python script to search ebay? I have been looking around but haven't found anything. I know there must be one somewhere so I am probably just looking in the wrong places. Optimally, I would like the script to search ebay and then send an email out with t

Re: Tuple slices

2005-01-25 Thread Jeff Shannon
George Sakkis wrote: An iterator is perfectly ok if all you want is to iterate over the elements of a view, but as you noted, iterators are less flexible than the underlying sequence. The view should be (or at least appear) identical in functionality (i.e. public methods) with its underlying sequen

Re: How to input one char at a time from stdin?

2005-01-25 Thread John Machin
On Wed, 26 Jan 2005 01:15:10 +0530, Swaroop C H <[EMAIL PROTECTED]> wrote: >On Tue, 25 Jan 2005 12:38:13 -0700, Brent W. Hughes ><[EMAIL PROTECTED]> wrote: >> I'd like to get a character from stdin, perform some action, get another >> character, etc. If I just use stdin.read(1), it waits until I

quering the google desktop database

2005-01-25 Thread jelle
Hi, Has anyone so far been messing accessing / quering the google desktop database files? It seems it could be the best reflection of one in a couple of hundred mb, and i intent to unleash some furious queries on it, when i'd know how to access it. Any suggestion how this could be done in python?

Re: Question Regarding SocketServer

2005-01-25 Thread missiplicity
I figured out my problem. I initially had named my program SocketServer.py and then compiled it. It created a file SocketServer.pyc Then I changed the name of the program to TestServer3.py but when I imported SocketServer, it was importing from the compiled file left in the current folder (SocketSe

Re: Question Regarding SocketServer

2005-01-25 Thread missiplicity
[EMAIL PROTECTED] wrote: > I tried to reply earlier... basically your "SocketServer.py" file is > messed up. That line "AF_INET{,6}: IP (Internet Protocol) sockets > (default)" should be commented out. It should be part of a block of > lines that are all commented out. Thanks for your quick resp

Re: how to write a tutorial

2005-01-25 Thread TZOTZIOY
On Sun, 23 Jan 2005 12:28:12 -0500, rumours say that Hans Nowak <[EMAIL PROTECTED]> might have written: >Xah Lee wrote: >> the first paragraph of 9.1 "A Word About Terminology" is epitome of >> masturbation. The entire 9.1 is not necessary. >> >> Large part of 9.2 "Python Scopes and Name Spaces"

Re: python without OO

2005-01-25 Thread Jarek Zgoda
Davor wrote: Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Sure, but you will got problem with libraries. Some of them are in fact frameworks and need some subclassin

Re: python without OO

2005-01-25 Thread Steven Bethard
Davor wrote: Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Hmmm... sorta depends on how you define write procedural code... If you mean, can you write Python code w

Re: Browsing text ; Python the right tool?

2005-01-25 Thread John Machin
Paul Kooistra wrote: > I need a tool to browse text files with a size of 10-20 Mb. These > files have a fixed record length of 800 bytes (CR/LF), and containt > records used to create printed pages by an external company. > > Each line (record) contains an 2-character identifier, like 'A0' or > 'C

Re: Browsing text ; Python the right tool?

2005-01-25 Thread John Machin
Paul Kooistra wrote: > I need a tool to browse text files with a size of 10-20 Mb. These > files have a fixed record length of 800 bytes (CR/LF), and containt > records used to create printed pages by an external company. > > Each line (record) contains an 2-character identifier, like 'A0' or > 'C

Re: limited python virtual machine (WAS: Another scripting language implemented into Python itself?)

2005-01-25 Thread Alexander Schremmer
On Tue, 25 Jan 2005 12:22:13 -0700, Steven Bethard wrote: > >>This is a serious issue. > >> > >>It's also one that brings Tcl, mentioned several > >>times in this thread, back into focus. Tcl presents > >>the notion of "safe interpreter", that is, a sub- > >>ordinate virtual machine which c

python without OO

2005-01-25 Thread Davor
Is it possible to write purely procedural code in Python, or the OO constructs in both language and supporting libraries have got so embedded that it's impossible to avoid them? Also, is anyone aware of any scripting language that could be considered as "Python minus OO stuff"? (As you can see I'm

Re: Question Regarding SocketServer

2005-01-25 Thread [EMAIL PROTECTED]
I tried to reply earlier... basically your "SocketServer.py" file is messed up. That line "AF_INET{,6}: IP (Internet Protocol) sockets (default)" should be commented out. It should be part of a block of lines that are all commented out. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >