er, when I try to create an instance of this
class with the following code:
y = x('Flag1', 'Flag2')
it fails with a TypeError stating that 'MyFlags' does not accept arguments.
What do I have to do to make this happen?. BTW __init__(self, *args) is
defined as the instance
install* command. Is this expected behavior? I
wanted Sphinx to be installed in the virtual environment so that it would
be accessible to all users of the virtual environment.
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
)
I am quite puzzled as it looks as if this code will not work if the
super-class is 'object'. Any suggestions on how to proceed?
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
Mon, Sep 25, 2023 at 11:15 AM Thomas Passin via Python-list <
python-list@python.org> wrote:
> On 9/25/2023 10:15 AM, Jonathan Gossage via Python-list wrote:
> > I am having a problem using generator expressions to supply the arguments
> > for a class instance initialization.
hat I tried generator expressions both inside parentheses and not,
without success.
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
: TypeAlias = RGB | int | str
@dataclass(frozen=True, slots=True)
class RGB(object):
Can anyone suggest how I should fix this without reversing the statement
order?
pass
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
thon installed at
c:\Program Files\Python3.10 whereas it has actually been installed at
D:\Users\jgoss\AppData\local\python\python3.10. It seems that the launcher
has not been updated to the latest installation location for python and
that it also needs to handle a non-default install location. The
I have the following code and I would like to type the variable *contents*:
contents: something = importlib._import_module(name)
I have been unable to find out what *something* should be.
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
.
--
Jonathan Gossage
--
https://mail.python.org/mailman/listinfo/python-list
--
I am attempting to learn how to use asyncio and I have been unable to find
any documentation or Internet posts that give information on the principles
underlying asyncio, let alone any examples showing how asynchronous
generators should be used. I have built a toy program to test trying to
read
See inline comments
On Wed, Mar 23, 2011 at 2:13 PM, Alex Willmer wrote:
> On Mar 23, 3:20 pm, T wrote:
> > Thanks! argparse is definitely what I need..unfortunately I'm running
> > 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other
> > scripts break.
>
> Argparse was a thi
I have found this approach problematic if you have packages separately
developed and maintained in different directory trees, resulting in
more than one PYTHONPATH entry with the same root metapackage name.
What happens is that only the first entry in the PYTHONPATH containing
the metapackage name
12 matches
Mail list logo