Re: Trying to understand nested loops

2022-08-08 Thread GB

On 08/08/2022 12:59, Dan Purgert wrote:

dn wrote:

On 06/08/2022 11.41, avi.e.gr...@gmail.com wrote:

I wonder if someone is pulling our leg as they are sending from an
invalid email address of "GB " which is
a bit sick.



There are a number of folk who use evidently false email addresses - the
OP's had me amused.



Such 'hiding' is a matter for the List-Admins (thanks for all the work
exerted on our behalf!) and how it fits with the Code-of-Conduct.


Invalid sending addresses (email@somewhere.invalid) are a standard
practice in Usenet, to combat bots scraping posts for email addresses
(remember, Usenet predates basically all spam prevention tech).

As there is a gateway between the mailing lists and Usenet, I *imagine*
that the use of said invalid addresses are within the rules -- I mean,
if they weren't, the maintainers wouldn't keep the two lists
connected.



>

The history in my case is as follows:

Years ago, I used Outlook Express, and, for setting up NG access, they 
suggested an example email address: some...@microsoft.com.


I did not want to give my true email address, lest it be 'scraped', so I 
used: notsome...@microsoft.com.  I added the NOT, to avoid misleading 
people.


Later, I was prevailed upon to change com to invalid.

List admins? This particular NG appears to be blessedly free of spam, 
but I hadn't realised it is moderated?



--
https://mail.python.org/mailman/listinfo/python-list


Re: Trying to understand nested loops

2022-08-05 Thread GB

On 05/08/2022 08:56, Frank Millman wrote:

BTW, there is an indentation error in your original post - line 5 should 
line up with line 4. 


As a Python beginner, I find that Python is annoyingly picky about 
indents.  And, the significance of indents is a bit of a minefield for 
beginners.


For example, in the above code, the indent of the final line very 
significantly affects the results:


print(var)
print(var)
print(var)

These are all different.



--
https://mail.python.org/mailman/listinfo/python-list


OT: Computer vision

2022-07-22 Thread GB
I'm looking for some help getting started with a computer vision 
project. Can anyone here either help or point me in the direction of a 
better NG/forum, please?



--
https://mail.python.org/mailman/listinfo/python-list


Re: WxPython and TK

2011-08-09 Thread gb
azrael writes:

> OK, now. Isn't it maybe time to throw out TK once and for all?

no, because Tk has a clear advantage over many other UI tolkits
Tk _was designed_ and it was designed by very competent people [1]

good luck with smurfs' hunting [2], ciao
     gb

[1]:  1986-91 ACM's Grace Murray Hopper Awards
  1986 William N. Joy,  BSD Unix, Sun;
  1987 John Ousterhout, Tcl/TK;
  1988 Guy L. Steele,   Scheme, Java;
  1989 W. Daniel Hillis Thinking Machines;
  1990 Richard Stallman Emacs, Gcc, FSF;
  1991 Feng-hsiung Hsu  Deep Blue;

[2]   http://www.smurf.com/smurf.php/www/who/en/azrael
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Fun python 3.2 one-liner

2011-04-04 Thread gb
harrismh777  writes:

> Seriously, these little one liners teach me more about the python
> language in less time than [...]

def f(x,n,w): return x if n==1 else\
(lambda x0=f(x[::2],n/2,w[::2]),\
x1=f(x[1::2],n/2,w[::2]): reduce(lambda a,b: a+b ,\
  zip(*[(x0[k]+w[k]*x1[k],\
 x0[k]-w[k]*x1[k])\
 for k in range(n/2)])))()

it was a joke of sort played on it.comp.lang.python

[thanks to marco (zip(*...))  and antonio (lambda with default
arguments)]
-- 
http://mail.python.org/mailman/listinfo/python-list