Re: A problem while using urllib

2005-10-13 Thread Johnny Lee
Steve Holden 写道: > Good catch, John, I suspect this is a possibility so I've added the > following note: > > """The Windows 2.4.1 build doesn't show this error, but the Cygwin 2.4.1 > build does still have uncollectable objects after a urllib2.urlopen(), > so there may be a platform dependency her

Help with cPickle for deserializing datetime.datetime instances

2005-10-13 Thread Mingus Tsai
Hello- please help with unpickling problem: I am using Python version 2.3.4 with IDLE version 1.0.3 on a Windows XPhome system. My problem is with using cPickle to deserialize my pickled arrays of datetime.datetime instances. The following is the code I have written: import cPickle, d

Re: ImportError: No module named dbm

2005-10-13 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > firstly i couldnt find the DBM module for python 2.3.5, trustix system and > i386 hardware platform. > so i downloaded gnu dbm for python 2.3.5 and i568( precisly, > python-gdbm-2.3.5-4tr.i586), simply assuming it could just work. > > but trying to install gives me the f

Re: Setdefault bypasses __setitem__

2005-10-13 Thread Fredrik Lundh
Diez B. Roggisch wrote: > I rarely find things in python strange or named incorrectly, but this is > IMHO such a case - setdefault led me to think that using it would set a > default value to return for _future_ lookups of non-existant keys. That > semantics is known in e.g. ruby or java. > > I th

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

2005-10-13 Thread Paul Rubin
[EMAIL PROTECTED] writes: > Folks, most common GC schemes have been tried as experiments over > the years. None have succeeeded, for various reasons. I think one > of the main reasons is that Python has to "play nice" with external > libraries, many of which weren't written with GC beyond malloc

Re: UI toolkits for Python

