Dariusz Suchojad added the comment:
I think we can close the issue (although I seem not be able to do that).
The installer works just fine now I've downloaded it using another
browser. For future reference - the former one was Mozilla/5.0 (Windows;
U; Windows NT 5.1; en-US; rv:1.8.1.9)
New submission from Ravon Jean-Michel:
Here is my source:
def truc ():
line = ' hi \n'
line1 = re.sub('$', 'hello', line)
line2 = re.sub('$', 'you', line1)
print line2
Here is what I get:
trace.truc()
hi hello
helloyou
--
components: Regular Expressions
messages:
Vinay Sajip added the comment:
I've posted a proposal to python-list: you can view via
http://groups.google.co.uk/group/comp.lang.python/browse_frm/thread/336eb031c85758fa
or
http://article.gmane.org/gmane.comp.python.general/553877
Tracker [EMAIL
Amaury Forgeot d'Arc added the comment:
In other words, if I understand correctly:
re.sub('$', '#', 'a\nb\nc')
'a\nb\nc#'
re.sub('$', '#', 'a\nb\n')
'a\nb#\n#'
The first sample is correct, but the second one find two matches, even
without the re.MULTILINE option.
Is this normal? The docs
Titus Brown added the comment:
Please see GHOP patches by [EMAIL PROTECTED],
http://code.google.com/p/google-highly-open-participation-psf/issues/detail?id=215
I've attached the Python 2.6 patch here.
--
nosy: +titus
Added file: http://bugs.python.org/file9104/ghop-215-py2.6-ctb.diff
Rich added the comment:
I've been away for a couple of days, but can replicate everything
Joakim has reported in my abscence. Deleting/renaming recent-files.lst
allows me to launch IDLE (from cmd or Start Menu).
Oddly though, if I close IDLE, copy/paste the contents of the old
recent-files
Facundo Batista added the comment:
Fixed in r59852.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1757
__
___
Facundo Batista added the comment:
As re provides regular expression matching operations similar to those
found in Perl, I tried there to see what happens:
use Data::Dumper;
$a = 'a\nb\nc';
$a =~ s/$/#/;
print Dumper($a);
$a = 'a\nb\n';
$a =~ s/$/#/;
print Dumper($a);
$ perl pru_sub.pl
Daniel Serodio added the comment:
I found this bug via this post:
http://mail.python.org/pipermail/python-list/2007-April/436275.html
And I think 2.5.1 still has this bug. I'm not familiar with Python
bugtracker's ettiquete, should I reopen this bug?
--
nosy: +dserodio
Georg Brandl added the comment:
At least, the docs for re.M are consistent with the current behavior.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1761
__
___
Python-bugs-list
A.M. Kuchling added the comment:
Applied to trunk in rev. 59854, and to 25-maint in rev. 59855.
Thanks for your bugfix!
--
resolution: - accepted
status: open - closed
versions: +Python 2.5, Python 2.6 -Python 2.3
__
Tracker [EMAIL PROTECTED]
Jeffrey Yasskin added the comment:
Yes, making Decimal subclass object instead of Real and Inexact makes it
as fast as it used to be. ABCMeta.__instancecheck__ is easy to speed up,
but after fixing it, we're still about 25% behind. So here'a version
that just registers Decimal as a subclass
Facundo Batista added the comment:
Decimal was backported to Py2.5, commited in r59859.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1182
__
___
Python-bugs-list mailing list
Guido van Rossum added the comment:
So if the input ends in '\n', '$' matches both before and after that
character, and two substitutions are made (even though multiline is not
set). Seems a bug to me.
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
Changes by Facundo Batista:
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1182
__
___
Python-bugs-list mailing list
Jeffrey Yasskin added the comment:
I've only verified the behavior on 2.6, but I suspect it's true for both.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1762
__
___
Christian Heimes added the comment:
__instancecheck__ contains unnecessary code. If we restrict ABCs to new
style classes we could make the function faster:
Old:
def __instancecheck__(cls, instance):
Override for isinstance(instance, cls).
return
New submission from Christian Heimes:
The new module winpath gives easy access to Windows shell folders like
my documents, my files, application data etc.
--
components: Library (Lib), Windows
files: trunk_winpath.patch
keywords: patch
messages: 59547
nosy: tiran
priority: normal
Raghuram Devarakonda added the comment:
The current 'path' modules such as posixpath and ntpath have functions
that operate on a file path. But I see this module more as a way of
getting information related to one's profile. So the name 'winpath' may
not be a good choice.
--
nosy:
Christian Heimes added the comment:
The patch implements the rich cmp slots for , =, and = required for
numbers.Real.
Added file: http://bugs.python.org/file9107/trunk_decimal_richcmp.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1762
Christian Heimes added the comment:
without abc:
$ time ./python Lib/test/regrtest.py test_decimal
real0m10.113s
user0m9.685s
sys 0m0.196s
with numbers.Real subclass:
$ time ./python Lib/test/regrtest.py test_decimal
real0m16.232s
user0m15.241s
sys 0m0.384s
Proposed
Martin v. Löwis added the comment:
I believe Microsoft advises against looking at the registry to find
these things, and advocates the use of SHGetFolder instead:
Changes by Martin v. Löwis:
--
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1737
__
___
Python-bugs-list mailing list
Martin v. Löwis added the comment:
Can anybody provide a complete, reproducible procedure for that bug
(rather than reproducible procedures to work around it)? Such a
procedure might have to start with installing Python.
__
Tracker [EMAIL PROTECTED]
Mark Dickinson added the comment:
Unfortunately, I think this backport still breaks hash:
bernoulli:~/python_source/release25-maint dickinsm$ ./python.exe
Python 2.5.2a0 (release25-maint:59859M, Jan 8 2008, 11:54:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type help,
Facundo Batista added the comment:
Fix it, please.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1182
__
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
A note to any potential reviewers for this patch (cmath3.patch): I'm
especially
looking for non-mathematical feedback here, so please don't be put off by the
mathematics. Some questions:
- there's a new file cmath.ctest containing testcases; should this
Robin Stocker added the comment:
Guido: The check was only done for call nodes, not for function definitions.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1745
__
___
Robin Stocker added the comment:
Ok, I checked all the logs and updated the patch. test_collections uses
n = 254 now and all tests pass.
I left revision 54043 out on purpose, because it fixes Lib/inspect.py
and Lib/pydoc.py for both PEP 3102 and 3107, so it should be included in
the patch for
Amaury Forgeot d'Arc added the comment:
In the previous samples we forgot the /g option needed to match ALL
occurrences of the pattern:
use Data::Dumper;
$a = a\nb\nc;
$a =~ s/$/#/g;
print Dumper($a);
$a = a\nb\n;
$a =~ s/$/#/g;
print Dumper($a);
Which now gives the same output as Python:
Mark Dickinson added the comment:
hash fixed in revision 59863.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1182
__
___
Python-bugs-list mailing list
Unsubscribe:
Christian Heimes added the comment:
Here is a new patch which adds os.path.getshellfolders(). It uses
SHGetFolderPathW which is compatible with Windows 2000.
I've implemented the API because several of my project need the path to
my documents. I've a personal interested in the specific feature.
Raymond Hettinger added the comment:
If this something missing from Colishaw's test suite, you should submit
the result to him so they can include it in the next update.
--
nosy: +rhettinger
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1182
Mark Dickinson added the comment:
Okay: would it be okay for me to move the #ifdef MS_WINDOWS sequence
somewhere where it can be used by both mathmodule.c and cmathmodule.c,
then?
There are replacements for log1p and asinh in the patch, so it shouldn't
matter than they're missing on
Christian Heimes added the comment:
* I've added a configure test for copysign a while ago. I'm using this
constructor for Windows compatibility in mathmodule.c:
#ifdef MS_WINDOWS
# define copysign _copysign
# define HAVE_COPYSIGN 1
#endif
#ifdef HAVE_COPYSIGN
#endif
I know no platform
Mark Dickinson added the comment:
I don't think anything's missing from Cowlishaw's test-suite. An old,
buggy test (nrmx218) was both renamed (to redx218) and fixed by Cowlishaw.
I think Facundo ended up with both tests---so naturally the old, broken
test failed.
Christian Heimes added the comment:
The new patch applies against the latest svn revision. Several functions
were renamed.
Added file: http://bugs.python.org/file9112/py3k_post_import_lazy.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1576
Changes by Christian Heimes:
Removed file: http://bugs.python.org/file8909/py3k_post_import_hook3.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1576
__
___
Changes by Christian Heimes:
Removed file: http://bugs.python.org/file8914/py3k_post_import_hook4.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1576
__
___
Changes by Christian Heimes:
Removed file: http://bugs.python.org/file8928/py3k_post_import_hook_lazy.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1576
__
___
New submission from Guido van Rossum:
We should either change the API so you can pass in a '' comparator, or
get rid of it completely (since key=... takes care of all use cases I
can think of).
--
messages: 59575
nosy: gvanrossum
priority: normal
severity: normal
status: open
title:
Changes by Guido van Rossum:
--
components: +Interpreter Core
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1771
__
___
Python-bugs-list mailing list
Unsubscribe:
Christian Heimes added the comment:
Bug day task
--
nosy: +tiran
priority: - high
versions: -Python 2.4
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1683
__
___
Senthil added the comment:
Georg Brandl added the comment:
There are quite a lot more functions in __all__, more than 10 split*
functions... should they all be documented?
Also, isn't urlparse meant to do such tasks?
I agree. I too feel that not everything in the __all__ list should be
Raymond Hettinger added the comment:
I support removal; however, there is an uncommon corner-case that is
well served by __cmp__ where a primary key is sorted ascending and a
secondary key is sorted descending -- that case is a PITA with the key=
function because you need a way to invert the
Raymond Hettinger added the comment:
Forgot to mention, the easy work-around is to do two consecutive sorts
and take advantage of the guaranteed stability:
l.sort(key=secondary, reverse=True)
l.sort(key=primary)
__
Tracker [EMAIL PROTECTED]
New submission from Stephan Hoermann:
If commands similar to this (including all quotation
marks) 'C:\\Program Files\\test.bat blah C:\\Data Files\\test2.txt'
are executed using popen, then the following is returned from
stderr 'C:\\Program' is not recognized as an internal or external
Alan McIntyre added the comment:
Here's the first draft of a patch (zipfile-unsigned-fixes.diff) that
does a few things:
- Interpret fields as unsigned unless required (CRC, etc.)
- Corrects reading of ZIP files with large archive comments
- Replaces hard-coded structure sizes with module-level
Changes by Adam Olsen:
--
nosy: +rhamphoryncus
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1683
__
___
Python-bugs-list mailing list
Unsubscribe:
Jeffrey Yasskin added the comment:
Thanks again for the excellent comments.
__init__: good catch.
repr(Rational): The rule for repr is eval(repr(object)) == object.
Unfortunately, that doesn't decide between the two formats, since both
assume some particular import statements. I picked the one
50 matches
Mail list logo