Need programming tip

2005-01-29 Thread ssaeed1973
I am trying to write a program in python (brand new to Python) that would create a database of posts made to binary groups so the user can search for a certain file and have a nzb file returned. I am planning on using the XOVER command to get the list of posts and then dump those into a database. T

Re: Trouble installing numeric

2005-01-29 Thread Robert Kern
Chris Weisiger wrote: I'm trying to install numeric on my MacOS X box using Darwin, with the eventual goal of satisfying all of PyGame's dependencies so I can finally start working on my semester project. I would be using MacPython, except that I can't seem to get its Package Manager to work. A

Re: is this sort method the same as the one in python 2.4

2005-01-29 Thread Fredrik Lundh
Raymond Hettinger wrote: >> I'm trying to emulate the sorted() method introduced in python 2.4. The >> only difference is that it takes a sequence as one of its arguments >> rather than being a method of the sequence class. Does my method do the >> same as the sorted()? > > Almost. This is closer

Trouble installing numeric

2005-01-29 Thread Chris Weisiger
I'm trying to install numeric on my MacOS X box using Darwin, with the eventual goal of satisfying all of PyGame's dependencies so I can finally start working on my semester project. I would be using MacPython, except that I can't seem to get its Package Manager to work. Anyway, when I

Re: is this sort method the same as the one in python 2.4

2005-01-29 Thread Raymond Hettinger
"Lowell Kirsh" > I'm trying to emulate the sorted() method introduced in python 2.4. The > only difference is that it takes a sequence as one of its arguments > rather than being a method of the sequence class. Does my method do the > same as the sorted()? Almost. This is closer to the mark: def

Re: what's OOP's jargons and complexities?

2005-01-29 Thread Larry
Xah Lee wrote: > in computer languages, often a function definition looks like this: > [EMAIL PROTECTED] > http://xahlee.org/PageTwo_dir/more.html Your ideas are original, insightful and simply reflect incredibly deep creative genius. I have read your work and I want to hire you for highly cl

Re: Coding style article with interesting section on white space

2005-01-29 Thread beliavsky
Michael Tobis wrote: > (unwisely taking the bait...) > > If you like your language to look like this > http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html > then more power to you. Thanks for pointing out that interesting article on Fortran 90 bugs. How long would a comparable C++ list be? Even Python

[Plone] Detailed poll results?

2005-01-29 Thread Adam Twardoch
Hello, Is there a method, or an alternative module that could be used, to have "polls" in Plone that display detailed results of the poll, i.e. all users and the votes they have given? Adam -- http://mail.python.org/mailman/listinfo/python-list

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. import re re.compile re.__file__

Re: cx_freeze error

