Universal compiler that runs Java, Ruby, C++, and Python in a single VM

2021-03-16 Thread James Lu
It's called Oracle's Truffle. Truffle runs all those languages with an
autogenerated JIT.

This is my response to the neos drama.
-- 
https://mail.python.org/mailman/listinfo/python-list


Python subinterpreters with separate GILs

2021-02-10 Thread James Lu
Directly removing the Global Interpreter Lock (GIL) would break a lot
of libraries that implicitly assume it is there. What if Python had
"realms" that each had separate GILs?

The "realms" (not sure if "subinterpreter" is the correct term here)
could share objects.
-- 
https://mail.python.org/mailman/listinfo/python-list


A library that converts a type-annotated function into a webpage with HTML forms?

2020-09-30 Thread James Lu
Is there a python library available that converts a type-annotated Python
function into a webpage with HTML forms?

Something like:


def foo(name: str, times: int):
return f"Hello {name}!" * times

serve_from(foo, host="0.0.0.0", port=3000)

Turning into a server that serves something like this:


name




And hitting the submit button executes the function.

I'm aware I could use sls, and build a form manually, but that's extra work.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Front end

2020-01-01 Thread James Lu
I would use software like Airtable. You set the columns, Airtable produces
a type-checked form. Every spreadsheet also comes with its own API, so you
can exfiltrate the data programmatically easily.

On Sat, Dec 28, 2019, 10:36 L A Smit  wrote:

> Hi
>
> Don't know if this is the correct subject but i want a program like an
> invoice, You make an invoice and save it and the next one is ready to
> use. I am completely new to programming and want this program for myself.
>
>
> I want to use python to do it. Have already build the program but don't
> know how to put it in usable format. I hope you understand what i mean.
>
> Ex: Input.
>
> Quote Nr:
>
> Client:
>
> Product:
>
> Then there will be costs and in the end a cost per product.
>
> In the end a save button to save quote with input from line 1 and 2.
>
> Then the template is ready for next input.
>
> I understand that there is probably hundreds of these programs but to
> teach myself i want to wright my own program and then i can update it
> when needed.
>
>
>
> Thx
>
>
> L Smit
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


A more

2019-11-14 Thread James Lu
Where do I go to find a more complete specification for Python? I want to
learn about common semi-internal language features used by popular
libraries, because I am reimplementing Python.

The reference guide says:

> While I am trying to be as precise as possible, I chose to use English
> rather than formal specifications for everything except syntax and lexical
> analysis. This should make the document more understandable to the average
> reader, but will leave room for ambiguities. *Consequently, if you were
> coming from Mars and tried to re-implement Python from this document alone,
> you might have to guess things and in fact you would probably end up
> implementing quite a different language. *
>

So I would like some additional help.
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: uses both shell and python codes in one script.

2019-10-03 Thread James Lu
I would use IPython as a scripting language. It has a slow startup time
though.

On Thu, Oct 3, 2019 at 9:59 AM Chris Angelico  wrote:

> On Thu, Oct 3, 2019 at 11:41 PM Hongyi Zhao  wrote:
> >
> > On Thu, 03 Oct 2019 23:12:45 +1000, Chris Angelico wrote:
> >
> >
> > > Seems fine. Most of the code is elsewhere, and presumably has been
> > > written to support both Py2 and Py3; the file you're linking to is
> > > *just* a wrapper that finds an interpreter to use.
> > >
> > > Though this should be unnecessary. A simple shebang of "/usr/bin/env
> > > python3" will suffice for many many situations (and then if someone
> > > specifically wants to run it in a legacy interpreter, an explicit
> > > "python2 scriptname.py" or "python scriptname.py" will work).
> >
> > I'm very confusing on the following part in this script:
> >
> > 
> > ''':' # begin python string; this line is interpreted by the shell as `:`
> > which python  >/dev/null 2>&1 && exec python  "$0" "$@"
> > which python3 >/dev/null 2>&1 && exec python3 "$0" "$@"
> > which python2 >/dev/null 2>&1 && exec python2 "$0" "$@"
> > >&2 echo "error: cannot find python"
> > exit 1
> > '''
> > 
> >
> > Any hints for the meaning of several ' used above?
> >
>
> The hint is there in that line, and stems from the way two different
> parsers (Python and sh) interpret the line. In Python, three single
> quote characters start a triple-quoted string, which doesn't end till
> you get three more; since nothing is done with this string, Python
> parses it and then ignores it. In the shell, the first two are an
> empty string, then ':' is a colon, which introduces a label (the fact
> that it's in quotes is irrelevant to the shell). So there's an empty
> label followed by a shell comment. The shell parses this line and does
> nothing with it. Then it moves on to the next lines, and runs the
> shell script. Since this shell script ends with 'exit 1', it's
> guaranteed to halt execution (and usually it'll exec to python, which
> also halts execution), so the Python code won't be executed.
>
> This is a common trick when writing polyglot code. You make the
> relevant code for one language appear as a comment or string literal
> in another. For instance, you can open a C program with "#if 0", which
> will cause the following text to be ignored by the C preprocessor; but
> since that line begins with a hash, Python will ignore it (but
> continue executing).
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32533] SSLSocket read/write thread-unsafety

