Re: Syntax Suggestion: Pass Function Definition as Argument

2019-11-11 Thread Rhodri James

On 07/11/2019 13:36, Stephen Waldron wrote:

This is how it is at the moment, however it may be more agreeable, especially 
if that is the only purpose of the function, for python users to be able to 
define new functions inside of function calls.


No, not seeing it.  Sorry, I don't think "I don't want to use up a 
precious, precious name in this namespace" is a good enough reason to do 
anything, never mind something with a lot of implicit naming going on. 
Suppose you had been good and made a module of your Book example.  What 
is someone reading your code supposed to make of this?


import books

my_books = [
books.Book("Triplanetary", 'E.E. "Doc" Smith'),
books.Book("Foundation", "Isaac Asimov")
]

books.doToBooks(my_books):
print(book.name, ":", book.author)
then:
if book.name == "Foundation":
print("READ THIS FIRST!")

The name "book" has just appeared out of thin air, and without stopping 
and reading the code of your module they will have to guess at what it 
is.  Now in this case their first guess is probably right, but this is a 
toy example and just as easily written with lambdas if you're that 
worried about using up names.


-10 from me.

--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


Re: Using Makefiles in Python projects

2019-11-11 Thread Rhodri James

On 09/11/2019 23:50, Thomas Jollans wrote:

On 09/11/2019 21:30, Chris Angelico wrote:

On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans  wrote:

On 07/11/2019 20:20, Vitaly Potyarkin wrote:

What do you think of using Makefiles for automating common chores in
Python projects? Like linting, type checking and testing?

I've come up with a reusable Makefile for automating virtual 
environment

management in Python projects. I think it can be useful for simplifying
the onboarding of new developers (both new to project and new to 
Python)

and for documenting project's development practices.

Here it is:
- Repo: https://github.com/sio/Makefile.venv
- Demo screencast: https://asciinema.org/a/279646

What do you think? Is this useful or I'm just unaware of some tool that
abstracts venv chores away better?


As others have said, make is a useful tool and many people use it for
different purposes in their Python projects. Nothing wrong with that.

HOWEVER, at risk of stating the obvious, using Makefiles written for/on
*nix systems on Windows is a bit of a hassle. If, for some reason, your
software is *nix-only anyway, that's fine. If not, using make means
sacrificing some portability.

If your software runs on Windows, of you think it might run on Windows
in the future, maybe consider writing simple Python scripts for
platform-independent tasks rather than makefiles and shell scripts.


Are you assuming that every Windows system has Python, but that you
can't get make or bash? Because neither half of that is true. I've
happily used makefiles on Windows, and these days, bash is as easy to
get hold of as Python is.

ChrisA


That's why I say "a bit of a hassle". You can get a MSYS set up (whether 
from Git for Windows or otherwise). You can get it to play nice with the 
right Python installation and the Python scripts you presumably want to 
call from the Makefile. But all of that is a bit of a hassle.


If you've got almost any development environment for Windows, you've got 
a version of make.  I quite like the NMake that comes with Visual 
Studio, for example, and use it in preference to the IDE when I can. 
Yes, it's a hassle, but it's a hassle you're going to go through anyway.


--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


What is a backing store in the context of module io https://docs.python.org/3/library/io.html

2019-11-11 Thread Veek M
So i was making some notes and: https://i.imgur.com/UATAKXh.png

I did not understand this 

https://docs.python.org/3/library/io.html
'Text I/O expects and produces str objects. This means that whenever the 
backing store is natively made of bytes (such as in the case of a file), 
encoding and decoding of data is made transparently as well as optional 
translation of platform-specific newline characters.'

1. What is a backing store? 
2. How does it fit in/influence what we pass to the fileObject/stream/
filelikeObject.method()

So I've drawn a small dia - but I cannot see a connection between the 
'str' object or 'bytes' object being passed to .write() and the Backing 
Store?

Google just says the backing store is secondary MEMORY - Harddisk cache 
or for paging.. but how does that relate to Python?

I just concluded the backing store was a buffer?
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What is a backing store in the context of module io https://docs.python.org/3/library/io.html

2019-11-11 Thread Veek M
On Mon, 11 Nov 2019 16:08:12 +, Veek M wrote:

