Re: stackless python 2.7.9 and openssl-1.1.1g

2020-09-25 Thread Barry


>> On 25 Sep 2020, at 03:28, bhashkar prakash Singh  
>> wrote:
> 
> Hi Barry,
> 
> Thanks for your response.
> 
> I am not an expert in python code. Could you please elaborate a bit more on 
> this.  Which cpython code are you referring to?
> did you modify other files also apart from   _hashopenssl.c and _ssl.c to 
> work with openssl-1.1.1g ?

Get the source of python.org python 2.7.18 and you will find that builds 
without patches against OpenSSL 1.1.1g.

I would then diff the C files that do not compile in stackless to look for the 
required fixes.

Barry

> 
> Regards,
> Bhashkar
> 
>> On Fri, Sep 25, 2020 at 2:40 AM Barry Scott  wrote:
>> 
>> 
>> > On 24 Sep 2020, at 19:21, bhashkar prakash Singh 
>> >  wrote:
>> > 
>> > Hi,
>> > 
>> > I am using stackless Python 2.7.9 in my project and openssl-1.0.2q.
>> > I just upgraded the Openssl  version to 1.1.1g, due to which python
>> > compilation started failing. So, I patched  _hashopenssl.c and _ssl.c file
>> > in Python Modules as per new openssl  to make compilation successful.
>> > But when I run my image on  target HW,  I am getting below errors.  It
>> > looks like Openssl 1.1.1g libraries are not linked to Python.
>> > I am struggling with this issue since many days. Looks like something I
>> > missed in my patching. Could someone please help on this.
>> 
>> I recently built python 2.7.18 against openssl 1.1.1g without issue.
>> Maybe look see what is in the cpython code that works fine.
>> 
>> Barry
>> > Thanks & Regards,
>> > Bhashkar
>> > -- 
>> > https://mail.python.org/mailman/listinfo/python-list
>> >
-- 
https://mail.python.org/mailman/listinfo/python-list


FW: pipenv has issues

2020-09-25 Thread Rhett Prince
see below: 

 

pipenv gets lost and crashes.  

 

 

hi, where do we write to to post defects in  pipenv? on a windows 8.1
machine after installing pipenv with poip as administrator  pipenv simply
crashes with a trace dump  it gets confused with an old version of anaconda
and crashes. my base python is 3.8 

 

please let me know where to send defects about pipenv 

thanks  

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


Use of a variable in parent loop

2020-09-25 Thread Stephane Tougard via Python-list


Hello All,

I've been working with Perl a long time and recently started to use
Python. I've been surprised by one behavior of Python. 

In Perl:

===PERL===
#!/usr/pkg/bin/perl

use strict;

if(4 == 4)
{
my $name = "Stephane";
print("$name\n" 
}
print("Out $name\n");
=

This code will trigger an error because $name is declared inside the if
and is not usable outside of the block code. That looks logic to me.

===PYTHON===
#!/usr/local/bin/python
if 4 == 4:
name = "Stephane"
print(name)
pass

print("Out {}".format(name))


The exact same code in Python works fine, the variable name is used
outside of the if block even it has been declared inside.

This does not look right to me. Can we change this behavior or is there
any point to keep it this way ?
-- 
https://mail.python.org/mailman/listinfo/python-list