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 o
Fredrik Lundh wrote:
Daniel Bickett wrote:
I believe Sam was talking about "frozen" python scripts using tools
such as py2exe:
oh, you mean that "python compiler" didn't mean "the python compiler".
I wouldn't assume a novice uses terms the same way you would. It was
quite clear from his message
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.
--
http://mail.python.org/mailman/listinfo/pyt
Daniel Bickett wrote:
In my (brief) experience with YAML, it seemed like there were several
different ways of doing things, and I saw this as one of it's failures
(since we're all comparing it to XML). However I maintain, in spite of
all of that, that it can easily boil down to the fact that, for
s
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 t
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 a
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 YA
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 fo
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 I'
vegetax wrote:
In the other hand, with the recent changes in java 5 i can pythonize
java,
Have you seen Jython? http://www.jython.org/
It may be the best option for you. It will run just as fast as a
regular java program. Also there is groovy: http://groovy.codehaus.org/
--
http://mail.python.or
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 a
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
Alan Gauld wrote:
GvR has commented that he want to get rid of the lambda keyword for Python 3.0.
Getting rid of lambda seems like a worthy goal,
Can I ask what the objection to lambda is?
1) Is it the syntax?
2) Is it the limitation to a single expression?
3) Is it the word itself?
I can symp
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 pytho
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 th
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 ty
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 wo
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
[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
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:
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
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 m
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
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
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 h
Peter Hansen wrote:
Luis M. Gonzalez wrote:
As far as I could see, everythime the word "boo" is typed, some sort of
censorship or plain bashing comes up, and I think this is not fair.
I think doing this by defending Doug's postings, however, might weaken
the strength of your position just a little.
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
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
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.
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
immedi
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 comp.lan
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 g
Fredrik Lundh wrote:
"have you harrassed a Pythoneer today?"
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 user
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
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 rela
Mike Meyer wrote:
Logo (my pick) has been called "Lisp without the parenthesis". It has
the advantage of using standard algebraic notation for formulas,
instead of operator post or pre.
This is comp.lang.python, not comp.lang.logo. Please refrain from
discussing topics not related to CPyt
Mike Meyer wrote:
Personally, I'd love a language feature that let you create a function
that didn't evaluate arguments until they were actually used - lazy
evaluation. That lets you write the C ?: operator as a function, for
a start.
Hmmm. No, iterators can't be used to fake it. Oh well.
That is a
Michael Hoffman wrote:
Gregor Horvath wrote:
> Or make any given standard python object accessible from MS Excel in 2
> minutes.
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
xlApp.Visible = 1
xlApp.Workbooks.Add()
xlApp.ActiveSheet.Cells(1,1).Value = 'Python Rules!'
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 ha
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 st
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 areas,
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
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:
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 t
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".
Let me rephrase my answer.
This is a good sugestion for Python 3.0, a.k.a. Python 3000:
http://www.python.org/cgi-bin/moinmoin/Python3.0
In the fut
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
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
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 y
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. =) A
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
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
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
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 a good solution to this p
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 s
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.
--
http://mail.python.
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 e
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 http://b
Fredrik Lundh wrote:
If you find a good solution to this problem, please let me know.
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 :)
--
http://mail.python.org/mailman/listinfo/python
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 th
[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 seperator
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.
--
http://mail.python.
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://www.python.org/cgi-b
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 single-
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:
http://www.honors.montana.edu/~jjc/e
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 b
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.
--
http://mail.python.org/mailman
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. S
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?
imp
Michele Simionato wrote:
Suppose I want to write a book with many authors via the Web. The book has
a hierarchical structure with chapter, sections, subsections, subsubsections,
etc. At each moment it must be possible to print the current version of the
book in PDF format. There must be automati
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
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 processes
72 matches
Mail list logo