[issue40337] builtins.RuntimeError: Caught RuntimeError in pin memory thread for device 0.

2020-04-20 Thread shawn
New submission from shawn :  File "D:\yolov3\train.py", line 430, in train() # train normally  File "D:\yolov3\train.py", line 236, in train for i, (imgs, targets, paths, _) in pbar: # batch - File "D:

[issue23287] ctypes.util.find_library needlessly call crle on Solaris

2017-01-28 Thread Shawn
Shawn added the comment: Could we get someone to evaluate this please? -- nosy: +swalker ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/i

[issue26414] os.defpath too permissive

2016-02-23 Thread Shawn
Changes by Shawn <binarycrusa...@gmail.com>: -- nosy: +swalker ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26414> ___ __

[issue22148] frozen.c should #include importlib.h instead of importlib.h

2014-08-05 Thread Shawn
Changes by Shawn binarycrusa...@gmail.com: -- nosy: +swalker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22148 ___ ___ Python-bugs-list mailing

[issue13405] Add DTrace probes

2014-05-02 Thread Shawn
Changes by Shawn binarycrusa...@gmail.com: -- nosy: +swalker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list mailing

[issue21412] core dump in PyThreadState_Get when built --with-pymalloc

2014-05-01 Thread Shawn
Changes by Shawn binarycrusa...@gmail.com: -- nosy: +swalker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21412 ___ ___ Python-bugs-list mailing

[issue19016] autospecced namedtuples should be truthy by default

2013-09-26 Thread Shawn Krisman
Shawn Krisman added the comment: This fix is actually backwards compatible. This is a more powerful patch too because not only does it provide a better default for truthiness, but it also provides a better default for length. I also fixed a spelling mistake involving the word calculate

[issue19016] autospecced namedtuples should be truthy by default

2013-09-16 Thread Shawn Krisman
Shawn Krisman added the comment: Yeah in my head I was thinking it would affect relatively few people who depended on the change, but it's definitely hard to prove that! How about a change that special cases namedtuple? -- ___ Python tracker rep

[issue19016] autospecced namedtuples should be truthy by default

2013-09-14 Thread Shawn Krisman
New submission from Shawn Krisman: import mock from collections import namedtuple Foo = namedtuple('Foo', bar) mock_foo = mock.create_autospec(Foo) if mock_foo: print('the namedtuple is truthy') else: print('the namedtuple is not truthy') The expected behavior is that it should print

[issue14998] pprint._safe_key is not always safe enough

2012-06-07 Thread Shawn Brown
Shawn Brown 03sjbr...@gmail.com added the comment: Here's a patch for 3.3 -- as well as two new assertions in test_pprint.py The added try/catch also fixes the issues mentioned in issue 10017 so I added a test for that case as well. -- keywords: +patch Added file: http

[issue14998] pprint._safe_key is not always safe enough

2012-06-03 Thread Shawn Brown
New submission from Shawn Brown 03sjbr...@gmail.com: This is related to resolved issue 3976 and, to a lesser extent, issue 10017. I've run across another instance where pprint throws an exception (but works fine in 2.7 and earlier): Python 3.2 (r32:88445, Mar 25 2011, 19:28:28) [GCC 4.5.2

[issue14157] time.strptime without a year fails on Feb 29

2012-02-29 Thread Shawn
Shawn swal...@opensolaris.org added the comment: I'm seeing this when a year *is* specified with Python 2.6 and 2.7: import time time.strptime(20090229T184823Z, %Y%m%dT%H%M%SZ) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.6/_strptime.py, line 454

[issue14157] time.strptime without a year fails on Feb 29

2012-02-29 Thread Shawn
Shawn swal...@opensolaris.org added the comment: I'm an idiot; nevermind my comment. The original date was bogus. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14157

[issue13489] collections.Counter doc does not list added version

