lxml and xpath(?)

2016-10-24 Thread Doug OLeary
ight help but I've not been able to get even the simple examples working. Go figure, I just figured out what a namespace is... Any hints/tips/suggestions greatly appreciated especially with complete noob tutorials for xpath. Thanks for your time. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: xml parsing with lxml

2016-10-07 Thread Doug OLeary
On Friday, October 7, 2016 at 3:21:43 PM UTC-5, John Gordon wrote: > root = doc.getroot() > for child in root: > print(child.tag) > Excellent! thank, you sir! that'll get me started. Appreciate the reply. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

xml parsing with lxml

2016-10-07 Thread Doug OLeary
en of .*?? In that partial list, it'd be name, domain-version, security-configuration, log, and server. For some reason, I'm not able to make the conceptual leap to get to the first step of those tutorials. The end goal of this exercise is to programatically identify weblogic clusters and their hosts. thanks Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: more python3 regex?

2016-09-11 Thread Doug OLeary
ta to match an algorithm works as well in python as it does in perl. Go figure. My 200+ script that didn't work so well is now 63 lines, including comments... and works perfectly. Outstanding! Thanks for putting up with noob questions Doug -- https://mail.python.org/mailman/listinfo/python-list

more python3 regex?

2016-09-11 Thread Doug OLeary
this seems like it should be pretty straight forward so I'm obviously missing something basic. Any hints/tips/suggestions gratefully accepted. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: iterating over multi-line string

2016-09-11 Thread Doug OLeary
Hey; Never mind; I finally found the meaning of stopiteration. I guess my google-foo is a bit weak this morning. Thanks Doug -- https://mail.python.org/mailman/listinfo/python-list

iterating over multi-line string

2016-09-11 Thread Doug OLeary
bj) print(l) I'm hoping to see that first header; however, I'm getting another error: Traceback (most recent call last): File "./testies.py", line 30, in next(iterobj) StopIteration I'm not quite sure what that means... Does that mean I got to the end of data w

Re: python3 regex?

2016-09-10 Thread Doug OLeary
again. I appreciate the tip. Doug O'Leary -- https://mail.python.org/mailman/listinfo/python-list

Re: Python enabled gdb on Windows and relocation

2011-05-17 Thread Doug Evans
On Sun, May 15, 2011 at 9:11 AM, Ruben Van Boxem wrote: > I am sorry for the repeated messages that no one cares about, but I > may have discovered GDB in its current form already allows what I > want: I tried to figure out what exact paths the snake in gdb was > using to search for its modules, a

Re: Python enabled gdb on Windows and relocation

2011-05-17 Thread Doug Evans
On Sun, May 15, 2011 at 6:26 AM, Ruben Van Boxem wrote: > Wow, I think I have a partial solution. Delving into the Python docs, > for example here: > http://docs.python.org/using/windows.html#finding-modules, you can see > that PYTHONPATH is used first, then the Windows registry, then > PYTHONHOME

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 11:30 AM, Doug Evans wrote: > Note that --exec-prefix is the runtime location of python. > GCC uses this to tell libpython where to find its support files. > [grep for Py_SetProgramName in gdb/python/python.c] Oops. s/GCC/GDB/ -- http://mail.python.org/mailman

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 2:29 AM, Eli Zaretskii wrote: >> Date: Sat, 14 May 2011 11:09:13 +0200 >> From: Ruben Van Boxem >> Cc: g...@sourceware.org, python-list@python.org >> >> 1. Check hardcoded path; my suggestion would be "> executable>/../lib/python27" >> 2. If this fails to find the necessar

Re: Python enabled gdb on Windows and relocation

2011-05-14 Thread Doug Evans
On Sat, May 14, 2011 at 2:09 AM, Ruben Van Boxem wrote: > 2011/5/14 Doug Evans : >> On Thu, May 12, 2011 at 9:19 AM, Ruben Van Boxem >> wrote: >>> (now in plain-text as required by gdb mailing list) >>> >>> Hi, >>> >>> I am currently tr

