ActivePython 3.1.1.2 vs Python 3.1.1 for OSX?

2009-09-30 Thread Robert Hicks
I am just curious which I should use. I am going to start learning
Python soon. Are they comparable and I just do a eenie meenie minie
moe?

Bob
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Types, Cython, program readability

2008-03-28 Thread Robert Hicks
On Mar 16, 5:48 pm, Jeff Schwab [EMAIL PROTECTED] wrote:
snip
 Unlike Perl or Tcl, Python is not just a
 scripting language with a set of ad-hoc extensions.  There are still
 issues, and Python probably will never be a general-purpose replacement
 for system-native language compilers, but it does enable a smooth ramp
 from just a user, through a user who does some scripting, to
 application developer.

Danger! My crap-o-meter went to 100%! You really need to explain what
you mean better here. What enables Python to give you a smooth ramp?
Inquiring minds want to know.I am sure there are a whole lotta
programmers in the Perl and Tcl camps that would like to know what you
mean as well.

I await your enlightenment.

Robert
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Pycon disappointment

2008-03-16 Thread Robert Hicks
On Mar 16, 12:38 pm, [EMAIL PROTECTED] wrote:
 On Mar 16, 6:10 am, Bruce Eckel [EMAIL PROTECTED] wrote:

  I think a lot of people have been caught up in the idea that we need
  to commercialize Python, and ride some kind of wave of publicity the
  way that Java and C# and Rails seem to have done.

 This coming from someone who caught the Java wave and rode it for a
 decade.

Doesn't that make him better to see the problems with it?

Robert
-- 
http://mail.python.org/mailman/listinfo/python-list


New Tk look (aka Ttk or Tile widgets)

2008-01-10 Thread Robert Hicks
Do I have to install something extra to use the new look?

Robert
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: New Tk look (aka Ttk or Tile widgets)

2008-01-10 Thread Robert Hicks
On Jan 10, 9:08 am, Guilherme Polo [EMAIL PROTECTED] wrote:
 2008/1/10, Robert Hicks [EMAIL PROTECTED]:

  Do I have to install something extra to use the new look?

  Robert
  --
 http://mail.python.org/mailman/listinfo/python-list

 Tk 8.5

 --
 -- Guilherme H. Polo Goncalves

Is that it? I have Tcl and Tk 8.5 installed.

Robert
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ISO Python example projects (like in Perl Cookbook)