2005-10-13 Thread Fredrik Lundh
> > However, Tkinter not most people's favorite, because the widgets look > > crude, they don't resemble the native widgets of any popular platform, > > and the widget set is somewhat limited. (given that the web interface is the new black, that's not much of an argument. tkinter with the right s

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-13 Thread Fredrik Lundh
Rune Strand wrote: > I've read a lot of your comments the last years. Your friendliness > always strikes me. terseness != unfriendlyness -- http://mail.python.org/mailman/listinfo/python-list

Problem processing Chinese

2005-10-13 Thread Anthony Liu
I believe that topic related to Chinese processing was discussed before. I could not dig out the info I want from the mail list archive. My Python script reads some Chinese text and then split a line delimited by white spaces. I got lists like ['\xbc\xc7\xd5\xdf', '\xd0\xbb\xbd\xf0\xbb\xa2', '\

Re: UI toolkits for Python

2005-10-13 Thread gsteff
Er, meant to say "In addition GTK itself is in the top tier of free software projects" -- http://mail.python.org/mailman/listinfo/python-list

Re: UI toolkits for Python

2005-10-13 Thread gsteff
I've used wxpython and pygtk, and have a strong preference for pygtk. wxpython has some advantages: it has better OSX support (widgets look native, and it doesn't require the installation of the Fink x server), and better win32 support (a few gtk widgets, such as menus, don't look quite native on g

Re: Hidden string formatting bug

2005-10-13 Thread Steve Holden
Tim Peters wrote: > [Echo] > >>I have been trying to figure out the problem with this string formatting: > > > [monstrous statement snipped] > > >>when it executes, I get this error: "inv argument required". > > > That shoud be "int", not "inv". > > >>I have checked and rechecked both the

Re: String code required please

2005-10-13 Thread da_hmea98
[EMAIL PROTECTED] wrote: > Does someone have the Python code to pull just the filename and > extension from the end of an absolute path please. > > Thanks in advance ... # Here you go... import os.path # Example path p1 = "C:\\WINDOWS\\system32\\DirectX\\Dinput\\mse.ini" # This will return: 'mse

Re: String code required please

2005-10-13 Thread SPE - Stani's Python Editor
import os fileName = os.path.basename(absolute) base, ext = os.path.splitext(fileName) Stani http://pythonide.stani.be -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython & Cygwin

2005-10-13 Thread Steve Holden
Diez B. Roggisch wrote: > Gilles DRIDI wrote: > >>Does someone has installed wxPython on the Cygwin platform, environment ? > > > Why? Use windows python, wxPython for it - and put it in your path to > use it inside cygwin. > Don't think that'll work for an extension module. > But maybe you _

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

2005-10-13 Thread Paul Rubin
Steve Holden <[EMAIL PROTECTED]> writes: > >>And this presumes an architecture which byte-addresses and only > >> uses "aligned" addresses. > > He was talking about the arachiteecture, for Pete's sake, not a compiler. Yeah, I noticed that, I could have been pedantic about it but chose to just d

Re: python interpreter

2005-10-13 Thread Neal Norwitz
g.franzkowiak wrote: > Hi everybody, > > my interest is for the internals of the Python interpreter. > > I've used up to now FORTH for something and this indirect interpreter is > very smart. > --- ASM --- > > Where can I find information

Re: FORM data in cgi

2005-10-13 Thread Steve Holden
Mike Meyer wrote: > "jponiato" <[EMAIL PROTECTED]> writes: > > >>Greetings. >>An HTML form submits it's data to a python cgi script on my server. This >>script accepts this POST data, and uses urllib.urlopen() to call a different >>cgi script (on an external server), passing this same data. I'm

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Christian Stapfer
"John J. Lee" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Kenneth McDonald <[EMAIL PROTECTED]> writes: > [...] >> absolutely preventing me from making the switch. Number one is the >> lack of a decent command line and command-line environment, and I'm >> wondering (hoping) if per

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

2005-10-13 Thread Steve Holden
Paul Rubin wrote: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > >>>Yes, that would describe just about every cpu for the past 30 years >>>that's a plausible Python target. >> >>No. The later 68K (>68020) could address on odd adresses. And AFAIK >>all x86 can because of their 8080 stemming. >

Re: A problem while using urllib

2005-10-13 Thread Steve Holden
John J. Lee wrote: > Steve Holden <[EMAIL PROTECTED]> writes: > [...] > >> File "/usr/lib/python2.4/urllib2.py", line 996, in do_open >> raise URLError(err) >>urllib2.URLError: >> >>Looking at that part of the course of urrllib2 we see: >> >> headers["Connection"] = "close" >>

String code required please

2005-10-13 Thread dapgy
Does someone have the Python code to pull just the filename and extension from the end of an absolute path please. Thanks in advance ... -- http://mail.python.org/mailman/listinfo/python-list

Re: setuptools, ez_setup over http proxy

2005-10-13 Thread ray223
yoda wrote: > I've recently configured my network such that I use squid as a http > proxy. I'd now like to be able to use setuptools and ez_setup via this > proxy. Is this possible? If so, how do I do it? > > The most that the setuptools documentation says is > (http://peak.telecommunity.com/Dev

Re: CSV module and Mac excel format problem

2005-10-13 Thread David Pratt
Many thanks Andrew for this excellent piece of knowledge :-). 4 characters of code and everything is great! Regards, David On Friday, October 14, 2005, at 12:11 AM, Andrew McNamara wrote: >> Hi. I have had good success with CSV module but recently came across >> problem with reading excel from

Re: setuptools, ez_setup over http proxy

2005-10-13 Thread Phillip J. Eby
yoda wrote: > I've recently configured my network such that I use squid as a http > proxy. I'd now like to be able to use setuptools and ez_setup via this > proxy. Is this possible? If so, how do I do it? The key thing is just that Python's urllib module needs to be able to retrieve web pages an

Re: setuptools, ez_setup over http proxy

2005-10-13 Thread Phillip J. Eby
yoda wrote: > I've recently configured my network such that I use squid as a http > proxy. I'd now like to be able to use setuptools and ez_setup via this > proxy. Is this possible? If so, how do I do it? The key thing is just that Python's urllib module needs to be able to retrieve web pages an

Re: CSV module and Mac excel format problem

2005-10-13 Thread Andrew McNamara
>Hi. I have had good success with CSV module but recently came across >problem with reading excel from Mac Office. The trouble is with line >endings. Instead of \r\n you have just \r and the file as a whole >appears as a single line. CSV coughs and provides this exception: > >_csv.Error: newli

Re: setuptools, ez_setup over http proxy

2005-10-13 Thread Jay Parlar
> I've recently configured my network such that I use squid as a http > proxy. I'd now like to be able to use setuptools and ez_setup via this > proxy. Is this possible? If so, how do I do it? It should work if you sent the environment variable (in your shell) 'http_proxy' to the address of you

CSV module and Mac excel format problem

2005-10-13 Thread David Pratt
Hi. I have had good success with CSV module but recently came across problem with reading excel from Mac Office. The trouble is with line endings. Instead of \r\n you have just \r and the file as a whole appears as a single line. CSV coughs and provides this exception: _csv.Error: newline ins

Re: Bad magic no. in python zipfile

2005-10-13 Thread [EMAIL PROTECTED]
okay, I've figured out the problem - the zip file was being mangled by a file transfer. I was fetching a remote python-generated zip file in 8k chunks, and then writing those chunks to a file. At first I was using an array to store the data in, and had the 'bad magic number' problem. This may ha

Re: Hidden string formatting bug

2005-10-13 Thread Tim Peters
[Echo] > I have been trying to figure out the problem with this string formatting: [monstrous statement snipped] > when it executes, I get this error: "inv argument required". That shoud be "int", not "inv". > I have checked and rechecked both the string and the tuple. I cant figure > out what

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Peter Hansen
Erik Max Francis wrote: > The negative integers are being descriminated against! I demand justice! > > def integers(): > yield 0 > x = 1 > while True: > yield x > yield -x > x += 1 > > ... which is also not a bad demonstration of ho

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

2005-10-13 Thread Chris Smith
> "Duncan" == Duncan Booth <[EMAIL PROTECTED]> writes: Duncan> Chris Smith wrote: >> What I really want to do is take four lines of conditional, and >> put them into one, as well as blow off dealing with a 'filler' >> variable: >> >> return "the answer is " + "yes" if

setuptools, ez_setup over http proxy

2005-10-13 Thread yoda
I've recently configured my network such that I use squid as a http proxy. I'd now like to be able to use setuptools and ez_setup via this proxy. Is this possible? If so, how do I do it? The most that the setuptools documentation says is (http://peak.telecommunity.com/DevCenter/setuptools): "..

Re: matching elements of numeric arrays

2005-10-13 Thread daniel . neilson
Thanks a lot. It was this equal.outer idea that I was missing. -- http://mail.python.org/mailman/listinfo/python-list

Hidden string formatting bug

2005-10-13 Thread Echo
Hello, I have been trying to figure out the problem with this string formatting: sql = 'INSERT INTO tc_themes (name,user_made,hour12,time_loc,background_color_r,' + \     'background_color_g,background_color_b,clock_color_r,clock_color_g,' + \     'clock_color_b,clock_backg

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-13 Thread Neil Hodgson
Frank Borell: > I'm having a problem retrieving the ShortName from a file that was > written by a MAC and only from a Windows 2003 server. > > I realize the file has a space after it, but I can retrieve the short > name from Windows XP and 2000; Does your Windows 2003 machine have short file

Re: Setdefault bypasses __setitem__

2005-10-13 Thread Diez B. Roggisch
Duncan Booth wrote: > Diez B. Roggisch wrote: > > >>So if setdefault >>was implemented as >> >>def setdefault(self, v): >> self["SOME_DEFAULT_KEY_NAME"] = v > > > if setdefault was implemented that way then all current uses of setdefault > would throw an exception. > > setdefault takes *t

Re: Jargons of Info Tech industry

2005-10-13 Thread Mike Meyer
Brendan Guild <[EMAIL PROTECTED]> writes: >> 2. flipping to a sender pays system so that the Internet does not >> subsidise spam. > > This is very promising. Our ISPs should put limits on how much email we > can send. The limits should be rather insane, nothing that any > nonspammer would ever co

Re: FORM data in cgi

2005-10-13 Thread Mike Meyer
"jponiato" <[EMAIL PROTECTED]> writes: > Greetings. > An HTML form submits it's data to a python cgi script on my server. This > script accepts this POST data, and uses urllib.urlopen() to call a different > cgi script (on an external server), passing this same data. I'm using > cgi.FieldStorag

Re: wxPython & Cygwin

2005-10-13 Thread Diez B. Roggisch
Gilles DRIDI wrote: > Does someone has installed wxPython on the Cygwin platform, environment ? Why? Use windows python, wxPython for it - and put it in your path to use it inside cygwin. But maybe you _can_ compile it yourself - I didn't try, though. Diez -- http://mail.python.org/mailman/lis

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Trent Mick
[John J. Lee wrote] > 4. There's a registry key for tab completion somewhere... Search for "CompletionChar" and change it to 9. http://www.microsoft.com/resources/documentation/Windows/2000/server/reskit/en-us/Default.asp?url=/resources/documentation/Windows/2000/server/reskit/en-us/regentry/3499

Re: Well written open source Python apps

2005-10-13 Thread Peter Hansen
Ben wrote: > Could anyone suggest an open source project that has particularly well > written Python? I am especially looking for code that people would > describe as "very Python-ic". (Not trying to start any kind of war - > just wanted some good examples of a well written Python app to read.)

Re: UI toolkits for Python

2005-10-13 Thread John J. Lee
Kenneth McDonald <[EMAIL PROTECTED]> writes: [...] > both doing fairly well in general. I'm already aware of the licensing > issues surrounding qt (fwiw, I think their license fee for commercial > use is eminently reasonable), so aside from that, I was wondering if [...] Qt 4 is available as

Re: Jargons of Info Tech industry

2005-10-13 Thread Scott Ellsworth
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > Roedy Green <[EMAIL PROTECTED]> writes: > > Next Mr. Phish had to present his passport etc when he got his Thawte > > ID. Now Interpol has a much better handle on putting him in jail. > > He can't repudiate his phishi

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread John J. Lee
Kenneth McDonald <[EMAIL PROTECTED]> writes: [...] > absolutely preventing me from making the switch. Number one is the > lack of a decent command line and command-line environment, and I'm > wondering (hoping) if perhaps someone has written a "Python shell"-- > something that will look like a

Re: matching elements of numeric arrays

2005-10-13 Thread Robert Kern
[EMAIL PROTECTED] wrote: > I have two one-dimensional Numeric arrays, and I need to know the > indices in the second array of elements from the first. > > so if i had: > > a=array([2,4,6]) > b=array([2,3,4,5,6]) > > i want a function match that does this: > > match(a,b) > > array([0,2,4])

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > Others have given answers involving xrange() and itertools.count(), but I > thought I'd just mention that in my opinion, what you have written is > pretty elegant and concise and best of all, doesn't have the same problems > xrange() and itertools.count

win32api.FindFiles Win2003, problem with Short Name

2005-10-13 Thread Frank Borell
I'm having a problem retrieving the ShortName from a file that was written by a MAC and only from a Windows 2003 server. I realize the file has a space after it, but I can retrieve the short name from Windows XP and 2000; >>>print win32api.FindFiles(process_source_dir + "*") Excluding the result

Re: A problem while using urllib

2005-10-13 Thread John J. Lee
Steve Holden <[EMAIL PROTECTED]> writes: [...] >File "/usr/lib/python2.4/urllib2.py", line 996, in do_open > raise URLError(err) > urllib2.URLError: > > Looking at that part of the course of urrllib2 we see: > > headers["Connection"] = "close" > try: > h.r

Re: Send password over TCP connection

2005-10-13 Thread Paul Rubin
"dcrespo" <[EMAIL PROTECTED]> writes: > Important data like diplomatic traffic. Must be accessible from all > Clients inmediatly a client publish his data. Its an online system. OK, if it's actual diplomatic traffic you need to work with your government about criteria. If you're in the US, you'd

Profiling results

2005-10-13 Thread Dave
Hello All, I'm trying to profile a Python program using gprof, but I don't understand some of the results, especially what some of the functions do. For example, _moncount, mcount, _PyEval_EvalFrame take too much time. What are they for? Any ideas? Thank you for your help!

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Erik Max Francis
Fredrik Lundh wrote: > Neal Becker wrote: > >> I can do this with a generator: >> >> def integers(): >> x = 1 >> while (True): >> yield x >> x += 1 >> >> for i in integers(): >> >> Is there a more elegant/concise way? > > depends on your definition of

Re: python interpreter

2005-10-13 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, g.franzkowiak wrote: > my interest is for the internals of the Python interpreter. > > I've used up to now FORTH for something and this indirect interpreter is > very smart. > --- ASM --- > > NEXT: LODSW

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Steven D'Aprano
On Thu, 13 Oct 2005 13:31:13 -0400, Neal Becker wrote: > I can do this with a generator: > > def integers(): > x = 1 > while (True): > yield x > x += 1 > > for i in integers(): > > Is there a more elegant/concise way? Others have given answers invol

Re: UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
This improved appearance has been a nice thing to see, but looks were never really the reason I decided to leave Tkinter. It's much more the fundamental issues of Tk, plus the fact that Tkinter was never really "completed" (not a comment on the original author--there's only so much one person can d

Re: matching elements of numeric arrays

2005-10-13 Thread Claudio Grondi
<[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED] > I have two one-dimensional Numeric arrays, and I need to know the > indices in the second array of elements from the first. > > so if i had: > > a=array([2,4,6]) > b=array([2,3,4,5,6]) > > i want a function match that does this: > > >>> match(a,

Re: Send password over TCP connection

2005-10-13 Thread dcrespo
> Well, I mean, what kind of data is it? Sports chat? Personal > correspondence? Financial info like credit card numbers? Medical records? > Military/diplomatic traffic? I'm asking how severe the security requirements > are. Important data like diplomatic traffic. Must be accessible from

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

2005-10-13 Thread Paul Rubin
"Diez B. Roggisch" <[EMAIL PROTECTED]> writes: > > Yes, that would describe just about every cpu for the past 30 years > > that's a plausible Python target. > > No. The later 68K (>68020) could address on odd adresses. And AFAIK > all x86 can because of their 8080 stemming. Yes, "could" but not "

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

2005-10-13 Thread Diez B. Roggisch
> Yes, that would describe just about every cpu for the past 30 years > that's a plausible Python target. No. The later 68K (>68020) could address on odd adresses. And AFAIK all x86 can because of their 8080 stemming. Don't confuse this with 16Bit aligned addressing - _that_ is the minimum for

Re: Send password over TCP connection

2005-10-13 Thread Paul Rubin
"dcrespo" <[EMAIL PROTECTED]> writes: > > Can you say what your application is? That will help figure out > > how far you need to go to protect these passwords, and what > > alternatives might be possible. > > Sure, no problem (see this on fixed text): Well, I mean, what kind of data is it? Spo

Re: Send password over TCP connection

2005-10-13 Thread dcrespo
> Can you say what your application is? That will help figure out how far you > need to go to protect these passwords, and what alternatives might be > possible. Sure, no problem (see this on fixed text): ___ MasterServer ___ /// || | \\

Re: Jargons of Info Tech industry

2005-10-13 Thread Paul Rubin
[EMAIL PROTECTED] (Gordon Burditt) writes: > I'm not sure that you can disable Javascript from reading cookies > from other sites while allowing Javascript to read cookies from the > site it came from on all browsers. Javascript is not supposed to be able to read cross-site cookies. It's bad but i

Re: Jargons of Info Tech industry

2005-10-13 Thread Gordon Burditt
>> Does the language allow Javascript to open a new window? Does the >> language allow Javascript to trigger a function when a window is >> closed? I believe the answer to both questions is YES. Then it >> is possible to have a page that pops up two windows whenever you >> close one. > >This was

Re: Python adodb

2005-10-13 Thread gt182
Thank you everyone for your posts. Listed below is the correct code, solution reached. And to include the username and password you can simply inter it behind Persist Security devieded off with semicolons. con = win32com.client.Dispatch(r'ADODB.Connection') DSN = r'Provider=Microsoft.Jet.OLE

Re: UI toolkits for Python

2005-10-13 Thread Grant Edwards
On 2005-10-13, Paul Rubin <> wrote: > The answer to each of those questions points to Tkinter. It comes > with Python by default (the least installation hassles of any > toolkit), is pretty reliable, has a reasonably Pythonic interface, and > I don't understand the question about external librari

matching elements of numeric arrays

2005-10-13 Thread daniel . neilson
I have two one-dimensional Numeric arrays, and I need to know the indices in the second array of elements from the first. so if i had: a=array([2,4,6]) b=array([2,3,4,5,6]) i want a function match that does this: >>> match(a,b) array([0,2,4]) i have something that works, but it involves conver

ANNOUNCE: Python interface for making telephone calls using Voicent Gateway

2005-10-13 Thread andrew
The Voicent Python Simple Interface class contains the following functions. callText callAudio callStatus callRemove callTillConfirm These functions are used to invoke telephone calls from your Python program. For example, callText is used to call a specified number and automa

Nufox examples hosted :-)

2005-10-13 Thread Salvatore
Hello, I've been kindly authorized to host Nufox examples for free on : http://bsd.miki.eu.org:9090/ Regards -- http://mail.python.org/mailman/listinfo/python-list

Nufox hosted.

2005-10-13 Thread Salvatore
Hello, I've been kindly authorized to host Nufox examples for free on : http://bsd.miki.eu.org:9090/ Regards -- http://mail.python.org/mailman/listinfo/python-list

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Claudio Grondi
What I can point you to is not Python, but embedding it in Python is a question of executing one line of Python code triggering its execution. I think you will be fascinated by its features and ease of use and how well it is suited to fit into your needs: http://www.autoitscript.com/autoit3/index

Re: UI toolkits for Python

2005-10-13 Thread Mark Roseman
Paul Rubin wrote: > However, Tkinter not most people's favorite, because the widgets look > crude, they don't resemble the native widgets of any popular platform, > and the widget set is somewhat limited. People should probably be more aware of work that has been going

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

2005-10-13 Thread Dave Hansen
On Thu, 13 Oct 2005 21:49:15 +0200, Piet van Oostrum <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] (Dave Hansen) (DH) wrote: > >>DH> So lose the "if." > >>DH>R = C then A else B > >>DH> I don't think python uses the question mark for anything. Throw that >>DH> in, if it makes parsing ea

Re: extract PDF pages

2005-10-13 Thread Larry Bates
I've used ReportLab's PageCatcher. It isn't free, but I've gladly paid for the functionality it gives me. Larry Bates http://www.reportlab.com/pagecatcher_index.html David Isaac wrote: > While pdftk is awesome > http://www.accesspdf.com/pdftk/ > I am looking for a Python solution. > Just for P

Re: Send password over TCP connection

2005-10-13 Thread Paul Rubin
"dcrespo" <[EMAIL PROTECTED]> writes: > Ok, I understand... What about the MD5? Is it good enough to use when > saving a hashed password on the database? > > For example: > user_input = raw_input("Type your password: ") > password = md5.md5(user_input).hexdigest() > SavePasswordInDatabase(user,pas

Re: UI toolkits for Python

2005-10-13 Thread Michael Ekstrand
On Thursday 13 October 2005 15:17, Kenneth McDonald wrote: > 1) Which plays best with Python? Ideally, it would already have some > higher-level python libraries to hide the grotty stuff that is almost > never needed when actually implementing apps. wxPython plays reasonably well. I've just start

Re: Send password over TCP connection

2005-10-13 Thread Michael Ströder
dcrespo wrote: > > Ok, I understand it. What about the MD5? Is it good enough to use when > saving a hashed password on the database? > > For example: > user_input = raw_input("Type your password: ") > password = md5.md5(user_input).hexdigest() > SavePasswordInDatabase(user,password) It would be

Re: Well written open source Python apps

2005-10-13 Thread Micah Elliott
On Oct 13, Grig Gheorghiu wrote: > This is really synchronicity in action! I started to think yesterday > about putting together a project that measures the 'goodness' of Python > packages in the PyPI Cheese Shop repository. I call it the "Cheesecake" > project. I took the liberty of citing Micah's

Re: UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
Thanks for reminding me of Gtk. OK, add that to the list. The Web Browser interface is good for simple things, and will get better with CSS2's adoption, but they still don't have a good way for important things like interactive styled text, key bindings, etc. Good for simple things (for which I

Re: Jargons of Info Tech industry

2005-10-13 Thread Paul Rubin
Brendan Guild <[EMAIL PROTECTED]> writes: > This was a problem, but modern browsers implement Javascript in such a > way that it requires permission from the user before it will open a new > window. Not really true, it's easy to defeat that, and also generally the pop-up blocker only blocks wind

Re: Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Jeremy Jones
Kenneth McDonald wrote: >For unfortunate reasons, I'm considering switching back to Win XP >(from OS X) as my "main" system. Windows has so many annoyances that >I can only compare it to driving in the Bay Area at rush hour (OS X >is like driving in Portland at rush hour--not as bad, but get

Re: Send password over TCP connection

2005-10-13 Thread dcrespo
> Do you know how any other system manages to do this? Linux, for example > assuming properly configured system)? The passwords aren't stored: hashes > of the passwords are stored (with additional things thrown in to prevent > certain kinds of attacks even if someone nabs the password (/etc/s

Re: Send password over TCP connection

2005-10-13 Thread dcrespo
Ok, I understand... What about the MD5? Is it good enough to use when saving a hashed password on the database? For example: user_input = raw_input("Type your password: ") password = md5.md5(user_input).hexdigest() SavePasswordInDatabase(user,password) -- http://mail.python.org/mailman/listinfo/

Yes, this is a python question, and a serious one at that (moving to Win XP)

2005-10-13 Thread Kenneth McDonald
For unfortunate reasons, I'm considering switching back to Win XP (from OS X) as my "main" system. Windows has so many annoyances that I can only compare it to driving in the Bay Area at rush hour (OS X is like driving in Portland at rush hour--not as bad, but getting there), but there are

Re: UI toolkits for Python

2005-10-13 Thread Paul Rubin
Kenneth McDonald <[EMAIL PROTECTED]> writes: > 1) Which plays best with Python? Ideally, it would already have some > higher-level python libraries to hide the grotty stuff that is almost > never needed when actually implementing apps. > > 2) Reliability of each? > > 3) Useful external libraries

