Fraud

2016-04-16 Thread Mel Drosis via Python-list
My phone my accounts my home network have all been affected because of someone using coding from Python and Linux and GitHub and json. I don't even know what this stuff is but how do I get rid of it all. It's ruined my life. Sent from my iPhone --

Re: anomaly

2015-05-11 Thread Mel Wilson
Hofstadter's _Goedel, Escher, Bach_, or some essays in _Metamagical Themas_. Generally speaking, making a computer totally incapable of doing Wrong Things leaves it incapable of doing anything at all. Mel. -- https://mail.python.org/mailman/listinfo/python-list

Re: anomaly

2015-05-11 Thread Mel Wilson
On Tue, 12 May 2015 02:35:23 +1000, Steven D'Aprano wrote: On Mon, 11 May 2015 11:37 pm, Mel Wilson wrote: On Sun, 10 May 2015 14:12:44 -0500, boB Stepp wrote: I have to admit being surprised by this, too. I am just now studying on how to write my own classes in Python, and have come

Re: Instead of deciding between Python or Lisp for a programming intro course...What about an intro course that uses *BOTH*? Good idea?

2015-05-10 Thread Mel Wilson
. It was a fine first-hand look at what the general purpose in General Purpose Computer really meant. There was no confusing the machine and the language after that. Scheme/ Python would be even more radical, I think. If you can put them across effectively, I say go for it. Mel. cs -- https

Re: How to properly apply OOP in the bouncing ball code

2015-05-08 Thread Mel Wilson
an update method which accepts info from the joystick and updates the player's movements, and a draw method which the main loop calls on displaying every frame, to show the player's new position and attitude. You might be able to do something along these lines. Mel. -- https://mail.python.org

Re: functions, optional parameters

2015-05-08 Thread Mel Wilson
On Sat, 09 May 2015 03:49:36 +1000, Chris Angelico wrote: Yes, but can you *distinguish* them in terms of default argument versus code object creation? How do you know that the function's code object was created when compile() happened, rather than being created when the function was defined?

Re: New to Python - block grouping (spaces)

2015-04-19 Thread Mel Wilson
On Sun, 19 Apr 2015 09:03:23 -0700, Rustom Mody wrote: Now if Thomson and Ritchie (yeah thems the guys) could do it in 1970, why cant we revamp this 45-year old archaic program=textfile system today? Dunno. Why not? There's half of you right there. --

Re: New to Python - block grouping (spaces)

2015-04-19 Thread Mel Wilson
. IIRC Thompson, Ritchie, et al. were working at Bell Labs. Legend has it that management would not buy them a Multics, so they were forced to write their own using the hardware they had. Mel. -- https://mail.python.org/mailman/listinfo/python-list

Re: Best search algorithm to find condition within a range

2015-04-08 Thread Mel Wilson
On Wed, 08 Apr 2015 07:56:05 -0700, jonas.thornvall wrote: There is no need for inventing a new set of characters representing 32-bit numbers. You will not be able to learn them by heart anyway, unless they build on a interpretation system binaries, decimals. See Jorge Luis Borges, _Funes the

Re: Best search algorithm to find condition within a range

2015-04-08 Thread Mel Wilson
On Tue, 07 Apr 2015 23:19:49 -0700, jonas.thornvall wrote: And you have just created 429496729 unique symbols ;), in a pencil stroke. No. You did that, when you said base 429496729. Representing the symbols in a computer is no problem, any Python long int can do that. To display the

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-17 Thread Mel Wilson
, but that usually takes a fair bit of time and effort. Mel. -- http://mail.python.org/mailman/listinfo/python-list

[issue14353] Proper gettext support in locale module

2012-03-17 Thread Mel Flynn
Mel Flynn rfl...@acsalaska.net added the comment: Additional patch for 2.7 branch. -- Added file: http://bugs.python.org/file24918/python27-configure.in.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353

[issue14353] Proper gettext support in locale module

