New submission from marcus harris harrismh...@charter.net:
Under some circumstances, which I will detail later down the note, if I click
File -- Close without explicitly saving, and without running the module with
Run -- Run Module , then the last changes I made to the file do not get saved.
marcus harris harrismh...@charter.net added the comment:
Terry Reedy was not able to reproduce this snag on an XP system; however,
suggested there might be a real save on close error on the linux side... also
requested to be place on the nosy list...
--
Ned Deily n...@acm.org added the comment:
Thanks for the precise test case. I am able to reproduce the failure on OS X
using the MacPorts X11-Tk Tkinter but not with the standard OS X AquaTk Tkinter.
--
assignee: - ned.deily
nosy: +ned.deily
stage: - needs patch
Mark Dickinson dicki...@gmail.com added the comment:
See also issue 3724.
I'm -0 on this: between log(x, 2) and int.bit_length, there's not much need
for log2. log(x, 2) should be plenty accurate enough for most numerical needs;
the exception is when you're taking log base 2 of an integer
STINNER Victor victor.stin...@haypocalc.com added the comment:
The main issue is that we'd have to provide (and maintain) our own
implementation of log2 for Windows (and other OSs that don't have all
the C99 support. Solaris?)
No, we don't have to. Python has already a lot of optional
Mark Dickinson dicki...@gmail.com added the comment:
Raymond: just curious---why do you ask? Did this fix break something?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10596
___
Mark Dickinson dicki...@gmail.com added the comment:
We can provide log2() only if the C library has this function.
Big -1 from me: I'd hate to see working Python scripts written on Unix fail on
Windows because of a missing log2.
--
___
Python
Mark Dickinson dicki...@gmail.com added the comment:
Rather than reinventing the wheel, it may be worth looking at what numpy does
here.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11888
Mark Dickinson dicki...@gmail.com added the comment:
it may be worth looking at what numpy does here.
... or it may not. NumPy just uses (approximation to 1/log(2)) * log(x) when
log2 doesn't already exist. And indeed, on Windows:
Python 2.7.1 |EPD 7.0-2 (64-bit)| (r271:86832, Dec 2 2010,
Marc-Andre Lemburg m...@egenix.com added the comment:
Mikhail Terekhov wrote:
New submission from Mikhail Terekhov ter...@gmail.com:
For some time now my builds of python 3.2 on x86_64 platform in SuSE OBS are
failing depending on the phase of the moon. The spec file for the
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11892
___
___
Francesco Ricciardi francescor2...@yahoo.it added the comment:
On the one hand, it's not just a matter of total_ordering and rich comparison
operators, because all user defined operators may return NotImplemented when
they get types that they don't know how to handle.
On the other hand, if
New submission from intgr ma...@juffo.org:
The Porting Python 2 Code to Python 3 guide currently says:
from __future__ import absolute_imports
However it should be singular:
from __future__ import absolute_import
--
assignee: docs@python
components: Documentation
files:
Roundup Robot devnull@devnull added the comment:
New changeset 05a7d3048c49 by Ezio Melotti in branch '3.2':
#11897: Fix typo in porting howto. Patch by Marti Raudsepp.
http://hg.python.org/cpython/rev/05a7d3048c49
New changeset 968fba3f34b3 by Ezio Melotti in branch 'default':
#11897: Merge
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the patch!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
Roundup Robot devnull@devnull added the comment:
New changeset 0f084f150198 by Ezio Melotti in branch '2.7':
#11885: capitalize Python.
http://hg.python.org/cpython/rev/0f084f150198
New changeset fb6affc7b973 by Ezio Melotti in branch '3.2':
#11885: capitalize Python.
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11885
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
assignee: docs@python - ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11885
___
New submission from Bernhard Rosenkraenzer b...@arklinux.org:
Sending e.g. a JPEG file with a httplib POST request (e.g. through mechanize)
can result in an error like this:
File /usr/lib64/python2.7/httplib.py, line 947, in request
self._send_request(method, url, body, headers)
File
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti, orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11898
___
___
Nick Coghlan ncogh...@gmail.com added the comment:
I think PEP 3115 is OK - the error about all metaclasses inheriting from type
was a mistake on my part (I thought the ability to create non-type metaclasses
went away along with old-style classes, but I was simply wrong on that point).
That
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
I'm convinced. And i've rewritten the patch.
Now fsync(2) is always called first *regardless* of the new
optional argument. The documentation is (a little bit) better
now. And i've added support for NetBSD, AIX and Linux;
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
P.S.: dito Linux and NetBSD. I've reused preprocessor tests
we've discovered internally over the past years, but
i cannot test this here.
I could test Linux next Tuesday, though.
--
STINNER Victor victor.stin...@haypocalc.com added the comment:
11877.2.diff: On Mac OS X, fsync(fd, full_sync=True); fsync(fd) do a full sync
twice. You should restore the old file flags at fsync() exit. Or this
surprising behaviour should be documented.
--
Éric Araujo mer...@netwok.org added the comment:
most of optparse*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11885
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
My fix (and the tests) for this are wrong. decode_header returns (binary,
charset) pairs, but the chunks list is (string, charset) pairs.
--
stage: committed/rejected - needs patch
status: closed - open
Éric Araujo mer...@netwok.org added the comment:
[Zooko]
I just read back through this ticket, but I didn't understand exactly
what MAL wanted to have different from what this Python function
currently does:
It may be this:
It's better to follow the approach taken by lsb_release and then
New submission from Michael Gold mg...@qnx.com:
When I call tar.gettarinfo (where tar is a TarFile instance), the inode
information is inserted into tar.inodes. If I later call tar.gettarinfo on a
linked file, the returned TarInfo will have type LNKTYPE.
I think it's incorrect to store this
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Ok, 11877.3.diff uses either-or.
--
Added file: http://bugs.python.org/file21749/11877.3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11877
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file21742/11877.optarg-1.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11877
___
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com:
Removed file: http://bugs.python.org/file21748/11877.2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11877
___
David Schnur david.sch...@dartware.com added the comment:
I encountered this problem when updating from 2.6.4 to 2.7.1 on Solaris 8,
which also doesn't have 'round'. I tried srmadsen's --whole-archive option,
but it wasn't recognized by the (somewhat ancient) tools on that machine.
I solved
Éric Araujo mer...@netwok.org added the comment:
Just a bystander remark: when you use present in the commit message and
Misc/NEWS entry (like in “Executor.map does not submit futures until
iter.next() is called”), I don’t know whether it is the behavior being fixed
(“X used to do Y”) or the
Michael Gold mg...@qnx.com added the comment:
Actually, TarFile should also have a separate method to take a TarInfo instance
and modify its type to LNKTYPE if applicable. gettarinfo can call that.
This way the user can use a TarInfo object created before any files are added,
and can easily
Guido van Rossum gu...@python.org added the comment:
Thanks for diving deep! How much of this can we claim as a bug and how much as
a feature?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
Éric Araujo mer...@netwok.org added the comment:
Patch looks good. Detail: I’d find a call to basename more readable than
i.split('/')[-1:][0].
Does this need a test in test_manifest too? A doc update?
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan ncogh...@gmail.com added the comment:
As near as I can tell, the only visible behavioural change with Daniel's patch
(updated as per my last comment) will be that the two error cases noted above
(i.e. when an explicit metaclass or the first parent type's metaclass is not
the most
Nick Coghlan ncogh...@gmail.com added the comment:
Commenting on the latest patch here, since the Rietveld integration isn't
coping with the hg extdiff output (I would guess that the revision numbers in
the pathnames are confusing the script that attempts to determine the base
revision).
Paweł Widera mo...@man.poznan.pl added the comment:
No. As the value of the href attribute is not suppose to contain spaces, I'd
rather expect the parser to assume that there is an ending missing before the
space.
--
___
Python tracker
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11877
___
___
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11898
___
___
Charles-Francois Natali neolo...@free.fr added the comment:
Is there anything I can do to help this move forward ?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11382
___
New submission from Dave Opstad dave.ops...@monotypeimaging.com:
Python 2.7.1 doesn't appear to do the usual implicit call to str() for
subclasses of unicode. In the following snippet, I would have expected print
myTest and print str(myTest) to behave the same:
class Test(unicode):
... def
New submission from R. David Murray rdmur...@bitdance.com:
I went to write a test that would trigger something if it was run on 3.3.0, and
had to look in the source code to figure out what the hexversion for that would
be. I think the hexversion algorithm should be documented in its sys
R. David Murray rdmur...@bitdance.com added the comment:
You subclassed unicode. So print printed the value of your unicode object,
which didn't need coercion.
--
nosy: +r.david.murray
resolution: - invalid
stage: - committed/rejected
status: open - closed
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Eric, you are great! Thanks for fixing the docs. ;)
--
Added file: http://bugs.python.org/file21750/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11885
R. David Murray rdmur...@bitdance.com added the comment:
For the record, this isn't as simple as I made it sound. See, for example,
issue 9196.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11900
Charles-Francois Natali neolo...@free.fr added the comment:
I'm -10 on sync_file_range on Linux:
- it doesn't update the file metadata, so there's a high chance of corruption
after a crash
- last time I checked, it didn't flush the disk cache (well, it probably does
if barriers are enabled,
New submission from Vladimir Rutsky altsy...@gmail.com:
There is a typo in argparse module documentation:
The ``nargs`` keyword argument associates a different number of command-line
arguments with a single action.. (two dots at end).
Patch based on official
Dave Opstad dave.ops...@monotypeimaging.com added the comment:
I guess I was confused by the inconsistency with Python 3, which *does* call
the __str__ method, even though, again, no coercion is needed:
Python 3.2 (r32:88452, Feb 20 2011, 10:19:59)
[GCC 4.0.1 (Apple Inc. build 5493)] on
New submission from Stefan Behnel sco...@users.sourceforge.net:
In test file test_logging.py, around line 2359, list.append() is called with
two arguments instead of one. I suppose it is meant to be called with a tuple.
class ModuleLevelMiscTest(BaseTest):
[...]
def _test_log(self,
New submission from Vladimir Rutsky altsy...@gmail.com:
In Python 2.7 and 3 branch at
http://svn.python.org/projects/python/branches/py3k/ file
Doc/library/argparse.rst has incorrectly formatted list at line 648:
* ``'store'`` - This just stores the argument's value. This is the default
New submission from Vladimir Rutsky altsy...@gmail.com:
There is missed dot at end of sentence in argparse module documentation. Please
see attached patch for details.
Patch based on official http://svn.python.org/projects/python/branches/py3k/
repository, but typo is also noted in Python 2.7
Roundup Robot devnull@devnull added the comment:
New changeset e8464256b4d7 by Ezio Melotti in branch '2.7':
#11902: Fix typo in argparse doc. Noticed by Vladimir Rutsky.
http://hg.python.org/cpython/rev/e8464256b4d7
New changeset 88df1ef4eec8 by Ezio Melotti in branch '3.2':
#11902: Fix typo
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Introduced in changeset c7f7672b70a9.
--
nosy: +santa4nt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11903
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report.
BTW we are using HG now (http://hg.python.org/cpython) and patches should be
submitted against the oldest applicable branch (either 2.7 or 3.2 is fine in
this case).
More info at
R. David Murray rdmur...@bitdance.com added the comment:
Note that when this is fixed, make_header on the return value from
decode_header will fail because it doesn't know now to handle unknown-8bit.
--
___
Python tracker rep...@bugs.python.org
Santoso Wijaya santoso.wij...@gmail.com added the comment:
Simple fix.
--
keywords: +patch
Added file: http://bugs.python.org/file21753/issue11903_py33.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11903
Roundup Robot devnull@devnull added the comment:
New changeset 79f3ae389dae by Ezio Melotti in branch '2.7':
#11904: fix indentation in argparse doc. Noticed by Vladimir Rutsky.
http://hg.python.org/cpython/rev/79f3ae389dae
New changeset 473fada5f1b7 by Ezio Melotti in branch '3.2':
#11904: fix
Roundup Robot devnull@devnull added the comment:
New changeset f6ea7abc4eb2 by Ezio Melotti in branch '2.7':
#11905: fix missing full stop in argparse doc. Noticed by Vladimir Rutsky.
http://hg.python.org/cpython/rev/f6ea7abc4eb2
New changeset 15f482996880 by Ezio Melotti in branch '3.2':
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.2, Python 3.3 -Python 3.4
Ezio Melotti ezio.melo...@gmail.com added the comment:
Fixed, thanks for the report!
--
assignee: docs@python - ezio.melotti
nosy: +ezio.melotti
resolution: - fixed
stage: - committed/rejected
status: open - closed
versions: +Python 3.2, Python 3.3 -Python 3.4
R. David Murray rdmur...@bitdance.com added the comment:
Well, it's possible I'm wrong and you've found a bug. There are numerous
differences between 2 and 3 in both string handling and special method
handling, though, so it may be hard to pin down. If you poke around a bit more
and still
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
Charles-Francois Natali wrote:
I'm -10 on sync_file_range on Linux:
[...] last time I checked [...]
I just looked at
Charles-Francois Natali neolo...@free.fr added the comment:
and it seems - as far as i understand what i read - that you're
still right; and, furthermore, that fsync() does everything
anyway. (But here an idiot is talking about *very* complicated
stuff.)
I just double-checked, and indeed,
Daniel Urban urban.dani...@gmail.com added the comment:
I'm attaching the updated patch. Changes:
- Special casing objects we can't do the metaclass computation for.
- Tests for these.
- Adding tests for the order of __new__ calls.
The special case isn't just checking if the object is a class,
Marc-Andre Lemburg m...@egenix.com added the comment:
Éric Araujo wrote:
Éric Araujo mer...@netwok.org added the comment:
[Zooko]
I just read back through this ticket, but I didn't understand exactly
what MAL wanted to have different from what this Python function
currently does:
It
Daniel Urban urban.dani...@gmail.com added the comment:
I've just realized, that my patch still breaks a case, that previously worked:
when the bases are not classes.
This works in 3.2, but not with my patch:
class Foo: # not a subclass of type!
... def __new__(mcls, name='foo',
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Checked in, see changeset fecf9e6d7630 - thanks.
--
assignee: - vinay.sajip
nosy: +vinay.sajip
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9196
___
Anthony Long antl...@gmail.com added the comment:
I'll have a doc patch shortly.
Also, I am working on defining a solid range. Memory is not an issue like it
was back in 1991 when this range was originally implemented, so we can go
higher and get a bigger performance boost. This will be very
New submission from Terry J. Reedy tjre...@udel.edu:
(3.1 not checked because it seems not to have test_argparse)
Python 2.7 or 3.2, WinXP these pass:
C:\Programs\Python27python -m test.regrtest test_argparse
C:\Programs\Python32python -m test test_argparse
[1/1] test_argparse
1 test OK.
Nick Coghlan ncogh...@gmail.com added the comment:
That's not correct - we've merely pointed out that it isn't as easy as most
people seem to think.
For the POSIX world, there is a version management scheme based on symlinks in
/usr/bin (or /usr/local/bin) and it is easy to add and remove
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Memory is not an issue like it was back in 1991 when
this range was originally implemented, so we can go
higher and get a bigger performance boost.
Please don't do this. Memory is still important to a lot of people. Also,
Anthony Long antl...@gmail.com added the comment:
My plan is to document it, as it exists, in the current implementation. That's
a start atleast, and will provide an entry point for further documentation in
the future should it be changed again.
--
Daniel Urban urban.dani...@gmail.com added the comment:
Okay, probably the check in my previous patch was too strict (sorry for the
noise). I'm attaching an updated patch again. Now the algorithm in
__build_class__ is this:
1. If an object is explicitly given with the metaclass keyword,
Changes by Daniel Urban urban.dani...@gmail.com:
Removed file: http://bugs.python.org/file21755/issue11256_4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
Changes by Daniel Urban urban.dani...@gmail.com:
Added file: http://bugs.python.org/file21756/issue_1294232_4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1294232
___
78 matches
Mail list logo