Re: Jargons of Info Tech industry

2005-10-13 Thread Brendan Guild
Gordon Burditt wrote in news:[EMAIL PROTECTED]: > Does the language allow Javascript to open a new window? Does the > language allow Javascript to trigger a function when a window is > closed? I believe the answer to both questions is YES. Then it > is possible to have a page that pops up two

Re: Jargons of Info Tech industry

2005-10-13 Thread Terry Hancock
On Wednesday 12 October 2005 04:37 pm, Roedy Green wrote: > It is a bit like termites. If we don't do something drastic to deal > with spam, the ruddy things will eventually make the entire Internet > unusable. > > the three keys to me are: > > 1. flipping to a digital id based email system so th

UI toolkits for Python

2005-10-13 Thread Kenneth McDonald
Is there any emerging consensus on the "best" UI for toolkit. Tk never quite made it but from what I can see, both qt and wxWin are both doing fairly well in general. I'm already aware of the licensing issues surrounding qt (fwiw, I think their license fee for commercial use is eminently r

Re: Jargons of Info Tech industry

2005-10-13 Thread Brendan Guild
Roedy Green wrote in news:[EMAIL PROTECTED]: > 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

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

2005-10-13 Thread Piet van Oostrum
> [EMAIL PROTECTED] (Dave Hansen) (DH) wrote: >DH> So lose the "if." >DH>R = C then A else B >DH> I don't think python uses the question mark for anything. Throw that >DH> in, if it makes parsing easier: >DH>R = C ? then A else B We have already had this discussion several times.

