John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> John Bokma <[EMAIL PROTECTED]> writes:
>>> Mike Meyer wrote:
>>>> Depends on the problem. If it's one of the things for which Python
>>>> has an obvious solution (sort
John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> John Bokma <[EMAIL PROTECTED]> writes:
>>> Mike Meyer wrote:
>>>> John Bokma <[EMAIL PROTECTED]> writes:
>>>>> Mike Meyer wrote:
>>>>>> Depends on the p
"David Isaac" <[EMAIL PROTECTED]> writes:
>> Alan Isaac wrote:
> I meant something that application users on different platforms can print
> with, not something
> that they could coerce a platform into supporting given enough energy (e.g.,
> via Cygwin).
> The closest to an option so far seems to
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 use a list comp instead
of a generator expression if I'm going to require 2.4 a
jfj <[EMAIL PROTECTED]> writes:
> I think a better question would be "What do *generator expressions* do
> that list comprehensions don't?". And always use list comprehensions
> unless you want the extra bit.
As the OP, I can say why I didn't ask those questions.
Generator expressions don't bui
rbt <[EMAIL PROTECTED]> writes:
> Are there any plans in the near future to support PDF files in Python
> as thoroughly and completely as Perl does?
>
> http://cpan.uwinnipeg.ca/search?query=pdf&mode=dist
Claiming that CPAN represents Perl "supporting" something isn't really
accurate. Those are
"googleboy" <[EMAIL PROTECTED]> writes:
> Hi there.
>
> I am writing a little app tha tI would like to make cross-platform
> (debian, RH, Fedora, Solaris, AIX, etc)
>
> Originally I decided to check what uname returned, as I didn't think it
> mattered beyond the detail of Linux or SunOS etc.
>
> R
[EMAIL PROTECTED] (Cameron Laird) writes:
> In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote:
>>What you should do instead is check on how to use the features you
>>want. If you watch a typical autoconf script, you'll see it groveling
>>
John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>
>> John Bokma <[EMAIL PROTECTED]> writes:
>>> Mike Meyer wrote:
>
> [ snip ]
>
>>> do you really think that for / foreach and things like if / unless
>>> bloat a language pr
John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>
>> John Bokma <[EMAIL PROTECTED]> writes:
> [ unless ]
>> Yeah - unless is a bad idea.
> LOL, because you don't like it?
Oh, come on. You say something, I agree with it, so you remove your
Jeremy Bowers <[EMAIL PROTECTED]> writes:
> On Mon, 25 Apr 2005 23:26:56 +, John Bokma wrote:
>
>> Mike Meyer wrote:
>>
>>> John Bokma <[EMAIL PROTECTED]> writes:
>
> Nobody ever changed their mind as a result of a 20-thread endless
> reply-f
Jeremy Bowers <[EMAIL PROTECTED]> writes:
> On Mon, 25 Apr 2005 16:48:46 -0400, Bill Mill wrote:
> generalizing anyways, which is the right approach. I doubt that Python 3.0
> would have two radically different implementations; they'll just have the
> genexp implementation, and an optimization for
Charles Krug <[EMAIL PROTECTED]> writes:
> I've a function that needs to maintain an ordered sequence between
> calls.
>
> In C or C++, I'd declare the pointer (or collection object) static at
> the function scope.
>
> What's the Pythonic way to do this?
>
> Is there a better solution than putting
[EMAIL PROTECTED] (Bengt Richter) writes:
> On Mon, 25 Apr 2005 16:48:46 -0400, Bill Mill <[EMAIL PROTECTED]> wrote:
>>+1 . I think that we should still have the form [genexp] , but without
>>the dangling variable, and implemented with generator expressions. It
>>seems to me that it is inconsisten
Maurice LING <[EMAIL PROTECTED]> writes:
> I find this part of the story a nuisance, C components in 3rd party
> modules... What are the C components compiled into? What are actually
> "so" files?
Shared object files. They're executable code that can be linked into a
program at runtime. Like DLL'
John Bokma <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>
>> John Bokma <[EMAIL PROTECTED]> writes:
>>> You already showed code like:
>> Actually, I never showed you this code.
> hence *like*, and yes you did, in a footnote.
Yes, but *I* didn't s
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Hello,
>
> I would like to create python processes instead of thread.
> Can anyone give me an example or site which shows a tutorial about how
> to create processes ?
See the os.fork documentation.
http://www.mired.org/home/
s have sped
>> things up, but I do know that if I ever used a module that mucked
>> around with byte codes, I wasn't aware of it - so this is a tradeoff
>> I'm more than happy to make.
>>
>
> Thanks Mike,
>
> My arguments to the developers will be:
&g
Roel Schroeven <[EMAIL PROTECTED]> writes:
> googleboy wrote:
>
>> What this script does is use take the output of vmstat to report idle
>> cpu cycles (or memory stuff, etc.) over a period specified by a
>> parameter, all the better to be a plugin for a monitoring service.
>> Basically it parses
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> Hello,
>
> If I use os.remove(fileName), does it always assure that the code will
> move to the next code only if the fileName is deleted completely?
Hmm. The documdentation doesn't say. A quick test on FreeBSD shows
that if you don't have permiss
"Claudio Grondi" <[EMAIL PROTECTED]> writes:
> From my point of view both, the existing and
> the proposed documentation assume some
> knowledge about regular expressions as
> such, so doesn't really explain, beeing
> limited to showing the syntax of usage.
It's not clear that this belongs in the
Couple notes:
- boost.python issues better discuss in comp.lang.python.c++ group;
- debug your extension from python first, then embed it
- don't call PyFinalize()
zghelp wrote:
but the exception occur when run to "print t.greet()"
How can I solve it?
Providing exception text will b
Jeremy Bowers <[EMAIL PROTECTED]> writes:
> On Tue, 26 Apr 2005 03:40:16 -0700, [EMAIL PROTECTED] wrote:
> os.remove, as the module name implies, tells the OS to do something. I
> would consider an OS that returned from a "remove" call, but still let you
> access that file, highly broken.
Um - n
Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
> On 26 Apr 2005 03:40:16 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> declaimed the following in comp.lang.python:
>
>> Hello Mike,
>> I have to know this topic otherwise my program has to check whether
Maurice LING <[EMAIL PROTECTED]> writes:
>>>5. Unstable bytecodes makes updating to a newer version of Python very
>>>tedious and risk breaking old scripts, if they uses C modules.
>> Unstable bytecodes have nothing to do with these problems. The
>> current CPython installation process puts the py
Maurice LING <[EMAIL PROTECTED]> writes:
> The idea of having to release the program or library as source files
> does ring alarms in many executives in corporate world. Less freezing
> the modules (which renders it platform dependent) or using Jython
> (which is not possible when C extensions are
Roel Schroeven <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>>In that case, it seems to be a better idea to check the version of
>>>vmstat that's on the system. At least, I presume that such differences
>>>in behaviour can be deduced from the vmstat
Jeff Epler <[EMAIL PROTECTED]> writes:
> items = query_param.items()
> keys = [item[0] for item in items]
> values = [item[1] for item in items]
Is there some reason not to do:
keys = query_params.keys()
values = query_params.values()
That would seem to be a lot more obvious a
> 4) I doubt seriously whether God plays a guitar, since guitars are made by
> men, for men. His Son could theoretically play a guitar. Perhaps He does.
> Perhaps He doesn't. Only the Father and His Holy Angels know.
Perlse.
Do you really take this stuf seriously ?
It's like the ancien
ional
solution, which looks like cqqmsxk. (I don't think that spoils the fun :))
3 IS wrong because if you use any not BIG letter after bodyguard on both
sides, you get extra 'eCQQmSXK\n' which slow me down for 5 minutes.
Mike
--
http://mail.python.org/mailman/listinfo/python-list
Tim Peters wrote:
[Mike Rovner]
3 IS wrong because if you use any not BIG letter after bodyguard on both
sides, you get extra 'eCQQmSXK\n' which slow me down for 5 minutes.
Get rid of the newlines first.
On level 7, I'm not sure whether there's something more to do, or
whet
jfj <[EMAIL PROTECTED]> writes:
> /* small program in C in self extracting archive
> */
> if (have_application ("Python")) {
>have_python:
>system ("python.exe my_application.py")
> } else {
>printf ("This software requires python. Wait until all the
> necessary components are being
Maurice LING <[EMAIL PROTECTED]> writes:
>>>Python can then have a built-in mechanism to read the description file
>>>and download the source codes and do the standard "sudo python
>>>setup.py install" to install the library into site-package.
>> I don't like this - it would make Python depend on
There's a metope group for Python in NYC and they have project nights/study
groups. You should check them out.
http://www.meetup.com/nycpython/
On Saturday, October 25, 2014 11:08:31 AM UTC-5, ryguy7272 wrote:
> Are there any Python professionals in or around NYC who can meetup for an
> hour o
t known to be incorrect.
If no disagreements, patch or PEP?
-Mike
--
https://mail.python.org/mailman/listinfo/python-list
twill
> package.
>
>
>
Have a look at selenium and sauce labs:
http://www.seleniumhq.org/
https://saucelabs.com/
Mike
--
https://mail.python.org/mailman/listinfo/python-list
t; in each role (and who isn't).
If this sounds like it could be of value, check out some fo the links below and
give me a call or shoot me an email. I'm here to help.
Mike Zaslavsky
Business Development
Cle
g to be very subjective, but I am still curious
what my fellow Python developers think about this topic.
Thanks,
Mike
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, May 29, 2015 at 11:08:19 AM UTC-5, Joel Goldstick wrote:
> Maybe itertools or generators
>
Yeah, I was thinking along those lines. I was also thinking about some of the
cool stuff in the collections and contextlib modules.
Mike
--
https://mail.python.org/mailman/listinfo/
>
> Good fun! A few ideas:
>
> How to write decorators, particularly those that take parameters.
Yes, this one always seems to trip people up.
>
> The differences between the various number types (int, float, complex,
> Fraction, Decimal) and when you'd want each one.
I hadn't considered t
On Friday, May 29, 2015 at 11:40:11 AM UTC-5, Skip Montanaro wrote:
> On Fri, May 29, 2015 at 11:01 AM, Mike Driscoll wrote:
> > ... I was wondering what the community considers to be "intermediate" or
> > "advanced".
>
> Just about any topic on wh
Hi Steven,
On Friday, May 29, 2015 at 12:55:48 PM UTC-5, Steven D'Aprano wrote:
> On Sat, 30 May 2015 02:01 am, Mike Driscoll wrote:
>
> > Hi,
> >
> > I've been asked on several occasions to write about intermediate or
> > advanced topics in Pytho
Hi Python list admins,
I didn't see a page on etiquette at the info page, so inquiring of you:
Is the Python list an appropriate place to seek a mentor for hire?
I'm new to Python and have been working with Echonest's Remix "music
synthesizer" package.
I may be out of my league with the large
ere instead.
Any ideas what's going wrong, or where I can go from here?
Thanks,
Mike
--
https://mail.python.org/mailman/listinfo/python-list
re...).
Thanks very much!
> From: ian.g.ke...@gmail.com
> Date: Mon, 20 Oct 2014 17:48:23 -0600
> Subject: Re: Simple import in python 3 errors with complaint about bytes
> To: python-list@python.org
>
> On Mon, Oct 20, 2014 at 5:29 PM, Mike Boyle wrote:
>> I'm modifying
can then be uploaded into a database.
One thing I am struggling to get though is the 'return code' that the
is going to be returned after my
atexit handlers have finished. Could anyone tell me how it get at
this!?
Thanks
Mike
--
http://mail.python.org/mailman/listinfo/python-list
to return.
Any help would be gratefully appreciated,
Thanks!
Mike
# simulation_logger.py
import atexit
import sys
import os
import cStringIO
import time
import traceback
import datetime
import inspect
class SimulationRunInfo(object):
def __init
On Sep 27, 4:59 pm, Robert Kern wrote:
> On 9/27/11 9:37 AM, Mike Hull wrote:
>
>
>
>
>
>
>
>
>
> > Hi Giampaolo,
> > Sorry, I didn't explain very clearly.
> > I have a python file, 'simulation_logger.py', (given below)
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>...
>> Well, the hard-core solution is to note that your class doesn't really
>> deal with the type Bar, but deals with a subtype of Bar for which x >
>> 23 in all cases.
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> > "In addition to the full set of methods which operate on the coordinate as
>> > a whole, you can operate on the individual ordinates via instance.x and
>> > instance.y
[EMAIL PROTECTED] (Alex Martelli) writes:
> def setRho(self, rho):
> c = self.fromPolar(rho, self.getTheta())
> self.x, self.y = c.x, c.y
> def setTheta(self, theta):
> c = self.fromPolar(self.getRho(), theta)
> self.x, self.y = c.x, c.y
>
> That's the maximu
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Sat, 10 Dec 2005 13:33:25 -0500, Mike Meyer wrote:
>> Steven D'Aprano <[EMAIL PROTECTED]> writes:
>>>> In particular,
>>>> you can get most of your meaningless methods out of a properly
>>
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>> > Really, I don't think this makes a good poster child for your "attribute
>> > mutators make life more difficult" campaign...;-)
>> The claim is that
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> On Sat, 10 Dec 2005 22:56:12 -0500, Mike Meyer wrote:
>>> Really, I don't think this makes a good poster child for your "attribute
>>> mutators make life more difficult" campaign...;-)
>> The cla
"Paul Boddie" <[EMAIL PROTECTED]> writes:
> One classic example of a
> weakly-typed language is BCPL, apparently, but hardly anyone has any
> familiarity with it any more.
Actually, BCPL is what Stevenn D'Aprano called "untyped". Except his
definition is suitable for after everyone followed IBM's
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> Of course, the IT world is full of people writing code and not testing
> it, or at least not testing it correctly. That's why there are frequent
> updates or upgrades to software that break features that worked in the
> older version. That would be impo
Bruno Desthuilliers <[EMAIL PROTECTED]> writes:
>> ^^ There is no functionality to check if a subclass correctly
>> implements an inherited interface
>
> I don't know of any language that provide such a thing. At least for
> my definition of "correctly".
Well, since your definition of "correclty"
Zeljko Vrba <[EMAIL PROTECTED]> writes:
> An obvious defficieny of the current way we write code now is its inherent
> tree-structure resulting from {}, indentation, begin/end markers or whatnot.
> But the flow of code is often not a tree but a cycle.. Yet we are always
> dealing with a tree-like r
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>...
>> It's not my cherished example - it actually came from someone
> You picked it to (try and fail to) show that there is DIFFICULTY, which
> I showed there isn't.
No, you s
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes:
> Is it possible to tell, which instance was used to call the
> classmethod that is currently running?
Ok, I read through what got to my nntp server, and I'm still
completely confused.
A class method isn't necessarilry called by an instance. That's wh
[EMAIL PROTECTED] (Alex Martelli) writes:
> Mike Meyer <[EMAIL PROTECTED]> wrote:
>...
>> Except you haven't shown that the API was badly designed. You can't
>> show that it's badly designed, because you don't know the requirements
>> that the
[EMAIL PROTECTED] (Bengt Richter) writes:
> Theoretically, the chances of getting an integer from a uniformly
> random sample from an interval of real numbers is practically zero,
> and even allowing for IEEE 754 double representation,
Well, if we're going to be picky, the chances of getting a num
Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>Laszlo Zsolt Nagy <[EMAIL PROTECTED]> writes:
>>>Is it possible to tell, which instance was used to call the
>>>classmethod that is currently running?
>>Ok, I read through what got
"Jacob Rael" <[EMAIL PROTECTED]> writes:
> Hello,
> I would like write a function that I can pass an expression and a
> dictionary with values. The function would return a function that
> evaluates the expression on an input. For example:
>
> fun = genFun("A*x+off", {'A': 3.0, 'off': -0.5, 'Max': 2
"Fredrik Lundh" <[EMAIL PROTECTED]> writes:
> Duncan Booth wrote:
>> > For HTML attributes that don't have an explicit value (such as the
>> > SELECTED attribute in OPTION) the keyword argument to the function must
>> > have the value True
>> A better way to do this (given that HTML defines exactly
Antoon Pardon <[EMAIL PROTECTED]> writes:
> Op 2005-12-11, Steven D'Aprano schreef <[EMAIL PROTECTED]>:
>> On Sat, 10 Dec 2005 15:46:35 +, Antoon Pardon wrote:
>> Do you really think that my class and some other class written by
>> another person will have the same API?
> If both writers try to
"Jacob Rael" <[EMAIL PROTECTED]> writes:
> In CppSim, classes are defined that allow various functions to be
> defined, like amplifiers. In some cases they are linear:
>
> y = A*x
>
> some have offsets:
>
> y = A*x + off
>
> some are non-linear
>
> y = A*x - C*x**3
>
> The coefficients and the func
Jérôme Laheurte <[EMAIL PROTECTED]> writes:
> On Tue, 13 Dec 2005 17:35:40 +0100, Ivan Voras wrote:
>> Maybe the OP really wants a GUI builder.
>> More than 5 years ago, i programmed in Visual Basic and Delphi and I
>> still miss the wonderful ease of graphically creating the user interface
>> in
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> But neither is it call by reference. If it were call by reference, I could
> write something like this:
>
> def increment(n):
> """Add one to the argument changing it in place."""
> # In Pascal, I would need the var keyword to get this behaviour
Peter Maas <[EMAIL PROTECTED]> writes:
> Mike Meyer schrieb:
>> I agree. I've tried a number of different gui builders. I find it much
>> faster to type something like:
>> ui.add_button("New", self.new)
>> ui.add_button("Ope
François Pinard <[EMAIL PROTECTED]> writes:
> Would someone know where I could find a confirmation that comparing
> dictionaries with `==' has the meaning one would expect (even this is
> debatable!), that is, same set of keys, and for each key, same values?
It may not exist, so you'll have to go
Peter Decker <[EMAIL PROTECTED]> writes:
>> > A GUI builder is more pleasant to work with, at least
>> > with a good one like Delphi or Qt designer.
>> That is your opinion, and I'm sure it's true for you. It isn't true
>> for me.
> Why, then, do you disparage those who like to do things differentl
[EMAIL PROTECTED] (Bengt Richter) writes:
> A single click compiles, links and runs the resulting independent windows
> .exe in a fraction of a second
> for the above, and I can see the hint, kill the .exe, and go on where I was.
Click? Yuck. If I wanted it, I've had environments where a single
k
Peter Decker <[EMAIL PROTECTED]> writes:
> On 12/13/05, Mike Meyer <[EMAIL PROTECTED]> wrote:
>> > Why this need to have everyone do things the way you do?
>> Whatever makes you think I have this need? I said I hated them. I'm
>> pretty sure I didn't
[EMAIL PROTECTED] writes:
> Steve Holden wrote:
>> >>It would be somewhat more self-documenting, but why not just use one
>> >>name to indicate the state and another, only meaningful in certain
>> >>states, to indicate the callback?
>> > Why should I do that? Checking the type of a variable is conc
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>>>So Python behaves demonstrably different from BOTH call by value and call
>>>by reference. Consequently, it is neither of them.
>> Right. *Python* behaves differently. That's not the
Magnus Lycka <[EMAIL PROTECTED]> writes:
> Huh? I must have expressed my thoughts badly. This is trivial to
> use in Python. You could for instance write a module like this:
>
> ### my_module.py ###
> import copy
>
> def sum(*args):
> result = copy.copy(args[0])
> for arg in args[1:]:
>
[EMAIL PROTECTED] (Bengt Richter) writes:
> On Wed, 14 Dec 2005 10:07:04 -0500, Mike Meyer <[EMAIL PROTECTED]> wrote:
>>[EMAIL PROTECTED] (Bengt Richter) writes:
>>> A single click compiles, links and runs the resulting independent windows
>>> .exe in a fraction o
"gene tani" <[EMAIL PROTECTED]> writes:
> Grant Edwards wrote:
>> On 2005-12-14, Gabriel Zachmann <[EMAIL PROTECTED]> wrote:
>> > I understand the Wikipedia article on Polymorphism (
>> > http://en.wikipedia.org/wiki/Polymorphism_%28computer_science%29
>> > ) that it doesn't make sense to talk abou
[Not sure if this attribution is correct.]
> Alex Martelli wrote:
> Because of course if other languages have 1 or two frameworks, python
> needs a dozen.
People keep talking about Python's wealth of web frameworks as if it
were a bad thing. I just don't see it. Just like I like to have more
than
Erik Max Francis <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] wrote:
>> What is the difference between
>> " d1 = {'A' : '1', 'B' : '2', 'C' : '3'} "
>> and
>> " d1 = dict(A = 1, B = 2, C = 3) " ?
>> All of the dictionary examples I saw (python.org,
>> aspn.activestate.com,
>> Learning Python b
Tom Anderson <[EMAIL PROTECTED]> writes:
>> Python does call by reference, which means that it passes pointers
>> to objects by value.
> That's not what call by reference is - call by reference is passing
> pointers to *variables* by value.
In which case, Python can't do call-by-reference at all,
Donn Cave <[EMAIL PROTECTED]> writes:
> I would like to argue that "value" basically means the
> computational effect. In "s = a + b", the value of "b"
> is whatever ends up applied to that "+" operator. In
> isolation, the value of some object is its computational
> potential - the object isn't
[EMAIL PROTECTED] writes:
> Maybe a page like this for Python exists already, or it can be useful
> to create it:
> http://tryruby.hobix.com/
Working on it, in my spare time (~1hr/day). You can poke at it at
http://www.mired.org/home/mwm/try_python/, but it's *very* much not
ready for release.
Dan M <[EMAIL PROTECTED]> writes:
> On Wed, 14 Dec 2005 13:56:24 -0800, lli wrote:
>> I build web application. So I use CGI. I need to show select text in
>> the html page. Now I can only display select value such as '001'. But I
>> need to display its text 'AAA'.
> I'm a Python newbie, so by all m
"Tuvas" <[EMAIL PROTECTED]> writes:
> I don't know if I can help with this much, I'm still somewhat new to
> python, but it is my understanding that "simple" variable, ei, strings,
> ints, etc, although they don't have such names, behave like variables,
> ei, if you pass them to a function, the fun
Kenneth McDonald <[EMAIL PROTECTED]> writes:
> At the moment I'm doing most of my stuff on a Mac, but I've been
> considering also getting
> a Windows laptop. One of the reasons is that I've found it very
> difficult to get certain
> Python related things running on the Mac; for example, if one wan
Scott David Daniels <[EMAIL PROTECTED]> writes:
> BartlebyScrivener wrote:
> The tough part on Windows (for the Linux/Unix/*ix bigots) is that
> each program scans the command line that invoked it in its own
> inimitable way. This is not really the fault of the windows command
> line processor; th
hings, so if anyone has any
feedback on how I might get this to work so my function just returns either
True (if a match) or False (if no match), I welcome it.
Cheers,
Mike
--
Michael Rennie
Ph.D. Candidate, University of Toronto at Mississauga
3359 Mississauga Rd. N.
Mississauga, ON L5
"Ben Sizer" <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> [Not sure if this attribution is correct.]
And it was apparently wrong. Apologies to both DH and AM.
>> > Alex Martelli wrote:
>> > Because of course if other languages have 1 or two frame
[EMAIL PROTECTED] writes:
> The point is again, "obvious" is not so obvious sometimes.
You keep leaving out the context. We're writing *python*. What's
obvious when you're writing python won't be when you're writing
FORTRAN, or Scheme, or O'Caml, or Eiffel, or Generally (not
always, I'll admi
Chris Mellon <[EMAIL PROTECTED]> writes:
> I think the issue is pretty simple, myself:
> With mutable objects, Python has the semantics normally associated
> with pass-by-reference.
Except when it doesn't. For instance, if that were true, then in this:
>>> def inc(x):
... x = x + [1]
...
>>> y
[EMAIL PROTECTED] (Alex Martelli) writes:
> Robert Kern <[EMAIL PROTECTED]> wrote:
>...
>> Picking RoR because you want to do the project in Ruby makes sense.
>> Picking Ruby because it only has one web framework is as silly as picking
>> one Python web framework at random. Just because RoR is
Peter Hansen <[EMAIL PROTECTED]> writes:
> For example, if enumerations are intended to reduce the likelihood of
> certain types of errors (where the use of typical =3 "constants"
> might be more prone to errors), then perhaps this suggests that
> passing errors silently is bad. That is, tryin
Ben Finney <[EMAIL PROTECTED]> writes:
> Mike Meyer <[EMAIL PROTECTED]> writes:
>> Peter Hansen <[EMAIL PROTECTED]> writes:
>>> That is, [perhaps] trying to compare enumerations that should not
>>> be compared *is* an error (raising an exception) *becau
"chuck" <[EMAIL PROTECTED]> writes:
> As I read through this thread I can't say that I disagree that having
> more choices is a 'good thing'. However in your example here - I
> suspect that you are a bit sharper and have a bit more guts than your
> average code slinger since you appear to be an in
"Ben Sizer" <[EMAIL PROTECTED]> writes:
> I see what you mean, but unfortunately I think there is a lot more
> fuzziness than that. If the separate parts were clearly delineated
> things would be a lot better. I look to the Database API Specification
> as a great example of how this could (should?)
"Alia Khouri" <[EMAIL PROTECTED]> writes:
> If Subway does not unite, chaos will continue in python web app land,
> and ruby will become ascendant. This is more than a critical issue -
> don't dismiss it without understanding that doing so will have severe
> repercussions for subway (and by a proce
"chuck" <[EMAIL PROTECTED]> writes:
>> "it would make Python more popular" isn't an adequate
>> justification for a change
> I disagree. The world desperately needs programming languages,
> frameworks, etc. that allow for the more efficient creation and
> maintenance of software application - web
[EMAIL PROTECTED] writes:
> Mike Meyer wrote:
>> It's conceivable that a change might make Python more popular and also
>> detract from the language in some way. For a ridiculous example,
>> making Python interpret Perl 6 would certainly make it more popular,
>&
1301 - 1400 of 2721 matches
Mail list logo