rm wrote:
Doug Holton wrote:
rm wrote:
this implementation of their idea. But I'd love to see a generic,
pythonic data format.
That's a good idea. But really Python is already close to that. A
lot of times it is easier to just write out a python dictionary than
using a DB or XML or whatever
Fredrik Lundh wrote:
A.M. Kuchling wrote:
IMHO that's a bit extreme. Specifications are written to be detailed, so
consequently they're torture to read. Seen the ReStructured Text spec
lately?
I've read many specs; YAML (both the spec and the format) is easily
among the worst ten-or-so specs
Fredrik Lundh wrote:
and trust me, when things are hard to get right for developers, users will
suffer too.
That is exactly why YAML can be improved. But XML proves that getting
it right for developers has little to do with getting it right for
users (or for saving bandwidth). What's right for
rm wrote:
this implementation of their idea. But I'd love to see a generic,
pythonic data format.
That's a good idea. But really Python is already close to that. A lot
of times it is easier to just write out a python dictionary than using a
DB or XML or whatever. Python is already close to
Peter Hansen wrote:
Good question. The point is that an XML document is sometimes
a file, sometimes a record in a relational database, sometimes an
object delivered by an Object Request Broker, and sometimes a
stream of bytes arriving at a network socket.
These can all be described
Steve Holden wrote:
Yet again I will interject that XML was only ever intended to be wriiten
by programs. Hence its moronic stupidity and excellent uniformity.
Neither was HTML, neither were URLs, neither were many things used the
way they were intended. YAML, however, is specifically designed
You might like programming in XML then: http://www.meta-language.net/
Actually, the samples are hard to find, they are here:
http://www.meta-language.net/sample.html
Programming in XML makes Perl and PHP look like the cleanest languages
ever invented.
--
Baza wrote:
I'm looking for any books or on-line resources on game programming using
Python. Does anyone have any advice?
See http://pygame.org/
There is also a book called Game Programming with Python.
--
http://mail.python.org/mailman/listinfo/python-list
Bob Swerdlow wrote:
Anyone have opinions about whether we will be better off using PythonNet or
wxPython for the GUI layer of our application on Windows? Our code is all
Python and is now running on Mac OS X with PyObjC and Cocoa, which works
very well. Our goal is not necessarily to move to
Rolf Magnus wrote:
Hi,
I would like to embed a python interpreter within a program, but since that
program would be able to automatically download scripts from the internet,
I'd like to run those in a restricted environment, which basically means
that I want to allow only a specific set of modules
BOOGIEMAN wrote:
Thanks all for very detailed answers. BTW I tried this one but it seems
that it doesn't use VS'es visual designer. Also it doesn't have build
option so it is basicly only usefull to higlight Python syntax.
Active Sate Komodo looks like much better choice
I don't know of any python
Istvan Albert wrote:
But if python
were to become overly complicated I'll find something else.
Three years ago I have not not used python at all, now I'm
using it for everything.
You're in luck, python 2.4 won't be significantly changing anytime soon.
PS. why can't decorators solve this optional
Istvan Albert wrote:
Doug Holton wrote:
application is so important that I expect Python 3000 will have
optional type declarations integrated into the argument list.
I think that *optional* part of the optional type declaration
is a myth.
It may be optional in the sense that the language
BOOGIEMAN wrote:
Thanks everybody, I downloaded latest windows version and
Python-Docs-2.4 archive. Is that enough for absolute beginner.
Is there any e-book, step by step guide ... etc for download,
or anything else important what I have to know before I start
learning Python ?
The main thing I
Steven Bethard wrote:
Simo Melenius wrote:
map (def x:
if foo (x):
return baz_1 (x)
elif bar (x):
return baz_2 (x)
else:
global hab
hab.append (x)
return baz_3 (hab),
[1,2,3,4,5,6])
I think this would
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
[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 not
[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
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 not
Stephen Waterbury wrote:
Luis M. Gonzalez wrote:
Amyway, I wouldn't want to use this list to talk about Boo, because I
think that the best place to do it is comp.lang.boo.
However, since I think it is definetely python related (I know you
disagree, but others don't) I see no harm in mentioning it
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 :-)
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 it and let it die a quick death?
It's amazing how
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.
I agree with your point, although Hans Nowak and others may not.
Anything
Nick Vargish wrote:
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
Fredrik Lundh wrote:
have you harrassed a Pythoneer today?
/F
Yes, you have. I'll ask again that you stop. Just because you make a
living in part off of a CPython module, doesn't mean we cannot discuss
python-related things on this list, or discuss things from the
perspective of a python
Hans Nowak wrote:
Now you're trying to make it seem like I am against free speech on this
list, and against people's rights to discuss whatever they want. I
never said that, and I in fact enjoy the fact that c.l.py posters are an
eclectic bunch who have knowledge of, and like to talk about, a
Hans Nowak wrote:
You said that boo should not be mentioned on this newsgroup.
Please point me to the post where I said that. Since everything is
stored in Google Groups, it should be easy for you to come up with an
URL... if such a post existed.
Quote:
this is comp.lang.python, not
Hans Nowak wrote:
Quote:
this is comp.lang.python, not comp.lang.boo.
Which is obviously not the same as Boo should not be mentioned on this
newsgroup.
I used the exact same phrase in another note except using the term
logo instead of boo, and that is the exact interpretation I
immediately
Hans Nowak wrote:
The discussion with Logo and other languages in it was off-topic too,
but it wasn't offensive to anyone.
I'm not going to dignify that or the rest of your note with a response.
No, by all means, let's ignore any pieces of a post that might lead to
constructive discussion.
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.
--
This book is due to be published any day now:
Introduction to computing and programming with Python: A Multimedia
Approach by Mark Guzdial, a CS professor at Georgia Tech.
It uses the Jython Environment for Students (JES). You can use this to
for example work with and manipulate images or
Peter Hansen wrote:
Doug Holton wrote:
Peter Hansen wrote:
Virtually identical indeed. :-)
As noted on the website that I've pointed out to you multiple times
now, the syntax of boo is indeed virtually identical to python. The
functionality however, is more like C#.
Sadly your second post
Fredrik Lundh wrote:
ask yourself if that thing you read really was a vicious attack by bunch of
nasty
trolls, or if, perhaps, you missed the point.
You still do not even acknowledge your behavior then? If it is your
wish that I never mention boo again, then I will not, even though you
and not
Istvan Albert wrote:
Doug Holton wrote:
the syntax of boo is indeed virtually identical to python.
All that boo does is borrows a few syntactical constructs
from python. Calling it virtually identical
is *very* misleading.
The syntax is indeed virtually identical to python. You are yet another
David Wurmfeld wrote:
I am new to python; any insight on the following would be appreciated,
even if it is the admonition to RTFM (as long as you can direct me to
a relevant FM)
Is there a standard approach to enumerated types? I could create a
dictionary with a linear set of keys, but isn't
Doug Holton wrote:
Noam Raphael wrote:
even in the best solution that I know of,
there's now way to check if a subclass has implemented all the
required methods without running it and testing if it works.
I think there are some solutions like PyProtocols, see section 2.2 on
this page: http
Doug Holton wrote:
Steven Bethard wrote:
I don't really have a good solution; despite the unnecessarily vicious
comments, I don't feel like I can set my newsreader to ignore messages
from, for example, Fredrik, because his answers, when not attacks, are
often very insightful. If you find
Hans Nowak wrote:
Regardless of the merits of Boo, this is comp.lang.python, not
comp.lang.boo. The language may *look* like Python, but its inner
workings are nothing like Python, as several people have correctly
pointed out now. (Just like Java's syntax may look like C or C++ in
some
Jim Hill wrote:
Is there a way to produce a very long multiline string of output with
variables' values inserted without having to resort to this wacky
v = %s%(variable)
No, it is currently not possible in Python without the hacks you have
seen already. Python is long overdue for simpler string
Bengt Richter wrote:
variable1 = 1
variable2 = 2
s =
v = ${variable1}
v2's value is: ${variable2}
However, Python 3.0 is likely years away. If you want to know how to
run code like this today, consult Fredrik Lundh.
Or replace ${...} with equally simple %(...)s in the above and be happy
Fredrik Lundh trolled:
(I think you could create some kind of drinking game based on the number of
...times the nasty trolls pounce on this list?
No, I think the idea is to actually address the content of someone's
question, politely and in the *holiday spirit*, not spirits.
--
[EMAIL PROTECTED] wrote:
Hi,
I know that i can do readline() from a file object.
However, how can I read till a specific seperator?
for exmple,
if my files are
name
profession
id
#
name2
profession3
id2
I would like to read this file as a record.
I can do this in perl by defining a record
Jim Hill wrote:
Is there a way to produce a very long multiline string of output with
variables' values inserted without having to resort to this wacky
v = %s%(variable)
No, not without the god-awful hacks you've already seen.
But it is possible in boo: : http://boo.codehaus.org/
See
Gezer Punta wrote:
hi all
I am looking for a forum which was produced by python
If you want Zope-based, try Plone. But probably you don't.
I am not aware of any standard python CGI-based forum software, but I am
sure you could find one if you search sourceforge or google.
I am surprised no one
Jp Calderone wrote:
Part of fostering a friendly environment on python-list is not making
comments like these.
Another part is actually answering the content of a person's question
like I did, instead of trolling and flaming, like Fredrik and others
here are want to do.
--
Peter Hansen wrote:
Why? If it's virtually identical, why would anyone bother even
visiting that site? ;-)
But I suspect you mean that the syntax of the language is virtually
identical, while probably there are some significant differences.
Maybe in the richness of its standard library? Or the
Peter Hansen wrote:
Virtually identical indeed. :-)
As noted on the website that I've pointed out to you multiple times now,
the syntax of boo is indeed virtually identical to python. The
functionality however, is more like C#.
--
http://mail.python.org/mailman/listinfo/python-list
Peter Hansen wrote:
None of which in any way invalidates Jp's point...
Neither does it invalidate mine. What is up with the trollers today?
They are out in force now that the holidays are here.
--
http://mail.python.org/mailman/listinfo/python-list
This book is due to be published any day now:
Introduction to computing and programming with Python: A Multimedia
Approach by Mark Guzdial, a CS professor at Georgia Tech.
It uses the Jython Environment for Students (JES). It is completely
free and open source. You can use it for example to
Steven Bethard wrote:
Doug Holton wrote:
Fredrik Lundh wrote:
well, since I'm not in the ego-stroking business, what if I promise
never to reply to posts by you, robert, and alex?
That's not fair to the rest of us though :)
That's not even fair to the non-rest of us. =) As I noted, his answers
Jason Zheng wrote:
I'm wondering why python still has limited lambda support. What's
stopping the developers of python to support more lisp-like lambda
function?
See boo and its support for closures: http://boo.codehaus.org/
http://boo.codehaus.org/Closures
It works with def or do, or
abisofile wrote:
hi
I'm new to programming.I've try a little BASIC so I want ask since
Python is also interpreted lang if it's similar to BASIC.
Which BASIC did you try? Realbasic? Visual Basic?
You should check out some of these beginner's python tutorials:
Esmail Bonakdarian wrote:
First of all, I *really* like Python ;-)
I need some help with the graphical side of things. I would like to do
some basic graphics with Python, but I am not sure what the best/most
effective way for me to do what I want.
Basically, I would like to be able to create some
Petr Prikryl wrote:
Hi,
Summary: In my opinion, the C-like prefix
increment and decrement operators (++i and --i)
should be marked as syntax error.
We have a patch for increment and decrement operators in boo (
http://boo.codehaus.org/ ), along with an operator overloading syntax
like below.
Chris wrote:
Okay, color me stupid, but what is everyone referencing when they
mention Python 3.0? I didn't see any mention of it on the Python site.
http://www.python.org/moin/Python3.0
has more information than the PEP 3000, plus you can contribute to the page.
--
Phd wrote:
Hi,
I'm using python 2.2, I want to import a module by referring to its
relative location. The reason for this is that there is another module
with the same name that's already in pythonpath( not my decision, but I
got to work around it, bummer). So is there any easy way to do it?
Tom Locke wrote:
Hi,
Anyone know of a good hosting company that offers both server-side
Python and a subversion repository?
With user-mode linux hosting you can have your own virtual root system
with which you can run whatever python stuff you want as well as
subversion or other server
gmduncan wrote:
Maybe a time for a new discussion group along that suggested
by the Subject line ?
http://mail.python.org/mailman/listinfo/tutor
Or is their increasing presence here a price we must pay for their
belated recognition of this wonderful language ?
Don't forget the price we pay for not
58 matches
Mail list logo