Max Erickson <[EMAIL PROTECTED]> writes:
> table.parentNode.replaceChild(newtable, table)
I knew it had to be something simple (but not as simple as I am,
apparently :^).
Thanks much, Max, you've saved the rest of my day.
Nick
--
#include/* sigmask (sig.c) 20041028 PUBLIC DOMAIN */
int ma
I've been trying to figure out how to do something that seems
relatively simple, but it's just not coming together for me. I'm
hoping someone will deign to give me a little insight here.
The problem: We have XML documents that use a custom table format that
was designed primarily for typesetting d
windozbloz <[EMAIL PROTECTED]> writes:
> It now works from the command line like you said. Shouldn't I also be able
> to 'click' an icon that has been set to executable and launch the whole
> process that way?
You'll need to put an interpreter line at the beginning of your
script, as other poste
ing between tools than you typically
get with a monolithic IDE.
Nick
--
Nick Vargish :: http://nick.vargish.org
--
http://mail.python.org/mailman/listinfo/python-list
bruno modulix <[EMAIL PROTECTED]> writes:
> Err... Looks like I've seen this before, but where ???
Don't know, but it looks sort of familiar...
Nick
--
# sigmask (lambda deprecation version) 20041028 || feed this to a python
print ''.join([chr(ord(x)-1) for x in 'Ojdl!Wbshjti!=ojdlAwbshjti/ps
Mage <[EMAIL PROTECTED]> writes:
> - identing with tabs
Indenting with tabs is pretty much frowned upon in Python, as Guido
relates in PEP 8:
http://www.python.org/peps/pep-0008.html
I guess it doesn't matter much if you are the only person who will
ever touch your code, and you never, ever, ac
I would recommend starting with the official tutorial to get a feel
for the nuts-and-bolts syntax of Python. Once you've worked your way
through that (probably not more than an afternoon), pick up a copy of
the Python Cookbook. Since you're an experienced programmer, I think
the Cookbook will help
[EMAIL PROTECTED] writes:
>I am working on a Problem to convert makefile in to a python script.
> Are there any Modules? Please try to comment.
How about this (untested):
cut here
import subprocess
print ("import os")
make = subprocess.Popen(["make", "-n"],stdout=subproces
Robert Kern <[EMAIL PROTECTED]> writes:
> So yeah, buy it.
Seconded. My copy arrived from ORA yesterday and I'm still giddy with
delight. Even if you have the first edition, the second includes a lot
of recipes that leverage or demonstrate the new features in 2.3 and
2.4.
Nick
--
# sigmask
"Harlin Seritt" <[EMAIL PROTECTED]> writes:
> ?
#!/bin/sh
ping $1
Enjoy,
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/psh?')
--
http://mail.python.org/mailman/listinfo/python-
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
> Guido is the one, who should care by time about the status of the
> python-community.
That one crashed my parser.
> Thank's for every bit of contribution, which has made this thread an
> worthfull insight into the python-community.
To really get a s
Grant Edwards <[EMAIL PROTECTED]> writes:
> I've never understood the problem with long URLs. Many
> newsreaders let you click on them. If not, you just cut/paste
> it into a browser (with a shellscript a couple lines long, you
> can start firefox with the URL on the X clipboard with a single
>
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
> Now it's really time to close this thread.
I suspect this will fall of deaf ears, but I have to mention that you
do not get to "close threads" on Usenet. You can excuse yourself from
this one and stop replying to comments, but you don't get to
unilate
"BrainDead" <[EMAIL PROTECTED]> writes:
> I believe that you are wasting your time. Looking at your email
> address, this may well be relevant.
[ 4-line URL snipped ]
Thanks for the historical reference. Please consider a visit to
tinyurl.com before posting a monster like that... :^)
Nick
--
"news.sydney.pipenetworks.com" <[EMAIL PROTECTED]> writes:
> I'm sure theres got to be a few copy cats in those 12 though.
Those that don't come up with original answers alter the existing
ones a bit and call it their own.
> Does that mean you just haven't had time to finish ? or you have been
>
"news.sydney.pipenetworks.com" <[EMAIL PROTECTED]> writes:
> I always wished computer science was more engineering then
> philosophy. That way there'd always be an obvious answer.
You don't have a lot of experience with philosophers, do you?
Most of them are quite willing to go on at great lengt
Ilias Lazaridis <[EMAIL PROTECTED]> writes:
> This thread proofs simply the inability of this community [1] to focus
> on a simple essence.
Many communities extend a sort of "provisional membership" to new
arrivals, and grant newcomers the same respect and courtesy that
established members reciev
"news.sydney.pipenetworks.com" <[EMAIL PROTECTED]> writes:
> Really ? Then why are you using python.
Try "import this" at a Python prompt. I didn't invent "Explicit is
better than implicit."
> Python or most dynamic languages are are so great because of their
> common sense towards the "implicit
Leo Breebaart <[EMAIL PROTECTED]> writes:
> That suggests
> to me an "obvious default" of the kind that exists elsewhere in
> Python as well.
I feel pretty much the opposite... If a non-string-type has managed to
get into my list-of-strings, then something has gone wrong and I would
like to know
Grumman <[EMAIL PROTECTED]> writes:
> If running on a Mac really is a goal, ditch Access, its windows
> only. You'd want to look into MySQL, PostgreSQl or some such for
> inter-platform use.
Depending on how large the dataset is likely to get, SQLite may be
a good choice for the data-handling bac
"Xah Lee" <[EMAIL PROTECTED]> writes:
> is it possible to write python code without any indentation?
Not if Turing-completeness is something you desire.
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjt
"John M. Gabriele" <[EMAIL PROTECTED]> writes:
> At some point during some dingy job in the back boiler room
> of Unix, would you find yourself saying, "geez, I'd wish I
> started this with Perl -- Python just isn't cutting it." ?
Sometimes I have to write a quick script in Perl because Python is
[EMAIL PROTECTED] (Aahz) writes:
> It's kind of like having a guy who juggles chainsaws wearing body armor
> arguing with a guy who juggles rubber chickens wearing a T-shirt about who's
> in more danger." --Roy Smith, c.l.py, 2004.05.23
If it's Nethack, the guy in the T-shirt is in more danger
"Matt" <[EMAIL PROTECTED]> writes:
> Not to be nit-picky, but you got some issues here ;-). Never forget
> the importance of "self"!
Teach me to post untested code. *hangs head*
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+c
Here's my Monty Pythonic answer:
## cut here
class Viking():
def __init__():
pass
def order():
return 'Spam'
# this is one viking making one order repeated 511 times. if you want
# 511 vikings making seperate orders, you'll have to write a loop.
v = Viking()
orders = [
"AkioIto" <[EMAIL PROTECTED]> writes:
> Look at http://www.pspad.com/en/index.html.
Thanks for the tip, looks perfect for the flash memory toolkit, since
it can just run from the directory it was unpacked into.
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a p
Arich Chanachai <[EMAIL PROTECTED]> writes:
> He should just build around a linux core or use OS kit (if he is
> serious/determined).
There's Ubuntu Linux, a Debian-based distro with commercial backing
and a regular release schedule. One of the neat things about Ubuntu is
that Python use is encou
[EMAIL PROTECTED] writes:
> Can somebody there to point me any good commercial applications
> developed using python ?
Python is used in several games, including Temple of Elemental Evil
and the forthcoming Civilization 4. Humungous Games, which makes
software for children, is also using Python.
Doug Holton <[EMAIL PROTECTED]> writes:
> I never did any such thing.
So it wasn't you that posted the following?
> This is comp.lang.python, not comp.lang.logo. Please refrain from
> discussing topics not related to CPython.
Someone must be spoofing you, then. Or you're working towards a care
Doug Holton <[EMAIL PROTECTED]> writes:
> If you can't accept free speech and different perspectives, you're
> going to be disappointed. But please do not react by trying to
> intimidate and troll others here.
Weren't you the one telling the rest of us what's appropriate for this
group? Maybe yo
"EP" <[EMAIL PROTECTED]> writes:
> (what is the mascot for C++?)
I can't seem to find a goatse link... (But I didn't try very hard.)
Nick
--
# sigmask || 0.2 || 20030107 || public domain || feed this to a python
print reduce(lambda x,y:x+chr(ord(y)-1),' Ojdl!Wbshjti!=obwAcboefstobudi/
km <[EMAIL PROTECTED]> writes:
> is there a debian binary of python2.4 ?
root# apt-get update
root# apt-cache search python2.4
idle-python2.4 - An IDE for Python (v2.4) using Tkinter
python2.4 - An interactive high-level object-oriented language (version 2.4)
python2.4-dev - Header files and a
32 matches
Mail list logo