> So i was making some notes and: https://i.imgur.com/UATAKXh.png
> 
> I did not understand this
> 
> https://docs.python.org/3/library/io.html 'Text I/O expects and produces
> str objects. This means that whenever the backing store is natively made
> of bytes (such as in the case of a file),
> encoding and decoding of data is made transparently as well as optional
> translation of platform-specific newline characters.'
> 
> 1. What is a backing store?
> 2. How does it fit in/influence what we pass to the fileObject/stream/
> filelikeObject.method()
> 

I was reading pydoc io and - how do I decipher the indentation?

_io._BufferedIOBase(_io._IOBase)
_io.BufferedRWPair
_io.BufferedRandom  #are these Derived Classes of BufferedIOBase?
_io.BufferedReader
_io.BufferedWriter
_io.BytesIO
BufferedIOBase(_io._BufferedIOBase, IOBase) #huh??
_io._IOBase(__builtin__.object)
IOBase #huh???
BufferedIOBase(_io._BufferedIOBase, IOBase)
RawIOBase(_io._RawIOBase, IOBase)
TextIOBase(_io._TextIOBase, IOBase)
_io._RawIOBase(_io._IOBase)
_io.FileIO
RawIOBase(_io._RawIOBase, IOBase)
_io._TextIOBase(_io._IOBase)
_io.StringIO
_io.TextIOWrapper
TextIOBase(_io._TextIOBase, IOBase)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What is a backing store in the context of module io https://docs.python.org/3/library/io.html

2019-11-11 Thread Peter Otten
Veek M wrote:

> I was reading pydoc io and - how do I decipher the indentation?

$ cat demo.py
class Base: pass
class Sub(Base): pass
class SubSub(Sub): pass

class Other: pass
class OtherSub(Other, Base): pass
$ pydoc3.7 demo | head -n13
Help on module demo:

NAME
demo

CLASSES
builtins.object
Base
Sub
SubSub
Other
OtherSub(Other, Base)

So indentation illustrates the class hierarchy; where this fails because of 
multiple inheritance the base classes are listed explicitly.

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


Re: Using Makefiles in Python projects

2019-11-11 Thread Thomas Jollans

On 11/11/2019 14:23, Rhodri James wrote:

On 09/11/2019 23:50, Thomas Jollans wrote:

On 09/11/2019 21:30, Chris Angelico wrote:

On Sun, Nov 10, 2019 at 2:10 AM Thomas Jollans  wrote:

On 07/11/2019 20:20, Vitaly Potyarkin wrote:

What do you think of using Makefiles for automating common chores in
Python projects? Like linting, type checking and testing?

I've come up with a reusable Makefile for automating virtual 
environment
management in Python projects. I think it can be useful for 
simplifying
the onboarding of new developers (both new to project and new to 
Python)

and for documenting project's development practices.

Here it is:
- Repo: https://github.com/sio/Makefile.venv
- Demo screencast: https://asciinema.org/a/279646

What do you think? Is this useful or I'm just unaware of some tool 
that

abstracts venv chores away better?


As others have said, make is a useful tool and many people use it for
different purposes in their Python projects. Nothing wrong with that.

HOWEVER, at risk of stating the obvious, using Makefiles written 
for/on
*nix systems on Windows is a bit of a hassle. If, for some reason, 
your

software is *nix-only anyway, that's fine. If not, using make means
sacrificing some portability.

If your software runs on Windows, of you think it might run on Windows
in the future, maybe consider writing simple Python scripts for
platform-independent tasks rather than makefiles and shell scripts.


Are you assuming that every Windows system has Python, but that you
can't get make or bash? Because neither half of that is true. I've
happily used makefiles on Windows, and these days, bash is as easy to
get hold of as Python is.

ChrisA


That's why I say "a bit of a hassle". You can get a MSYS set up 
(whether from Git for Windows or otherwise). You can get it to play 
nice with the right Python installation and the Python scripts you 
presumably want to call from the Makefile. But all of that is a bit 
of a hassle.


If you've got almost any development environment for Windows, you've 
got a version of make.  I quite like the NMake that comes with Visual 
Studio, for example, and use it in preference to the IDE when I can. 
Yes, it's a hassle, but it's a hassle you're going to go through anyway.


I'm sure it's possible to write Makefiles that work with both GNU make 
and NMake, but I imagine it's a rather limiting and thankless enterprise.


Is that something you actually do? (Maybe it's great, I really wouldn't 
know. Do tell!)



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


Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-11 Thread joseph pareti
i have done the first 6 lessons of python ---
https://classroom.udacity.com/courses/ud1110/lessons/bbacebc6-406a-4dc5-83f6-ef7ba3371da6/concepts/50247542-7933-4afe-9130-ff1dff429b03