[ANN] XPN 0.5.5 released

2005-10-13 Thread Nemesis
XPN (X Python Newsreader) is a multi-platform newsreader with Unicode support. It is written with Python+GTK. It has features like scoring/actions, X-Face and Face decoding, muting of quoted text, newsrc import/export, find article and search in the body, spoiler char/rot13, random taglines and con

Re: extract PDF pages

2005-10-13 Thread Andreas Lobinger
Aloha, David Isaac wrote: > I am looking for a Python solution. > Just for PDF page extraction. > Any hope? With python, there's always hope. http://sourceforge.net/projects/pdfplayground In the CVS (sorry no distribution at the time) you'll find an example page-extract. http://cvs.sourceforge.n

Re: installer for amd64 build of python?

2005-10-13 Thread Trent Mick
[Brett Hoerner wrote] > Thanks, looking at their site I can't find a Platform SDK for XP... am > I looking for the Windows 2003 Server SDK...? Seems counter-intuitive Yes, I believe that is the one I am using. MS seems to aim for minimal intuitive-factor with Platform SDK version naming. Trent

Re: [PIL]: Question On Changing Colour

2005-10-13 Thread Andrea Gavana
I have tried your solution, Terry: > new_hue # your 'basic color', just the hue part > rgb_base # color from the basic button image > rgb_new # the new color you want to replace rgb_base with > > rgb_new = hsv_to_rgb( (new_hue,) + rgb_to_hsv(rgb_base)[1:]) thanks a lot for your suggestion!

