Re: A simple single line, triple-quoted comment is giving syntax error. Why?

2015-03-22 Thread Marko Rauhamaa
Thomas 'PointedEars' Lahn :

> | atom: ('(' [yield_expr|testlist_comp] ')' |
> |'[' [testlist_comp] ']' |
> |'{' [dictorsetmaker] '}' |
> |NAME | NUMBER | STRING+ | '...' | 'None' | 'True' | 'False')
>
> [Chris Angelico wrote:]
>> Implicit concatenation is part of the syntax, not part of the
>> expression evaluator.
>
> Reads like nonsense to me.

The two of you are fighting over nothing. IOW, you aren't in
disagreement.


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


Re: Automation of Windows app?

2015-03-22 Thread Emile van Sebille

On 3/20/2015 10:55 AM, Grant Edwards wrote:


I need to automate operation of a Windows application.


I've been productively using python to create macro scheduler [1] 
scripts to automate windows programs for years.


A sample script:

Press Alt
Send Character/Text>cu
Release Alt
WaitWindowOpen>Sheets*
Wait>1
Press Alt
Send Character/Text>ls
Release Alt
Wait>1
Wait>1
Press Alt
Send Character/Text>fs
Release Alt
Wait>1


HTH,

Emile


[1] https://www.mjtnet.com/

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


ANN: unicode 1

2015-03-22 Thread garabik-news-2005-05

unicode is a simple python command line utility that displays 
properties for a given unicode character, or searches 
unicode database for a given name. 

It was written with Linux in mind, but should work almost everywhere 
(including MS Windows and MacOSX), UTF-8 console is recommended. 

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ 
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI 
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s 
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ 
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥ 


Changes since previous versions: 
 * added --wt to query wiktionary
 * fix (somewhat) tabular display of fullwidth characters;
   try unicode 4000..5000 for a nice example
 * this is the last version that tries to keep rigorous
   compatibility with older python versions (going even
   back to pre-2.3)

URL: 
http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html

License: GPL v3

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Automation of Windows app?

2015-03-22 Thread vern . muhr
Check out Sikuli at www.sikuli.org. It is an amazing program, and it is 
scripted in Python (Jython actually)!

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


How to make $100,000 in 20-90 days

2015-03-22 Thread Kristina C.
HOW TO MAKE 10 DOLLARS IN 20 -90 DAYS! 
Send $1.00 to each of the 6 names and addresses stated in the article. You then 
place your own name and address in the bottom of the list at #6, and post the 
article in at least 200 newsgroups. No catch, that was it. So after thinking it 
over, and talking to a few people first, I thought about trying it. I figured: 
"what have I got to lose except 6 stamps and $6.00, right?" Then I invested the 
measly $6.00. Well GUESS WHAT!?... within 7 days, I started getting money in 
the mail! I was shocked! I figured it would end soon, but the money just kept 
coming in. In my first week, I made about $25.00. By the end of the second week 
I had made a total of over $1,000.00! In the third week I had over $10,000.00 
and it's still growing. This is now my fourth week and I have made a total of 
just over $42,000.00 and it's still coming in rapidly. It's certainly worth 
$6.00, and 6 stamps, I have spent more than that on the lottery!! Let me tell 
you how this works and most importantly, WHY it works...
  Also, make sure you print a copy of this article NOW, so you can get the 
information off of it as you need it. I promise you that if you follow the 
directions exactly, that you will start making more money than you thought 
possible by doing something so easy! Suggestion: Read this entire message 
carefully! (print it out or download it.) Follow the simple directions and 
watch the money come in! It's easy. It's legal. And your investment is only 
$6.00 (Plus postage) IMPORTANT: This is not a rip-off; it is not indecent; it 
is not illegal; and it is 99% no risk - it really works! If all of the 
following instructions are adhered to, you will receive extraordinary 
dividends. PLEASE NOTE: Follow these directions EXACTLY, and $50,000.00 or more 
can be yours in 20 to 60 days. This program remains successful because of the 
honesty and integrity of the participants. Please continue its success by 
carefully adhering to the instructions. You will now become part of the Mail 
Order business. In t
 his business your product is not solid and tangible, it's a service. You are 
in the business of developing Mailing Lists. Many large corporations are happy 
to pay big bucks for quality lists. However, the money made from the mailing 
lists is secondary to the income which is made from people like you and me 
asking to be included in that list. Here are the 4 easy steps to success: STEP 
1: Get 6 separate pieces of paper and write down your name and address followed 
by the words "PLEASE ADD ME TO YOUR MAILING LIST" on each of them. Now get 6 US 
$1.00 bills and place ONE inside EACH of the 6 pieces of paper so the bill will 
not be visible through the envelope (to prevent thievery). Next, place one 
paper in each of the 6 envelopes and seal them. You should now have 6 sealed 
envelopes, each with a piece of paper stating the above phrase, your name and 
address, and a $1.00 bill. What you are doing is creating a service. THIS IS 
ABSOLUTELY LEGAL! You are requesting a legitimate service and y
 ou are paying for it! Like most of us I was a little skeptical and a little 
