Mark Dickinson dicki...@gmail.com added the comment:
/ 2 is an integer division, so it should be // 3 in Python 3.
No, I don't think that's right: 2to3 has no way of knowing that the programmer
intended an integer division here (self.maxstars could be a float).
Instead, you should always use
Changes by Mark Dickinson dicki...@gmail.com:
--
nosy: +benjamin.peterson
resolution: - invalid
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12831
___
Martin v. Löwis mar...@v.loewis.de added the comment:
The approach looks fine to me. Would you like to work on a patch?
--
nosy: +loewis
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12844
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment:
Here is a stab at updated documentation. I would suggest that if further
changes are recommended to the documentation, that a core committer go ahead
and make them. I'm absolutely more than happy to keep taking stabs at it, but
Alexander Rødseth rods...@gmail.com added the comment:
Even though it's hard to cover every case, it should be possible in quite a few
cases:
self.maxstars = 4
half = self.maxstars / 2
--
___
Python tracker rep...@bugs.python.org
New submission from Stefan Krah stefan-use...@bytereef.org:
Numpy and PyBuffer_IsContiguous() have different ideas of
C-contiguity if there is a zero in strides (this is allowed,
I asked Pauli Virtanen).
from numpy import *
nd = ndarray(shape=[10], strides=[0])
nd.flags
C_CONTIGUOUS :
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
Running python with the -3 command line option will warn about Python 3.x
incompatibilities that 2to3 cannot trivially fix.
--
nosy: +rhettinger
___
Python tracker
John Chandler therealmetal...@gmail.com added the comment:
Cool, thanks for the feedback! :-)
I'll make the appropriate changes to the tests and add some coverage for
defproperty as soon as I can.
John
--
___
Python tracker rep...@bugs.python.org
New submission from Cem YILDIZ c...@fizy.com:
unicodedata.normalize cannot convert turkish letter ı into i:
import unicodedata
s = uüfürükçü ağaç ve ıslıkçı çeşme
print(shoehorn_unicode_into_ascii(s))
print unicodedata.normalize('NFKD', s).encode('ascii','ignore')
ufurukcu agac ve slkc cesme
Changes by Cem YILDIZ c...@fizy.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12846
___
___
Python-bugs-list mailing
Cem YILDIZ c...@fizy.com added the comment:
unicodedata.normalize cannot convert turkish letter ı into i:
import unicodedata
s = uüfürükçü ağaç ve ıslıkçı çeşme
print unicodedata.normalize('NFKD', s).encode('ascii','ignore')
ufurukcu agac ve slkc cesme
but the result should be
ufurukcu
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 96f0ccb9716d by Éric Araujo in branch '3.2':
Fix type information in distutils API reference (#9302).
http://hg.python.org/cpython/rev/96f0ccb9716d
New changeset a410b857efe3 by Éric Araujo in branch 'default':
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 78b26e7720c0 by Éric Araujo in branch '2.7':
Fix type information in distutils API reference (#9302).
http://hg.python.org/cpython/rev/78b26e7720c0
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 8ad1670c0f1f by Éric Araujo in branch '2.7':
Try to fix test_distutils on Windows (#12678)
http://hg.python.org/cpython/rev/8ad1670c0f1f
--
___
Python tracker
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 40f7a6e71930 by Éric Araujo in branch '3.2':
Remove outdated pointer to optparse (fixes #11360).
http://hg.python.org/cpython/rev/40f7a6e71930
--
nosy: +python-dev
___
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset 6d3c645fa52f by Éric Araujo in branch '2.7':
Remove outdated pointer to optparse (fixes #11360).
http://hg.python.org/cpython/rev/6d3c645fa52f
--
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Maybe you need to call sys.stdin.flush() before raw_input?
In any way, 2.6 is in security mode, so we need to reproduce this with current
versions: 2.7, 3.2 or 3.3.
--
components: +IO, Interpreter Core -Library (Lib)
nosy: +eric.araujo,
Changes by Éric Araujo mer...@netwok.org:
--
keywords: +needs review
stage: - patch review
versions: -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12842
___
Éric Araujo mer...@netwok.org added the comment:
Improved and committed, thanks again!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9302
Éric Araujo mer...@netwok.org added the comment:
I can reproduce in 3.3 (the file has been moved to Tools/demo/redemo.py). The
Tk application does not crash but there is a traceback. Would you like to work
on a patch? If so, there are good guidelines in the devguide.
--
keywords:
Éric Araujo mer...@netwok.org added the comment:
Steven: What do you think?
GraylinKim: You can open a feature request for message preview on the
metatracker (see “Report Tracker Problem” in the sidebar).
--
nosy: +bethard, eric.araujo
type: - feature request
versions: +Python 3.3
Éric Araujo mer...@netwok.org added the comment:
I have made a review on Rietveld.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12768
___
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12195
___
___
Python-bugs-list
Ezio Melotti ezio.melo...@gmail.com added the comment:
Can you provide some example?
The page you linked says It should be used exclusively for internal processing
and never for external data exchange., so I'm not sure why these APIs would
want to use it.
--
nosy: +ezio.melotti
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
some simple examples showing the syntax would go a long way.
Sorry, there as just too many ways to go and we are intentionally not stating
which way is preferred. I've seen many variants a:[Integral] for a list of
integers,
Eli Bendersky eli...@gmail.com added the comment:
Éric, yeah I received an email. Hopefully Graeme did too.
It's a shame a new review isn't notified in the tracker instead.
--
___
Python tracker rep...@bugs.python.org
Antoine Pitrou pit...@free.fr added the comment:
Brian, Tim, I'd feel more comfortable if any of you confirmed this isn't a
stupid proposal on my part :)
--
components: +Interpreter Core
stage: needs patch - patch review
___
Python tracker
Brian Curtin br...@python.org added the comment:
I could see how they'd use EINVAL, but to me ENOTDIR makes more sense here.
However, I'm not sure if anyone is depending on this (or what they could depend
on it for).
--
___
Python tracker
Idan Kamara idank...@gmail.com added the comment:
Reproduced on 2.7.
(flushing stdin/out doesn't help)
--
versions: +Python 2.7
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12833
___
Antoine Pitrou pit...@free.fr added the comment:
I could see how they'd use EINVAL, but to me ENOTDIR makes more sense
here. However, I'm not sure if anyone is depending on this (or what
they could depend on it for).
Right now I'm not sure, but if PEP 3151 is accepted it will make much
more
Brian Curtin br...@python.org added the comment:
With that PEP likely to be accepted, I say go ahead with the change for that
benefit.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12802
Tim Golden m...@timgolden.me.uk added the comment:
Obviously someone's code would break if it were relying on the Unix
errno only in a Windows-only situation to determine the situation of
opening a directory which isn't one. But that combination of events
doesn't seem terribly likely.
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Note that this file is not written by hand. It's generated by PC/generrmap.c,
which uses the _dosmaperr() function provided by the msvcrt.
If we want to modify it, this should be clearly marked somewhere.
--
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
If you have a copy of Visual Studio, you can see the code of _dosmaperr() in
VC/crt/src/dosmap.c.
Otherwise the Google query inurl:dosmap.c returns some online copies of this
file.
--
___
Roger Serwy roger.se...@gmail.com added the comment:
Attached is an extension which provides tabbed windows for IDLE. It supports
drag-and-drop reordering and separate windows.
The implementation relies on monkey-patching a few subroutines and duck-typing
for the toplevel window. The
resc thomat...@gmail.com added the comment:
Just wanted to note that this confuses other people too...
http://stackoverflow.com/questions/4384796/readme-extension-for-python-projects
Is this something that could be changed in 'distribute'?
--
nosy: +Thomas.Smith
Guido van Rossum gu...@python.org added the comment:
Wow. A very educational discussion. We will be referencing this issue for
many years to come.
As long as the buck stops with me, I feel strongly that *today* changing
indexing from O(1) to O(log N) is a bad idea, partly for technical
Guido van Rossum gu...@python.org added the comment:
This bug could do with a little less attitude. That said, I think it is a bug
and should be fixed, at the very least for Python 3.3. As always, it is a
matter of much debate to what extent bugs can be fixed in previous Python
versions
Guido van Rossum gu...@python.org added the comment:
Sounds like a fair feature request for Python 3.3, as long as the intention is
that users must import some module from the standard library and use functions
defined in that module. The operations and methods defined for str instances
Guido van Rossum gu...@python.org added the comment:
I presume this applies to builtin str methods like .lower(), right? I think it
is a good thing to do for Python 3.3.
We'd need to define what should happen in edge cases, e.g. when (against all
odds) a string happens to contain a lone
Guido van Rossum gu...@python.org added the comment:
We should at least get this fixed in 3.3. Then we can discuss the benefits of
backporting the fixes to 2.7 and 3.2 (though it sounds to me like the backports
will fix more than they will break, since it is pretty much impossible to do
the
Guido van Rossum gu...@python.org added the comment:
Yeah, this should be fixed in 3.3 and probably backported to 3.2 and 2.7.
(There is already no guarantee that len(s) == len(s.title()), right?)
--
nosy: +gvanrossum
___
Python tracker
Guido van Rossum gu...@python.org added the comment:
Yeah, we should fix this. At least in 3.3, but (without knowing what exactly
is involved) I think backporting to 2.7 and 3.2 makes sense too.
--
nosy: +gvanrossum
___
Python tracker
Guido van Rossum gu...@python.org added the comment:
Really? The re module cannot be salvaged and we should add regex but keep the
(buggy) re? That does not make a lot of sense to me. I think it should just
be fixed in the re module. Or the re module should be *replaced* by the code
from
Guido van Rossum gu...@python.org added the comment:
Again, I would be disappointed if the re (_sre) module could not be fixed. It
is a reasonable feature request.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
Guido van Rossum gu...@python.org added the comment:
+1 on adding the feature to 3.3 in whichever way makes sense.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12734
Guido van Rossum gu...@python.org added the comment:
+1 on the feature request.
--
nosy: +gvanrossum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12753
___
Tom Christiansen tchr...@perl.com added the comment:
Sounds like a fair feature request for Python 3.3, as long as the
intention is that users must import some module from the standard
library and use functions defined in that module. The operations and
methods defined for str instances
Guido van Rossum gu...@python.org added the comment:
I know I sound like NIH, but I'm always reluctant to add a big 3rd party lib
like ICU to the permanent dependencies of all future Python distros. If people
want to use ICU they already can. OTOH I don't have a better idea. :-(
--
Tom Christiansen tchr...@perl.com added the comment:
Guido van Rossum rep...@bugs.python.org wrote
on Fri, 26 Aug 2011 21:16:57 -:
Yeah, this should be fixed in 3.3 and probably backported to 3.2
and 2.7. (There is already no guarantee that len(s) ==
len(s.title()), right?)
Well,
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I would like to be involved in the design of the API for a UCA module and its
routines for loading Unicode Collation Element Tables (not making the mistake
of using global state like the locale module does).
--
nosy:
Tom Christiansen tchr...@perl.com added the comment:
Raymond Hettinger raymond.hettin...@gmail.com added the comment:
I would like to be involved in the design of the API for a UCA module
and its routines for loading Unicode Collation Element Tables (not
making the mistake of using global
Tom Christiansen tchr...@perl.com added the comment:
I should probably mention the importance in the design of a UCA module of
being able to specify which UCA version number you want it to behave like
in case you plan to override some of the DUCET entries. That way if you
run under a later UCA
Tom Christiansen tchr...@perl.com added the comment:
Guido van Rossum rep...@bugs.python.org wrote
on Fri, 26 Aug 2011 21:55:03 -:
I know I sound like NIH, but I'm always reluctant to add a big 3rd
party lib like ICU to the permanent dependencies of all future Python
distros. If
Tom Christiansen tchr...@perl.com added the comment:
Guido van Rossum rep...@bugs.python.org wrote
on Fri, 26 Aug 2011 21:11:24 -:
Guido van Rossum gu...@python.org added the comment:
I presume this applies to builtin str methods like .lower(), right? I
think it is a good thing to
Tom Christiansen tchr...@perl.com added the comment:
Here’s my casing test suite; I thought I sent it in but the mux file here isn’t
the full thing.
It does several things, including letting you run it with regex vs re. It
also checks for the islower, etc functions. It has both simple and
Vlad Riscutia riscutiav...@gmail.com added the comment:
I wasn't aware this is an auto-generated file. I can add a comment but looking
at it, it seems we auto-generate this file just to save a call to _dosmaperr. I
would refactor the whole function to call _dosmaperr first then if result is
Terry J. Reedy tjre...@udel.edu added the comment:
My proposal is better than log(N) in 2 respects.
1) There need only be a time penalty when there are non-BMP chars and indexing
currently gives the 'wrong' answer and therefore when a time-penalty should be
acceptable. Lookup for normal
Guido van Rossum gu...@python.org added the comment:
To me, making (default) iteration deviate from indexing is anathema.
However, there is nothing wrong with providing a library function that
takes a string and returns an iterator that iterates over code points,
joining surrogate pairs as
Terry J. Reedy tjre...@udel.edu added the comment:
PEP-393 will take care of iterating by code points.
Where would you have other iterators go? The string module?
Something else I have not thought of? Or something new?
--
___
Python tracker
60 matches
Mail list logo