[issue41100] Support macOS 11 and Apple Silicon Macs

2021-02-08 Thread John Reese
John Reese added the comment: Is there an ETA for having Big Sur support backported to the 3.8 branch, or is it already there and I'm just not seeing it here? -- nosy: +jreese ___ Python tracker <https://bugs.python.org/issue41

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-28 Thread John Reese
John Reese added the comment: The problem I'm trying to solve is around functions that operate on a Union[Leaf, Node], and want to be able to do things like `grandchildren = node.children[0].children + node.children[1].children` (contrived example, but point being tuple+list=TypeError while

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-27 Thread John Reese
Change by John Reese : -- keywords: +patch pull_requests: +7588 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33983> ___ ___ Python-

[issue33983] unify types for lib2to3.pytree.Base.children

2018-06-27 Thread John Reese
New submission from John Reese : When type checking applications using lib2to3, the difference in types for lib2to3.pytree.Base.children versus Node.children makes it difficult to accept both leaves and nodes and programatically work with child nodes/leaves. Base/Leaf both have `children

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-17 Thread John Reese
Change by John Reese <jre...@leetcode.net>: -- nosy: +jreese, lukasz.langa ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33516> ___

[issue33516] unittest.mock: Add __round__ to supported magicmock methods

2018-05-15 Thread John Reese
Change by John Reese <jre...@leetcode.net>: -- keywords: +patch pull_requests: +6553 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33428] pathlib.Path.glob does not follow symlinks

2018-05-15 Thread John Reese
John Reese <jre...@leetcode.net> added the comment: This looks like an issue specific to Windows? I can't replicate on Mac, and given Windows' method of implementing "symlinks" as junctions. -- nosy: +jreese ___ Pyt

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
John Reese <jre...@leetcode.net> added the comment: Looks like this is already changed for 3.7: see commit a22a127458 -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python

[issue33496] Accept Pathlib paths for sqlite file

2018-05-15 Thread John Reese
Change by John Reese <jre...@leetcode.net>: -- nosy: +jreese ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33496> ___ __

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
Change by John Reese <jre...@leetcode.net>: -- nosy: +lukasz.langa ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33504> ___ _

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
Change by John Reese <jre...@leetcode.net>: -- keywords: +patch pull_requests: +6504 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.pyt

[issue33504] configparser should use dict instead of OrderedDict in 3.7+

2018-05-14 Thread John Reese
New submission from John Reese <jre...@leetcode.net>: The configparser module uses `collections.OrderedDict` as its default, but this is no longer necessary in 3.7+ due to the semantics of core dictionaries being ordered by design. configparser should just use `dict` by default now, i

[issue6715] xz compressor support

2011-09-15 Thread John Reese
Changes by John Reese jre...@leetcode.net: -- nosy: -jreese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing

[issue6715] xz compressor support

2010-08-19 Thread John Reese
Changes by John Reese jre...@leetcode.net: -- nosy: +jreese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing

Python 3000 idea -- + on iterables - itertools.chain

2006-11-12 Thread John Reese
It seems like it would be clear and mostly backwards compatible if the + operator on any iterables created a new iterable that iterated throught first its left operand and then its right, in the style of itertools.chain. This would allow summation of generator expressions, among other things, to

UNIX timestamp from a datetime class

2005-12-06 Thread John Reese
Hi. import time, calendar, datetime n= 1133893540.874922 datetime.datetime.fromtimestamp(n) datetime.datetime(2005, 12, 6, 10, 25, 40, 874922) lt= _ datetime.datetime.utcfromtimestamp(n) datetime.datetime(2005, 12, 6, 18, 25, 40, 874922) gmt= _ So it's easy to create datetime objects from

Re: SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-17 Thread John Reese
On Sun, 17 Jul 2005 11:05:06 +0100, Stephen Illingworth [EMAIL PROTECTED] wrote: John Reese wrote: Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried

SSL problem... SSL23_GET_SERVER_HELLO:unknown protocol

2005-07-16 Thread John Reese
Morning. I've been running into an error message pertaining to SSL that I don't understand, and I was hoping someone had some insight. Gmail provides POP access over SSL on port 587, so I tried to use poplib.POP_SSL, with the following results: %python Python 2.4.1 (#1, May 16 2005, 15:19:29)

Why is there no instancemethod builtin?

2005-06-17 Thread John Reese
Why hello there ha ha. I have got in the habit of testing the types of variables with isinstance and the builtin type names instead of using the types module, as was the style back around Python 2.1. That is, rather than if type(x) == types.ListType: I now do: if isinstance(x, list):

unbuffering std streams in code

2005-05-27 Thread John Reese
You know how you can specify that stderr, stdin, stdout should be unbuffered by running python with the -u switch? Is there any way I can have the same affect in code by doing something to the sys.std* variables? -- http://mail.python.org/mailman/listinfo/python-list

reference counting and file objects

2005-05-17 Thread John Reese
def uselessHash(filename): fp= open(filename) hash= 0 for line in fp: hash ^= hash(line.strip()) fp.close() # do I need this or is fp closed by ref count? return hash Consider the function above. Do I need the fp.close(), or will the file be closed automatically when fp goes

Re: memory profiler?

2005-04-23 Thread John Reese
On Wed, 20 Apr 2005 23:06:51 -0400, Peter Hansen [EMAIL PROTECTED] wrote: John Reese wrote: Is there a memory or heap profiler for python programs? So that, for example, if a program was bloating over time I could see how many of each object there were and maybe even where the references were

memory profiler?

2005-04-20 Thread John Reese
Good afternoon, ha ha ha! Is there a memory or heap profiler for python programs? So that, for example, if a program was bloating over time I could see how many of each object there were and maybe even where the references were? -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a library to parse Mozilla mork documents?

2005-01-21 Thread John Reese
On Thu, 20 Jan 2005 23:48:34 -0800, Tim Roberts [EMAIL PROTECTED] wrote: John Reese [EMAIL PROTECTED] wrote: Mozilla, Firefox, Thunderbird, and so forth use this awful format called MORK to store all kinds of things: which messages you've read in a newsgroup, headers and indexes into the mbox

Is there a library to parse Mozilla mork documents?

2005-01-20 Thread John Reese
Mozilla, Firefox, Thunderbird, and so forth use this awful format called MORK to store all kinds of things: which messages you've read in a newsgroup, headers and indexes into the mbox file of messages in a mail folder, and address books. It's documented to some extent here:

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-03 Thread John Reese
On 03 Jan 2005 18:11:06 +, John J. Lee [EMAIL PROTECTED] wrote: (Re ternary operator: Everybody who read this list at certain times in the past is painfully aware of that fact, and of precisely why it's not quite true, and of all the syntax alternatives for real ternary conditionals that

Re: HTTP GET request with basic authorization?

2005-01-03 Thread John Reese
On 03 Jan 2005 18:27:52 +, John J. Lee [EMAIL PROTECTED] wrote: Jonas Galvez [EMAIL PROTECTED] writes: Christopher J. wrote: I tried this, but it didn't work: conn.request(GET, /somepage.html, None, {AUTHORIZATION: Basic username:password}) [...] import re, base64, urllib2

using HTTP Digest auth with arbitrary HTTP methods?

2005-01-02 Thread John Reese
Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first: urllib2 1a. You can add handlers to your opener indicating that you want to use HTTP Digest auth.

Re: using HTTP Digest auth with arbitrary HTTP methods?

2005-01-02 Thread John Reese
In comp.lang.python, [I] wrote: Hello there. I've run into some missing functionality with HTTP Digest authentication in the 2.3 library and I was wondering if I'm just missing something. Missing functionality the first: urllib2 1a. You can add handlers to your opener indicating that you