2008-01-10 Thread Robert Hicks
On Jan 10, 11:13 am, kj [EMAIL PROTECTED] wrote:
 I'm looking for example implementations of small projects in
 Python, similar to the ones given at the end of most chapters of
 The Perl Cookbook (2nd edition, isbn: 0596003137).  (Unfortunately,
 the otherwise excellent Python Cookbook (2nd edition, isbn:
 0596007973), by the same publisher (O'Reilly), does not have this
 great feature.)

 The subchapters devoted to these small projects (which are called
 Programs in the book), each consists of a description of the
 task, a discussion of the relevant design considerations, and one
 or more illustrative implementations.  As such, these programs are
 larger and more complex than the typical recipe in the book, but
 are still short enough to be read and understood in a few minutes.

 I find the study of such small programs invaluable when learning
 a new language.

 Does anyone know of a source of similar material for Python?

 TIA!

 kynn
 --
 NOTE: In my address everything before the first period is backwards;
 and the last period, and everything after it, should be discarded.

http://pleac.sourceforge.net/pleac_python/index.html

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Spaces and tabs messing up code

2008-01-08 Thread Robert Hicks
[EMAIL PROTECTED] wrote:
 my friend uses vim
 and i use xemacs
 so our shared python code is a mix of tabs and spaces and it is hard for 
 him to edit it in vim
  
 any idea on how to make it clean
 convert it all to 4 spaces?
  
 Thanks
 

:set ts=4
:retab!

:h retab

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: a simple tcp server sample

2007-11-07 Thread Robert Hicks
On Nov 7, 1:54 pm, Tzury Bar Yochay [EMAIL PROTECTED] wrote:
 hi, the following sample (from docs.python.org) is a server that can
 actually serve only single client at a time.

 In my case I need a simple server that can serve more than one client.
 I couldn't find an example on how to do that and be glad to get a
 hint.

 Thanks in advance

 import socket

 HOST = '127.0.0.1'  # Symbolic name meaning the local host
 PORT = 50007# Arbitrary non-privileged port

 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 s.bind((HOST, PORT))
 s.listen(1)
 conn, addr = s.accept()

 print 'Connected by', addr

 while 1:
 data = conn.recv(1024)
 if not data:
 break
 conn.send(data)

 conn.close()

POE

-- 
http://mail.python.org/mailman/listinfo/python-list


try/except with multiple files

2007-06-21 Thread Robert Hicks
Is it good practice to do something like:

try:
f1 = file('file1')
f2 = file('file2')
except:
# catch the exception

Or do you do a try/except for each open?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: try/except with multiple files

2007-06-21 Thread Robert Hicks
On Jun 21, 3:11 pm, Matimus [EMAIL PROTECTED] wrote:
 It depends, what are you going to do if there is an exception? If you
 are just going to exit the program, then that works fine. If you are
 going to just skip that file, then the above wont work. If you are
 going to return to some other state in your program, but abort the
 file opening, you might want to close any files that were opened. The
 closing can be taken care if in the except block, but you will have to
 know which ones opened successfully.

 In general I would do something like this for multiple files:

 [code]
 filenames = [fname1,fname2,fname3]
 for fn in filenames:
 try:
 f = open(fn)
 except IOError:
 # handle exception
 #do something with f
 [/code]

 But, that might not work for you if the files aren't homogeneous (each
 have similar contents). If the files have distinctly different
 purposes, I would just wrap them each in their own try/except block.

 I rambled a bit there, but I hope it helps.

 Matt

Helps a bunch...thank you very much.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Removing Python 2.4.4 on OSX

2007-03-25 Thread Robert Hicks
On Mar 24, 11:53 pm, js  [EMAIL PROTECTED] wrote:
 The only way you can do is rermove python2.4.4's files manually.

 I suggest you to use MacPorts or Fink.

 With MacPort, you can uninstall python2.4 by doing
 $ port uninstall python24

 And Installation is
 $ port install python25


I try to like MacPorts but sometimes they don't do dependecies very
well. For instance, I have a newer version of Ruby installed and I
wanted to update a module through MP and it lists Perl5.8 as a
dependency and tries to install it. On Tiger, Perl is already at 5.8
so what the hey! It isn't the first time I have been hit with that
either.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Removing Python 2.4.4 on OSX

2007-03-25 Thread Robert Hicks
On Mar 25, 7:08 am, has [EMAIL PROTECTED] wrote:
 On 24 Mar, 18:30, Robert Hicks [EMAIL PROTECTED] wrote:

  I want to upgrade to 2.5 but I don't see any unistall instructions
  anywhere.

 To repeat what others have said: don't uninstall existing
 Python.framework builds. Frameworks support multiple versions quite
 happily, and removing them is more hassle than it's worth. Just
 install the official framework build from python.org 
 (http://www.python.org/ftp/python/2.5/python-2.5-macosx.dmg), which should
 also update your shell profiles as necessary.

 HTH

 has

Thanks...

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Removing Python 2.4.4 on OSX

2007-03-24 Thread Robert Hicks
I want to upgrade to 2.5 but I don't see any unistall instructions
anywhere.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Removing Python 2.4.4 on OSX

2007-03-24 Thread Robert Hicks
On Mar 24, 2:09 pm, Greg Donald [EMAIL PROTECTED] wrote:
 On 24 Mar 2007 10:30:28 -0700, Robert Hicks [EMAIL PROTECTED] wrote:

  I want to upgrade to 2.5 but I don't see any unistall instructions
  anywhere.

 You're not required to remove the old version before installing the new 
 version.

 Just install the new version somewhere like /usr/local and put
 /usr/local/bin ahead of your other paths.

 --
 Greg Donaldhttp://destiney.com/

That is exactly what I did. I don't touch the Apple supplied version.
Now I want to put that latest Python on.

Robert


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Removing Python 2.4.4 on OSX

2007-03-24 Thread Robert Hicks
On Mar 24, 2:06 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote:
 Robert Hicks schrieb:

  I want to upgrade to 2.5 but I don't see any unistall instructions
  anywhere.

 Don't do it. OSX uses the shipped version for its own purposes, and
 you'll break things if you uninstall it.

 Diez

No, the OSX version is like 2.3 something. I installed the 2.4.4
version in /usr/local bypassing the Apple stuff.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SQLObject 0.8.0b2

2007-01-22 Thread Robert Hicks
Where is Oracle support?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Beginners Tutorial in PDF Format?

2007-01-21 Thread Robert Hicks

W. Watson wrote:
 I'd like to print a tutorial in one fell swoop, but it seems most on the
 various sites are page by page embedded descriptions in the page. Any
 available as a pdf?

   Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA)
   (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time)
