Re: Obama's Birth Certificate - Demand that US presidential electors investigate Obama's eligibility

2008-12-03 Thread Albert Hopkins
This has nothing to do with Python. Please take this thread to cares.who.someone. -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs vs. Eclipse vs. Vim

2008-11-29 Thread Albert Hopkins
On Sun, 2008-11-30 at 02:18 +0100, Stef Mientki wrote: > > First, you must understand that this is an extremelly dangerous > > question to ask on a public newsgroup (expecially regarding the first > > and the third in the series). Wars have began over this. Many people > > were harmed in those war

Re: Convert hexadecimal characters to ascii

2008-11-29 Thread Albert Hopkins
On Sat, 2008-11-29 at 20:39 +, Durand wrote: > Hi, > > I've got this weird problem where in some strings, parts of the string > are in hexadecimal, or thats what I think they are. I'm not exactly > sure...I get something like this: 's\x08 \x08Test!' from parsing a log > file. From what I fo

Re: Version upgrade blocked mentally

2008-11-29 Thread Albert Hopkins
On Sat, 2008-11-29 at 12:32 -0800, Adam E wrote: > I have read in my copy of Programming Python that all strings will be > Unicode and there will be a byte type. > > This is mentally keeping me from upgrading to 2.6 . Care to explain? Actually what you describe is a change change takes place in

Re: newbie question

2008-11-26 Thread Albert Hopkins
On Wed, 2008-11-26 at 11:11 -0800, Nan wrote: > Hello, >I just started to use Python. I wrote the following code and > expected 'main' would be called. > > def main(): > print "hello" > > main > > But I was wrong. I have to use 'main()' to invoke main. The python > interpreter does not giv

Re: Python Script to search by Date

2008-11-25 Thread Albert Hopkins
On Tue, 2008-11-25 at 16:10 -0800, [EMAIL PROTECTED] wrote: > What I'm trying to do is decompress a bunch of files depending on the > date/time specified. > > So, we have full backups created every Sunday and transaction backups > every hour afterwards. > > I have everything compressed at an hour

Re: setting permissions to a file from linux.

2008-11-18 Thread Albert Hopkins
On Tue, 2008-11-18 at 04:36 -0800, gaurav kashyap wrote: > Hi all, > I have a text file in a directory on unix system. > Using a python program i want to change that file's permissions. > How could this be done. > > Thanks os.chmod = chmod(...) chmod(path, mode) Change the access per

Re: subprocess with shared environment?

2008-11-17 Thread Albert Hopkins
On Mon, 2008-11-17 at 15:27 -0800, rowen wrote: > I'd like to replace some shell scripts with Python, but one step of > the script modifies my environment in a way that the subsequent steps > require. > > A simple translation to a few lines of subprocess.call(...) fails > because the first call mo

Re: Retrieve Custom 404 page.

2008-11-17 Thread Albert Hopkins
On Mon, 2008-11-17 at 13:59 -0800, godavemon wrote: > I'm using urllib2 to pull pages for a custom version of a web proxy > and am having issues with 404 errors. Urllib2 does a great job of > letting me know that a 404 happened with the following code. > > import urllib2 > url = 'http://cnn.com/a

Re: parsing grub's menu.lst

2008-11-17 Thread Albert Hopkins
On Mon, 2008-11-17 at 10:27 -0800, CarlFK wrote: > I need some code that will read in grubs menu.lst file, and give me a > list of dicts: > > [{'title':'Ubuntu, kernel 2.6.15-23-686', > 'root':'(hd0,0)', > 'kernel':'/boot/vmlinuz-2.6.15-23-686 root=/dev/hda1 ro quiet splash', > 'initrd':'/boot/ini

Re: When is min(a, b) != min(b, a)?

2008-01-20 Thread Albert Hopkins
On Sun, 20 Jan 2008 20:16:18 -0800, Paddy wrote: > I am definitely NOT a floating point expert, but I did find this: > http://en.wikipedia.org/wiki/IEEE_754r#min_and_max > > P.S. What platform /Compiler are you using for Python? Linux with GCC 4 -a -- http://mail.python.org/mailman/listinfo/p

When is min(a, b) != min(b, a)?

2008-01-20 Thread Albert Hopkins
This issue may have been referred to in news:<[EMAIL PROTECTED]> but I didn't entirely understand the explanation. Basically I have this: >>> a = float(6) >>> b = float('nan') >>> min(a, b) 6.0 >>> min(b, a) nan >>> max(a, b) 6.0 >>> max(b, a) nan Before

<    1   2   3