Themed TK (tk Tile) at last?!

2009-03-07 Thread Python Nutter
Looks like we finally get tkinter GUI based programs according to Issue# 2983 in Python 3.1a so our programs don't look like something out of early 1980's and can be themed to more closely match the underlying Operating Systems widget set! This is a big deal in that while tkinter came with (just

Re: should i move on to python3

2009-03-07 Thread Python Nutter
Maybe if everyone shares their own thinking for their own situations it may help. I know the 2.x branch rather well, and cut my teeth on it. My work involves x509 cryptographic materials and I cut my own binaries and then wrap them in python to extend and enhance or build a lot of automation

Re: Upgrade Python on a Mac

2009-03-02 Thread Python Nutter
from my .profile file in ~ # This file does not get executed because .bash_profile exists in the home directory # and that gets executed instead. If .bash_profile did not exist then this file gets executed # PN hand edit export PATH to process the most recently installed Python Framework #

Re: PYTHONPATH on Mac 10.5

2009-02-25 Thread Python Nutter
+1 for site packages and standard shebang, still lets you launch with python first followed by .py file or big long path to a specific python followed by .py file also for some clues, just open up a terminal in your Mac OS X computer and check out your exports your PATH will be different

Re: Found a very nice, small, cross-platform GUI toolkit for Python.

2009-02-16 Thread Python Nutter
Note: spelling is OcempGUI. Also, since google broke some of the links, here's that main link again: Thats my bad or more to the point my iPhone bad, typing fast with spellcheck changes words to real dictionary words. Well, to be fair, SDL is pretty commonly-used software and they offer

Re: Pythonic way to determine if a string is a number

2009-02-15 Thread Python Nutter
Type casting seems to be the wrong way to go about this. teststring = '15719' teststring.isdigit() returns True That takes care of integers. from string import digits digits '0123456789' now you have all the digits and you can do set testing in your logic to see if the teststring has anything

Re: Pythonic way to determine if a string is a number

2009-02-15 Thread Python Nutter
silly me, forgot to mention build a set from digits + '.' and use that for testing. Cheers, PN 2009/2/16 Python Nutter pythonnut...@gmail.com: Type casting seems to be the wrong way to go about this. teststring = '15719' teststring.isdigit() returns True That takes care of integers

Re: Found a very nice, small, cross-platform GUI toolkit for Python.

2009-02-15 Thread Python Nutter
Had a look and it is still under my radar unfortunately because of TkInter. OceanGUI has a lot of large decencies (Pygame, SDL libraries, PyObjC, etc.) to install on my system to just to get a GUI thats no better loking than TkInter which comes pre-installed (no dependencies) on most every major

Re: Programmatically changing network proxy settings on the Mac

2009-02-11 Thread Python Nutter
OS X is POSIX/UNIX system so your basic plan of going about things: 1. Learn what proxy/network subsystem Tiger uses 2. Learn what proxy/network subsystem Leopard uses (same as 1., or has it changed?) 3. Based on 1 and 2 learn the config file names and locations. 4. Based on 3 you will determine

Re: explain

2009-02-11 Thread Python Nutter
If your use is to Generically want to use python on Windows XP you install the standard/generic Python that you download from python.org Without any details to decide with, I would also say download version 2.5.4 of Python from python.org 2009/2/12 Saeed Iravani si.4...@yahoo.com: Hello, I want

Re: Integrating awk in Python

2009-01-16 Thread Python Nutter
If you or anyone who reads the thread is interested in using Python in an advanced way you use generators and build processing chains that will take the performance of Python to the edge and even give old AWK a run for its money for certain types of processing. Python: wwwlog =

Re: SSL certificate parsing?

2009-01-05 Thread Python Nutter
If no one answers, the way I do my work with certificates is I just wrap OpenSSL myself by doing a popen call (probably now should be using subprocess for any future scripts I write). I then redirect the output that normally goes to the shell window into a buffer then I search/slice out the fields

Re: Learning Python now coming from Perl

2008-12-06 Thread Python Nutter
Perl Cookbook for Python Programmers: http://pleac.sourceforge.net/pleac_python/index.html P3K as starting point (slight cringe) as long as you know the caveats. I'm of the mind as Christopher with regard to how Python 3.0 has been released on Python.org: I don't think that Python 3.0 is a bad

Re: Learning Python now coming from Perl