Obz Site:  39° 15' 7 N, 121° 2' 32 W, 2700 feet

 Two laws Newton and Einstein didn't discover:
   1. Time is money.
   2. Matter will be damaged in direct proportion
  to its value.
 --
  Web Page: home.earthlink.net/~mtnviews

http://docs.python.org/download.html

http://www.diveintopython.org/

HTH

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: *POLL* How many sheeple believe in the 911 fairy tale and willing to accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Robert Hicks
Please, none of the real facts points to anything else except what
actually happened. Two planes hit two towers and they came down.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: *POLL* How many sheeple believe in the 911 fairy tale and willingto accept an Orwellian doublespeak and enslavement world ?

2007-01-17 Thread Robert Hicks
snip

 Regards,

 Barry
 [EMAIL PROTECTED]
 541-302-1107
 
 We who cut mere stones must always be envisioning cathedrals.

 -Quarry worker's creed

Sure, but did you actually post your phone number on USENET?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Learning Python book, new edition?

2007-01-11 Thread Robert Hicks
I would get Core Python Programming by Wesley Chun. It covers just
about everything under the sun and includes version 2.5.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Book recommendations

2006-12-06 Thread Robert Hicks
On Dec 6, 7:09 am, west [EMAIL PROTECTED] wrote:
 Can someone recommend a Python book for a newbie and perhaps you have a used
 one for sale? Thank you.


Beginning Python: From Novice to Professional by Magnus Lie Hetland
Core Python Programming (2nd Edition) by Wesley Chun

There are plenty of Free online ones as well.

HTH

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: SQLObject release 0.7.2

2006-12-04 Thread Robert Hicks
Oracle?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: OT: What's up with the starship?

2006-10-15 Thread Robert Hicks

[EMAIL PROTECTED] wrote:
 T. Bryan wrote:
  Thomas Heller wrote:
 
   I cannot connect to starship.python.net: neither http, nor can I login
   interactively with ssl (and the host key seems to have changed as well).
  
   Does anyone know more?
 
  starship.python.net was compromised.  It looked like a rootkit may have been
  installed.  The volunteer admins are in the process of reinstalling the OS
  and rebuilding the system.  That process will probably take a few days at
  least.

 Does anyone know more?

 What about the integrity of the python packages hosted there?
 When was the site compromised?
 I just installed the python 2.5 pywin module last week.
 Should I be concerned?

 Is this related to the Python security problem recently announced?

Did you even read about the vulnerability?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python to use a non open source bug tracker?

2006-10-07 Thread Robert Hicks

Giovanni Bajo wrote:
 Paul Rubin wrote:

  You fail to recognize that Python is *already* using a non-free
  software for bug tracking, as do thousands of other projects.
 
  I don't think that reflects an explicit decision.  SF started out as
  free software and the software became nonfree after people were
  already using it.

 Moreover, this looked like a very good chance to have this nuisance sorted 
 out.
 Too bad some people don't value free software enough.