Re: Python enabled gdb on Windows and relocation

2011-05-13 Thread Doug Evans
On Thu, May 12, 2011 at 9:19 AM, Ruben Van Boxem wrote: > (now in plain-text as required by gdb mailing list) > > Hi, > > I am currently trying to integrate Python support into my toolchain > build (including GDB of course). It is a sysrooted > binutils+GCC+GDB+mingw-w64 toolchain. > > I currently

Re: newbie question about PYTHONPATH

2011-02-19 Thread Doug Epling
The best way I have found is to place that definition of your PYTHONPATH in your .bash_profile in your home directory and export it from there. PYTHONPATH=/home/foo/prog/learning_python export PYTHONPATH This way your PYTHONPATH is picked up each time you log on. You might

Another related OO Python ?

2011-02-11 Thread Doug Epling
hey, does anyone find the UML useful during Python development of larger projects? -- http://mail.python.org/mailman/listinfo/python-list

Re: Which non SQL Database ?

2011-02-11 Thread Doug Epling
On 12/4/2010 5:42 PM, Jorge Biquez wrote: Hello all. Newbie question. Sorry. As part of my process to learn python I am working on two personal applications. Both will do it fine with a simple structure of data stored in files. I now there are lot of databases around I can use but I would like

Re: Wing in mod_python vs wsgi?

2011-02-08 Thread Doug Epling
I don't know about your IDE, I am using the default IDLE just because it is handy. But I have made the switch from mod_python. It was a good idea, but mod_wsgi is a better idea. And as you know, mod_python is no longer supported. I am running Apache with mod_wsgi in a windows 7 environment

Supporting Python 2.x and 3.x on a PC

2010-11-12 Thread Doug Stell
I support multiple projects, some of which will remain on Python 2.x and some of which want to use Python 3.1.2. While I have installed both on my Windows PC, only the last installed version can be used. I do not have admin rights on the machine, so altering registry settings is not an option. Any

Re: Using elementtree to Create HTML Form / Set "selected"

2010-08-12 Thread Doug
On Aug 12, 10:47 am, Peter Otten <__pete...@web.de> wrote: > Doug wrote: > > I'm using elementtree to create a form. > > > I would like to set the "selected" attribute. > > > Setting using the usual > >  option.set( "selected" =

Using elementtree to Create HTML Form / Set "selected"

2010-08-12 Thread Doug
I'm using elementtree to create a form. I would like to set the "selected" attribute. Setting using the usual option.set( "selected" = "" ) gives me Operations how does one make Operations which is what I need. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to run python script in emacs

2009-11-25 Thread doug
When I type C-c C-c my emacs window just hangs. If I use Task Manager to kill cmdproxy I can get emacs back but of course interactivity with Python is not accomplished. By the way, if I do C-c ! then I get a functional python shell. Does anybody know a solution to this? On Oct 13, 7:12 am, rus

Re: Writing a Carriage Return in Unicode

2009-11-19 Thread Doug
Hi! Thanks for clearing this up!! -- http://mail.python.org/mailman/listinfo/python-list

Writing a Carriage Return in Unicode

2009-11-18 Thread Doug
Hi! I am trying to write a UTF-8 file of UNICODE strings with a carriage return at the end of each line (code below). filOpen = codecs.open("c:\\temp\\unicode.txt",'w','utf-8') str1 = u'This is a test.' str2 = u'This is the second line.' str3 = u'This is the third line.' strCR = u"\u240D" fil

print syntax

2009-09-03 Thread doug
I am new to python, working by way through 'Core Python Programming'. I can find no description of using print with the built-in type for formatting. I think I have got some [most?] of it from Chun, google, and python.org. My comment is - it should not be that hard to find. I would suggest a lin

Detecting platform architecture with Parallels and Win XP x64

