o detailed here about that difference between stdout and stderr
> because in the wild (e.g. on StackOverflow) you often find "use logging
> log levels" as a solution for that problem, which IMHO isn't one.
>
> Now the question:
> From my research on the docs it seems
On 1/4/23, c.bu...@posteo.jp wrote:
>
> often seen "--verbose" switch in command line applications should
> affect only the messages given to the users. This means messages on
> "stdout". That is what this question is about.
Is this additional context information such as help and definitions?
If
ser.parse_args()
logger = logging.getLogger(__name__)
logger.setLevel(getattr(logging,args.loglevel))
From: Python-list on
behalf of c.bu...@posteo.jp
Date: Wednesday, January 4, 2023 at 8:55 AM
To: python-list@python.org
Subject: No solution for "--verbose" (on stdout) output in Pythonds sta
On Thu, 5 Jan 2023 at 00:54, wrote:
>
> Hello,
>
> first I have to say that in my current and fresh humble opinion the
> often seen "--verbose" switch in command line applications should
> affect only the messages given to the users. This means messages on
> "stdout". That is what this question is
This is not only my opinion but also part of the Python documentation:
https://docs.python.org/3/howto/logging.html#when-to-use-logging
I'm so detailed here about that difference between stdout and stderr
because in the wild (e.g. on StackOverflow) you often find "use logging
log levels&q
new import NEW
@NEW
... def new_func(a=[]):
... a.append('new appended')
... return a
...
new_func()
['new appended']
new_func()
['new appended']
Spoiler - My solution is at
https://book-of-gehn.github.io/articles/2021/08/14/Fresh-Python-Defaults.html
ed about that there's no elegant way to use empty
list or dict as a default parameter. While this can be solved like this:
>>> def no_new_func(a=None):
...if a == None:
a = []
...a.append('new')
...return a
I have to say I find thi
> To: python-list@python.org
> > Subject: NEED SOLUTION FOR ERROR
> >
> > I am Akshat Sharma one of python user from INDIA . I am facing problem
> in getting pip installed.
> > When I am trying to install a module using PIP it showing me error : No
> such file foun
On 2020-10-11 09:13, hey wrote:
Sent from Mail for Windows 10
From: hey
Sent: Saturday, October 10, 2020 7:40 PM
To: python-list@python.org
Subject: NEED SOLUTION FOR ERROR
I am Akshat Sharma one of python user from INDIA . I am facing problem in
getting pip installed.
When I am trying to
Sent from Mail for Windows 10
From: hey
Sent: Saturday, October 10, 2020 7:40 PM
To: python-list@python.org
Subject: NEED SOLUTION FOR ERROR
I am Akshat Sharma one of python user from INDIA . I am facing problem in
getting pip installed.
When I am trying to install a module using PIP it
alon.naj...@gmail.com writes:
> hi
> looking for git with a solution - merge many pdfs to 1 pdf (no matter what
> language)
There is a clone of pdftk on github: https://github.com/ericmason/pdftk
Another possibility is mupdf: http://git.ghostscript.com/?p=mupdf.git
--
Pieter van Oo
hi
looking for git with a solution - merge many pdfs to 1 pdf (no matter what
language)
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
im not entirely happy with my solution and would love to hear your
suggestions on how to improve the solution.
I simplified the task while keeping the code working.
Task:
financial accounts are described by XML documents. I want to architecture
the code to be easily extendible ( easy to
hello can i get solution
--
https://mail.python.org/mailman/listinfo/python-list
1. What priorities should Hossie consider?
2. What are some of the concerns around enforcement of the contracts?
3. How should Hossie carry out negotiations?
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, July 27, 2017 at 9:01:17 PM UTC+10, Case Solution & Analysis wrote:
> Case Solution and Analysis of Bratwurst, Beer and Business: Planning for
> Growth at Wurstküche by Thomas Knapp, Jacqueline Orr is available at a lowest
> price, send email to casesolutionscentre(at)
Greetings Students,
We do have Solution Manuals and Test Bank for FINANCIAL AND MANAGERIAL
ACCOUNTING FOR MBAs 5TH EDITION BY EASTON at reasonable price. You can get
above mentioned resources by sending email to pro.fast(@)hotmail(dot)com
Send your order queries at PRO.FAST(@)HOTMAIL(DOT)COM
first, why, and how would you go about addressing
it? (10 points)
On Saturday, September 2, 2017 at 5:58:15 AM UTC-5, Case Solution & Analysis
wrote:
> Carolinas HealthCare System: Consumer Analytics Case Solution, Case Analysis,
> Case Study Solution by John A. Quelch, Margaret
Do u have testbanks for ???
THE LAW OF WORK: INDUSTRIAL RELATIONS AND COLLECTIVE BARGAINING
Author(s): David J. Doorey
ISBN: 978-1-77255-166-2
Publisher:Emond Publishing
--
https://mail.python.org/mailman/listinfo/python-list
On Thursday, June 29, 2017 at 6:04:07 AM UTC-4, Test Banks wrote:
> Greetings Students,
>
> We do have Solution Manuals and Test Bank for FINANCIAL AND MANAGERIAL
> ACCOUNTING FOR MBAs 5TH EDITION BY EASTON at reasonable price. You can get
> above mentioned resources by s
On Friday, August 4, 2017 at 5:08:20 PM UTC-5, Case Solution & Analysis wrote:
> Case Solution and Analysis of ENOVE: Business Strategy in a Transitioning
> Economy by Maciek Nowak, Alexander Stoll is available at a lowest price, send
> email to casesolutionscentre(at)gmail(dot)co
Solutions of this case study
--
https://mail.python.org/mailman/listinfo/python-list
What priorities should hossie consider?
What are some of the concerns around enforcement of the contract?
How should hossie carry out negotiations?
--
https://mail.python.org/mailman/listinfo/python-list
On Saturday, 8 July 2017 05:22:24 UTC+2, Case Solution & Analysis wrote:
> Case Solution and Analysis of A Dark Horse in the Global Smartphone Market:
> Huawei's Smartphone Strategy by Yangao Xiao, Tony Tong, Guoli Chen, Kathy Wu
> is available at a lowest pr
On Mon, 14 Aug 2017 15:48:02 -0700, zhilongch64 wrote:
Please do the whole world a big favour & NEVER reply to spam
if no-one responded this heinous practice would die.
--
I hate users
you sound like a sysadmin already!
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, June 30, 2017 at 3:03:05 PM UTC-5, Test Banks wrote:
> Greetings,
>
> We do have Solution Manuals and Test Bank for SOUTH-WESTERN FEDERAL TAXATION
> 2018: CORPORATIONS, PARTNERSHIPS, ESTATES AND TRUSTS 41st EDITION BY HOFFMAN
> at reasonable price. You can get
On Friday, June 30, 2017 at 3:03:05 PM UTC-5, Test Banks wrote:
> Greetings,
>
> We do have Solution Manuals and Test Bank for SOUTH-WESTERN FEDERAL TAXATION
> 2018: CORPORATIONS, PARTNERSHIPS, ESTATES AND TRUSTS 41st EDITION BY HOFFMAN
> at reasonable price. You can get
On Aug 10, 2017 7:15 AM, wrote:
>
>
>
> solutions manual to MODERN OPERATING SYSTEMS 3rd ed A.S.TANENBAUM
>
>
> can you plz provide it for me..
This mailing list is for the Python programming language, not for operating
systems. It is possible that someone else on this list might be able to
help
solutions manual to MODERN OPERATING SYSTEMS 3rd ed A.S.TANENBAUM
can you plz provide it for me..
--
https://mail.python.org/mailman/listinfo/python-list
Le samedi 5 août 2017 23:30:34 UTC+1, Case Solution & Analysis a écrit :
> Case Solution and Analysis of Alqueria: More than Just a Glass of Milk (A) by
> Nathalia Franco, Sebastian Duenas, Margarita Castillo is available at a
> lowest price, send email to casesolutionscentre(at)gma
On Saturday, July 1, 2017 at 10:56:39 PM UTC+3, Case Solution & Analysis wrote:
> Case Solution and Analysis of The Los Angeles Philharmonic Orchestra:
> Cultural Entrepreneurship by Rohit Deshpande, Annelena Lobb, send email to
> casesolutionscentre(at)gmail(dot)com
>
> C
Case Solution and Analysis of Amazon and Future Group: Rethinking the Alliance
Strategy by Meeta Dasgupta is available at a lowest price, send email to
casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16M108 / W16382
Get Case Study Solution and
Case Solution and Analysis of Vibrance Kegel Device: Capturing Mindshare by
Doreen Kum is available at a lowest price, send email to
casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16A021 / W16387
Get Case Study Solution and Analysis of Vibrance
Case Solution and Analysis of Rajghat Power House: The Economy or the
Environment by Veena Keshav Pailwar is available at a lowest price, send email
to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16M089 / W16385
Get Case Study Solution and
Case Solution and Analysis of The Sri Lankan Health Crisis and the Middleman by
Stephen Grainger is available at a lowest price, send email to
casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16M117 / W16396
Get Case Study Solution and Analysis of
Case Solution and Analysis of Royal FloraHolland: The Dutch Floriculture Supply
Chain by P. Fraser Johnson, Ken Mark is available at a lowest price, send email
to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16D015 / W16377
Get Case Study
Case Solution and Analysis of The Cheese and the Oligarchs: The Politics, the
Media, and Israel's Dream of a Start-Up Nation by Rafael Di Tella, Christine
Snively is available at a lowest price, send email to
casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Solution and Analysis of Sustainable Investing at Generation Investment
Management by Stefan Reichelstein, Donna Bebb is available at a lowest price,
send email to casesolutionscentre(at)gmail(dot)com if you want to order the
Case Solution.
Case Study ID: SM257
Get Case Study Solution
Case Solution and Analysis of Jabong.com: Balancing the Demands of Customers
and Suppliers by Jaydeep Mukherjee, Punit Bhardwaj is available at a lowest
price, send email to casesolutionscentre(at)gmail(dot)com if you want to order
the Case Solution.
Case Study ID: 9B16A028 / W16394
Get
Again, that is not HTTPS. Don't confuse port number with protocol!
As Chris says, Google Groups is essentially a web forum that happens to
mirror Usenet content. It's not a news service itself (no NNTP), not an
NNTP server. So if GG is causing users problems, the solution is to
ditch it
Chris Angelico writes:
> On Tue, Jul 11, 2017 at 4:12 AM, Michael Torrie wrote:
>> On 07/10/2017 11:05 AM, Paul Rubin wrote:
>>> Michael Torrie writes:
> can you get a newsreader to work with a https news service?
No. A newsreader works with NNTP protocol.
>>>
>>> Traditionally NNTP o
On Tue, Jul 11, 2017 at 4:12 AM, Michael Torrie wrote:
> On 07/10/2017 11:05 AM, Paul Rubin wrote:
>> Michael Torrie writes:
can you get a newsreader to work with a https news service?
>>> No. A newsreader works with NNTP protocol.
>>
>> Traditionally NNTP over SSL was done on port 563. So
On 07/10/2017 11:05 AM, Paul Rubin wrote:
> Michael Torrie writes:
>>> can you get a newsreader to work with a https news service?
>> No. A newsreader works with NNTP protocol.
>
> Traditionally NNTP over SSL was done on port 563. Some feeds now also
> provide it on 443 to get around client-sid
Michael Torrie writes:
>> can you get a newsreader to work with a https news service?
> No. A newsreader works with NNTP protocol.
Traditionally NNTP over SSL was done on port 563. Some feeds now also
provide it on 443 to get around client-side firewall hassles.
--
https://mail.python.org/mail
timetowal...@gmail.com on Sun, 9 Jul 2017 16:39:44 -0700 (PDT) typed
in comp.lang.python the following:
>I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
>message posts.
>
>What's with all of the Case Solution and Test Bank nonsense posts?
>Is is po
On 2017-07-10, John Black wrote:
> In article ,
> jon+use...@unequivocal.eu says...
>> On 2017-07-10, John Black wrote:
>> > While you're at it, throw these rules in and the group will appear very
>> > clean and on topic.
>> >
>> > Subject contains "PEDOFILO"
>> > Or
>> > Subject contains "MAI"
In article ,
jon+use...@unequivocal.eu says...
>
> On 2017-07-10, John Black wrote:
> > While you're at it, throw these rules in and the group will appear very
> > clean and on topic.
> >
> > Subject contains "PEDOFILO"
> > Or
> > Subject contains "MAI"
> > Or
> > Subject contains "SEGRETO"
> [
On 07/09/2017 09:29 PM, Chris Roy-Smith wrote:
> can you get a newsreader to work with a https news service?
No. A newsreader works with NNTP protocol. Some Usenet servers offer
SSL support over port 443, but that's certainly not https. I've never
heard of an https news service before. Unless yo
On 2017-07-09, Michael Torrie wrote:
> I'm sure Google could filter them if it chose. Behind the group,
> though, is the Usenet newsgroup, which is unmoderated and decentralized,
> and you can't filter there.
... unless the group were changed to be moderated, which it really
ought to be, being a
On 2017-07-10, John Black wrote:
> While you're at it, throw these rules in and the group will appear very
> clean and on topic.
>
> Subject contains "PEDOFILO"
> Or
> Subject contains "MAI"
> Or
> Subject contains "SEGRETO"
[snip >100 lines of rules]
Or just "subject does not contain any lower-
On Sun, Jul 9, 2017 at 10:37 PM, wrote:
> On Sunday, July 9, 2017 at 8:53:18 PM UTC-5, Steve D'Aprano wrote:
>> On Mon, 10 Jul 2017 11:41 am, voteswithf...@gmail.com wrote:
>>
>> > On Sunday, July 9, 2017 at 7:59:45 PM UTC-5, timetowalk wrote:
>>
>> >> I will need to read about filtering messages
gt; > over message posts.
> > >
> > > What's with all of the Case Solution and Test Bank nonsense posts?
> > > Is is possible to have these posts filtered out?
> >
> > I'm sure Google could filter them if it chose. Behind the group,
> > though,
timetowal...@gmail.com writes:
> What's with all of the Case Solution and Test Bank nonsense posts?
> Is is possible to have these posts filtered out?
As people have said, you can block them with a good news reader. But
like you, I wonder why the heck they have camped out on this
On 07/09/2017 07:52 PM, Steve D'Aprano wrote:
> This is also a mailing list where there is an administrator.
>
> The mailing list came first, and was mirrored to the Usenet group.
Good point. So messages that get emailed to the mailing list are
filtered before they get sent out to the Usenet grou
>
>> What's with all of the Case Solution and Test Bank nonsense posts?
>> Is is possible to have these posts filtered out?
>
> Yes it very easy to filter these out with most usenet readers. Use one
> that lets you setup rules for what gets automatically discarded. I
In article <477bde19-0653-4e41-a717-0efe90ac5...@googlegroups.com>,
timetowal...@gmail.com says...
>
> I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
> message posts.
>
> What's with all of the Case Solution and Test Bank nonsense posts
On Sunday, July 9, 2017 at 8:53:18 PM UTC-5, Steve D'Aprano wrote:
> On Mon, 10 Jul 2017 11:41 am, voteswithf...@gmail.com wrote:
>
> > On Sunday, July 9, 2017 at 7:59:45 PM UTC-5, timetowalk wrote:
>
> >> I will need to read about filtering messages locally.
> >> Can the admin simply ban the use
On Mon, 10 Jul 2017 11:41 am, voteswithf...@gmail.com wrote:
> On Sunday, July 9, 2017 at 7:59:45 PM UTC-5, timetowalk wrote:
>> I will need to read about filtering messages locally.
>> Can the admin simply ban the user?
>
> There is no admin, you idiot. This is Usenet!
That's unnecessarily rud
gt; > over message posts.
> > >
> > > What's with all of the Case Solution and Test Bank nonsense posts?
> > > Is is possible to have these posts filtered out?
> >
> > I'm sure Google could filter them if it chose. Behind the group,
> > though,
On 07/09/2017 06:59 PM, timetowalk wrote:
> I will need to read about filtering messages locally.
> Can the admin simply ban the user?
Usenet[1] doesn't have an admin. It's generally unmoderated and
decentralized (no central server). Anyone can run a Usenet server and
contribute messages to the g
On Sunday, July 9, 2017 at 8:05:59 PM UTC-4, Michael Torrie wrote:
> On 07/09/2017 05:39 PM, timetowal...@gmail.com wrote:
> > I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
> > message posts.
> >
> > What's with all of the Case Solut
On 07/09/2017 05:39 PM, timetowal...@gmail.com wrote:
> I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
> message posts.
>
> What's with all of the Case Solution and Test Bank nonsense posts?
> Is is possible to have these posts filtered out?
I
> I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
> message posts.
>
> What's with all of the Case Solution and Test Bank nonsense posts?
> Is is possible to have these posts filtered out?
You might be able to set up filters in Google Groups, but n
I use https://groups.google.com/forum/#!forum/comp.lang.python to look over
message posts.
What's with all of the Case Solution and Test Bank nonsense posts?
Is is possible to have these posts filtered out?
--
https://mail.python.org/mailman/listinfo/python-list
On Friday, 7 July 2017 20:16:42 UTC-7, Case Solution & Analysis wrote:
> Case Solution and Analysis of Federal Bank: Dividend Discount Valuation by
> Debasish Maitra, Varun Dawar is available at a lowest price, send email to
> casesolutionscentre(at)gmail(dot)com
>
> Case
Case Solution and Analysis of Carmichael Roberts: To Create a Private Equity
Firm? by Steven Rogers, Kenneth Cooper, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-317-079
Get Case Study Solution and Analysis of Carmichael Roberts: To Create a Private
Equity Firm? in a
Case Solution and Analysis of Delivering the Goods at Shippo by Jeffrey J.
Bussgang, Jeffrey Rayport, Olivia Hull, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-817-065
Get Case Study Solution and Analysis of Delivering the Goods at Shippo in a
FAIR PRICE!!
Our e
Case Solution and Analysis of From Start-Up to Grown-Up Nation: The Future of
the Israeli Innovation Ecosystem (Abridged) by Elie Ofek, Margot Eiran, send
email to casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-517-103
Get Case Study Solution and Analysis of From Start-Up to Grown-Up
Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards by
Rory McDonald, Alix Burke, Emma Franking, Nicole Tempest, send email to
casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-617-044
Get Case Solution and Analysis of Floodgate: On the Hunt for Thunder Lizards in
Case Solution and Analysis of CEO Activism (A) by Michael W. Toffel, Aaron
Chatterji, Julia Kelley, send email to casesolutionscentre(at)gmail(dot)com
Case Study ID: 9-617-001
Get Case Study Solution and Analysis of CEO Activism (A) in a FAIR PRICE!!
Our e-mail address is
Greetings Students,
We do have Solution Manuals and Test Bank for FINANCIAL STATEMENT ANALYSIS AND
VALUATION BY EASTON at reasonable price. You can get above mentioned resources
by sending email to pro.fast(@)hotmail(dot)com
Send your order queries at PRO.FAST(@)HOTMAIL(DOT)COM
Below are
Greetings Students,
We do have Solution Manuals and Test Bank for FINANCIAL AND MANAGERIAL
ACCOUNTING FOR MBAs 5TH EDITION BY EASTON at reasonable price. You can get
above mentioned resources by sending email to pro.fast(@)hotmail(dot)com
Send your order queries at PRO.FAST(@)HOTMAIL(DOT)COM
Greetings Students,
We do have Solution Manuals and Test Bank for FINANCIAL ACCOUNTING FOR MBAs 7th
EDITION BY EASTON at reasonable price. You can get above mentioned resources by
sending email to pro.fast(@)hotmail(dot)com
Send your order queries at PRO.FAST(@)HOTMAIL(DOT)COM
Below are
Greetings Students,
We do have Solution Manuals and Test Bank for OPERATIONS MANAGEMENT 13TH E BY
STEVENSON at reasonable price. You can get above mentioned resources by sending
email to pro.fast(@)hotmail(dot)com.
Send your order queries at PRO.FAST(@)HOTMAIL(DOT)COM
Below are details
On Fri, 7 Apr 2017 07:08 pm, David Shi wrote:
>
>
> Is there a Python solution for turning a web page into Pandas DataFrame
> table? Looking forward to hearing from you.
What, *any* web page? Like this?
http://www.math.ubc.ca/~cass/courses/m308-03b/projects-03b/skinner/
Is there a Python solution for turning a web page into Pandas DataFrame table?
Looking forward to hearing from you.
Regards.
David
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, 3 May 2016 01:56 pm, DFS wrote:
> On 5/2/2016 11:27 PM, jf...@ms4.hinet.net wrote:
>> DFS at 2016/5/3 9:12:24AM wrote:
>>> try
>>>
>>> from urllib.request import urlretrieve
>>>
>>>
http://stackoverflow.com/questions/21171718/urllib-urlretrieve-file-python-3-3
>>>
>>>
>>> I'm running pytho
On Mon, May 2, 2016, at 08:57 PM, jf...@ms4.hinet.net wrote:
> Stephen Hansen at 2016/5/3 11:49:22AM wrote:
> > On Mon, May 2, 2016, at 08:27 PM, jf...@ms4.hinet.net wrote:
> > > But when I try to get this forum page, it does get a html file but can't
> > > be viewed normally.
> >
> > What does th
Stephen Hansen at 2016/5/3 11:49:22AM wrote:
> On Mon, May 2, 2016, at 08:27 PM, jf...@ms4.hinet.net wrote:
> > But when I try to get this forum page, it does get a html file but can't
> > be viewed normally.
>
> What does that mean?
>
> --
> Stephen Hansen
> m e @ i x o k a i . i o
The page
On 5/2/2016 11:27 PM, jf...@ms4.hinet.net wrote:
DFS at 2016/5/3 9:12:24AM wrote:
try
from urllib.request import urlretrieve
http://stackoverflow.com/questions/21171718/urllib-urlretrieve-file-python-3-3
I'm running python 2.7.11 (32-bit)
Alright, it works...someway.
I try to get a zip fi
On Mon, May 2, 2016, at 08:27 PM, jf...@ms4.hinet.net wrote:
> But when I try to get this forum page, it does get a html file but can't
> be viewed normally.
What does that mean?
--
Stephen Hansen
m e @ i x o k a i . i o
--
https://mail.python.org/mailman/listinfo/python-list
DFS at 2016/5/3 9:12:24AM wrote:
> try
>
> from urllib.request import urlretrieve
>
> http://stackoverflow.com/questions/21171718/urllib-urlretrieve-file-python-3-3
>
>
> I'm running python 2.7.11 (32-bit)
Alright, it works...someway.
I try to get a zip file. It works, the file can be unzippe
On 5/2/2016 8:45 PM, jf...@ms4.hinet.net wrote:
DFS at 2016/5/2 UTC+8 11:39:33AM wrote:
To save a webpage to a file:
-
1. import urllib
2. urllib.urlretrieve("http://econpy.pythonanywhere.com
/ex/001.html","D:\file.html")
-
DFS at 2016/5/2 UTC+8 11:39:33AM wrote:
> To save a webpage to a file:
> -
> 1. import urllib
> 2. urllib.urlretrieve("http://econpy.pythonanywhere.com
> /ex/001.html","D:\file.html")
> -
>
> That's it!
Why my system can
On 05/02/16 at 11:24am, Larry Martell wrote:
> That reminds me of something I heard many years ago.
>
> Every non-trivial program can be simplified by at least one line of code.
> Every non trivial program has at least one bug.
>
> Therefore every non-trivial program can be reduced to one line of
On Mon, May 2, 2016 at 11:15 AM, DFS wrote:
> Of course. Taken to its extreme, I could eventually replace you with one
> line of code :)
That reminds me of something I heard many years ago.
Every non-trivial program can be simplified by at least one line of code.
Every non trivial program has a
ose
10. Set fOut = Nothing
11. Set fso = Nothing
12. Set xmlHTTP = Nothing
--
Technically, that VBS will run with just lines 3-9, but that's still 6
lines of code vs 2 for python.
It seems Python provides a higher level solution compared with VBS.
On Mon, 2 May 2016 08:12 pm, Marko Rauhamaa wrote:
> For example, the urlretrieve() function above blocks. You can't use it
> with the asyncio or select modules.
The urlretrieve function is one of the oldest functions in the std library.
It literally only exists because Guido was working on a co
BartC :
> On 02/05/2016 04:39, DFS wrote:
>> 2. urllib.urlretrieve("http://econpy.pythonanywhere.com
>> /ex/001.html","D:\file.html")
> [...]
>
> It seems Python provides a higher level solution compared with VBS.
> Python presumably also has to
ose
10. Set fOut = Nothing
11. Set fso = Nothing
12. Set xmlHTTP = Nothing
--
Technically, that VBS will run with just lines 3-9, but that's still 6
lines of code vs 2 for python.
It seems Python provides a higher level solution compared with VBS.
Python presumably also has to do t
On 5/2/2016 12:31 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
To save a webpage to a file:
-
1. import urllib
2. urllib.urlretrieve("http://econpy.pythonanywhere.com
/ex/001.html","D:\file.html")
On 5/2/2016 1:37 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 10:23 PM, DFS wrote:
Trying the rawstring thing (say it fast 3x):
webpage = "http://econpy.pythonanywhere.com/ex/001.html";
webfile = "D:\\econpy001.html"
urllib.urlretrieve(
On Monday 02 May 2016 15:21, Stephen Hansen wrote:
> On Sun, May 1, 2016, at 10:08 PM, DFS wrote:
>> On 5/2/2016 1:02 AM, Stephen Hansen wrote:
>> >> I actually use "D:\\file.html" in my code.
>> >
>> > Or you can do that. But the whole point of raw strings is not having to
>> > escape slashes :)
On Sun, May 1, 2016, at 10:23 PM, DFS wrote:
> Trying the rawstring thing (say it fast 3x):
>
> webpage = "http://econpy.pythonanywhere.com/ex/001.html";
>
>
> webfile = "D:\\econpy001.html"
> urllib.urlretrieve(webpage,webfile) WORKS
> ---
On 5/2/2016 1:02 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 09:51 PM, DFS wrote:
On 5/2/2016 12:31 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
To save a webpage to a file:
-
1. import urllib
2. urllib.urlretrieve("http://eco
On Sun, May 1, 2016, at 10:08 PM, DFS wrote:
> On 5/2/2016 1:02 AM, Stephen Hansen wrote:
> >> I actually use "D:\\file.html" in my code.
> >
> > Or you can do that. But the whole point of raw strings is not having to
> > escape slashes :)
>
>
> Nice. Where/how else is 'r' used?
Raw strings are
On 5/2/2016 1:02 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 09:51 PM, DFS wrote:
On 5/2/2016 12:31 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
To save a webpage to a file:
-
1. import urllib
2. urllib.urlretrieve("http://eco
On Sun, May 1, 2016, at 09:51 PM, DFS wrote:
> On 5/2/2016 12:31 AM, Stephen Hansen wrote:
> > On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
> >> To save a webpage to a file:
> >> -
> >> 1. import urllib
> >> 2. urllib.urlretrieve("http://econpy.pythonanywhere.com
On 5/2/2016 12:31 AM, Stephen Hansen wrote:
On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
To save a webpage to a file:
-
1. import urllib
2. urllib.urlretrieve("http://econpy.pythonanywhere.com
/ex/001.html","D:\file.html")
On Sun, May 1, 2016, at 08:39 PM, DFS wrote:
> To save a webpage to a file:
> -
> 1. import urllib
> 2. urllib.urlretrieve("http://econpy.pythonanywhere.com
> /ex/001.html","D:\file.html")
> -
Note, for paths on windows y
1 - 100 of 645 matches
Mail list logo