2018-04-17 Thread James Lu

Change by James Lu <bitfl...@gmail.com>:


--
nosy: +tacocat

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32533>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2018-04-17 Thread James Lu

Change by James Lu <bitfl...@gmail.com>:


--
nosy: +tacocat

___
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue33090>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 format)

--
assignee: docs@python
components: Documentation
messages: 295140
nosy: James.Lu, docs@python
priority: normal
pull_requests: 2020
severity: normal
status: open
title: README Formatting
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue30568>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-11 Thread James Lu

Changes by James Lu <bitfl...@gmail.com>:


--
nosy: +James Lu

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28663>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2016-10-01 Thread James Lu

Changes by James Lu <bitfl...@gmail.com>:


--
nosy: +James Lu

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28326>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 Murray <rep...@bugs.python.org>
wrote:

>
> R. David Murray added the comment:
>
> If you read issue 24849, you will see that iterators having len was
> rejected by Guido long ago.
>
> --
> nosy: +r.david.murray
>
> ___
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue27532>
> ___
>

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27532>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org> wrote:

>
> 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
>
> ___
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue27532>
> ___
>

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27532>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27532>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
wrote:

>
> Raymond Hettinger added the comment:
>
> Sorry James, we don't grow the APIs without sufficient demonstrated need;
> otherwise, we end-up with API sprawl.  People with actual use cases haven't
> requested behavior (and the occasional one-off gets by negating the numeric
> argument).  That is why the maxheap functions were intentionally made
> private.
>
> FWIW, this module is very old and the core functions have long proven
> themselves sufficient to meet their use cases (like being used in an event
> loop to efficiently select the next scheduled event).
>
> --
> resolution:  -> rejected
> status: open -> closed
>
> ___
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue27295>
> ___
>

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27295>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
priority: normal
severity: normal
status: open
title: heaps library does not have support for max heap

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27295>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 <rep...@bugs.python.org>
wrote:

>
> Raymond Hettinger added the comment:
>
> The main reason is that there would be very little benefit.  Lists are a
> very efficient data structure and the heap manipulations are also very
> cheap.
>
> --
> assignee:  -> rhettinger
> nosy: +rhettinger
> resolution:  -> rejected
> status: open -> closed
>
> ___
> Python tracker <rep...@bugs.python.org>
> <http://bugs.python.org/issue27290>
> ___
>

--

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27290>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
status: open
title: Turn heaps library into a more OOP data structure?
versions: Python 3.6

___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27290>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
messages: 200603
nosy: James.Lu
priority: normal
severity: normal
status: open
title: break more than once

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 once!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Martin Matusiak rep...@bugs.python.orgwrote:


 Martin Matusiak added the comment:

 I see one potential problem with this, namely that refactoring code that
 contains break n statements would become more error prone whenever the
 depth of the code block gets modified. So if you had something like:

 for i in range(10):
 for j in range(10):
 for k in range(10):
 if cond:
 break 2

 And then you decided to remove the middle loop (on j), the break 2 would
 send you to the top level, whereas you might have meant for it to break to
 the first level, inside the loop on i.

 This is a micro example, of course, but if you imagine the bodies of these
 loops being quite long then it could get complicated fast.

 --
 components: +Interpreter Core

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue19318
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue19318] break more than once

2013-10-20 Thread James Lu

James Lu added the comment:

Oh, yes,yes,yes!

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue19318
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18946] HTMLParser should ignore errors when parsing text in script tags

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
(div id=' + id + ' + 
scr + ipt 
type='text/javascript'\r\n + 
googletag.cmd.push(function() { 
googletag.display(' + id + '); });\r\n +
/sc + ript + invalid end tag
/div);
};
it thinks /sc + ript is an actual end tag.

