Mark Dickinson dicki...@gmail.com added the comment:
Whether 1+2j is a literal or an expression is debatable.
Really? I can't imagine what basis you'd have for calling either 1+2j or +1 a
literal.
--
___
Python tracker rep...@bugs.python.org
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The ZIP format specification mentions only cp437 and utf8:
http://www.pkware.com/documents/casestudies/APPNOTE.TXT see Apeendix D.
Do zip files created on Japanese Windows contain some information about the
encoding they use?
Or do
Martin v. Löwis mar...@v.loewis.de added the comment:
No, there is no indication in the zipfile that it deviates from the spec. That
doesn't stop people from creating such zipfiles, anyway; many zip tools ignore
the spec and use instead CP_ACP (which, of course, will then get misinterpreted
William Barr webmaster...@gmail.com added the comment:
Ok, attached is a patch that should make IDLE silently ignore this happening;
upon looking into this, it was a rather trivial fix. The open function was
waiting on the return input from the askopenfile call, during which the calling
Mark Dickinson dicki...@gmail.com added the comment:
For reference, Numpy's PEP 3118 implementation is here:
Thanks for that, and the other information you give; that's helpful.
It sounds like we're on the same page with respect to alignment of substructs.
(Bar the mostly academic question
Mark Dickinson dicki...@gmail.com added the comment:
For reference, Numpy's PEP 3118 implementation is here
BTW, does this already exist in a released version of NumPy? If not, when is
it likely to appear in the wild?
--
___
Python tracker
Marc-Andre Lemburg m...@egenix.com added the comment:
Alexander Belopolsky wrote:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I am probably a bit late to this discussion, but why these things should be
called codecs and why should they share the registry with
Terry J. Reedy tjre...@udel.edu added the comment:
The indentation of the patch 'looks' wrong. That appears to be because you used
tabs instead of spaces (as in the lines removed and I presume elsewhere in the
file -- and because FireFox interprets tabs as 8 spaces. Please redo with
spaces. I
Georg Brandl ge...@python.org added the comment:
An imaginary basis maybe?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Marc-Andre Lemburg m...@egenix.com added the comment:
Alexander Belopolsky wrote:
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Should we also review the documentation for fractions and decimals? For
example, fractions are documented as accepting strings of
Marc-Andre Lemburg m...@egenix.com added the comment:
Raymond Hettinger wrote:
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Try not to sprawl this all over the docs. Find the most common root and
document it there. No need to garbage-up Fractions, Decimal etc.
Steven Bethard steven.beth...@gmail.com added the comment:
If I understand it right, before this patch, people couldn't really supply
internationalizations for these calls - they would have had to have a
translation for each possible value of, e.g. action.choices or
parser.prefix_chars. So I
Boštjan Mejak bostjan.me...@gmail.com added the comment:
The result of 1 + 2j cannot be further broken down, so the result stays as 1
+ 2j (note the spaces!).
(1+2j)
(1 + 2j)
Following PEP 8 in this regard is also needed. Abandon the request of adding
the i unit and rather fix this spacing
Steven Bethard steven.beth...@gmail.com added the comment:
Hmm. I see I confused this with Issue 10529, where there really was a bug in
the gettext calls. Nonetheless, +1 for switching from %s to %(xxx)s in 3.2 -
since that's the first release in Python 3 that has argparse, I think it's
Steven Bethard steven.beth...@gmail.com added the comment:
Yes, I think it's okay to fix this without a test, given that it's a nontrivial
amount of work to test gettext stuff. I'd rather have it working now, without
tests, than wait until we know how to test stuff with gettext.
It's also a
Nick Coghlan ncogh...@gmail.com added the comment:
Committed in r86962.
Thanks to all involved in getting this from initial submission to final checkin
:)
Any further changes (including addressing Éric's last few comments) can be
undertaken as separate issues.
--
resolution: -
Nick Coghlan ncogh...@gmail.com added the comment:
Oh, I also fixed in issue in both the old and new server code that switched
warnings off globally rather than merely for the operation it was trying to
disable warnings for.
--
___
Python tracker
Robert Lehmann lehman...@gmail.com added the comment:
I wonder whether there are many examples where scientific data is written in
a form that Python's complex() constructor couldn't currently read, but would
be able to read if it accepted 'i' in place of 'j'.
I could not reproduce
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
nosy: -haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10557
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Thanks for that, Robert.
Actually, I find those few results quite convincing as evidence that it would
be useful to support 'i' (and 'I') on input.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Fixed in r86964.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10549
___
Mark Dickinson dicki...@gmail.com added the comment:
Are you sure ? I'm not sure how the underlying PyOS_string_to_double()
(IIRC) works.
I believe it accepts ASCII whitespace (i.e., chars ' ', '\t', '\f', '\n', '\r',
'\v'), and nothing else.
--
Adrian von Bidder avbid...@fortytwo.ch added the comment:
On Thursday 02 December 2010 22.51:51 you wrote:
Committed to py3k in r86936 with minor fixups.
thanks, great! (Wheee! my first patch to Python ;-)
cheers
-- vbi
--
___
Python tracker
Robert Lehmann lehman...@gmail.com added the comment:
A few issues I'd like to raise:
(1) Multiple callback chains. Is there any code in your existing use case of
GC callbacks where you don't check for the phase argument and follow different
code paths depending on it? If not, having two
Kristján Valur Jónsson krist...@ccpgames.com added the comment:
1) I'm not sure what you are asking. Does anyone think that it is simpler to
register two different callbacks than one? IMHO it complicates the interface
and creates so many oppertunities to do things incorrectly.
2)No, it is
Pauli Virtanen p...@iki.fi added the comment:
I still like the idea of scoped endianness markers in the substructs,
but if we have to abandon that for compatibility with NumPy that's
okay.
That, or change the Numpy implementation. I don't believe there's yet much code
in the wild that
Georg Brandl ge...@python.org added the comment:
The html_getfile() function is Unix-specific: it constructs paths like
path = os.sep + path.replace('%20', ' ')
Consequently, its test fails on Windows:
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: -giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2001
___
___
Rob Cliffe rob.cli...@btinternet.com added the comment:
Originally I only had built-in classes in mind (with Exceptions being
IMO the most obvious example of a built-in class hierarchy that it is
useful to find your way around). But if the idea can be extended to
other classes, well, great.
Changes by Steven Youngs st...@youngs.cc:
--
nosy: +StevenY
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10363
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
@Hirokazu: Can you attach a small test archive?
Yes, we can add a default_encoding attribute to ZipFile and add an optional
default_encoding argument to its constructor.
--
nosy: +haypo
Eric Smith e...@trueblade.com added the comment:
According to comments in the code and verified by inspection,
PyOS_string_to_double does not accept any whitespace.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10557
Éric Araujo mer...@netwok.org added the comment:
Nick, you seem to have forgotten to svn add the CSS file.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2001
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
-def getstatusoutput(cmd):
+def getstatusoutput(cmd, shell=True):
shell=True is dangerous, it can lead to shell command injection. I would prefer
to set its default value to False. The function already exists in Python 3.1,
but it
Éric Araujo mer...@netwok.org added the comment:
From the other bug: “If I understand it right, before this patch, people
couldn't really supply internationalizations for these calls - they would have
had to have a translation for each possible value of, e.g. action.choices or
Éric Araujo mer...@netwok.org added the comment:
This bug is a warning, not a fatal error: “The translator cannot reorder the
arguments.” Depending on the language, it may be a real pain.
“Basically, we should use the name of an Action or ArgumentParser attribute
whenever it makes sense.
Éric Araujo mer...@netwok.org added the comment:
I can't imagine what basis you'd have for calling either 1+2j or +1 a literal.
Poor understanding of the parser/tokenizer/formal grammar.
--
___
Python tracker rep...@bugs.python.org
New submission from Johann Hanne pyt...@jf.hanne.name:
Some C files fail to compile with mingw, mostly due to missing preprocessor
statements:
- Modules/_ctypes/callproc.c
When using the bundled non-msvc libffi, ffi_call has no return value, so only
use it when compiled with msvc.
-
Changes by Éric Araujo mer...@netwok.org:
Removed file: http://bugs.python.org/file19923/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Éric Araujo mer...@netwok.org added the comment:
The function already exists in Python 3.1, but it is not used in Python
source code
We don’t know what code out there uses. This would be an incompatible change.
--
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Dummy question: why don't you use KeyboardInterrupt instead of a custom SIGINT
handler?
try:
for i in range(100):
print(i)
except KeyboardInterrupt:
print(got sigint)
Python SIGINT handler raises a
Mark Dickinson dicki...@gmail.com added the comment:
According to comments in the code and verified by inspection,
PyOS_string_to_double does not accept any whitespace.
Bah. You're right, of course. :-)
Any whitespace (post PyUnicode_EncodeDecimal) is handled in PyFloat_FromString,
using
STINNER Victor victor.stin...@haypocalc.com added the comment:
This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock
instead of Lock, but RLock was implemented in Python and were too slow. Today,
we have RLock implemented in C and it may be possible to use them. Would it
STINNER Victor victor.stin...@haypocalc.com added the comment:
This issue remembers me #3618 (opened 2 years ago): I proposed to use RLock
instead of Lock, but RLock was implemented in Python and were too slow. Today,
we have RLock implemented in C and it may be possible to use them. Would it
Changes by STINNER Victor victor.stin...@haypocalc.com:
--
Removed message: http://bugs.python.org/msg123242
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10478
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
Ok, so +1 to apply immediatly your patch which fixes the deadlock. If someone
is motived to make Buffered* classes reentrant, (s)he can remove this exception.
io and signal documentation should also be improved to indicate that
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Please make the tokenizer surround spaces around operators. So the output
would be like in the example below:
(1 + 2j)
(1 + 2j)
--
Added file: http://bugs.python.org/file19925/unnamed
___
Changes by Brian Curtin cur...@acm.org:
--
nosy: -brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list
R. David Murray rdmur...@bitdance.com added the comment:
Ah, I did not realize that getstatusoutput was implemented using os.popen. I
thought it already used Popen. Now, in python3, os.popen is in turn
implemented using subprocess.Popen, so removing that level of indirection seems
sensible.
R. David Murray rdmur...@bitdance.com added the comment:
A note for the curious: I changed the keyword name from 'tolerant' to 'strict'
because the stdlib has other examples of 'strict' as a keyword, but the word
'tolerant' appears nowhere in the documentation and certainly not as a keyword.
Antoine Pitrou pit...@free.fr added the comment:
Not all incompatibilities have to raise a py3k warnings; AFAIK, only those
which are not handled by 2to3 do.
--
nosy: +benjamin.peterson, pitrou
___
Python tracker rep...@bugs.python.org
Tres Seaver tsea...@agendaless.com added the comment:
This fix needs backporting to the 3.1 and 2.7 branches as well.
--
status: closed - open
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
Nick Coghlan ncogh...@gmail.com added the comment:
I brought the patch up to date for the Py3k branch, but realised just before
checking it in that it may run afoul of the language moratorium (since it
alters the behaviour of builtin range objects).
However, the .count() and .index() methods
Nick Coghlan ncogh...@gmail.com added the comment:
Added the missing CSS file in r86971. Hopefully that will make the buildbots a
little happier.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2001
Georg Brandl ge...@python.org added the comment:
Don't worry, it will be ported.
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10360
___
Changes by Georg Brandl ge...@python.org:
--
nosy: -georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list
Changes by Georg Brandl ge...@python.org:
Removed file: http://bugs.python.org/file19925/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Changes by Michael Foord mich...@voidspace.org.uk:
--
nosy: -michael.foord
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Jim Jewett jimjjew...@users.sourceforge.net added the comment:
blockquoteDoes anyone think that it is simpler to register two different
callbacks than one? /blockquote
Moderately, yes.
Functions that actually help with cleanup should normally be run only in one
phase; it is just
Nick Coghlan ncogh...@gmail.com added the comment:
r86975 should fix the problem with Windows paths.
I also found an issue where many of the emitted HTML pages contained two HTML
header sections. The tests were just written in a way that they only looked at
the second of these header
Nick Coghlan ncogh...@gmail.com added the comment:
Oh, that would be Éric's point 4 that I fixed. OK, no need to create a new
issue for that one then :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2001
Adam Byrtek adambyr...@gmail.com added the comment:
What happened with there should be one-- and preferably only one --obvious way
to do it?
--
nosy: +adambyrtek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
Daniel Stutzbach stutzb...@google.com added the comment:
(I also noticed that the new methods from issue #9213 are not mentioned
in the range() docs
Wasn't that fixed in Issue9746?
--
___
Python tracker rep...@bugs.python.org
Łukasz Langa luk...@langa.pl added the comment:
Committed in rev 86976.
--
resolution: - accepted
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10499
Nick Coghlan ncogh...@gmail.com added the comment:
On Sat, Dec 4, 2010 at 2:26 AM, Daniel Stutzbach rep...@bugs.python.org wrote:
Daniel Stutzbach stutzb...@google.com added the comment:
(I also noticed that the new methods from issue #9213 are not mentioned
in the range() docs
Wasn't
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Dec 3, 2010 at 4:45 AM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
On Thu, Dec 2, 2010 at 4:34 PM, Marc-Andre Lemburg
rep...@bugs.python.org wrote:
..
* Please change the API
Nick Coghlan ncogh...@gmail.com added the comment:
Daniel Stutzbach pointed out that range() is also mentioned under:
http://docs.python.org/dev/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range
The descriptions of range's limitations there is no longer accurate (slicing
Phillip J. Eby p...@telecommunity.com added the comment:
Given that this is a pure bugfix to revert a problem in 2.7 -- where no *new*
development is being done -- a test isn't actually needed for this patch.
There is no point in holding up a distutils1 fix for distutils2's benefit.
Daniel:
New submission from STINNER Victor victor.stin...@haypocalc.com:
b'abc'.partition(':') raises a confusing TypeError('expected an object with the
buffer interface'): what is a buffer? what is the buffer interface?
The error comes from PyObject_AsCharBuffer() which is used by:
- bytes methods:
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #10616.
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6780
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
See also #6780.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10616
___
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
complex(): raise a better but incomplete error message on error
(complex() arg is not a string), incomplete because number is not
mentionned
Fixed by r86977.
--
___
Python tracker
Daniel Stutzbach stutzb...@google.com added the comment:
The descriptions of range's limitations there is no longer accurate
(slicing is supported following this patch and containment testing is
now efficient)
Want to open a new issue for that? (or is there one already?)
--
Nick Coghlan ncogh...@gmail.com added the comment:
(Oops, didn't mean to reclose this yet)
I want to wait for Georg's verdict on including the functionality in 3.2 before
stressing too much about correct documentation of it :)
--
assignee: - georg.brandl
status: closed - open
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Indeed. There should be spaces around all the operators. Even in my posted
example.
--
Added file: http://bugs.python.org/file19927/unnamed
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
As discussed in issue10610, it is important to keep the gory details in one
place and refer to it throughout the manual. I think the Unicode terminology
is best exposed in the unicodedata module documentation. For
Phillip J. Eby p...@telecommunity.com added the comment:
Committed Daniel's patch to r86978 in the 2.7 maintenance branch.
(The 2.x trunk still has this bug, but is permanently closed to new checkins.)
--
stage: needs patch - committed/rejected
versions: -3rd party, Python 3.1, Python
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Fri, Dec 3, 2010 at 11:57 AM, Boštjan Mejak rep...@bugs.python.org wrote:
..
Indeed. There should be spaces around all the operators. Even in my posted
example.
Aim higher: we obviously want Python output look
Georg Brandl ge...@python.org added the comment:
I'm fine with it: as with the other changes for .count and .index, consistency
with the protocols/ABCs the types are members of is not exclusively a new
feature.
--
status: open - closed
___
Python
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Alexander, is it possible to make an output like (1+2j) be printed as (1 +
2j). Also, why is the result put in parens?
--
Added file: http://bugs.python.org/file19928/unnamed
___
Python
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Thu, Dec 2, 2010 at 9:53 PM, Alexander Belopolsky
rep...@bugs.python.org wrote:
..
.. The honest reason for the exclusion is that I gave up chasing a bug that
only shows
in full regrtest runs.
I have realized where
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
Alexander, is it possible to make an output like (1+2j)
be printed as (1 + 2j).
Sure, and 'j' can be highlighted in red, but this is a job for a front-end or a
custom display hook, not core python. You may want to take
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file19927/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
Removed file: http://bugs.python.org/file19928/unnamed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: -belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Daniel Stutzbach stutzb...@google.com added the comment:
The descriptions of range's limitations in the docs still needs an update.
--
assignee: georg.brandl - ncoghlan
status: closed - open
___
Python tracker rep...@bugs.python.org
James Eric Pruitt eric.pru...@gmail.com added the comment:
Also, why is the result put in parens?
Without them, something like 'eval(100 * + repr(imaginary))' would not work
properly.
--
nosy: +ericpruitt
___
Python tracker rep...@bugs.python.org
Changes by Adam Byrtek adambyr...@gmail.com:
--
nosy: -adambyrtek
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list
Changes by Eric Pruitt eric.pru...@gmail.com:
--
nosy: -ericpruitt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list
Changes by Mark Dickinson dicki...@gmail.com:
--
assignee: mark.dickinson -
nosy: -mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
Terry J. Reedy tjre...@udel.edu added the comment:
Added version-added and committed. r86983
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10534
___
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: commit review - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10534
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: -pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10562
___
___
Python-bugs-list mailing
Boštjan Mejak bostjan.me...@gmail.com added the comment:
Parens are okay then. Still, put spaces around operators. If 1 + 2j let
the output be (1 + 2j)Please!!!
--
Added file: http://bugs.python.org/file19929/unnamed
___
Python tracker
Éric Araujo mer...@netwok.org added the comment:
Fixed in r86984 (py3k) and r86990 (2.7).
--
resolution: - fixed
stage: patch review - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Sat, Nov 27, 2010 at 6:38 PM, Raymond Hettinger
rep...@bugs.python.org wrote:
..
I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the iterator
protocol is being used.
As a data point, ICU defines
Antoine Pitrou pit...@free.fr added the comment:
Fixed in r86981 (3.2), r86987 (3.1) and r86992 (2.7). Thanks!
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Committed in r86993.
--
resolution: - fixed
stage: commit review - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10528
Éric Araujo mer...@netwok.org added the comment:
I just checked argparse and there are similar non-optimal calls. Not all
languages can use “string(s)” to express with 0, 1 or more, that’s why we have
ngettext.
Georg: This is a string change similar to #10528. Does it need a patch and
Antoine Pitrou pit...@free.fr added the comment:
Requalifying this issue so that the ssl module is fixed to raise socket.timeout
on socket timeouts, which is not only more logical but much more useful (since
you can then specifically handle this error).
--
priority: low - normal
1 - 100 of 139 matches
Mail list logo