Python version and Apache mod_python mismatching version

2020-04-03 Thread frank . scarpa
Hello,

I have a Centos7 web server with python 2.7 installed and I want Apache to 
serve python scripts so I figure I have to install mod_python: i know that this 
module is deprecated, but I need it only for internal pourposes.
Is the mod_python version (which is 3.5 with Python 3 support) somehow related 
to  the python interpreter the web server?
Is there any problem if the mod_python version and python version didn't match?
-- 
https://mail.python.org/mailman/listinfo/python-list


Exceptions versus Windows ERRORLEVEL

2020-04-03 Thread Stephen Tucker
Hi,

I have found that raising an exception in a Python 2.7.10 program running
under Windows does not set ERRORLEVEL.

I realise that Python 2.x is no longer supported.

Does an exception raised by a Python 3.x program on a Windows machine set
ERRORLEVEL?

If not, are there plans for it to do so?

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


policy based variable composition

2020-04-03 Thread Joseph L. Casale
I am looking to replace a home built solution which allows a program
to derive a series of variable values through configuration or policy.

The existing facility allows dependences so one of the requested variables
can depend on another, they are ordered and computed. It also allows
callbacks so code can be executed.

For example, you would send in a list with any required parameters and out
the other end comes the derived values, eg:

input = [
['PROPERTY_FOO', 'PROPERTY_BAR', 'SOME_OTHER_FIELD'],
{
'key_a': 42,
'key_b': 'foo',
'key_c': 'some text'
}
]

output = {
'PROPERTY_FOO': ['foo_42', 99],
'PROPERTY_BAR': ['some_static_value'],
'SOME_OTHER_FIELD': ['foo_42__some_static_value']
}

The existing code base works, however the code is utterly abysmal.

Does such a thing exist that is well maintained?

Thanks,
jlc
-- 
https://mail.python.org/mailman/listinfo/python-list


A PDF journey to find all python PDF

2020-04-03 Thread anson freer
This forum mentioned the Tutor forum so I signed up
I waited a day or 2 heard nothing so I sent msg
got  Post by non-member to a members-only list
replied to apologized and
received auto msg
part of which gave do's and don't's of forum
then I realized I asked a really lame question
Might take years for a answer
When all fails YOUTUBE
A youtube 3part vidio said I need a
PDFParser= pdfminer or pdf 2020 4.1
PDFDocument=a text file like notes???
PDFPageInterpreter= no reslts
PDFDevice+??
Then
I found Pycon 2018!
Looked at the 30min+ forums and understood 0
then little by little learned about REGEX and test and Asychronous
So..
I needed a PDF text reader
found
Python Software Foundation [US] pypi.org/project/pdfminer/#files
then there is Search Projects
I typed pdf and many pop up
pdf 2020.4.1 =
Python library for parsing PDFs
I can find anything PDF
It seems like Pdf is a mother with many children all with different fathers
But no kid knows or talk to each other
There are questions
Do I make new DIR just for python and its results?
Does the dnload go in my programs like 3.8.2 does
warning on Python Software Foundation
"Download the file for your platform. If you're not sure which to choose,
learn more about installing packages."
Is my platform python?
pdf 2020 4.1 is newer than pdfminer
which one?
Best practices for python? short ver
The journey
All forums want to help
I did horse handicapping and Access fourms
At first a few gave all the VBA code I needed 40+years ago
Then I was reminded I needed to do the work
Then I got questions and understood what those kind coders meant
AND YET I ASKED A LAME QUESTION!
thank you for being patient
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: A PDF journey to find all python PDF

2020-04-03 Thread Michael Torrie
On 4/3/20 1:02 PM, anson freer wrote:
> This forum mentioned the Tutor forum so I signed up
> I waited a day or 2 heard nothing so I sent msg
> got  Post by non-member to a members-only list
> replied to apologized and
> received auto msg
> part of which gave do's and don't's of forum
> then I realized I asked a really lame question
> Might take years for a answer

Did you sign up for the Tutors list?  Just head on over to
https://mail.python.org/mailman/listinfo/tutor and sign your email
address up, just like you did for this list.  Once you do that you won't
get any more moderator messages saying you're posting to a members-only
list.

Unfortunately your question was very unclear.  What exactly are you
trying to accomplish?

Python is a wonderful language, but for it to be useful to you, even in
working with existing code, you have to learn how to code in it
generally, like you did with VBA.  You may wish to google for some
Python tutorials to work through to learn the language first.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: A PDF journey to find all python PDF

2020-04-03 Thread Souvik Dutta
Python is not a platform your platform is the os. Choose the newer PDF
reader it often comprises more features than older ones (might be a bit
unstable though).  There are lots of books and free online tutorials to
learn python. Check them out first. If you have problem with English you
can use your native language. We would still help. Don't try to bite more
than you can chew.

Souvik flutter dev

On Sat, Apr 4, 2020, 2:26 AM anson freer  wrote:

> This forum mentioned the Tutor forum so I signed up
> I waited a day or 2 heard nothing so I sent msg
> got  Post by non-member to a members-only list
> replied to apologized and
> received auto msg
> part of which gave do's and don't's of forum
> then I realized I asked a really lame question
> Might take years for a answer
> When all fails YOUTUBE
> A youtube 3part vidio said I need a
> PDFParser= pdfminer or pdf 2020 4.1
> PDFDocument=a text file like notes???
> PDFPageInterpreter= no reslts
> PDFDevice+??
> Then
> I found Pycon 2018!
> Looked at the 30min+ forums and understood 0
> then little by little learned about REGEX and test and Asychronous
> So..
> I needed a PDF text reader
> found
> Python Software Foundation [US] pypi.org/project/pdfminer/#files
> then there is Search Projects
> I typed pdf and many pop up
> pdf 2020.4.1 =
> Python library for parsing PDFs
> I can find anything PDF
> It seems like Pdf is a mother with many children all with different fathers
> But no kid knows or talk to each other
> There are questions
> Do I make new DIR just for python and its results?
> Does the dnload go in my programs like 3.8.2 does
> warning on Python Software Foundation
> "Download the file for your platform. If you're not sure which to choose,
> learn more about installing packages."
> Is my platform python?
> pdf 2020 4.1 is newer than pdfminer
> which one?
> Best practices for python? short ver
> The journey
> All forums want to help
> I did horse handicapping and Access fourms
> At first a few gave all the VBA code I needed 40+years ago
> Then I was reminded I needed to do the work
> Then I got questions and understood what those kind coders meant
> AND YET I ASKED A LAME QUESTION!
> thank you for being patient
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list