2009-07-02 Thread Doug McCorkle
having to use the python executable to see if the application is on a 64bit architecture? Thanks. Doug -- http://mail.python.org/mailman/listinfo/python-list

Ctypes, pthreads and pthread_mutex_t

2009-06-29 Thread Doug
Has any converted the structure pthread_mutex_t to a ctypes structure class ? I looking at some C code that is using pthreads and need to translate pthreads_mutex_t structure into python (via ctypes) Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Fedora: Dual Python Versions Installed System Not Picking Up Newer Version

2009-03-25 Thread Doug Morse
ied to figure it out, to no avail, so if > anyone is pretty familiar with this, because I do NOT want to > stipulate which binary to use in all my source files... Hi, One option would be to use the alternatives system, which RHL / Fedora install by default. Run "man a

Re: A different kind of interface

2009-01-22 Thread Doug Morse
On Thu, 22 Jan 2009 08:13:49 -0800 (PST), Vic Kelson wrote: > > > How about IDLE? It's a nice tool for the Python programmer. I've tried > lots of IDEs, but when it comes down to it, on small-to-medium jobs I > am be very productive indeed using IDLE... > > --v I find Stani's Python Edito

Re: Soap Client

2009-01-16 Thread Doug
has a great day! Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Core Dump - Segmentation Fault -Newbie

2008-07-18 Thread Doug Morse
hon Hello.py The trace of system calls will be in the file logfile.txt. For more info on strace, see the strace(1) man page (i.e., run "man strace"). Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Formatting Output

2008-06-02 Thread Doug Morse
;<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~ $res->{'address_1c'},$res->{'address_2c'} @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~ $city_1 $city_2 @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~ $res->{'email_1'}, $res->{'email_2'} -- ~ . Then, all I have to do is populate my $res object/hash as desired -- in this example simple the results of a SQL query -- and lastly just call the "write" function: write; and Perl will produce very nicely formatted results. This is useful not only for producing human readable output, but also fixed-column-width data files, etc. I'd love to learn the Pythonistic way of doing the same thing. Thanks! Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: app runs fine with interpreter, but not under py2exe

2008-03-16 Thread Doug Morse
ikely to me. Thanks again to you and everyone. I'll definitely visit the py2exe wiki and see what I can come up with (and or course will report back with success / failures). If you or anyone has any further thoughts based on this post, I'm all ears and would be most grateful. Regards, Do

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
array2.pyd and umath2.pyd, and then manual create the "stub"-like .pyc files that py2exe creates to point to these alternate .pyd files and then place these stubs in library.zip/numpy/core? Or am I just hoping for too much here and am going to be stuck with using the --skip-archive option?

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
roblems seem to revolve around confusions when duplicate files exist in different modules. I wouldn't thinking that getting py2exe to pay better attention to the containing modules when building it's dependency tree would be that difficult (or is it)? Cheers, Doug On Fri, 14 Ma

Re: app runs fine with interpreter, but not under py2exe

2008-03-14 Thread Doug Morse
efore except, of course, on line 19 now instead of line 18. Doug On Thu, 13 Mar 2008 11:46:41 -0700 (PDT), GHUM <[EMAIL PROTECTED]> wrote: > Doug, > > > Precision.py is part of the Numeric package. AFAIKT, the problem is during > > the module initialization. The firs

Re: app runs fine with interpreter, but not under py2exe

2008-03-12 Thread Doug Morse
do with dynamic importing, but I can't be sure. I would note that "zeros" is a built-in function found in the "python dll" multiarray.pyd (in the Numeric module directory). Thanks again, Doug On Wed, 12 Mar 2008 03:09:59 -0700 (PDT), GHUM <[EMAIL PROTECTED]>

app runs fine with interpreter, but not under py2exe

2008-03-11 Thread Doug Morse
it, and (b) more generally, why would a problem like this occur under py2exe but not with the standard distro? Thanks in adavance for any and all help. Cheers, Doug Traceback (most recent call last): File "VisionTrainer.py", line 49, in File "SessionController.pyc",