Nuisance? I never heard a peep from anyone until this thread on c.l.p.!
This is just a rediculous thing to be arguing over, really it is.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python to use a non open source bug tracker?

2006-10-07 Thread Robert Hicks

Steve Holden wrote:
snip
 Perhaps what I *should* have written was Sadly *many* people spend too
 much time bitching and moaning about those that roll their sleeves up,
 and not enough rolling their own sleeves up and pitching in.

 Sniping from the sidelines is far easier than hard work towards a goal.


Hey, that is how this whole thread started! Good observation.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python to use a non open source bug tracker?

2006-10-07 Thread Robert Hicks

Giovanni Bajo wrote:
snip
 You might also be understimating how negative could be the reaction from the
 open-source community to such a move.
 --
 Giovanni Bajo

That is simply rediculous. Step away from the kool-aid.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python to use a non open source bug tracker?

2006-10-04 Thread Robert Hicks

Giovanni Bajo wrote:
 Hello,

 I just read this mail by Brett Cannon:
 http://mail.python.org/pipermail/python-dev/2006-October/069139.html
 where the PSF infrastracture committee, after weeks of evaluation, 
 recommends
 using a non open source tracker (called JIRA - never heard before of course)
 for Python itself.

 Does this smell Bitkeeper fiasco to anyone else than me?
 -- 
 Giovanni Bajo

No.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: The Python world tries to be polite [formerly offensive to another language]

2006-09-30 Thread Robert Hicks

Steve Holden wrote:
 Istvan Albert wrote:
 [...]
  ps. as for the title of this post, it is ironic that you are insulting
  another community while asking for no insults
 
 Perhaps so, but none the less comp.lang.perl has a demonstrable history
 of newbie-flaming. Don't know what it's like now, as it's years since I
 read that group, but they used to just love the smell of crisply-toasted
 newbie in the morning ;-)


Funny you mention that...there was a Perl talk recently and one of the
slides said Stop being fu***ing mean to newbies!. I ask the author of
the talk and he said he didn't actually have to read the slide but it
was effective non-the-less.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks

[EMAIL PROTECTED] wrote:
 Wildemar Wildenburger wrote:
  [EMAIL PROTECTED] wrote:
   I have read many messages of people complaining about the documentation,
   it's lack of examples and the use of complicated sentences that you
   need to read 10 times before understanding what it means.
   
  Where have you read that?
 
  wildemar

 I don't mean to start a flame war about this but here are some
 reference of people, who like me, don't like the current python doc:
 http://xahlee.org/UnixResource_dir/writ/python_doc.html
 http://mail.python.org/pipermail/python-list/2005-May/280634.html
\

Please don't use Xah Lee as an example...please.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Robert Hicks

Christoph Haas wrote:
 On Saturday 16 September 2006 19:16, [EMAIL PROTECTED] wrote:
snip

 I second that the Python documentation is lacking. There is no software
 that is adequately documented anyway. Show me a man page of a Perl module
 and it takes me minutes to use it.

I would say that Perl module documentation is really good. Most of them
have plenty examples on how to use the module itself.

That said...the Python docs are open source. Just start going through
them and adding examples. It shouldn't be too hard and will benefit
everyone who use them.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Are Python's reserved words reserved in places they dont need to be?

2006-09-12 Thread Robert Hicks

metaperl wrote:
 Istvan Albert wrote:
  metaperl wrote:
   --  python -i
class = algebra
 File stdin, line 1
   class = algebra
 ^
   SyntaxError: invalid syntax
 
  Designing a syntax to avoid all possible newbie errors is impractical
  because as soon as you are finished with one iteration the new newbies
  will start making different kinds of errors...

 You are missing the point: the point is that the above could be
 considered correct if the rules of Python were that an assignment
 statement takes
 IDENTIFIER '=' LVALUE

 Also  class IDENTIFIER COLON could also be considered correct.


