Mark Dickinson dicki...@gmail.com added the comment:
The calculation of long_hash assumes an unsigned temporary type to get
correct results for the bit shifting and masking.
Yes, exactly.
The calculation is
done on the absolute value of the long and then the sign is applied. We
either
Georg Brandl ge...@python.org added the comment:
I'm not sure this is valid. First, I think I have a much easier example:
import re
re.search('bc|abc', 'abc').group()
'abc'
I assume you'd expect this to give 'bc' as well. However, for a string s,
search looks for matches looking at s,
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the
comment:
As I see it, it's more like:
re.search('a.*c|a.*|.*c', 'abc').group()
producing 'bc' instead of 'abc'. Substitute (?=^A) for a and (?=Z$) for
c in the pattern above.
In your example, the first part ('bc')
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the
comment:
Georg, please re-open it. Focus on the difference between example
regex_1|regex_2 (both matching; regex_1 is used as it should be), and
regex_1|regex_3 (both matching; regex_3 is used incorrectly).
--
Χρήστος Γεωργίου (Christos Georgiou) t...@users.sourceforge.net added the
comment:
No, my mistake, you did well for closing it.
The more explicit version of the explanation: both regex_1 and regex_2 start
actually matching at index 1, while regex_3 starts matching at index 0.
--
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10141
___
___
Brian Bossé pen...@gmail.com added the comment:
Yup, that's related to ENDMARKER being tokenized to its own line, even if EOF
happens at the end of the last line of actual code. I don't know if anything
relies on that behavior so I can't really suggest changing it.
My patch handles the
Changes by Eric Smith e...@trueblade.com:
--
stage: - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10135
___
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I noticed stat() won't set S_IEXEC in stat()
with my patch (py3k_posixpath_v1.patch). :-(
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10027
Jesús Cea Avión j...@jcea.es added the comment:
Seems to be adopted too in *bsd:
http://manpages.ubuntu.com/manpages/lucid/man2/lseek.2freebsd.html .
The feature has patches available too for Linux, but never integrated in
mainline kernel, AFAIK. Googling SEEK_HOLE is interesting.
--
Antoine Pitrou pit...@free.fr added the comment:
If it's just additional constants then I don't see the problem. We already have
a lot of platform-specific constants.
However, it would be a lot better if the io module were made to work properly
with these constants, too. There are a lot of
New submission from Ralph Corderoy ralph-pythonb...@inputplus.co.uk:
floats now have an is_integer() method. I think it was added in 2.6 around the
same time as as_integer_ratio(). It has a docstring but it isn't mentioned in
the documentation. I only idled across it when reading the C
Ask Solem a...@opera.com added the comment:
Is this on Windows? Does it work for you now?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10128
___
R. David Murray rdmur...@bitdance.com added the comment:
Having looked more carefully at the email4 (python2) code, I think I'm wrong.
The test I changed appears to codify the behavior expected when parsing a crlf
file in binary mode. This means that email4 code being ported to email5 may
Changes by R. David Murray rdmur...@bitdance.com:
--
assignee: d...@python -
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10145
___
Matthias Klose d...@debian.org added the comment:
the python.pc installation name should be changed too, and a symlink added.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
___
Matthias Klose d...@debian.org added the comment:
Lib/distutils/command/install.py () needs updates in INSTALL_SCHEMES/headers.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9807
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I implemented msg117279 with v2 patch. Can I commit it?
# If your are already working on this issue, please ignore
# my patch.
--
Added file:
http://bugs.python.org/file19280/py3k_fix_unbuffered_in_subprocess_v2.patch
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
Umm, v2 patch broke test_subprocess. I'll repost v3 patch
after removing bufsize=0 universal_newlines check.
==
ERROR: test_universal_newlines
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a simpler and hopefully more revealing test, speed_test.py.
This test repeatedly draws a full circle at various speeds and prints the time
spent. Here is the result:
# python3.1 speed_test.py
0:
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +gregorlingl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3062
___
___
Dirkjan Ochtman dirk...@ochtman.nl added the comment:
At least one of these also happens on Gentoo:
Modules/_ctypes/libffi/src/dlmalloc.c:3193: warning: implicit declaration of
function 'mremap'
Modules/_ctypes/libffi/src/dlmalloc.c:3193: warning: cast to pointer from
integer of different
Changes by Éric Araujo mer...@netwok.org:
--
stage: - needs patch
title: (4.2).is_integer() is undocumented. - float.is_integer is undocumented
versions: -Python 2.6, Python 3.3
___
Python tracker rep...@bugs.python.org
Dirkjan Ochtman dirk...@ochtman.nl added the comment:
Current Ubuntu builds from the buildbot also only show the libffi warning:
http://www.python.org/dev/buildbot/builders/x86%20Ubuntu%20Shared%203.x/builds/2326/steps/compile/logs/warnings
I suspect we don't really fix libffi compile warnings
R. David Murray rdmur...@bitdance.com added the comment:
Woops, I didn't meant to unassign docs.
--
assignee: - d...@python
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10145
Boštjan Mejak bostjan.me...@gmail.com added the comment:
I have read the Zen of PYthon before. I have also written a typo report. But
got rejected. No one listens to my ideas. So why do you have a bug tracker
anyway?
On Tue, Oct 19, 2010 at 6:46 AM, Ãric Araujo rep...@bugs.python.org wrote:
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file19283/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo, loewis
versions: -Python 2.6
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10090
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10092
___
___
Python-bugs-list
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Tue, Oct 19, 2010 at 12:34 PM, Boštjan Mejak rep...@bugs.python.org wrote:
I have also written a typo report. But
got rejected. No one listens to my ideas. So why do you have a bug tracker
anyway?
Bug tracker is not
Boštjan Mejak bostjan.me...@gmail.com added the comment:
your change to the parentheses changes the semantics. (Georg Brandl)
How does adding those parens change semantics? The behaviour of the function
isleap() is the same. I have throughtly tested this function and found no
semantic errors
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4480
___
___
Changes by Éric Araujo mer...@netwok.org:
--
components: +Distutils2 -Distutils, Windows
versions: +3rd party -Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4480
___
Changes by Éric Araujo mer...@netwok.org:
--
components: +Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4480
___
___
Python-bugs-list
Changes by Boštjan Mejak bostjan.me...@gmail.com:
Removed file: http://bugs.python.org/file19284/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
Changes by Boštjan Mejak bostjan.me...@gmail.com:
Removed file: http://bugs.python.org/file19275/calendar-isleap.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I cannot reproduce this on OSX. I have verified that the turtle position is
correct (-70.00,30.00) after the steps reported by OP.
This must be out of date.
--
nosy: +belopolsky
resolution: - out of date
stage:
Boštjan Mejak bostjan.me...@gmail.com added the comment:
I am applying a patch that only fixes the docstrings to match the return value
of calendar.isleap(). The return value of isleap() is not 1 or 0 -- it is True
or False. Please apply the patch. Thank you.
--
Added file:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed the docstring patch in r85725.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It looks like this has been fixed in turtle 1.1. See r72318 and issue 5923.
--
nosy: +belopolsky, georg.brandl
resolution: - out of date
stage: - committed/rejected
status: open - pending
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file18131/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5135
___
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Thank you for applying my patch. Glad to help. Please apply it to the trunk and
other branches as well.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
Georg Brandl ge...@python.org added the comment:
It will be merged in due time.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10073
___
___
Boštjan Mejak bostjan.me...@gmail.com added the comment:
It seems that calendar.LocaleTextCalendar() changes the locale for the current
interpreter session to the one you pass to argument 'locale'. This is a bug to
be fixed.
--
nosy: +Retro
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
It seems that 'add=False' would be same as 'add=None' and more
consistent with below.
The add argument is passed unchanged to canvas' bind method which is documented
as taking either '' or '+' string:
Éric Araujo mer...@netwok.org added the comment:
Indeed. Would you like to try to make a patch for Python 3.2? Help is here:
http://www.python.org/dev/ (especially http://www.python.org/dev/patches/ ) and
here: http://docs.pythonsprints.com/core_development/beginners.html
--
Éric Araujo mer...@netwok.org added the comment:
How does adding those parens change semantics?
It changes boolean evaluation paths. See for example
http://docs.python.org/py3k/reference/expressions#boolean-operations . If you
have more questions, python-list is an open and friendly mailing
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Would you like to try to make a patch for Python 3.2?
I'm not that geeky. :)
On Tue, Oct 19, 2010 at 8:36 PM, Ãric Araujo rep...@bugs.python.org wrote:
Ãric Araujo mer...@netwok.org added the comment:
Indeed. Would you like to
Georg Brandl ge...@python.org added the comment:
Fixed in r85728. The problem was that unlike other system calls, setlocale()
doesn't return the old setting but the new setting. The context manager that
resets the locale therefore didn't work as intended.
--
resolution: - fixed
New submission from Noah Kantrowitz noah+bugs.python@coderanger.net:
If a prefix is passed to translate_pattern it will generate a pattern using the
unescaped output of os.path.join(). This is fine on *nix, but on Windows it
results in a pattern like r'build\.*', which matches any string
New submission from Boštjan Mejak bostjan.me...@gmail.com:
Please read the docs here:
http://docs.python.org/py3k/reference/expressions#boolean-operations
This is the last sentence in the '5.10. Boolean operations' text):
([...] Because not has to invent a value anyway, it does not bother to
Ned Deily n...@acm.org added the comment:
The problem is reproducible with the python2 versions I have access to, that
is, on Mac OS X and Debian Linux, and likewise not with any of the python3 3.1
and 3.2 versions. It is most likely due to the underlying ncurses library
interacting with the
Boštjan Mejak bostjan.me...@gmail.com added the comment:
There is one more typo bug I noted in the documentation. Please go here:
http://docs.python.org/library/locale#locale.setlocale
Fix this text...
setlocale() is not thread safe on most systems.
...like this:
setlocale() is not
Changes by Éric Araujo mer...@netwok.org:
--
resolution: - duplicate
stage: - committed/rejected
status: open - closed
superseder: - Impossible to include file in sdist that starts with 'build' on
Win32
___
Python tracker rep...@bugs.python.org
Andreas Stührk andy-pyt...@hammerhartes.de added the comment:
That behaviour is indeed caused by ncurses as it changes the buffer size of
stdio. The rationale behind that is explained in a comment in
ncurses/tinfo/setbuf.c
Ned Deily n...@acm.org added the comment:
Thanks for NCURSES_NO_SETBUF (when it doubt read the man page!). Since the
problem does not seem to exist in python3 and this is likely been an issue for
a long time and apparently not previously reported and there are various
workarounds, I think
Georg Brandl ge...@python.org added the comment:
The first one is not a typo. Fixed the second one (and similar occurrences of
thread safe) in r85731.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Committed some of the simpler fixes in r85732.
?? Unclear how [delay()] interacts with turtle.speed
Unclear indeed. See issue 3062.
--
___
Python tracker
John J Lee jj...@users.sourceforge.net added the comment:
dstanek Would it be better to file bugs against buggy implementations instead
of changing Python's implementation to be more lenient?
No. Another app running on the same domain that knows nothing about RFC 2109
(and why should it?)
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching another test that demonstrates that the speed of the turtle is
different when it draws a straight line and a circle.
The output shows the time it takes to draw a line and a circle of the same
length at
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello,
can we consider this bug as fixed? test has been fixed, buildbots don't show
this problem anymore and a run on my system with 300 instances of the
test_xmlrpc running in parallel generated only OK as result.
Regards,
Sandro
Fernando Perez fdo.pe...@gmail.com added the comment:
No problem for us (IPython) if you mark it as won't fix. I've just applied the
environment workaround you guys suggested:
http://github.com/ipython/ipython/commit/147b245d2ead0e15d2c17b7bb760a03126660fb7
Thanks a lot for that tip! That
Sandro Tosi sandro.t...@gmail.com added the comment:
mh, 3 months and no taker, let's close it? :)
--
nosy: +sandro.tosi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7096
___
Changes by Ned Deily n...@acm.org:
--
resolution: - wont fix
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10144
___
___
Ned Deily n...@acm.org added the comment:
I have not seen any recent failures either.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6460
___
Martin v. Löwis mar...@v.loewis.de added the comment:
Am 19.10.2010 06:58, schrieb Raymond Hettinger:
Raymond Hettinger rhettin...@users.sourceforge.net added the
comment:
Martin, any thoughts on adding a ZFS dependent feature? ISTM this
Solaris feature hasn't taken hold elsewhere and
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6460
___
Changes by R. David Murray rdmur...@bitdance.com:
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7096
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch version 7:
- don't use snprintf() because it is not signal safe
- catch also SIGBUS and SIGILL if available
- Py_FatalError() uses fileno(stderr) instead of directly 2
- Factorize code in segfault.c and test_segfault.py
Sandro Tosi sandro.t...@gmail.com added the comment:
Hello, in r85111 Antoine revamped nntplib modules, making it compatible with
Python 3, improving its documentation and also adding a test suite. I'm marking
this bug as closed/accepted; Giampaolo, if you feel you still want to work on
the
New submission from Luke McCarthy l...@iogopro.co.uk:
When copying a file with shutil.copy2() between two ext4 filesystems on 64-bit
Linux, the mtime of the destination file is different after the copy. It
appears as if the resolution is slightly different, so the mtime is truncated
slightly.
David Watson bai...@users.sourceforge.net added the comment:
In fact, I would think that non-ASCII bytes in a hostname most
probably indicated that a name resolution mechanism other than
the DNS was in use, and that the byte string should be passed
unaltered just as a typical C program
STINNER Victor victor.stin...@haypocalc.com added the comment:
Patch version 8:
- fix compiler warning on Windows
- skip test_sigfpe() on Windows: it looks like the signal handler is not
executed, the program exits directly
- fix tests for Windows end of line (\r\n vs \n)
--
Added
STINNER Victor victor.stin...@haypocalc.com added the comment:
One other concern: many OSes (e.g. Linux distributions) implement
some kind of system-wide crash-catching utility; ...
Even if it would be possible to call the original signal handler, I think that
it would be better to just
STINNER Victor victor.stin...@haypocalc.com added the comment:
initfsencoding() now raises a fatal error on get_codeset() error. Use a
encoding different than the locale encoding on get_codeset() only leads to
mojibake and encoding issues, it's not a good idea. Close this issue as invalid.
Martin v. Löwis mar...@v.loewis.de added the comment:
This is a system limitation. The underlying file system supports nanosecond
resolution for the file stamps, and stat(2) also supports reporting them.
However, utimes(2) only supports microsecond resolution when setting them.
Linux supports
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Added file: http://bugs.python.org/file19290/py3k_posixpath_v1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10027
___
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp:
Removed file: http://bugs.python.org/file19278/py3k_posixpath_v1.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10027
___
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment:
I replaced my patch (almost reverted stat() part)
I think st_nlink will be set via stat()/lstat(), at least.
--
___
Python tracker rep...@bugs.python.org
Changes by R. David Murray rdmur...@bitdance.com:
--
dependencies: +email.Generators does not separates headers with \r\n
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10134
___
R. David Murray rdmur...@bitdance.com added the comment:
Malcolm: a Content-Transfer-Encoding of 8bit may only contain \r and \n
characters as part of the line ending sequence. 8bit is *not* binary; to use a
CTE of binary the SMTP server must support BINARYMIME, which I don't think is
all
New submission from Maciek J e...@wp.pl:
Not sure if this is a Python problem or an expat problem, but I get truncated
data while parsing XML documents.
This particular project is for parsing an XML file of Wikipedia dump.
The attached files are:
* xml-parse-revisions.py - parser script
*
R. David Murray rdmur...@bitdance.com added the comment:
I agree with Terry.
--
nosy: +r.david.murray
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Michael Olson ol...@irinim.net added the comment:
Sorry about that, yes, this is on Windows XP and 7, 32 bit.
And with the if statement it seems to work fine.
v/r
-- Michael Olson
--
___
Python tracker rep...@bugs.python.org
New submission from James Bowman bowmana...@gmail.com:
import sys
def foo():
x = [o] * 100
raise ArithmeticError
o = something
print sys.getrefcount(o)
try:
foo()
except ArithmeticError:
pass
print sys.getrefcount(o)
---
Gives:
4
104
Alex alex.gay...@gmail.com added the comment:
That's because in Python 2.5 at that point in the code sys.exc_info() still
points at the traceback (and by extension, the frame) thus x is not deallocated
yet. I don't think this is a bug.
--
nosy: +alex
86 matches
Mail list logo