Re: Module urljoin does not appear to work with scheme Gemini

2025-04-23 Thread Henry S. Thompson via Python-list
es: it would be silly to expect anyone to actually check even just the other 81 Permanent schemes to see if they should be added to this list, much less the Provisional or Historical ones, and even sillier to expect that the list ought to be regularly synchronised with the IANA registry. ht [1] ht

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Henry S. Thompson via Python-list
Schimon Jehudah via Python-list writes: > Yesterday, I have added support for a new syndication format, Gemini > feed. I note that 'gemini' is not (yet?) a registered URI scheme: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml ht -- Henry S. Tho

Re: Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
[with link] Henry S. Thompson via Python-list writes: > I've spent several days trying to get this example [1] working, using > Python3.11 and Cython 3.0.11 of Debian. > > I've copied the example files as carefully as I can, renamed some to > avoid a name clash with the

Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
d although the Cython version compiles, it doesn't work. Before giving details, just checking first if anyone can simply point to a set of files, preferably Pure Python but failing that Cython, that actually work for them. Thanks, ht -- Henry S. Thompson, School of Informatics

Logging into single file from multiple modules in python when TimedRotatingFileHandler is used

2022-06-21 Thread Chethan Kumar S
mport TimedRotatingFileHandler FORMATTER = logging.Formatter("%(asctime)s — %(name)s — %(message)s") LOG_FILE = "my_app.log" def get_file_handler(): file_handler = TimedRotatingFileHandler(LOG_FILE, when='midnight') file_handler.setFormatter(FORMATTER)

FW: pip Error

2021-12-11 Thread Sidharth S Nair
    Sent from [1]Mail for Windows   From: [2]Sidharth S Nair Sent: 11 December 2021 01:00 PM To: [3]python-list@python.org Subject: pip Error       Sent from [4]Mail for Windows   Hi, I am NINJAGAMING107 a active python user and lately I have

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

2021-03-10 Thread S Monzur
. I am now trying to remove the html tags from this text file, and running into issues as mentioned in the previous post. On Wed, Mar 10, 2021 at 3:46 PM Peter Otten <__pete...@web.de> wrote: > On 10/03/2021 04:35, S Monzur wrote: > > Thanks! I ended up using beautiful soup to

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

2021-03-09 Thread S Monzur
rsing > data without using regex ? Just a hint .. > > On Wed, Mar 10, 2021 at 04:22:19AM +0600, S Monzur wrote: > > Thank you and apologies! I did not realize how jumbled it was at the > > receiver's end. > > The code is now at this site : [1]https://pastebi

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

2021-03-09 Thread S Monzur
usly since it's an unindented mess now and can not be read easily. > > On Wed, Mar 10, 2021 at 03:07:14AM +0600, S Monzur wrote: > >Dear List, > > > >Newbie here. I am trying to loop over a text file to remove html tags, > >punctuation marks, stopwords. I have alrea

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

2021-03-09 Thread S Monzur
Dear List, Newbie here. I am trying to loop over a text file to remove html tags, punctuation marks, stopwords. I have already used Beautiful Soup (Python v 3.8.3) to scrape the text (newspaper articles) from the site. It returns a list that I saved as a file. However, I am not sure how to use a l

Re: Is there a log file that tracks every statement that is being executed when a program is running?

2020-10-25 Thread Maxime S
Hi, You can use the trace module for that: https://docs.python.org/3.8/library/trace.html Personally I tend to put print statement at strategic places instead, I find that easier to analyse than a full trace but YMMV. Maxime Le dim. 25 oct. 2020 à 01:25, Steve a écrit : > This would seriousl

"OSError: [Errno 9] Bad file descriptor" When I try to Install the library in conda prompt

2020-07-21 Thread Mathiyazhagan S
Dear Sir/Madam, I'm new to the python program. I'm trying to install the "numby" or anything to add into the library by using the windows command prompt I'm getting some error please find the attachment. So please help me to resolve this issue. Thank you -- https://mail.python.org/mailman/

RE: help

