Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-03 Thread Bev In TX
> On Jul 3, 2020, at 10:23 AM, o1bigtenor wrote: > > I decry the present hypersensitivity to any hint of culture that was > present some 200 years ago especially when such sensitivity is used > to block a wider group from participating. IMO such hypersensitive > individuals might be better serve

Re: Formal Question to Steering Council (re recent PEP8 changes)

2020-07-02 Thread Bev In TX
by all who read it, as opposed to having to understand all dialects. There are numerous “white” dialects whose words and grammars are not included in those standards. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Curses Programming HowTo -reviewers?

2020-06-16 Thread Bev In TX
> On Jun 16, 2020, at 11:12 AM, Alan Gauld via Python-list > wrote: > > If anyone feels keen please reply and I'll forward a copy. > Eventually I'm aiming to put the finished document on my website. I am interested. Thanks, Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: SaveAs on macOS Catalina.

2020-05-08 Thread Bev In TX
u can get an expanded dialog by clicking on the little arrow to the right of the Where box. Using that dialog allows one to select any folder and displays folder contents. I tried using both Save and Save as, and was unable to duplicate the problem with either the short or the long dialog.

Re: Regarding Python

2020-04-17 Thread Bev In TX
s.python.org/3/tutorial/venv.html https://docs.python.org/3/library/venv.html?highlight=venv Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: python

2020-02-22 Thread Bev In TX
> On Feb 22, 2020, at 2:42 PM, MRAB wrote: > >> On 2020-02-22 18:18, lberia...@gmail.com wrote: >> hi guys can you help me.how to find maximum and minimum in list using while >> loop python > You don't need to use a loop. Use the 'max' and 'min' functions. Unless it was a homework question, in

Re: Python3 - How do I import a class from another file

2019-12-11 Thread Bev In TX
ch, I'm supposed to be rude. :-) > > Regards, > Rudy I agree with others who responded to you. You acknowledge that you are new to Python, yet you claimed to know better than Python experts. You claim you want an answer and yet you purposefully ignored their response because it

Re: Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Bev In TX
code which already contains tabs intended to be at a certain width.) I’m not the OP, but I do appreciate this info. Thanks! Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: How to convert the following IDL program lines to equivalent Python program lines?

2019-11-28 Thread Bev In TX
age control on a line printer. A8 may, or may not leave a blank in column 1, which could have caused erroneous carriage controls. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: nonlocal fails ?

2019-11-15 Thread Bev In TX
ve the value 2 as the constant 1 was changed to the >> value 2 (this can cause great confusion) > > Wow! So fubar that such a feature should definitely makes its > way into PHP! I remember fixing a bug caused by this. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: How to delay until a next increment of time occurs ?

2019-11-15 Thread Bev In TX
mpiler Collection and Clang, which can compile source files that use a combination of C++ and Objective-C syntax. Objective-C++ adds to C++ the extensions that Objective-C adds to C. As nothing is done to unify the semantics behind the various language features, certain restrictions

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
verts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised. So you don’t have a number; you have a string. Presuming that the string contains an integer, You can convert that string to an integer number with the built in int() function. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: (New to Python) Shopping List Code

2019-10-28 Thread Bev In TX
Bev > On Oct 28, 2019, at 8:42 AM, ferzan saglam wrote: > > How can I stop this code when -1 is typed or at a maximum item count of ten. > At the moment the code seems to be in a infinite loop meaning it keeps on > asking for an entry until -1 is typed > > > total = 0

Re: exec and globals and locals ...

2019-09-19 Thread Bev In TX
I’m not the OP, but I want to thank you for that clarification. I had previously not understood the ramifications of the following in section “7. Simple statements” in “The Python Language Reference”: “An augmented assignment expression like x += 1 can be rewritten as x = x + 1 to achieve a si

Re: Which editor is suited for view a python package's source?