what do you recommend next? My goal is ML/AI

thank you ---


Am Do., 7. Nov. 2019 um 22:01 Uhr schrieb joseph pareti <
joeparet...@gmail.com>:

>
>
> -- Forwarded message -
> Von: joseph pareti 
> Date: Do., 7. Nov. 2019 um 09:26 Uhr
> Subject: Re: Hi there! We are here to answer any questions you have about
> Udacit...
> To: Sherry from Udacity 
>
>
> apologies if you are not the right person to ask: I am doing the python
> tutorial at
> https://classroom.udacity.com/courses/ud1110/lessons/8655bee4-19e1-4de0-8177-4f895a74b57b/concepts/44a22f87-f7ce-4a9a-a1f5-86024edb0f29
>
> When I run the program in the provided environment I get an EOF exception
> (see screen dump).
>
> However, in my environment, windows 10, miniconda3, python 3.* it runs
> just fine. Why?
> I am also sending the program source code.
> ---
>
>
> F:\x\finance-2019\AI\python\udacity\input>c:\Users\joepareti\Miniconda3\pkgs\python-3.6.8-h9f7ef89_0\python.exe
> tmp_input.py
> Enter a number:
> 8
> your input is:  8
> corresponding int is:  8
> Oops!  Your guess was too high.
>
> F:\x\finance-2019\AI\python\udacity\input>c:\Users\joepareti\Miniconda3\pkgs\python-3.6.8-h9f7ef89_0\python.exe
> tmp_input.py
> Enter a number:
> 0
> your input is:  0
> corresponding int is:  0
> Oops!  Your guess was too low.
>
> F:\x\finance-2019\AI\python\udacity\input>c:\Users\joepareti\Miniconda3\pkgs\python-3.6.8-h9f7ef89_0\python.exe
> tmp_input.py
> Enter a number:
> 5
> your input is:  5
> corresponding int is:  5
> Nice!  Your guess matched the answer!
>
> Am Di., 29. Okt. 2019 um 21:22 Uhr schrieb Sherry from Udacity <
> sherry.ch...@udacity.com>:
>
>> Hi Joseph, I'm Sherry!
>>
>> It seems like we missed you. Before I go I would like to suggest you the
>> path you should follow:
>> If you're new to programming, we suggest starting your learning path by
>> building a strong foundation in the basics with our Intro to Programming
>> Nanodegree. Once you complete this course, you will have much better view
>> of what to take next:)
>> Intro to programming
>> 
>> | Syllabus
>> 
>> The course comes with a Certificate as well as Mentorship Program, Expert
>> projects reviewers, Career Services and more!
>>
>> *Mentorship Program:*
>> When you enroll in a Udacity Nanodegree program, you'll be matched with a
>> 1-on-1 technical mentor. Mentors are individuals with strong subject matter
>> knowledge who are there to help you succeed in your Nanodegree program.
>> Your Mentor will
>>
>> -Respond to content-specific and project-specific questions you have
>> about your Nanodegree program
>> -Conduct 1-on-1 virtual meetings with you, at your request (you'll be
>> able to schedule one 1-on-1 each week, if needed)
>> -Motivate you to stay on track with your custom learning plan.
>>
>> *Career Services:*
>> As a student enrolled in a Nanodegree program, you'll have access to the
>> following career resources for 12 months after the graduation and during
>> the class to help you reach your goals:
>>
>> -1:1 Career Coaching appointment
>> -Career + Networking Events
>> -GitHub, LinkedIn, Resume, Cover Letter Reviews
>> -The Career Portal
>> -Membership in the Udacity Talent Program with top tech employers upon
>> graduation
>> -Send students resume to over 95 companies that we are partners with.
>> Let me know if you need to know anything else [image: +1]
>>
>> --
>> [image: Sherry] *Sherry* from Udacity
>> On Tue, Oct 29, 2019 at 03:12 PM, "Joseph" 
>> wrote:
>>
>> udacity told me that I first need to have good python knowledge, right?
>> On Tue, Oct 29, 2019 at 03:10 PM, "Carla" <
>> opera...@udacity-8fbceca20105.intercom-mail.com> wrote:
>>
>> *Great, we have advisors ready to answer your questions! To get started,
>> please put in your email so we can follow up in case we get disconnected:*
>>
>> *By providing your information and clicking “Submit,” you consent and
>> agree to receive marketing emails from Udacity, and that your information
>> will be used in accordance with the Udacity** Terms of Use*
>> * and** Privacy Policy*
>> *, including relevant opt out
>> provisions therein.*
>>
>> * Thanks joseph! We can tell you more about our Nanodegree programs or
>> answer anything else you want to know! We are here Monday - Friday, 24
>> hours . If we aren't here at the moment we will respond as soon as we can.*
>> On Tue, Oct 29, 2019 at 03:10 PM, "Joseph" 
>> wrote:
>>
>> I’d like to learn more
>> On Tue, Oct 29, 2019 at 03:10 PM, "Carla" <
>> opera...@udacity-8fbceca20105.intercom-mail.com> wrote:
>>
>> *Hi there