2008-12-06 Thread Python Nutter
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: Well, as an old-time unix hacker (who learned REs long before Perl existed), my question to you would be, Is there any problem which *shouldn't* be solved with an RE? :-) One of the reasons REs don't get used in Python

Re: SHA1withRSA in python

2008-11-11 Thread Python Nutter
For simple hashing algorithms, then use the aformentioned built in hashlib in Python. However for the rest you need M2Crypto to get a wrapper around OpenSSL: M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including

Python on iPhone actually rather good

2008-11-04 Thread Python Nutter
Mini install guide for python on the iPhone: Cydia = Install SSH helps make initial configuration easier until you get used to MobileTerminal Cydia = Install MobileTerminal (closest to a bash shell you get on your iPhone currently) Cydia = Install Finder (graphical alternative to using

Re: Python certification

2008-10-19 Thread Python Nutter
Yeah. The day Python goes Certification required to get a job is the day I quit Python forever and move on to another language. Certification prooves you're an idiot who needs to spend money to work for another idiot who doesn't know enough about programming to know if they hire competent

Re: Python for the iPhone?

2008-09-18 Thread Python Nutter
Yes it does involve Jailbreaking. Python GCC Java and Ruby are all available to run on the iPhone after you Jailbreak it. Just run the Cydia appliacation (jailbreak's AppStore) to install anything you want. For me I have not installed Python (yet). Jailbreak was only to tether iPhone to my

Re: An FTP Client...My first real program!

2008-08-13 Thread Python Nutter
ery low level and not very useful for beginners as a lot of the heavy lifting and management is still left up to you, the programmer. The module ftputil is a high-level interface to the ftplib module. The FTPHost objects generated from it allow many operations similar to those of os and os.path.

Re: An FTP Client...My first real program!

2008-08-13 Thread Python Nutter
/8/14 Python Nutter [EMAIL PROTECTED]: ery low level and not very useful for beginners as a lot of the heavy lifting and management is still left up to you, the programmer. The module ftputil is a high-level interface to the ftplib module. The FTPHost objects generated from it allow many

Re: Any Game Developers here?

2008-07-19 Thread Python Nutter
I used to use PyGame but the horrible delay waiting for OS X binaries put me off. I now use Pyglet extensively, and combine Pyglet + Rabbyt to get amazing sprite handling speeds. Pyglet/Rabbyt make use of OpenGL which comes installed on all the major systems out there. PyGame requires the

Re: Any Game Developers here?

2008-07-19 Thread Python Nutter
PS. To see some real games developed under pressure/time constraints in Python you should visit PyWeek to see what individuals and teams can create in only a weeks time! http://pyweek.org/ 2008/7/19 Michael Lubker [EMAIL PROTECTED]: Any people that use Python as the predominant language for

Re: Best Python packages?

2008-07-19 Thread Python Nutter
I think the hidden gems in multimedia/game production are Pyglet and Rabbyt. Whereas PyGame is the older api, its large and bloated and has of course a heavy dependency on SDL. Pyglet and Rabbyt are lightweight, efficient, have some amazing functions and hit native OpenGL in all the major OS

ANN: Mac OS X versions of Rabbyt 0.81 - A fast 2D sprite engine using OpenGL

2008-07-10 Thread Python Nutter
Just a quick announcement, I have supplied PPC and Intel compiled eggs for the Rabbyt libary on Pypi http://pypi.python.org/pypi/Rabbyt/ Rabbyt-0.8.1-py2.5-macosx-10.3-ppc.egg (md5) Built on OS X 10.5.4 for PowerPC equipped Macs Rabbyt-0.8.1-py2.5-macosx-10.3-i386.egg (md5) Built on OS X

Re: Freesoftware for auto/intelligent code completing in Python

2008-07-03 Thread Python Nutter
If you guys can get your head out of IDE land, you'll find iPython does a fantastic job at introspection and Auto-completion, you can launch shell commands and editors and when done saving be back in the iPython shell, save memory/variable space to disk so you can come back the next day and

Re: Programming question

2008-06-11 Thread Python Nutter
2008/6/12 Brad Navarro [EMAIL PROTECTED]: Basically, what I am trying to do is get a list of each file's attributes within a directory. Basically, the information that the 'ls –l' command Python For System Administrators: http://www.ibm.com/developerworks/aix/library/au-python/ handy to also