Re: Import Problem on WIndows py3

2012-09-04 Thread Jimbo Jim
On Tuesday, September 4, 2012 1:45:55 PM UTC-7, Werner Thie wrote: > On 9/4/12 9:49 AM, jimmyli1528 wrote: > > > I have a main program and a 3rd party module. Trying to import colorama, > > where colorama is a folder with files in it, returns an ImportError: No > > module named colorama. How sho

Pexpect and buffering

2012-12-15 Thread jim . hefferon
back .." message, that is, pexpect is not waiting for the >>> prompt. I have included the output of the program below, after the program. (In case it helps, spawning Python with -u doesn't make any difference.) I'd be very glad for any suggestions. Jim The program: -

Re: Pexpect and buffering

2012-12-16 Thread jim . hefferon
Sorry to reply to my own post, but I believe I have my answer and I want to help anyone who might google their way here: I need to change PROMPT and PROMPT_CONTINUE to be regular expressions, for instance by escaping the periods. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Book for a C Programmer?

2012-05-24 Thread Jim Wilson
On 05/23/2012 07:45 PM, hsa...@gmail.com wrote: > I am trying to join an online class that uses python. I need to brush up on > the language quickly. Is there a good book or resource that covers it well > but does not have to explain what an if..then..else statement is? > > Thanks. My opinion:

Re: uhmm... your chance to spit on me

2011-06-10 Thread Jim Burton
th the rest of the world or with some imaginary group within it, the "tech fuck geekers" or whatever it is. So I represent an option that you missed out :-) Anyway, keep it up. Jim > Dear Xah, your writing is: > > • Full of bad grammar. River of Hiccups. > > • Stil

Re: [Python-ideas] allow line break at operators

2011-08-11 Thread Jim Jewett
On Thu, Aug 11, 2011 at 5:29 PM, Devin Jeanpierre wrote: > Howeverm indentation errors have been extremely rare in my experience, > so I'm not really compelled to think it's harmful. Especially since > 3.x outlaws mixing tabs and spaces. I normally get them when starting with code from somewhere

subscribef

2011-05-24 Thread Jim Syyap
-- http://mail.python.org/mailman/listinfo/python-list

Can't get python running

2018-01-20 Thread Jim Sadler
I downloaded python 3.6.4 and although everything about the installation seems correct (path, file size, checking on cmd to see if file installed correctly-it is) the only window that will pop up when I attempt to run it is the set-up window offering to modify, restore, or uninstall. I have uninst

Re: Problem using cx_Freeze

2022-08-15 Thread Jim Schwartz
This link covers how to use BDist_dmg. https://cx-freeze.readthedocs.io/en/latest/setup_script.html Sent from my iPhone > On Aug 15, 2022, at 12:11 PM, David at Booomer wrote: > > I’m trying to use cx_Freeze (https://pypi.org/project/cx-Freeze/) in a > python app but running into an error m

Re: Python scripts in .exe form

2022-08-20 Thread Jim Schwartz
What method did you use to create the exe file from your python scripts? If it was pyinstaller, then it puts the compiled versions of these python scripts in a windows temp folder when you run them. You’ll be able to get the scripts from there. Sent from my iPhone > On Aug 19, 2022, at 9:51

Re: Apparent Issue with Administrator Privileges

2022-10-18 Thread Jim Schwartz
Is PYTHONPATH a user defined environment variable or system defined environment variable? Sent from my iPhone > On Oct 18, 2022, at 1:56 PM, Walsh, Ginny (US) wrote: > > Hello- > > I've been struggling with resolving environmental variables issues and I > believe it is linked to my compan

Fwd: Installation hell

2022-12-18 Thread Jim Lewis
I'm an occasional user of Python and have a degree in computer science. Almost every freaking time I use Python, I go through PSH (Python Setup Hell). Sometimes a wrong version is installed. Sometimes it's a path issue. Or exe naming confusion: python, python3, phthon311, etc. Or library compatibil

RE: Fwd: Installation hell

2022-12-19 Thread Jim Schwartz
ending an email? Ask for a refund on your compsci degree. -Original Message- From: Python-list On Behalf Of DFS Sent: Monday, December 19, 2022 12:58 PM To: python-list@python.org Subject: Re: Fwd: Installation hell On 12/18/2022 6:50 AM, Jim Lewis wrote: > I'm an occasional us

Re: How to read file content and send email on Debian Bullseye

