Re: bug in python 3.10.4

2022-05-25 Thread dn
On 26/05/2022 13.46, Shuaib Akhtar wrote:
>When double clicking a .py file when have python install. It run file but
>at a spot of the program it stop running. But using the built-in ide for
>python this problem does not happen also any other ide it work fine

Please provide (minimal) example code so that we can reproduce the
problem and, if necessary, help find a solution...
-- 
Regards,
=dn
-- 
https://mail.python.org/mailman/listinfo/python-list


bug in python 3.10.4

2022-05-25 Thread Shuaib Akhtar
   When double clicking a .py file when have python install. It run file but
   at a spot of the program it stop running. But using the built-in ide for
   python this problem does not happen also any other ide it work fine

    

    

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


Re: how to distinguish return from print()

2022-05-25 Thread Meredith Montgomery
r...@zedat.fu-berlin.de (Stefan Ram) writes:

> Meredith Montgomery  writes:
> ...
>>def f(x):
>>return x + 1
> ...
> print("hello")
>
>   To me, what would make more sense would be:
>
>   Teacher:
>
> |>>> def r():
> |... return 7
> |...
> |>>> def p():
> |... print( 7 )
> |...
> |>>> r()
> |7
> |>>> p()
> |7
>
>   Pupil:
>
>   That was a very instructive example, teacher. Thank you!
>   But could you also show us some context where the calls 
>   to p and r show some difference?
>
>   Teacher:
>   
> |>>> print( r() )
> |7
> |>>> print( p() )
> |7
> |None
>
> |>>> x = r()
> |>>> x = p()
> |7
>
>   Pupil:
>
>   Now I'm confused. What's "None"?
>
>   Teacher:
>
>   ...

I did do this too.  I think that was helpful.  I told them --- a print
doesn't let you easily ``capture'' a value calculated in a procedure.
Thank you!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread George Fischhof
Turritopsis Dohrnii Teo En Ming  ezt írta (időpont:
2022. máj. 25., Sze, 15:49):

> Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys
>
> Good day from Singapore,
>
> Sharing this article for more awareness.
>
> Article: Popular PyPI Package 'ctx' and PHP Library 'phpass' Hijacked
> to Steal AWS Keys
> Link:
> https://thehackernews.com/2022/05/pypi-package-ctx-and-php-library-phpass.html
>
> Thank you.
>
> Regards,
>
> Mr. Turritopsis Dohrnii Teo En Ming
> Targeted Individual in Singapore
> 25 May 2022 Wed
> --
> https://mail.python.org/mailman/listinfo/python-list


Hi All,

it's got to my mind that PYPA, community, and developers should develop
some mechanism to protect against similar threats.

For example security checkers could be added to the upload flow, before a
package appears, and becomes downloadable.
Compiled parts should be allowed only in source, and security checkers
would check those too, and compile from source and publish package only
after these checks executed and did not found any harmful thing.


BR,
George
-- 
https://mail.python.org/mailman/listinfo/python-list


Popular Python Package 'ctx' Hijacked to Steal AWS Keys

2022-05-25 Thread Turritopsis Dohrnii Teo En Ming
Subject: Popular Python Package 'ctx' Hijacked to Steal AWS Keys

Good day from Singapore,

Sharing this article for more awareness.

Article: Popular PyPI Package 'ctx' and PHP Library 'phpass' Hijacked
to Steal AWS Keys
Link: 
https://thehackernews.com/2022/05/pypi-package-ctx-and-php-library-phpass.html

Thank you.

Regards,

Mr. Turritopsis Dohrnii Teo En Ming
Targeted Individual in Singapore
25 May 2022 Wed
-- 
https://mail.python.org/mailman/listinfo/python-list