Re: Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Doug Morse
On Mon, 25 Feb 2008 04:20:37 -0800 (PST), John Machin <[EMAIL PROTECTED]> wrote: > On Feb 25, 10:42 pm, Doug Morse <[EMAIL PROTECTED]> wrote: > > Hi, > > > > My apologies for troubling for what is probably an easy question... it's > > just > >

Newbie: How can I use a string value for a keyword argument?

2008-02-25 Thread Doug Morse
eed': x.foo(speed=12);" etc., but then the statement has to be maintained every time a new parameter is added/changed etc. Plus, such a solution seems to me grossly inelegant and un-Pythonic. Thanks in advance for any and all assistance! Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-09 Thread Doug Morse
So, showing of my physics ignorance: I presume then that this means that light, say from the sun, is actually sending particles to the earth, since the space between is mostly vacuum? Or is there enough material in the near-vacuum of space for propogation to occur? On Sat, 09 Feb 2008 12:25:51

Re: ISO books of official Python docs

2008-01-09 Thread Doug Morse
Hi Fredrik, I'm terribly confused. You want me to apologize for recommending that someone buy your books? To apologize for noting that they are a quality reference sources for Python? Doug On Wed, 09 Jan 2008 21:59:34 +0100, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Do

Re: ISO books of official Python docs

2008-01-09 Thread Doug Morse
Several of the O'Reilly & Assoc. books -- such as Python in a Nutshell, The Python Standard Library, etc -- are in large part reproductions of the official docs and references. So, while not exactly what you asked for, the ORA books might be a viable alternative if what you want isn't available.

Extracting images from a PDF file

2007-12-26 Thread Doug Farrell
me in the right direction, it would be most appreciated! Also, does anyone know of a way to validate a PDF file? Thanks in advance, Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python really a scripting language?

2007-12-12 Thread Doug Morse
although perhaps not a part of the definition of scripting languages per se, one aspect of them is that they are often used to "glue" a wide variety of other components together. perl's initial and continued success is in no small part to all the wrappers and interfaces it has to all sorts of othe

Re: changing fonts?

2007-12-07 Thread Doug Morse
efore you (as I see them): escape sequences, some sort of IPC, or system signals. Again, I think you might get luckly with the first option, whereas I have serious doubts that Terminal supports the latter two options (but ya never know...) Good luck, Doug P.S. -- I just realized that you probabl

RE: Database Access using pyodbc. I've a problem

2007-06-17 Thread Doug Phillips
not familiar with how apache handles these functions in a Windows environment, but the references in a prior answer to this thread should help you out. -Doug -- http://mail.python.org/mailman/listinfo/python-list

RE: Are there any python jobs worked at home from the internet?

2007-06-11 Thread Doug Phillips
with and felt comfortable working with. Hope this helps. -Doug -- http://mail.python.org/mailman/listinfo/python-list

RE: Python optimization (was Python's "only one way to do it"philosophy isn't good?)

2007-06-10 Thread Doug Phillips
> Is anyone out there who uses MS Word and doesn't deactivate > the "suggest" mode i.e. Clippy? Me... I don't install Clippy (or any of his horribly annoying friends) to start with. :) On the topic though, the suggest mode of the MS help system is generally way off-base, even for my 80-yr-old gr

RE: installing cx_Oracle.

2007-05-24 Thread Doug Phillips
MAIL PROTECTED] ~]$ python -c "import os; print os.environ['FOOD']" > eggs Just tried on a FreeBSD 6.1 development box with stock /bin/sh and it works there too... ... And I just learned something new! -Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Doug Gray
On Wed, 21 Mar 2007 00:29:00 +1100, Steven D'Aprano wrote: > On Tue, 20 Mar 2007 12:09:29 +0000, Doug Gray wrote: > >> Folks, >> I am looking for a fast but most importantly a bullet proof method to pass >> and NMEA data stream (GPS output) ascii numeric string