Re: Adding a __filename__ predefined attribute to 2.5?

2005-10-13 Thread Rune Strand
I've read a lot of your comments the last years. Your friendliness always strikes me. -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: No module named dbm

2005-10-13 Thread mhardas
Hi, thanks for the reply. firstly i couldnt find the DBM module for python 2.3.5, trustix system and i386 hardware platform. so i downloaded gnu dbm for python 2.3.5 and i568( precisly, python-gdbm-2.3.5-4tr.i586), simply assuming it could just work. but trying to install gives me the following er

Re: Jargons of Info Tech industry

2005-10-13 Thread Gordon Burditt
>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. Then Javascript *as a language* is a bug. >Javascript is not inhere

Re: Well written open source Python apps

2005-10-13 Thread John J. Lee
"Ben" <[EMAIL PROTECTED]> writes: > Could anyone suggest an open source project that has particularly well > written Python? I am especially looking for code that people would > describe as "very Python-ic". (Not trying to start any kind of war - > just wanted some good examples of a well writte

Re: installer for amd64 build of python?

2005-10-13 Thread Steve Holden
Brett Hoerner wrote: > Trent Mick wrote: > >>Yes. The MS Platform SDK is free and includes a compiler that can target >>x86, ia64 and x64 (the latter is what MS -- and Sun -- are calling >>AMD64). > > > Thanks, looking at their site I can't find a Platform SDK for XP... am > I looking for the Wi

Re: Well written open source Python apps

2005-10-13 Thread Grig Gheorghiu
This is really synchronicity in action! I started to think yesterday about putting together a project that measures the 'goodness' of Python packages in the PyPI Cheese Shop repository. I call it the "Cheesecake" project. I took the liberty of citing Micah's post in a blog entry that I just posted:

Re: 1-liner to iterate over infinite sequence of integers?

2005-10-13 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > itertools.count() # 0-based > itertools.count(1) # 1-based > > gives you an iterator that generates all Python integers (the behaviour > when it exceeds sys.maxint doesn't seem to be defined, but 2.4 wraps > around to -(sys.maxint+1)) Ugh, I'd

  1   2   3   >