2012-03-17 Thread Mel Flynn
New submission from Mel Flynn rfl...@acsalaska.net: Gettext support in Python is configured by two tests: - textdomain in libc or libintl - bind_textdomain_codeset in libc only The latter causes incomplete gettext support in the locale module. Since the implementation uses two different

Re: Python is readable

2012-03-16 Thread Mel Wilson
for other languages) people use colons without the first clause *necessarily* being a complete sentence. They write things like this: Star Wars Episode IV: A New Hope Come to think of it, just about every serious book title works this way. Mel. -- http://mail.python.org/mailman

Re: A 'Python like' language

2012-03-03 Thread Mel Wilson
model, but they didn't have the steam to do everything. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it necessary to call Tk() when writing a GUI app with Tkinter?

2012-03-02 Thread Mel Wilson
indexing work on space-separated strings. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWart: Language missing maximum constant of numeric types!

2012-02-24 Thread Mel Wilson
): return 0 return -1 def __hash__ (self): return id (Least) Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: atexit.register in case of errors

2012-02-15 Thread Mel Wilson
`sys.exit()` calls in the functions, then you have my sympathy. Library authors should not do that, and there have been threads on c.l.p explaining why they shouldn't. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
that it's not mentioned anywhere. I guess it's called selection sort but I'm not sure. The minimum selection sort is an improvement of this one. It's what Wikipedia says a selection sort is: put the least element in [0], the least of the remaining elements in [1], etc. Mel. -- http

RE: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
it combines the swap operation with recording the temporary extreme while it searches the subrange. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: name of a sorting algorithm

2012-02-14 Thread Mel Wilson
it to mean — neither more nor less.' (_Through the Looking Glass, Lewis Caroll). And you, too, have that ability. Contrariwise see Knuth, _The Art of Computer Programming_ Section 5.2.2, Algorithm B. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: M2crypto

2012-02-12 Thread Mel Wilson
. Good hunting, Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: difference between random module in python 2.6 and 3.2?

2012-02-06 Thread Mel Wilson
. Jon Bentley somewhere, sometime, published a portable PRNG for that exact reason. (I wish I could find that article.) Specifically he wanted portability across various manufacturer's O/Ss. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: python reliability with EINTR handling in general modules

2012-02-02 Thread Mel Wilson
it's wise to clear errno yourself to make sure your code doesn't get fooled. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about name scope

2012-02-01 Thread Mel Wilson
returned by locals(). Strangely, I notice that Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. def f(x): ... exec x ... exec 'print a' ... f('a=4') 4 works, but I really cannot explain why. Mel

Re: except clause syntax question

2012-01-31 Thread Mel Wilson
, with the string modulo operator. The second operand is supposed to be a tuple, but if the template string needs only one value, then the rules are relaxed and any single non-tuple value is used as-is. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: except clause syntax question

2012-01-31 Thread Mel Wilson
, and it turned out then that the C API went to some lengths to prevent anyone being able to do that. I did finally do it in some peculiar way, but it wasn't simple. The c.l.python archives might still have the post where I described it. Mel. -- http://mail.python.org/mailman/listinfo/python

Re: except clause syntax question

2012-01-30 Thread Mel Wilson
with the list catches nothing, of course. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: verify the return value of a function

2012-01-20 Thread Mel Wilson
to write big overloaded functions that check the types of the arguments to decide what they should be doing. In diagnostics and tests like the OP's there should be no problem. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: mutually exclusive arguments to a constructor

2011-12-30 Thread Mel Wilson
, and failing that fall back to treating the argument as a numeric angle. Neither fish nor fowl would be to accept named arguments for the different kinds of values. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Early and late binding [was Re: what does 'a=b=c=[]' do]