Re: Using Makefiles in Python projects

2019-11-11 Thread Rhodri James

On 11/11/2019 17:55, Thomas Jollans wrote:
I'm sure it's possible to write Makefiles that work with both GNU make 
and NMake, but I imagine it's a rather limiting and thankless enterprise.


Is that something you actually do? (Maybe it's great, I really wouldn't 
know. Do tell!)


Trying to work cross-platform with NMake/GNU make is every bit as horrid 
as you're imagining when you start getting clever, and I haven't tried 
doing it for years.  Generally when I'm working on both Windows and 
Linux, Cygwin is involved anyway so I just use GNU make and be done with it.


--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list


Re: Using Makefiles in Python projects

2019-11-11 Thread Grant Edwards
On 2019-11-11, Rhodri James  wrote:
>> I'm sure it's possible to write Makefiles that work with both GNU make 
>> and NMake, but I imagine it's a rather limiting and thankless enterprise.
>> 
>> Is that something you actually do? (Maybe it's great, I really wouldn't 
>> know. Do tell!)
>
> Trying to work cross-platform with NMake/GNU make is every bit as horrid 
> as you're imagining when you start getting clever, and I haven't tried 
> doing it for years.

That's my experience as well.

> Generally when I'm working on both Windows and Linux, Cygwin is
> involved anyway so I just use GNU make and be done with it.

And that's also what I usually do.  I've been tempted to try msys
make/bash instead of Cygwin, but that's probably not going to happen
until something stops working under Cygwin or I run out of more
entertaining projects before spring.

-- 
Grant Edwards   grant.b.edwardsYow! I want another
  at   RE-WRITE on my CEASAR
  gmail.comSALAD!!

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


Re: Using Makefiles in Python projects

2019-11-11 Thread Bill Deegan
You could use SCons (native python... )

On Mon, Nov 11, 2019 at 2:04 PM Grant Edwards 
wrote:

> On 2019-11-11, Rhodri James  wrote:
> >> I'm sure it's possible to write Makefiles that work with both GNU make
> >> and NMake, but I imagine it's a rather limiting and thankless
> enterprise.
> >>
> >> Is that something you actually do? (Maybe it's great, I really wouldn't
> >> know. Do tell!)
> >
> > Trying to work cross-platform with NMake/GNU make is every bit as horrid
> > as you're imagining when you start getting clever, and I haven't tried
> > doing it for years.
>
> That's my experience as well.
>
> > Generally when I'm working on both Windows and Linux, Cygwin is
> > involved anyway so I just use GNU make and be done with it.
>
> And that's also what I usually do.  I've been tempted to try msys
> make/bash instead of Cygwin, but that's probably not going to happen
> until something stops working under Cygwin or I run out of more
> entertaining projects before spring.
>
> --
> Grant Edwards   grant.b.edwardsYow! I want another
>   at   RE-WRITE on my CEASAR
>   gmail.comSALAD!!
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Help!

2019-11-11 Thread Jack Gilbert
Here's the deal, I have loaded both, one at a time, 3.7.2, and tried 3.8.0,
separately, when I go to open the program to run I get the same message,
 Each time and for each version I get a Setup window. asking to modify,
repair, or uninstall, I usu uninstall,

I don't think it is the install, something with in my win 8.1 system that
maybe causing this problem.

Thanks in advance for helping me.

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


Re: What is a backing store in the context of module io https://docs.python.org/3/library/io.html

2019-11-11 Thread Terry Reedy

On 11/11/2019 11:08 AM, Veek M wrote:


https://docs.python.org/3/library/io.html
'Text I/O expects and produces str objects. This means that whenever the
backing store is natively made of bytes (such as in the case of a file),
encoding and decoding of data is made transparently as well as optional
translation of platform-specific newline characters.'

