RE: PythonWin Not Updating

2004-12-14 Thread Robert Brewer
cs.python.org/lib/built-in-funcs.html Otherwise, you'll have to explain a bit more--that's my best guess as to what your issue is. Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Dejavu 1.2.6, a Python ORM

2004-12-15 Thread Robert Brewer
red. Dejavu welcomes your use and feedback as an application developer. Dejavu also welcomes framework developers. New code for additional Storage Managers, analysis tools, will be gladly reviewed for inclusion in future releases. Drop me an email if you feel so inclined. Robert Brewer MIS Am

Re: Is Python good for graphics?

2004-12-15 Thread Robert Kern
itory, but it's fairly stable. http://svn.enthought.com/svn/enthought/branches/converge/kiva/ -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

RE: Why no list heritable type?

2004-12-16 Thread Robert Brewer
James Stroud wrote: > The thread "why not arrays" got me thinking. I would really > like to inherit > from a list so that I can add methods based on its contents, > say if I filled > it with a type of object and wanted to iterate over all > objects. I have built > a wrapper around a list like

Potential improvement on delegation via explicit calls and super

2004-12-17 Thread Robert Dick
ably ways to make its use more intuitive, but I'm new to the language so I don't know the tricks yet. Thanks for any tips, -Robert Dick- '''See the example at the bottom.''' import inspect def flatten_tree(tree): '''Flatten a tree repr

RE: Cool object trick

2004-12-17 Thread Robert Brewer
#x27;m naively guessing you've got a typo. Feel free to correct me. ;) >>> class struct(object): ... def __init__(self, **kwargs): ... self.__dict__.update(kwargs) ... >>> var = "varA" >>> obj = struct(**{str(var): "Hello&qu

RE: Troubleshooting: re.finditer() creates object even when nomatch found

2004-12-17 Thread Robert Brewer
Chris Lasher wrote: > That's odd that there's no built-in method to do this. It seems like > it would be a common task. Is there any way to request a feature like > this from the RE module keepers, whomever they may be? The best way to request such a feature would be to write a patch. ;) FuManCh

RE: expression form of one-to-many dict?

2004-12-17 Thread Robert Brewer
t.""" try: return dict.__getitem__(self, key) except KeyError: return [] def iterchains(self): """C.iterchains() -> an iterator over the (key, chain) pairs of C.""" return dict.iteritems(self) ...the one-liners flow effortlessly. ;) Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: Tibia 0.1 DOM-based website editor

2004-12-10 Thread Robert Brewer
e line "AddHandler cgi-script .tba" to your httpd.conf. You may wish to limit this to a Directory section. 2. Edit tibia.tba and replace all occurrences of "tibia.tba" with "tibia.cgi". 3. Use mod_python, which would allow you to call tibia.py from your site-package

CGI zombies with Apache 1.3 on Linux

2004-12-10 Thread Robert Brewer
print "Content-type: %s\n" % app.content_type print "".join(app.output) if __name__ == '__main__': cgi_handler() Should I be explicitly closing stdout at the end of cgi_handler()? I don't get a zombie with every request. Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: Tibia 0.1 DOM-based website editor

2004-12-10 Thread Robert Brewer
Gabriel Cooper wrote: > Robert Brewer wrote: > > >I assume you're using the demo? My copy of Firefox has an > error browser > >under Tools->Javascript Console. Does the double-click > report any error > >there? Make sure you clear the list before try

RE: Cool object trick

2004-12-18 Thread Robert Brewer
Bengt Richter wrote: > >>> m=type('',(),{})() > >>> m.title = 'not so fast ;-)' > >>> m.title > 'not so fast ;-)' Now THAT is a cool object trick. :) FuManChu -- http://mail.python.org/mailman/listinfo/python-list

RE: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-19 Thread Robert Brewer
answers, when not > attacks, are often very insightful. If you find a > good solution to this problem, please let me know. Wait; you mean there *isn't* a technological solution to every social issue? Bah. Guess I'll quit IT and go into marketing after all. ;) Robert Brewer MIS

RE: atmosphere on c.l.py (WAS: How about "pure virtual methods"?)

2004-12-19 Thread Robert Brewer
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? ?? I'll take your replies anytime. You're a long way from all noise and no signal. I'm happy to learn what I can from

RE: type method-wrapper?

2004-12-20 Thread Robert Brewer
/* ob_size */ "method-wrapper", /* tp_name */ Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: sql server support from linux

2004-12-21 Thread Robert Brewer
DB-API wrappers running on Win2k, how about doing that locally and then writing a quickie socket server which your linux client can connect to? Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: Metaclasses

2004-12-22 Thread Robert Brewer
attach methods to instances of API, then just do it in API.__init__(): class API(object): def __init__(self, keyring): for name, method in capabilities(keyring).iteritems(): setattr(self, name, method) Can you show us some code? <:) Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: Metaclasses

2004-12-22 Thread Robert Brewer
be to immediately follow your API class definition with a call like: from myframework import captools class API(object): def foo(): pass captools.enable(API) ...the choice comes down IMO to what you think will be the most usable/maintainable by those who follow you. Rob

Re: PHP vs. Python

2004-12-22 Thread Robert Kern
Paul Rubin wrote: JZ <[EMAIL PROTECTED]> writes: But pure speed is not the all. Python can scale better, If a system is fast enough on a single processor, it doesn't need to scale. I think he means, "scale to larger programs," not "scale to more processors." -- Ro

RE: Metaclasses

2004-12-23 Thread Robert Brewer
Bob Cowdery wrote: > Thanks for your help Robert. I'm still not > understanding what I am seeing. I've forgotten > about the objective for the moment. I just want > to understand metaclasses. All right; then I'll skip the speech about how metaclasses are not the s

RE: Lambda going out of fashion

2004-12-23 Thread Robert Brewer
#x27;function as expression' look like? Or simply: accepts_func( (f(a) + o(b) - o(c) for a, b, c) ) ...but that would give whomever writes the parser a headache. ;) Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

RE: Lambda going out of fashion

2004-12-23 Thread Robert Brewer
ambdas. That's been the only serious use case I've had for lambdas: a way to have an Expression object, in effect. If we had a more rigorous syntax specifically for first-class expressions, lambda could go away forever in my book. Robert Brewer MIS Amor Ministries [EMAIL PROTECTED]

Re: Koolaid (was Re: Optional Static Typing)

2004-12-24 Thread Robert Kern
spy.com/words/drinktheKool-Aid.asp """ Notes: This phrase comes from the 1978 "Jonestown massacre" in which members of the Peoples Temple cult committed suicide by drinking cyanide-laced Kool-Aid (although some say the drink of choice was actually Flav-R-Aid). "

Re: Complementary language?

2004-12-25 Thread Robert Kern
ommendation: Learn Python and a language that complements it *pedagogically*. When you are fluent in Python and encounter a problem where you want to, for example, use a library written in C, then learn some C. [1] http://dirtsimple.org/2004/11/generic-functions-have-landed.html [2] http://www.gi

Re: Optional Static Typing

2004-12-25 Thread Robert Kern
ject". Being able to supply more information about types helps Starkiller keep the inferences tight and specific. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Features for a Python package manager?

2004-12-25 Thread Robert Kern
re, but I don't think Portage does, yet. OTOH, it's Gentoo, so it wouldn't surprise me, either. :-) -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Jython & IronPython Under Active Development?

2004-12-25 Thread Robert Kern
stead of reaching v1.0 It should be noted that Jim Hugunin no longer works on Jython although he did start the project (possibly with others, I'm not sure). -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die."

Re: Features for a Python package manager?

2004-12-26 Thread Robert Kern
Georg Brandl wrote: Robert Kern wrote: Mike Meyer wrote: Nick Coghlan <[EMAIL PROTECTED]> writes: I don't know enough about Portage to answer that question. I do know any package manager which made it into the standard distribution would need to work for at least the big three platfor

Re: Optional Static Typing

2004-12-26 Thread Robert Kern
Luis M. Gonzalez wrote: Robert Kern wrote: Automatic type inferencing is great, but sometimes the inference is "object". Being able to supply more information about types helps Starkiller keep the inferences tight and specific. Hmm... I'm not an expert in this subject at all, b

Re: Optional Static Typing

2004-12-27 Thread Robert Kern
Luis M. Gonzalez wrote: Robert Kern wrote: Starkiller, at least, can deal with cases where a variable might be one of a set of types and generates code for each of this set. Explicit type declarations can help keep these sets small and reduces the number of times that Starkiller needs to fall

Re: what would you like to see in a 2nd edition Nutshell?

2004-12-29 Thread Robert Kern
r libraries, etc.). I think that the core lessons such a person is going to learn from a numarray section of your book will transfer just fine to Numeric if they are careful. If they're not careful, a book isn't going to keep them from shooting themselves in the foot, anyways.

Re: missing? dictionary methods

2005-03-21 Thread Robert Kern
else: dct[key] = value def make(dct, key, value): if key in dct: raise KeyError('%r already in dict' % key) else: dct[key] = value I don't see a good reason to make these built in to dict type. -- Robert Kern [EMAIL PROTECTED] "In the fields of he

Re: missing? dictionary methods

2005-03-21 Thread Robert Kern
down to how often such constructs are used. I don't think that I've ever run into use cases for safeset() and make(). dct.get(key, default) comes up *a lot*, and in places where speed can matter. Searching through the standard library can give you an idea how often. -- Robert Kern [EMAIL

Re: Begniner Question

2005-03-21 Thread Robert Kern
t;) if int(choice)==1: print "Here" else: pass if int(choice)==2: else: pass You need something between the if: and the else: lines. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: recursive method not reaching base case

2005-03-23 Thread Robert Kern
rval() keeps getting called over and over again with self.reps == 3. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: IronPython 0.7 released!

2005-03-24 Thread Robert Kern
February so was looking for some recent back and forth. Jim has a predilection towards keeping mum for a while so he can make big announcements at his conference talks. Once you know that about his character, the rest falls into place. -- Robert Kern [EMAIL PROTECTED] "In the fields of

Re: newbie help

2005-03-24 Thread Robert Kern
smart-questions.html Please do yourself and us a favor: take a break from the newsgroup for a while, and spend some quality time with the documentation. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die.&quo

Re: Version Number Comparison Function

2005-03-25 Thread Robert Kern
lass or a string (which will be parsed to an instance of the same class, thus must follow the same rules) -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Version Number Comparison Function

2005-03-25 Thread Robert Kern
tutils seems like it would be the most generic and supported way to compare version numbers. Indeed. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Grouping code by indentation - feature or ******?

2005-03-25 Thread Robert Kern
e ABC, which Guido worked on before developing Python and also used indentation for grouping, it was found that the colon improved readability. I don't know what those studies said about the frequency of people forgetting to put in the colon. Anecdotally, I can say that I do it very rarely.

Re: str vs dict API size (was 'Re: left padding zeroes on a string...')

2005-03-25 Thread Robert Kern
and plenty of good reasons for them to be more restrictive now. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Python List Issue

2005-03-27 Thread Robert Kern
ferenced when you do bob[:]. This is expected. See copy.deepcopy(). It will make sure that everything gets copied and nothing just referenced (more or less). http://docs.python.org/lib/module-copy.html -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are

Re: list-comprehension and map question (simple)

2005-03-28 Thread Robert Kern
itertools [x+y for x,y in itertools.izip(xs, ys)] -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling __init__ with multiple inheritance

2005-03-28 Thread Robert Dick
nd problems with the approach, I hope it becomes standard. I found it distracting that python's default argument passing approach conflicts with its default delegation approach. Good luck, -Robert Dick- -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray newbie question

2005-03-28 Thread Robert Kern
u:81/scipy_base/vectorize/ -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Numarray newbie question

2005-03-29 Thread Robert Kern
ChinStrap wrote: Are there no windows binaries for SciPy for python 2.4 yet? I try to run the installer and it complains that it can't find python 2.3. No, not yet. Besides that, vectorize is exactly what i want. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass

Re: Ternary Operator in Python

2005-04-01 Thread Robert Kern
(0.0 < a) < 1.0) < b ) < 2.0 Go on. Try it with a bunch of different values. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about the Python Cookbook: How much of this is new?

2005-04-03 Thread Robert Kern
ially more currently relevant recipes and information in roughtly the same amount of space. Trent """ So yeah, buy it. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: distutils

2005-04-04 Thread Robert Kern
lled Any advice ? I assume that you are on Linux or FreeBSD or somesuch. Install the Python development package for your system. It usually has a name like python-dev or python-devel. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of d

Re: Question about Enthought python distribution

2005-04-04 Thread Robert Kern
ase a 2.4-based version for some time. They use this distribution as the base for the software they write for their clients, and they don't have current intentions to develop against 2.4 quite yet. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Ar

Re: Status of Chaco?

2005-04-04 Thread Robert Kern
anonymous read-access. You can ask Eric Jones for the address. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Python modules for image / map manipulation?

2005-04-04 Thread Robert Kern
at contains a binding for the PROJ.4 library, but I haven't gotten it to work on my Mac. http://matplotlib.sourceforge.net/toolkits.html http://sourceforge.net/project/showfiles.php?group_id=80706&package_id=142792 -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where th

Re: Python modules for image / map manipulation?

2005-04-04 Thread Robert Kern
Robert Kern wrote: I use PROJ.4 via pipes for cartographic projections. http://proj.maptools.org/ There is an addon to the matplotlib plotting library that contains a binding for the PROJ.4 library, but I haven't gotten it to work on my Mac. http://matplotlib.sourceforge.net/toolkits

RE: Web application toolkit recommendation?

2005-04-04 Thread Robert Brewer
called Dejavu (http://www.aminus.org/rbre/python/) which needs more use cases ;) Or is there something special about webapps which you feel requires a database module to be integrated with the app framework? Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: numarray.array can be VERY slow

2005-04-10 Thread Robert Kern
col. So you might as well have used list of lists of lists of lists. See the function setArrayFromSequence in libnumarraymodule.c . If you wish to fix this behavior, I'm sure that a patch would be welcomed. Further questions should probably go to the numarray mailing list. -- Robert Kern [E

Re: Thoughts on some stdlib modules

2005-04-10 Thread Robert Kern
load.enthought.com/MacEnthon/ReadMe.html http://download.enthought.com/MacEnthon/MacEnthon-0.1.dmg Linux: TBA -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on some stdlib modules

2005-04-10 Thread Robert Kern
ge management on the platforms that you care about, it doesn't matter what is or isn't in the standard distribution. Hopefully, one of the CPyAN dreams will actually pan out. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the g

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Fredrik Lundh wrote: Robert Kern wrote: (the Linux distributors know how to do this: look for good stuff that's either actively maintained or simple and solid enough to live for a while, make sure the licenses are good enough, bundle the latest and greatest version, ship tested versio

Re: where is python.h? / NumPy installation

2005-04-11 Thread Robert Kern
you can snag a pre-built Numeric from http://pythonmac.org/packages/ -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Skip Montanaro wrote: >> I guess the other thing to compare to is something like SciPy, which >> is a kind of specialized distribution of Python for scientific >> applications. Robert> No, Scipy is just a (large) package. Enthon, on the other hand, R

Re: Thoughts on some stdlib modules

2005-04-11 Thread Robert Kern
Fredrik Lundh wrote: Robert Kern wrote: Agreed, which is why I think that proper package management and a CPyAN-type system is the way to go, not trying to stuff everything into a single distribution. I think we're looking at this in two different ways: you're looking at it from

Re: help: loading binary image data into memory

2005-04-11 Thread Robert Kern
retrbinary("get ???", img.write) ? -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

RE: [perl-python] Python documentation moronicities (continued)

2005-04-12 Thread Robert Brewer
His vitriol should at least warrant a temporary ban. No money need change hands. Top-posting-because-it-wasn't-worth-quoting, Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf

Re: Python license (2.3)

2005-04-12 Thread Robert Kern
does not say so anywhere in the license text. Yes, you can GPL the derived work. The licenses are compatible. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailma

Re: chaco and wx 2.5....

2005-04-12 Thread Robert Kern
Fabio Pliger wrote: anyone know if it's possibile to run chaco with wx 2.5.3 or grater? No, not at this time. Enthought expects that they will have some "conversion days" around summertime to move their codebase to the soon-to-be-released wxPython 2.6. -- Robert Kern [EMAIL PRO

Re: Python license (2.3)

2005-04-12 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-12, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: What licence can I use? Somewhere they say you can combine python code with GPL code. Does that mean that the resulting code has to have both the GPL license as the PSF license, as both seem t

Re: Python license (2.3)

2005-04-13 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Yes, the license text and the copyright notice must be attached. It doesn't mean that the PSF license is the operative one for the derivative work. Why attach a license that is not operative. That doesn&#

Re: Python license (2.3)

2005-04-13 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Yes, the license text and the copyright notice must be attached. It doesn't mean that the PSF license is the operative one fo

Re: numarray.array can be VERY slow

2005-04-13 Thread Robert Kern
rays, he was appending to lists (each only 8 items long, so there really is no significant overhead). See my response in this thread for the answer. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richa

Re: Python license (2.3)

2005-04-14 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Well if it comes so far I have to consult a lawyer I'd rather not publish it in the first place. Then take the (free) advice that you asked for. I'll do that and I appreciate your t

Re: Python license (2.3)

2005-04-14 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: I would do that if I were just writing code I thought others could find usefull. I then would feel no problem "burdening"

Re: Python license (2.3)

2005-04-14 Thread Robert Kern
Antoon Pardon wrote: Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-04-14, Robert Kern schreef <[EMAIL PROTECTED]>: Antoon Pardon wrote: Op 2005-04-13, Robert Kern schreef <[EMAIL PROTECTED]>: I would do that if I were just writing cod

Re: new to mac OS10

2005-04-15 Thread Robert Kern
ary/Framework/Python.framwork -bash: cd: /System/Library/Framework/Python.framwork: No such file or directory ~ $ You misspelt the framework path in both cases. Blasphemy:~ kern$ ls /System/Library/Frameworks/Python.framework/ Headers Python Resources Versions -- Robert Kern [EMAIL PROTECTED] &qu

Re: new to mac OS10

2005-04-16 Thread Robert Kern
not a precise replacement of Apple-installed Python... Bingo. It's not intended to be one. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

RE: pre-PEP: Suite-Based Keywords - syntax proposal

2005-04-16 Thread Robert Brewer
Bengt Richter wrote: > The '::' unary suite operator should return an ordered dict > subtype representing the bindings Why ordered? Robert Brewer MIS Amor Ministries [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: new to mac OS10

2005-04-17 Thread Robert Kern
Maurice LING wrote: Robert Kern wrote: 3. Apple-installed Python's command line tools are symlinked from /usr/bin to /System/Library/Frameworks/Python.framework but the OSX installer for Python 2.4.1 places the commandline tools in /usr/local/bin and symlinked to /Library/Frame

Re: python.exe on Mac OS X!?

2005-04-17 Thread Robert Kern
acPython-OSX-2.4.1-1.dmg -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: python.exe on Mac OS X!?

2005-04-17 Thread Robert Kern
ns of Python on this machine, and as far as I can tell the binary installer overwrites the default installed version. I could be wrong. You are wrong. It installs alongside. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to

RE: pre-PEP: Suite-Based Keywords

2005-04-18 Thread Robert Brewer
'y for g', > foo=lambda: return 'foo for g' ) Which are both prettier, until you actually try to use them: >>> g( *args_from_somewhere, x='x for g', y='y for g', foo=lambda: return 'foo for g' ) Traceback ( File

Re: Can't compile with --enable-shared on MacOSX

2005-04-18 Thread Robert Kern
nto the app bundle when you build it. I think you do want frameworks. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal: an unchanging URL for Python documentation

2005-04-19 Thread Robert Kern
didn't (and was posting to propose that it should exist and behave as it actually does). -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-20 Thread Robert Kern
e (and then uncomment ), what are you doing then? Use comments? -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Troll? was: Re: goto statement

2005-04-20 Thread Robert Kern
ometimes usefull. No, because you said that it was useful for obfuscating code. Obfuscating code is generally not a desirable feature of a language construct. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die.&quo

Re: goto statement

2005-04-20 Thread Robert Kern
Matt Feinstein wrote: On Wed, 20 Apr 2005 10:23:58 +0100 (BST), praba kar <[EMAIL PROTECTED]> wrote: Dear All, In Python what is equivalent to goto statement I'd like to that implemented in an interpreted language. Requires some time travel. Yes, to 2004-04-01. -- Robert Kern [EMAI

Re: Why Python does *SLICING* the way it does??

2005-04-21 Thread Robert Kern
20)" and get a 3-based array (I may have the syntax slightly wrong by now). It was useful and took care of this problem. There's nothing that stops you from writing a class that does this. I believe someone posted such a one to this thread. I have yet to see a concrete proposal on how to ma

Re: regarding system function

2005-04-21 Thread Robert Kern
failure). Are you sure about that? In [3]:os.system('cat foo') cat: foo: No such file or directory Out[3]:256 -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.

Re: regarding system function

2005-04-22 Thread Robert Kern
switch for rm. In [4]:os.system('rm -r foo') rm: foo: No such file or directory Out[4]:256 In [5]:os.system('rm -rf foo') Out[5]:0 -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -

Re: Python licence again

2005-04-22 Thread Robert Kern
John Machin wrote: On Fri, 22 Apr 2005 17:26:19 -0700, Robert Kern <[EMAIL PROTECTED]> wrote: While you can, sort of, and people have already pointed out the appropriate web page to you, I ask that you *don't* use the PSF License. The PSF License uses proper nouns that you will have

Re: Python licence again

2005-04-22 Thread Robert Kern
l or Organization ("Licensee") accessing and otherwise using this software ("Python") in source or binary form and its associated documentation." You are neither the PSF nor is your software "Python". -- Robert Kern [EMAIL PROTECTED] "In the fields of hell wher

Re: Variables

2005-04-23 Thread Robert Kern
some other language. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Variables

2005-04-23 Thread Robert Kern
k him what "domain" means in mathematics. And check his answer[1]. While one could argue that using the term "variable" for Python names is incorrect for good programming reasons, your friend's reasoning is ridiculous. [1] http://mathworld.wolfram.com/Domain.html -- Ro

Re: Variables

2005-04-23 Thread Robert Kern
. If you must, http://en.wikipedia.org/wiki/Variable -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/python-list

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Robert Kern wrote: If you must, http://en.wikipedia.org/wiki/Variable Fantastic, wikipedia deals precisely with the difference between variables in mathematics versus programming. However, he would never trust a definition from such an "unreputable" source. I

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Bengt Richter wrote: On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is

Re: Variables

2005-04-24 Thread Robert Kern
Mike Meyer wrote: Robert Kern <[EMAIL PROTECTED]> writes: Could I honestly argue this to him? From what basis do I argue that it is not an equation? It's his responsibility to show that it *is* an equation. x = x + 1 Equation? I think not. I think it is. One equation in one unknown. T

Re: bytecode non-backcompatibility

2005-04-24 Thread Robert Kern
y libraries which can be quite a bit of work... I do hope this problem will be sorted out some day. This problem is mitigated somewhat by the fact that the devs keep binary compatibility within a major revision series (e.g. 2.3.0, 2.3.1, 2.3.2, ...). -- Robert Kern [EMAIL PROTECTED] "In t

Re: Is this a bug?

2005-04-24 Thread Robert Kern
e += is sugar for. In [1]:a = ['hello'] In [2]:a.extend("world") In [3]:a Out[3]:['hello', 'w', 'o', 'r', 'l', 'd'] It's a *good* thing that .extend() takes any iterable without explicit conversion to a li

Re: Is this a bug?

2005-04-24 Thread Robert Kern
yes. But this could certainly be clearer. I don't see how that statement has anything to do with the bug at hand. It's a mistake, but it's been in the wild too long to be changed. Thus, it should be documented. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell wh

Re: What's do list comprehensions do that generator expressions don't?

2005-04-24 Thread Robert Kern
pression if I'm going to require 2.4 anyway? Never. If you really need a list list(x*x for x in xrange(10)) Sadly, we can't remove list comprehensions until 3.0. -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die

Re: What's do list comprehensions do that generator expressions don't?

2005-04-24 Thread Robert Kern
Steven Bethard wrote: Robert Kern wrote: Mike Meyer wrote: Ok, we've added list comprehensions to the language, and seen that they were good. We've added generator expressions to the language, and seen that they were good as well. I'm left a bit confused, though - when would I

<    9   10   11   12   13   14   15   16   17   18   >