Kay Hayen added the comment:
What I also meant to say, is that debug Python is not affected, and this had me
deeply confused. Any ideas how that could happen?
--
___
Python tracker
<https://bugs.python.org/issue9
Kay Hayen added the comment:
Today I changed my reference count tests to not use debug Python and came
across this issue.
>From my testing, Python3.4 is the first affected version, Python3.3 was still
>fine, so were 2.7 and 2.6.
This leaks:
def simpleFunction39():
class Pare
Kay Hayen added the comment:
Thanks a lot, Batuhan, this will feel a lot more correct, from my point of
view, this could be closed unless there would be a backport.
--
___
Python tracker
<https://bugs.python.org/issue35
New submission from Kay Hayen :
Much like #9366 the same file can be used. This reference leaks according to
Nuitka comparative testing:
simpleFunction59: FAILED 129511 129512 leaked 1
def simpleFunction59():
a = 3
b = 5
try:
a = a * 2
return a
finally
Change by Kay Hayen :
--
nosy: -Kay.Hayen
__
Python tracker
<https://bugs.python.org/issue11566>
__
___
Python-bugs-list mailing list
Unsub
New submission from Kay Hayen :
Hello,
in trying to know what to put into "__annotations__" at run time, the "from
__future__ import annotations" pose a new problem. It is now necessary to
"unparse" to ast code that is still there.
Code to do so, is in C A
Kay Hayen added the comment:
So I was confused indeed.
Actually I am observing in other tests at least, that apparently Nuitka
compiled execution in my tests can import _testcapi module, which normal
execution of the test does not manage.
Then there is the possibility that the exit code
Kay Hayen added the comment:
I think that the whole reason I was doing this, is because with "os.execl" on
Windows, the exit code was always lost, but of course it is very important and
"subprocess.call" promises to return it.
I just tried if 3.7 has any better exit
New submission from Kay Hayen :
Hello there,
I am probably confusing myself. I am using this kind of code in Nuitka to
emulate "os.execl" on Windows, and so far it never let me down:
r = subprocess.call(
args,
she
Kay Hayen added the comment:
Totally is. Closing, sorry for not seeing that one myself.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/i
New submission from Kay Hayen :
When I run:
python3.7 test/test_dataclasses.py
==
ERROR: test_classvar_module_level_import (__main__.TestStringAnnotations
New submission from Kay Hayen :
Hello there,
building an MSI for my project fails. I am calling it like this:
assert subprocess.call(
(
sys.executable,
"setup.py",
"bdist_msi",
"--target-v
Kay Hayen added the comment:
As somebody whose opinion is even less important: Did you consider my
suggestion to make it a "SyntaxError" for "del __annotations__" on a class
level or even module level or at all? Or does this go
Kay Hayen added the comment:
Thanks for pointing out, where it comes from, Serhiy.
So, should the test case be removed then. I still am not so sure about
the bug nature.
Because using the standard mechanism will do this:
x : int
class C:
del __annotations__
x : float
y : int
New submission from Kay Hayen :
I am getting this:
PYTHONPATH=`pwd` /c/Python37_32/python test/test_opcodes.py
.F..
==
FAIL: test_do_not_recreate_annotations (__main__.OpcodeTest
Kay Hayen added the comment:
Hello,
so it's harmless and it explains the other reference counting issue, where a
change in call convention could make a reference counting bug show or go away:
codecs.open(TESTFN, encoding='cp949')
This was showing it, where as
codecs.o
Kay Hayen added the comment:
Just to confirm, this is also happening on Windows as well, with both 32 and 64
bits.
--
___
Python tracker
<https://bugs.python.org/issue34
New submission from Kay Hayen :
I have a test in Nuitka, designed to detect reference counting problems with
Python code. It basically takes a snapshot of the refcount, runs a function
until it stabilizes, then says PASS, or else reports the last diff. Obviously
for CPython it's suppos
Kay Hayen added the comment:
Hello Ned,
sorry for noise. I checked that, but oversaw it. Maybe I also wasn't expecting
this. There has been such a huge trend towards * and ** support for like
everything, e.g. class definitions in 3.6, that this felt like a move in the
opposite dire
New submission from Kay Hayen :
Hello,
things like list(sequence = something) ought to work in Python 3.6 back to the
oldest Python2 I know.
However, in 3.7 this raises an exception about not accepting keyword arguments.
I noticed the same for tuple, int, float(x=9.0), and probably a lot
New submission from Kay Hayen :
Hello,
for my Python compiler Nuitka, I want to make sure that compiled binaries in
standalone mode do not access the original installation, but solely the
distribution folder created.
I am using the new API Py_SetPath on Python3 and it works fine. The
New submission from Kay Hayen:
Check out this:
python3.6 -c "staticmethod(function=1)"
Traceback (most recent call last):
File "", line 1, in
TypeError: staticmethod expected 1 arguments, got 0
python3.6 -c "staticmethod()"
Traceback (most recent call last):
Kay Hayen added the comment:
Same with 3.6b1, still present.
--
nosy: +kayhayen
___
Python tracker
<http://bugs.python.org/issue27942>
___
___
Python-bugs-list m
New submission from Kay Hayen:
Hello,
there is a regression in the beta (alpha 4 was ok) for this kind of code:
print("Complex call with both invalid star list and star arguments:")
try:
a = 1
b = 2.0
functionWithDefaults(1,c = 3,*a,**b)
except TypeError as e:
pr
New submission from Kay Hayen:
Consider this:
def defaultKeepsIdentity(arg = "str_value"):
print(arg is "str_value")
defaultKeepsIdentity()
This has been outputing "True" on every Python release I have seen so far, but
not so on 3.6.0a4. Normally string val
Kay Hayen added the comment:
This also affects Python2.7.12 on Windows with latest MinGW. I think something
similar needs to be added for GCC version check:
/* VS 2010 and above already defines hypot as _hypot */
#if _MSC_VER < 1600
#define hypot _hypot
#endif
Not sure which gcc version fi
Kay Hayen added the comment:
Are you still tracking this as a feature request. If so, please note that I
don't need it anymore. The meta path based import mechanism is fully sufficient
to me.
--
___
Python tracker
<http://bugs.python.org/i
Kay Hayen added the comment:
I can confirm that Python3.4 is not affected. Python 3.3 and 3.2 still are.
--
___
Python tracker
<http://bugs.python.org/issue16
New submission from Kay Hayen:
Suprisingly, keyword only arguments become evaluated first:
>>> def f(a=undefined1,*,b=undefined2):pass
...
Traceback (most recent call last):
File "", line 1, in
NameError: name 'undefined2' is not defined
It should be "unde
Kay Hayen added the comment:
Does the Python standard library not offer anything that does replace with
current process code with another? I checked with subprocess, and admittedly
it's not that. Does Win32 API offer nothing for
Kay Hayen added the comment:
Well, I saw that code, but expected that there must be more to it. But I found
out, the bug is actually caused by at least MinGW. See below how I build a
program with it, that does "execl" on an error exiting program and then the
"errorlevel&
New submission from Kay Hayen :
Hello,
I am the author of the Python compiler Nuitka. It has the ability to
immediately execute the created executable file. For that I am using "os.execl"
to immediately replace the compiler and run the freshly created binary instead.
This worked w
Kay Hayen added the comment:
I see, if it's refcount dependent, that explains why it changes from
interpreter provided dictionary and self-created one.
So, I take, I should always call "pickletools.optimize( cPickle.dumps( value
))" the
Kay Hayen added the comment:
Sending my attached file "stream.py" through "2to3.py" it shows that CPython
3.2 doesn't exihibit the issue for either protocol, which may be because it's
now "unicode" key, but as it's the only value I tried, I
Kay Hayen added the comment:
It seems that there is an extra "BINPUT 2", whatever it does. I am attaching a
variant that does pickletools.dis on the 3 dumps.
Protocol 2 :
Dumping read const const stream '\x80\x02}q\x01U\x07modulesq\x02Ns.'
0: \x80 PROTO 2
2: }
New submission from Kay Hayen :
Hello,
I am implementing a Python compiler (Nuitka) that is testing if when it
compiles itself, it gives the same output.
I have been using "protocol = 0" ever since with "pickle" module for historic
reasons (gcc bug with raw strings lea
Kay Hayen added the comment:
Why did you remove Python2.7 from the versions list? Isn't this supposed to
track the affected versions? (This is not the first time I encountered that.)
I understand that you may not fix all bugs in 2.x, but is it already
unsupported in the sense that its
New submission from Kay Hayen :
Hello,
I try to include modules with PyImport_AppendInittab or PyImport_ExtendInittab
and that works fine. But if these modules are part of a package, i.e. I provide
"package_name.module_name" as the name, they never get considered.
Is there any wa
Kay Hayen added the comment:
This is to inform you that I worked around the bug by reading the source file
in question and checking the indicated position. This is currently the only way
to decide if a literal should be unicode or str with unicode_literals from
future imported.
It goes like
Kay Hayen added the comment:
Hello Benjamin,
thank you for the response. What do you mean with there is "nothing we can do
about it". Is it not possible to add another field indicating the prefix given
to a literal?
BTW: I believe raw strings are also no longer recognizable. For
Kay Hayen added the comment:
You didn't understand. Please tell me, how to decide if this is a unicode
literal or a str (2.x) literal:
value=Str(s='d')
It's just not possible. When I found a "from __future__ import
unicode_literals" in the code before, it means
New submission from Kay Hayen :
There is no way to decide if a string literal should be non-unicode when the
default has been set to unicode_literals. Please see:
>>> import ast
>>> ast.dump( ast.parse( """c = "d" """ ) )
"Modul
New submission from Kay Hayen :
Please check the following:
[GCC 4.4.5 20100728 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import compiler
>>> compiler.parse( "d[1,] = Non
New submission from Kay Hayen :
Hello,
I have created tests that check the reference counting and found that the
following simple function leaks references in CPython:
def simpleFunction39():
class Parent( object ):
pass
I have attached a test that needs to be run with python-dbg
44 matches
Mail list logo