Yes it could but it isn't and isn't likely to be. Simply do not use
reserved words. That rule is hardly limited to Python.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: OO on python real life tutorial?

2006-09-02 Thread Robert Hicks

filippo wrote:
 Claudio Grondi ha scritto:

 (megasnip)

 I caught your point of view. I start reading a book on wxpython to
 understand if it can help to solve my problems. At the same time I will
 port my program to Python/Tk in order to have a faster first beta
 release.

 Thanks for your explanation.

 Filippo

Have a look at wxGlade if you want to do some windowing prototyping:

wxglad.sf.net

HTH

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: activestate vs enpython

2006-07-14 Thread Robert Hicks

mclaugb wrote:
 Um, i didnt see at the more information link whether numpy,
 numarray, matplotlib, scipy, and scientific python was included .


There's your answer...

:Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: sum fonction in gadfly

2006-06-30 Thread Robert Hicks

[EMAIL PROTECTED] wrote:
 Robert Hicks wrote:
  I haven't been keeping up. Is Gadfly still in development?

 I always find this question a little
 irritating -- gadfly is perfect the
 way it is :).  If it ain't broke don't
 fix it.  At least until the python guys
 make another non-backwards-compatible
 change that makes a patch necessary
 (speaking of things that irritate me...).

 Seriously, there are a few problems
 that could be fixed that I can
 think of, but mostly it works for what
 it is -- why are people so concerned
 that it's not changing?


I didn't mean to be irritating and I wasn't concerned about it not
changing but I could probably have stated the question a little better.
For some reason I thought it was a dead project so maybe still being
maintained would be a better statement. I dunno.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: sum fonction in gadfly

2006-06-30 Thread Robert Hicks

[EMAIL PROTECTED] wrote:
 Robert Hicks wrote:
  [EMAIL PROTECTED] wrote:
    why are people so concerned
   that it's not changing?
  
 
  I didn't mean to be irritating and I wasn't concerned about it not
  changing but I could probably have stated the question a little better.
  For some reason I thought it was a dead project so maybe still being
  maintained would be a better statement. I dunno.

 You're not the only one.  Why do I keep seeing gadfly...dead
 in the same sentence?

 What if it doesn't need maintenance?  Does that make it dead?
 No offense to you personally, you are just repeating what
 everyone else has been saying for years for reasons that
 totally escape me.  Several times people have suggested that
 gadfly be added to the python standard library and then the
 question comes up... who will maintain it?  And I answer I'll
 maintain it if anyone finds serious problems with it and then
 a few months later I hear that it was decided that gadfly was
 a dead project.  This has been going on since about '97.
 It's irritating and tiresome.  Sorry, I'm grumpy today.

Hey, that is okay. I know now never to ask that question.  : D

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python taught in schools?

2006-06-25 Thread Robert Hicks

BartlebyScrivener wrote:
 dan but out of curiousity does
 dan anyone know of a school that teaches Python?

 http://www.python.org/about/quotes/

 University of Maryland

 I have the students learn Python in our undergraduate and graduate
 Semantic Web courses. Why? Because basically there's nothing else with
 the flexibility and as many web libraries, said Prof. James A.
 Hendler.

 rd

Well that Professor has shown his ignorance to the world but not for
choosing Python.  : )

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: sum fonction in gadfly

2006-06-24 Thread Robert Hicks
I haven't been keeping up. Is Gadfly still in development?

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Xah Lee network abuse

2006-06-11 Thread Robert Hicks

Erik Max Francis wrote:
 Mallor wrote:

  I know I'm coming late to the barbeque.  In passing, I ask: do you have
  an objective, impartial perspective on the subject of committing
  crimes?  Because libel is a crime.

 No, it is a tort.
 
Can I have whipped cream and strawberries on that tort?

:Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: 2 books for me

