Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue22499>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue32533>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by James Lu :
--
nosy: +tacocat
___
Python tracker
<https://bugs.python.org/issue33090>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James Lu:
- Shorten the Copyright statement from a list of years (`2001, 2002, 2003, ...
2017`) into `2001-2017`
- Extend copyright date at end of README from 2016 to 2017
- Ensure that there are two newlines before every header throughout the file
(this was the original
Changes by James Lu :
--
nosy: +James Lu
___
Python tracker
<http://bugs.python.org/issue28663>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by James Lu :
--
nosy: +James Lu
___
Python tracker
<http://bugs.python.org/issue28326>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Lu added the comment:
I think you closed it too quickly. You see, computing the length of
combinations() doesn't require looping all the way through the iterator;
you can compute it quickly. I created a wrapper class just for this purpose.
On Sat, Jul 16, 2016 at 5:24 PM, R. David M
James Lu added the comment:
same for itertools iterators - libraries such as tqdm would benefit from
this
On Sat, Jul 16, 2016 at 3:08 PM, James Lu wrote:
>
> New submission from James Lu:
>
> This would be useful for libraries like tqdm (progress bar module).
>
> -
New submission from James Lu:
This would be useful for libraries like tqdm (progress bar module).
--
components: Interpreter Core
messages: 270581
nosy: James.Lu
priority: normal
severity: normal
status: open
title: Dictionary iterator has no len()
type: enhancement
versions: Python 3.6
James Lu added the comment:
It's not a very pythoniic way to simply negate the value. Plus, the
majority of heap users want performance (heap was made for speed), so a C
version would be much better.
On Sat, Jun 11, 2016 at 4:39 PM, Raymond Hettinger
wrote:
>
> Raymond Hettinge
New submission from James Lu:
Both max heaps and min heaps have uses in algorithms. Some algorithms require
both. Why doesn't the heapq library support max heaps (not including the
private _heapify_max() method)?
--
components: Library (Lib)
messages: 268211
nosy: James.Lu
pri
James Lu added the comment:
Even a wrapper class would be helpful, it's simply more pythonic.
On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger
wrote:
>
> Raymond Hettinger added the comment:
>
> The main reason is that there would be very little benefit. Lists are a
>
New submission from James Lu:
The heapq library uses a list or other mutable sequence time to represent a
heap. Since Python is a highly OOP language, why not make heaps their own data
type?
--
components: Library (Lib)
messages: 268159
nosy: James.Lu
priority: normal
severity: normal
James Lu added the comment:
Oh, yes,yes,yes!
--
___
Python tracker
<http://bugs.python.org/issue19318>
___
___
Python-bugs-list mailing list
Unsubscribe:
James Lu added the comment:
Every new feature takes on new challenges and harder ways to debug.
But what about using that very confusing code that I showed that only let's you
break one amount, that would be harder to debug!
--
___
Python tr
James Lu added the comment:
Big example:
pygame, event proccessing loop running. the user clicks "Quit", you do
break 2.
psuedocode:
while True:
for event in pygame.events.get():
if event.type==pygame.QUIT:
break 2
james
On Sun, Oct 20, 2013 at 2:36 PM, Marti
James Lu added the comment:
You would have to do this:
for i in range(1,10):
broke = True
for x in range(2,5):
break
else:
broke = False
if broke:
break
to break twice, and you can't break only
New submission from James Lu:
break 2 would break out of one loop then break out of another.
break
break
would just break once and not execute the second break.
break 2 when there are only 1 thing to break would raise raise a SyntaxError:
Can only break 1 time, need to break 2 times
James Lu added the comment:
2.5, but I don't think the library has changed since.
james
On Fri, Sep 6, 2013 at 12:29 PM, Ezio Melotti wrote:
>
> Ezio Melotti added the comment:
>
> What version of Python are you using?
>
> -
New submission from James Lu:
It will show invalid html inside of script tags, for example, at the learners
dictionary:
function output_creative (id)
{ document.write
("" +
James Lu added the comment:
run's calling function needs to return.
--
___
Python tracker
<http://bugs.python.org/issue18591>
___
___
Python-bugs-list m
New submission from James Lu:
I have attached a *possible* new version of threading.py
that returns the value of the target.
--
components: Library (Lib)
files: threading.py
messages: 193899
nosy: James.Lu
priority: normal
severity: normal
status: open
title: threading.Thread.run
James Lu added the comment:
well, filter() could take the function not lambda x:not x
james
On Tue, Jul 23, 2013 at 12:23 PM, Eric V. Smith wrote:
>
> Eric V. Smith added the comment:
>
> Since it would be the same as "not value", I can't imagine this would
James Lu added the comment:
I mean, return a value, some people like this style.
james
On Tue, Jul 23, 2013 at 12:10 PM, Eric V. Smith wrote:
>
> Eric V. Smith added the comment:
>
> bool instances are immutable, so all "value.toggle()" could do is the same
> as "
New submission from James Lu:
the bool type should have a toggle() function
--
messages: 193608
nosy: James.Lu
priority: normal
severity: normal
status: open
title: bool.toggle()
type: enhancement
versions: Python 3.5
___
Python tracker
<h
New submission from James Lu:
dis.dis fails on one letter strings.
dis.dis("t")
Traceback (most recent call last):
File "", line 1, in
dis.dis("t")
File "C:\python 25\lib\dis.py", line 44, in dis
disassemble_string(x)
File "C:\python 25
James Lu added the comment:
Also,there were some bugs, but after I fixed them, it would only work if I did
this:
n.__div__(n,3)
--
___
Python tracker
<http://bugs.python.org/issue18
James Lu added the comment:
instance,assinged during __init__
--
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsub
James Lu added the comment:
2.5,new-style
--
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by James Lu :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue18474>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from James Lu:
if you assign a lambda to a object and call it,you get this:
Traceback (most recent call last):
File "", line 1, in
n.__div__(3)
TypeError: () takes exactly 2 arguments (1 given)
The full test is here:
>>> n = num()
>>> n.__d
Changes by James Lu :
--
nosy: -James.Lu
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue18386>
___
___
Python-bugs-list mailing list
Un
New submission from James Lu:
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/SFMT/index.html#dSFMT
You might want to use a better algorithm
--
components: Library (Lib)
files: dSFMT-src-2.2.1.zip
messages: 192469
nosy: James.Lu
priority: normal
severity: normal
status: open
title
James Lu added the comment:
srry
--
resolution: invalid -> rejected
___
Python tracker
<http://bugs.python.org/issue16352>
___
___
Python-bugs-list mai
Changes by James Lu :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue16352>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from James Lu:
>>>x="y"
>>>y=x
>>>x=y
>>>print x
x
>>>print y
x
It should raise a RuntimeError
--
components: None
messages: 174086
nosy: James.Lu
priority: normal
severity: normal
status: open
t
Changes by James Lu :
--
resolution: -> works for me
___
Python tracker
<http://bugs.python.org/issue14667>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by James Lu :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue14667>
___
___
Python-bugs-list mailing list
Unsubscri
James Lu added the comment:
thanks!
james
On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin wrote:
>
> Brian Curtin added the comment:
>
> James, since you attached a Windows executable I'll assume that's the
> platform you're on.
>
> Try the following:
&g
James Lu added the comment:
1,looked for python IDLE
2.NO python
#.use text editor (hard)
james
On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> Please structure your bug report as follows:
>
> 1. this is what you did
New submission from James Lu :
No IDLE 3.26
need badly!
High prriority
--
components: IDLE
files: python.exe
messages: 159243
nosy: James.Lu
priority: normal
severity: normal
status: open
title: No IDLE
type: resource usage
versions: Python 3.2
Added file: http://bugs.python.org
41 matches
Mail list logo