Re: Eureka moments in Python

2007-03-20 Thread Doug Gray
7;yum install pybluez' in Fedora Core 5. See: http://www.robertprice.co.uk/robblog/archive/2007/1/Using_A_Bluetooth_GPS_From_Python.shtml Doug Gray -- http://mail.python.org/mailman/listinfo/python-list

Bullet proof passing numeric values from NMEA data stream.

2007-03-20 Thread Doug Gray
27;00.') int(' 00.') float('- 00') float(' - 00') float(' - 00') float(' - 00.') float('- 00.') float('- 10.') float('- 10.') float('- 10.') int('- 10.') int('- 10.&#x

Re: book for a starter

2007-02-27 Thread Knight, Doug
Excellent choice. I used the 2nd edition for better than a year as a reference as I "came up to speed" on the language. Didn't know there was a 3rd edition out. Doug On Tue, 2007-02-27 at 11:08 -0800, Sriram wrote: > Hi, > > If you have experience programming, just rea

Inconsistent list/pointer problem

2007-02-01 Thread Doug Stell
le(listA) listB = list(listB) I've tried building the copy of listA, element by element, but that doesn't work. listB = [] for x in listA: listB.append(x) I finally had to do some type changing during the element by element copy and that does seem to work. Thanks in adva

Re: Molten Metal Pools in WTC after weeks, only micronuke could have produced so much heat

2006-12-01 Thread Doug
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > W88 warhead design > > http://www.thepriceofliberty.org/06/09/25/wardpics-5.htm > > http://www.thepriceofliberty.org/06/09/25/wardpics-4.htm the diagrams are all wrong, they are fiction. -- http://mail.python.org/mailman/listinf

Re: Py3K idea: why not drop the colon?

2006-11-12 Thread Doug
Michael Hobbs wrote: > Can anyone find a flaw with this change in syntax? > > Instead of dividing a compound statement with a colon, why not divide it > on a newline? For example, the colon could be dropped from this statement: > if self.hungry: > self.eat() > to > if self.hungry >

Fredrik Lundh [was "Re: explicit self revisited"]

2006-11-12 Thread Doug
Fredrik Lundh wrote: > Doug wrote: >> >> Fredrik Lundh wrote: >>> Fredrik Lundh wrote: >>> > cannot all you clueless trolls who cannot think of a single useful thing >>> > to contribute to Python start your own newsgroup? >> >>>

Re: explicit self revisited

2006-11-11 Thread Doug
Fredrik Lundh wrote: > Fredrik Lundh wrote: > > cannot all you clueless trolls who cannot think of a single useful thing > > to contribute to Python start your own newsgroup? > > and before anyone complains; please note that they're working through > > http://www.effbot.org/pyfaq/design-index

py2exe questions

2006-11-03 Thread Doug Stell
source code from users? These users are software developers, but we don't want them to see how the code does what it does. thanks, doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for the Perfect Editor

2006-09-08 Thread Doug Stell
Try www.TextPad.com. I've used it for years and love it. It understands many programming language constructs and can be taught to understand python so that things show up in color. On 7 Sep 2006 13:18:22 -0700, "Omar" <[EMAIL PROTECTED]> wrote: >I'd love the perfect editor that would be: > >a) fr

Re: ASN.1 encoder & decoder

2006-08-27 Thread Doug Stell
Thanks Paul. This is exactly the type andlevel of implementation that I was looking for. I will look at the other implementation again. On 25 Aug 2006 16:32:46 -0700, Paul Rubin <http://[EMAIL PROTECTED]> wrote: >Doug Stell <[EMAIL PROTECTED]> writes: >> Can anyone provide

Re: ASN.1 encoder & decoder

2006-08-25 Thread Doug Stell
2006 23:20:41 +0100, Bruce Stephens <[EMAIL PROTECTED]> wrote: >Doug Stell <[EMAIL PROTECTED]> writes: > >> Can anyone provide guidance on building an ASN.1 decoder and encoder >> in Python? > ><http://sourceforge.net/projects/pyasn1/>? -- http://mail.python.org/mailman/listinfo/python-list

