Martin v. Löwis 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:
Sounds right. Technically, you should be using the stdout encoding, but
I don't think it should ever
Martin v. Löwis 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.
Please be specific. I read it, and I
New submission from Christian Theune:
Python 2.4.4 on Linux crashes with following backtrace. Application is a
Zope server. The other threads seem to be idle at that moment, only the
segfaulting thread gives a reasonable backtrace (see attachment).
--
components: Interpreter Core
files:
Hrvoje Nikšić added the comment:
I agree that a leak would very rarely occur in practice, but since there
is a straightforward fix, why not apply it? If nothing else, the code
in the core should be an example of writing leak-free Python/C code, and
a fix will also prevent others from wasting
Rich added the comment:
I can't get it to do it again. Unless someone else is still
experiencing the problem, perhaps it was fixed (deliberately or
otherwise) by this month's Vista hotfixes that came down automatically
a couple of days ago.
Thanks for your help everyone.
Rich added the comment:
If you are using Vista, then we discovered that there might be a
problem associated with the recent-files.lst file (usually found
in .idle in the C:\Users\Yourname directory). That's all written down
in Issue 1743.
If that doesn't apply to you then if you specify what
Ismail Donmez added the comment:
Ian says -fno-strict-overflow still allows some optimizations, and his
example code shows less assembly is produced with -fno-strict-overflow.
But of course your opinion matters on this one, not mine.
Regards,
ismail
__
Tracker
New submission from Christopher Yeleighton:
The page About Python Tutorial
http://docs.python.org/tut/node20.html incorrectly refers to the
Python Bug Tracker at SourceForge as
http://sourceforge.net/tracker/?group_id=5470atid=105470func=add.
That page says This tracker is CLOSED. Please use
Facundo Batista added the comment:
Already fixed in the trunk and 2.5 maintenance branch.
--
nosy: +facundobatista
resolution: - out of date
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1788
Facundo Batista added the comment:
Mark Dickinson:
The other option that maintains full compliance with the
specification is to do what we like with Decimal.__new__
(e.g. allowing leading and trailing whitespace), but
make sure that there's a fully conforming to-number
elsewhere in the
New submission from Vilya Harvey:
The page at http://docs.python.org/lib/about.html refers people to the
old SourceForge bug tracker, rather than bugs.python.org.
--
messages: 59707
nosy: vilya
severity: normal
status: open
title: The Library Reference still refers to the old bug
New submission from Vilya Harvey:
The page at 'http://docs.python.org/lib/serverproxy-objects.html'
contains the following text which should be removed as it's (a) not
especially relevant; and (b) out of date:
Introspection methods are currently supported by servers written in
PHP, C and
Joseph Armbruster added the comment:
Ah, good to know :-)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1472
__
___
Python-bugs-list mailing list
Unsubscribe:
Christian Heimes added the comment:
I don't mind if you like to pursue the issue. I won't invest any time
into it. But if you can come up with a patch we can surely apply it.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1782
New submission from Thomas Heller:
I'm uploading this patch for discussion, in case someone cares.
This code (for Windows) adds a function ctypes.util.find_msvcrt(). This
function returns the filename of the MSVC runtime library that the
current Python executable uses. If calling functions
Aaron Watters added the comment:
Facundo
1) the +1024 was an accelerator to jump up to over 1k at the first resize.
I think it's a good idea or at least doesn't hurt.
2) Here is an example program:
def test():
from marshal import dumps
from time import time
testString =
Facundo Batista added the comment:
Why not just double the size? The doubling + 1024 address some
specific issue? If so, it should be commented.
Also, do you have an example of a marshal.dumps() that suffers from this
issue?
Thank you!
--
nosy: +facundobatista
New submission from Aaron Watters:
Much to my surprise I found that one of
my applications seemed to be running slow as a result
of marshal.dumps. I think the culprit is the w_more(...)
function, which grows the marshal buffer in 1k units.
This means that a marshal of size 100k will have 100
Joseph Armbruster added the comment:
Is referencing the built python binary in the build tree a good idea?
Just in case they do not have python installed on the system already?
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1472
Antoine Pitrou added the comment:
For the record the same problem also happens with toscawidgets.
from toscawidgets.widgets.forms import validators
help(validators)
Traceback (most recent call last):
File stdin, line 1, in module
File /usr/lib/python2.5/site.py, line 351, in __call__
Georg Brandl added the comment:
Christian Heimes schrieb:
Christian Heimes added the comment:
Joseph Armbruster wrote:
Is referencing the built python binary in the build tree a good idea?
Just in case they do not have python installed on the system already?
The doc builder requires
New submission from Nashev:
In most platform-depended applications hot keys are working by the
specified keys on a keyboard, independent of a current keyboard layout.
Not by the specified char.
Some application menus is displaying keyboard shortcut localized to main
layout for current
Alan McIntyre added the comment:
Currently the extra field data is only parsed when it contains Zip64
extended information. It could probably be broken up into a list of
(id, data) pairs at a minimum for all data types, since the spec says
that's the structure that should be used.
I don't
Facundo Batista added the comment:
Already fixed in trunk and 2.5 branch.
--
nosy: +facundobatista
resolution: - out of date
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1791
__
Guido van Rossum added the comment:
Sorry, there's just no way that this is going to be dealt with on the
Python core tracker. Who says it isn't memory corruption caused by some
Zope extension module...
--
nosy: +gvanrossum
resolution: - rejected
status: open - closed
Guido van Rossum added the comment:
So what's a hot key? Now I'm really confused. I don't recall anything
using scan codes in IDLE, at least not for the memory shortcuts etc.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1794
Christian Heimes added the comment:
On which platforms do hotkeys have that behavior? I've never seen it.
Some computer games define hot keys by scan code rather than by
character. I'm not sure if it's a good idea for IDLE but for games it
often makes sense.
Georg Brandl added the comment:
Christian Heimes schrieb:
Christian Heimes added the comment:
I *think* Nashev is talking about assigning hot keys by scan code rather
than by character code.
E.g. on a German keyboard the 'z' and 'y' are switched and the 'z' key
is left to the 't' key.
Stuart D Gathman added the comment:
Test cases so far:
parseaddr('[EMAIL PROTECTED]')
('', '[EMAIL PROTECTED]')
parseaddr('Full Name [EMAIL PROTECTED]')
('Full Name', '[EMAIL PROTECTED]')
parseaddr('[EMAIL PROTECTED] [EMAIL PROTECTED]')
('[EMAIL PROTECTED]', '[EMAIL PROTECTED]')
Guido van Rossum added the comment:
Not being familiar with localized keyboards, I don't understand your
question. Can you provide some screen dumps of what you see and explain
what you expected to see?
PS. What OS?
--
nosy: +gvanrossum
priority: - low
Changes by A.M. Kuchling:
--
assignee: - akuchling
nosy: +akuchling
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1790
__
___
Python-bugs-list mailing list
Aaron Watters added the comment:
also:
I just modified the code to do iterations using increasingly large data
sizes
and I see the kind of very unpleasant behaviour for the old implementation
(max time varies wildly from min time) that I saw in my more complex
program. The new implementation
New submission from Christian Heimes:
Hello Gregory!
I've implemented some of your ideas of PEP 754 for Python 2.6. I like to
update your PEP. Are you fine with the patch?
--
components: Documentation
files: pep-0754.txt.patch
messages: 59734
nosy: tiran, warnes
priority: normal
Joseph Armbruster added the comment:
Which brings up a question. Would all things in the tree ideally work
with the version that was built from checkout? Just in case something
like this comes up in the future, i'd want to know if it is better to
have it configured as this or to auto-magically
Christian Heimes added the comment:
In general I like the idea. But wouldn't it be better to have a cross
platform function which returns the c runtime library? msvcrt?? on
Windows, libc on Linux and whatever Mac and BSD are using.
--
nosy: +tiran
__
Raymond Hettinger added the comment:
IDLE lets you configure your own mappings without doing any programming.
From the menu, pick Options, Configure Idle and goto the Keys tab.
--
nosy: +rhettinger
__
Tracker [EMAIL PROTECTED]
Jeffrey Yasskin added the comment:
If the consensus is that Decimal should not implement Real, I'll reply
to that thread and withdraw the patch.
Raymond, do you want me to add Decimal.__init__(Rational) in this patch
or another issue/thread?
I don't understand the comment about scaling down
New submission from Thomas Heller:
ctypes NULL function pointers should have a False bool value.
--
assignee: theller
components: Extension Modules
files: ctypes-funcptr.patch
keywords: patch
messages: 59744
nosy: theller
severity: normal
status: open
title: ctypes NULL function
New submission from Thomas Heller:
Another ctypes patch for discussion, if someone cares.
This patch allows to pass a tuple of the correct size, a ctypes pointer
to the correct itemtype, or None to foreign functions that expect ctypes
array instances. 'None' is passed as a NULL pointer.
Christian Heimes added the comment:
An example from #1221:
email.Utils.parseaddr(a(WRONG)@b)
('WRONG WRONG', '[EMAIL PROTECTED]')
--
nosy: +tiran
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1025395
_
New submission from Christian Heimes:
The patch adds a per user site-packages directory and a --user option
for distutils' setup.py install. It also cleans up site.py a bit and
makes addsitepackages() extensible.
I'm going to write a mini PEP soonish.
--
components: Distutils, Library
Raymond Hettinger added the comment:
If the consensus is that Decimal should not implement Real,
I'll reply to that thread and withdraw the patch.
Thanks. That would be nice.
Raymond, do you want me to add Decimal.__init__(Rational)
in this patch
How about focusing on the rational module
Amaury Forgeot d'Arc added the comment:
I like this way to tell that a function modifies errno or GetLastError.
But this thread-local attribute on the function seems bizarre to me.
I would prefer another way to get the errno. I can see two alternatives:
- the function returns a tuple
Christian Heimes added the comment:
Duplicated
--
nosy: +tiran
priority: - normal
resolution: - duplicate
status: open - closed
superseder: - email.Utils.parseaddr fails to parse valid addresses
__
Tracker [EMAIL PROTECTED]
A.M. Kuchling added the comment:
Is this change still useful for 2.6?
--
nosy: +akuchling
versions: +Python 2.6 -Python 2.4
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1098749
_
Nashev added the comment:
Guido, I think now it is must be suggestion to TK team, in they's issue
tracker...
Raymond, I know I can make try localized hot key mapping for my keyboard
layout for my self, but i think the best way is - help to make our
public libraries better for all. But any way,
Guido van Rossum added the comment:
Do you want to be able to do Decimal(3 ) but not Decimal(3\n)?
I want either both or none, with a slight preference for both but only
if it can be done without breaking the spec.
The status quo is that 3 is refused but 3\n is accepted; that seems
wrong.
Thomas Heller added the comment:
The cross-platform function is ctypes.util.find_library, which is
currently not very useful on Windows.
This patch changes it so that, on Windows, find_library(c) or
find_library(m) finds the MS C runtime lib which exposes functions the
are typically in libc and
Christian Heimes added the comment:
It looks like a reasonable and good patch. Aaron's tests clearly show
the speed up. However the maximum resize should be limited to a value
around 256 to 1024k:
size = min(2*size + 1024, 512*1024);
--
keywords: +patch
nosy: +tiran
priority: -
Stuart D Gathman added the comment:
See Issue1025395
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1221
__
___
Python-bugs-list mailing list
Unsubscribe:
Stuart D Gathman added the comment:
Same or related issues: Issue1221, Issue1409460
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1025395
_
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
Here is a (hopefully complete) patch against both pydoc and inspect. It
fixes one more bug compared to the previous one (descriptors can also
have a special __getattr__ in addition to __get__, which gave problems
when trying to access __classobj__).
Added file:
A.M. Kuchling added the comment:
Text removed, and the link updated in rev. 59924. Thanks for reporting
this!
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1790
__
A.M. Kuchling added the comment:
The Infogami FAQ is no longer available from python.org, so I'll just
close this item.
--
resolution: - wont fix
status: open - closed
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1560327
Christian Heimes added the comment:
I *think* Nashev is talking about assigning hot keys by scan code rather
than by character code.
E.g. on a German keyboard the 'z' and 'y' are switched and the 'z' key
is left to the 't' key. If a program assigns a hot key to 'z' by
character code than the
Nashev added the comment:
WOW, so active discussion!
OS - Windows Mac OS X, both
Programs - most system and many others.
Keyboard layouts - I mean mostly non latin (see
http://en.wikipedia.org/wiki/Keyboard_layout#Keyboard_layouts_for_non-Roman_alphabetic_scripts)
In case of russian
Thomas Heller added the comment:
The patch will be extended ASAP so that 'None' is accepted by foreign
functions where a function pointer (callback function) is expected.
For consistency it should be possible to call the ctypes function
prototype with None to create a NULL callback function
New submission from Thomas Heller:
This patch adds new calling conventions to ctypes foreign functions by
passing 'errno=True' or 'GetLastError=True' to the CDLL or WinDLL
constructor.
If CDLL(..., errno=True) or WinDLL(..., errno=True) is used, the
function objects available in the CDLL or
Stuart D Gathman added the comment:
tiran: yes, but that is the wrong answer, and that example is already in
the testcase list (with what I believe is the right answer).
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1025395
Nashev added the comment:
There are command in menu is called Revert.
P.S.: for knowing that file changed, programs in windows can register OS
callback for this event and just react on it. In Mac i think too, but i
don't know how with it on unix and python.
Nashev added the comment:
It is very nice feature, that exists in many advanced and professional
GUI-based editors on the Windows and Mac. For example, i can fast name
TextWrangler, HomeSite, Flash, PhotoShop and it is only first names in
mind. It feature for simplify tool's usage, it is improve
New submission from Lenard Lindstrom:
When a callback is created with an array argument and then is called
from Python the callback function receives an array full of garbage.
Here is an example:
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
(Intel)] on
win32
Type help,
Ralf Schmitt added the comment:
The return value should be -1 in case of errors. There's also a second
code path swallowing all errors.
I've converted brian's test.py to a unit test testing both code paths
and added an updated patch for this one.
This patch is against trunk.
All tests in
Matthias Kievernagel added the comment:
Retested revision 59927 from the trunk.
Error is still there, is demonstrated
by attached editModified.py (click 'modified?')
and patch is still applicable and corrects
the problem.
Regards,
Matthias Kievernagel
--
versions: +Python 2.6
David Gardner added the comment:
the output of symtest.py looks like:
type 'instance'
(13, 'Permission denied')
[Errno 13] Permission denied
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1809
__
New submission from Thomas Lee:
This patch against HEAD provides the inverse operations to all the
ast2obj_* functions in Python/Python-ast.c: effectively, this allows
conversion to from a PyObject representation of a Python AST.
Additionally, it updates the compile() builtin to allow it to
Thomas Lee added the comment:
Attaching a sample program to demonstrate the crash.
Added file: http://bugs.python.org/file9135/ast.py
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1810
__
Christian Heimes added the comment:
Georg is working on the AST front.
--
assignee: - georg.brandl
keywords: +patch
nosy: +georg.brandl, tiran
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1810
Changes by Christian Heimes:
--
assignee: - theller
nosy: +theller
priority: - normal
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1800
__
___
Python-bugs-list
New submission from David Gardner:
the docs for os.symlink at: http://docs.python.org/lib/os-file-dir.html
don't mention if the function raises an exception if there was a file
permission failure.
--
components: Documentation
files: symtest.py
messages: 59762
nosy: dgardner
severity:
Changes by A.M. Kuchling:
--
keywords: +easy
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1675533
_
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1433694
_
___
Python-bugs-list mailing list
Unsubscribe:
A.M. Kuchling added the comment:
Is this module still of interest? Given that PyXML is no longer being
developed or released, the module would need to either go straight into
the stdlib, or be released separately.
--
nosy: +akuchling
type: - rfe
_
Changes by A.M. Kuchling:
--
keywords: +easy
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1411695
_
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue976880
___
Python-bugs-list mailing list
Unsubscribe:
A.M. Kuchling added the comment:
This seems to be an XML issue, not actually a build-related one.
--
components: +XML -Build
nosy: +akuchling
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1463043
_
Changes by A.M. Kuchling:
--
keywords: +easy
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue687648
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1550
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1741
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1509
__
___
Python-bugs-list mailing list
Unsubscribe:
Raymond Hettinger added the comment:
Please apply the patch and close the bug.
Thx
--
resolution: - accepted
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1780
__
Mark Dickinson added the comment:
Here's a patch that alters the Decimal constructor to allow leading and
trailing whitespace.
The Context.create_decimal method should now be a fully conforming
implementation of to-number: it doesn't accept any leading or trailing
whitespace.
--
Changes by A.M. Kuchling:
--
assignee: - akuchling
nosy: +akuchling
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1751519
_
___
Python-bugs-list mailing list
Changes by A.M. Kuchling:
--
assignee: - akuchling
nosy: +akuchling
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1019
__
___
Python-bugs-list mailing list
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1679
__
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
More comments, questions, and suggestions on the latest patch:
1. In _binary_float_to_ratio, the indentation needs adjusting. Also 'top = 0L'
could be replaced with 'top =
0', unless you need this code to work with Python 2.3 and earlier, in which
case top
Changes by A.M. Kuchling:
--
type: - security
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1298813
_
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1269
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1274
__
___
Python-bugs-list mailing list
Unsubscribe:
A.M. Kuchling added the comment:
Trying effbot's suggested experiment is easy, at least, and would
provide useful info. If it fails, then fixing this bug might be difficult.
--
keywords: +easy
nosy: +akuchling
__
Tracker [EMAIL PROTECTED]
Mark Dickinson added the comment:
Committed, revision 59929.
--
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1780
__
___
Python-bugs-list
Changes by Christian Heimes:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1180
__
___
Python-bugs-list mailing list
Unsubscribe:
A.M. Kuchling added the comment:
The patch would need to be checked against Jython's last release and/or
the current trunk.
--
keywords: +easy
nosy: +akuchling
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1704474
Changes by A.M. Kuchling:
--
keywords: +easy
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1598083
_
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1286
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by A.M. Kuchling:
--
keywords: +easy
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1339
__
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson added the comment:
About .trim and .approximate:
it sounds like these are different, but quite closely related, methods: one
takes a positive
integer and returns the best approximation with denominator bounded by that
integer; the other
returns the 'smallest' rational in
Christian Heimes added the comment:
Please provide a patch against 2.6 with an unit test and documentation
updates.
--
keywords: +easy
nosy: +tiran
priority: - low
versions: +Python 2.6 -Python 2.4
__
Tracker [EMAIL PROTECTED]
Changes by Christian Heimes:
--
components: +Library (Lib) -Extension Modules
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1714
__
___
Python-bugs-list mailing list
Changes by Christian Heimes:
--
keywords: +easy
priority: - low
versions: +Python 2.6 -Python 2.5
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1627
__
___
1 - 100 of 139 matches
Mail list logo