lekma lekma...@gmail.com added the comment:
Thank you very much for your help
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10271
___
___
Mark Hammond skippy.hamm...@gmail.com added the comment:
The most recent version of PEP397 has removed all mentioned of this reference
implementation - the C implementation at
https://bitbucket.org/vinay.sajip/pylauncher/ is now the reference.
--
resolution: - out of date
status:
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 79d2682c4fc5 by Ezio Melotti in branch '3.2':
#11435: link to the correct branch.
http://hg.python.org/cpython/rev/79d2682c4fc5
New changeset 3028b5ab92c0 by Ezio Melotti in branch 'default':
#11435: dummy merge
Ezio Melotti ezio.melo...@gmail.com added the comment:
I fixed the URL in 3.2.
The 2.7 docs link to the Subversion repo. Can I update them?
2.7 doesn't have the source directive, do you want to replace all the svn links
manually?
If so, either reopen this issue or create a new one.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12568
___
___
rgpitts richard.pi...@cdl.co.uk added the comment:
As Python 2.6 is now security only and 2.7 is last major release I've patched
this against Python 3.2 because pyconfig.h hadn't changed much since 2.6.
I've done as Amaury suggested and changed the HAVE_XXX symbols to define 1 like
autoconf.
New submission from maniram maniram maniandra...@gmail.com:
At line 235 there is a comment which contains secons which should be changed
to seconds.
--
components: Library (Lib)
messages: 140793
nosy: maniram.maniram
priority: normal
severity: normal
status: open
title: Spelling error
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 3bc80b6f7cd8 by Ezio Melotti in branch '3.2':
#12601: fix typo.
http://hg.python.org/cpython/rev/3bc80b6f7cd8
New changeset d26c7b18fc9d by Ezio Melotti in branch 'default':
#12601: merge with 3.2.
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
assignee: - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Tal Einat talei...@gmail.com:
--
nosy: +taleinat
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12590
___
___
Python-bugs-list mailing
Marc-Andre Lemburg m...@egenix.com added the comment:
I think it would be better to use this code:
if (!Py_UNICODE_ISUPPER(*s)) {
*s = Py_UNICODE_TOUPPER(*s);
status = 1;
}
s++;
while (--len 0) {
if (Py_UNICODE_ISLOWER(*s)) {
*s =
Ram Rachum cool...@cool-rr.com added the comment:
Thanks for explaining, I guess it's too complicated.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12583
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Do you mean if (!Py_UNICODE_ISLOWER(*s)) { (with the '!')?
This sounds fine to me, but with this approach all the uncased characters will
go through a Py_UNICODE_TO* macro, whereas with the current code only the cased
ones are
Marc-Andre Lemburg m...@egenix.com added the comment:
Ezio Melotti wrote:
Ezio Melotti ezio.melo...@gmail.com added the comment:
Do you mean if (!Py_UNICODE_ISLOWER(*s)) { (with the '!')?
Sorry, here's the correct version:
if (!Py_UNICODE_ISUPPER(*s)) {
*s =
maniram maniram maniandra...@gmail.com added the comment:
Thanks for the fast response.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12601
___
maniram maniram maniandra...@gmail.com added the comment:
It seems currently that in python 3.2 sys.platform is linux2 even though it is
running linux 3
--
nosy: +maniram.maniram
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
It seems currently that in python 3.2 sys.platform is linux2
even though it is running linux 3
It's maybe because you ran ./configure with Linux 2.x.y (see msg138254). Try
make distclean ./configure --with-debug make.
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11669
___
___
Python-bugs-list
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12589
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is HAVE_DECL_ISINF defined in pyconfig.h? PyLong_FromDouble() uses
Py_IS_INFINITY(x):
--
/* Py_IS_INFINITY(X)
* Return 1 if float or double arg is an infinity, else 0.
* Caution:
*X is
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12576
___
___
Michael Foord mich...@voidspace.org.uk added the comment:
Well, pyflakes will tell you about name clashes within a TestCase (unless
you're shadowing a test on a base class which I guess is rarely the case)...
When we generate the tests we could add the parameter reprs to the docstring. A
Ross Lagerwall rosslagerw...@gmail.com added the comment:
I don't like the idea of adding an argument which doesn't have a
counterpart in the POSIX version (especially to address such corner
cases).
Indeed, it seems rather messy for a corner case that may well not exist.
If there are
Sergei Lebedev superbo...@gmail.com added the comment:
Do you have an example of a /proc entry with st_size == 0 that can be mmapped
(mapping /proc/sys/debug/exception-trace fails with EACCESS)?
Yes, I've ran into the issue, while trying to mmap /proc/xen/xsd_kva, which is
an
interface to
Kuberan Naganathan kubi...@gmail.com added the comment:
Hi. I'm unable ( or have to jump through lots of hoops ) to submit this patch
myself for regulatory reasons. Can someone else submit this please? Thanks.
--
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Note that this is fairly simple to do now via subclassing, so any proposed API
would need to show a clear benefit over that approach to be worth the extra
complexity in the unittest code base.
--
Michael Foord mich...@voidspace.org.uk added the comment:
Note that name clashes *would* result in non-unique testcase ids, so we need to
prevent that.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
R. David Murray rdmur...@bitdance.com added the comment:
Please implement name+argtuple first and build auto-naming on top of that.
Nick's approach would not allow me to specify a custom (hand coded) name for
each set of arguments, which is my normal use case. I also would not like the
Changes by R. David Murray rdmur...@bitdance.com:
--
Removed message: http://bugs.python.org/msg140810
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7879
___
R. David Murray rdmur...@bitdance.com added the comment:
Please implement name+argtuple first and build auto-naming on top of that.
Nick's approach would not allow me to specify a custom (hand coded) name for
each set of arguments, which is my normal use case. I also would not like the
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12556
___
___
New submission from Nick Coghlan ncogh...@gmail.com:
General untidiness in the anchor names (and lack of same for entries like
script)
Missing incoming:
- from Invoking the Interpreter in the tutorial
- direct link from runpy.run_module to -m switch
- direct link from runpy.run_path to script
Changes by Nick Coghlan ncogh...@gmail.com:
--
assignee: - docs@python
components: +Documentation
nosy: +docs@python
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12602
Changes by higery shoulderhig...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22711/6382acfb1685.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12394
___
Nick Coghlan ncogh...@gmail.com added the comment:
Should also be an outgoing link to http://bugs.python.org/issue1739468
from the script entry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12602
Antoine Pitrou pit...@free.fr added the comment:
Note that this is fairly simple to do now via subclassing, so any
proposed API would need to show a clear benefit over that approach to
be worth the extra complexity in the unittest code base.
Agreed. Let's not add cruft to unittest.
higery shoulderhig...@gmail.com added the comment:
I hope people can help me test this patch especially on non-Windows platforms.
The main implementation resides in build_scripts.py.
Usage: Just add a 'wrapper-scripts-entries' variable in setup.cfg, which takes
a list type as its value. For
Michael Foord mich...@voidspace.org.uk added the comment:
Yeah, without some clear advantages and a clean api / implementation I'm -1.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12600
Mark Dickinson dicki...@gmail.com added the comment:
The result of:
struct.pack(d, float(inf))
would also be interesting. I'd expect to see:
'\x7f\xf0\x00\x00\x00\x00\x00\x00'
--
___
Python tracker rep...@bugs.python.org
Michael Foord mich...@voidspace.org.uk added the comment:
David, I don't understand - it looks like Nick's suggestion would allow you to
create a name per case, that's the point of it!
You could even do this:
def _name_from_case(name, cases):
for idx, case in enumerate(cases, start=1):
R. David Murray rdmur...@bitdance.com added the comment:
Oh, I see. Make the name the first element of the argtuple and then strip it
off. Well, that will work, it just seems bass-ackwards to me :)
And why is it 'case'? I thought we were talking about tests.
--
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10503
___
___
Changes by Adam Woodbeck adam.woodb...@gmail.com:
--
nosy: +adam.woodbeck
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12436
___
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f5a7d413638d by Charles-François Natali in branch '2.7':
Issue #12372: POSIX semaphores are broken on AIX: don't use them.
http://hg.python.org/cpython/rev/f5a7d413638d
--
nosy: +python-dev
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset f0475f78d45c by Charles-François Natali in branch '3.2':
Issue #12372: POSIX semaphores are broken on AIX: don't use them.
http://hg.python.org/cpython/rev/f0475f78d45c
--
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 44a02d6b74e4 by Charles-François Natali in branch 'default':
Merge - Issue #12372: POSIX semaphores are broken on AIX: don't use them.
http://hg.python.org/cpython/rev/44a02d6b74e4
--
Charles-François Natali neolo...@free.fr added the comment:
Patch committed: this should fix POSIX semaphores failures on AIX.
Reshmi, thanks for reporting this!
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
Changes by Andreas Stührk andy-pyt...@hammerhartes.de:
--
nosy: +Trundle
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
___
Charles-François Natali neolo...@free.fr added the comment:
By the way, I've checked mmap(2) manpage -- it looks like the C-version has
nothing
against mmaping 0-sized files, Why does Python's `mmap` still checks file
size?
It doesn't check explicitely that the size is non-0, but rather
Landry Breuil lan...@openbsd.org added the comment:
import struct
struct.pack(d, float(inf))
b'\x7f\xf0\x00\x00\x00\x00\x00\x00'
struct.pack(f, float(inf))
b'\x7f\x80\x00\x00'
And yes, HAVE_DECL_ISINF is defined to 1 in pyconfig.h
--
___
Python
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12581
___
___
New submission from Josh Triplett j...@joshtriplett.org:
In Python 2.7.2, pydoc.py's synopsis contains this code implementing a cache:
mtime = os.stat(filename).st_mtime
lastupdate, result = cache.get(filename, (0, None))
if lastupdate mtime:
Many filesystems don't have any
New submission from Josh Triplett j...@joshtriplett.org:
In _sre.c, the VTRACE macro normally gets defined to nothing. It later gets
used as the body of control structures such as else without braces, which
causes many compilers to warn (to catch stray semicolons like else;). This
makes it
New submission from Dave Malcolm dmalc...@redhat.com:
I'm attaching patches to handle some more events in the gdb7 debugging hooks
for CPython (aka Tools/gdb/libpython.py).
Currently, the hooks only care about C frames that are the bytecode interpreter
(i.e. PyEval_EvalFrameEx)
This patch
Changes by Dave Malcolm dmalc...@redhat.com:
--
keywords: +patch
Added file: http://bugs.python.org/file22712/more-frames-in-gdb-hooks-py3k.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12605
Dave Malcolm dmalc...@redhat.com added the comment:
(On 2.7, I needed import_site=True to get the new tests to work from a fresh
build: import time wasn't being found otherwise)
--
Added file: http://bugs.python.org/file22713/more-frames-in-gdb-hooks-2.7.patch
Martin v. Löwis mar...@v.loewis.de added the comment:
I'm still in favor of keeping sys.platform == 'linux3', and you?
Still -1. It should be renamed to 'linux' in future releases, and
back-patched to 'linux2' for maintenance releases.
As for releases that are already out - users should be
Charles-François Natali neolo...@free.fr added the comment:
Still -1. It should be renamed to 'linux' in future releases, and
back-patched to 'linux2' for maintenance releases.
I really don't see any advantage to this solution:
- sys.platform currently has a clear and documented value (OS
New submission from py.user port...@yandex.ru:
barr = bytearray(b'abcde')
lst = list('abcde')
barr[::-3] = ()
barr
bytearray(b'acd')
lst[::-3] = ()
Traceback (most recent call last):
File stdin, line 1, in module
ValueError: attempt to assign sequence of size 0 to extended slice of size 2
Changes by Antoine Pitrou pit...@free.fr:
Added file: http://bugs.python.org/file22714/1d8b7f158721.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
Changes by Antoine Pitrou pit...@free.fr:
Removed file: http://bugs.python.org/file22705/40ae82fafaed.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12555
___
Vlad Riscutia riscutiav...@gmail.com added the comment:
Ping? This also fixes 6493 (I believe in a cleaner way)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6068
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
That's what I thought, it's really uncommon: in that case, I'm
reluctant to making such a change, for the reason explained above.
Ross, Victor?
Why do you want a mmap? Why not using a file?
--
Changes by Ralf Schmitt python-b...@systemexit.de:
--
nosy: +schmir
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12556
___
___
Python-bugs-list
Terry J. Reedy tjre...@udel.edu added the comment:
I happen to prefer del myself, but I agree that the two mutable sequence
classes should behave the same. The manual 4.6.4 says
s[i:j:k] = t the elements of s[i:j:k] are replaced by those of t (1)
1. t must have the same length as the slice it
STINNER Victor victor.stin...@haypocalc.com added the comment:
You may try:
$ ./python
import ctypes
import ctypes.util
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))
isinf = libc.isinf
isinf.argtypes = (ctypes.c_double,)
isinf(0.0)
0
isinf(float('inf'))
1
(try
Changes by Nick Coghlan ncogh...@gmail.com:
--
Removed message: http://bugs.python.org/msg140819
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7897
___
Nick Coghlan ncogh...@gmail.com added the comment:
Sorry, misclicked and removed this comment from David:
Oh, I see. Make the name the first element of the argtuple and then strip it
off. Well, that will work, it just seems bass-ackwards to me :)
And why is it 'case'? I thought we were
Nick Coghlan ncogh...@gmail.com added the comment:
In my example, I needed a word to cover each entry in the collection of
parameter tuples. 'case' fit the bill.
The reason I like the builder approach is that it means the simplest usage is
to just create a list (or other iterable) of
Éric Araujo mer...@netwok.org added the comment:
Georg, could index directives be used to create link targets? (see
http://bugs.python.org/issue11975#msg137447)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
Éric Araujo mer...@netwok.org added the comment:
Thanks for the commit, I intended to do it these days.
For 2.7, I was indeed talking about updated all manual links. sed is my friend
:)
--
status: closed - open
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Great to hear these news! I will pull from your clone and test on linux2 as
soon as possible.
In your Mercurial configuration file, you should set the git option so that
diffs can display editions to binary files. See
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
My review of the patch: http://bugs.python.org/review/12528/show
--
nosy: +amaury.forgeotdarc
stage: - patch review
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Well, pyflakes will tell you about name clashes within a TestCase
Seen that :)
(unless you're shadowing a test on a base class which I guess is
rarely the case)...
That too, in our own test suite (test_list or test_tuple, I have that change in
Andrew Bennetts s...@users.sourceforge.net added the comment:
You may be interested an existing, unittest-compatible library that provides
this: http://pypi.python.org/pypi/testscenarios
--
nosy: +spiv
___
Python tracker rep...@bugs.python.org
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12591
___
___
Python-bugs-list
py.user port...@yandex.ru added the comment:
I happen to prefer del myself
but I agree that the two mutable sequence classes should behave the same.
del is not so flexible as assignement
cmpr = [bytearray(i.encode('ascii')) for i in ('abcd', 'efgh', 'ijkl')]
cmpr
[bytearray(b'abcd'),
py.user port...@yandex.ru added the comment:
the former could be like:
del cmpr[0][::-2], cmpr[1][::2], cmpr[2][1::2]
it's ok
how to implement this with del ?
cmpr
[bytearray(b'abcd'), bytearray(b'efgh'), bytearray(b'ijkl')]
cmpr[0][::-2], cmpr[1][::2] = (), cmpr[2][1::2]
cmpr
Éric Araujo mer...@netwok.org added the comment:
Failure on POSIX (linux2):
ERROR: test_install_wrapper_scripts
(packaging.tests.test_command_build_scripts.BuildScriptsTestCase)
--
Traceback (most recent call last):
File
Éric Araujo mer...@netwok.org added the comment:
Great. I’ve been re-reading some old threads in the spirit of “pth files are
evil”, so I wondered whether we could/should avoid them, but I think the
criticism was directed against pth files edited after the initial installation,
and pth files
Antoine Pitrou pit...@free.fr added the comment:
The universal_newlines feature is rather poorly named in Python 3.x, since it
does much more than that (the resulting files yield and expect unicode strings
rather than bytes objects).
The problem is that io.TextIOWrapper needs a buffered I/O
Éric Araujo mer...@netwok.org added the comment:
Georg or Benjamin: The PEP/documents/scripts used for releases should also
mention/edit the version in Doc/tools/sphinxext/pyspecific.py.
--
nosy: +benjamin.peterson
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
I kept this report open to address “test command needs dist-info”, but there’s
already a report about that (#12302) and I think it’s clearer to keep this one
closed as a discussion archive linked from the develop bug.
--
resolution:
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11435
___
___
Python-bugs-list mailing
Éric Araujo mer...@netwok.org added the comment:
For #8668 (develop command), higery has written code that reuses
install_distinfo to create the dist-info dir in the build dir. It requires
#12344, which I will commit when Thomas has time to finish his patch. We also
need to make
Éric Araujo mer...@netwok.org added the comment:
Patch looks good, with one issue: I’ve never encountered “cased character”
before, is it an accepted term or an invention in our docs?
--
___
Python tracker rep...@bugs.python.org
Ned Deily n...@acm.org added the comment:
A fix for this problem has been released in ActiveTcl 8.5.10.1 as of 2011-07-21.
--
resolution: - out of date
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker
Ezio Melotti ezio.melo...@gmail.com added the comment:
I think it's an invention, but its meaning is quite clear to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12204
___
R. David Murray rdmur...@bitdance.com added the comment:
So this is a doc bug in subprocess? Explaining this clearly doesn't sound like
much fun...
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12591
Ezio Melotti ezio.melo...@gmail.com added the comment:
import sys; hex(sys.maxunicode)
'0x10'
import unicodedata; unicodedata.unidata_version
'6.0.0'
import unicodedata
all_chars = list(map(chr, range(0x11)))
Ll = [c for c in all_chars if unicodedata.category(c) == 'Ll']
Lu = [c for c
py.user port...@yandex.ru added the comment:
[c for c in all_chars if c not in L and ...
L ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12266
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
L = set(sum([Ll, Lu, Lt, Lo, Lm], []))
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12266
___
Petter Haggholm pet...@petterhaggholm.net added the comment:
Added suggested changes from review, removed (rather useless) repr test; left
parse.py changes alone (see review comments for rationale)
--
Added file: http://bugs.python.org/file22715/urlparsetest.patch
Ross Lagerwall rosslagerw...@gmail.com added the comment:
That's what I thought, it's really uncommon: in that case, I'm
reluctant to making such a change, for the reason explained above.
Ross, Victor?
Even if Linux did accept a a length of 0 (which it doesn't since 2.6.12), what
would be
Sergei Lebedev superbo...@gmail.com added the comment:
Passing mmap(2) a 0 length doesn't make much sense anyway - for
example, Linux returns EINVAL.
Yup, but passing mmap(2) a zero-sized file and a non-zero length works just
fine.
Why do you want a mmap? Why not using a file?
Because Xen
Landry Breuil lan...@openbsd.org added the comment:
Python 3.2.1 (default, Jul 18 2011, 10:56:33)
[GCC 4.2.1 20070719 ] on openbsd4
Type help, copyright, credits or license for more information.
import ctypes
import ctypes.util
libc = ctypes.cdll.LoadLibrary(ctypes.util.find_library('c'))
96 matches
Mail list logo