2011-12-23 Thread Mel Wilson
on it. I know mine does. In a tool that's meant for other people to use to accomplish work of their own, breaking workflow is a cardinal sin. In a research language that's meant always to be up-to-date with the concept of the week, not so much. Mel. -- http://mail.python.org/mailman/listinfo

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2011-12-22 Thread Mel Wilson
: def name=method arguments=self, x, y indent/indentlet target=t Mel. We need to adopt a more appropriate form. Eliminate all the /spam tags and use indentation to mark the ends of elements. ChrisA PS. Brilliant, sir, brilliant! I take off my cap to you. -- http

Re: Making the case for typed lists/iterators in python

2011-12-16 Thread Mel Wilson
Chris Angelico wrote: It's no more strange than the way some people omit the u from colour. :) Bonum Petronio Arbiteri, bonum mihi. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: correct usage of a generator?

2011-11-28 Thread Mel Wilson
rules expect that files blarg25 and boo25 (for example) work together, then you'd be better off generating them together as a pair in a single generator call. As it is, there's a chance of the blarg and boo generators getting out of step and supplying mismatched names. Mel. -- http

Re: Close as Many Files/External resourcs as possible in the face of exceptions

2011-11-21 Thread Mel Wilson
exceptions. But this looks really awkward. And in the case that two files fail to close, I am not sure the best strategy is to ignore the second failure. I imagine you could save any caught exception instances in a list and study them later. Mel. -- http://mail.python.org/mailman/listinfo

Re: Use and usefulness of the as syntax

2011-11-12 Thread Mel Wilson
2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. os = 5 # number of 'o's import os as opsys os 5 opsys module 'os' from '/usr/lib/python2.6/os.pyc' (This is an instance of what arnaud mentioned.) Mel

Re: How to isolate a constant?

2011-10-25 Thread Mel
a bunch of items. Strings being iterable introduces a wrinkle, but `list('abcde')` doesn't create `['abcde']` just as `list(1)` doesn't create `[1]`. Mel. -- http://mail.python.org/mailman/listinfo/python-list

RE: Problem with a wx notebook

2011-10-20 Thread Mel
) return new_trace Hope this helps, Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Usefulness of the not in operator

2011-10-08 Thread Mel
be able to start the car. If not the key is in the ignition, you won't be able to start the car. Who like that second one speaks? :) If the key is not in the ignition, you will be able to start the car, not. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrote a new library - Comments and suggestions please!

2011-09-27 Thread Mel
that kind of documentation way too often. By comparison, even this https://www.ubersoft.net/comic/hd/2011/09/losing- sight-big-picture might seem good. At least they try. Does things to the stuff. By default, the most recent stuff is done things to. Mel. -- http://mail.python.org

Re: Generating equally-spaced floats with least rounding error

2011-09-24 Thread Mel
and high_limit exactly (as exactly as they can be represented, anyway.) Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Context manager with class methods

2011-09-22 Thread Mel
): __metaclass__ = MetaWith with With: pass Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Context manager with class methods

2011-09-22 Thread Mel
Mel wrote: This seems to work: class MetaWith (type): @classmethod def __enter__(cls): print(__enter__) @classmethod def __exit__(cls, exc_type, exc_value, traceback): print(__exit__) class With (object): __metaclass__ = MetaWith

Re: Doctest failing

2011-09-10 Thread Mel
(word.title()) can't be what you want. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Mastering Python... Best Resources?

2011-08-26 Thread Mel
be the O.P.'s job. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: is there any principle when writing python function

2011-08-23 Thread Mel
of some of those sub-steps is the fix. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: try... except with unknown error types

2011-08-19 Thread Mel
| exceptions.StandardError | exceptions.Exception | exceptions.BaseException So catching any of urllib2.HTTPError, urllib2.URLError, IOError, EnvironmentError, or StandardError will detect the exception -- with increasing levels of generality. Mel. -- http

Re: pairwise combination of two lists

2011-08-17 Thread Mel
(lambda (x,y):x+y, list (itertools.product (li1, li2))) ['a1', 'a2', 'b1', 'b2'] Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: pairwise combination of two lists