2019-08-20 Thread Bev In TX
Sorry, I meant to trim the older portion :-( Bev in TX > On Aug 20, 2019, at 4:53 AM, Bev In TX wrote: > > Search for “Choose” (without the quote marks) on the following webpage to see > the differences between the community and commercial versions: > https://www.jetbra

Re: Which editor is suited for view a python package's source?

2019-08-20 Thread Bev In TX
Search for “Choose” (without the quote marks) on the following webpage to see the differences between the community and commercial versions: https://www.jetbrains.com/pycharm/features/ From the following webpage, “Microsoft Windows 7 SP1 or later” https://www.jetbrains.com/help/pycharm/installati

Re: Syntax for one-line "nonymous" functions in "declaration style"

2019-03-27 Thread Bev in TX
> On Mar 27, 2019, at 10:41 AM, Antoon Pardon wrote: > > I don't know. Something like the following is already legal: > > f(x)[n] = x * n > > And it does something completly different. Where would I find information on what this does in the documentatio

Re: IDLE Default Working Directory

2018-11-14 Thread Bev in TX
e project directory in the right place? > What if the network drives are down and you end up working locally? > > You could send them a zip-file of everything including my first suggestion > and it would just work. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 10:07 AM, Brian Oney wrote: > > On Mon, 2018-11-12 at 09:35 -0600, Bev in TX wrote: >> I am not the OP and I’m on macOS — no shortcuts. How would one do the same >> thing on other platforms? >> Bev in TX > Hello there, > > I am not

Re: IDLE Default Working Directory

2018-11-13 Thread Bev in TX
> On Nov 12, 2018, at 5:50 PM, Terry Reedy wrote: > > For me, open (command-O) opens 'Documents'. I presume it should be easy > enough to move into a 'py' subfolder. The whole point is for Idle -> File -> Open (or command-O) to automatically o

Re: IDLE Default Working Directory

2018-11-12 Thread Bev in TX
ows settings somewhere else >> instead. I think this is Windows 10. > > Modify the "Start in" field of the IDLE shortcut. You can use > environment variables, e.g. "%UserProfile%\Documents". I am not the OP and I’m on macOS — no shortcuts. How would one do

Re: Python indentation (3 spaces)

2018-10-07 Thread Bev in TX
> On Oct 7, 2018, at 4:30 PM, Gene Heskett wrote: > >> Free for Linux, Macs and Windows ... >> https://code.visualstudio.com/Download >> <https://code.visualstudio.com/Download> >> <https://code.visualstudio.com/Download >> <https://code.visuals

Re: Python indentation (3 spaces)

2018-10-07 Thread Bev in TX
hift-Tab after. > > But that automatically assumes one is running in a windows environment. I > don't allow it on the premises if I own the machine. Are there good, > alternatives that run on linux? > Free for Linux, Macs and Windows ... https://code.visualstudio.com/Dow

Re: New books by O’Reilly

2018-08-20 Thread Bev in TX
Thanks for mentioning this — it’s hilarious! I’ve seen all of them through the years. > >> On Sun, 19 Aug 2018, 09:00 Larry Martell, > <mailto:larry.mart...@gmail.com>> wrote: >>> >>> https://imgur.com/gallery/tW1lwEl <https://imgur.com/galler

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Bev in TX
ding library. > -- > https://mail.python.org/mailman/listinfo/python-list Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: logging module

2018-07-01 Thread Bev in TX
;) > logger.warning("Its a Warning") > logger.error("Did you try to divide by zero") > logger.critical("Internet is down") > > PS: I am running this under Enthought Canopy > > The following is the output > %run "D:/Projects/Initiatives/machine learning/programs/debug_4.py" > -- > https://mail.python.org/mailman/listinfo/python-list Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: Why exception from os.path.exists()?

2018-06-10 Thread Bev in TX
I accidentally did not send this to the list... > On Jun 10, 2018, at 7:10 PM, Bev in TX wrote: > > >> On Jun 10, 2018, at 3:10 PM, Chris Angelico > <mailto:ros...@gmail.com>> wrote: >>> ... >> >> Can you try creating "spam:ham" and