2020-07-18 Thread Castillo, Herbert S
Thank you, boB! Yes, I kept on opening the installer. Your directions were great from memory, and I will look into the Python tutor mailing list. Thanks again. Herbert -Original Message- From: boB Stepp Sent: Friday, July 17, 2020 7:43 PM To: Castillo, Herbert S Cc: python-list

help

2020-07-17 Thread Castillo, Herbert S
not sure of what to do? Thank you in advance. [cid:image002.jpg@01D65C6B.97D73D90] Herbert S. Castillo Graduate Student, CSULA hcast...@calstatela.edu<mailto:hcast...@calstatela.edu> C: 310-462-6269 -- https://mail.python.org/mailman/listinfo/python-list

Regarding error code 9

2020-06-25 Thread Manikandan S
Sir/Mam; While installing matplotlib in python i face this issue that it shows error : erro no 9 please reply with some solution for this error i am beginner so please explain in detail about this error and guide me to fix this error. Thank you -- https

Re: How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
On Monday, 23 March 2020 01:58:38 UTC+8, Beverly Pope wrote: > > On Mar 22, 2020, at 9:47 AM, A S wrote: > > > > I can't seem to paste pictures into this discussion so please see both my > > current and desired Excel output here: > > > > https://st

How to copy paragraphs (with number formatting) and images from Words (.docx) and paste into Excel (.xlsx) using Python

2020-03-22 Thread A S
I have contract clauses in Words (.docx) format that needs to be frequently copy and pasted into Excel (.xlsx) to be sent to the third party. The clauses are often updated hence there's always a need to copy and paste these clauses over. I only need to copy and paste all the paragraphs and image

Help with oop

2020-02-22 Thread S Y
How can I use remove,add and verify methods in class oop. Which has tuple with allowed values inside class. Like two classes cart and inventory Get Outlook for iOS -- https://mail.python.org/mailman/listinfo/python-list

Re: Fun with IO

2020-01-21 Thread Maxime S
Hi, Le ven. 17 janv. 2020 à 20:11, Frank Millman a écrit : > It works perfectly. However, some pdf's can be large, and there could be > concurrent requests, so I wanted to minimise the memory footprint. So I > tried passing the client_writer directly to the handler - > > await pdf_handler(

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 04:55:46 UTC+8, Joel Goldstick wrote: > On Wed, Dec 11, 2019 at 1:31 PM Ben Bacarisse wrote: > > > > A S writes: > > > > > I would like to extract all words within specific keywords in a .txt > > > file. For the keywords, t

