Masami HIRATA added the comment:
Hi,
I can reproduce this issue with the following steps.
$ uname -a
Linux ashrose 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:03:29 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
$ python3.4 --version
Python 3.4.1
$ touch spam.txt
$ python3.4 -Wa -c "class A:
New submission from Masami HIRATA:
It seems that ResouceWarning about unclosed file handles with '-W all' option
sometimes doesn't display.
Is this behaviour normal?
$ uname -a
Linux ashrose 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:03:29 UTC 2014
x86_64 x86_64 x86_64 GNU/Li
Masami HIRATA added the comment:
Thanks, pitrou.
Your patch seems ok to me.
$ python3.4.1_with_patch -m unittest
.
--
Ran 1 test in 0.001s
It seems that this issue is same as
https://bitbucket.org/hpk42/pytest/issue/528/test
New submission from Masami HIRATA:
It seems that frame.f_locals causes segfault on Python >=3.4.1
$ uname -a
Linux ashrose 3.2.0-61-generic #93-Ubuntu SMP Fri May 2 21:31:50 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux
$ ls
test1.py
$ cat test1.py
import unittest
class TestCalla
New submission from Masami HIRATA:
Although PEP 342 says foo(yield 42) is legal, Lib/test/test_grammar.py says:
># Requires parentheses as call argument
>def g(): f((yield 1))
>check_syntax_error(self, "def g(): f(yield 1)")
BTW, It seems that foo(y
Masami HIRATA added the comment:
We should add 'randomization' and 'seed' attribute to sys.hash_info, I think.
--
___
Python tracker
<http://bug
Masami HIRATA added the comment:
It seems there is a misunderstanding on my part.
Python v3.3.1 documentation says,
"sys.flags The struct sequence flags exposes the status of command line flags.
The attributes are read only."
I think that sys.flags.hash_randomization should be a
New submission from Masami HIRATA:
OS: Windows 7 Starter Edition SP1 (32-bit)
Python: 3.3.1 (python-3.3.1.msi)
It seems that sys.flags.hash_randomization doesn't return correct value
Output:
C:\>set PYTHONHASHSEED=random
C:\>C:\Python33\python.exe
Python 3.3.1 (v3.3.1:d9893d13c
Masami HIRATA added the comment:
Is there any progress on this issue?
--
___
Python tracker
<http://bugs.python.org/issue16322>
___
___
Python-bugs-list mailin
New submission from Masami HIRATA:
Although PEP 380 says:
> 2. In a generator, the statement ::
>
> return value
>
> is semantically equivalent to ::
>
> raise StopIteration(value)
Functional Programming HOWTO (Doc/howto/functional.rst) says:
> ``return
Masami HIRATA added the comment:
> And what is the value.of locale.getpreferredencoding(False)?
>>> import locale
>>> locale.getpreferredencoding(False)
'cp932'
>>>
--
___
Python tra
Masami HIRATA added the comment:
> What show sys.getdefaultencoding(), sys.getfilesystemencoding(), and
> locale.getpreferredencoding()?
C:\Python33>python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "
New submission from Masami HIRATA:
OS: Windows 7 Starter Edition SP1 (32-bit) Japanese version
Python: 3.3.0 for Windows x86 (python-3.3.0.msi)
time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding.
C:\Python33>python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55
Masami HIRATA added the comment:
> So you agree that it's working?
Yes, the patch works correctly. Thank you!
--
___
Python tracker
<http://bugs.python.org
Masami HIRATA added the comment:
I attached new log file. (generated with 3.3.0 + your patch)
--
Added file: http://bugs.python.org/file27685/Python33_with_venv_3.txt
___
Python tracker
<http://bugs.python.org/issue16
Masami HIRATA added the comment:
> Could well be a similar problem; I'll look into it.
Is there any progress?
--
___
Python tracker
<http://bugs.python.org
Masami HIRATA added the comment:
btw, it seems to me that "-IC:\Python33\include -IC:\Python33\include" should
be "-IC:\Users\msmhrt\mypython\3.3.0\include -IC:\Python33\include".
What do you think about it?
--
___
P
Masami HIRATA added the comment:
I have tested the workaround and it works correctly.
Please see attached log file.
--
Added file: http://bugs.python.org/file27429/Python33_with_venv_2.txt
___
Python tracker
<http://bugs.python.org/issue16
Changes by Masami HIRATA :
Added file: http://bugs.python.org/file27399/Python33_without_venv.txt
___
Python tracker
<http://bugs.python.org/issue16116>
___
___
Python-bug
Changes by Masami HIRATA :
Added file: http://bugs.python.org/file27398/Python33_with_virtualenv.txt
___
Python tracker
<http://bugs.python.org/issue16116>
___
___
Pytho
New submission from Masami HIRATA:
I'm trying to install C extension modules inside a venv.
It works outside a venv and inside a virtualenv-1.8.2 but breaks inside the
venv.
OS: Windows 7 Starter Edition SP1 (32-bit)
Python: 3.3.0 (python-3.3.0.msi)
Compiler: Microsoft Visual C++ 2010 Ex
21 matches
Mail list logo