STINNER Victor added the comment:
See also #12567.
--
___
Python tracker
<http://bugs.python.org/issue10570>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
See also #10570.
--
___
Python tracker
<http://bugs.python.org/issue12567>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> Correction: the offending options are -j and *-W*
I changed regrtest -W recently to only run the tests once using StringIO as
stdout. So it's a regression in Python 3.3.
Can't we create a dummy/temporary TTY for the curses tests usin
STINNER Victor added the comment:
> Ping. What's the progress on this? Will this ever be fixed?
Some functions has been fixed in the new packaging module, but not in
the distutils yet.
--
___
Python tracker
<http://bugs.python.or
STINNER Victor added the comment:
> After changing NULL to (int *)1, all tests pass.
Ok, so Lion has a special case for reading from NULL. I changed the tests to
try to fix your bug. Can you tell me if it's now better?
--
___
Python tracke
STINNER Victor added the comment:
> All tests now pass.
Ok, thanks for your report and your feedback.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.or
STINNER Victor added the comment:
It should be related to #6203.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12699>
___
___
Python-bugs-list m
STINNER Victor added the comment:
@alanjds: Why do you add Python 2.7 version to this issue?
--
___
Python tracker
<http://bugs.python.org/issue9528>
___
___
Changes by STINNER Victor :
--
title: add codec for java modified utf-8 -> Add CESU-8 codec ("java modified
utf-8")
___
Python tracker
<http://bugs.pyth
STINNER Victor added the comment:
> The issue I'm thinking about is that the Mac HSF+ filesystem
There is no issue with HFS+ normalization. The kernel "normalizes" filenames to
its own variant, Python doesn't have to care about this.
When you write "import h<é
STINNER Victor added the comment:
> Python does have other "weird" encodings like bz2 or rot13.
No, it has no more such weird encodings.
--
___
Python tracker
<http://bugs.pyth
STINNER Victor added the comment:
See also #12737.
--
___
Python tracker
<http://bugs.python.org/issue12746>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
See also #12746.
--
___
Python tracker
<http://bugs.python.org/issue12737>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from STINNER Victor :
A lot of code is duplicated in unicodeobject.c to manipulate ("encode/decode")
surrogates. Each function has from one to three different implementations. The
new decode_ucs4() function adds a new implementation. Attached patch replaces
this code
STINNER Victor added the comment:
We may use the following unlikely macro for IS_SURROGATE, IS_HIGH_SURROGATE and
IS_LOW_SURROGATE:
#define likely(x) __builtin_expect(!!(x), 1)
#define unlikely(x) __builtin_expect(!!(x), 0)
I suppose that we should use microbenchmarks to validate
Changes by STINNER Victor :
--
nosy: +belopolsky
___
Python tracker
<http://bugs.python.org/issue12751>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> This has been proposed already in #10542 (the issue also has patches).
The two issues are different: this issue is only a refactoring, whereas #10542
adds a new "feature" (function/macro: Py
STINNER Victor added the comment:
Are you sure that errorString is not NULL? It looks like a bug in your
application, not in Python.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue10744>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
I'm not sure that O_EXCL is portable (exist on all platforms) because Python
source code uses "#ifdef O_EXCL".
--
nosy: +haypo
___
Python tracker
<http://bugs.pyt
STINNER Victor added the comment:
[309/358/1] test_packaging
[70190 refs]
test_formats (packaging.tests.test_command_bdist.BuildTestCase) ... ok
test_show_formats (packaging.tests.test_command_bdist.BuildTestCase) ... ok
test_skip_build (packaging.tests.test_command_bdist.BuildTestCase) ... ok
STINNER Victor added the comment:
I'm reposting my patch from #12751. I think that it's simpler than belopolsky's
patch: it doesn't add public macros in unicodeobject.h and don't add the
complex Py_UNICODE_NEXT() macro. My patch only adds private macros in
unicode
STINNER Victor added the comment:
My patch version 2: don't test for a specific major version of an OS, test only
its name. My patch now changes also tests for FreeBSD, NetBSD, OpenBSD, (...),
and the _expectations list in regrtest.py.
--
Added file: http://bugs.python.org/file
Changes by STINNER Victor :
Removed file: http://bugs.python.org/file22916/linux3-v2.patch
___
Python tracker
<http://bugs.python.org/issue10542>
___
___
Python-bug
STINNER Victor added the comment:
My patch version 2: don't test for a specific major version of an OS, test only
its name. My patch now changes also tests for FreeBSD, NetBSD, OpenBSD, (...),
and the _expectations list in regrtest.py.
--
Added file: http://bugs.python.org/file
Changes by STINNER Victor :
--
Removed message: http://bugs.python.org/msg142225
___
Python tracker
<http://bugs.python.org/issue10542>
___
___
Python-bugs-list m
STINNER Victor added the comment:
(oops, msg142225 was for issue #12326)
--
___
Python tracker
<http://bugs.python.org/issue10542>
___
___
Python-bugs-list mailin
Changes by STINNER Victor :
Removed file: http://bugs.python.org/file22613/linux3.patch
___
Python tracker
<http://bugs.python.org/issue12326>
___
___
Python-bugs-list m
STINNER Victor added the comment:
> The code review links point to something weird.
That's because I posted a patch for another issue. It's the patch set 5, not
the patch set 6 :-)
Direct link:
http://bugs.python.org/review/10542/patch/3174/9874
> My first impression is that
STINNER Victor added the comment:
I don't know if it would help you, but I wrote a C library offering a simple
API and supporting various RNG (cryptographic, hardware, pseudo, ...). It
reuses existing libraries like GSL, OpenSSL, glib, gcrypt, etc. It supports
UNIX/BSD /dev/*random de
STINNER Victor added the comment:
"On my laptop, KISS4691 could produce about 110 million random numbers per
second (148 millon if inlined), whereas MT19937 produced 118 million random
numbers per second."
The problem is that the Python API can only produce one number per
STINNER Victor added the comment:
Le 17/08/2011 07:04, Ezio Melotti a écrit :
> As I said in msg142175 I think the Py_UNICODE_IS{HIGH|LOW|}SURROGATE and
> Py_UNICODE_JOIN_SURROGATES can be committed without trailing _ in 3.3 and
> with trailing _ in 2.7/3.2. They should go in unicod
STINNER Victor added the comment:
I close this issue because it looks like a bug in your application (you say
that there is a least a buffer overrun). If it's really a bug in Python and you
use a usecase to reproduce it, please reopen the issue.
--
resolution: -> invali
STINNER Victor added the comment:
Ah yes, the correct prefix for functions working on Py_UNICODE
characters/strings is "Py_UNICODE", not "PyUNICODE", sorry.
>> For Python 2.7 and 3.2, I would prefer to not touch a public header,
>> and so add the macros in un
STINNER Victor added the comment:
> OK, so in 2.7/3.2 I'll put them in unicodeobject.c
It looks like #9200 only needs Py_UNICODE_NEXT, which can be implemented
without the other Py_UNICODE_*SURROGATE* macros.
--
___
Python tracke
STINNER Victor added the comment:
I don't think that it's a bug, but a feature.
Example:
buffer=ctypes.create_string_buffer(4)
buffer.value='a\0bc'
print("buffer.value=%r" % buffer.value)
print("buffer.raw=%r" % buffer.raw)
displays
buffer.value='
STINNER Victor added the comment:
> what needs to happen for them to move forward?
I would like a review of curses_unicode.patch.
--
___
Python tracker
<http://bugs.python.org/issu
STINNER Victor added the comment:
> New changeset 50f1922bc1d5 by Victor Stinner in branch 'default':
I will backport the fix to 2.7 and 3.2.
--
___
Python tracker
<http://bugs.pytho
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12775>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
Can you try to write a short example to reproduce the problem?
--
___
Python tracker
<http://bugs.python.org/issue12
STINNER Victor added the comment:
> I don't know if it's documented behavior
See #12103: it is not documented.
--
___
Python tracker
<http://bugs.pytho
STINNER Victor added the comment:
> I still think that sys.platform for the stable releases should
> never report 'linux3'
I don't understand why do you want to have a special case for Linux.
sys.platform is already different for each major version of:
* FreeBSD
STINNER Victor added the comment:
> I'm just suggesting one more special case for linux*
You suggest to have a special case in Python 2.7 and 3.2, but not in Python 3.3
(3.1, 2.6, etc.)?
--
___
Python tracker
<http://bugs.python.org
STINNER Victor added the comment:
> For Python 3.3, (...) In parallel we can change the stdlib
> tests to use .startswith()
done, see my changeset 50f1922bc1d5
--
___
Python tracker
<http://bugs.python.org/i
STINNER Victor added the comment:
If we change Python 2.7.3 and 3.2.2 to force sys.platform to linux2 (instead of
linux3) and use "linux" in Python 3.3, we will have 3 differents values of
sys.platform if Python is built on Linux 3:
- "linux3" on Python <= 2
STINNER Victor added the comment:
I don't think that macros specific to unicodeobject.c should get the
_PY_UNICODE_ prefix. "_Py_" prefix is reserved to exported symbols, but symbols
reserved for the Python interprefer itself. For _Py_UNICODE_NEXT, you can call
it
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12784>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
Try hash(buff_A) == hash(buff_B).
Are you able to identify which bytes/characters are differents?
--
___
Python tracker
<http://bugs.python.org/issue12
STINNER Victor added the comment:
It's really hard to follow this issue. I'm trying to sum up, please comment my
message if I'm wrong.
--
If I understood correctly, this issue has 3 remaining points:
(1) Python 2.7 and 3.2: force sys.platform to 'linux2'? Votes:
STINNER Victor added the comment:
You should retry memtest86+: http://www.memtest.org/#downiso
I had also memory errors recently. After 10 minutes, memtest86+ listed me 4
errors. After 30 minutes, there were 30 errors.
--
___
Python tracker
<h
STINNER Victor added the comment:
It's an hardware problem, not a Python problem, so I close this issue. Check
your RAM and the temperature of your mother board and of the CPU using your
tests (e.g. try lm-sensors on Linux).
--
resolution: -> invalid
status: open -
STINNER Victor added the comment:
> You should not use BufferedRWPair with the same underlying stream (that's the
> whole point of BufferedRWPair).
It might be documented. Something like "Warning: don't use the same
stream as reader and writer, or the BufferedRWPair bec
STINNER Victor added the comment:
I'm working on a patch to remove the major version of sys.platform. The patch
is much bigger than expected. You will see when it will be done :-)
--
___
Python tracker
<http://bugs.python.org/is
New submission from STINNER Victor :
#12326 proposes to remove the major version from sys.platform. If we remove it,
we will need another easy way to get this information. I don't think that we
need the version used to build Python, but the version at runtime. That's why
the pla
STINNER Victor added the comment:
> I'm working on a patch to remove the major version of sys.platform
As expected by Marc-Andre: we need this information and so it has to be
available somewhere else. I created #12794 to add platform.major(). I prefer to
get the major version at runt
New submission from STINNER Victor :
sys.platform contains the major system version. If you test the sys.platform
value (e.g. sys.platform == 'linux2'), your program doesn't work anymore with
the new system major version (e.g. Linux 3). This problem is common with
NetBSD, Open
STINNER Victor added the comment:
> I'm working on a patch to remove the major version of sys.platform
Done. I created the issue #12795: "Remove the major version from sys.platform".
--
___
Python tracker
<http://bugs.
STINNER Victor added the comment:
To have an idea of how much code has to be changed for the sys.platform change,
there is the diffstat :
$ diffstat sys_platform_without_major.patch
Lib/ctypes/util.py |6 --
Lib/distutils/command/build_ext.py |3 -
Lib
STINNER Victor added the comment:
> Can you please elaborate why we need it?
platform.major() will be needed if we remove the major version for all
platforms from sys.platform (issue #12795). See
sys_platform_without_major.patch attached to issue #12795 see how it is u
STINNER Victor added the comment:
At the beginning, I thaught that it would be better to remove the major version
from sys.platform on all platforms. When I started to write the patch, I
expected to change only 2 or 3 files. But the patch is now huge ("26 files
changed, 105 inser
STINNER Victor added the comment:
> I'm not sure I understand why platform.release() isn't sufficient
> for this purpose. Note that some systems return alphanumeric
> values for platform.release(), e.g. for Windows you get
> 'NT' or 'XP'.
It's
STINNER Victor added the comment:
For the sys.build_info, I opened #12794 (platform.major()) but then quickly
closed it because it was only useful if the issue #12795 (Remove the major
version from sys.platform) was accepted, but I closed it.
--
Update votes for "(2) Python 3.3: c
STINNER Victor added the comment:
"avoid parsing pyconfig.h and Makefile in the sysconfig module by
autogenerating an extension module"
This feature will be appreciated by small devices embeding Python: on such
device, headers and Makefile are not copied to not waste disk space.
STINNER Victor added the comment:
> allow an optional dirfd argument at the end of the arglist
I prefer this suggestion.
I didn't know openat(). Antoine told me that it can be used, for example, to
fix security vulnerabilities li
Changes by STINNER Victor :
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue12794>
___
___
Python-bugs-
STINNER Victor added the comment:
You are right, but this issue is a duplicate of #9949.
--
nosy: +haypo
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
STINNER Victor added the comment:
The issue #12799 has been marked as a duplicate of this issue:
"From a look at the code, realpath() does not seem to resolve symlinks under
Windows, even though we have the _getfinalpathname function to do that. Please
indulge with me if I
STINNER Victor added the comment:
The Python implementation (os.path.realpath) was introduced 10 years ago by the
issue #461781.
The Python implemtation has known bugs:
- #9949: os.path.realpath on Windows does not follow symbolic links
- #11397: os.path.realpath() may produce incorrect
STINNER Victor added the comment:
> Where's the doc updates for the stable branches?
I don't know how to update this documentation. Can someone update the
doc, or suggest a patch?
> Also, we might think about removing this version number everywhere.
Please, s
STINNER Victor added the comment:
> We could change the title of the ticket :-)
No please, move the discussion to #12795 which has a well defined title. This
issue is closed. (#12795 has also a patch) Well, #12795 is also close but you
can reopen it if you explain
STINNER Victor added the comment:
Le 20/08/2011 21:25, Marc-Andre Lemburg a écrit :
> I'm not sure I understand why platform.release() isn't sufficient
> for this purpose.
You cannot write platform.release() >= (2, 28) (Linux >= 2.28) or
platform.release() >= 7 (
STINNER Victor added the comment:
FreeBSD or OpenBSD release major version frequently, something like one
per year, or one per two years. FreeBSD and OpenBSD developers knows
that for years, and Python programs use sys.platform.startswith() for
these OSes.
For Linux, it's different.
STINNER Victor added the comment:
> sys.platform refers to build time information,
> so the platform module won't help.
When I wrote my patch, I realized that sys.platform is used to get the runtime
information, which is wrong. See the tests in Lib/test/test_*.py: they use
sys.
STINNER Victor added the comment:
> The whole purpose of autoconf/configure is
> to try to figure out which features are available on a platform
> and those features change with the OS version.
Hum, not exactly. autoconf checks if a function exists or if a constant exists
in the C he
STINNER Victor added the comment:
>> It is mostly to test FreeBSD major version, and it looks like Python is
>> build on the same FreeBSD major version that it is running on. Maybe because
>> on FreeBSD, most programs are compiled instead of using prebuild packages
>
STINNER Victor added the comment:
> But in general you are right: if you use system provided Python
> packages, chances are that your runtime OS version will be
> identical or very close to the build time OS version.
I asked on #freebsd-fr: even with pkg_add, the installed Python is
Changes by STINNER Victor :
--
hgrepos: +62
___
Python tracker
<http://bugs.python.org/issue12819>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> This issue and #5127 should not be backported to 2.7:
> narrow builds don't even accept unichar(0x1).
I agee.
--
___
Python tracker
<http://bugs.python
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12729>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
> New changeset d1fd0f0f8e68 by Sandro Tosi in branch 'default'
You may add shutil.chmod to the "What's New in Python 3.3?" document.
--
___
Python tracker
<ht
STINNER Victor added the comment:
Something like:
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -699,20 +699,21 @@ always available.
This string contains a platform identifier that can be used to append
platform-specific
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12822>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
See also #10278.
--
___
Python tracker
<http://bugs.python.org/issue12822>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
See also #12822.
--
___
Python tracker
<http://bugs.python.org/issue10278>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12808>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
It's surprising that it works on FreeBSD but not on OpenBSD. Thanks for your
patch.
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/is
STINNER Victor added the comment:
Because it's not exactly a bug, can you only apply the patch to Python 3.3?
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/is
STINNER Victor added the comment:
> can you only apply the patch ...
Hum, I mean can *we* only apply ...
--
___
Python tracker
<http://bugs.python.org/issu
Changes by STINNER Victor :
--
nosy: +haypo, pitrou
___
Python tracker
<http://bugs.python.org/issue9993>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue11657>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12821>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
utf8_fast.patch: fast path for pure ASCII string in the UTF-8 decoder.
--
Added file: http://bugs.python.org/file23022/utf8_fast.patch
___
Python tracker
<http://bugs.python.org/issue12
Changes by STINNER Victor :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue12834>
___
___
Python-bugs-list mailing list
Unsubscribe:
STINNER Victor added the comment:
i12801.patch is not correct: on Windows, you should never encode a filename to
bytes. Use PyUnicode_Decode() + _Py_wrealpath(), or a #ifdef (as many other
posixmodule functions).
I prefer to reuse _Py_wrealpath because we will have to add special cases
STINNER Victor added the comment:
Patch to get #ifdef REALPATH_SUPPORT_NULL:
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -1539,6 +1539,17 @@ if test "$have_pthread_t" = yes ; then
#endif
])
fi
+
+AC_MSG_CHECKING(for realpath
STINNER Victor added the comment:
See issue #12801: it has a more recent patch.
--
___
Python tracker
<http://bugs.python.org/issue1298813>
___
___
Python-bug
STINNER Victor added the comment:
> I prefer to reuse _Py_wrealpath because we will have
> to add special cases: realpath(NULL) and also maybe
> canonicalize_file_name().
I read that canonicalize_file_name(name) just calls realpath(name, NULL), so we
can maybe avoid this GNU exce
STINNER Victor added the comment:
>open(filename, 'w',
> fd_opener=lambda path, mode: os.open(path, mode|os.O_CREAT)
I prefer open(name, "c").
> it doesn't fill a use case: actually, avoiding race conditions
> is an important use case, ...
I
STINNER Victor added the comment:
subprocess_cloexec-1.diff: I'm too tired too review the test. The subprocess.py
part looks correct, except the pipe2 name. Python 3 uses "_create_pipe =
_posixsubprocess.cloexec_pipe". Pi
STINNER Victor added the comment:
It's surprising to raise a SkipTest *at the end* of the test. Here is another
patch.
--
Added file: http://bugs.python.org/file23037/chown_hpux-2.diff
___
Python tracker
<http://bugs.python.org/i
1901 - 2000 of 35168 matches
Mail list logo