Re: Perl-Python-a-Day: Sorting

2005-10-12 Thread Xah Lee
Lasse Vågsæther Karlsen wrote: > Like the sorted function in Python ? > > li2 = sorted(li) > > you can also specify a key and a cmp function if you need to. Thanks. I didn't know there's also a sort function in Python (2.4), besides the method. (i've mentioned your name as acknowledgement at my

Re: how to make this code faster

2005-10-12 Thread Juho Schultz
[EMAIL PROTECTED] wrote: > def f(x,y): > return math.sin(x*y) + 8 * x > I have code like this: > > def main(): > n = 2000 > a = zeros((n,n), Float) > xcoor = arange(0,1,1/float(n)) > ycoor = arange(0,1,1/float(n)) > > > for i in range(n): > for j in range(n): >

Re: how to make this code faster

2005-10-12 Thread davbrow
It looks like you're using Numeric for your arrays, but you are then pulling sin from the math module and calculating one point at a time. Instead try using sin(whole array) where sin is a ufunc from the Numeric module. Also, it's usually not good practice to "import Numeric as *". Instead try im

Re: how to make this code faster

2005-10-12 Thread Robert Kern
[EMAIL PROTECTED] wrote: > def f(x,y): > return math.sin(x*y) + 8 * x > I have code like this: > > def main(): > n = 2000 > a = zeros((n,n), Float) > xcoor = arange(0,1,1/float(n)) > ycoor = arange(0,1,1/float(n)) > > > for i in range(n): > for j in range(n): >

Setdefault bypasses __setitem__

2005-10-12 Thread Ron Garret
Is this a bug or a feature? class mydict(dict): def __setitem__(self, key, val): print 'foo' dict.__setitem__(self, key, val) >>> d=mydict() >>> d[1]=2 foo >>> d.setdefault(2,3) 3 rg -- http://mail.python.org/mailman/listinfo/python-list

Re: searching python/gui developper in germany

2005-10-12 Thread Hans Georg Krauthaeuser
malv schrieb: > Hans Georg Krauthaeuser wrote: > >>Dear all, >> >>for the measurements in our labs we have developed python scripts that >>are pretty fine for our needs. Basically, we have classes and call the >>appropriate methods from the command line (or by other scripts). So, we >>don't have a

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Wed, 12 Oct 2005 19:43:56 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Yup, you solved an easy problem - designing a spam-proof email >system. That's been done any number of times. The hard part is a >deployment strategy that will actually get the world to transition to >such a syst

how to make this code faster

2005-10-12 Thread [EMAIL PROTECTED]
def f(x,y): return math.sin(x*y) + 8 * x I have code like this: def main(): n = 2000 a = zeros((n,n), Float) xcoor = arange(0,1,1/float(n)) ycoor = arange(0,1,1/float(n)) for i in range(n): for j in range(n): a[i,j] = f(xcoor[i], ycoor[j]) # f(x,y) =

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Thu, 13 Oct 2005 01:17:45 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : > >No, that's what makes email a vector for infection. What makes using >the address book - for whatever purpose - possible for viruses is >having an API that allows arbitrary code to access it. But you have to >h

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Thu, 13 Oct 2005 01:13:28 GMT, Keith Thompson <[EMAIL PROTECTED]> wrote or quoted : >A partial solution to spam, or at least to pollution of Usenet >newsgroups, would be to STOP POSTING THIS STUFF TO NEWSGROUPS WHERE >IT'S NOT RELEVANT. Technically yes. But those folk in the appropriate newsgr

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Thu, 13 Oct 2005 01:32:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >That won't prevent phishing, that will just raise the threshhold a >little. The first hurdle you have to get past is that most mail agents >want to show a human name, not some random collection of symbols that >m

Re: Jargons of Info Tech industry

2005-10-12 Thread Chris Head
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thunderbird is nice that way. You can tell it to render HTML by default, and even images if they're included in the body of the e-mail, but tell it to NOT render anything which requires connections to external servers unless you click a Show Images but

Re: Jargons of Info Tech industry

2005-10-12 Thread Chris Head
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello? I don't think that should make any difference. I should be able to visit absolutely any website on the Internet without any danger to my computer or the data stored on it. Any browser which allows otherwise has a bug. Javascript is not inherentl

Re: Perl-Python-a-Day: Sorting

2005-10-12 Thread Lasse Vågsæther Karlsen
Xah Lee wrote: > Sorting in Perl > > In Perl, to sort a list, do like this: > > @li=(1,9,2,3); > @li2 = sort {$a <=> $b} @li; > print join(' ', @li2); > > > In Perl, sort is a function, not some Object Oriented thing. It returns > the sorted result as another list. This is very simple and nice.

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > 3. prevent phishing. When PayPal sends you an email, you want to know > for sure it really is from PayPal. This means corporate users at > least will all have digital ids, and all emails will be digitally > signed. That won't prevent phishing, that will

Re: TurboGears /.-ed, >new == True< or >new == "True"

2005-10-12 Thread Andy Leszczynski
Sybren Stuvel wrote: > Andy Leszczynski enlightened us with: > >>should not it be: >> >>2 def save(self, pagename, data, submit, new): >>3 hub.begin() >>4 if new == True: >>5 page = Page(pagename=pagename, data=data) >>6 else: >>7 page = Page.byPagename(pagename) >>8 page.data = data >

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Wed, 12 Oct 2005 21:46:12 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote > or quoted : > >>Viruses can mail out change of address messages to everyone in the >>compromised machine's address book today. >> >>Of course, viruses don't bother doing that - since

Re: installer for amd64 build of python?

2005-10-12 Thread Brett Hoerner
> Alternatively, does anyone have experience > of using the visual studio files in the PCBuild > directory under amd64? I don't have an answer for you, but just to clarity for future readers... based on the quote above, I assume you mean a native 64-bit build for Windows, right? You never stated

Re: Multiple assignments simplification

2005-10-12 Thread George Sakkis
<[EMAIL PROTECTED]> wrote: > [snipped] > > Do you know some algorithm (or you can give some suggestions) to > minimize the number of simple assignments needed for a "regular" > situation like that? You can formulate the task as a graph-theoretic problem by representing the set of assignments as

ImportError: No module named dbm

2005-10-12 Thread mhardas
Hi all, Iam trying to get 'cvs2svn' to get to work on a Trustix Linux machine. However is suspect that no dbm is installed because running cvs2svn gives the following error: ERROR: your installation of Python does not contain a suitable DBM module -- cvs2svn cannot continue. See http://python.o

Re: Looking for a Python mentor

2005-10-12 Thread gene tani
is this it:? http://mail.python.org/mailman/listinfo/tutor LenS wrote: > Hello > > Was wandering if there is any place where some one could go to get > mentoring on python coding. I have started coding in python but I am > the only one in the shop using it. So there is no one around to look > o

Re: Looking for a Python mentor

2005-10-12 Thread Gregory Piñero
What kind of programming do you do, Len?  I'm by no means an expert Python programmer but I could look over a few of your programs anyway.  I'd reccomend to always try to challenge yourself.  Don't just program something one way just because it's all you know.  Take 20 minutes now and then to lea

Re: File compare

2005-10-12 Thread PyPK
Not for homework. But anyway thanks much... -- http://mail.python.org/mailman/listinfo/python-list

Re: Bad magic no. in python zipfile

2005-10-12 Thread Peter Hansen
[EMAIL PROTECTED] wrote: \> I'm able to create a new zipfile with the module's ZipFile class and > add files to it. After closing the file, I'm able to view the contents > of it with WinZip. I can also confirm that it is a python zip file by > using the is_zipfile() method. All good so far. How

Re: Perl-Python-a-Day: Sorting

2005-10-12 Thread Xah Lee
Sorting in Perl In Perl, to sort a list, do like this: @li=(1,9,2,3); @li2 = sort {$a <=> $b} @li; print join(' ', @li2); In Perl, sort is a function, not some Object Oriented thing. It returns the sorted result as another list. This is very simple and nice. It works like this: sort takes the

Re: Jargons of Info Tech industry

2005-10-12 Thread John Bokma
Keith Thompson <[EMAIL PROTECTED]> wrote: > There are several newsgroups that deal with e-mail abuse. This > discussion isn't being posted to any of them. Please stop. This just adds to the noise, and isn't going to work. Just kill the entire thread. -- John Small Perl scri

Bad magic no. in python zipfile

2005-10-12 Thread [EMAIL PROTECTED]
I've been experimenting with the python zipfile module, and have run into a snag. I'm able to create a new zipfile with the module's ZipFile class and add files to it. After closing the file, I'm able to view the contents of it with WinZip. I can also confirm that it is a python zip file by usin

Re: Python adodb

2005-10-12 Thread LenS
You also might want to take a look at; http://www.mayukhbose.com/python/ado/index.php I found it very helpful LenS -- http://mail.python.org/mailman/listinfo/python-list

Looking for a Python mentor

2005-10-12 Thread LenS
Hello Was wandering if there is any place where some one could go to get mentoring on python coding. I have started coding in python but I am the only one in the shop using it. So there is no one around to look over my code give suggestions on improvement, in style, logic, easier ways of doing

Re: Jargons of Info Tech industry

2005-10-12 Thread Gordon Burditt
>I would say by extrapolating the problem of spam and snooping that the >next level of email software needs to concentrate on the following: > >1. routine and transparent encryption. OK, but the Feds are really going to hate that. >2. making spam no longer economic. Blocking all spam is, even in

Re: Python adodb

2005-10-12 Thread LenS
I have used the following code in ADO: # The following code creates a connection object, # assigns the connection string, opens the # connection object, and then verifies a good # connection. oConn = Dispatch('ADODB.Connection') oConn.ConnectionString = "Provider=SQLOLEDB.1;" +\

Re: Jargons of Info Tech industry

2005-10-12 Thread Gordon Burditt
>> Links >> Javascript >> Forms >> References to other files > >the only piece of that particularly dangerous is JavaScript. So long >as you have a scheme to unmask where links are really going links are >no more dangerous than they are in browser. Browsers don't read unsolici

Re: Jargons of Info Tech industry

2005-10-12 Thread Keith Thompson
Roedy Green <[EMAIL PROTECTED]> writes: [...] > Especially with spam, there are no perfect solutions, but at least we > could do many times better than what we are living with and put the > spammers out of business. A partial solution to spam, or at least to pollution of Usenet newsgroups, would b

Re: Python adodb

2005-10-12 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > In trying to use the adodb module, I have had good success. However I > need to access a database with a username and password at this time. I have used a connection string like this to connect to MS SQL Server from adodb: connStrSQLServer = r"Provider=SQLOLEDB.1; User

Re: Function decorator that caches function results

2005-10-12 Thread Tom Anderson
On Tue, 10 Oct 2005, it was written: > Tom Anderson <[EMAIL PROTECTED]> writes: > >> Okay, a crack at a definition: a closure is a function in which some of >> the variable names refer to variables outside the function. > > That's misleading, You're right. I don't think it's wrong, but it depend

Re: Jargons of Info Tech industry

2005-10-12 Thread John Bokma
Roedy Green <[EMAIL PROTECTED]> wrote: > On 12 Oct 2005 01:43:32 GMT, John Bokma <[EMAIL PROTECTED]> wrote > or quoted : > >>> So let's say I decide to send an email to Donald Knuth. >> >>:-) > > I did write him, snail mail, and he responded giving us permission to > rewrite any of the algorithm

Re: slots? SLOTS?

2005-10-12 Thread Peter Hansen
tin gherdanarra wrote: > what is a "slot" in python? Google for "site:docs.python.org slots": http://www.google.ca/search?q=site%3Adocs.python.org+slots First hit... -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Thu, 13 Oct 2005 09:12:46 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted : >Suppose I wanted to gather industrial espionage about, oh, say Roedy >Green. If my virus could impersonate him, I could tell everyone in sight >that his email has changed to [EMAIL PROTECTED] (or wherever).

Re: Python's garbage collection was Re: Python reliability

2005-10-12 Thread Tom Anderson
On Tue, 11 Oct 2005, Alex Martelli wrote: > Tom Anderson <[EMAIL PROTECTED]> wrote: > ... >> Has anyone looked into using a real GC for python? I realise it would be a > > If you mean mark-and-sweep, with generational twists, Yes, more or less. > that's what gc uses for cyclic garbage. Do you

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Wed, 12 Oct 2005 21:46:12 GMT, Tim Tyler <[EMAIL PROTECTED]> wrote or quoted : >Viruses can mail out change of address messages to everyone in the >compromised machine's address book today. > >Of course, viruses don't bother doing that - since it's stupid and >pointless. A virus is interested

Re: Jargons of Info Tech industry

2005-10-12 Thread Ross Bamford
On Wed, 12 Oct 2005 23:27:26 +0100, Roedy Green <[EMAIL PROTECTED]> wrote: > On Sun, 09 Oct 2005 23:04:49 -, [EMAIL PROTECTED] (Gordon > Burditt) wrote or quoted : > >> I think one necessary function of email and USENET is that it should >> allow you to SAFELY communicate with strangers or,

Multiple assignments simplification

2005-10-12 Thread bearophileHUGS
The current version of ShedSkin (http://shedskin.sourceforge.net/ experimental Python to C++ compiler) is rather alpha, and the development work is focused on debugging and implementing some more basic Python functionality. But hopefully in future versions more work will be spent to make the result

installer for amd64 build of python?

2005-10-12 Thread magneticlemur
Hi, Does anyone know of an available downloader for an amd64 bit build of (a modern) python? I've done my due diligence search of python docs and mailing archives, and I'm somewhat mystified by the lack of info on this topic. I'm embedding python in a native 64 bit application so python32 using WO

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Wed, 12 Oct 2005 23:07:15 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : > Links > Javascript > Forms > References to other files the only piece of that particularly dangerous is JavaScript. So long as you have a scheme to unmask where links are really goi

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
uOn Wed, 12 Oct 2005 22:02:23 GMT, [EMAIL PROTECTED] (Dave Hansen) wrote or quoted : >Summary: a buffer overflow problem in Microsoft's JPEG redering >library, used my almost all Windoze email and web clients, would allow >an attacker to execute any arbitrary code he wished on your computer >simpl

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : > You don't need 100% spam blocking to effectively solve the spam > problem. You just have to make spam uneconomic. There are good reasons to doubt this. Most notably,

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>The downside is that I have no idea how many people try to contact me >>out of the blue, or from an address other than the one I sent mail to, >>but don't bother to ans

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 06:32:07 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Formatted spam can include pictures of words. That's a common spam >>tactic - send a multipart/alternative with a text part that look like >>a letter from aunt jane - a

Re: Send password over TCP connection

2005-10-12 Thread Peter Hansen
dcrespo wrote: > then, what you proppose? I'll assume that question was for me, in response to my comment that one should never store passwords in the clear. Do you know how any other system manages to do this? Linux, for example (assuming a properly configured system)? The passwords aren't s

Re: Python's garbage collection was Re: Python reliability

2005-10-12 Thread jepler
On Mon, Oct 10, 2005 at 08:37:03PM +0100, Tom Anderson wrote: > So python doesn't use the old SmallTalk 80 SmallInteger hack, or similar? > Fair enough - the performance gain is nice, but the extra complexity would > be a huge pain, i imagine. I tried to implement this once. There was not a per

RE: Python's garbage collection was Re: Python reliability

2005-10-12 Thread Delaney, Timothy (Tim)
Tom Anderson wrote: > Except that in smalltalk, this isn't true: in ST, every variable > *appears* to contain a reference to an object, but implementations > may not actually work like that. In particular, SmallTalk 80 (and > some earlier smalltalks, and all subsequent smalltalks, i think) > handl

Re: Jargons of Info Tech industry

2005-10-12 Thread Mike Meyer
Roedy Green <[EMAIL PROTECTED]> writes: > On Sun, 09 Oct 2005 20:06:34 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote > or quoted : >>Nah, I've just know people who spend a lot of time - and money - >>dealing with spam, and we've discussed these issues at great >>length. You haven't proposed anything

Re: Python's garbage collection was Re: Python reliability

2005-10-12 Thread Tom Anderson
On Mon, 10 Oct 2005, it was written: > Tom Anderson <[EMAIL PROTECTED]> writes: > >> Has anyone looked into using a real GC for python? I realise it would >> be a lot more complexity in the interpreter itself, but it would be >> faster, more reliable, and would reduce the complexity of extension

Re: Python's garbage collection was Re: Python reliability

2005-10-12 Thread Tom Anderson
On Wed, 12 Oct 2005, Jorgen Grahn wrote: > On Mon, 10 Oct 2005 20:37:03 +0100, Tom Anderson <[EMAIL PROTECTED]> wrote: >> On Mon, 10 Oct 2005, it was written: > ... >>> There is no way you can avoid making garbage. Python conses everything, >>> even integers (small positive ones are cached). >> >

Re: Python reliability

2005-10-12 Thread Peter Hansen
John Waycott wrote: > I wrote a simple Python program that acts as a buffer between a > transaction network and a database server, writing the transaction logs > to a file that the database reads the next day for billing. The simple > design decoupled the database from network so it wasn't stres

Re: [Info] PEP 308 accepted - new conditional expressions

2005-10-12 Thread Peter Hansen
Dave Hansen wrote: > So lose the "if." > >R = C then A else B It would be nice (in my opinion) if this were the way it was going to be. Having one of the two results come first makes that result seem somehow of primary importance, while the conditional (which in my mind is far more import

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
>>I think e-mail should be text only. What if, instead of that crap Outlook produces, which is a mishmash of malformed html, Javascript viruses, self-installing enclosures etc. It were replaced by a rich text that were something like a CSS-style HTML, validated, and preparsed, and compacted for

Re: File compare

2005-10-12 Thread Larry Bates
Sounds a little like "homework", but I'll help you out. There are lots of ways, but this works. import sys class fobject: def __init__(self, inputfilename): try: fp=open(inputfilename, 'r') self.lines=fp.readlines() except IOError: print "Una

Re: Advice on this code

2005-10-12 Thread Steve M
output.write(wrkmisc(ifile,2582)) output.write(wrkviol(ifile,2774,16)) output.write(wrkaccid(ifile,3270,16)) output.write(wrkmisc2(ifile,3638)) output.write(wrkcov(ifile,3666,6))

Re: Jargons of Info Tech industry

2005-10-12 Thread Flash Gordon
Roedy Green wrote: Can all of you please take comp.lang.c out of this thread (and all its sub-threads, since it is totaly off topic and NONE of the people on this thread are posting to anything else on comp.lang.c so I doubt any of you are reading it here. -- Flash Gordon Living in interesti

Re: Jargons of Info Tech industry

2005-10-12 Thread Gordon Burditt
>However, formatted text is not code. HTML is much more than formatted text. >Pictures are not code. It is >unfair to tar them with the brush of JavaScript or the goofy things >Outlook does with enclosures. If you take all the dangerous stuff out of HTML, like: Links Javascript

Python adodb

2005-10-12 Thread gt_mac
In trying to use the adodb module, I have had good success. However I need to access a database with a username and password at this time. And cannot find a way to do it without using a ODBC or other older techniques. Can someone help me with this, below is the code I am currently attempting to use

Re: Idle bytecode query on apparently unreachable returns

2005-10-12 Thread Tom Anderson
On Tue, 11 Oct 2005, Raymond Hettinger wrote: > [Tom Anderson]: > >> What puzzles me, though, are bytecodes 17, 39 and 42 - surely these >> aren't reachable? Does the compiler just throw in a default 'return >> None' epilogue, with routes there from every code path, even when it's >> not needed

Re: python server?

2005-10-12 Thread Diez B. Roggisch
> I was wondering if something similar already existed, to use as-is or > to adapt to my needs. > I did a little googling, which pointed me to interesting, but rather > different projects. Has anybody ever seen or heard something of this > kind? Or maybe there is something almost-ready in the amazi

Re: Jargons of Info Tech industry

2005-10-12 Thread Steven D'Aprano
On Wed, 12 Oct 2005 21:46:12 +, Tim Tyler wrote: > Viruses can mail out change of address messages to everyone in the > compromised machine's address book today. > > Of course, viruses don't bother doing that - since it's stupid and > pointless. > > If you've compromised someone's machine th

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 06:32:07 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Formatted spam can include pictures of words. That's a common spam >tactic - send a multipart/alternative with a text part that look like >a letter from aunt jane - and mention that you're sending a >picture. The

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 06:28:04 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >What makes you think I don't have a copy of Opera? Just so happens >I've got a registred copy on my newest computer. > >> Then try out the feature. Click View | style | user > >My copy of Opera doesn't have that

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Mon, 10 Oct 2005 09:35:58 -0700, Alan Balmer <[EMAIL PROTECTED]> wrote or quoted : >And they don't know about attachments? Attachments are geeky kludge. -- Canadian Mind Products, Roedy Green. http://mindprod.com Again taking new Java programming contracts. -- http://mail.python.org/mailman

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 20:19:46 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted : >Likewise I avoid emails that are broken. If it looks like it will contain >web-bugs, javascript exploits, or badly formatted unreadable text, then I >avoid any mail client that can't display it in plain text

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 23:04:49 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : >I think one necessary function of email and USENET is that it should >allow you to SAFELY communicate with strangers or, worse, people >you know but do not trust at all, Yes, but with spam ANY communication

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 23:04:49 -, [EMAIL PROTECTED] (Gordon Burditt) wrote or quoted : >>Read my essay. >>http://mindprod.com/projects.html/mailreadernewsreader.html >> >>I talk around those problems. >> >>It requires a fresh start. that should read: http://mindprod.com/projects/mailreadernewsr

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Right. Nobody sends email to addresses that come off business cards, >or off a web site, or Nowadays website email addresses are becoming rarer. Instead you fill in a form to initiate your conversation. In

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 19:25:46 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >The downside is that I have no idea how many people try to contact me >out of the blue, or from an address other than the one I sent mail to, >but don't bother to answer the response. This is why I wanted a pro

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Mon, 10 Oct 2005 01:33:43 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted : >> ...is pretty confusing - because "public key" is a term with a technical >> meaning in cryptography - and a public key really *is* public. > >The term you want is "wrong", not "confusing". In encryption t

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 9 Oct 2005 16:42:02 +0200, Stefaan A Eeckels <[EMAIL PROTECTED]> wrote or quoted : >> > http://mindprod.com/projects.html/mailreadernewsreader.html > >It's gone :-) arghh. try http://mindprod.com/projects/mailreadernewsreader.html -- Canadian Mind Products, Roedy Green. http://mindprod.c

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 09 Oct 2005 20:06:34 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Nah, I've just know people who spend a lot of time - and money - >dealing with spam, and we've discussed these issues at great >length. You haven't proposed anything that hasn't been proposed >before, and rejecte

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-12 Thread Rune Strand
Ok, Alex. I know a good explanation when I see one. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Mon, 10 Oct 2005 00:42:18 +0200, Stefaan A Eeckels <[EMAIL PROTECTED]> wrote or quoted : >"I don't understand that attitude. Don't we want email that has dancing > bears, cute little videos, musical tunes, animated waving hands, sixty > fonts, and looks like it's been done with crayolas? Good

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Mon, 10 Oct 2005 08:49:32 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted : >Oh gosh, pictures of a new house. Why didn't you say so??? If you're >sending pictures named "my_new_house1.jpg" etc then OF COURSE they have >to be imbedded in a HTML email, otherwise how could anyone know

Re: Jargons of Info Tech industry

2005-10-12 Thread Dave Hansen
On Wed, 12 Oct 2005 21:44:22 GMT, Roedy Green <[EMAIL PROTECTED]> wrote: [...] >Obviously you can't trust anything code-like that arrives from >strangers. It is an extension of the law Mommy laid down not to take >candy from strangers. > >However, formatted text is not code. Pictures are not code.

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Mon, 10 Oct 2005 08:58:42 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote or quoted : >Sheesh Roedy, to listen to you go anyone would think that human >communication was impossible before HTML email was invented. People got along fine wearing untanned moosehides too. I don't see any advantag

Re: A Tree class, my $0.02 contribution to the python community.

2005-10-12 Thread Diez B. Roggisch
Antoon Pardon wrote: > I don't know. The python dictionary type with its name, seem to refer > to how it is implemented, so I thought Tree was an appropiate name > here as it is implemented as a tree. I too had the impression you're talking about a tree-implementation, not a mapping based on key

Re: Jargons of Info Tech industry

2005-10-12 Thread Tim Tyler
In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > Tim Tyler <[EMAIL PROTECTED]> writes: > > In comp.lang.java.programmer Mike Meyer <[EMAIL PROTECTED]> wrote or quoted: > >> Roedy Green <[EMAIL PROTECTED]> writes: > >> > Read my essay. > >> > http://mindprod.com/projec

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Sun, 9 Oct 2005 21:53:52 +0200, "Dr.Ruud" <[EMAIL PROTECTED]> wrote or quoted : >Don't think that that is true for everybody. For example not for people >that are behind central filters that already cope with common spam. The variants of the Nigerian spam are getting cleverer and cleverer to g

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On 09 Oct 2005 14:06:20 -0700, Paul Rubin wrote or quoted : >That's the worst of all. I certainly don't want my mail reader >opening network connections to arbitrary places when I read my mail. >I have no willingness at all to reveal my mail reading habits or IP >addres

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On 12 Oct 2005 01:43:32 GMT, John Bokma <[EMAIL PROTECTED]> wrote or quoted : >> So let's say I decide to send an email to Donald Knuth. > >:-) I did write him, snail mail, and he responded giving us permission to rewrite any of the algorithms in his famous set of books in to Java. -- Canadian M

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-12 Thread Alex Martelli
Rune Strand <[EMAIL PROTECTED]> wrote: > > those modules are already imported when Python gets to your code, so > > the only "overhead" you're saving is a little typing. > > I don't understand this. Could you please elaborate? - if sys or os > are not imported for any other causes how are they a

Python source code for direct access to raw sectors of harddrives (MFT, boot sector, etc.) in Linux/Windows

2005-10-12 Thread Claudio Grondi
Python code for direct access to raw sectors of harddrives (MFT, boot sector, etc.) in Linux/Windows: http://people.freenet.de/AiTI-IT/Python/HowTo_AccessRawSectorsOfPhysicalDrives_onLinux.py and http://people.freenet.de/AiTI-IT/Python/HowTo_AccessRawSectorsOfPhysicalDrives_onWindows.py Claudio h

Re: Jargons of Info Tech industry

2005-10-12 Thread Roedy Green
On Tue, 11 Oct 2005 11:45:03 -0400, Mike Meyer <[EMAIL PROTECTED]> wrote or quoted : >Jeff Poskanzer, now *he* has a spam problem. He gets a few million >spams a day: http://www.acme.com/mail_filtering/ >. It is a bit like termites. If we don't do something drastic to deal with spam, the ruddy th

Advice on this code

2005-10-12 Thread LenS
If this is the wrong place to post this, please advise better place. Otherwise, I have created the following python program and it works. Running on XP. I think I am now at that stage of learning python where I'm not quit a newbie and I am not really knowlegable. I know just enough to be dangerou

Re: Pass a tuple (or list) to a C wrapper function

2005-10-12 Thread Jeremy Moles
It depends on how you want to manipulate the data in C. If you want compile-time variable access to each float, yeah, 50 floats. :) Probably what you want to do though is just keep the tuple as is and iterate over it using the PySequence_* protocol: http://docs.python.org/api/sequence.html On W

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-12 Thread Rune Strand
> those modules are already imported when Python gets to your code, so > the only "overhead" you're saving is a little typing. I don't understand this. Could you please elaborate? - if sys or os are not imported for any other causes how are they already imported? Maybe I'm wrong here, and accessi

Re: File compare

2005-10-12 Thread PyPK
Note that the code i wrote wont do the compare based on id which i am looking for..it just does a direct file to file compare.. -- http://mail.python.org/mailman/listinfo/python-list

File compare

2005-10-12 Thread PyPK
I have two files file1 in format 'AA' 1 T T 'AB' 1 T F file2 same as file1 'AA' 1 T T 'AB' 1 T T Also the compare should be based on id. So it should look for line starting with id 'AA' (for example) and then match the line so if in second case. so this is what I am looking for: 1. read

Re: piping out binaries properly

2005-10-12 Thread Paul Watson
"Andy Leszczynski" wrote in message news:[EMAIL PROTECTED] >I have got following program: > > import sys > import binascii > from string import * > sys.stdout.write(binascii.unhexlify("41410A4141")) > > > when I run under Unix I got: > > $ python u.py > u.bin > $ od -t x1 u.bin > 000 41 41 0a

button design in curses library

2005-10-12 Thread Sinan Nalkaya
hi, im using curses library in my program, i need a button. but i cannot find anything about it. should i do the button via newwin function with bold characters ? any help will be appreciated thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: non descriptive error

2005-10-12 Thread Ron Adam
Steven D'Aprano wrote: > Timothy Smith wrote: > i have NO idea what in there could be making it have such a strange error. it just says "error" when you try run it. there nothing terribly strange being done. > > >> i am still coming across this error it's driving me nuts. usually

Re: crosswords helper program

2005-10-12 Thread gg
Chris F.A. Johnson a écrit : > On 2005-10-12, gg wrote: > >>I plan to write a program in Python in order to help me doing >>crosswords, I was wondering if such a program already existed. >> >>Basically it will get the number of letters of the word (5, 10, 12...) >>then the letters known (B in se

Pass a tuple (or list) to a C wrapper function

2005-10-12 Thread Java and Swing
I have a C function which takes an array of long values.. I understand that I can pass a tuple to a C wrapper function and in the C wrapper function have.. int ok = PyArg_ParseTuple(args, "s(ll)", &a, &b, &c); ..that's great if my tuple only contained two longs..but what if it contained 50 would

Re: Force flushing buffers

2005-10-12 Thread Madhusudan Singh
Robert Wierschke wrote: > Madhusudan Singh schrieb: >> Hi >> >> I have a python application that writes a lot of data to a bunch >> of files >> from inside a loop. Sometimes, the application has to be interrupted and >> I find that a lot of data has not yet been writen (and hence

  1   2   3   >