Re: A Newspaper for Python Mailing Lists

2022-01-20 Thread Abdur-Rahmaan Janhangeer
Well, this one is a newspaper as opposed to being a newsletter.

Newsletters are a collection of links. See

AwesomePython
PythonWeekly
PyCoders Weekly

Newspapers also contain articles, the above don't.

As some mails pointed out above, this is like
the lwn of Python

I have been avoiding the topics and formats used by existing
newsletters by focusing on news among others.

But its funny to see one of them starting to cover news
by writing an external article on a website they own
then link it in the newsletter. It's what you call
competition i guess XD

The focus of this one is and remains mailing lists / discuss platforms.
A look at the archives and you can see publishing
interesting mails. Something you don't have with newsletters.

The main aim of it is getting myself updated with
discussions and pep status and sharing it with the world.
Something i feel i was not getting with existing resources.
I had cool tutos/articles, new libs, popular posts,
job openings, events but not a complete overview
of meta posts.

On Fri, 21 Jan 2022, 02:13 Dan Stromberg,  wrote:

>
> There's also Python Weekly:
> https://www.pythonweekly.com/
>
> On Sat, Jan 8, 2022 at 10:29 PM Abdur-Rahmaan Janhangeer <
> arj.pyt...@gmail.com> wrote:
>
>> Well yes XD though LWN covers Py topics well when it wants
>>
>>
>> 1. Yes sure, did not expect RSS interest
>> 2. Excuse my blunder, will do!
>>
>>
>
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Puzzling behaviour of Py_IncRef

2022-01-20 Thread Chris Angelico
On Fri, 21 Jan 2022 at 10:10, Greg Ewing  wrote:
>
> On 20/01/22 12:09 am, Chris Angelico wrote:
> > At this point, the refcount has indeed been increased.
> >
> >>   return self;
> >>  }
> >
> > And then you say "my return value is this object".
> >
> > So you're incrementing the refcount, then returning it without
> > incrementing the refcount. Your code is actually equivalent to "return
> > self".
>
> Chris, you're not making any sense. This is C code, so there's no
> way that "return x" can change the reference count of x.

Yeah, I wasn't clear there. It was equivalent to *the Python code*
"return self". My apologies.

>  > The normal thing to do is to add a reference to whatever you're
>  > returning. For instance, Py_RETURN_NONE will incref None and then
>  > return it.
>  >
>
> The OP understands that this is not a normal thing to do. He's
> trying to deliberately leak a reference for the purpose of diagnosing
> a problem.
>
> It would be interesting to see what the actual refcount is after
> calling this function.
>

Yes, and that's why I was saying it would need a *second* incref.

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


Re: Puzzling behaviour of Py_IncRef

2022-01-20 Thread Greg Ewing

On 20/01/22 12:09 am, Chris Angelico wrote:

At this point, the refcount has indeed been increased.


  return self;
 }


And then you say "my return value is this object".

So you're incrementing the refcount, then returning it without
incrementing the refcount. Your code is actually equivalent to "return
self".


Chris, you're not making any sense. This is C code, so there's no
way that "return x" can change the reference count of x.

> The normal thing to do is to add a reference to whatever you're
> returning. For instance, Py_RETURN_NONE will incref None and then
> return it.
>

The OP understands that this is not a normal thing to do. He's
trying to deliberately leak a reference for the purpose of diagnosing
a problem.

It would be interesting to see what the actual refcount is after
calling this function.

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


Re: empty stdout (subprocess.run)

2022-01-20 Thread James Smith
On Wednesday, January 19, 2022 at 11:14:28 PM UTC-5, cameron...@gmail.com wrote:

> But I recommend you use shell=False and make: 
> 
> cmd = ["/usr/bin/transmission-remote", "--torrent", str(torrentno), "--info"] 

I like that. :-)
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: empty stdout (subprocess.run)

2022-01-20 Thread James Smith
On Wednesday, January 19, 2022 at 11:08:58 PM UTC-5, Dennis Lee Bieber wrote:

> Don't you need to provide for that %s? Perhaps 
> 
> cmd="/usr/bin/transmission-remote --torrent %s --info" % torrentno 

That works, thanks.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: What to write or search on github to get the code for what is written below:

2022-01-20 Thread NArshad


- I will try to follow all that you people are saying, but it will take time or 
next time. The chance of concurrency is very less. Kindly don't write big 
descriptions.

- The weblink Avi Gross has given is very useful.






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


Re: A Newspaper for Python Mailing Lists

2022-01-20 Thread Dan Stromberg
There's also Python Weekly:
https://www.pythonweekly.com/

On Sat, Jan 8, 2022 at 10:29 PM Abdur-Rahmaan Janhangeer <
arj.pyt...@gmail.com> wrote:

> Well yes XD though LWN covers Py topics well when it wants
>
>
> 1. Yes sure, did not expect RSS interest
> 2. Excuse my blunder, will do!
>
>

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


Re: A Newspaper for Python Mailing Lists

2022-01-20 Thread Abdur-Rahmaan Janhangeer
Now I have a concern. For the RSS feed. Does your client filter by the
latest
item or pubDate? I published another edition yesterday but noticed that
the item was not the latest in the list.

Kind Regards,

Abdur-Rahmaan Janhangeer
about  | blog

github 
Mauritius


On Sun, Dec 26, 2021 at 8:40 PM Abdur-Rahmaan Janhangeer <
arj.pyt...@gmail.com> wrote:

> Greetings lists,
>
> I have started a newspaper (not newsletter) focused
> on interesting reads on Python mailing lists. Don't tag
> on the fact that holiday seasons are the worst times for
> launch according to marketing folks, I started this to note
> down interesting mails. This might also be a great way to
> bring mailing list gems to a wider readership. So, here's
> the url https://pyherald.com/
>
> Kind Regards,
>
> Abdur-Rahmaan Janhangeer
> about  | blog
> 
> github 
> Mauritius
>
-- 
https://mail.python.org/mailman/listinfo/python-list