ASN.1 encoder & decoder

2006-08-25 Thread Doug Stell
Can anyone provide guidance on building an ASN.1 decoder and encoder in Python? This does not have to be a general purpose implementation, drivenf from an ASN.1 template. It can be dedicated hard coded to a particular template. Doug Stell, [EMAIL PROTECTED] -- http://mail.python.org/mailman

Accessing USGS Web Service Using Python

2006-07-28 Thread Doug Caldwell
Hi! ** Accessing the USGS Web Service Using Python ** I am trying to access the US Geological Survey's gazetteer SOAP web service using Python to find the locations of all the places with the name 'Alexandria.' I tried to keep this simple by putting a soap message in a string and sending the

Re: How do you practice Python?

2006-06-02 Thread Doug Bromley
On 6/2/06, Norbert Kaufmann <[EMAIL PROTECTED]> wrote: Ray wrote:[...]> Um, I mean, what if you have to use something other than> Python/Jython/IronPython? :) How do you keep your Python skill sharp?>You could use IPython as your primary shell. Than you have the opportunity to do all these nasty au

Re: Best IDE for Python?

2006-05-05 Thread Doug Bromley
On 5/5/06, Christoph Haas <[EMAIL PROTECTED]> wrote: On Fri, May 05, 2006 at 04:50:11PM +0100, Doug Bromley wrote:> I have a Python IDE review I did a few months back you may want to view:> http://www.straw-dogs.co.uk/blog/python-ide-review Sounds interesting. Could you fix the screens

Re: Best IDE for Python?

2006-05-05 Thread Doug Bromley
I have a Python IDE review I did a few months back you may want to view:http://www.straw-dogs.co.uk/blog/python-ide-reviewHope that helps. DougOn 5 May 2006 08:28:00 -0700, Saurabh Sardeshpande <[EMAIL PROTECTED]> wrote: Pardon if this is already discussed extensively. But what is the bestIDE for P

Re: Can I use python for this .. ??

2006-05-05 Thread Doug Bromley
Careful of using the wrong tool for the job.  Don't use Python for the sake of it unless its as a learning experience.All of the things you ask for can be done by simply using the Windows start menu to launch a shortcut with various command line options.  Voila - problem solved. On 5 May 2006 05:15

Re: Best IDE for Python?

2006-03-31 Thread Doug Bromley
You may find the IDE review at Straw Dogs worth a look:  http://www.straw-dogs.co.uk/blog/python-ide-reviewOn 3/31/06, Keith B. Perry <[EMAIL PROTECTED]> wrote: To me, it just doesn't behave the same way as Eclipse for java.  I have used the plug-in, and I usually use it on my home machine ( I am

Re: Programming challenge: wildcard exclusion in cartesian products

2006-03-17 Thread Doug Quale
"funkyj" <[EMAIL PROTECTED]> writes: > One advantage of a generator over filtering the full product is that I, > as the user of the generator, am not obligated to iterate over the > entire solution space. > > Are there other _practical_ advantages of generators over mapping & > filtering complete

Re: Python / glade fundamentals

2006-03-17 Thread Doug
OK, I have solved the problem. The reference was a help. The clue is that the events may not get passed through the parent. For reference here is the code that worked. It's good to finally get the basics working. Doug import gtk import gtk.glade def key_press(widget,event): print &quo

Python / glade fundamentals

2006-03-16 Thread Doug
Hi all, Can someone tell me why I do not get a connection between the events and the functions in the sample below. GUI window appears OK, just no connections seem to be made. I am new to this so may be missing something fundamental. Thanks, Doug file pgtest.glade = http

libglade for python-2

2006-03-15 Thread Doug
local but I have included them for completeness) Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Evangelism