1. What is a backing store?


Whatever you can read from or write to.  Unix uses 'file' with the same 
extended sense. Reread the Overview section above.



2. How does it fit in/influence what we pass to the fileObject/stream/
filelikeObject.method()


What the text you quote says is that if the source or destination for a 
text stream is actually bytes, you still receive or pass text because 
the translation is done for you (if you have opened the text stream with 
the right arguments.



Google just says the backing store is secondary MEMORY - Harddisk cache
or for paging.. but how does that relate to Python?


Different languages have different data models of what one is 
manipulating.  In assembly and C, one manipulates fixed-length blocks of 
main memory, which itself is a sequence of bytes numbered 0, ..., N.  So 
a backup store is 'secondary memory'.


Python manipulates 'information objects' in an 'object space'.  Python 
objects of type str and bytes, and only those two types, can be input 
and output.  Other objects are converted from or to one of those types 
for input and output.



I just concluded the backing store was a buffer?


Text and binary streams use a buffer, raw streams do not.

--
Terry Jan Reedy

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


apologies for my latest email; it was not intended for this mailing list

2019-11-11 Thread joseph pareti
-- 
Regards,
Joseph Pareti - Artificial Intelligence consultant
Joseph Pareti's AI Consulting Services
https://www.joepareti54-ai.com/
cell +49 1520 1600 209
cell +39 339 797 0644
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Looking for python pentest scripts

2019-11-11 Thread DL Neil via Python-list

On 11/11/19 4:39 PM, Terry Reedy wrote:

On 11/10/2019 7:32 PM, Bob Gailer wrote:

On Nov 10, 2019 6:40 AM, "nixuser"  wrote:

can someone tell about good resource for python related pentesting
scripts?
any extensive list?

 > Try Googling python pentesting. That will give you some relevant links.
(Google's Youtube has multiple sometimes interesting videos where people 
do penetration tests with bullets and arrows and such against various 
targets.  It turns out the the 'funny-looking' extensions near the top 
of some medieval plate armor chest pieces serve to block arrow heads 
deflected up off the chest toward the chin.)



TLDR? Last paragraph is most pertinent.


I read this, whilst still chortling at the opus @Chris had pen-ned about 
testing.


Then one of the guys from my old unit rang. He was grumbling (even 
though Americans are typically less familiar with the British 
expression: grumpy, old men - it suits us). He wanted to know if we have 
been "infected" over here (we have), his complaint was about the rising 
fashion for "Singles Day", and "doesn't 11 and 11 mean either 22 or 4? 
So, what's 'single' about that?". Guess he has a point, how come 'they' 
didn't at least 'downgrade' to choosing 1/1? Some (other) significance 
to the numbers perhaps?


Evidently Remembrance Day/Veterans' Day can have different meanings, as 
per "pen-testing".


Similarly, an irony: the OP hasn't fronted to say whether (s)he has 
'white hat' or 'black hat' ambitions; just as the contemplation of war 
and peace brings one to consider how the motives behind the possibility 
of single-selfishness today, contrast markedly from those of accepting 
the suffering and sacrifice which helped to make this world what it is.


To distract from the above conversational tone, I mentioned the 'armor' 
deflection-pieces (there's probably a name for these, but we didn't use 
"armor" (I'm not THAT old) - nor did we have kevlar vests!). The laconic 
reply was that "No, but when you're the target of attack, we'd 
burrow-down attempting to hide behind the smallest pebble". Almost the 
same thing then?



However, we're here to discuss Python:
A 'security' colleague commented that there is a Linux 
distro/distribution, "Kali" (another name with opportunity for 
ambiguity!). Apparently, "Kali is designed for pen-testing - and there 
are likely many associated Python scripts, because Python is a language 
so well suited to fast-developing situations!". YMMV...



WebRefs:
https://en.wikipedia.org/wiki/Remembrance_Day
https://en.wikipedia.org/wiki/Kali
https://www.kali.org/
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Hi there! We are here to answer any questions you have about Udacit...

2019-11-11 Thread DL Neil via Python-list

On 12/11/19 7:14 AM, joseph pareti wrote:

i have done the first 6 lessons of python ---
https://classroom.udacity.com/courses/ud1110/lessons/bbacebc6-406a-4dc5-83f6-ef7ba3371da6/concepts/50247542-7933-4afe-9130-ff1dff429b03

what do you recommend next? My goal is ML/AI



As with any professional field, there is no end to the learning...

Probably some consolidation to provide a solid set of Python skills, 
would be a good idea; and then to dig-into ML - if you have the patience 
and long-term view.


If you'd like to switch to books:
There are plenty to choose from. My impression of the current crop of 
Python/ML/AI books is that they either start at a reasonably 'high' 
level or their 'intro to Python' chapters are rather perfunctory. Have 
you an assessment?
Another impression, is that in the rush-to-publish/to be 'first', there 
is a very confusing coverage. Perhaps better to read non-specific books 
about ML/AI as preparation, and then focus on specifics (and thus 
applicable Python texts)?
Meantime, build-up your Python skills - I've previously mentioned 'here' 
the The Python Craftsman series (Apprentice, Journeyman, Master), but 
there are others.


If you're comfortable with MOOCs:
I have found Udacity courses tend to be a little 'thin' (YMMV!).
Coursera has a range of offerings, and you might review the multiple 
series from U.Michigan (have assessed some and are IMHO competent but 
not earth-shattering).
U.Mich also offer a number of ML courses/quals, which may be of-interest 
(and hence the specific mention).
Similarly, edX where I noted a number of IBM ML offerings both with and 
without Python and likely majoring on "Watson".
(apologies, I'm biased against the multitude of MSFT's offerings, also 
present)



WebRefs:
https://leanpub.com/b/python-craftsman
(per example) https://www.coursera.org/specializations/data-science-python
https://www.edx.org


Disclaimer: have no commercial connection to any of the above-mentioned, 
but do use the edX platform to offer (non-Python) training.

--
Tschüss =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: apologies for my latest email; it was not intended for this mailing list

2019-11-11 Thread DL Neil via Python-list

Because of something we said?

(to upset you=joke!)
--
Regards =dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: Help!

2019-11-11 Thread Cameron Simpson

On 11Nov2019 13:07, Jack Gilbert <00jhen...@gmail.com> wrote:

Here's the deal, I have loaded both, one at a time, 3.7.2, and tried 3.8.0,
separately, when I go to open the program to run I get the same message,
Each time and for each version I get a Setup window. asking to modify,
repair, or uninstall, I usu uninstall,

I don't think it is the install, something with in my win 8.1 system that
maybe causing this problem.


This sounds to me like you are not starting Python, instead you are 
starting its installer.


See if there's a programme called "IDLE". And I gather the command to 
run Python from a command line is "py" on Windows (I am not a Windows 
person, so my advice is vague).


Cheers,
Cameron Simpson 
--
https://mail.python.org/mailman/listinfo/python-list


Re: Help!

2019-11-11 Thread Michael Torrie
On 11/11/19 12:07 PM, Jack Gilbert wrote:
> Here's the deal, I have loaded both, one at a time, 3.7.2, and tried 3.8.0,
> separately, when I go to open the program to run I get the same message,
>  Each time and for each version I get a Setup window. asking to modify,
> repair, or uninstall, I usu uninstall,
> 
> I don't think it is the install, something with in my win 8.1 system that
> maybe causing this problem.
> 
> Thanks in advance for helping me.

This comes up fairly frequently on the mailing list.  Sounds like you're
not actually running Python, but rather trying to run the installer again.

Python is an interpreter and as such it's not meant to be run directly
from the start menu (it has no user interface other than the REPL
command-line prompt).  Usually you write a python script in an editor of
your choice, and then manually run that with Python, either from the
command line, or using the py.exe launcher (usually defined as an opener
for the .py file type).

If your installer installed the Idle IDE, you can use that to create and
run python files.

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


Can we use Python for hacking?

2019-11-11 Thread Abdur-Rahmaan Janhangeer
Greetings all,

Someone requested my answer to the question: "Can we use Python for
hacking?"

I compiled some interesting tools and uses here .
That's as far as i could see. If someone has more examples, he can share!

Yours,

Abdur-Rahmaan Janhangeer
pythonmembers.club  | github

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


Re: Can we use Python for hacking?

2019-11-11 Thread Michael Torrie
On 11/11/19 9:49 PM, Abdur-Rahmaan Janhangeer wrote:
> Someone requested my answer to the question: "Can we use Python for
> hacking?"

Sigh.  I suppose it's a lost battle to reclaim that word.

Most of what I do with Python is hacking but likely not as you are using
the word.  Most recently I hacked together a little rsync snapshotting
backup script using Python (well xonsh).  I suspect most of the forum
members hack things with Python on a regular basis.

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