[Python-announce] Re: [Python-Dev] [RELEASE] The last Python 3.11 alpha (3.11.0a7) is available - Prepare for beta freeze

2022-04-06 Thread Finn Mason
For whatever reason, the links for two PEPs wouldn't work, so here are working ones: * [PEP 646](https://peps.python.org/pep-0646/) * [PEP 675](https://peps.python.org/pep-0675) -- Finn (Mobile) On Wed, Apr 6, 2022, 4:31 AM Pablo Galindo Salgado wrote: > Br. do you feel that? That's

[issue44941] Add check_methods function to standard library

2021-08-20 Thread Finn Mason
Finn Mason added the comment: Thank you for the suggestions. >From what I could tell, the cited python-ideas discussion was more about >checking the signature of a method. However, an issue cited by the ex-BDFL >(issue9731) was helpful. It's a similar idea that verifies tha

[issue44941] Add check_methods function to standard library

2021-08-18 Thread Finn Mason
Finn Mason added the comment: I strongly feel that `check_methods` shouldn't be in collections.abc, even though that's where it's originally found, because it's not related specifically to collections but to ABCs and classes in general. I would prefer for it to be implemented in `abc

[issue44941] Add check_methods function to standard library

2021-08-17 Thread Finn Mason
New submission from Finn Mason : In _collections_abc.py is a private function titled `_check_methods`. It takes a class and a number of method names (as strings), checks if the class has all of the methods, and returns NotImplemented if any are missing. The code is below: ``` def

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread Mason Ginter
Mason Ginter added the comment: Those changes sound great to me, Mark. I've been busy with work and don't think I'll have the time to implement those changes. If you or someone else would like to work on this, I would gladly let you take over

[issue44341] Conflict between re.match and match keyword

2021-06-07 Thread Finn Mason
Change by Finn Mason : -- nosy: -finnjavier08 ___ Python tracker <https://bugs.python.org/issue44341> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44341] Conflict between re.match and match keyword

2021-06-07 Thread Finn Mason
New submission from Finn Mason : >>> import re >>> re.match('str', 'str').group() 'str' >>> match 'str': ... case 'str': ... print('match!') ... match! >>> from re import match >>> match As the above example demonstrates, while re

[issue42560] Improve Tkinter Documentation

2020-12-09 Thread Mason Ginter
Mason Ginter added the comment: Would it then be a good idea to add a link to the archive.org version of effbot? If so how best to add it to the documentation. The only other instances I can find links to archive.org in the documentation reference webpages that are down permanently, unlike

[issue42560] Improve Tkinter Documentation

2020-12-03 Thread Mason Ginter
New submission from Mason Ginter : Online python Tkinter documentation (https://docs.python.org/3/library/tkinter.html) lacks many features. The main part I find lacking is documentation on methods, as many of them either aren't listed in the documentation and/or take *args as the only

[issue5710] ctypes should return composite types from callbacks

2013-09-27 Thread Mason Bially
Mason Bially added the comment: I agree with Amaury that this is purely a user side concern. While I think it's important to note the behaviour of ctypes in the case that Thomas describes, I believe it's more important to fully support the range of behaviours allowed by C function callbacks

Re: Calling Python functions from Excel

2009-11-16 Thread Darcy Mason
On Nov 15, 2:20 am, Cannonbiker lusve...@gmail.com wrote: Please I need Calling Python functions from Excel and receive result back in Excel. Can me somebody advise simplest solution please? I am more VBA programmer than Python. A couple of years ago I used MSScriptControl for this. Couldn't

[issue6636] Non-existant directory in sys.path prevents further imports

2009-08-03 Thread Charles Mason
New submission from Charles Mason cemaso...@gmail.com: Steps to reproduce: 1) Add to sys.path a path that does not exist 2) Import a module, any module. This invokes get_path_importer over every element of sys.path. The NullImporter __init__ method is called and an instance created for each

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
Dave Angel da...@ieee.org wrote in message news:mailman.4120.1249172970.8015.python-l...@python.org... Michael M Mason wrote: div class=moz-text-flowed style=font-family: -moz-fixedI'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. Thanks to Jon

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
Mark Lawrence breamore...@yahoo.co.uk wrote in message news:mailman.4130.1249203322.8015.python-l...@python.org... Be careful, I'm screwed things up on several occasions by placing a file on PYTHONPATH that overrides a file in the standard library, test.py being my favourite! Thanks. Sure

