Re: missing 'xor' Boolean operator

2009-07-16 Thread Anthony Tolle
On Jul 15, 8:32 pm, Paul Rubin wrote: > Among other things, that uses quadratic time!  Why do you want to keep > popping items from that list instead of iterating through it anyway? > > Anyway, I think you wrote something close to this: > ... Very true! I didn't thi

Re: Help understanding the decisions *behind* python?

2009-07-20 Thread Anthony Tolle
On Jul 20, 12:27 pm, Phillip B Oldham wrote: > ... > Specifically the "differences" between lists and tuples have us > confused and have caused many "discussions" in the office. We > understand that lists are mutable and tuples are not, but we're a > little lost as to why the two were kept separat

Re: Move dictionary from instance to class level

2009-08-27 Thread Anthony Tolle
To take things one step further, I would recommend using decorators to allow symbolic association of functions with the message identifiers, as follows: == (MESSAGE_ONE ,MESSAGE_TWO ,MESSAGE_THREE ) = xrange(3) class MyClass(object): method_dict = {}

Elastic Search

2017-04-07 Thread Keith Anthony
I need some insightful examples of elastic search, using REGEX ... And using REST. -- https://mail.python.org/mailman/listinfo/python-list

Re: Filename case-insensitivity on OS X

2006-01-05 Thread Michael Anthony Maibaum
On 4 Jan 2006, at 02:50, Tom Anderson wrote: > On Tue, 3 Jan 2006, Dan Sommers wrote: > >> On Tue, 03 Jan 2006 15:21:19 GMT, >> Doug Schwarz <[EMAIL PROTECTED]> wrote: >> >>> Strictly speaking, it's not OS X, but the HFS file system that is >>> case >>> insensitive. > You can choose if HFS+ be

Re: chi-squared tests in python?

2006-01-18 Thread Michael Anthony Maibaum
On 17 Jan 2006, at 20:32, Rob Cowie wrote: >>> Matthew >>> ps: given the "batteries included" philosphy, there's a >>> remarkable dearth >>> of stats in python... > >> I think Chi^2 tests fall distinctly in the "third-party library" >> category, >myself. > > I don't know... I've often thought

Re: chi-squared tests in python?

2006-01-19 Thread Michael Anthony Maibaum
On 18 Jan 2006, at 16:07, Robert Kern wrote: > Michael Anthony Maibaum wrote: > >> Coming from the scientific community I agree. A relatively shallow >> selection of standard statistical methods would be very useful to >> avoid requiring people to install a relativel

Question about Multi-processing

2018-10-02 Thread Anthony Flury via Python-list
AttributeError: 'module' object has no attribute 'f' But when I run this exact example in the command line interpreter it works fine : >>> p = Pool(5) >>> def f(x): ... return x*x ... >>> p.map(f,[1,2,3]) [3, 5, 7]

Re: Observations on the List - "Be More Kind"

2018-10-06 Thread Anthony Flury via Python-list
power trip - they are here to help, and they are volunteers. Part of the really important thing about Python is the community and this list is a critical part of that community.; lets keep it that way please :-) -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony

Re: Encounter issues to install Python

2018-10-13 Thread Anthony Flury via Python-list
2-bit) on my computer but I have problems and can not access the python interface. I need your technical assistance to solve this matter. Best regard! Olivier OUSSOUMedical entomologist, Benin -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony.fl...@btinternet.com&g

Side by side comparison - CPython, nuitka, PyPy

2018-12-21 Thread Anthony Flury via Python-list
is as efficient as it could be - although every effort was made to try to make it as fast as I could. -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:anthony.fl...@btinternet.com> *Twitter* : @TonyFlury <https://twitter.com/TonyFlury/> -- https://mail.python.org

Re: Encounter issues to install Python

2019-01-15 Thread Anthony Flury via Python-list
h disk space to install Python ? * have you actually got a 32 bit windows installation - many modern PCs are actually 64 bit now. On 06/01/2019 15:20, Olivier Oussou wrote: Hi dear Anthony, I am using Windows systeme. I have download the set up uf python 3.6.4 (32-bit) and I can not install the

Using PyArg_ParseTuple to with optional fields.

2019-02-28 Thread Anthony Flury via Python-list
allows only one, or just two, or three - i.e. not all or nothing * |() - allows no argument, but passing 4 arguments expects a 4-tuple - i.e. my_func( (a,b,c,d) ) which is unnecessarily complex Can I do what I want with a single call to PyArg_ParseTuple  ? -- Anthony Flury *Email* : ant

Extension Module for Python 3.6 +

2019-03-01 Thread Anthony Flury via Python-list
not allowed ? PS - I think I also need to use Py_BuildValue to 'encapsulate' the initial arguments for the new instance - or could I just build a 'blank' instance and then directly set the fields as neccessary ? -- Anthony Flury *Email* : anthony.fl...@btinternet.com <mailto:a

Interesting performance question

2019-09-29 Thread Anthony Flury via Python-list
I have just noticed an oddity : Using python 3.6 building a tuple like this : my_tuple = tuple([x*x for x in range(1,1000)]) is about 1/3 quicker than     my_tuple = tuple(x*x for x in range(1,1000)) Measurements : $  python3 -m timeit 'my_tuple = tuple([x*x for x in range(1,1000)])' 1

<    1   2   3   4