Re: Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
On Thursday, 12 December 2019 02:28:09 UTC+8, Ben Bacarisse wrote: > A S writes: > > > I would like to extract all words within specific keywords in a .txt > > file. For the keywords, there is a starting keyword of "PROC SQL;" (I > > need this to be case i

Extract all words between two keywords in .txt file (Python)

2019-12-11 Thread A S
I would like to extract all words within specific keywords in a .txt file. For the keywords, there is a starting keyword of "PROC SQL;" (I need this to be case insensitive) and the ending keyword could be either "RUN;", "quit;" or "QUIT;". This is my sample .txt file. Thus far, this is my code:

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 23:48:21 UTC+8, Peter Otten wrote: > A S wrote: > > > On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > >> A S wrote: > >> > >> I think I've seen this question before ;) > >> > >> > I a

Re: Extract sentences in nested parentheses using Python

2019-12-05 Thread A S
On Tuesday, 3 December 2019 06:22:52 UTC+8, DL Neil wrote: > On 3/12/19 6:00 AM, Peter Otten wrote: > > A S wrote: > > I think I've seen this question before ;) > > In addition to 'other reasons' for @Peter's comment, it is a common > ComSc worked

Re: Extract sentences in nested parentheses using Python

2019-12-03 Thread A S
On Tuesday, 3 December 2019 01:01:25 UTC+8, Peter Otten wrote: > A S wrote: > > I think I've seen this question before ;) > > > I am trying to extract all strings in nested parentheses (along with the > > parentheses itself) in my .txt file. Please see the sample .

Extract sentences in nested parentheses using Python

2019-12-02 Thread A S
I am trying to extract all strings in nested parentheses (along with the parentheses itself) in my .txt file. Please see the sample .txt file that I have used in this example here: (https://drive.google.com/open?id=1UKc0ZgY9Fsz5O1rSeBCLqt5dwZkMaQgr). I have tried and done up three different cod

Re: psutil.boot_time() ... doesn't ?

2019-11-06 Thread Maxime S
Hello, You may want to read PEP 418 which nicely summaries the different clock available on each platform and their limitations. It looks like CLOCK_BOOTTIME is what you want but it is only available on Linux. Regards, Maxime. Le mer. 6 nov. 2019 à 18:23, R.Wieser a écrit : > Hello all, > >

Finding lines in .txt file that contain keywords from two different set()

2019-09-08 Thread A S
th the .xlsx file txtfilespath = os.chdir("C:/Users//Documents//Text") #Here I am reading and printing all the words in the .txt files and compare with the excel Cell A1: for name in os.listdir(txtfilespath): if name.endswith(".txt"): with open (name, "

How to only read words within brackets/ parentheses (in .txt file) using Python

2019-09-04 Thread A S
I understand that reading lines in .txt files would look something like this in Python: with open('filename','r') as fd: lines = fd.readlines() However, how do I run my code to only read the words in my .txt files that are within each balanced parenthesis? I am not sure how to go about it

Python bug in ArcGIS - Urban Network analysis tool

2018-07-29 Thread stanimira . s . 93
Hi there, I'm trying make reach analyze with Urban network analysis (UNA) tool in ArcGIS. It's based on points for buildings and pedestrian network of acceptability steets. The aim is to show how many people from each building can reach different building in radius of 150 meters (so i can find

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
What do you use, Gene? It seems most business program run on Windows. On Tue, Jul 17, 2018 at 5:14 PM, Gene Heskett wrote: > On Tuesday 17 July 2018 18:48:22 S Lea wrote: > > > nd that leads to a > > question, where did you get it?, and how long ago? Maybe its an old

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
Also, how does one get a 64 bit version? On Tue, Jul 17, 2018 at 4:04 PM, S Lea wrote: > Terry, > > BLESS YOU!!! > > The second option worked I installed python 3.7 and > then pycharm-community-2018.1.4. I'm following a video course by TTC How > To Program: Computer S

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
g pandas Downloading https://files.pythonhosted.org/packages/a9/e8/ ca7637c51767809cd7328dd01e246b8f2ec0fde566c9b7440b91d9a33460 /pandas-0.23.3-cp37-cp37m-win32.whl (6.8MB) 100% |████| 6.8MB 620kB/s Collecting pytz>=2011k (from pandas) Downloading https://files.

Re: can't install/run pip (Latest version of Python)

2018-07-17 Thread S Lea
;help", "copyright", "credits" or "license" for more information. >>> Is this what you were suggesting? On Mon, Jul 16, 2018 at 8:47 PM, Gene Heskett wrote: > On Monday 16 July 2018 23:06:19 S Lea wrote: > > > 'pip' not re

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
of python 3.7 On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > 'pip' not recognized as internal or external command, operable program or > batch. > > And for some reason it's a 32 bit version > > On Mon, Jul 16, 2018 at 8:03 PM, S Lea wrote: > >> Thank

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
Also, I can't find the location of Python insallation, it refers to C:\Users\Precision\PycharmProjects\my first project from video\venv\Scripts On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > of python 3.7 > > On Mon, Jul 16, 2018 at 8:06 PM, S Lea wrote: > >> 'pip

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
'pip' not recognized as internal or external command, operable program or batch. And for some reason it's a 32 bit version On Mon, Jul 16, 2018 at 8:03 PM, S Lea wrote: > Thank you for reaching out. > > 1) Don't know what do you mean by the traceback. > 2) In

Re: can't install/run pip (Latest version of Python)

2018-07-16 Thread S Lea
Thank you for reaching out. 1) Don't know what do you mean by the traceback. 2) In DOS, pip install pandas 3) Yes, in DOS, Win 10 4) 3.7 5) Not getting much info On Sun, Jul 15, 2018 at 5:44 PM, boB Stepp wrote: > On Sun, Jul 15, 2018 at 7:34 PM S Lea wrote: > > > > I c

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

can't install/run pip (Latest version of Python)

2018-07-15 Thread S Lea
I can't seem to install the pips, DOS gives me the syntex i invalid, any thoughts? Thank you -- https://mail.python.org/mailman/listinfo/python-list

Fwd: QUERY

2018-06-02 Thread S Srihari
To: python-list@python.org I AM UNABLE TO INSTALL PYTHON. KINDLY HELP ME. -- https://mail.python.org/mailman/listinfo/python-list

EuroPython 2018: First list of accepted sessions available

2018-05-31 Thread Alexander C. S. Hendorf
We have received an amazing collection of 376 proposals. Thank you all for your contributions! Given the overwhelming quality of the proposals, we had some very difficult decisions to make. Nonetheless we are happy to announce we have published the first 120+ sessions. https://ep2018.europython.eu

Re: Why no '|' operator for dict?

2018-02-05 Thread Maxime S
2018-02-05 9:14 GMT+01:00 Ian Kelly : > On Mon, Feb 5, 2018 at 12:35 AM, Frank Millman wrote: >> 2. Is there a better way to do what I want? > > The dict.items() view is explicitly set-like and can be unioned, so > you can do this: > > py> dict(d1.items() | d2.items()) > > As to the question of wh

pyserial and end-of-line specification

2017-07-14 Thread F S
I just started using Python and I am writing code to access my serial port using pyserial. I have no problem with unix based text coming in the stream using a LF (0x0A) record separator. I also am using unblocked IO. However I have some sensor devices that use the windows CRLF (0x0A,0x0D) record

Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-06 Thread Ben S. via Python-list
Can I somehow check from inside a Python script if the executing Python engine is major version v2 or v3? I am thinking about a code similar to if (os.python-majorversion<3) print hello else print (hello) Additional question: Is there a way to execute a python script with v3 python engine

"Python launcher" required to run *.py scripts on Windows?

2017-06-26 Thread Ben S. via Python-list
As I observed v3.6.1 installs (on Windows 7) in addition to the core python engine a second program "Python Launcher". As far as I read this component seems to be not necessary since it only aims to facilitate the handling with *.py scripts on Windows. When I always call Python script from Comm

Syntax error for simple script

2017-06-26 Thread Ben S. via Python-list
Sorry for this newbie question: I installed Python v3.6.1 on win 7. Afterwards I tried to execute the following simple python script from webpage http://www.pythonforbeginners.com/code-s...me-script/: Python Code: from datetime import datetime now = datetime.now() mm = str(now.month) dd

Re: Instagram: 40% Py3 to 99% Py3 in 10 months

2017-06-16 Thread Rauklei P . S . Guimarães
Very Nice. Em sex, 16 de jun de 2017 às 13:30, Terry Reedy escreveu: > https://thenewstack.io/instagram-makes-smooth-move-python-3/ > -- > Terry Jan Reedy > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

Reg : Wikipedia 1.4 package

2017-06-08 Thread Siva Kumar S
Dear members, How to install Wikipedia 1.4 package in python 2.7 above without PIP. from, Sivakumar S -- https://mail.python.org/mailman/listinfo/python-list

Reg : Wikipedia 1.4 package

2017-06-08 Thread Siva Kumar S
Dear members, how to install wikipedia 1.4 package in python 2.7 above without PIP. from, Sivakumar S -- https://mail.python.org/mailman/listinfo/python-list

ValueError: Input contains NaN, infinity or a value too large for dtype('float32')

2017-04-27 Thread Siva Kumar S
Source Code: clean_train_reviews=[] for review in train["review"]: clean_train_reviews.append(review_to_wordlist(review, remove_stopwords=True)) trainDataVecs=getAvgFeatureVecs(clean_train_reviews, model, num_features) print "Creating average feature vecs for test reviews" clean_test_review

Re: Problem while building Python 3.6 from source.

2017-01-15 Thread Michael S
Sat, Jan 14, 2017 at 5:00 AM, Michael S wrote: >> Hello, >> I am new to this mailing-list and I really don't know whether this >> mail should belong to python-dev. Please tell me, if so. > > Hi and welcome! This kind of thing is best on this list initially. > >> Unfo

Problem while building Python 3.6 from source.

2017-01-13 Thread Michael S
Hello, I am new to this mailing-list and I really don't know whether this mail should belong to python-dev. Please tell me, if so. Unfortunately, I have got the following problem: I wanted to build and install Python 3.6 from source but did not succeed. To clarify my situation, I got as an operat

Re: Python for WEB-page !?

2017-01-08 Thread Eric S. Johansson
On 1/5/2017 7:48 PM, Michael Torrie wrote: > While Python can do that, using a web framework to process HTTP requests > and generate HTML to display in the browser, I don't believe Python is > the appropriate language for the task at hand. Most web sites that do > interactive formula calculations

Re: ANN: JavaScrypthon 0.5, now with embedded evaluation of transpiled code

2016-11-28 Thread Eric S. Johansson
On 11/28/2016 2:02 PM, Amirouche Boubekki wrote: > Also, FWIW users are looking for a Javascript replacement that is real > Python, not another coffeescript. does this count? http://brython.info/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Promoting your own library

2016-11-12 Thread Eric S. Johansson
On 11/11/2016 6:59 PM, Ben Finney wrote: > mirko bonasorte writes: > >> what is the most appropriate way for a developer to promote his own >> Python library? > The general answer is: Publish it with full metadata on PyPI. That's > where the Python community looks to find third-party modules, so

Re: advanced SimpleHTTPServer?

2016-11-02 Thread Eric S. Johansson
On 11/2/2016 2:40 PM, Chris Warrick wrote: > Because, as the old saying goes, any sufficiently complicated Bottle > or Flask app contains an ad hoc, informally-specified, bug-ridden, > slow implementation of half of Django. (In the form of various plugins > to do databases, accounts, admin panels

Re: advanced SimpleHTTPServer?

2016-11-02 Thread Eric S. Johansson
On 11/2/2016 12:15 PM, Chris Warrick wrote: > SimpleHTTPServer is meant to be used for development and testing. It > should not be used for anything remotely serious for security and > speed reasons. Given that many people are trying to use SimpleHTTPServer for "production" should teach us that

Re: comapring 2 sequences of DNA ouput the silent and non mutations

2016-10-30 Thread Maxime S
2016-10-29 21:38 GMT+02:00 : > > Code: > > [...] > > for i in range (len(protein) & len(seq1)) : > > if protein[i] != mutantPRO[i] : >print (protein[i] + str(i) + mutantPRO[i]) >A+= 1 > else: > if seq1[i:i+3] != mutant[i:i+3]: >

Re: [Python-ideas] Inconsistencies

2016-09-12 Thread Eric S. Johansson
On 9/11/2016 10:26 PM, Chris Angelico wrote: > No, God isn't part of the universe, any more than an author is part of > his novel. > as any fiction writer will tell you, the author is found in one or more of their characters. -- https://mail.python.org/mailman/listinfo/python-list

Re: C Python extension to export an Function

2016-09-01 Thread Pavel S
If you're familiar with C++, I recommend to have a look at Boost::Python. Sample program: #include #include void world() { std::cout << "hello world" << std::endl; } BOOST_PYTHON_MODULE( hello ) { using namespace ::boost::python; def( "world", &world ); } Usage: python -c "i

Re: Is duck-typing misnamed?

2016-08-28 Thread Eric S. Johansson
On 8/27/2016 7:28 PM, ROGER GRAYDON CHRISTMAN wrote: > Your response is appreciated. I just thought I'd comment a little more on > the > script: > > Woman: I'm not a witch! I'm not a witch! > > V: ehh... but you are dressed like one. > > W: They dressed me up like this! > > All: naah no we

How asyncio works? and event loop vs exceptions

2016-07-22 Thread Marco S. via Python-list
I'm developing a web app based on aiohttp, and I find the event loop concept very interesting. I never programmed with it before, but I know that node.js and GUIs are based on it. What I can't understand is how asyncio make it possible to run multiple tasks concurrently, since it's single threaded

Re: __all__ attribute: bug and proposal

2016-06-27 Thread Pavel S
> but what about integers or strings? Can you provide example? --- No matter if __all__ uses names or objects, I think it should be validated not only when importing '*', but always. Frankly, do you always unit-test if __all__ works? -- https://mail.python.org/mailman/listinfo/python-list

__all__ attribute: bug and proposal

2016-06-27 Thread Pavel S
Hi, I today uncovered subtle bug and would like to share it with you. By a mistake, I forgot to put comma into '__all__' tuple of some module. Notice missing comma after 'B'. # module foo.py __all__ = ( 'A', 'B' 'C', ) class A: pass class B: pass class C: pass If you try to import

Re: mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Pavel S
Have you considered to use rather WSGI-based solution? (for Apache Httpd is mod_wsgi). Mod_python is totally obsolete. -- https://mail.python.org/mailman/listinfo/python-list

Re: UserList - which methods needs to be overriden?

2016-06-10 Thread Maxime S
2016-06-10 10:37 GMT+02:00 Peter Otten <__pete...@web.de>: > > Nagy László Zsolt wrote: > > > I'm not sure wich one is the best. Peter wrote that UserList was left in > > collections only for backward compatiblity. This might be a point > > I'll take that back. I looked around and found no evidence

Re: errorhandler 2.0.0 Released!

2016-06-06 Thread Pavel S
Hi, can you explain, why is the attribute 'fired' class-level and not instance-level? There must be good reason for modifying class attribute from instance. Dne pondělí 6. června 2016 15:26:08 UTC+2 Chris Withers napsal(a): > Hi All, > > errorhandler is a tiny but useful logging handler for th

Re: Python on Windows with linux environment

2016-06-03 Thread Eric S. Johansson
On 6/3/2016 12:02 AM, Muhammad Ali wrote: > On Friday, June 3, 2016 at 6:27:50 AM UTC+8, Eric S. Johansson wrote: >> On 6/2/2016 2:03 PM, Joel Goldstick wrote: >>> Although the OP is using Windows 7, according to recent articles, >>> Ubuntu is teaming with MS for Windows

Re: Python on Windows with linux environment

2016-06-02 Thread Eric S. Johansson
On 6/2/2016 2:03 PM, Joel Goldstick wrote: > Although the OP is using Windows 7, according to recent articles, > Ubuntu is teaming with MS for Windows 10 to include a bash shell, > presumably with the package management of Ubuntu (debian), with pip > goodness and virtualenv and virtualenvwrapper.

Re: Python on Windows with linux environment

2016-06-02 Thread Eric S. Johansson
On 6/2/2016 12:38 PM, Wildman via Python-list wrote: > On Thu, 02 Jun 2016 04:22:45 -0700, Muhammad Ali wrote: > >> Hi, >> >> I use windows regularly, however, I use linux for only my research work at >> supercomputer. In my research field (materials science) most of the scripts >> are being writ

Setting Return-Path in email

2016-05-23 Thread ragav s
toaddress = [to] if cc: msg['Cc'] = cc toaddress = to+","+ cc toaddress = toaddress.split(",") type = 'plain' part = MIMEText(html, type,'utf-8') msg.attach(part) s = smtplib.SMTP('localhost'

Best practices for single file modules Inspired by: Best Practices for Internal Package Structure

2016-04-05 Thread Eric S. Johansson
I was inspired by the thread on packaging practices discussion with bidict to ask a related question which is what are the best practices with packaging/releasing a single file Python module ? Back story: I'm always creating little bits of useful code that I want to reuse (for example, recursi

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Eric S. Johansson
On 3/30/2016 9:09 AM, Chris Angelico wrote: On Thu, Mar 31, 2016 at 12:06 AM, Eric S. Johansson wrote: I need a co-conspirator with better hands than mine to get through the next stage which is some form of an AST smart editor that operates on larger chunks such as idioms or snippets in a

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-30 Thread Eric S. Johansson
On 3/30/2016 6:21 AM, BartC wrote: On 30/03/2016 11:07, Sven R. Kunze wrote: On 30.03.2016 01:29, Eric S. Johansson wrote: On 3/29/2016 6:05 AM, Sven R. Kunze wrote: Python = English As someone who writes English text and code using speech recognition, I can assure you that Python is

Re: Learning Python (or Haskell) makes you a worse programmer

2016-03-29 Thread Eric S. Johansson
On 3/29/2016 6:05 AM, Sven R. Kunze wrote: Python = English As someone who writes English text and code using speech recognition, I can assure you that Python is not English. :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-27 Thread Marco S. via Python-list
Steven D'Aprano wrote: > The point you might have missed is that treating lists as if they were > mappings violates at least one critical property of mappings: that the > relationship between keys and values are stable. This is true for immutable maps, but for mutable ones, you can simply do ma

Suggestion: make sequence and map interfaces more similar

2016-03-23 Thread Marco S. via Python-list
I noticed that the sequence types does not have these methods that the map types has: get(), items(), keys(), values(). It could seem useless to have them for sequences, but I think it will ease the creation of functions and methods that allow you to input a generic iterable as parameter, but nee

Regarding installation of python-3.5.1

2016-03-06 Thread Roshan S Sontakke
Gud afternoon sir my self Roshan sontakke I have down loaded a setup of python-3.5.1 but nt able to install it gives an error message -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Mike S via Python-list
On 2/27/2016 10:13 AM, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did n

Speech recognition and synthesi in Python

2016-02-25 Thread Mike S via Python-list
Pretty nice example code... https://ggulati.wordpress.com/2016/02/24/coding-jarvis-in-python-3-in-2016/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Computational Chemistry Analysis

2016-02-25 Thread Mike S via Python-list
On 2/25/2016 7:31 AM, Oscar Benjamin wrote: On 25 February 2016 at 01:01, Feagans, Mandy wrote: Hi! I am a student interested in conducting computational analysis of protein-ligand binding for drug development analysis. Recently, I read of an individual using a python program for their studie

Python used in several places in LIGO effort

2016-02-24 Thread Mike S via Python-list
https://www.reddit.com/r/IAmA/comments/45g8qu/we_are_the_ligo_scientific_collaboration_and_we/czxnlux?imm_mid=0e0d97&cmp=em-data-na-na-newsltr_20160224 -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] How the heck does async/await work in Python 3.5

2016-02-24 Thread Joao S. O. Bueno
Today I also stumbled on this helpful "essay" from Brett Cannon about the same subject http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5 On 23 February 2016 at 18:05, Sven R. Kunze wrote: > On 20.02.2016 07:53, Christian Gollwitzer wrote: > > If you have difficulties wit hthe

good python tutorial

2016-02-22 Thread Mike S via Python-list
This site was recommended by a friend, it looks really well put together, I thought it might be of interest to people considering online tutorials. http://www.python-course.eu/index.php -- https://mail.python.org/mailman/listinfo/python-list

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Mike S via Python-list
On 2/19/2016 8:58 PM, Denis Akhiyarov wrote: On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, wrong.a...@gmail.com wrote: I am mostly getting positive feedback for Python. It seems Python is used more for web based applications. Is it equally fine for creating stand-alone *.exe's? Can the

Re: Cygwin and Python3

2016-02-11 Thread Mike S via Python-list
On 2/10/2016 11:46 PM, blindanag...@nowhere.net wrote: On 10/02/2016 23:05, Mike S wrote: On 2/10/2016 5:05 AM, Mark Lawrence wrote: [snip] Have you seen this? http://www.davidbaumgold.com/tutorials/set-up-python-windows/ I have now, but I'm perfectly happy with the free versio

Re: Cygwin and Python3

2016-02-10 Thread Mike S via Python-list
On 2/10/2016 5:05 AM, Mark Lawrence wrote: On 10/02/2016 03:39, Mike S via Python-list wrote: On 2/9/2016 7:26 PM, Larry Hudson wrote: On 02/09/2016 08:41 AM, Fillmore wrote: Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for that matter). The command will hang

Re: Cygwin and Python3

2016-02-09 Thread Mike S via Python-list
On 2/9/2016 7:26 PM, Larry Hudson wrote: On 02/09/2016 08:41 AM, Fillmore wrote: Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for that matter). The command will hang and nothing happens. Just curious... Since Python runs natively in Windows, why are you trying

Re: from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

2016-02-09 Thread Mike S via Python-list
On 2/9/2016 1:33 AM, Mark Lawrence wrote: On 09/02/2016 04:22, Mike S via Python-list wrote: I have Python 3.4.4 installed on Windows 7, also IPython, scipy, numpy, statsmodels, and a lot of other modules, and am working through this tutorial http://www.analyticsvidhya.com/blog/2016/02/time

from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

2016-02-08 Thread Mike S via Python-list
t.show(block=false) #perform Dickey=Fuller test print('Results of Dickey-Fuller Test:') dftest = adfuller(timeseries, autolag='AIC') dfoutput = pd.Series(dftest[0:4], index=['Test Statistic','p-value','#Lags Used','Number

Re: setup failed

2016-02-08 Thread Mike S via Python-list
On 2/4/2016 4:39 AM, Prince Thomas wrote: Hi I am an computer science engineer. I downloaded the python version 3.5.1.amd64 and just python 3.5.1. The problem is when I install the program setup is failed and showing 0*80070570-The file or directory is corrupted and unreadable. I install the n

Re: Install Error

2016-02-08 Thread Mike S via Python-list
On 2/3/2016 1:55 PM, Barrie Taylor wrote: Hi, I am attempting to install and run Python3.5.1 on my Windows machine. After installation on launching I am presented the attached error message. It reads: 'The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your compu

Re: Cannot step through asynchronous iterator manually

2016-01-30 Thread Maxime S
2016-01-30 11:51 GMT+01:00 Frank Millman : > "Chris Angelico" wrote in message > news:CAPTjJmoAmVNTCKq7QYaDRNQ67Gcg9TxSXYXCrY==s9djjna...@mail.gmail.com... > > >> On Sat, Jan 30, 2016 at 7:22 PM, Frank Millman >> wrote: >> > We had a recent discussion about the best way to do this, and ChrisA >>

>>> %matplotlib inline results in SyntaxError: invalid syntax

2016-01-29 Thread Mike S via Python-list
I have installed Python 3.4.4 on XPSP3 and am trying to work my way through this tutorial. A Complete Tutorial on Ridge and Lasso Regression in Python http://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lasso-regression-python/ In Step 2 "Why Penalize the Magnitude of Coefficien

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2016-01-29 Thread Mike S via Python-list
On 1/28/2016 11:57 PM, Steven D'Aprano wrote: On Fri, 29 Jan 2016 06:04 pm, Mike S wrote: %matplotlib inline I get an error on the last line. I am running this code in Idle Python 3.4.4 Shell... Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on

Re: Question about asyncio and blocking operations

2016-01-28 Thread Maxime S
2016-01-28 17:53 GMT+01:00 Ian Kelly : > On Thu, Jan 28, 2016 at 9:40 AM, Frank Millman wrote: > > > The caller requests some data from the database like this. > > > >return_queue = asyncio.Queue() > >sql = 'SELECT ...' > >request_queue.put((return_queue, sql)) > > Note that since thi

Re: When I need classes?

2016-01-13 Thread Mike S via Python-list
On 1/11/2016 3:45 PM, Travis Griggs wrote: On Jan 10, 2016, at 9:48 AM, Bernardo Sulzbach wrote: Essentially, classes (as modules) are used mainly for organizational purposes. Although you can solve any problem you would solve using classes without classes, solutions to some big problems ma

Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list!

2015-12-10 Thread françai s
Administrators and moderators of Python-list, please erase all the messages that I not should have posted here in python-list. I ask this because I probably be in future a good programmer famous and I do not want to talk about the topics that I should not have posted here in python-list. I decid

Re: Why won't this run?

2015-11-19 Thread Mike S via Python-list
On 11/15/2015 12:38 PM, jbak36 wrote: Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. #this program says hello and asks for my name print:('Hello world!') Hello world! print:('What

  1   2   3   4   5   6   7   8   >