--
messages: 197077
nosy: James.Lu
priority: normal
severity: normal
status: open
title: HTMLParser should ignore errors when parsing text in script tags

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18946] HTMLParser should ignore errors when parsing text in script tags

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 rep...@bugs.python.orgwrote:


 Ezio Melotti added the comment:

 What version of Python are you using?

 --
 nosy: +ezio.melotti

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18946
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18946
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 returning a result
type: enhancement
Added file: http://bugs.python.org/file31080/threading.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18591
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18591
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18537
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.orgwrote:


 Eric V. Smith added the comment:

 bool instances are immutable, so all value.toggle() could do is the same
 as not value. That is, return a new bool with the toggled value.

 --
 nosy: +eric.smith
 resolution:  - invalid
 status: open - closed

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18537
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18537
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.orgwrote:


 Eric V. Smith added the comment:

 Since it would be the same as not value, I can't imagine this would be
 added to the language.

 --

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue18537
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18537
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pyshell#26, line 1, in module
dis.dis(t)
  File C:\python 25\lib\dis.py, line 44, in dis
disassemble_string(x)
  File C:\python 25\lib\dis.py, line 111, in disassemble_string
labels = findlabels(code)
  File C:\python 25\lib\dis.py, line 165, in findlabels
oparg = ord(code[i]) + ord(code[i+1])*256
IndexError: string index out of range

--
components: Library (Lib)
messages: 193233
nosy: James.Lu
priority: normal
severity: normal
status: open
title: dis.dis fails on one letter strings.
type: crash
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18482
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 pyshell#21, line 1, in module
n.__div__(3)
TypeError: lambda() takes exactly 2 arguments (1 given)
The full test is here:
 n = num()
 n.__div__
function lambda at 0x040B2DF0
 n/3
Traceback (most recent call last):
  File pyshell#20, line 1, in module
n/3
TypeError: unsupported operand type(s) for /: 'num' and 'int'
 n.__div__(3)
Traceback (most recent call last):
  File pyshell#21, line 1, in module
n.__div__(3)
TypeError: lambda() takes exactly 2 arguments (1 given)

--
messages: 193166
nosy: James.Lu
priority: normal
severity: normal
status: open
title: Lambda assigned to object does not automatically get self

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



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

2013-07-16 Thread James Lu

Changes by James Lu jam...@gmail.com:


--
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 rep...@bugs.python.org
http://bugs.python.org/issue18474
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: Better random number generator
versions: Python 3.3
Added file: http://bugs.python.org/file30830/dSFMT-src-2.2.1.zip

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18386
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18386] Better random number generator

2013-07-06 Thread James Lu

Changes by James Lu jam...@gmail.com:


--
nosy:  -James.Lu
type:  - enhancement

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18386
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
title: Error call
type: performance
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16352
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16352] Error call

2012-10-28 Thread James Lu

Changes by James Lu jam...@gmail.com:


--
versions:  -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16352
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue16352] Error call

2012-10-28 Thread James Lu

James Lu added the comment:

srry

--
resolution: invalid - rejected

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16352
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14667] No IDLE

2012-10-06 Thread James Lu

Changes by James Lu jam...@gmail.com:


--
status: pending - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14667] No IDLE

2012-10-06 Thread James Lu

Changes by James Lu jam...@gmail.com:


--
resolution:  - works for me

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



RunPy (was py2bat (was: How do I make a Python .bat executable file?))

2012-06-08 Thread James Lu
no way
just use py2exe
1.download it and python
2.make a setup file with this replacing ? with python file name:
from setuptools import setup
setup(app=['Tic-Tac-Toe easy.py'])
james
a intermediate child programmer
-- 
http://mail.python.org/mailman/listinfo/python-list


[issue14667] No IDLE

2012-05-13 Thread James Lu

James Lu jam...@gmail.com added the comment:

thanks!
james

On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin rep...@bugs.python.orgwrote:


 Brian Curtin br...@python.org added the comment:

 James, since you attached a Windows executable I'll assume that's the
 platform you're on.

 Try the following:

 1. Open the Start menu
 2. Choose All Programs (or Programs on XP, I think)
 3. Scroll to where you see Python x.y, where you'll see one or more
 entries depending on how many versions you have installed.
 4. Choose the version you want to open, e.g., Python 2.7
 5. You should see IDLE (Python GUI) in the menu. Run it, that's IDLE.

 Is there an issue with any of those steps?

 --
 nosy: +brian.curtin

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14667
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14667] No IDLE

2012-04-25 Thread James Lu

James Lu jam...@gmail.com 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 rep...@bugs.python.orgwrote:


 Martin v. Löwis mar...@v.loewis.de added the comment:

 Please structure your bug report as follows:

 1. this is what you did
 2. this is what happened
 3. this is what you want to happen instead

 --
 nosy: +loewis

 ___
 Python tracker rep...@bugs.python.org
 http://bugs.python.org/issue14667
 ___


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14667] No IDLE

2012-04-24 Thread James Lu

New submission from James Lu jam...@gmail.com:

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/file25358/python.exe

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com