Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread dn
On 30/08/2022 06.45, Peter J. Holzer wrote: > The module is imported but it isn't bound to any name in the current > (global) namespace (obviously there must be some variable bound to it, but > that's probably a local variable in the importer and it isn't called > `x`). Then the object bound to

Re: on GNU EMACS's python-mode, loading entire buffer

2022-08-29 Thread Meredith Montgomery
Paul Rubin writes: > Meredith Montgomery writes: >> Now in 27.1, things are different. I say C-c C-c and it tells me to >> start the process with C-c C-p. I mean --- is that the most polite >> thing to do? I feel like it's telling me --- go send this buffer >> yourself! > > Hmm, I noticed

Running two separate servers (was Re: venv questions)

2022-08-29 Thread Chris Angelico
On Tue, 30 Aug 2022 at 12:59, gene heskett wrote: > > But that might create another problem. how to differentiate the servers, > both of which > will want to use localhost:5000 to serve up their web pages we run > things with. > > Suggested solutions? This is nothing to do with venvs, so I'm

Re: venv questions

2022-08-29 Thread Chris Angelico
On Tue, 30 Aug 2022 at 12:59, gene heskett wrote: > > Greetings all; > > The command to setup a venv, "python -m venv venv" has no man page that > I have > found. > $ python3 -m venv --help usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade]

venv questions

2022-08-29 Thread gene heskett
Greetings all; The command to setup a venv, "python -m venv venv" has no man page that I have found. So I'm guessing that one of the venv's is the name of the one being created. Probably argv(3) in c parlance. What I am thinking about is setting up two venv's more or less named for the

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Jach Feng
Mark Bourne 在 2022年8月29日 星期一下午6:40:59 [UTC+8] 的信中寫道: > Jach Feng wrote: > > Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: > >> On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: > >>> > >>> Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: > On 8/27/22 7:42 AM, Mark Bourne

Re: What can I do about this?

2022-08-29 Thread gene heskett
On 8/29/22 15:12, Peter J. Holzer wrote: On 2022-08-29 13:43:18 -0400, gene heskett wrote: On 8/29/22 12:50, Mark Bourne wrote: Roel Schroeven wrote: $ pip3 install -r requirements.txt  # finally invoke pip3 or: $ {path_to_venv}/bin/pip3 install -r requirements.txt That got me to

Re: Coffee

2022-08-29 Thread Dan Stromberg
On Mon, Aug 29, 2022 at 1:10 PM Meredith Montgomery wrote: > r...@zedat.fu-berlin.de (Stefan Ram) writes: > > > |Python's obviously a great tool for all kinds of programming things, > > |and I would say if you're only gonna use one programming > > |language in your live, Python will probably the

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
gene heskett wrote: On 8/29/22 12:50, Mark Bourne wrote: Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me,

on GNU EMACS's python-mode, loading entire buffer

2022-08-29 Thread Meredith Montgomery
Perhaps this isn't the right newsgroup, but I kinda feel I will find more GNU EMACS users running the native python-mode here than in GNU EMACS newsgroups. Not every GNU EMACS user cares about Python. (Right?) A sort of a complaint is that when I used to run GNU EMACS 24.3.1, I'd open a file.py

Re: Coffee

2022-08-29 Thread Meredith Montgomery
r...@zedat.fu-berlin.de (Stefan Ram) writes: > |Python's obviously a great tool for all kinds of programming things, > |and I would say if you're only gonna use one programming > |language in your live, Python will probably the right one. > Brian Kernighan > > I transcribed this from the recent

Re: What can I do about this?

2022-08-29 Thread Peter J. Holzer
On 2022-08-29 11:12:17 -0400, gene heskett wrote: > I've not had to deal with venv's before. Can more than one of these > venv things peacefully coexist? Yes. Having multiple venvs is the main reason for their existence. hp -- _ | Peter J. Holzer| Story must make more sense

Re: What can I do about this?

2022-08-29 Thread Peter J. Holzer
On 2022-08-29 13:43:18 -0400, gene heskett wrote: > On 8/29/22 12:50, Mark Bourne wrote: > > Roel Schroeven wrote: > > > $ pip3 install -r requirements.txt  # finally invoke pip3 > > > > > > or: > > > > > > $ {path_to_venv}/bin/pip3 install -r requirements.txt > That got me to showstopper #2:

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Peter J. Holzer
On 2022-08-29 11:40:33 +0100, Mark Bourne wrote: > Jach Feng wrote: > > Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: > > > On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: > > > > Sometimes I am wondering why "from x import y" hides x? > > > > hum...can't figure out the reason:-) > > > >

Re: What can I do about this?

2022-08-29 Thread gene heskett
On 8/29/22 12:50, Mark Bourne wrote: Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make

Re: What can I do about this?

2022-08-29 Thread Roel Schroeven
Mark Bourne schreef op 29/08/2022 om 13:02: Roel Schroeven wrote: > $ source {path_to_venv}/bin/pip3  # activate the venv I think this first line should probably be: $ source {path_to_venv}/bin/activate # activate the venv i.e. with `activate` rather than `pip3`? Oops, yes, of course.

Re: What can I do about this?

2022-08-29 Thread Dennis Lee Bieber
On Mon, 29 Aug 2022 04:51:13 -0400, gene heskett declaimed the following: >What, on the arms, substitutes for the missing "*.whl" file? > In Debian -- apt-get https://packages.debian.org/stable/source/wxpython4.0 of course, that will install things system-wide, not in a virtual

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Chris Angelico
On Tue, 30 Aug 2022 at 02:38, Jach Feng wrote: > > Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: > > On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: > > > > > > Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: > > > > On 8/27/22 7:42 AM, Mark Bourne wrote: > > > > > Jach Feng

Re: What can I do about this?

2022-08-29 Thread Mark Bourne
Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Mark Bourne
Jach Feng wrote: Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: On 8/27/22 7:42 AM, Mark Bourne wrote: Jach Feng wrote: I have two files: test.py and test2.py --test.py-- x = 2

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Jach Feng
Chris Angelico 在 2022年8月29日 星期一下午1:58:58 [UTC+8] 的信中寫道: > On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: > > > > Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: > > > On 8/27/22 7:42 AM, Mark Bourne wrote: > > > > Jach Feng wrote: > > > >> I have two files: test.py and test2.py > >

Re: What can I do about this?

2022-08-29 Thread gene heskett
On 8/29/22 05:25, Roel Schroeven wrote: Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv:

Re: What can I do about this?

2022-08-29 Thread Roel Schroeven
Op 29/08/2022 om 2:55 schreef gene heskett: On 8/28/22 19:39, Peter J. Holzer wrote: On 2022-08-28 18:40:17 -0400, gene heskett wrote: Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package manager version will

Re: What can I do about this?

2022-08-29 Thread gene heskett
On 8/28/22 20:51, gene heskett wrote: On 8/28/22 19:36, Chris Angelico wrote: On Mon, 29 Aug 2022 at 08:41, gene heskett wrote: Greatings all; Persuant to my claim the py3.10 is busted, here is a sample. This is me, trying to make pronterface, inside a venv: When the package manager

Re: How to make a variable's late binding crosses the module boundary?

2022-08-29 Thread Chris Angelico
On Mon, 29 Aug 2022 at 15:54, Jach Feng wrote: > > Richard Damon 在 2022年8月29日 星期一上午10:47:08 [UTC+8] 的信中寫道: > > On 8/27/22 7:42 AM, Mark Bourne wrote: > > > Jach Feng wrote: > > >> I have two files: test.py and test2.py > > >> --test.py-- > > >> x = 2 > > >> def foo(): > > >> print(x) > > >>