2011-11-29 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: It doesn't seem like the styling is the issue, but the placement. You say that the standard style is to put this at the end of the section, is there somewhere it would be appropriate to bring this up for discussion? I think it would be much

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: collections.Counter doc does not list added version: http://docs.python.org/library/collections.html It appears to only have been added in 2.7 (while the rest of the doc says it is valid since 2.4) -- assignee: docs@python

[issue13489] collections.Counter doc does not list added version

2011-11-26 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Ah, I see, it seems like that would be better suited directly after the section title, don't you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13489

[issue10860] Handle empty port after port delimiter in httplib

2011-10-18 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Great! Glad it landed :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10860 ___ ___ Python

[issue10860] urllib2 crashes on valid URL

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: urllib2 crashes with stack trace on legal URL http://118114.cn Transcript: Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2 Type help, copyright, credits or license for more information. import urllib2 urllib2

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: urllib2 sporadically falsely claims that http://www.bankofamerica.com/ has infinite redirect: $ python -c 'import urllib2; print urllib2.urlopen(http://www.bankofamerica.com/;).geturl()' https://www.bankofamerica.com/ $ python -c 'import

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Sure, I can work on a patch. Should an empty port default to 80? In other words does http://foo.com/; == http://foo.com:/;? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue10861] urllib2 sporadically falsely claims infinite redirect

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Ahha, what a mess, thanks for investigating! I agree, this is bankofamerica's problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10861

[issue10860] Handle empty port after port delimiter in httplib

2011-01-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Here's a patch for 2.7 (from the hg checkout http://code.python.org/hg/branches/release2.7-maint/) How does it look? Apparently there was already a testcase for www.python.org: failing! -- keywords: +patch Added file: http

[issue6594] json C serializer performance tied to structure depth on some systems

2010-11-30 Thread Shawn
Shawn swal...@opensolaris.org added the comment: I specifically mentioned *SPARC* as the performance problem area, but the reply about 0.5s to dump fails to mention on what platform they tested My problem is not undiagnosable. I'll be happy to provide you with even more data files. But I

[issue7969] shutil.copytree error handling non-standard and partially broken

2010-02-19 Thread Shawn
New submission from Shawn swal...@opensolaris.org: The error handling present in the implementation of shutil.copytree in python 2.6.4 (and perhaps other versions) is non-standard and partially broken. In particular, I'm unable to find any pydoc documentation that indicates that when copytree

[issue7076] Documentation add note about SystemRandom

2010-01-21 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: ping Please look at the last patch. It's very simple and would be helpful. This is not very complicated and shouldn't take months to consider. -- ___ Python tracker rep...@bugs.python.org http

[issue6594] json C serializer performance tied to structure depth on some systems

2009-12-07 Thread Shawn
Shawn swal...@opensolaris.org added the comment: The attached patch doubles write times for my particular case when applied to simplejson trunk using python 2.6.2. Not good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue6594] json C serializer performance tied to structure depth on some systems

2009-12-07 Thread Shawn
Shawn swal...@opensolaris.org added the comment: You are right, an environment anomaly let me to falsely believe that this had somehow affected encoding performance. I had repeated the test many times with and without the patch using simplejson trunk and wrongly concluded that the patch

[issue6594] json C serializer performance tied to structure depth on some systems

2009-12-07 Thread Shawn
Shawn swal...@opensolaris.org added the comment: I've attached a sample JSON file that is much slower to write out on some systems as described in the initial comment. If you were to restructure the contents of this file into more of a tree structure instead of the flat array structure it uses

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: I rewrote the description, mostly using the claims form urandom, so that we don't claim something new. What do you guys think? -- Added file: http://bugs.python.org/file15251/random.patch ___ Python

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: So, all I really want to do is call attention to SystemRandom from the top of the page, because it is easily not noticed at the bottom. Do you guys have any suggestions for how to do that that doesn't repeat too much and doesn't claim things

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: How about this, sweet and simple. -- Added file: http://bugs.python.org/file15252/random.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7076

[issue7076] Documentation add note about SystemRandom

