Re: Compare word to word files

2021-03-10 Thread jak
Il 11/03/2021 05:28, CLYMATIC GAMING ha scritto: Hello , I want to compare word to word files please he me! copy and paset this string onto Google page: how to find difference between 2 files in Python ...and press "Google Search" button. -- https://mail.python.org/mailman/listinfo/python-lis

Digest emails stopped?

2021-03-10 Thread pjfarley3
Is anyone else who is set to receive digest emails receiving them since Sunday 3/7/2021? Sunday was the last day I received one. I was under the impression that any activity at all on the list would result in a digest email being sent at the end of that day, and according to the archive there has

Re: Application problems

2021-03-10 Thread Thomas Jollans
On 10/03/2021 21:50, Mats Wichmann wrote: For the first one, don't feel too bad, this ("opening the normal python") seems to be biting a lot of people recently I wonder why. Python's installation process isn't any different from most other Windows software released the past 25-ish years. Is

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
On 10/03/2021 20:57, Mats Wichmann wrote: On 3/10/21 11:56 AM, Thomas Jollans wrote: On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system tha

Re: How to create both a c extension and a pure python package

2021-03-10 Thread MichaƂ Jaworski
I was dealing with a very similar problem a long time ago. I wanted to provide built wheels of my Cython extension for various OSes (Windows, macOS, Linux) and various Python versions (from 2.7 up to 3.9) but I also wanted to have a sdist package for all the variations that I didn't cover at the ti

Re: Application problems

2021-03-10 Thread Igor Korot
Hi, On Wed, Mar 10, 2021 at 2:37 PM Yoosuf Oluwatosin via Python-list wrote: > > > I have downloaded python 3.9.2 on my hp laptop with windows 10 and tried > opening both the normal python and the idle python on my pc but the norml > keeps opening the modify, repair and uninstall page while the

Re: Application problems

2021-03-10 Thread Mats Wichmann
On 3/10/21 12:25 PM, Yoosuf Oluwatosin via Python-list wrote: I have downloaded python 3.9.2 on my hp laptop with windows 10 and tried opening both the normal python and the idle python on my pc but the norml keeps opening the modify, repair and uninstall page while the idle keeps giving a

Application problems

2021-03-10 Thread Yoosuf Oluwatosin via Python-list
I have downloaded python 3.9.2 on my hp laptop with windows 10 and tried opening both the normal python and the idle python on my pc but the norml keeps opening the modify, repair and uninstall page while the idle keeps giving a startup error. I have uninstalled, deleted and reinstalled severa

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Mats Wichmann
On 3/10/21 11:56 AM, Thomas Jollans wrote: On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system that can't use the C part, you could just decl

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
On 10/03/2021 18:42, Marco Sulla wrote: On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: Why are you doing this? If all you want is for it to be possible to install the package from source on a system that can't use the C part, you could just declare your extension modules optional Because

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Marco Sulla
On Wed, 10 Mar 2021 at 16:45, Thomas Jollans wrote: > Why are you doing this? > > If all you want is for it to be possible to install the package from > source on a system that can't use the C part, you could just declare > your extension modules optional Because I want to provide (at least) two

Re: How to create both a c extension and a pure python package

2021-03-10 Thread Thomas Jollans
On 09/03/2021 23:42, Marco Sulla wrote: As title. Currently I ended up using this trick in my setup.py: if len(argv) > 1 and argv[1] == "c": sys.argv = [sys.argv[0]] + sys.argv[2:] setuptools.setup(ext_modules = ext_modules, **common_setup_args) else: setuptools.setup(**common_se

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread Dan Stromberg
If you want text without tags, sometimes it's easier to use a text-based web browser, EG: #!/bin/sh # for mutt to view html e-mails #where html2txt is a shell script that performs the conversion, e.g. by #calling links -html-numbered-links 1 -html-images 1 -dump "file://$@" #or # #lynx -force_

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread Peter Otten
On 10/03/2021 13:19, S Monzur wrote: I initially scraped the links using beautiful soup, and from those links downloaded the specific content of the articles I was interested in (titles, dates, names of contributor, main texts) and stored that information in a list. I then saved the list to a tex

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread S Monzur
I initially scraped the links using beautiful soup, and from those links downloaded the specific content of the articles I was interested in (titles, dates, names of contributor, main texts) and stored that information in a list. I then saved the list to a text file. https://pastebin.com/8BMi9qjW .

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread Peter Otten
On 10/03/2021 04:35, S Monzur wrote: Thanks! I ended up using beautiful soup to remove the html tags and create three lists (titles of article, publications dates, main body) but am still facing a problem where the list is not properly storing the main body. There is something wrong with my code

Re: Best practices regarding PYTHONPATH

2021-03-10 Thread Thomas Jollans
On 09/03/2021 22:52, Cameron Simpson wrote: On 09Mar2021 05:00, Larry Martell wrote: Which is considered better? Having a long import path or setting PYTHONPATH? For example, in a project where 50% of the imports come from the same top level directory is it better to add that dir to the path o

Re: How to loop over a text file (to remove tags and normalize) using Python

2021-03-10 Thread Joel Goldstick
On Tue, Mar 9, 2021 at 10:36 PM S Monzur wrote: > > Thanks! I ended up using beautiful soup to remove the html tags and create > three lists (titles of article, publications dates, main body) but am still > facing a problem where the list is not properly storing the main body. > There is something