2006-05-11 Thread Robert Hicks
Wouldn't portability go with Tkinter since that is installed with every
Python?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Time to bundle PythonWin

2006-05-11 Thread Robert Hicks
No it isn't. It is a Windows only package. It needs to stay a separate
download.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: which windows python to use?

2006-05-11 Thread Robert Hicks
I tend to do ActivePython because the OSX version seems to come out a
bit quicker. Although that might change in the future.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Tkinter

2006-04-08 Thread Robert Hicks
Maybe because Tkinter comes *with* Python? It is sometimes easier to
understand the way things work in Tkinter vs wxPython as well. Though I
will add that Manning has just published wxPython in Action so that
should help newbies out as well.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: RELEASED Python 2.5 (alpha 1)

2006-04-05 Thread Robert Hicks
That is cool and that will be a great addition to the libraries.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: MVC in Python for web app dev

2006-03-26 Thread Robert Hicks
http://www.myghty.org/

That one is excellent.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: New Python logo in high resolution format

2006-03-24 Thread Robert Hicks
How about we all get tatoos?  : )

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python has a new Logo

2006-03-23 Thread Robert Hicks
You are s lame.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Yet another GUI toolkit question...

2006-02-11 Thread Robert Hicks
Wow you are so wrong about Tk on OSX. Soon this is just not going to be
the case at all for any of the system Tcl/Tk runs on. The Tcl folks
have come out with a package called Tile that is going to be rolled
in. It gives you native LF on OSX, Windows, Linux.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Is python very slow compared to C

2006-02-11 Thread Robert Hicks
Most languages are slow compared to C. Python is fast enough for just
about anything you want to do with it.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: error rising while connecting oracle 9i

2006-01-07 Thread Robert Hicks
python_eager wrote:
 Hi
i am connecting my database oracle 9i. While connecting i am
 getting the following error

 connection = cx_Oracle.connect(myusername, mypassword, python)
 RuntimeError: Unable to acquire Oracle environment handle

Do you have the Oracle client installed? Might be something wrong with
your ORA_HOME.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python 2.4 - Help does not work in Windows

2006-01-04 Thread Robert Hicks

[EMAIL PROTECTED] wrote:
snip
 Could anyone give me some pointers on where I might look to debug this
 problem? In case it's any help, I'm running Windows XP SP2, and have
 installed both Python2.3 and Python 2.4 on the same system. Could this
 be causing some conflict?

It must be. I just tried it with a single install of 2.4.2 on XP and
got the help info with help(time).

 import time
 time.ctime()
'Wed Jan 04 08:17:29 2006'
 help(time)
Help on built-in module time:

NAME
time - This module provides various functions to manipulate time
values.
...

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2005-12-27 Thread Robert Hicks
Guido has never been, is not, and will not in the future be, a threat
to Python. End of story.

Unless of course aliens come into play. You never know.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Indentation/whitespace

2005-12-26 Thread Robert Hicks
No, it is that simple. You don't want it to be is all.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Indentation/whitespace

2005-12-25 Thread Robert Hicks
I disagree...I don't think the whitespace rule will ever be optional.
Why would it be so? If someone doesn't like it...choose another
language. It is that simple really.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: The Varieties of Pythonic Experience (was: Guido at Google)

2005-12-22 Thread Robert Hicks
You mean Jython is still going?  ; )

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: PYTHONDOCS on OSX

2005-11-28 Thread Robert Hicks

Dave Opstad wrote:
 In article [EMAIL PROTECTED],
  Robert Hicks [EMAIL PROTECTED] wrote:

  How do I set this variable in my .bash_profile? I have the html docs in
  /usr/local/PythonDocs.

 I have a line in my .profile like this:

 export PYTHONDOCS='/Users/opstad/Documents/Developer
 Docs/Python-Docs-2.4.1'

 So by analogy, you could try adding this to your profile:

 export PYTHONDOCS='/usr/local/PythonDocs'


I have that...and it isn't working with the OSX version of IDLE in the
MacPython folder. If I start Python from the Terminal it works.