Newbie thwarted by sys.path on Vista

2009-08-01 Thread Michael M Mason
I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. The docs suggest that I can either add it to the PYTHONPATH environment variable or to the PythonPath key in the registry. However, PYTHONPATH doesn't exist, and updating the registry key has no

Re: Running all unit tests

2009-02-06 Thread Darcy Mason
On Feb 6, 9:11 pm, Jason Voegele ja...@jvoegele.com wrote: I'm working on my first substantial Python project, and I'm following a fully test-first approach.  I'd like to know how Pythonistas typically go about running all of their tests to ensure that my application stays green. In Ruby, I

Re: Dummy explanation to win32com needed

2008-10-22 Thread Darcy Mason
On Oct 22, 3:43 pm, korean_dave [EMAIL PROTECTED] wrote: Hi. I need a dummy's explanation to utilizing the win32com component to access Microsoft Excel. So far, I have this code.     import win32com.client     xl = win32com.client.Dispatch(Excel.Application)     xl.Visible = 1    

Re: Python Imaging Library (PIL) question

2008-10-20 Thread Darcy Mason
On Oct 20, 2:14 pm, Sid [EMAIL PROTECTED] wrote: Hi,   I am tryin to copy an image into my own data structure(a sort of 2d array   for further FFT). I've banged my head over the code for a couple of hours   now. The simplified version of  my problem is below.

convert binary to float

2008-06-01 Thread Mason
with '\x00\x00\xc0@'. I don't understand why the output isn't the same. I need a solution that will allow me to convert my binary file into floats. Am I close? Can anyone point me in the right direction? Thanks, Mason -- http://mail.python.org/mailman/listinfo/python-list

Re: convert binary to float

2008-06-01 Thread Mason
On Jun 1, 6:41 pm, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On Sun, 1 Jun 2008 12:55:45 -0700 (PDT), Mason [EMAIL PROTECTED] declaimed the following in comp.lang.python: I have tried and tried... I'd like to read in a binary file, convert it's 4 byte values into floats, and then save

Re: convert binary to float

2008-06-01 Thread Mason
On Jun 1, 5:12 pm, George Sakkis [EMAIL PROTECTED] wrote: On Jun 1, 3:55 pm, Mason [EMAIL PROTECTED] wrote: I have tried and tried... I'd like to read in a binary file, convert it's 4 byte values into floats, and then save as a .txt file. This works from the command line (import

Re: Data structure recommendation?

2008-04-07 Thread Charles Mason
If you can imply a partial order on your ranges then you can get O(n lg n) random access using a heap data structure. You'll have to implement your own heap, but heap search is easy to implement (it's Heapify that might require a little thinking). This will only work, of course, if your ranges

Re: Is there an official way to add methods to an instance?

2008-04-04 Thread Charles Mason
And for such a behavior they've termed monkeying Thus, the coinage Monkeypatching for what you want to do: http://mail.python.org/pipermail/python-dev/2008-January/076194.html There are a group of people who think monkeypatching is destroying ruby. You still probably should avoid it for

[issue2038] win32pdh.EnumObjects fails on Windows Server 2003 R2

2008-02-07 Thread Richard Mason
New submission from Richard Mason: The following test script works OK on all windows platforms apart from Windows Server 2003 R2: import win32pdh win32pdh.EnumObjects(None, None, 0, 1) When I run on Windows Server 2003 R2 get the following dump: E:\fusiondx\libtest.py Traceback (most recent