Re: Python Database Apps

2007-09-11 Thread Harry George
emy (I'm back and forth on that. Mostly stay with straight SQL). Of course, as long as you write DBI2 compliant code, your app doesn't much care which DBMS you use. The postgresql payoff is in admin functionality and scaling and full ACID. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Py2.5.1 on Ubuntu AMD X2, unicode problems

2007-09-11 Thread Harry George
is in fact undefined. 1. If I onfigure with unicode=ucs2, does all this go away and I get a working system (efficient or not) on my 64-bit machine? 2. Can you point to a configure (and maybe patch) process which leads to a clean "make altinstall". -- Harry George PLM Engi

Re: Sip4.7

2007-09-06 Thread Harry George
p-4.7/siplib' gcc -c -pipe -fPIC -O2 -w -I. -I/usr/local/include/python2.5 -o siplib.o siplib.c gcc -c -pipe -fPIC -O2 -w -I. -I/usr/local/include/python2.5 -o qtlib.o qtlib.c gcc -c -pipe -fPIC -O2 -w -I. -I/usr/local/include/python2.5 -o threads.o threads.c gcc -c -pipe -fPIC -O2 -w -I. -I/usr/local/include/python2.5 -o objmap.o objmap.c g++ -c -pipe -fPIC -O2 -w -I. -I/usr/local/include/python2.5 -o bool.o bool.cpp g++ -shared -Wl,--version-script=sip.exp -o sip.so siplib.o qtlib.o threads.o objmap.o bool.o gmake[1]: Leaving directory `/usr2/src/qt/sip-4.7/siplib' -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: SSL Issue

2007-09-06 Thread Harry George
with verification of both client and server certificates. If that is where you are going, let me know what works. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with CSV

2007-07-19 Thread Harry George
d csv, b) check the loaded structure's data against the new data-on-disk to find changed files, c) update the structure appropriately, d) write out the resulting new csv. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: VB frontend to Python COM backend

2007-07-06 Thread Harry George
ook". You want "Python Programming on Win32" By Mark J.. Hammond, Andy Robinson. It covers exactly this case. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: eggs considered harmful

2007-06-26 Thread Harry George
[EMAIL PROTECTED] (John J. Lee) writes: > Harry George <[EMAIL PROTECTED]> writes: >> [EMAIL PROTECTED] (John J. Lee) writes: > [...] >>> 2. You can run your own private egg repository. IIRC, it's as simple >>> as a directory of eggs and a plain old web

Re: Setuptools, build and install dependencies

2007-06-25 Thread Harry George
Robert Kern <[EMAIL PROTECTED]> writes: > Harry George wrote: > >> We need to know the dependencies, install them in dependency order, >> and expect the next package to find them. "configure" does this for >> hundreds of packages. cmake, scons, and other

Re: Setuptools, build and install dependencies (was: eggs considered harmful)

2007-06-22 Thread Harry George
Ben Finney <[EMAIL PROTECTED]> writes: > Harry George <[EMAIL PROTECTED]> writes: > > > Historically, python packages played well in this context. Install > > was a simple download, untar, setup.py build/install. > > > > Eggs and with other setupt

Re: eggs considered harmful

2007-06-22 Thread Harry George
Robert Kern <[EMAIL PROTECTED]> writes: > Harry George wrote: > > ...at least around here. > > > > I run a corporate Open Source Software Toolkit, which makes hundreds > > of libraries and apps available to thousands of technical employees. > > The

Re: eggs considered harmful

2007-06-22 Thread Harry George
[EMAIL PROTECTED] (John J. Lee) writes: > Harry George <[EMAIL PROTECTED]> writes: > [...] > > These are unacceptable behaviors. I am therefore dropping ZODB3, and > > am considering dropping TurboGears and ZSI. If the egg paradigm > > spreads, yet more packages

eggs considered harmful

2007-06-21 Thread Harry George
ll available as well. You can have dependencies, as long as they are documented and can be obtained by separate manual download. Thanks for listening. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs

2007-06-19 Thread Harry George
-- code a bit, save, the other guy codes a bit. But when someone uses vi and then forgets how to do block moves, or uses eclipse and bogs down the session, or uses MS Notepad and can't enforce language-specific indents, I get frustrated. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Python ODBC

2007-04-30 Thread Harry George
bc are the main players. http://www.unixodbc.org/ http://www.iodbc.org/ 3. For *NIX you need python bindings. This is where mxODBC has operated (e.g., with iodbc). But there is an OSS effort at: https://sourceforge.net/projects/pyodb -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Command-line option equiv of PYTHONPATH