2006-03-09 Thread Doug Bromley
A defector!Release the hounds!Burn the scum! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Evangelism

2006-03-09 Thread Doug Bromley
Python is in desperate need of marketing and I don't think its new site will help it.The Ruby community has a fanaticism we could learn from and its going some way to 'converting' me.  The community is alive, growing, shouting from the roof tops while the Python community seems to sit in its ivory

Re: New python.org website

2006-03-09 Thread Doug Bromley
haps this is an example where we could do with taking a leaf out of Ruby's book? ( http://redhanded.hobix.com/redesign2005/)-Doug Bromleyblog.straw-dogs.co.uk On 8 Mar 2006 14:20:29 -0800, Kay Schluehr <[EMAIL PROTECTED]> wrote: Michael Tobis wrote:> > No one> > of the com

Re: warning for google api users

2006-02-21 Thread Doug Bromley
Producing a SERPS scraper for Google would be very easy and possible in about 10-15 lines of code.  However, its against the Google terms of service and if they decide to bite you for breaching them then you'll be in trouble.  Its also a reason you'll not likely find one that trumpets its existence

Python for PHP Programmers

2006-02-20 Thread Doug Bromley
Hi AllPlease be gentle but I'm primarily a PHP coder after a few years of academic experience in Java I've lost my object orientated programming style and have become a procedural PHP coder.  I started using Python almost 12mths ago now but I'm still very much working in a PHP style.  Obviously I n

Re: editor for Python on Linux

2006-02-20 Thread Doug Bromley
I did a review of Python IDE's at my blog.  If you're interested you can take a look:http://www.straw-dogs.co.uk/blog/python-ide-reviewI have a couple of links to other reviews on there too.  Worth a look if you're trying to find a good IDE. On 2/20/06, Tim Parkin <[EMAIL PROTECTED]> wrote: Mladen

Re: Jedit

