[issue22499] [SSL: BAD_WRITE_RETRY] bad write retry in _ssl.c:1636

2018-09-23 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue22499> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32533] SSLSocket read/write thread-unsafety

2018-04-17 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue32533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33090] race condition between send and recv in _ssl with non-zero timeout

2018-04-17 Thread James Lu
Change by James Lu : -- nosy: +tacocat ___ Python tracker <https://bugs.python.org/issue33090> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30568] README Formatting

2017-06-04 Thread James Lu
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

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-11 Thread James Lu
Changes by James Lu : -- nosy: +James Lu ___ Python tracker <http://bugs.python.org/issue28663> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue28326] multiprocessing.Process depends on sys.stdout being open

2016-10-01 Thread James Lu
Changes by James Lu : -- nosy: +James Lu ___ Python tracker <http://bugs.python.org/issue28326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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). > > -

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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

[issue27295] heaps library does not have support for max heap

2016-06-12 Thread James Lu
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

[issue27295] heaps library does not have support for max heap

2016-06-11 Thread James Lu
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

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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 >

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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

[issue19318] break more than once

2013-10-20 Thread James Lu
James Lu added the comment: Oh, yes,yes,yes! -- ___ Python tracker <http://bugs.python.org/issue19318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19318] break more than once

2013-10-20 Thread James Lu
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

[issue19318] break more than once

2013-10-20 Thread James Lu
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

[issue19318] break more than once

2013-10-20 Thread James Lu
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

[issue19318] break more than once

2013-10-20 Thread James Lu
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

[issue18946] HTMLParser should ignore errors when parsing text in

2013-09-06 Thread James Lu
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? > > -

[issue18946] HTMLParser should ignore errors when parsing text in

2013-09-06 Thread James Lu
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 ("" +

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
James Lu added the comment: run's calling function needs to return. -- ___ Python tracker <http://bugs.python.org/issue18591> ___ ___ Python-bugs-list m

[issue18591] threading.Thread.run returning a result

2013-07-29 Thread James Lu
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

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
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

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
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 "

[issue18537] bool.toggle()

2013-07-23 Thread James Lu
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

[issue18482] dis.dis fails on one letter strings.

2013-07-17 Thread James Lu
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

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
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

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: instance,assinged during __init__ -- ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsub

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
James Lu added the comment: 2.5,new-style -- ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
Changes by James Lu : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue18474> ___ ___ Python-bugs-list mailing list Unsubscri

[issue18474] Lambda assigned to object does not automatically get self

2013-07-16 Thread James Lu
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

[issue18386] Better random number generator

2013-07-06 Thread James Lu
Changes by James Lu : -- nosy: -James.Lu type: -> enhancement ___ Python tracker <http://bugs.python.org/issue18386> ___ ___ Python-bugs-list mailing list Un

[issue18386] Better random number generator

2013-07-06 Thread James Lu
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

[issue16352] Error call

2012-10-28 Thread James Lu
James Lu added the comment: srry -- resolution: invalid -> rejected ___ Python tracker <http://bugs.python.org/issue16352> ___ ___ Python-bugs-list mai

[issue16352] Error call

2012-10-28 Thread James Lu
Changes by James Lu : -- versions: -Python 2.6 ___ Python tracker <http://bugs.python.org/issue16352> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16352] Error call

2012-10-28 Thread James Lu
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

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu : -- resolution: -> works for me ___ Python tracker <http://bugs.python.org/issue14667> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14667] No IDLE

2012-10-06 Thread James Lu
Changes by James Lu : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue14667> ___ ___ Python-bugs-list mailing list Unsubscri

[issue14667] No IDLE

2012-05-13 Thread James Lu
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

[issue14667] No IDLE

2012-04-24 Thread James Lu
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

[issue14667] No IDLE

2012-04-24 Thread James Lu
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