Any idea why it doesn't work that way?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


PYTHONDOCS on OSX

2005-11-27 Thread Robert Hicks
How do I set this variable in my .bash_profile? I have the html docs in
/usr/local/PythonDocs.

Thanks for any help...

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Can't uninstall wxPython

2005-11-12 Thread Robert Hicks

Justin wrote:
 I have two versions of wxPython installed on my Mac (OS X Tiger).  One
 is version 2.6.1.0 and the other is version 2.6.0.0.  I want to keep
 the newer version, but I can't seem to uninstall either one using the
 uninstall_wxPython.py script.

 When I run that script, I get this error message:
   $ sudo: uninstall_wxPython.py: command not found

 Is there any way I could delete one, or both, of these installations
 manually?  For some reason, whenever I try to run a wxPython script, it
 uses the older version of wxPython and it doesn't always run correctly.

 Thanks in advance.

If it has the x bit set  you will have to do something like this:

sudo ./uninstall_wxPython.py

Otherwise pass python explicitly:

sudo python uninstall_wxPython.py

I think that it is going to wipe out all your wxPython installs...so
you will need to reinstall the version you wanted.

HTH,

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-10 Thread Robert Hicks
Why does there need to be OO in the core? That is one thing I have
never understood. If you want OO, get a package that fits your style of
OO and package require you are off and running. That probably isn't
what you would be looking at Tcl for anyway.

I agree about Tk and I am actually talking with someone about adding a
wxTcl to the mix as well. I think wx is a much better toolkit.

 It is all a question what you want to solve and how you want to solve
 it.

That is so true.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-09 Thread Robert Hicks

Svenn Are Bjerkem wrote:
 In article [EMAIL PROTECTED],
 [EMAIL PROTECTED] says...
  Ah, another one leaves the fold...  : \

 I think I saw somebody say about OO in Python: It's there, but you
 don't have to use it. Every time somebody wants OO in the core of tcl,
 he is asked: Why do you want it?

 If OO was as easy in Tcl as in Python, there would be no real reason to
 switch in my opinion. (And maybe simpler namespaces and passing of lists
 to functions, we all love the uplevel and upvar commands, don't we?)
 --
 Svenn

That is a misconception. There are several really good packages for OO
in Tcl. XOTcl, [incr] Tcl, and my favorite Snit.

On top of that there is currently being added OO to the core of Tcl as
well. That should all be integrated in when 8.5 comes out in the
spring.

Tk is getting a native LF uplift as well.

However, I think it is more perception than function now.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A Tcl/Tk programmer learns Python--any advice?

2005-11-08 Thread Robert Hicks
Ah, another one leaves the fold...  : \

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Dealing with Excel

2005-10-18 Thread Robert Hicks
I need to pull data out of Oracle and stuff it into an Excel
spreadsheet. What modules have you used to interface with Excel and
would you recommend it?

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Dealing with Excel

2005-10-18 Thread Robert Hicks
I just want to be and maybe I am not reading your response right. I am
talking about reading in bunch of rows out of Oracle and writing them
to an excel file, not using macros.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Dealing with Excel

2005-10-18 Thread Robert Hicks
No, I have to format fields and everything sad to say. Another poster
up the chain of this posting gave me the nudge in the direction I
needed.

Thanks all,

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: UI toolkits for Python

2005-10-16 Thread Robert Hicks

Grant Edwards wrote:
snip
 Aside from the look  feel issue with Tk, the other objection
 sometimes heard is that Tk is integrated into Python by
 including Tcl as well (as opposed to doing an actual Tk binding
 the way some other languages have done).  It's an eminently
 practical approach, but it sure makes you feel dirty.


Dirty or not, it allows Python to utilitze any new features of Tk much
faster than an actual Tk binding would. That is Perl/Tk's problem...it
is slow to adopt new Tk features.

Robert

-- 
http://mail.python.org/mailman/listinfo/python-list