Martin v. Löwis mar...@v.loewis.de added the comment:
I appreciate your point. But do you know if anyone has it on their
TODO list?
It's on my todo list, but that still might mean I can only get to
it next year.
If not, is there anything I could do about it?
You could invoke the 5-for-one
Mark Dickinson dicki...@gmail.com added the comment:
Did you have a chance to try a debug build of Python and see if the problem
persists there?
I'm failing to reproduce this in OpenSolaris 2009.06, running in Parallels on a
MacBook Pro (non-debug 32-bit build of Python):
Lars Gustäbel l...@gustaebel.de added the comment:
This is a duplicate of issue6054 which has been fixed in Python 2.7 (r74571).
(Hi, Gustavo!)
--
assignee: - lars.gustaebel
nosy: +lars.gustaebel
resolution: - duplicate
status: open - closed
___
Marc-Andre Lemburg m...@egenix.com added the comment:
STINNER Victor wrote:
New submission from STINNER Victor victor.stin...@haypocalc.com:
The following 4 functions are public but not documented and not used in
Python3:
- PyUnicode_AsDecodedObject(), PyUnicode_AsEncodedObject()
-
Changes by Marc-Andre Lemburg m...@egenix.com:
--
assignee: - d...@python
components: +Documentation -Unicode
nosy: +d...@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9076
___
Changes by Marc-Andre Lemburg m...@egenix.com:
--
title: Remove PyUnicode_AsDecodedObject/Unicode and
PyUnicode_AsEncodedObject/Unicode? - Add C-API documentation for
PyUnicode_AsDecodedObject/Unicode and PyUnicode_AsEncodedObject/Unicode
___
Free Ekanayaka f...@64studio.com added the comment:
Thanks for the prompt reply! Cool to know this is already fixed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9071
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed in r82214. Now os.path.normcase() raises a TypeError if the arg is not
str or bytes.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python
Mark Dickinson dicki...@gmail.com added the comment:
So perhaps the cause is simply that copysign isn't being declared for David's
Python builds? If that were the case, I'd expect to see some gcc warnings in
the Python build output, something like:
warning: implicit declaration of
Mark Dickinson dicki...@gmail.com added the comment:
David, my pyconfig.h file contains:
/* Defined on Solaris to see additional function prototypes. */
#define __EXTENSIONS__ 1
Does yours?
--
___
Python tracker rep...@bugs.python.org
New submission from Andy Buckley a...@insectnation.org:
I know that Python lists aren't designed for efficient prepending, but
sometimes when working with small lists it's exactly what needs to be done
(search path lists being a common example). For a programmer aware of the
performance issue
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
Thanks for bringing this up.
I think you have more work to do to successfully make the case that L.insert(0,
x) is difficult enough to merit the addition of a new list method. There are
already at least two in-place
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4198
___
___
Python-bugs-list
Georg Brandl ge...@python.org added the comment:
Looks good to me.
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9078
___
Andy Buckley a...@insectnation.org added the comment:
Maybe I just value method symmetry/equivalence higher than the designers when
it comes to interface expectations. I've seen several I expected there to be a
prepend() method like append() on lists, but there isn't -- what do I do?
emails
Georg Brandl ge...@python.org added the comment:
Not a bug -- you have to tell argparse that you expect a positional argument.
Try without the '--' and an argument that doesn't start with '-', and it will
still give you that error.
--
nosy: +georg.brandl
resolution: - invalid
Ezio Melotti ezio.melo...@gmail.com added the comment:
If we add a .prepend() method, people will see it and start using it. Since now
there's no 'prepend' method people ask why, and the answer they usually get is
because it not a good idea to add elements on lists (but if you really have to
Mark Dickinson dicki...@gmail.com added the comment:
Andy, the bug-tracker isn't really the best place for this sort of discussion;
if you want to take this further I'd suggest mailing the python-ideas mailing
list (bigger audience).
FWIW, the bar for adding new methods to builtins should be
Jean-Paul Calderone exar...@twistedmatrix.com added the comment:
The argument that there are already two ways to do it, so why add a third?,
is not bad, but if applied to appending, it would ban the append() method...
except that it's already there.
Not quite. First let's consider the
Georg Brandl ge...@python.org added the comment:
[insert the usual reference to collections.deque here]
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9080
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Here:
http://docs.python.org/py3k/tutorial/datastructures.html#using-lists-as-queues
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9080
Andy Buckley a...@insectnation.org added the comment:
Still not convinced with the reasoning, I'm afraid, but I certainly agree that
modifications to built-ins are not to be made lightly. Using deques, which are
far less familiar, is not a particularly natural thing to do for a search path,
Domen Kožar ielect...@gmail.com added the comment:
I agree — not the best example, here is a better one explaining what behavior
should not exist:
parser = argparse.ArgumentParser()
parser.add_argument('foobar', action='store')
parser.add_argument('foobar2', nargs='?')
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Mark,
I am reassigning this to you for commit review. I am changing the title to
reflect the visible part of the change. The datetime module gains direct
access to system gettimeofday at the C level while time module
Mark Dickinson dicki...@gmail.com added the comment:
Raymond, do you have any thoughts on this proposal?
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8947
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The timedelta(seconds=0.6112295) example is handled correctly
No, it's not! It's being rounded *up* where it should be
being rounded *down*.
Let me try to reformulate the issue. When use is entering 0.6112295, she
Roland Johnson rolandjohn...@acm.org added the comment:
Does this also relate to 3.1? Tkinter in not installing for that version under
10.6.4
--
nosy: +RolandJ
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9045
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Deprecating the feature for 3.x is certainly an option.
May be a little drastic though.
How drastic would be to stop subclassing datetime from date in 3.2? After all,
we don't subclass float form int.
--
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
See issue9079.
--
dependencies: +Make gettimeofday available in time module
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1578643
Ronald Oussoren ronaldousso...@mac.com added the comment:
AFAIK there is no 64-bit installer for 3.1. There will be one for 3.2.
Sridhar: building using the 10.5 SDK should also work by using
--enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk. I've recently patched
setup.py and distutils
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This proved to require a lot of changes to C implementation because most of
timezone arithmetics is done using integer operations with offset in minutes.
It is easy, however to do this in pure python implementation which
Ezio Melotti ezio.melo...@gmail.com added the comment:
I'm reopening this because now the normcase implementation of posixpath has a
todo that says on Mac OS X, this should really return s.lower(). (see r66743).
There is some discussion about this in #9018.
--
nosy: +ezio.melotti
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
The datetime module provides compact pickled representation for date, datetime,
time and timedelta instances:
type: size
date: 34
datetime: 44
time: 36
timedelta: 37
On the other hand, current pickle size for timezone
New submission from Michael Foord mich...@voidspace.org.uk:
When I do a *full test run* of py3k I get a distutils test failure. It doesn't
happen if I run test_distutils on its own:
bigmac:py3k michael$ ./python.exe -m test.regrtest -j12
== CPython 3.2a0 (py3k:82215, Jun 25 2010, 13:59:00)
Sridhar Ratnakumar sridh...@activestate.com added the comment:
On 2010-06-25, at 8:13 AM, Ronald Oussoren wrote:
Sridhar: building using the 10.5 SDK should also work by using
--enable-universalsdk=/Developer/SDKs/MacOSX10.5.sdk. I've recently patched
setup.py and distutils to honor the
Fred L. Drake, Jr. fdr...@acm.org added the comment:
As part of this, we should ensure references to common timezones, like
UTC, only create references to a single instance rather than filling
memory with multiple instances.
One consequence of this is that shared instances should probably be
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
It would be great if Tim Peters could be consulted about some of these ideas.
He put a great deal of thought into the API, what should be included and what
should be excluded.
--
nosy: +rhettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
-0 I don't think we really need this (we've already got a reasonable
conversion to Fraction).
In general, we should have a aversion to adding any methods to the decimal API
because it is already very fat. Adding more
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I would very much appreciate Tim's input on datetime issues. This particular
issue is fairly minor, but Tim's expertise will be invaluable for anything
timezone related. I do appreciate the incredible amount of
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Raymond,
conversion to Fraction does not really help in my use case of supporting
timedelta * Decimal by duck typing. I can think of many other use cases where
it will be helpful to accept either float or decimal
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Here is a similar issue which may be easier to fix:
def f(a, b=None, *, c=None, d=None):
...pass
f(1,2,3)
Traceback (most recent call last):
File stdin, line 1, in module
TypeError: f() takes at most 4 arguments
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
assignee: belopolsky -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
___
Python-bugs-list
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
___
Python-bugs-list
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
___
Python-bugs-list
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
___
Python-bugs-list
Germán L. Osella Massa gose...@gmail.com added the comment:
Well, using negative indexes for fields can be thought as a new feature with
all the consequences mentioned before BUT negative indexes for accessing
elements from a sequence, IMHO, is something that anyone would expected to
work.
Joseph Turian tur...@gmail.com added the comment:
I just got bit by this bug. This documentation
(http://docs.python.org/library/struct.html) claims that an unsigned long is 4
bytes. On my machine, it's 8.
--
nosy: +Joseph Turian
___
Python tracker
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am attaching a python prototype implementing interned UTC instance pickling.
The patch is against sandbox revision r82218 of datetime.py.
Note that the pickling protocol requires that an instance or factory function
Benjamin Peterson benja...@python.org added the comment:
Fixed in r82220.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
___
Mark Dickinson dicki...@gmail.com added the comment:
This documentation (http://docs.python.org/library/struct.html)
claims that an unsigned long is 4 bytes.
I don't think it does, if you read it closely. Of course, patches to improve
the docs are always welcome. :)
If you're looking at
Mark Dickinson dicki...@gmail.com added the comment:
Here's a proposed doc clarification.
--
keywords: +patch
Added file: http://bugs.python.org/file17770/issue1789_doc.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1789
Giampaolo Rodola' g.rod...@gmail.com added the comment:
Maybe I'm misunderstanding what issue we're talking about here, but wasn't this
supposed to be fixed?
giampa...@ubuntu:~/svn/python-3.2$ python3.2
Python 3.2a0 (py3k:82220M, Jun 25 2010, 21:38:56)
[GCC 4.4.3] on linux2
Type help,
R. David Murray rdmur...@bitdance.com added the comment:
Victor: that was exactly the point of my post that you partially quoted :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7989
___
Joseph Turian tur...@gmail.com added the comment:
That patch gives good clarification.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1789
___
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: gregory.p.smith - mark.dickinson
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1789
___
R. David Murray rdmur...@bitdance.com added the comment:
Still looks like it is working as designed to me. Argpase is *parsing* the
arguments, that's part of the whole point. What you are observing is what I
would expect from a well behaved unix command (*arguments* before the -- are
just
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Hardly a show stopper. It's actually a problem(?) with ntpath.py. It could be
patched but is it worth it, as this would be yet more work for you guys doing
the build/release process? I'd close this on the grounds that it's not worth
New submission from Michael Foord mich...@voidspace.org.uk:
warnings.filterwarnings is mostly a bunch of asserts, so it doesn't work when
Python is run with -O or -OO. This also means that a bunch of tests fail when
run with -O or -OO.
Two options are skip the tests or fix filterwarnings.
Michael Foord mich...@voidspace.org.uk added the comment:
A third (and better) option, but a deeper change, would be to allow the
enabling of asserts on a per-module basis even when Python is run with -O/-OO.
This would be great for testing.
--
___
Mark Dickinson dicki...@gmail.com added the comment:
Now that I've finally managed to get gcc 4.4.4 installed on OpenSolaris...
.. I'm still failing to reproduce this bug. :(
dicki...@eratosthenes:~/release26-maint$ uname -a
SunOS eratosthenes 5.11 snv_134 i86pc i386 i86pc Solaris
Terry J. Reedy tjre...@udel.edu added the comment:
Try making an idle.bat file on your desktop.
--
nosy: +tjreedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9039
___
R. David Murray rdmur...@bitdance.com added the comment:
I presume Benjamin meant he fixed the special case Alexander reported.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2516
___
Changes by Michael Foord mich...@voidspace.org.uk:
--
nosy: +rhettinger
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9082
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
Replacing string indexes with length-1 slices in the 2.x codebase, whether or
not one one is running 2to3, seems to be a 'known' technique for Python3
portability and unicode-bytes inter-operability. (It was discussed this week on
py-dev list
Terry J. Reedy tjre...@udel.edu added the comment:
This appears to be one of at least three duplicate issues: #1528074, #2986, and
#4622. I am closing two, leaving 2986 open, and merging the nearly disjoint
nosy lists. (If no longer interested, you can delete yourself from 2986.)
#1711800
Terry J. Reedy tjre...@udel.edu added the comment:
This appears to be one of at least three duplicate issues: #1528074, #2986, and
#4622. I am closing two, leaving 2986 open, and merging the nearly disjoint
nosy lists. (If no longer interested, you can delete yourself from 2986.)
#1711800
Terry J. Reedy tjre...@udel.edu added the comment:
This appears to be one of at least three duplicate issues: #1528074, #2986, and
#4622. I am closing two, leaving 2986 open, and merging the nearly disjoint
nosy lists. (If no longer interested, you can delete yourself from 2986.)
#1711800
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: - patch review
versions: +Python 3.2 -Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1524639
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - works for me
status: open - pending
versions: -Python 2.4, Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4726
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7673
___
Terry J. Reedy tjre...@udel.edu added the comment:
Victor, I am interpreting your comment as saying that this is not a bug. If I
am wrong, someone can re-open.
In any case, the bug would have to be in 2.6 or more realistically, 2.7, since
2.6.final will be out soon.
--
nosy: +tjreedy
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 2.6, Python 2.7, Python 3.1, Python 3.2 -Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4775
___
Éric Araujo mer...@netwok.org added the comment:
optparse specifically supports only GNU-style two-dashes long argument. Victor
is right, optparse will always understand -thing as -t -h -i -n -g.
--
nosy: +merwok
resolution: works for me - invalid
stage: - committed/rejected
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file8609/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1322
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +merwok
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1322
___
___
Python-bugs-list mailing
Stefan Krah stefan-use...@bytereef.org added the comment:
Mark Dickinson rep...@bugs.python.org wrote:
Now that I've finally managed to get gcc 4.4.4 installed on OpenSolaris...
.. I'm still failing to reproduce this bug. :(
dicki...@eratosthenes:~/release26-maint$ uname -a
SunOS
Terry J. Reedy tjre...@udel.edu added the comment:
The backspace issue seems to have been fixed.
I modified bug.py for 3.1 by removing the coding cookie, changing
unicode(Ïðîáà, KOI8-R) to just Ïðîáà, and fixing print. Running from
IDLE, it ran and displayed a tk window with text entry and
Changes by Terry J. Reedy tjre...@udel.edu:
--
resolution: - invalid
status: open - pending
versions: -Python 2.5, Python 3.0
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4872
___
New submission from Steve Holden st...@holdenweb.com:
C:\Users\sholden\python31\python \python31\Tools\webchecker\wcgui.py
Traceback (most recent call last):
File \python31\Tools\webchecker\wcgui.py, line 63, in module
from Tkinter import *
ImportError: No module named Tkinter
This makes
Terry J. Reedy tjre...@udel.edu added the comment:
Given the patch applied for #4861, I think this should be closed until someone
finds that there is still a bug in a current version of Python and determines
that there is something to be done.
--
nosy: +tjreedy
resolution: - out of
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Adding tim_one to the nosy list.
Tim,
It would be great if you could shed some light on the history behind pure
python implementation. Why was it developed in the first place? What was the
reason not to ship it with
Terry J. Reedy tjre...@udel.edu added the comment:
Improved error messages are feature requests because 1) there is no particular
guarantee in the doc and 2) changes can break existing code, so should only
happen in an new x.y version.
When reporting behavior, it is helpful to give *minimal*
Tim Peters tim.pet...@gmail.com added the comment:
It would be great if you could shed
some light on the history behind pure
python implementation. Why was it
developed in the first place?
It was rapid prototyping - design decisions were changing daily, and it goes a
lot faster to change
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +gpolo
stage: unit test needed - needs patch
type: feature request - behavior
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9083
Changes by Martin v. Löwis mar...@v.loewis.de:
--
resolution: - wont fix
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1565525
___
Changes by Antoine Pitrou pit...@free.fr:
--
assignee: - brett.cannon
nosy: +brett.cannon
priority: normal - high
versions: +Python 2.6, Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9082
Changes by Terry J. Reedy tjre...@udel.edu:
--
keywords: +easy
stage: - patch review
type: - behavior
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.4, Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4943
Antoine Pitrou pit...@free.fr added the comment:
Hurray, I'm not the only one!
--
nosy: +pitrou
resolution: - duplicate
status: open - closed
superseder: - test_distutils failure
___
Python tracker rep...@bugs.python.org
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9038
___
___
Python-bugs-list
Changes by Terry J. Reedy tjre...@udel.edu:
--
versions: +Python 2.7 -Python 2.4, Python 2.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4963
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Tim, thanks for your prompt reply.
What would be your opinion on adding datetime.py to the main python tree today?
There is momentum behind several features to be added to datetime module and
having easily accessible
Antoine Pitrou pit...@free.fr added the comment:
It is hard for me to judge the significance of maintenance burden, but
others reported that having parallel versions of the io module was
helpful. I believe that with proper support in the regression test
suit, it should be quite manageable.
Antoine Pitrou pit...@free.fr added the comment:
Can't reproduce under Mandriva Linux:
import mimetypes
print(mimetypes.guess_extension('image/jpeg'))
.jpe
mimetypes.init()
print(mimetypes.guess_extension('image/jpeg'))
.jpe
The fact that it returns .jpe rather than .jpg, however, could be
Guido van Rossum gu...@python.org added the comment:
Webchecker is so old, it should be deleted.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9083
___
Domen Kožar ielect...@gmail.com added the comment:
Optparse behaved like that, how would one get the same results with argparse?
That is by having variable positional parameters to command. And at the same
time stop at --.
--
___
Python tracker
Greg Hazel gha...@users.sourceforge.net added the comment:
This is still an issue.
The bug I'm reporting had been explained well, I thought, but I'll repeat it in
summary:
There is no way to pass around traceback objects without holding references to
an excessive number of objects.
Traceback
David Kirkby david.kir...@onetel.net added the comment:
Hi,
I had hoped to devote more time to this, but have been able to. I will do at
the weekend.
I would add I was building 64-bit, so adding the compiler flag -m64 on 'hawk'
at least some of the time. Depending on your hardware, assuming
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9040
___
___
Terry J. Reedy tjre...@udel.edu added the comment:
While IMAP is very much a live protocol, I do not know that any of the
currently active core developers know much about it. Imaplib is based on the
obsolete RFC2060 of Dev 1996, superseded by 3501 in March 2003, with 6 later
updates. (I just
1 - 100 of 140 matches
Mail list logo