2006-02-14 Thread Doug Bromley
I've often wondered this. I was thinking more along the lines of a scriptable Python editor like Emacs. The only thing I've noticed is: CUTE - *nix only. - (http://cute.sourceforge.net/) PyEditor - (http://www.rexx.com/~dkuhlman/pyeditor_howto.html) ViImproved - (http://wiki.python.org/moin/ViImp

cross compile python for linux-ppc-604

2006-01-11 Thread Doug Crawford
Has anyone successfully compiled python 2.4 to run under linux powerpc 604? I have the ELINOS cross compile environemnt working, but always run into problems when executing make. Unfortunately, my target embedded system does not have a complete build chain so I have to use a cross compiler. Is th

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Doug Schwarz
File System". Use Disk Utility to create a disk image and then erase it (again, using Disk Utility) and put UFS on it. You'll find that "touch foo FOO" will create two files. -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

ElementTree - Why not part of the core?

2005-12-07 Thread doug . bromley
Why is the ElementTree API not a part of the Python core? I've recently been developing a script for accessing the Miva API only to find all the core API's provided by Python for parsing XML is messy and complicated. Many of the examples I see for parsing the data using these API's uses a similar

Re: Some more odd behaviour from the Regexp library

2005-10-19 Thread Doug Schwarz
x27;exit: (.*?)', a) > In [4]: b.group(0) > Out[4]: 'exit: ' > > In [5]: b.group(1) > Out[5]: '' > > In [6]: b.group(2) > IndexError: no such group The ? tells (.*?) to match as little as possible and that is nothing. If you change it to (.*) it should

CGI File Uploads and Progress Bars

2005-09-07 Thread Doug Helm
e: Does anyone know how to get the size of the incoming file data without reading the whole thing into a string? Can I do something with content_header? Thanks much for any insight that you might have. Doug -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite non-python language trick?

2005-06-24 Thread Doug Schwarz
> dash. This is much nicer than in C or Python having to get rid of """ or > > /* and */. Of course, the IDE can compensate. But it's still neat :) > > python: > > """ > print 10 > """ > > and > > #"

[no subject]

2005-06-22 Thread Doug Ly
Is there a good IDE for Python? I have heard that Eclipse has a plugin for Jython only. Thanks   --Doug   -- http://mail.python.org/mailman/listinfo/python-list

Re: Regex for repeated character?

2005-06-17 Thread Doug Schwarz
does? In other words, I want a > pattern like this: > > >>> re.findall(".+", "foo") # not what I want > ['foo'] > >>> re.findall("something", "foo") # what I want > ['f', 'oo'] How's this?

Re: Compute pi to base 12 using Python?

2005-04-13 Thread Doug Schwarz
iven by f(n+1) = f(n) * 2^(1/12) so by the time you go all 12 notes in an octave you have doubled the frequency. There is nothing here involving base 12 or pi. -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

Re: File Uploads

2005-03-31 Thread Doug Helm
OTECTED]> wrote in message news:[EMAIL PROTECTED] > "Doug Helm" <[EMAIL PROTECTED]> wrote: > > >Hey, Folks: > > > >I'm trying to write a very simple file upload CGI. I'm on a Windows server. > >I *am* using the -u switch to start Python for C

Re: File Uploads

2005-03-28 Thread Doug Helm
Andrew: I'm a dope. You're brilliant. Thank you. That worked splendidly. Doug <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Doug Helm wrote: > > > form = cgi.FieldStorage() > > if lobjUp.Save('filename', 'SomeFile.

Re: String Splitter Brain Teaser

2005-03-28 Thread Doug Schwarz
, ['T'], ['A', 'G']] How about this? import re s = "ATT/GATA/G" result1 = re.findall(r"./.|.", s) consensus = [c.split("/") for c in result1] -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

Re: String Splitter Brain Teaser

2005-03-28 Thread Doug Schwarz
, ['T'], ['A', 'G']] How about this? import re s = "ATT/GATA/G" result1 = re.findall(r"./.|.", s) consensus = [c.split("/") for c in result1] -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

File Uploads -- Windows Server

2005-03-27 Thread Doug Helm
t an error if I didn't)... I'm not getting any error. I submit a multi-part form to save a file attachment to disk, and the post just hangs. Does anyone have any ideas on this? Has anyone made CGI file uploads work in a Windows / IIS environment? Thanks much for any help that you ca

Re: File Uploads

2005-03-27 Thread Doug Helm
. .py = python.exe -u %s %s)? Thanks. Doug "dimitri pater" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Maybe this helps: > http://www.voidspace.org.uk/python/cgi.shtml#upload > > I use it, it works for fine me > Maybe it will give you some clues on how t

Re: String Splitter Brain Teaser

2005-03-27 Thread Doug Schwarz
, ['T'], ['A', 'G']] How about this? import re s = "ATT/GATA/G" result1 = re.findall(r"./.|.", s) consensus = [c.split("/") for c in result1] -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

File Uploads

2005-03-27 Thread Doug Helm
Hey, Folks: I'm trying to write a very simple file upload CGI. I'm on a Windows server. I *am* using the -u switch to start Python for CGIs, as follows: c:\python\python.exe -u %s %s I *do* have write permissions on the directory I'm trying to write to. But, when I click submit, it just hangs.

Re: programmatically calling a function

2005-03-05 Thread Doug Schwarz
In article <[EMAIL PROTECTED]>, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: > Doug Schwarz wrote: > > > Dave, > > > > I think eval might be what you're looking for: > > > > f = eval('len') > > length = f([1,2,3]) >

Re: programmatically calling a function

2005-03-05 Thread Doug Schwarz
nt 'bar' > > > i'd really appreciate any help the 'group' has to offer. > > > thanks > dave Dave, I think eval might be what you're looking for: f = eval('len') length = f([1,2,3]) By the way, are you the Dave Ekhaus I used to work with at Kodak? -- Doug Schwarz dmschwarz&urgrad,rochester,edu Make obvious changes to get real email address. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >