Às 02:11 de 15/07/19, Chris Angelico escreveu:
> On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva
> wrote:
>>
...
>>
>> Thank you Jollans. I forgot multiple inheritance. I never needed it in
>> python, so far.
>>
>
> Something to consider is that super() becomes useful even if someone
> else uses
Hmm, removing the path didn’t help either.
I ended up defining the `LLVM_AR=/path/to/homebrew/llvm-ar` environment
variable after installing clang from brew. I was worried that there would be
problems using ar from a different version of the toolchain than the compiler,
but things seem to have
On Tue, Jul 16, 2019 at 11:13 AM Barry Scott wrote:
> I'm going to assume you are on linux.
>
Yes, I am. Ubuntu 16.04.6 LTS sometimes, Mint 19.1 other times.
On 16 Jul 2019, at 18:35, Dan Stromberg wrote:
> >
> > I'm looking at a performance problem in a large CPython 2.x/3.x codebase
> > with
On Wed, Jul 17, 2019 at 3:58 AM Ian Kelly wrote:
>
> On Tue, Jul 16, 2019 at 1:21 AM Chris Angelico wrote:
> >
> > On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
> > >
> > > Just using super() is not enough. You need to take steps if you want to
> > > ensure that you class plays nicely with MI
I'm going to assume you are on linux.
On 16 Jul 2019, at 18:35, Dan Stromberg wrote:
>
> I'm looking at a performance problem in a large CPython 2.x/3.x codebase
> with quite a few dependencies.
>
> I'm not sure what's causing the slowness yet. The CPU isn't getting hit
> hard, and I/O on the
On Tue, Jul 16, 2019 at 1:21 AM Chris Angelico wrote:
>
> On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
> >
> > Just using super() is not enough. You need to take steps if you want to
> > ensure that you class plays nicely with MI. For example, consider the
> > following:
> >
> > class C1:
> >
> On 16 Jul 2019, at 01:13, Joseph L. Casale wrote:
>
> I am trying to find explicit documentation on the initialization logic for a
> Base class when multiple exist. For the example in the documentation at
> https://docs.python.org/3/tutorial/classes.html#multiple-inheritance,
> if Base1 and
> On 16 Jul 2019, at 05:43, dieter wrote:
>
> Barry Scott writes:
>> I am update some PyPI projects and found that twine was refusing the upload.
>> ...
>> Failed
>> The project's long_description has invalid markup which will not be rendered
>> on PyPI. The following syntax errors were dete
I'm looking at a performance problem in a large CPython 2.x/3.x codebase
with quite a few dependencies.
I'm not sure what's causing the slowness yet. The CPU isn't getting hit
hard, and I/O on the system appears to be low - but throughput is poor.
I'm wondering if it could be CPU-bound Python thr
[Rearranged and snipped so this makes any kind of sense]
On 16/07/2019 16:43, אורי wrote:
On Tue, Jul 16, 2019 at 3:13 PM Rhodri James wrote:
On 16/07/2019 11:08, אורי wrote:
2. I want to override a function called build_suite in an inherited
class.
The function receives an argument "test_l
Hi,
Thanks for your explanation. But I tried your code and it doesn't work
(with Django==1.11.22):
File "<...>\site-packages\django\test\runner.py", line 600, in run_tests
suite = self.build_suite(test_labels, extra_tests)
File "<...>\speedy\core\base\test\models.py", line 35, in build_su
Hi there! A lot of the answers to your questions are at least implied
in the Fine Manual
(https://docs.python.org/3/library/functions.html#super), but it's not
very clear and written more for precision than comprehension. Here's my
attempt at explaining :-)
On 16/07/2019 11:08, אורי wrote:
Thats a good idea. Indeed- take an online course, it is cheap, gets your
thru basics and you have an instructor to help if you r stuck.
Id vote for online course vs buying a book .
On Mon, Jul 15, 2019, 19:43 DL Neil wrote:
> Wlfraed probably knows a thing-or-two about kicking-over ants'
> nest
On 16Jul2019 10:20, Chris Angelico wrote:
On Tue, Jul 16, 2019 at 10:17 AM DL Neil wrote:
When used, do you embed a class's name within its own code, as a
literal?
[...]
So, what about other situations where one might need to access the
class's own name or that of its/a super-class? eg
clas
On 16/07/19 10:18, Chris Angelico wrote:
> On Tue, Jul 16, 2019 at 6:05 PM Antoon Pardon wrote:
>> On 16/07/19 09:18, Chris Angelico wrote:
>>> On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
Just using super() is not enough. You need to take steps if you want to
ensure that you class
Hi,
1. When we use super() in Python 3, we don't pass it the first argument
(self). Why?
What happens if the first argument is not self?
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
I think it would make more sense to use something like
self.super().__init__(*args,
On Tue, Jul 16, 2019 at 6:05 PM Antoon Pardon wrote:
>
> On 16/07/19 09:18, Chris Angelico wrote:
> > On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
> >> Just using super() is not enough. You need to take steps if you want to
> >> ensure that you class plays nicely with MI. For example, conside
On 16/07/19 09:18, Chris Angelico wrote:
> On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
>> On Sun, Jul 14, 2019 at 7:14 PM Chris Angelico wrote:
>>> On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva
>>> wrote:
Às 15:30 de 12/07/19, Thomas Jollans escreveu:
> On 12/07/2019 16.12, Paulo
On Tue, Jul 16, 2019 at 3:32 PM Ian Kelly wrote:
>
> On Sun, Jul 14, 2019 at 7:14 PM Chris Angelico wrote:
> >
> > On Mon, Jul 15, 2019 at 10:51 AM Paulo da Silva
> > wrote:
> > >
> > > Às 15:30 de 12/07/19, Thomas Jollans escreveu:
> > > > On 12/07/2019 16.12, Paulo da Silva wrote:
> > > >> Hi
19 matches
Mail list logo