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
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/iss
Shawn Ligocki added the comment:
Great! Glad it landed :)
--
___
Python tracker
<http://bugs.python.org/issue10860>
___
___
Python-bugs-list mailing list
Unsub
New submission from Shawn Ligocki :
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
components: Documentation
Shawn Ligocki added the comment:
Ah, I see, it seems like that would be better suited directly after the section
title, don't you?
--
___
Python tracker
<http://bugs.python.org/is
Shawn Ligocki 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 more intuiti
New submission from Shawn Ligocki :
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
New submission from Shawn Ligocki :
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
Shawn Ligocki 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
<http://bug
Shawn Ligocki added the comment:
Ahha, what a mess, thanks for investigating! I agree, this is bankofamerica's
problem.
--
___
Python tracker
<http://bugs.python.org/is
Shawn Ligocki 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://
Shawn Ligocki 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
<http://bugs.python.
New submission from Shawn Ligocki :
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, feel free to r
Shawn Ligocki 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 getting any r
Shawn Ligocki 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
Shawn Ligocki 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 be vital in a
Shawn Ligocki 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 tracker
Shawn Ligocki 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 that
Shawn Ligocki added the comment:
How about this, sweet and simple.
--
Added file: http://bugs.python.org/file15252/random.patch
___
Python tracker
<http://bugs.python.org/issue7
Shawn Ligocki 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 claims about ur
20 matches
Mail list logo