2005-01-29 Thread zyqnews
Thanks for your answer. I tried it and the result is: [cxfreeze]$ python Python 2.2.3 (#1, Oct 15 2003, 23:33:35) [GCC 3.3.1 20030930 (Red Hat Linux 3.3.1-6)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> re.compile >>> re.__file__ '/usr/lib/py

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

2005-01-29 Thread Paul Rubin
Skip Montanaro <[EMAIL PROTECTED]> writes: > >> * Quixote > > Paul> Don't know what this is. > > Web app framework. I think Python should add a web app framework to its core, again since it otherwise can't seriously begin to compete with PHP. However, there are lots of approaches so thi

Re: [Tkinter] problem

2005-01-29 Thread Jeff Epler
These lines > if __name__ == '__main__': > OptionsWindow() mean "if this source code is the main program (not an imported module), call OptionsWindow()". So the behavior should be different when the source code is the main program ('python opt_newlogin.py') and when it's imported ('python -c "

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Interesting. Just to confirm, could you try this? Run Python, and at the interactive prompt, type the following: >>> import re >>> re.compile >>> re.__file__ (path to

Re: cx_freeze error

2005-01-29 Thread zyqnews
There is no any module like "re.py", I just compiled the hello.py it has only one line: print "hello!" Anyone knows how? -- http://mail.python.org/mailman/listinfo/python-list

nedd help on using Installer

2005-01-29 Thread zyqnews
hello: I am using Install to create a standalone program for linux. What I has done is : [Installer]$cd source/linux [linux]$python Make.py [linux]$make [Installer]$cd ../../ [Installer]$python Configure.py [Installer]$python Makespec.py hello.py [Installer]$python Build.py hello Traceback (most r

Re: cx_freeze error

2005-01-29 Thread Peter Hansen
[EMAIL PROTECTED] wrote: I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePytho

Re: Coding style article with interesting section on white space

2005-01-29 Thread Michael Tobis
(unwisely taking the bait...) If you like your language to look like this http://www.cs.rpi.edu/~szymansk/OOF90/bugs.html then more power to you. I prefer my languages to be portable, terse and expressive. That's why I like Python. If you want your language to be obscure, ill-defined and inconsis

Re: bound vs unbound functions

2005-01-29 Thread Kent Johnson
Michael Tobis wrote: I'm trying to do metaprogramming. I'm sure I've got this all wrong wrong wrong, but somehow my approach hasn't yet hit a brick wall. Anyway, I'd like to dynamically add a method to an instance at instantiation time. Something like ## In [71]: class quux(object): : d

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

2005-01-29 Thread Paul Rubin
Nick Craig-Wood <[EMAIL PROTECTED]> writes: > I would hate to see a module which only implemented ECB. Sure its the > only operation necessary to build the others out of, but its the least > secure mode of any block cipher. It's intended as a building block for other modes. Most applications sho

is this sort method the same as the one in python 2.4

2005-01-29 Thread Lowell Kirsh
I'm trying to emulate the sorted() method introduced in python 2.4. The only difference is that it takes a sequence as one of its arguments rather than being a method of the sequence class. Does my method do the same as the sorted()? The obvious difference is that my method is called as sort(se

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

2005-01-29 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > mxCrypto is primarily unsuitable for the core because Marc-Andre Lemburg > will never ever contribute it. He is very concerned about including > crypto code with the Python distribution, so he certainly won't > contribute his own. Oh wait, I confused

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

2005-01-29 Thread Paul Rubin
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > Apparently, people disagree on what precisely the API should be. E.g. > cryptkit has > > obj = aes(key) > obj.encrypt(data) I don't disagree about the API. The cryptkit way is better than ECB example I gave, but the ECB example shows it's possible

[Tkinter] problem

2005-01-29 Thread Club-B42
when i start opt_newlogin.py directly it works fine(outputs '1 1 1 1'), but if i start it from options.py there is an error(outputs ''). opt_newlogin.py from config import * from Tkinter import * from opt_newlogin import newlogin def OptionsWindow(): """ """ root =

Re: Description Field in WinXP Services

2005-01-29 Thread rbt
rbt wrote: Roger Upole wrote: ChangeServiceConfig2 is the api functions that sets the description, but it's not in the win32service module (yet). Roger OK, I can use _winreg to add the 'Description' field under the appropriate registry key. Here's an example of it... kludgey but it works

Re: [perl-python] sending email

2005-01-29 Thread Dan Perl
I recommend the example in the Python Library Reference as a better example: http://www.python.org/doc/lib/SMTP-example.html. You can also find the entire description of the smtplib module in the same section (http://www.python.org/doc/lib/module-smtplib.html). Xah Lee's example is missing:

Re: limited python virtual machine

2005-01-29 Thread Nick Coghlan
Alex Martelli wrote: It didn't seem to me that Steven's question was so restricted; and since he thanked me for my answer (which of course is probably inapplicable to some custom interpreter that's not written yet) it appears to me that my interpretation of his question was correct, and my answer u

Re: Coding style article with interesting section on white space

2005-01-29 Thread Nick Coghlan
[EMAIL PROTECTED] wrote: The suggestions in the cited article, "How Not to Write FORTRAN in Any Language", are reasonable but elementary and can be followed in Fortran 90/95/2003 as well as any other language. What infuriates me is that the author writes as if Fortran has not evolved since the 1960

{Spam?} Re: naive doc question

2005-01-29 Thread Terry Reedy
"Gabriel B." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I wanted a list of all the methods of dict for example... where can i > find it? Lib Ref 2.3.8 Mapping Types. Do browse chapter 2 so you know what is there. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/

Re: naive doc question

2005-01-29 Thread Michael Tobis
I wouldn't call the responses here helpful; they seem overspecific. I had a similar problem which led to the follwing code. After I came up with this I saw a very similar utility was derived in Dive into Python. see http://diveintopython.org/power_of_introspection/index.html#apihelper.divein Any

Re: Hey, get this! [was: import from database]

2005-01-29 Thread Steve Holden
Peter Otten wrote: Steve Holden wrote: This is even stranger: it makes it if I import the module a second time: [second import seems to succeed] Maybe you are experiencing some version confusion? What you describe looks much like the normal Python 2.3 behaviour (with no import hook involved) wher

Re: naive doc question

2005-01-29 Thread Dan Perl
"Michael Hartl" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > i.e., http://docs.python.org/lib/typesmapping.html > If you look on the index page of the Python Library Reference (http://docs.python.org/lib/genindex.html), you will find "dictionary object", which will take you ex

Re: tutorial idea

2005-01-29 Thread Nick Coghlan
ElctrcElctrcgtr1 wrote: have a java applet that runs python code, with a tutorial that goes along with it. that way you just have to go to a website to learn it, instead of downloading and installing a few programs. (i would make it so it assumes that you don't know how to program anything.) Someth

{Spam?} Re: bound vs unbound functions

2005-01-29 Thread Terry Reedy
"Michael Tobis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd like to dynamically add a method to an instance at > instantiation time. No can do. A method is function that is an attribute of a class, even if accessed via an instance. A function added to an instance as an

cx_freeze error

2005-01-29 Thread zyqnews
I am new to Python. I made a script, and compiled it with cx_freeze, but I got the following message from it: [cxfreeze]$./FreezePython hello.py Traceback (most recent call last): File "initscripts/ConsoleKeepPath.py", line 15, in ? exec code in m.__dict__ File "FreezePython.py", line 1, in ? File

tutorial idea

2005-01-29 Thread ElctrcElctrcgtr1
have a java applet that runs python code, with a tutorial that goes along with it. that way you just have to go to a website to learn it, instead of downloading and installing a few programs. (i would make it so it assumes that you don't know how to program anything.) -- http://mail.python.org/mai

Re: naive doc question

2005-01-29 Thread Michael Hartl
i.e., http://docs.python.org/lib/typesmapping.html -- http://mail.python.org/mailman/listinfo/python-list

Re: naive doc question

2005-01-29 Thread Brian van den Broek
Gabriel B. said unto the world upon 2005-01-29 19:38: Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i really can't find it It's just you ;-) Try the Library

naive doc question

2005-01-29 Thread Gabriel B.
Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i really can't find it -- http://mail.python.org/mailman/listinfo/python-list

Re: Description Field in WinXP Services

2005-01-29 Thread rbt
Roger Upole wrote: ChangeServiceConfig2 is the api functions that sets the description, but it's not in the win32service module (yet). Roger OK, I can use _winreg to add the 'Description' field under the appropriate registry key. -- http://mail.python.org/mailman/listinfo/python-list

Proxy

2005-01-29 Thread Ali Polatel
is it possible to connect to somewhere through a proxy while using sockets module of Python to connect? If yes can you show me some basic examples? regards Do you Yahoo!? Yahoo! Search presents - Jib Jab's 'Second Term'-- http://mail.python.org/mailman/listinfo/python-list

[perl-python] sending email

2005-01-29 Thread Xah Lee
# -*- coding: utf-8 -*- # Python # Suppose you want to spam your friend, and you have lots of # friends. The solution is to write a program to do it. After a gander # at python docs, one easily found the module for the job. # see http://python.org/doc/2.3.4/lib/SMTP-example.html # the code is a b

Re: bound vs unbound functions

2005-01-29 Thread Steven Bethard
Michael Tobis wrote: Anyway, I'd like to dynamically add a method to an instance at instantiation time. Something like Nearly identical question from yesterday and a series of answers: http://mail.python.org/pipermail/python-list/2005-January/263024.html Steve -- http://mail.python.org/mailman/list

bound vs unbound functions

2005-01-29 Thread Michael Tobis
I'm trying to do metaprogramming. I'm sure I've got this all wrong wrong wrong, but somehow my approach hasn't yet hit a brick wall. Anyway, I'd like to dynamically add a method to an instance at instantiation time. Something like ## In [71]: class quux(object): : def __init__(self,st

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

2005-01-29 Thread Christophe Cavalaria
Steven Bethard wrote: > Fuzzyman wrote: > > Cameron Laird wrote: > > [snip..] > > > >>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- > >>ordin

Re: limited python virtual machine

2005-01-29 Thread Alex Martelli
Skip Montanaro <[EMAIL PROTECTED]> wrote: > Alex> I dunno, maybe I'm just being pessimistic, I guess... > > No, I think you are being realistic. I thought one of the basic tenets of > computer security was "that which is not expressly allowed is forbidden". > Any attempt at security that att

scope rules in nested functions

2005-01-29 Thread Andrew Collier
Hello, I was writing a program which used some nested functions, and came across a behaviour which I was unable to explain. I can summarise it with the example below: #!/usr/bin/env python def evalfunction0(a): print "Call by eval - Success! arg =",a def evalfunction3(a): def evalfun

re: Marketing reST (was Re: What YAML engine do you use

2005-01-29 Thread ajsiegel
Aahz writes - >While I can see how you'd get that impression of reST, it's not true: >like Python, reST is intended to be simpl*er* and readable, but not >simple. Really? ;) Thanks for taking this one on. I was tempted. But scared ;) I find reST quite useful. Not a very sophisticated way

Re: Description Field in WinXP Services

2005-01-29 Thread Roger Upole
ChangeServiceConfig2 is the api functions that sets the description, but it's not in the win32service module (yet). Roger "rbt" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > How does one associate a "Description" with a Windows service written in > Python? I've just sta

Re: Marketing reST (was Re: What YAML engine do you use?)

2005-01-29 Thread richard
Aahz wrote: > While I can see how you'd get that impression of reST, it's not true: > like Python, reST is intended to be simpl*er* and readable, but not > simple.  The joy of reST is that I can concentrate on writing instead of > formatting, just as I do when writing Usenet posts.  ;-)  Even after

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

2005-01-29 Thread Skip Montanaro
Paul> I've had this discussion here before, maybe not with you. What I Paul> really want is zero installations of anything. Fine. Go build a sumo distribution and track the normal CPython. The problem isn't all that new. (Take a look at scipy.org for one take on that theme. Of cours

Re: limited python virtual machine

2005-01-29 Thread Skip Montanaro
Alex> I dunno, maybe I'm just being pessimistic, I guess... No, I think you are being realistic. I thought one of the basic tenets of computer security was "that which is not expressly allowed is forbidden". Any attempt at security that attempts to find and plug the security holes while leav

Re: Pystone benchmark: Win vs. Linux (again)

2005-01-29 Thread Franco Fiorese
Fredrik Lundh wrote: Franco Fiorese wrote: I am relatively new about Python benchmarks. After some experiments I found that Python on my PC Windows XP has a relevant higher performance than on Linux. The simple test using pystone.py shows this: * Windows XP Pro: 16566.7 pystones/second * Linux

Registration is accepted

2005-01-29 Thread Jceasar
Before use read the help The file Jol03.cpl attached to this message posed a potential virus risk to the network and has been removed. If you need to receive a .zip file from an external source, you may request an exception by emailing [EMAIL PROTECTED] Thank you, Risk Mgmt-Info Sec--

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

2005-01-29 Thread Nick Craig-Wood
Paul Rubin wrote: > An AES or DES addition to an existing module that implements just one > call: > ECB(key, data, direction) > would be a huge improvement over what we have now. A more complete > crypto module would have some additional operations, but ECB is the > only one that's reall

ASPy package

2005-01-29 Thread Salvador Fandino
Hello, I have been trying to download ASPy (an old jython package implementing ASP pages support) from the Internet but it is not available anymore from its home page. Does anybody have it and could link it in some public place? Best Regards - Salvador -- http://mail.python.org/mailman/listinf

Re: limited python virtual machine

2005-01-29 Thread Bernhard Herzog
[EMAIL PROTECTED] (Alex Martelli) writes: > OK then -- vars(type(object)) is a dict which has [[the unbound-method > equivalent of]] object.__subclasses__ at its entry for key > '__subclasses__'. Scratch 'vars' in addition to 'getattr'. And 'eval' > of course, or else building up the string 'obj

Re: tk global bindings

2005-01-29 Thread vincent wehren
vincent wehren wrote: Gabriel B. wrote: I'm starting to write a POS application UI's module. In Tk here are three levels of binding: instance binding, class binding, and application binding represented by the bind, bind_class, and bind_all methods. You're probably looking for the the bind_all me

Re: tk global bindings

2005-01-29 Thread vincent wehren
Gabriel B. wrote: I'm starting to write a POS application UI's module. There's no mouse, just a bunch of global shortcuts. the problem is that TK doesn't have global shortcuts! Is there a work-around or i will have to attach 80 or so bindings for every input element? In Tk here are three levels of

Re: [perl-python] 20050127 traverse a dir

2005-01-29 Thread Jeremy Bowers
On Thu, 27 Jan 2005 15:01:12 -0500, Chris Mattern wrote: > Is it just me, or is the disappointing lack of flamewars > slowly ratcheting up the level of vitriol in his posts? What flabbergasts me is the stunning failure in trolling that XL is. I've accidentally trolled (if you can extend the trol

Weekly Python Patch/Bug Summary

2005-01-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 280 open ( +7) / 2747 closed ( +1) / 3027 total ( +8) Bugs: 803 open ( +6) / 4799 closed (+10) / 5602 total (+16) RFE : 167 open ( +1) / 141 closed ( +0) / 308 total ( +1) New / Reopened Patches __ tarfile.E

Redirecting stdout/err under win32 platform

2005-01-29 Thread David Douard
Hi everybody, let me explain by problem: I am working on an application which consists in a C++ dll (numeric computations) and a Python IHM (Python/Tk), which must run under Linux and win32. My problem is the C++ lib does write stuffs on its stdout, and I would like to print those messages in a T

Re: Independence of programs!

2005-01-29 Thread David Douard
blade8472 wrote: > > Hey all, hope all is fine, I have a question; I am new in python > programming, I write the programs to a text doc then I run them with > the interpreter, so I wanna know whether I can save the programs as > exe so that they can be run independently on other PCs without the >

tk global bindings

2005-01-29 Thread Gabriel B.
I'm starting to write a POS application UI's module. There's no mouse, just a bunch of global shortcuts. the problem is that TK doesn't have global shortcuts! Is there a work-around or i will have to attach 80 or so bindings for every input element? Thanks, Gabriel -- http://mail.python.org/mai

Independence of programs!

2005-01-29 Thread blade8472
Hey all, hope all is fine, I have a question; I am new in python programming, I write the programs to a text doc then I run them with the interpreter, so I wanna know whether I can save the programs as exe so that they can be run independently on other PCs without the python interpreter. hope

Re: An mysql-python tutorial?

2005-01-29 Thread Dfenestr8
On Sat, 29 Jan 2005 06:41:37 +, Kartic wrote: [snip] > And here is one more site, good stuff here too:- > http://www.kitebird.com/articles/pydbapi.html > Hi. I followed the instructions there, tried out the test script they recommend. Can you tell me why this command, in the python interp

Description Field in WinXP Services

2005-01-29 Thread rbt
How does one associate a "Description" with a Windows service written in Python? I've just started experimenting with Python services. Here's my code... copied straight from Mr. Hammond's "Python Programming on Win32": import win32serviceutil import win32service import win32event class test_

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

2005-01-29 Thread "Martin v. Löwis"
Paul Rubin wrote: (And actually: mxCrypto is the most capable of these packages and might be the one with the most users, but it's completely unsuitable for the core because of its size). mxCrypto is primarily unsuitable for the core because Marc-Andre Lemburg will never ever contribute it. He is v

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

2005-01-29 Thread "Martin v. Löwis"
Paul Rubin wrote: An AES or DES addition to an existing module that implements just one call: ECB(key, data, direction) would be a huge improvement over what we have now. Apparently, people disagree on what precisely the API should be. E.g. cryptkit has obj = aes(key) obj.encrypt(data) I think I

ANN: eric3 3.6.1 released

2005-01-29 Thread Detlev Offenbach
Hi, this is to let all of you know, that eric3 3.6.1 has just been released. It fixes a few nasty bugs, which were reported since the last release. It is available via http://www.die-offenbachs.de/detlev/eric3.html Eric3 is an Integrated Development Environment for Python. For details please se

Re: Coding style article with interesting section on white space

2005-01-29 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: . . . >One ought to do a little research before publishing an article. >Apparently, many authors and editors are too lazy to do so. > ... and/or ignorant or unculture

Re: future of computing languages

2005-01-29 Thread Peter Hansen
jelle wrote: Quite suprised while reading the Amazin c2.com Wiki: http://c2.com/cgi/wiki?FutureOfProgrammingLanguages Take a look, and feel incredible good about yourself & your decision to opt for python. Did work for me. Cheers, Jelle. Sorry, but it's an annoyingly long page filled with what appe

Re: Who should security issues be reported to?

2005-01-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Skip Montanaro <[EMAIL PROTECTED]> wrote: > >Nick> Upgrading your Python interpreter (even to a new maintenance >Nick> branch release) in a production environment is usually a fairly >Nick> involved exercise requiring a significant amount of testing, and

Re: limited python virtual machine

2005-01-29 Thread Aahz
In article <[EMAIL PROTECTED]>, Alex Martelli <[EMAIL PROTECTED]> wrote: >Aahz <[EMAIL PROTECTED]> wrote: >> Alex Martelli deleted his own attribution: >>> >>> >>> object.__subclasses__() >> >> One thing my company has done is written a ``safe_eval()`` that uses a >> regex to disable double-undersc

Re: limited python virtual machine

2005-01-29 Thread Alex Martelli
Stephen Thorne <[EMAIL PROTECTED]> wrote: > On Sat, 29 Jan 2005 08:53:45 -0600, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > > > >> One thing my company has done is written a ``safe_eval()`` that uses > > >> a regex to disable double-underscore access. > > > > Alex> will the regex c

Line graphics on Linux console

2005-01-29 Thread frank
Hi all I don't think this is strictly a Python problem, but as it manifests itself in one of my Python programs, I am hoping that somebody in this group can help me. The following is a message I sent to co.os.linux.setup - "My question concerns line graphics on a text-based console. ­My actual p

Re: An mysql-python tutorial?

2005-01-29 Thread Andy Dustman
It's a pretty good tutorial, thought I would recommend you forget about the fetchone() example. The example below demonstrates three additional features that will make your life easier: MySQL option files, tuple unpacking, and cursors as iterators (fourth feature: the default host is localhost; thi

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

2005-01-29 Thread Paul Rubin
Paul Rubin writes: > actually: mxCrypto is the most capable of these packages and might be > the one with the most users, but it's completely unsuitable for the > core because of its size). Oops, I should say, mxCrypto itself isn't that large; the issue is that it needs

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

2005-01-29 Thread Paul Rubin
Skip Montanaro <[EMAIL PROTECTED]> writes: > And one that deals with cryptography is likely to be even more complex. No. The AES module would have about the same complexity as the SHA module. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-01-29 Thread Paul Rubin
Skip Montanaro <[EMAIL PROTECTED]> writes: > What's your point? That I have to download and perhaps install them to use > them? In that case, how are these two scenarios different: > > * I have to download and build the MySQLdb package to talk to MySQL > servers from Python code > >

Re: limited python virtual machine

2005-01-29 Thread Stephen Thorne
On Sat, 29 Jan 2005 08:53:45 -0600, Skip Montanaro <[EMAIL PROTECTED]> wrote: > > >> One thing my company has done is written a ``safe_eval()`` that uses > >> a regex to disable double-underscore access. > > Alex> will the regex catch getattr(object, > Alex> 'subclasses'.join(['_'

Re: Coding style article with interesting section on white space

2005-01-29 Thread beliavsky
Nick Coghlan wrote: > Thought some folks here might find this one interesting. No great revelations, > just a fairly sensible piece on writing readable code :) > > The whole article: > http://www.acmqueue.com/modules.php?name=Content&pa=showpage&pid=271&page=1 > > The section specifically on white

Re: limited python virtual machine

2005-01-29 Thread Skip Montanaro
>> One thing my company has done is written a ``safe_eval()`` that uses >> a regex to disable double-underscore access. Alex> will the regex catch getattr(object, Alex> 'subclasses'.join(['_'*2]*2)...?-) Now he has two problems. ;-) Skip -- http://mail.python.org/mailman/listin

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

2005-01-29 Thread Tim Parkin
On Sun, 2005-01-23 at 13:41 +0100, Fredrik Lundh wrote: > Alan Kennedy wrote: > > If I can't find such a markup language, then I might instead end up using a > > WYSIWYG editing > > component that gives the user a GUI and generates (x)html. > > > > htmlArea: http://www.htmlarea.com/ > > Editlet:

Re: The next Xah-lee post contest

2005-01-29 Thread PA
On Jan 29, 2005, at 15:32, rbt wrote: Unix donkey! You not elegant. You have poor design. Sloppy Perl monkey! You be lazy! You code very very bad. Xah know all! Follow The True Path, follow The Xah Way To Enlightenment: "The Unix Pestilence" http://www.xahlee.org/UnixResource_dir/freebooks.html Che

Re: The next Xah-lee post contest

2005-01-29 Thread Stephen Thorne
On Sat, 29 Jan 2005 19:05:55 +0530, Steve <[EMAIL PROTECTED]> wrote: > Hi All, > For sometime now, I have just been a passive lurker on this > list. Of late I saw an increase in the number of posts by Xah Lee, and > I have to admit, what he lacks in understanding of the various > programming

Re: limited python virtual machine

2005-01-29 Thread Alex Martelli
Aahz <[EMAIL PROTECTED]> wrote: ... > object.__subclasses__() ... > One thing my company has done is written a ``safe_eval()`` that uses a > regex to disable double-underscore access. will the regex catch getattr(object, 'subclasses'.join(['_'*2]*2)...?-) Alex -- http://mail.python.o

Re: The next Xah-lee post contest

2005-01-29 Thread rbt
Steve wrote: Hi All, For sometime now, I have just been a passive lurker on this list. Of late I saw an increase in the number of posts by Xah Lee, and I have to admit, what he lacks in understanding of the various programming languages he talks about, he makes up for in creativity. So, I was

Re: The next Xah-lee post contest

2005-01-29 Thread PA
On Jan 29, 2005, at 14:35, Steve wrote: Here's my contribution (tho' I'm not really in my most creative frame of mind): Not being very creative myself, here is a contribution "by proxy": "Unlike Java programmers, who are hip on the outside, dreary conformists on the inside, Smalltalk programmers

Re: The next Xah-lee post contest

2005-01-29 Thread PA
On Jan 29, 2005, at 14:35, Steve wrote: Write up the next Xah Lee post ! The requirement are: a) The post should talk about a single language, although the example code needn't adhere to that restriction. b) It should explain the style, structure and design of some code snippet/program, though not

Re: Coding style article with interesting section on white space

2005-01-29 Thread Rakesh Kumar
Thanx Nick -- http://mail.python.org/mailman/listinfo/python-list

The next Xah-lee post contest

2005-01-29 Thread Steve
Hi All, For sometime now, I have just been a passive lurker on this list. Of late I saw an increase in the number of posts by Xah Lee, and I have to admit, what he lacks in understanding of the various programming languages he talks about, he makes up for in creativity. So, I was wondering, h

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

2005-01-29 Thread Skip Montanaro
>> What matters is the code complexity, not whether something is in a >> separate module or not. Martin> A module *is* typically more complex than a single function. And one that deals with cryptography is likely to be even more complex. Skip -- http://mail.python.org/mailman/list

Re: Who should security issues be reported to?

2005-01-29 Thread Skip Montanaro
Nick> Upgrading your Python interpreter (even to a new maintenance Nick> branch release) in a production environment is usually a fairly Nick> involved exercise requiring a significant amount of testing, and Nick> the fact of the matter is, you're unlikely to do so unless there

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

2005-01-29 Thread Skip Montanaro
>> http://www.python.org/pypi >> THIS IS ALL PYTHON. Paul> No. Those are programs people have written in Python or as Python Paul> extensions. What's your point? That I have to download and perhaps install them to use them? In that case, how are these two scenarios different:

Re: what's OOP's jargons and complexities?

2005-01-29 Thread PA
On Jan 29, 2005, at 08:34, jacob navia wrote: First article that demistifies this OO centered approach in quite a long time. http://www.google.com/search?q=OOP+criticism&ie=UTF-8&oe=UTF-8 http://www.google.com/search?hl=en&lr=&q=OOP+debunked&btnG=Search Cheers -- PA, Onnay Equitursay http://alt.tex

Re: Help with web dashboard

2005-01-29 Thread Fuzzyman
Chris wrote: > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] says... > > Ifd you want to use standard CGI I've written a CGI user > > authentication/management module called logintools. > > > > Would this be preferred (or easier) than using an application server > (ie. Zope or Webware)? > >

Re: Maximum Number of Class Attributes

2005-01-29 Thread Bob Parnes
On Wed, 26 Jan 2005 10:03:47 +0100, Sylvain Thenault <[EMAIL PROTECTED]> wrote: > On Wed, 26 Jan 2005 02:03:12 +, Bob Parnes wrote: > >> 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 a

future of computing languages

2005-01-29 Thread jelle
Quite suprised while reading the Amazin c2.com Wiki: http://c2.com/cgi/wiki?FutureOfProgrammingLanguages Take a look, and feel incredible good about yourself & your decision to opt for python. Did work for me. Cheers, Jelle. -- http://mail.python.org/mailman/listinfo/python-list

Re: An mysql-python tutorial?

2005-01-29 Thread EuGeNe
Dfenestr8 wrote: Hi. Been told by the admin of my (free!) server that he'd rather I should learn to use mysql if I want to continue writing cgi scripts there. Not even sure exactly what mysql is. Is there a simple tutorial anywhere on the web about using python + mysql? http://www.devshed.com/c/a

Re: what's OOP's jargons and complexities?

2005-01-29 Thread PA
On Jan 29, 2005, at 04:28, [EMAIL PROTECTED] wrote: Plus, a man which such cinematographic tastes [1] cannot be entirely bad :P http://xahlee.org/PageTwo_dir/Personal_dir/favorite_movies.html The site proves he is evil. Grep "Titus" if you have a strong stomach. I'm sure you did not get that far. I

  1   2   >