2009-11-02 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: There is a whole paragraph about WichmanHill at the top of this page already and (if anything) I think that WichmanHill is less notable (basically only used in legacy applications). However SystemRandom is very useful. I don't want to make

[issue7076] Documentation add note about SystemRandom

2009-10-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Oh, urandom is almost always non-deterministic. It mixes completely random bits from hardware sources with its pseudo-random number state. The more random bits it gets from hardware, the less predictable its output is. However, as long as it's

[issue7076] Documentation add note about SystemRandom

2009-10-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: Ah, sorry for the misunderstanding. I agree, better not to mislead. Perhaps we should side with the urandom documentation and say that it is a cryptographically secure random number generator with no accessible state

[issue7076] Documentation add note about SystemRandom

2009-10-07 Thread Shawn Ligocki
Shawn Ligocki sligo...@gmail.com added the comment: A major pro for pseudo-random number generators is that they are deterministic, that is, you can save a load the state, start from the same seed and reproduce results, etc. At least in science (and probably other areas) this reproducibility can

[issue7076] Documentation add note about SystemRandom

2009-10-06 Thread Shawn Ligocki
New submission from Shawn Ligocki sligo...@gmail.com: I did not notice the existence of random.SystemRandom until after I had implemented my own version. I thought it would be nice to mention it in the opening section. I've added a tiny note about random.SystemRandom. What do you guys think

[issue6594] json C serializer performance tied to structure depth on some systems

2009-08-06 Thread Shawn
Shawn swal...@opensolaris.org added the comment: First, I want to apologise for not providing more detail initially. Notably, one thing you may want to be aware of is that I'm using python 2.4.4 with the latest version of simplejson. So my timings and assumptions here are based on the fact

[issue6594] json C serializer performance tied to structure depth on some systems

2009-08-05 Thread Shawn
Shawn swal...@opensolaris.org added the comment: As I mentioned, there's also noticeable performance penalties on recent SPARC systems, such as Niagra T1000, T2000, etc. The degradation is just less obvious (a 10-15 second penalty instead of a 20 or 30 second penalty). While x86 enjoys

[issue6594] json C serializer performance tied to structure depth on some systems

2009-07-28 Thread Shawn
New submission from Shawn swal...@opensolaris.org: The json serializer's performance (when using the C speedups) appears to be tied to the depth of the structure being serialized on some systems. In particular, dict structure that are more than a few levels deep, especially when they content

[issue6573] set union method ignores arguments appearing after the original set

2009-07-25 Thread Shawn Smout
New submission from Shawn Smout silroq...@yahoo.com: When calling the union method of a set with several arguments, if one of those sets is the original set, all arguments appearing after it are ignored. For example: x = set() x.union(set([1]), x, set([2])) evaluates to set([1]), not set([1

[issue4645] configparser DEFAULT

2008-12-12 Thread Shawn Ashlee
New submission from Shawn Ashlee shawn.ash...@rackspace.com: using .add_section() and .set() for the DEFAULT section adds it twice: [u...@srv ~]$ cat test_configparser.py #!/usr/bin/env python import ConfigParser a = ConfigParser.SafeConfigParser() # borked a.add_section('DEFAULT') a.set

[issue2444] Adding __iter__ to class Values of module optparse

2008-04-02 Thread Shawn Morel
Shawn Morel [EMAIL PROTECTED] added the comment: gpolo: The argument still doesn't hold. As you point out, it's the Values class output from __str__ and other behaviour that is being un- pythonic and leading you to believe it's a dictionary. Adding the __itter__ method would only make

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-17 Thread Shawn Ligocki
Shawn Ligocki added the comment: I've got a patch! The problem was that the state was being cast from a C-type unsigned long to a long. On 32-bit machines this makes large 32-bit longs negative. On 64-bit machines this preserves the sign of 32-bit values (because they are stored in 64-bit longs

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-17 Thread Shawn Ligocki
Shawn Ligocki added the comment: Yep, tested it on a 64-bit machine and 2 32-bit machines and back and forth between them. It seems to resolve the problem. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1727780