Re: new here

2024-08-21 Thread Dan Sommers via Python-list
On 2024-08-20 at 23:16:48 -0400,
AVI GROSS via Python-list  wrote:

> I do wonder if the people at python.org want multiple forums. There is
> also one that sort of tutors people that obviously has an overlapping
> but different audience.

$ python -m this
The Zen of Python, by Tim Peters
[...]
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
[...]
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: new here

2024-08-21 Thread dn via Python-list

On 21/08/24 10:26, Daniel via Python-list wrote:

Hi folks -

New here. I've perused some posts and haven't seen a posting FAQ for
this NG. I'm learning python right now to realize some hobby goals I
have regarding some smolnet services. What are the NG standards on
pasting code in messages? Do yall prefer I post a pastebin link if it's
over a certain number of lines? I know this isn't IRC - just asking.



Welcome Daniel!

Despite some seeming to think of sending you elsewhere, there are a 
number of people 'here' who regularly volunteer their time to help others.


As with any interaction, the quality of information in the question 
directly impacts what can be offered in-response.


More of us can help with (pure) Python questions. Moving into 
specialised areas may reduce the number who feel competent to answer.


We'll value any contribution you may be able to offer, and will look 
forward to hearing of the projects you attempt...


--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list


Re: new here

2024-08-21 Thread Daniel via Python-list
dn  writes:

> On 21/08/24 10:26, Daniel via Python-list wrote:
>> Hi folks -
>> New here. I've perused some posts and haven't seen a posting FAQ for
>> this NG. I'm learning python right now to realize some hobby goals I
>> have regarding some smolnet services. What are the NG standards on
>> pasting code in messages? Do yall prefer I post a pastebin link if it's
>> over a certain number of lines? I know this isn't IRC - just asking.
>
>
> Welcome Daniel!
>
> Despite some seeming to think of sending you elsewhere, there are a
> number of people 'here' who regularly volunteer their time to help
> others.
>
> As with any interaction, the quality of information in the question
> directly impacts what can be offered in-response.
>
> More of us can help with (pure) Python questions. Moving into
> specialised areas may reduce the number who feel competent to answer.
>
> We'll value any contribution you may be able to offer, and will look
> forward to hearing of the projects you attempt...

Thanks man. Yeah I'm not going anywhere. If I don't get good answers
from here then I'll go to IRC.

I am on forums but tend to stay away from them unless I absolutely have
to. I like newsgroups as they are - though I have noticed a massive drop
in users ever since Google dropped their groups service. I also saw a
minor drop in spam.

I'm not too worried about the trolls either.

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


Re: new here

2024-08-21 Thread Daniel via Python-list
rbowman  writes:

> On Tue, 20 Aug 2024 23:26:39 +0100, Daniel wrote:
>
>> New here. I've perused some posts and haven't seen a posting FAQ for
>> this NG. I'm learning python right now to realize some hobby goals I
>> have regarding some smolnet services. What are the NG standards on
>> pasting code in messages? Do yall prefer I post a pastebin link if it's
>> over a certain number of lines? I know this isn't IRC - just asking.
>
> 
> Standards? This is usenet, the last remaining wild west. Good news: c.l.p 
> isn't overrun by trolls.  Bad news: c.l.p doesn't seem to be overrun by 
> much of anybody.
> 

I'm not worried much about large populations. i've been on massive
forums and had less results than I did with an IRC channel with four
users. 

>
> smolnet, as in things like 

Lesser used protocols not known by many in the mainstream. Such as:

gopher, gemini, finger, spartan, titan, etc.

An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:

finger mi...@graph.no

For all options, go to the help finger:

finger h...@graph.no

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


Re: new here

2024-08-21 Thread dn via Python-list

On 22/08/24 09:15, Daniel via Python-list wrote:

rbowman  writes:


On Tue, 20 Aug 2024 23:26:39 +0100, Daniel wrote:


...

smolnet, as in things like


Lesser used protocols not known by many in the mainstream. Such as:

gopher, gemini, finger, spartan, titan, etc.

An example of use, here's a weather service tied to a finger. Put your
city name as the user. This isn't mine, but it is inspiring. Example:

finger mi...@graph.no


The OpSys on this machine no longer features finger (available for 
installation as an 'extra').


For Miami weather using a stock-standard web-browser, try: 
https://www.yr.no/en/content/2-4164138/meteogram.svg


--
Regards,
=dn
--
https://mail.python.org/mailman/listinfo/python-list


pdb: How to use the 'break' parameter?

2024-08-21 Thread Kevin M. Wilson via Python-list
break (Old_MacDonald:23 | name[indx] == 'd', indx = 4), based on the doc spec 
in python.org (https://docs.python.org/3/library/pdb.html#debugger-commands)
Cell In[1], line 20
break (Old_MacDonald:23 | name[indx] == 'd', indx = 4)
  ^
  SyntaxError: invalid syntax
I got one blank white screen when I entered the exact first line of the 
python.org-->b(reak) [([filename:]lineno | function) [, condition]]

I'd be obliged for an assist... KMW
***
"When you pass through the waters, I will be with you: and when you pass 
through the rivers, they will not sweep over you. When you walk through the 
fire, you will not be burned: the flames will not set you ablaze."      
Isaiah 43:2
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: new here

2024-08-21 Thread Jason Friedman via Python-list
On Wed, Aug 21, 2024 at 4:04 PM Daniel via Python-list <
python-list@python.org> wrote:

>
> An example of use, here's a weather service tied to a finger. Put your
> city name as the user. This isn't mine, but it is inspiring. Example:
>
> finger mi...@graph.no
>
> For all options, go to the help finger:
>
> finger h...@graph.no


Quite cool!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pdb: How to use the 'break' parameter?

2024-08-21 Thread Peter J. Holzer via Python-list
On 2024-08-22 01:44:35 +, Kevin M. Wilson via Python-list wrote:
> break (Old_MacDonald:23 | name[indx] == 'd', indx = 4), based on the doc spec 
> in python.org (https://docs.python.org/3/library/pdb.html#debugger-commands)
> Cell In[1], line 20
> break (Old_MacDonald:23 | name[indx] == 'd', indx = 4)
>   ^
>   SyntaxError: invalid syntax
> I got one blank white screen when I entered the exact first line of the 
> python.org-->b(reak) [([filename:]lineno | function) [, condition]]

You misunderstood the notation. The | means "or", it is not something
you have to type literally.

So the syntax is:
either a line number (maybe in a different file) or a function name
optionally followed by a condition after a comma

So in your case probably something like:

break Old_MacDonald:23, name[indx] == 'd'

(I'm not sure what "indx = 4" was supposed to do. You can't assign
inside of a condition.)

hp

-- 
   _  | Peter J. Holzer| Story must make more sense than reality.
|_|_) ||
| |   | h...@hjp.at |-- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |   challenge!"


signature.asc
Description: PGP signature
-- 
https://mail.python.org/mailman/listinfo/python-list