2011-08-17 Thread Mel
Mel wrote: Yingjie Lin wrote: I have two lists: li1 = ['a', 'b'] li2 = ['1', '2'] and I wish to obtain a list like this li3 = ['a1', 'a2', 'b1', 'b2'] [ ... ] This seems to do it : mwilson@tecumseth:~$ python Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2

Re: Observations on the three pillars of Python execution

2011-08-05 Thread Mel
creation. I' awed.) Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: I am fed up with Python GUI toolkits...

2011-07-20 Thread Mel
-use the Dialog object, it's not a memory leak. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Mel
=en_US, mailto:python-for- android+subscr...@googlegroups.com . Tends to be pretty detail-oriented. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs -vs- Spaces: Tabs should have won.

2011-07-17 Thread Mel
=en_US, mailto:python-for- android+subscr...@googlegroups.com . Tends to be pretty detail-oriented. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: None versus MISSING sentinel -- request for design feedback

2011-07-15 Thread Mel
of?) the database interface packages already do just that, returning None when they find NULL fields. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: more advanced learning resources (code structure, fundamentals)

2011-07-07 Thread Mel
a fresh message handler to a new input message. Docs are via the Python Global Module Index, source is in some directory like /usr/lib/python2.6/SocketServer.py , .../BaseHTTPServer.py , etc. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EXCELLENT

2011-07-06 Thread Mel
Ian Kelly wrote: On Wed, Jul 6, 2011 at 12:49 AM, Ulrich Eckhardt ulrich.eckha...@dominolaser.com wrote: Mel wrote: In wx, many of the window classes have Create methods, for filling in various attributes in two-step construction. I'm not sure why, because it works so well to just supply

Re: Does hashlib support a file mode?

2011-07-06 Thread Mel
statement is executed. Later on, when file_to_hash gets called, the value of m is either used as is, as the default parameter, or is replaced for the duration of the call by another object supplied by the caller. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Implicit initialization is EXCELLENT

2011-07-05 Thread Mel
in two-step construction. I'm not sure why, because it works so well to just supply all the details when the class is called and an instance is constructed. Maybe there's some C++ strategy that's being supported there. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Significant figures calculation

2011-06-28 Thread Mel
. (Just vaguely curious. Also curious as to whether a zero sig figures value is ever useful.) Yes. They're order of magnitude estimates. 1 x 10^6 has one significant figure. 10^6 has zero. By convention, nobody ever talks about 1 x 9.97^6 . Mel. -- http://mail.python.org/mailman

Re: Significant figures calculation

2011-06-28 Thread Mel
Erik Max Francis wrote: Mel wrote: Erik Max Francis wrote: Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 That's not really zero significant figures; without further qualification, it's one. Is 0.0

Re: writable iterators?

2011-06-22 Thread Mel
designed. And for an iterator like def things(): yield 1 yield 11 yield 4 yield 9 I don't know what it could even mean. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I speed up a script that iterates over a large range (600 billion)?

2011-06-21 Thread Mel
out as soon as possible, they have to be the prime ones. Good hunting, Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling import errors

2011-06-21 Thread Mel
', 'O_DIRECT', 'O_DIRECTORY', 'O_DSYNC', 'O_EXCL', 'O_LARGEFILE', 'O_NDELAY', 'O_NOATIME', 'O_NOCTTY', 'O_NOFOLLOW', 'O_NONBLOCK etc. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: sorry, possibly too much info. was: Re: How can I speed up a script that iterates over a large range (600 billion)?

2011-06-21 Thread Mel
a population for the property would be the only way to go. BUT you can also build up the answer knowing the factorization of all the numbers up to 20. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the best way to write this base class?

2011-06-20 Thread Mel
seen no way to create a new dimension for the game -- Conversation, for instance, with currently unknown attributes like vocabulary or tone. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What's the best way to write this base class?