worried about the legal aspects of it all. So I checked it out with the U.S. 
Post Office (1- 800-725-2161) and they confirmed that it is indeed legal. Mail 
the 6 envelopes to the following addresses:  1.) Kyle P. 1325 Tonti St. 
LaSalle, IL.USA 613012.) Rucci 418 Wilcox Street Carnegie, Pa. 15106  3. 
Stefan B. 2903 Marquette Rd. Peru, IL. USA 61354  4.) Cody Neely, P.O. box 472, 
Sylvania Ga. USA  30467  5.) Sarah Mccully, 8818 w 88th st overland park, ks, 
USA 66212 6.) Kristie C. P.O. Box 3034 Kalispell MT 59903 STEP 2: Now take the 
#1 name off the list that you see above, move the other names up (6 becomes 5, 
5 becomes 4, etc...) and add YOUR Name as number 6 on the list. STEP 3: Change 
anything you need to, but try to keep this article as close to original as 
possible. Now, post your amended article to at least 200 newsgroups. (I think 
there are close to 24,000 groups) All you need is 200, but remember,
  the more you post, the more money you make! You won't get very much unless 
you post like crazy. This is perfectly legal! If you have any doubts, refer to 
Title 18 Sec. 1302 & 1341 of the Postal lottery laws. Keep a copy of these 
steps for yourself and, whenever you need money, you can use it again, and 
again. PLEASE REMEMBER that this program remains successful because of the 
honesty and integrity of the participants and by their carefully adhering to 
the directions. Look at it this way. If you are of integrity, the program will 
continue and the money that so many others have received will come your way. 
NOTE: You may want to retain every name and address sent to you, either on a 
computer or hard copy and keeps the notes people send you. This VERIFIES that 
you are truly providing a service. (Also, it might be a good idea to wrap the 
$1 bill in dark paper to reduce the risk of mail the

Re: Automation of Windows app?

2015-03-22 Thread Mark Lawrence

On 22/03/2015 23:54, vern.m...@gmail.com wrote:

Check out Sikuli at www.sikuli.org. It is an amazing program, and it is 
scripted in Python (Jython actually)!

Good luck.



Only 2.7 again, when are we going to ban Luddites from this list? :)

--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

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


Re: Automation of Windows app?

2015-03-22 Thread Michael Torrie
On 03/20/2015 12:10 PM, Grant Edwards wrote:
> On 2015-03-20, Grant Edwards  wrote:
> 
>> I need to automate operation of a Windows application.
> 
> I should have mentioned that I've found and am going to experiment
> a bit with pywinauto-0.4.0, but if there is anything else I should
> look at, suggestions would be welcome.

As near as I can tell the standard go-to utility for this is a program
called AutoIt.  https://www.autoitscript.com/site/autoit/

Nothing to do with Python, and its scripting language is maybe not that
appealing to many, but it does the job, and does it pretty well.  I
first used it when working with a Linux-based PXE boot solution that
would automatically install Windows via a network boot, and install a
custom set of apps we set up.  Was super slick.

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


Re: Automation of Windows app?

2015-03-22 Thread Rustom Mody
On Monday, March 23, 2015 at 6:32:26 AM UTC+5:30, Mark Lawrence wrote:
> On 22/03/2015 23:54, vern.muhr wrote:
> > Check out Sikuli at www.sikuli.org. It is an amazing program, and it is 
> > scripted in Python (Jython actually)!
> >
> > Good luck.
> >
> 
> Only 2.7 again, when are we going to ban Luddites from this list? :)

Python 2.7 can be connected with Luddites after 2020
See schedule https://www.python.org/dev/peps/pep-0373/

Of course you are free to canvas for a more aggressive Luddite standard
on/for this list.

Some will even agree... Many will not
[Count me in the average-majority]
-- 
https://mail.python.org/mailman/listinfo/python-list


Using Python to put a 27-year-old Macintosh on the web

2015-03-22 Thread Steven D'Aprano
http://www.keacher.com/1216/how-i-introduced-a-27-year-old-computer-to-the-
web/

or http://tinyurl.com/ksqk5kt




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


Re: Automation of Windows app?

2015-03-22 Thread Jacob Kruger
- Original Message - 
From: "Michael Torrie" 

To: 
Sent: Monday, March 23, 2015 5:43 AM
Subject: Re: Automation of Windows app?



 Nothing to do with Python, and its scripting language is maybe not that
appealing to many, but it does the job, and does it pretty well.  I
first used it when working with a Linux-based PXE boot solution that
would automatically install Windows via a network boot, and install a
custom set of apps we set up.  Was super slick.


Also somewhat unrelated, but, my primary screen reader software, jaws, also
allows you to generate scripts to sort of invoke multi-activity macro's with
regards to operating system - so you could get it to click on a button,
enter text in a field, move cursors around, etc. etc., repeatedly, if you
wanted to - not really same as any form of bulk testing of software, etc.,
but, can interact with interfaces automatically, etc.

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
"Roger Wilco wants to welcome you...to the space janitor's closet..."

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