Re: Why exception from os.path.exists()?

2018-06-10 Thread Bev in TX
73 6c 61 73 68 > Bonuspoints for doing this on an USB stick and then mounting the USB > stick on a Linux system and posting the output there as well. > Sorry, I don’t have Linux, but I suspect it’s the same as the macOS command line. > I'm really curious how MacOS maps those characters in the POSIX API. > >hp Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: help on "from deen import *" vs. "import deen"

2016-11-20 Thread Bev in TX
Thanks to ChrisA and Ned for that clarification. Bev in TX -- https://mail.python.org/mailman/listinfo/python-list

Re: help on "from deen import *" vs. "import deen"

2016-11-20 Thread Bev in TX
)) which is also equivalent to: cheese = obj eggs = cheese spam = eggs These all are now references to obj. In both of your examples, everything also ends up as references to obj. The only difference is the order of evaluation. Bev in TX On 11/19/16 12:58 AM, Chris Angelico wrote: On Sat, Nov 19

Re: How to handle errors?

2016-11-09 Thread Bev in TX
the "python3" link, rather than "python3.5". That way your script would continue to run when you later upgrade to a new version of Python 3, such as 3.6. #!/usr/bin/env python3 Bev in TX On 10/20/16 10:13 PM, D'Arcy Cain wrote: Which would fail on my system because

Re: locale and for loop on same line

2016-01-23 Thread Bev in TX
According to the documentation, "...simple statements may occur on a single line separated by semicolons." The "for" statement is a compound, not simple, statement. Would it be possible to place your statements in a function and then you would just need to invoke the funct

Re: logging SMTPhandler Error

2009-08-23 Thread Bev in TX
ahz (a...@pythoncraft.com)           <*>        http://www.pythoncraft.com/ > > "I support family values -- Addams family values" --www.nancybuttons.com Thanks :-). I'm not sure that I understand exactly what needs to be done, but I'll read the documentation and see what

Re: logging SMTPhandler Error

2009-08-22 Thread Bev in TX
- > > - Show quoted text - Thanks for the excellent and informative response :-). I'll investigate further, as you suggested, now that I understand what is happening. Bev in TX -- http://mail.python.org/mailman/listinfo/python-list

Re: logging SMTPhandler Error

2009-08-22 Thread Bev in TX
On Aug 21, 8:34 am, Bev in TX wrote: > Hi, > > I've done some Python programming, but I still consider myself a > Python newbie.  I have a Mac Pro OS X 10.5.8 system and I installed > Python 2.6.2 (the latest package available for the Mac) yesterday. > > I was wor

Logging with SMTP Error on Mac

2009-08-21 Thread Bev in TX
extension not supported by server.") SMTPException: SMTP AUTH extension not supported by server. I am able access gmail via Mac's Mail, in which it says that outgoing mail is going to: smtp.gmail.com:mailid I tried using that as the server in the Python script, but it could not find that server. Is this possible? If I am doing something incorrectly, would someone please indicate what it is? Thanks, Bev in TX -- http://mail.python.org/mailman/listinfo/python-list

Re: Missing sqlite3.h Error when Building Debug Python -- Windows Vista

2008-07-21 Thread Bev in TX
ndows Vista, and I may have made some error when changing the build files. I'd appreciate any other thoughts ... Bev in TX On Jul 20, 10:36 am, Tim Golden <[EMAIL PROTECTED]> wrote: > I'll leave others to comment on whether or not > it's expected to build with VS2005, but t

Missing sqlite3.h Error when Building Debug Python -- Windows Vista

2008-07-19 Thread Bev in TX
o get the whole thing, or will just sqlite3.h resolve the build problem. As far as I know, I don't really need sqlite. If I do need to execute that svn command, how do I execute that under MS Windows? Or is there some other way in which to circumvent this error? Thanks, Bev in TX -- http://mai