PyThreadState_Get

2016-09-23 Thread Bharadwaj Srivatsa
Which ever project I am trying to install using python setup.py install command, i am getting the following error.. python -mtrace --trace setup.py install Fatal Python error: PyThreadState_Get: no current thread ABORT instruction (core dumped) How to get rid of this error and whats the cause

[issue27298] redundant iteration over digits in _PyLong_AsUnsignedLongMask

2016-09-23 Thread Oren Milman
Changes by Oren Milman : -- versions: +Python 3.7 -Python 3.6 ___ Python tracker ___ ___

Re: h(re) for help, import re - on NameError

2016-09-23 Thread Chris Angelico
On Fri, Sep 23, 2016 at 4:40 PM, Peter Otten <__pete...@web.de> wrote: > By the way, the current help() already loads a module if you pass its name > as a string: > Yes, which is the basis of my alternate exec trick: exec(tb.tb_frame.f_code, tb.tb_frame.f_globals, {n: n}) Basically it creates a

[issue28253] calendar.prcal(9999) output has a problem

2016-09-23 Thread lijp
Changes by lijp : Added file: http://bugs.python.org/file44788/20160923154147.png ___ Python tracker ___

Re: h(re) for help, import re - on NameError

2016-09-23 Thread Peter Otten
Veek M wrote: > Is there a way to use .pythonrc.py to provide a help function that > autoloads whatever module name is passed like so: By the way, the current help() already loads a module if you pass its name as a string: $ echo 'print("importing foo")' > foo.py $ python3 Python 3.4.3

[issue28253] calendar.prcal(9999) output has a problem

2016-09-23 Thread lijp
Changes by lijp : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware title: the reply's additional "Re:" -> calendar.prcal() output has a problem type: -> behavior versions: +Python 3.4 ___ Python

Re: Pasting code into the cmdline interpreter

2016-09-23 Thread Gregory Ewing
eryk sun wrote: if we see a read that returns less than the buffer size but doesn't end on a newline, then for a terminal, and only a terminal, I think we can infer Ctrl+D was typed and handle it as EOF. I don't think it would be wise to rely on that. There is no promise that any given read()

[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2016-09-23 Thread Joe Jevnik
New submission from Joe Jevnik: I was writing an extension module that was working with weakrefs and wanted to ensure that the GC would not run for a block of code. I noticed that gc.enable/gc.disable are not exposed to C and the state of the gc is in a static variable so it cannot be mutated

Re: h(re) for help, import re - on NameError

2016-09-23 Thread Veek M
Chris Angelico wrote: > On Thu, Sep 22, 2016 at 8:10 PM, Veek M wrote: >> Is there a way to use .pythonrc.py to provide a help function that >> autoloads whatever module name is passed like so: >> \>>> h(re) >> >> I tried inheriting site._Helper and overriding __init__ and

<    1   2