Reinhold Birkenfeld wrote:
Non sequitur. The phrase's interpretation depends on the posting(s) it
refers to.
Exactly. He was saying boo (and/or I) am offensive, but logo is not.
And then he apologized for misleading me to believe he was censuring me
instead of flaming me.
--
http://mail.python.o
Fredrik Lundh wrote:
"JZ" <[EMAIL PROTECTED]> wrote:
import re
line = "The food is under the bar in the barn."
if re.search(r'foo(.*)bar',line):
print 'got %s\n' % _.group(1)
Traceback (most recent call last):
File "jz.py", line 4, in ?
print 'got %s\n' % _.group(1)
NameError: name '_' is
n just a little. (Okay, I mean "a lot".)
Flame away, Peter.
As a result of all the activity in the "Boo who?" thread, however,
that you started
I went and searched a bit to find out who this Doug character is.
It turns out that he's been mentioning Boo in postings *to newb
tioning it here
occasionally.
Luis, that is *exactly* Peter's position:
Peter Hansen wrote:
... If Doug wants to come in from time to time and mention Boo,
however, he's welcome to do so. ...
... so there is no need for you to say you see no harm in it,
making it sound as though Peter *
Reinhold Birkenfeld wrote:
Doug Holton wrote:
Peter Hansen wrote:
As a result of all the activity in the "Boo who?" thread, however,
that you started
Apart from that it is considered disrespectful to put your "opponent's"
name into the subject, this flame war is bi
Steve Holden wrote:
> 'Scuse me? This group has a long history of off-topic posting, and
> anyway who decided that CPython should be the exclusive focus? Even
> on-topic we can talk about Jython and PyPy as well as CPython.
>
> Off-topic we can talk about what we damned well please. Even boo :-)
Th
Ed Leafe wrote:
You've missed the obvious: it's 'criticism' or 'observation' when it
comes from Doug, but it's a 'flame' when it is directed at Doug.
>
Unless there is something more substantial then whining, howzabout
we all just ignore i
[EMAIL PROTECTED] wrote:
Adding Optional Static Typing to Python looks like a quite complex
thing, but useful too:
http://www.artima.com/weblogs/viewpost.jsp?thread=85551
Thanks for pointing out that article by Guido van Rossum. Looks like it
just came out today. It is something that may be adde
It's me wrote:
The argument I wish to pass is either one string, or a list of strings, or a
tuple of strings.
For instance, I have:
def abc(arg1, arg2, arg3)
Let say that I expect arg1 and arg3 to be a number, and arg2 can be either
one string, or a bunch of strings and I need to do something o
[EMAIL PROTECTED] wrote:
for i in 1..12: pass
for c in "a".."z": pass
> @infix
> def interval(x, y): return range(x, y+1) # 2 parameters needed
> assert 5 interval 9 == interval(5,9)
> 10) There can be something in the middle between the def statement and
> the lambda.
These will likely n
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.
, ['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
. .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
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
, ['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
, ['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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
> 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
with and felt
comfortable working with.
Hope this helps.
-Doug
--
http://mail.python.org/mailman/listinfo/python-list
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
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
27;00.')
int(' 00.')
float('- 00')
float(' - 00')
float(' - 00')
float(' - 00.')
float('- 00.')
float('- 10.')
float('- 10.')
float('- 10.')
int('- 10.')
int('- 10.
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
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
> >
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",
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]>
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
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
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?
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
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
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
;<<<<<<<<<<<<<<<<<<<<<<<<< @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< ~
$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
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
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
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
A defector!Release the hounds!Burn the scum!
--
http://mail.python.org/mailman/listinfo/python-list
"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
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
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
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
hey, does anyone find the UML useful during Python development of larger
projects?
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
101 - 174 of 174 matches
Mail list logo