2007-04-27 Thread Harry George
decisions you want. archtool_path= os.getenv('ARCHTOOL_PATH') archtool_cfg = os.getenv('ARCHTOOL_CFG') sys.path.insert(0,archtool_path) import archtool exec "import archtool.%s as cfg" % archtool_cfg -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Numeric Soup

2007-03-28 Thread Harry George
and numarray. > scipy > > provides a bunch of computational routines (linear algebra, optimization, > > statistics, signal processing, etc.) built on top of numpy. > > Thank you. > > Also see gsl and its python binding. http://www.gnu.org/software/gsl/ http://

Re: Help in Placing Object in Memory

2007-03-27 Thread Harry George
o python script share a common object? > For the CPU to use the object, it needs to be in RAM. But it is possible to save the RAM image onto disk, and then bring it back later. The common approach is called "pickling", though there are several variants on this: http://docs.pyth

Re: Scripting Visio using Python

2007-02-14 Thread Harry George
se IronPython? An alternative might be to work (cross-platform) wit the vxd (XML) file format. A good reader/writer for that would be handy. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Harry George
on" and any other kind, and I'm not aware of any > case law that does so either. This distinction is also not codified in > the GPL itself anywhere, so it's not a necessary condition of the > license - it is an interpretation by the FSF and that is all. [snip] It is

Re: Python does not play well with others

2007-01-24 Thread Harry George
ust works. Same scripts run on every platform. Bindings available to every C/C++/FORTRAN library I've needed so far. Often the bindings are not complete, but oddly enough the binding developers have chosen to do just the functions I need, so who cares. A clean architecture for adding more f

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread Harry George
ey do not have the authority to actually define its legal ramifications. Check with your company legal staff. Having said that, I have been troubled by trolltech's approach from the beginning, and therefore stay away from it. PyGTK and wdxPython are solid GUIs, without the legal uncertainty. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: on PySol's popularity

2006-12-19 Thread Harry George
I had to reinstall Python2.2 in order to use the old PySol binaries (couldn't get the build-from-source to work). Linux and Python got a fan due to PySol. It should be considered a cultural treasure, and if a bit of funding would help keep it rolling into the future, that might be worthwhile.

Re: free, python XML merger?

2006-12-11 Thread Harry George
overriding > data for the same tags. > > Thanks in advance, > sulu > Sounds like a general XML problem, to be solved with cElementTree perhaps. Can you provide the schema and small examples of the input files and the desired output file? -- Harry George PLM Engineering Architecture

Re: merits of Lisp vs Python

2006-12-11 Thread Harry George
) can look quite impressive. I've see data suggesting Ruby is replacing Perl and maybe Java. But I've yet to see data which shows people dropping Python and moving to Ruby. Where do I find that data? -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyparsing troubles

2006-12-11 Thread Harry George
with a regexp engine b) Context Free Grammar (CFG), parseable with a LL(1) or LALR(1) parser. c) Context Dependent Grammar, parseable with an ad hoc parser with special rules. d) Free text, not parseable in the normal sense, but perhaps understandable with statistical analysis NLP te

Re: merits of Lisp vs Python

2006-12-08 Thread Harry George
st a newbie thing. Even people who are reasonably fluent in Lisp use Python for many tasks, and some make python the default with Lisp as a special case. It would probably be fair to say that the more you know about a variety of languages, the more you appreciate Python. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: I think Python is a OO and lite version of matlab

2006-12-08 Thread Harry George
ape-changing fluidity, and is subject to radially symmetric shape-impacting processes. Magma and gravity for the earth, leather and air pressure for inflated balls, sand and accretion for beach "cannonballs", and snow and hand pressure for snowballs. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Pimping the 'cgi' module

2006-12-04 Thread Harry George
robert <[EMAIL PROTECTED]> writes: > Harry George wrote: > > When I came from Perl, I too missed perl-isms and specifically CGI.pm, so > > wrote my own: > > http://www.seanet.com/~hgg9140/comp/index.html > > http://www.seanet.com/~hgg9140/comp/pyperlish/doc/manu

Re: Pimping the 'cgi' module (was: Re: python gaining popularity according to a study)

2006-11-30 Thread Harry George
m/~hgg9140/comp/pyperlish/doc/manual.html http://www.seanet.com/~hgg9140/comp/cgipm/doc/index.html Others on this newsgroup said I'd be better off just doing it in raw python. After a while, I realized that was true. You do triple-quoted templates with normal python idioms. Throw in some persistence mechanisms to deal with maintaining state across transactions, and you are in business. Since then I've looked at Zope, Plone, TurboGears, Django, and (for standalone apps) Dabo. TurboGears is mostly a set of recommendations on what 3rd party packages to use, with a wee bit of glueware. So far nothing feels as simple as just doing it in python. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Harry George
Java has layers upon layers upon layers of idiosyncratic libraries and idioms. When you write bindings to that world (even if the bindings are generated automagically), you have to *think* in those same layers. The Python-oriented developer suddenly has to use a dozen imports in order to do thing

Re: Will GPL Java eat into Python marketshare?

2006-11-16 Thread Harry George
raries (as > > jar files) into CPython. > > http://sourceforge.net/projects/jpype > > > Personally, I've never gotten jpype to work. Is it just me, or is it a troublesome install? -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Harry George
ally change Java's architecture. It is still a closed world of reinvent-the-wheel, my-way-or-the-highway. Which is antithetical to Python's promiscuous interface-with-anything approach. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Python development time is faster.

2006-11-13 Thread Harry George
ctor, that is easy too. c) Peer code reviews are easy -- both you and the reviewers can understand the code's intent at a glance. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

manual eggs downloads?

2006-11-10 Thread Harry George
ckages is ok. A web page simple listing the third party sites and the recommended downloads is ok. Automatically downloading is not ok. Is there some way in the eggs mechanism to just get a list of the proposed downloads, and let the user take the actions manually? -- Harry George PLM Engineering A

Re: Python tools for managing static websites?

2006-10-31 Thread Harry George
instead. 2. If there must be human-in-the-loop, then it is good to use a markup language which can be converted to html (or to other backends). Perrl's POD format is one, and I've done that as a Pdx. http://www.seanet.com/~hgg9140/comp/index.html http://www.seanet.com/~hgg91

Re: What's the best IDE?

2006-10-26 Thread Harry George
all the customizing that I could never figure out. years ago this worked for people I was supporting: set softtabstop=4 shiftwidth=4 expandtab Personally, I'm an emacs guy, so I wouldn't know. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

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

2006-10-04 Thread Harry George
it is "Roundup or else non-python COTS"? I gave up on Roundup a while ago due to too many crashes. I'm now using Trac: a) Open Source b) Python c) Adequate functionality (for me at least) http://trac.edgewall.org/ I'm not trying to "sell" Trac, but

Re: Python form Unix to Windows

2006-08-17 Thread Harry George
nix. YMMV > > Peace, > ~Simon > I agree with this-- just try it. When I've helped others move code, I found the biggest problem was when they had hardcoded file paths instead of using os.path mechanisms. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: excel in unix?

2006-08-11 Thread Harry George
you need more than csv, start writing to to the OpenOffice.org formats, either with your own code or via PyUNO. Then use OOo itself or a MS-sponsored ODF reader to translate to Excel format. This should be a maintainable approach over time (but a lot more complex than just csv). -- Harry George

Re: Python Projects Continuous Integration

2006-07-28 Thread Harry George
fter language, decade after decade, platform after platform. Use your brain cells form something useful, like learning new technologies and new algorithms. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: json implementation

2006-07-25 Thread Harry George
but TurboGears uses json-py. https://sourceforge.net/projects/json-py/ -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Project organisation

2006-07-19 Thread Harry George
ommon util.py in a package called "globals". That could get really confusing. You might make it a standalone package, or maybe use "utilities" or "common". -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Prolog and Regular Expressions, Was: Re: perspective on ruby

2006-06-29 Thread Harry George
using the embedding libraries and bindings. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: How to link foreign keys & primary keys using python?

2006-06-09 Thread Harry George
our data sinks. 4. Do you have a testsuite and test harness? Put together your test harness, then develop for the simplest case, then add complexity. E.g., no FK, FK with 1 attr, FK with multiple attrs, FKs with shared attrs. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Open Source Charting Tool

2006-06-05 Thread Harry George
that I have to do it from scratch. > > > > Is there any open source charting tool that help me create charts in JPG or > gif format? > > > > Thanks, > > Alan > > See pygdchart http://www.nullcube.com/software/pygdchart.html -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you practice Python?

2006-06-01 Thread Harry George
7;@')])" > Do projects at home. Either find an existing OSS project, or roll your own. Once you have the basics of the language, the skills are domain-specific: XML, GUIs, CAD, gaming, multithreading, numerical analysis, natural language progromming, etc. If you do an existing project, then you benefit from peer reviews and other informal learning opportunities. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming language productivity

2006-05-19 Thread Harry George
slow (perhaps an over night job). I've yet to experience a context where language features are the rate limiting step. On the other hand, I have definitely experienced language as a rate limiting factor in a) peer code reviews, b) debugging, c) ramping up new team members. Python wins those

Re: Using python for a CAD program

2006-05-16 Thread Harry George
seems to be: http://www.opencascade.org/ http://free-cad.sourceforge.net/ 5. Knowledge Based Engineering (KBE) inference engines: Python already gives you lazy evaluation and memoizing, but a prolog-based backward chaining engine helps too. We wrote CAD-engine-calls-python-and-prolog and python-

Re: Tabs versus Spaces in Source Code

2006-05-15 Thread Harry George
e, and who knows what else, the 4-spaces rule is necessary for survival. The reason is simple: People get confused, and accidentally get the wrong tab indents when they move among editors or among settings on the same editor. In most languages this is an irritation, requiring some cleanup.

Re: An Atlas of Graphs with Python

2006-05-02 Thread Harry George
hat cites his linguistic > foundations). > > -- Pad. > I used Python for computational linguistics coursework, but not since. Google for "nlp python". E.g.: http://nltk.sourceforge.net/ http://www.logilab.org/projects/hmm http://www.cs.berkeley.edu/~russell/aima/pyt

Re: Looking for resources for making the jump from Java to Python easier and more productive

2006-04-24 Thread Harry George
sssibly do the whole job, could it?" If you have a good regression test suite, you are done when it works. If you need help getting on board unittests, see mkpythonproj: http://www.seanet.com/~hgg9140/comp/index.html#L006 -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Speed abilities

2006-04-18 Thread Harry George
e alternative implementations. E.g., multiple processors in parallel, more efficient algorithms, ctypes or pyrex to speed up the python. In terms of the overall project notion-to-delivery duration, implementing in Python might be the right first step on your way to an assembler implementation.

Re: best way to install python modules on linux

2006-04-10 Thread Harry George
use/local/lib/python2.4/site-packages. Also, make sure root doesn't have /usr/local/bin on its PATH (which is a good rule anyway). -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: DO NOT USE JAVA BECAUSE IT IS NOT OPEN SOURCE

2006-04-10 Thread Harry George
ignificant pushback. I read Mono as a challenge to Microsoft: You claim this is open? Ok, we'll implement it and then see where the submarine patents pop up. Why would I want to let one company's abstract model sit between my code and every piece of hardware I wish to touch? -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: python debugging question

2006-03-09 Thread Harry George
f quick hacks and others that are multi-person, multi-year efforts. They all live by their test suites. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Learning different languages

2006-03-08 Thread Harry George
en though I've written substantially in COBOL, FORTRAN, Lisp, Prolog, and Java, I wouldn't use these for a default language. -- Harry George PLM Engineering Architecture -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Java

2006-03-07 Thread Harry George
"JKPeck" <[EMAIL PROTECTED]> writes: > Suppose you have an application written in Java, and you want to enable > other applications or processes written in Python to communicate with > it, i.e., to use Python as a scripting language for the application. > On Windows you could do this with COM and

Re: Fromatting an xml file

2006-02-03 Thread Harry George
"sir_alex" <[EMAIL PROTECTED]> writes: > Hi! I have a little problem writing xml files formatted in a way like > the following: > > > bla > bla > > > Every new node element should have a tabulation before it, but when I > use xml.dom.minidom I use writexml, which considers as

Re: GUI toolkit question

2005-03-17 Thread Harry George
[EMAIL PROTECTED] writes: > I'm building an app that operates on tuples (typically pairs) of > hierarchical structures, and i'd like to add a GUI to display my > internal representation of them, and simplify manipulations/operations > on them. My requirements are: > > 1) Draw a single 3D repres

Re: How did you learn Python?

2004-12-03 Thread Harry George
"Shawn Milo" <[EMAIL PROTECTED]> writes: > I was just wondering what the best books were for learning Python. > > Which books are good for getting started, and which should be saved for > later, or or not useful except as a reference for the learned? > > I have a decent programming background in

Re: SOAPpy/ZSI/Twisted SOAP over stdin/stdout?

2004-12-01 Thread Harry George
Harry George <[EMAIL PROTECTED]> writes: > Normally the SOAP Servers are designed to take control of a port and > run their own sockets via inheritance from SocktServer. > > But under inetd and xinetd, the port is controlled elsewhere and the > service just gets the st

SOAPpy/ZSI/Twisted SOAP over stdin/stdout?

2004-11-30 Thread Harry George
Normally the SOAP Servers are designed to take control of a port and run their own sockets via inheritance from SocktServer. But under inetd and xinetd, the port is controlled elsewhere and the service just gets the stdin/stdout. I need to configure (or tweak) one of the SOAP servers to use that c

Re: RELEASED Python 2.4 (final)

2004-11-30 Thread Harry George
cd .. 4. When another python version shows up, copy the go23 to go24, edit it for py23-->py24, and start building. Use either version at the commmand line or in other scripts via py23 or py24. NOTE: In cgi's, give the full path, e.g.: #!/usr/local/bin/python2.3 -- Har