2023-02-05 Thread Jim Jackson
On 2023-02-05, ^Bart wrote: >> For example, try to do whatever parts you know how to do and when some part >> fails or is missing, ask. > > You're right but first of all I wrote what I'd like to do and if Python > could be the best choice about it! :) I'd say you want a simple shell script wrapp

Re: How to read file content and send email on Debian Bullseye

2023-02-05 Thread Jim Jackson
On 2023-02-05, ^Bart wrote: >> xdg-email appears to be for interactive use (it opens the user's >> "preferred email composer"); I think sendmail would work much better >> from a script. > > Like what I said in another post I think I could use ssmtp than > xdg-email or sendmail... > >> Otherwise,

Not receiving posts

2023-02-23 Thread Jim Byrnes
done nothing to warrant removal. Can you please check and see what I need to do to start receiving emails once more. regards, Jim Byrnes -- https://mail.python.org/mailman/listinfo/python-list

test

2023-03-07 Thread Jim Byrnes
haven't received anything from the list for quite awhile. Got no response when I tried to contact the administrator. -- https://mail.python.org/mailman/listinfo/python-list

Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
I want a windows installer to install my application that's written in python, but I don't want the end user to have access to my source code. Is that possible using python? I was using cx-freeze, but that has the source code available. So does pyinstaller. I think gcc does, too. Does

RE: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
out access to source code On Fri, 31 Mar 2023 at 23:01, Jim Schwartz wrote: > > I want a windows installer to install my application that's written in > python, but I don't want the end user to have access to my source code. > > > > Is that possible using python? I

Re: Windows installer from python source code without access to source code

2023-03-31 Thread Jim Schwartz
Yea. You’re right. I probably need a lawyer someday. Thanks. Sent from my iPhone > On Mar 31, 2023, at 5:12 PM, Thomas Passin wrote: > > On 3/31/2023 5:16 PM, Jim Schwartz wrote: >> What license do I have to choose so people can't use my code? I don't know >>

Re: Windows installer from python source code without access to source code

2023-04-01 Thread Jim Schwartz
doesn’t matter. I have to do a lot more work before I get to that point Sent from my iPhone > On Mar 31, 2023, at 6:52 PM, Chris Angelico wrote: > > On Sat, 1 Apr 2023 at 10:34, Jim Schwartz wrote: >> >> Yea. You’re right. I probably need a lawyer someday. Thanks. >&

Windows Gui Frontend

2023-04-01 Thread Jim Schwartz
I have another question. I have an app written in python, but I want to add a windows GUI front end to it. Can this be done in python? What packages would allow me to do that? Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Windows Gui Frontend

2023-04-01 Thread Jim Schwartz
Are there any ide’s that will let me design the screen and convert it to python? I doubt it because it was mentioned that this is time consuming. Thanks for the responses everyone. I appreciate it. Sent from my iPhone > On Apr 1, 2023, at 10:37 AM, Eryk Sun wrote: > > On 4/

RE: [Python-Dev] Small lament...

2023-04-01 Thread Jim Schwartz
Yea, it is funny. I commented on it. -Original Message- From: Python-list On Behalf Of Eryk Sun Sent: Saturday, April 1, 2023 2:23 PM To: Skip Montanaro Cc: Python ; python-dev Dev Subject: Re: [Python-Dev] Small lament... On 4/1/23, Skip Montanaro wrote: > Just wanted to throw this

RE: Windows installer from python source code without access to source code

2023-04-04 Thread Jim Schwartz
Where can I download that cl program? I've used gcc before, but I hear that cl can use a setup.py program to run the compile and link and create a windows .msi installer. Is that true? -Original Message- From: Eryk Sun Sent: Friday, March 31, 2023 12:55 PM To: Jim Schwart

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
are\aws_pc_backup\src\c>aws_pc_backup.exe -m:lb Traceback (most recent call last): File "src\\python\\aws_pc_backup_main.py", line 7, in init python.aws_pc_backup_main ModuleNotFoundError: No module named 'requests' -Original Message- From: Barry Sent: Tuesday, April

Re: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
Could someone please help Carlos?  I’m not sure how to answer his question  Sent from my iPhone On Apr 6, 2023, at 3:53 PM, Carlos Fulqueris wrote:  Hello Jim, How can I unsubscribe to this email list? I'm waiting for your response. Thanks C

RE: Windows installer from python source code without access to source code

2023-04-06 Thread Jim Schwartz
Never mind. I found it on the web. I needed to point my PYTHONPATH to sitepackages: https://stackoverflow.com/questions/56857449/importerror-after-cython-embed -Original Message- From: Python-list On Behalf Of Jim Schwartz Sent: Thursday, April 6, 2023 2:50 PM To: 'Barry

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
From: Eryk Sun Sent: Thursday, April 6, 2023 8:06 PM To: Jim Schwartz Cc: python-list@python.org Subject: Re: Windows installer from python source code without access to source code On 4/6/23, Jim Schwartz wrote: > Never mind. I found it on the web. I needed to point my PYTHONPATH &

RE: Windows installer from python source code without access to source code

2023-04-07 Thread Jim Schwartz
which files to include in the package and list them. https://stackoverflow.com/questions/62390978/minimal-set-of-files-required-to-distribute-an-embed-cython-compiled-code-and-ma -Original Message- From: Jim Schwartz Sent: Friday, April 7, 2023 5:33 AM To: 'Eryk Sun' Cc

RE: Windows installer from python source code without access to source code

2023-04-09 Thread Jim Schwartz
Thanks everyone for the help. I got my app working with using cython to generate the c code, cl to compile, and visual studio to create the setup.exe and the msi installer. I appreciate the help. -Original Message- From: Python-list On Behalf Of Jim Schwartz Sent: Friday, April 7, 2023

Re: Christoph Gohlke and compiled packages

2023-04-11 Thread Jim Schwartz
What’s the problem now? Is it with python on windows? I use python on windows so I’d like to know. Thanks Sent from my iPhone > On Apr 11, 2023, at 2:24 AM, Chris Angelico wrote: > > On Tue, 11 Apr 2023 at 14:20, Mike Dewhirst wrote: >> >> It seems Christoph Gohlke has been cut adrift and

Re: Help on ctypes.POINTER for Python array

2023-05-11 Thread Jim Schwartz
I’m not sure this is the shortest method, but you could set up two python scripts to do the same thing and convert them to c using cython. I wouldn’t be able to read the c scripts, but maybe you could. Maybe someone else has a more direct answer. Sent from my iPhone > On May 11, 2023, at 10:

RE: Learning tkinter

2023-05-18 Thread Jim Schwartz
This works for me. Hope it helps. from tkinter import messagebox messagebox.showerror("Hi", f"Hello World") -Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Friday, May 12, 2023 3:55 AM To: Python Subject: Learning tkinter I am trying to learn tkint

pandas/jupyther notebook?

2021-04-07 Thread Jim Byrnes
ender'].ast it will not complete astype. I wonder if someone can tell me why this is happening and maybe how to fix it. Thanks, Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: pandas/jupyther notebook?

2021-04-08 Thread Jim Byrnes
On 4/7/21 4:32 PM, Jim Byrnes wrote: linux mint 20 python 3.8 jupyter 1.0.0 jedi 0.18.0 I am teaching myself pandas/jupyter notebooks. The problem I am having is tab autocomplete seems to be working erratically. Googling shows that most people solve autocomplete problems by putting  import

Re: pandas/jupyther notebook?

2021-04-09 Thread Jim Byrnes
On 4/9/21 3:29 AM, Thomas Jollans wrote: On 07/04/2021 23:32, Jim Byrnes wrote: linux mint 20 python 3.8 jupyter 1.0.0 jedi 0.18.0 I am teaching myself pandas/jupyter notebooks. The problem I am having is tab autocomplete seems to be working erratically. Googling shows that most people

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-05 Thread Jim Byrnes
ppear once or twice? In theory it should go to the newsgroup only which would mirror it to the list. FWIW, none of the messages in this this thread are dupes for me and I can't remember the last time I saw a dupe from you. Regards, Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Annoying message duplication, was Re: Unsubscribe/can't login

2021-05-06 Thread Jim Byrnes
On 5/5/21 1:07 PM, Jan van den Broek wrote: On 2021-05-05, Jim Byrnes wrote: On 5/5/21 9:39 AM, Peter Otten wrote: On 05/05/2021 16:10, Ethan Furman wrote: I see your messages twice (occasionally with other posters as well). I have no idea how to fix it.?? :( OK, I'll try another o

Slow tarfile extract on armv7l Linux machine

2018-04-16 Thread Jim MacArthur
Hi, I'm seeing a very slow extraction of an uncompressed tar file using 'tarfile' in Python 3.5.3 vs. the native Debian tar tool. This is a console log from my machine: jimm@scw-01:~$ time tar xf update.tar real    0m3.436s user    0m0.430s sys 0m2.870s jimm@scw-01:~$ rm -rf home j

leetv 1.12 released

2018-05-30 Thread Jim Lee
edule, or to add a few more commercials that I found on YouTube, but that's it. I don't even have to stop or restart anything. It works so well that I added a wireless HDMI transmitter so that the signal is available on any TV in the house! --- Thanks for reading, --Jim Lee -- https://mail.python.org/mailman/listinfo/python-list

tkinter (ttk) combobox dropdown text is white on white

2018-06-03 Thread Jim Lee
he combobox itself, but I cannot figure out how to alter the appearance of entries in the dropdown list. Any pointers? Thanks, -Jim Lee -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-04 Thread Jim Lee
Oops, I hit "reply" instead of "reply-list" last time.  Trying again... On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(root) cb.grid(row=0, colu

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread Jim Lee
On 06/05/2018 12:21 AM, Peter Otten wrote: Jim Lee wrote: Oops, I hit "reply" instead of "reply-list" last time. Trying again... On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import

Re: site package does not work

2018-06-06 Thread Jim Lee
match between user or group id and effective id) or by an administrator. || So perhaps a mismatch between UID/GID and EID is causing the whole process to silently fail... || -Jim || -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install matplotlib in Debian 9

2018-06-08 Thread Jim Lee
ted packages in its repository.  If you need the latest version of matplotlib, use pip (you'll have to update it manually).  If you want old but stable, use apt-get. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: mutable sequences

2018-06-13 Thread Jim Lee
uffer from the restrictions placed on tuples - i.e. immutability.  In other words, lists are mutable, tuples are immutable.  Try to find a better book - which is difficult to do these days. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-13 Thread Jim Lee
I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase software and then agree to wait 14 weeks for it to be delivered?  I can see that model for hardware, where material resources are limited and a finit

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-14 Thread Jim Lee
On 06/13/2018 11:38 PM, Chris Angelico wrote: On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote: I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase software and then agree to wait 14 weeks

Re: Python list vs google group

2018-06-15 Thread Jim Lee
n someone released a native Linux driver for the scanner.  When I moved the scanner to my Linux box, it worked fine regardless of temperature. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread Jim Lee
On 06/15/2018 07:08 PM, Richard Damon wrote: On 6/15/18 9:00 PM, Jim Lee wrote: On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN Really?  I always

Re: Python list vs google group

2018-06-16 Thread Jim Lee
On 06/16/2018 08:36 AM, Richard Damon wrote: On 6/15/18 11:07 PM, Jim Lee wrote: [snip] I once had a Mustek color scanner that came with a TWAIN driver.  If the room temperature was above 80 degrees F, it would scan in color - otherwise, only black & white.  I was *sure* it was a hard

Re: Python list vs google group

2018-06-16 Thread Jim Lee
he product! And in so doing, produce an exponential growth in wasted money and time worldwide as countless people struggle to do things that "sort of work". -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-16 Thread Jim Lee
overload, but these are some of the key things a Python newcomer needs to wrap their head around -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Why an object changes its "address" between adjacent calls?

2018-06-17 Thread Jim Lee
; The "address" of the Font object 'TkDefaultFont' changes, why? Best Regards, Jach Fong def nametofont(name):     """Given the name of a tk named font, returns a Font representation.     """     return Font(name=name, exists=True) Every time you call nametofont(), you're creating a new instance of the Font class. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-17 Thread Jim Lee
e shows that the wrong language was chosen for the job. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 01:35 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:23 AM, Marko Rauhamaa wrote: Jim Lee : IMHO, trying to shoehorn static type checking on top of a dynamically typed language shows that the wrong language was chosen for the job. I'm also saddened by the type hi

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 01:56 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:50 AM, Jim Lee wrote: On 06/17/2018 01:35 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:23 AM, Marko Rauhamaa wrote: Jim Lee : IMHO, trying to shoehorn static type checking on top of a dynamically typed

Re: syntax difference

2018-06-17 Thread Jim Lee
a Linux subsystem into Windows.  I don't even use Windows, yet by your logic, I can't call it "shoehorning". -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 05:39 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 10:22 AM, Jim Lee wrote: On 06/17/2018 02:17 PM, Chris Angelico wrote: [snip] My apologies, stuff wrapped and I misread as I skimmed back. You were the one who used the word "shoehorned". In the same way, t

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 10:04 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 2:59 PM, Jim Lee wrote: On 06/17/2018 05:39 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 10:22 AM, Jim Lee wrote: On 06/17/2018 02:17 PM, Chris Angelico wrote: [snip] My apologies, stuff wrapped and I misread as

Re: syntax difference

2018-06-18 Thread Jim Lee
ragile and bloated that people will walk away from it. In reading through many of the PEPs, I'm reminded of the saying, "If all you have is a hammer, everything looks like a nail". -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 10:46 AM, Chris Angelico wrote: On Tue, Jun 19, 2018 at 3:34 AM, Jim Lee wrote: On 06/18/2018 07:03 AM, Steven D'Aprano wrote: As a human programmer, you surely perform your own ad hoc type checking when you write and debug code. Of course. And, I use linting tool

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 11:01 AM, Ian Kelly wrote: On Mon, Jun 18, 2018 at 11:39 AM Jim Lee wrote: On 06/18/2018 07:03 AM, Steven D'Aprano wrote: As a human programmer, you surely perform your own ad hoc type checking when you write and debug code. Of course. And, I use linting tools and

Re: syntax difference

2018-06-18 Thread Jim Lee
affect the execution path in any way. Therefore, they are effectively and actually comments.  The way they have been implemented, though, causes noise to be interspersed with live code and, as others have said, are difficult to remove or ignore. -Jim -- https://mail.python.org/mailman/listinfo

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 11:49 AM, Chris Angelico wrote: On Tue, Jun 19, 2018 at 4:34 AM, Jim Lee wrote: On 06/18/2018 11:18 AM, Chris Angelico wrote: What, fundamentally, is the difference between type hints and assertions, such that - in your view - one gets syntax and the other is just comments

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 12:52 PM, Rhodri James wrote: On 18/06/18 19:34, Jim Lee wrote: Type hints are just that - hints.  They have no syntactic meaning to the parser, This is plainly not true, otherwise the parser would be throwing syntax errors at you all the time.  Whether they have semantic

Re: syntax difference

2018-06-18 Thread Jim Lee
re it.  I still have to deal with other people's code. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Folk etymology, was Re: Python list vs google group

2018-06-18 Thread Jim Lee
diodes, until the name "Schottky" became commonplace in, what, the mid 80s or so? -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to call a class but without a new instance created?

2018-06-19 Thread Jim Lee
nt exists, the Font object calls this:     tk.call("font", "configure", self.name, *font) Otherwise, it calls this:     tk.call("font", "create", self.name, *font) The font caching is all handled by Tk, not Python.  The Font object is just a wrapper around calls to Tk. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-19 Thread Jim Lee
On 06/19/2018 04:13 AM, Ed Kellett wrote: I think we're all--still--missing the larger point that "easy to remove" is a completely stupid metric for judging language features. Seriously. Not a little bit stupid. Not if you think of the feature as analogous to cancer.

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-23 Thread Jim Lee
hon 2 are genuinely weird :-) I would *expect* [1, 2, None], though I haven't actually tried running it. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-23 Thread Jim Lee
On 06/23/2018 11:02 PM, Chris Angelico wrote: On Sun, Jun 24, 2018 at 3:44 PM, Jim Lee wrote: On 06/23/2018 10:03 PM, Steven D'Aprano wrote: I'd like to run a quick survey. There is no right or wrong answer, since this is about your EXPECTATIONS, not what Python actually does.

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-23 Thread Jim Lee
On 06/23/2018 11:16 PM, Chris Angelico wrote: On Sun, Jun 24, 2018 at 4:08 PM, Jim Lee wrote: There are three locals: a, b, and result. Since result cannot be assigned a value until the list comp has been evaluated, I would expect the comp to return a value of "None" for r

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Jim Lee
On 06/24/2018 04:35 AM, Steven D'Aprano wrote: Indeed. That's one of the beauties of Python -- even when there's an advanced way to do it, there's generally a simple way too. What happened to the Python maxim "There should be one—and preferably only one—obvi

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 11:16 PM, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 4:08 PM, Jim Lee wrote: >> There are three locals: a, b, and result. Since result cannot be assigned >> a value until the list comp has been evaluated, I would expect the comp to >> re

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 10:03 PM, Steven D'Aprano wrote: > I'd like to run a quick survey. There is no right or wrong answer, since > this is about your EXPECTATIONS, not what Python actually does. > > Given this function: > > > def test(): > a = 1 &

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 11:02 PM, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 3:44 PM, Jim Lee wrote: >> >> On 06/23/2018 10:03 PM, Steven D'Aprano wrote: >>> I'd like to run a quick survey. There is no right or wrong answer, since >>> this

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Jim Lee
From: Jim Lee On 06/24/2018 04:35 AM, Steven D'Aprano wrote: > > Indeed. That's one of the beauties of Python -- even when there's an > advanced way to do it, there's generally a simple way too. > > What happened to the Python maxim "There should be one

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
his ends rather than try to inject a payload externally. These days, "execute arbitrary code" implies a deliberate attack. Now, if you used input validation as an argument, I would agree that configparser is, if not safer, easier. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: OSError: [Errno 48] Address already in use

2018-06-27 Thread Jim Lee
On 06/27/18 08:49, T Berger wrote: Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. You asked this question two weeks ago and got several answers.  Here is one of them: On 06/15/18 10:17, Percival John Hackworth wrote: On 15-

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
On 06/27/18 15:19, Steven D'Aprano wrote: On Wed, 27 Jun 2018 12:15:23 -0700, Jim Lee wrote:   It seems a bit silly to me to worry about arbitrary code execution   in an interpreted language like Python whose default runtime execution method is to parse the source code directly

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
ecurity-conscious situation. It's more like leaving the door unlocked while I'm home... -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
ese days.  There are still hundreds (if not thousands) of them. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
h you that it's a bad idea.  I was pointing out that I look at it from an input validation viewpoint rather than a security viewpoint - that's all. Absolute security isn't a solvable problem.  It isn't even a technical problem.  But that's a discussion for another time

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
On 06/28/18 11:45, Grant Edwards wrote: On 2018-06-28, Jim Lee wrote: On 06/28/18 07:34, Grant Edwards wrote: OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in POTS modem, but it&#x

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
ey have valid values. You are making a strawman argument, since you are (again) misrepresenting what I said.  Therefore, I will give you no more opportunities. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-29 Thread Jim Lee
wn machine. In other words, you're connecting to yourself.  You can't use it simultaneously for both applications - you'll need to change the port number to something other than 5000 in one of them. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-29 Thread Jim Lee
a message from coast to coast in several years. I suspect that some nodes are tunneling via the Internet, which sort of defeats the purpose. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Jim Lee
Cheers, Cameron Simpson It's actually "baroque", not "baraque", and Cameron has the right idea - lavish, extravagant, overly complicated. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Jim Lee
for instance, rather than hard-coding values on where to find glib (or other libraries). It is language-agnostic, so it can be used for defining the location of documentation tools, for instance." -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: error in os.chdir

2018-06-30 Thread Jim Lee
nternally to the correct path separators for your operating system. Another way is to replace the backslashes with os.sep, which is a portable representation of the native path separator. A third way is to escape all literal backslashes by doubling them - "\\" instead of "\"

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-06-30 Thread Jim Lee
exists). Q gets the data intended for P. There are all sorts of theoretical vulnerabilities that simply don't manifest in real life.  I think this is one of them. Me: "It hurts when I do this."  Doctor: "Well, don't do that." -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-01 Thread Jim Lee
have morphed into large, monolithic, bloated language *systems* that do many things in many domains, and have many ways to do the *same* thing, but none of it particularly well.  Throwing more processor horsepower and more GB of memory at the problem can only mask it for so long. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
On 07/02/18 04:01, Steven D'Aprano wrote: On Sun, 01 Jul 2018 20:51:42 -0700, Jim Lee wrote: Back before the dot com boom, programmers (generally) knew at least 6, 7, 8 languages. You obviously didn't know (m)any of the hundreds of thousands of COBOL programmers.   I did know

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
ltiple paradigms. However, the hiring process today is based on tick boxes in an automated search form.  Qualified individuals don't even come up on the radar because the criteria for qualification has changed. -Jim -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
7;ve already hit a wall performance-wise.  Physics only allows so many electrons to flow through a nm-sized pipe.  Now, the "solution" is to keep adding more cores. But that doesn't help if an application doesn't lend itself to a multi-threaded design.  So, software efficie

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
the general craft of programming, not a specific language. Since 10,000 hours is about 5 years in a 9-5 setting, I'd say that's about right. As I'm sure you've experienced, picking up a second language after mastering the general craft of programming takes far less time.

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
act number of hours *is* foolish - but nobody was doing that.  I was simply pointing out that you used three vastly different numbers in almost the same breath to describe how long it takes a person to master something. I think we both get the idea - let's back out of this rabbit

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Jim Lee
ow being farmed out overseas as black box bids.  After I retired, my team was sent to China to "train" a new group (read brain dump), and was then summarily disbanded. -Jim -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   >