2011-06-18 Thread Mel
... print self.name, self.health ... Character ('Eunice') Eunice 50 where the class attribute is used until it's overridden in the instance. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to form a dict out of a string by doing regex ?

2011-06-15 Thread Mel
arguments, ## and lastly data = match.group (3) This is all from memory. I might have got some details wrong in recognizer. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic Zero Padding.

2011-06-07 Thread Mel
the desirable padding. I would be much obliged if someone can give me some tips on how to achieve a variably pad a number. :) ('%%0%dd' % (pads,)) % (n,) Probably be good to wrap it in a function. It looks kind of obscure as it is. Mel. -- http://mail.python.org/mailman/listinfo

Re: Lambda question

2011-06-04 Thread Mel
of lambdas is that you can't stick trace printouts into them to clarify what's happening. Rewriting the thing as a plain def function would be instructive. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: scope of function parameters

2011-05-29 Thread Mel
as `a` in main is identically the same list as the one known as `c` in fnc2, and what happens happens. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: bug in str.startswith() and str.endswith()

2011-05-27 Thread Mel
, span) # range doesn't(/didn't) accept this return result Tne answer in that case was to take *args as the parameter to wrapped_range and count arguments to distinguish between the different calls to range. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python's super() considered super!

2011-05-27 Thread Mel
def super(): self = sys._getframe().f_back.f_locals['self'] return __builtins__.super(type(self),self) This way the nice Python 3.x syntax can be used in Python 2.x. Python causes trouble by letting the users get at the internals, but things like this make it worthwhile. Mel

Re: bug in str.startswith() and str.endswith()

2011-05-26 Thread Mel
. Any reason this is not a bug? It's a wart at the very least. The same thing happened in Python2 with range and xrange; there seemed no way to explicitly pass default arguments. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Obtaining a full path name from file

2011-05-24 Thread Mel
/mwilson' os.chdir('sandbox') f.name 'xyzzy.txt' If you open a file and don't get a full path from os.path.abspath right away, the name in the file instance can get out-of-date. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What other languages use the same data model as Python?

2011-05-09 Thread Mel
disarticulation that would show what the problems were. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What other languages use the same data model as Python?

2011-05-05 Thread Mel
) ... Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What other languages use the same data model as Python?

2011-05-05 Thread Mel
corrupt *a* 4, but it wouldn't corrupt the *only* 4. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: What other languages use the same data model as Python?

2011-05-05 Thread Mel
Steven D'Aprano wrote: Some day, we'll be using quantum computers without memory addresses, [ ... ] it will still be possible to represent data indirectly via *some* mechanism. :) Cool! Pass-by-coincidence! And Python 3 already has dibs on the 'nonlocal' keyword! Mel. -- http

Re: What other languages use the same data model as Python?

