Facundo Batista added the comment:
I think that the Spec disallows additional whitespace to not allow, for
example, 2. 34 as 2.34, or 10 e-12.
I don't see any harm in having 2.34 or 5.73\n as good input
values, as long we remove those characters at both ends.
I propose to just make a
Nashev added the comment:
1) in file EditorWindow.py 2 editings:
a) remove selection-killer command on popup
def right_menu_event(self, event):
-- self.text.tag_remove(sel, 1.0, end)
b) add ability to make separators in popup menu
def make_rmenu(self):
rmenu =
New submission from Hrvoje Nikšić:
PyModule_AddObject has somewhat strange reference-counting behavior in
that it *conditionally* steals a reference. In case of error it doesn't
change the reference to the passed object, but in case of success it
steals it. This means that, as written,
New submission from Jukka Laurila:
sysmodule.h contains the following declarations for data to be exported
from the Python DLL, but these variables don't seem to exist anywhere:
PyAPI_DATA(PyObject *) _PySys_TraceFunc, *_PySys_ProfileFunc;
PyAPI_DATA(int) _PySys_CheckInterval;
Either the
Christian Heimes added the comment:
Thanks for your analysis! I *think* you are right but I've to study the
code more carefully before I can make a decision. We can't target the
change for 2.5 though. Guido would accuse my of being insane again. *g*
The problem should be discussed at the
Guido van Rossum added the comment:
Would it be reasonable then to not have any of the numeric tower stuff
put in the decimal module -- basically leave it alone (no __ceil__,
etc)?
If that's the preference of the decimal developers, sure.
__
Tracker [EMAIL
Christian Heimes added the comment:
It's an easy task for the bug day unless you can provide a patch and an
unit test earlier.
--
nosy: +tiran
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1781
Christian Heimes added the comment:
Sounds good to me. The vars were probably forgotten. The header files
may contain more missing vars, too.
--
nosy: +tiran
priority: - normal
versions: +Python 3.0 -Python 2.5
__
Tracker [EMAIL PROTECTED]
Changes by Stuart D Gathman:
--
type: - behavior
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1025395
_
___
Python-bugs-list mailing list
Unsubscribe:
Stuart D Gathman added the comment:
# A quick and very dirty fix for common broken cases, with test cases.
import rfc822
def parseaddr(t):
Split email into Fullname and address.
parseaddr('[EMAIL PROTECTED]')
('', '[EMAIL PROTECTED]')
parseaddr('Full Name [EMAIL PROTECTED]')
Stuart D Gathman added the comment:
Ok, I see the '@' is technically not allowed in an atom. But it either
needs to throw an invalid syntax exception, or heuristically return
something reasonable.
_
Tracker [EMAIL PROTECTED]
Stuart D Gathman added the comment:
Repeating because previous real life test case was rejected as 'spam':
It also fails to parse:
from email.Utils import parseaddr
parseaddr('[EMAIL PROTECTED] [EMAIL PROTECTED]')
('', '[EMAIL PROTECTED]')
Getting the wrong part as the actual email to boot!
New submission from Raghuram Devarakonda:
Sorry for the generic title but I couldn't think of a better one. My
attempt to do svn up make failed with the following exception from
setup.py:
--
File ./setup.py, line 314, in detect_modules
if options.dirs:
AttributeError:
Guido van Rossum added the comment:
These are meant purely for the convenience of module initialization, and
there correct handling of reference counts in the light of failures is
of marginal importance. So while these may technically have leaks, you
shouldn't care.
--
nosy:
Raghuram Devarakonda added the comment:
It is my mistake. I modified optparse.py for an earlier issue and that
change is the cause of the problem reported here. Please close it as
invalid.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1784
New submission from Dieter Maurer:
The inspect functions getmembers(cls) and classify_class_attrs(cls)
require that for a class *cls* each name in dir(cls) can be retrieved
by getattr(cls, name). While this holds for usual class attributes, it
may well fail for descriptors (descriptors set by
Changes by Guido van Rossum:
--
resolution: - invalid
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1784
__
___
Python-bugs-list mailing list
Guido van Rossum added the comment:
Please submit a patch.
--
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1785
__
___
Python-bugs-list mailing list
Dieter Maurer added the comment:
In dm.zdoc (a pydoc wrapper for Zope) I simply filter out all names
returned by dir which cannot be getattred.
But, I am not sure, that this is good enough to be accepted as a patch
(although it already improves upon the current state)
Eric Huss added the comment:
Alan, your changes look good to me, but it is missing my patch in this bug
that fixes the sign issue in _decodeExtra. While you're there, you might
as well change the other 3 unpack lines to use a capital Q.
-Eric
__
Tracker [EMAIL
Raghuram Devarakonda added the comment:
Please see cfgparser.diff for the fix. It has tests and doc change.
--
nosy: +draghuram
Added file: http://bugs.python.org/file9118/cfgparser.diff
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1781
Raghuram Devarakonda added the comment:
I should add that the patch disallows not only 'DEFAULT' but all other
variants such as Default and default. I am not entirely sure if my
description of this behaviour as DEFAULT or any of it's
case-insensitive variants.
__
Amaury Forgeot d'Arc added the comment:
This may be a surprising behaviour, but consistent with Perl and the
pcre library.
Added a sentence in documentation, and specific tests.
Committed as r59896.
--
resolution: - wont fix
status: open - closed
__
Amaury Forgeot d'Arc added the comment:
This batch file is a good idea. I have two remarks:
- it assumes that the python program is spelled python25.
This could be configurable. Something along:
IF %PYTHON%== SET PYTHON=python25
Or is there a better way?
- Also, I suggest to insert a
Alan McIntyre added the comment:
Thanks for the reminder, Eric; I'll include that and post the updated patch.
As a side note, on OS X, running regrtest with -uall or -ulargefile
still skips test_zipfile4 for some reason. I'll have a look at that
before submitting the next version of the patch
Antoine Pitrou added the comment:
This is my attempt at a patch for this. It fixes inspect.getmembers and
inspect.classify_class_attrs to work with Dieter's example. I hope it
doesn't mess anything else.
As for pydoc, things look a bit more complicated... The annoying thing
is that the logic to
Changes by Antoine Pitrou:
--
versions: +Python 2.6 -Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1785
__
___
Python-bugs-list mailing list
Unsubscribe:
Amaury Forgeot d'Arc added the comment:
Isn't it enough to encode the prompt with the console encoding, instead
of letting the default utf-8 conversion? This patch corrects the issue
on Windows:
Index: ../Python/bltinmodule.c
===
New submission from Guido van Rossum:
When you type a command in pdb that happens to print something, the
output goes to sys.stdout, even if self.stdout references another file.
This makes it hard to debug code running inside a web server where
sys.stdout/stdout are connected to a socket (or a
Changes by Guido van Rossum:
--
keywords: +patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1786
__
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
Allowing leading and trailing whitespace causes failures in Cowlishaw's
test suite. I guess Raymond's right: this bug report should be
dismissed. It still bothers me a little that there isn't a strictly
conforming implementation of to-number in decimal,
Guido van Rossum added the comment:
Allowing leading and trailing whitespace causes failures in Cowlishaw's
test suite. I guess Raymond's right: this bug report should be
dismissed. It still bothers me a little that there isn't a strictly
conforming implementation of to-number in decimal,
Mark Dickinson added the comment:
I can certainly fix the Decimal constructor to reject trailing newlines, if
that's what people want, but that doesn't fit with the proposal to accept
and strip leading and trailing whitespace.
The other option that maintains full compliance with the
Guido van Rossum added the comment:
I'd say that accepting a trailing \n is a bug that should be fixed.
I think that ideally we'd be allowed to specify whitespace around the
value. I am always annoyed at programs that require me to type e.g. an
integer and don't let me put spaces before and/or
Guido van Rossum added the comment:
Moreover I think float is right and int is wrong.
Something to fix in 3.0, probably not in 2.6 (don't want to break too
much stuff that worked in 2.5).
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1779
Alexandre Vassalotti added the comment:
Hm. I don't get any warning, related to the overflow issue, neither with
-Wstrict-overflow=3, nor -Wstrict-overflow=5. Are the cPickle warnings
already fixed?
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1621
Ismail Donmez added the comment:
Make sure you use gcc 4.3 trunk and at least -O2 is enabled. I tested
revision 59895 from release25-maint branch.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1621
__
Ismail Donmez added the comment:
FWIW gcc hacker Ian Lance Taylor has a nice article about signed
overflow optimizations in gcc, see http://www.airs.com/blog/archives/120
. Reading that it might be better to use -fno-strict-overflow instead of
-fwrapv.
Regards,
ismail
38 matches
Mail list logo