Using __new__

2024-02-17 Thread Jonathan Gossage via Python-list
d 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

Re: Using generator expressions

2023-09-25 Thread Jonathan Gossage via Python-list
. On 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.

Using generator expressions

2023-09-25 Thread Jonathan Gossage via Python-list
ons both inside parentheses and not, without success. -- Jonathan Gossage -- https://mail.python.org/mailman/listinfo/python-list

Forward References

2023-09-03 Thread Jonathan Gossage via 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

Using PIP in Python 3.10 on Windows 10

2022-01-14 Thread Jonathan Gossage
t 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 same problem occurs

Typing modules

2020-07-20 Thread Jonathan Gossage
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

Function type in typing

2020-07-08 Thread Jonathan Gossage
. -- Jonathan Gossage -- https://mail.python.org/mailman/listinfo/python-list

Asynchronous generators

2020-06-23 Thread Jonathan Gossage
-- 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

[issue38189] pip does not run in virtual environment in 3.8

2019-09-16 Thread Jonathan Gossage
New submission from Jonathan Gossage : Python 3.8 was installed from source on Ubuntu 19.04 desktop and a virtual environment was created with python3.8 -m venv venvrh. When attempting to use pip to install a package, the following error was encountered: (venvrh) jgossage@jgossage-XPS-8700

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-12 Thread Jonathan Gossage
Jonathan Gossage added the comment: I now do not think that it is a Python problem. It only appears when Ubuntu 18.04 is upgraded to 19.04 by the upgrade process. The problem does not show up on a fresh install of Ubuntu 19.04 followed by a source install of Python 3.8.0b4 only if the install

[issue38123] Unable to find Python3.8.0b4 on Ubuntu 19004 desktop

2019-09-11 Thread Jonathan Gossage
New submission from Jonathan Gossage : I installed Python 3.8.0b4 manually on Ubuntu 19.04 desktop. After the installation that appeared to run OK, I was unable to find python3.8, even though it had been installed in /usr/local/bin and that directory was on the path. I got the result

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-08 Thread Jonathan Gossage
Jonathan Gossage added the comment: I think documentation is sufficient but I would like it to state the pitfalls available if apply_async is not synchronized correctly which will happen whenever the output does not fit the pipe buffer

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-06 Thread Jonathan Gossage
Change by Jonathan Gossage : Added file: https://bugs.python.org/file47980/lock1.result.txt ___ Python tracker <https://bugs.python.org/issue35267> ___ ___ Python-bug

[issue35267] reproducible deadlock with multiprocessing.Pool

2018-12-06 Thread Jonathan Gossage
Jonathan Gossage added the comment: This is a great example of abusing the multi-processing API and thus creating timing errors that lead to locks not being released. What is happening is that the example attempts to transmit data that is too big for the underlying pipe and this creates

[issue9371] pulldom doesn't provide END_DOCUMENT or COMMENT nodes.

2018-11-05 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9635 ___ Python tracker <https://bugs.python.org/issue9371> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9731] Add ABCMeta.has_methods and tests that use it

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9633 ___ Python tracker <https://bugs.python.org/issue9731> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35018] Sax parser provides no user access to lexical handlers

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- keywords: +patch pull_requests: +9631 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue35018> ___ _

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-11-04 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9632 ___ Python tracker <https://bugs.python.org/issue6686> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
Change by Jonathan Gossage : -- components: +XML ___ Python tracker <https://bugs.python.org/issue35018> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35018] Sax parser provides no user access to lexical handlers

2018-10-18 Thread Jonathan Gossage
New submission from Jonathan Gossage : While working on issues bpo-6686 and bpo-9371 I realized that the solution to both involved the use of Sax lexical handlers. Unfortunately, the Python SAX parser does not expose these handlers to the end user, however, support is available

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2018-10-16 Thread Jonathan Gossage
Change by Jonathan Gossage : -- keywords: +patch pull_requests: +9272 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue9453> ___ ___ Py

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2018-10-14 Thread Jonathan Gossage
Jonathan Gossage added the comment: This test case demonstrates that the issue still exists in 3.8. The fix is relatively simple but I am unsure whether it is worthwhile as the original comments on the quality and usability of SAX2DOM are spot on. My recommendation would be to mark

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-10-14 Thread Jonathan Gossage
Jonathan Gossage added the comment: The other thing to consider which also supports option 2 is that xml.parsers.expat provides an interface to the Expat parser which is easier to use and more complete than the Sax parser implementation and is the implementation likely to be used by anyone

[issue6686] xml.sax.xmlreader.XMLReader.getProperty (xml.sax.handler.property_xml_string) returns bytes

2018-10-05 Thread Jonathan Gossage
Change by Jonathan Gossage : -- pull_requests: +9101 stage: test needed -> patch review ___ Python tracker <https://bugs.python.org/issue6686> ___ ___ Python-

Re: Validating Command Line Options

2011-03-23 Thread Jonathan Gossage
See inline comments On Wed, Mar 23, 2011 at 2:13 PM, Alex Willmer a...@moreati.org.uk wrote: On Mar 23, 3:20 pm, T misceveryth...@gmail.com 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

Re: PEP for module naming conventions

2011-03-17 Thread Jonathan Gossage
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