2011-05-03 Thread Mel
have it (don't know about Simula, so I am off topic, actually.) It's not so wrong to think of Python's parameter handling as ordinary assignments from outer namespaces to an inner namespace. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Why do directly imported variables behave differently than those attached to imported module?

2011-05-03 Thread Mel
the possible use of `globals()['foo'].__dict__['var'] . (Hope there are no typos in this post.) Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Input() in Python3

2011-04-25 Thread Mel
Westley Martínez wrote: On Fri, Apr 22, 2011 at 10:08:20AM -0400, Mel wrote: [ ... ] But sys.exit() doesn't return a string. My fave is Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import sys

Re: learnpython.org - an online interactive Python tutorial

2011-04-22 Thread Mel
. Appropriate is the problem. This is why Perl needs two completely different kinds of comparison -- one that works as though its operands are numbers, and one that works as though they're strings. Surprises to the programmer who picks the wrong one. Mel. -- http://mail.python.org

Re: Input() in Python3

2011-04-22 Thread Mel
in sys.excepthook: RuntimeError: maximum recursion depth exceeded Original exception was: Traceback (most recent call last): File stdin, line 1, in module RuntimeError: maximum recursion depth exceeded while calling a Python object Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: List comprehension vs filter()

2011-04-20 Thread Mel
default arguments are evaluated in the parent context, but the body is evaluated in its own context? The operation of calling a function has to evaluate arguments provided in the caller's namespace and assign them to variables in the called function's namespace. Yes. Mel. -- http

Re: dictionary size changed during iteration

2011-04-20 Thread Mel
to the same dict object. I think ukeys = dict (self.updates.keys) would do what you want. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary size changed during iteration

2011-04-20 Thread Mel
Mel wrote: Laszlo Nagy wrote: `ukeys` isn't a different dictionary from `self.updates.keys` I'ts merely another name referring to the same dict object. I think ukeys = dict (self.updates.keys) would do what you want. Sorry. Belay that. Thought I'd had enough coffee. Mel

Re: Feature suggestion -- return if true

2011-04-12 Thread Mel
the left and right markers makes the return? feature impossible to use. The proposed feature reminds me of the `zod` function (was that the actual name?) that returned 0 rather than bringing on a ZeroDivideError. It would cement a strange corner-case into the language. Mel. -- http

Re: Argument of the bool function

2011-04-10 Thread Mel
it, especially for abstract things like that. I can sort of guess that `dir` was perhaps coded in C for speed and doesn't spend time looking for complicated argument lists. Python is a pragmatic language, so all the rules come pre-broken. Mel. -- http://mail.python.org/mailman/listinfo/python

Re: Argument of the bool function

2011-04-08 Thread Mel
or license for more information. bool(y=5) Traceback (most recent call last): File stdin, line 1, in module TypeError: 'y' is an invalid keyword argument for this function Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Free software versus software idea patents

2011-04-07 Thread Mel
to be kidding, right? Check *any* of the sites I listed above and read about it... software idea patent litigation is a business now worth billions of dollars per year. One of the premier sites: http://www.groklaw.net/ Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: is python 3 better than python 2?

2011-04-05 Thread Mel
character sets is going to be foreign,) and generally internationalized data processing. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError: iterable argument required

2011-04-04 Thread Mel
that sets the value of `mail` from the URL (code you don't show us) sets `mail=None`, your server-side code blows up. Things would be simpler if you included a traceback in your error logging. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: send function keys to a legacy DOS program

2011-03-29 Thread Mel
-release codes are the key-press codes (the key numbers) but with the high-order bit set. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Guido rethinking removal of cmp from sort method

2011-03-24 Thread Mel
should indicate that __cmp__ should be retained in classes. I would have thought that the upper limit of cost of supporting cmp= and key= would be two different internal front-ends to the internal internal sort. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bounds checking

2011-03-18 Thread Mel
ValueError ('error out of bound') or define a subclass of ValueError just for this purpose. On error, the program will stop just as dead, but you'll get a trace. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding and Decoding in Python

2011-03-17 Thread Mel
way with (untested) for k, v in QCam_Info.items(): QCam_Info[v] = k Then the dictionary lookups work both ways. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP for module naming conventions

2011-03-17 Thread Mel
, one underscore. That way, nice descriptive application module names like 'analyzer_tool_utils' and such would always be safe to use. Mel. -- http://mail.python.org/mailman/listinfo/python-list

Re: my computer is allergic to pickles

2011-03-07 Thread Mel
a file made by marshal or shelve? Depends. An sqlite3 database file is usable by programs not written in Python. I'm more worried about the fact that a python program in user space can bring down the computer! Never been a problem in the programs I've written. Mel. -- http

Re: ImSim: Image Similarity

2011-03-07 Thread Mel
; -- a bit of light white clouds in the sky; In short, the notion of similarity can be speculated about just endlessly. Exactly. That's the kind of similarity I would call valid. That's what my algorithms, if I ever finished writing any, would be looking for. Mel. -- http

Re: ImSim: Image Similarity

2011-03-05 Thread Mel
also be good -- that's the first one I never did. Cheers, Mel. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >