eryksun added the comment:
bytes.__str__ can already raise either a warning (-b)
str('abcäöü'.encode('utf-8'))
__main__:1: BytesWarning: str() on a bytes instance
b'abc\\xc3\\xa4\\xc3\\xb6\\xc3\\xbc'
or error (-bb), which applies equally to implicit conversion by print():
Roundup Robot added the comment:
New changeset aa6b73823685 by Benjamin Peterson in branch '3.4':
improved range docstring (closes #22785)
https://hg.python.org/cpython/rev/aa6b73823685
New changeset c031fa8e6884 by Benjamin Peterson in branch 'default':
merge 3.4 (#22785)
New submission from Marc-Andre Lemburg:
In Python 2, the unicode() constructor does not accept bytes arguments, unless
an encoding argument is given:
unicode(u'abcäöü'.encode('utf-8'))
Traceback (most recent call last):
File stdin, line 1, in module
UnicodeDecodeError: 'ascii' codec can't
R. David Murray added the comment:
Documentation patches are welcome. imaplib has not seen much attention for
quite some time (though there is currently someone interested in working on it,
so that may change).
Please open a separate issue for the utf7 enhancement proposal.
--
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16840
___
R. David Murray added the comment:
This is a duplicate of issue 23995.
--
nosy: +r.david.murray
resolution: - duplicate
stage: - resolved
status: open - closed
superseder: - msvcrt could not be imported
___
Python tracker rep...@bugs.python.org
New submission from appidman:
I use paramiko to create SSH sessions to Linux machines, which works great 95%
of the time. But sometimes, the Python process which creates the SSH session
hangs forever in wait() of threading.py (see attachment 'gdb.txt' for full
output).
{code}
(gdb) py-list
New submission from Marc-Andre Lemburg:
In Python 3.4.3, the doc string of the str() builtin still reads:
str(object='') - str\nstr(bytes_or_buffer[, encoding[, errors]]) -
str\n\nCreate a new string object from the given object. If encoding or\nerrors
is specified, then the object must
Cyd Haselton added the comment:
Still working at this; I can't get the readline module to work. It is built
successfully but importing it produces the following error:
Traceback (most recent call last):
File stdin, line 1, in module
ImportError: dlopen failed: could not load library
R. David Murray added the comment:
Sounds like we should close this as rejected, then. Serhiy's point is a good
one. Maybe not the way we'd design the api from scratch, but it's what we've
got and it serves a purpose.
--
___
Python tracker
Berker Peksag added the comment:
Just saw this on x86 Tiger 3.x:
==
FAIL: test_imap_unordered_handle_iterable_exception
(test.test_multiprocessing_fork.WithProcessesTestPool)
Marc-Andre Lemburg added the comment:
I agree with closing this as won't fix.
It is true that the encoding keyword argument is only useful when passing in
byte strings or (and that's also where it originated in Python 2: the default
string type is a byte string), but even in Python 3, this is
Serhiy Storchaka added the comment:
In Python 2, the unicode() constructor accepts bytes argument if it is
decodeable with sys.getdefaultencoding().
unicode(b'abc')
u'abc'
import sys
reload(sys)
module 'sys' (built-in)
sys.setdefaultencoding(utf-8)
unicode(u'abcäöü'.encode('utf-8'))
R. David Murray added the comment:
str accepting bytes and returning the repr was a conscious design choice, as
evidenced by the -bb option, and I'm sure there is code that is both
unintentionally and *intentionally* using this, despite the warning. Unless we
want to discuss making the -bb
Marc-Andre Lemburg added the comment:
On 22.04.2015 15:52, R. David Murray wrote:
str accepting bytes and returning the repr was a conscious design choice, as
evidenced by the -bb option, and I'm sure there is code that is both
unintentionally and *intentionally* using this, despite the
R. David Murray added the comment:
This could easily be a programming error. We'd need a cut down reproducer to
know if it is a python bug and be able to fix it if so. Have you reported this
to paramiko?
--
nosy: +r.david.murray
___
Python
Brett Cannon added the comment:
I don't know if Larry is planning to do tarball releases for 3.5 (added him to
the nosy to see).
As for the install step, it would be best to suggest people install to a temp
directory so they don't accidentally end up with a beta release stuck on their
New submission from Pablo:
I used the IMAP library and I feel it lacks a lot of documentation regarding
types and encoding.
Example:
IMAP4.list([directory[, pattern]]):
It doesn't state if it expects the directory argument to be an string (unicode)
or a imap_utf7 encoded string or bytes.
It
Steve Dower added the comment:
Right at the end of the patch, .hg/hgrc also exists on Windows and is not the
same as mercurial.ini - hgrc here is per-repo and it seems from the context
that this is relevant here.
Otherwise, the rest looks good to me. I'll merge it in when I get a chance,
Carol Willing added the comment:
This patch addresses Ezio's original issue in msg185482 to improve the Windows
instructions on the committing page of the devguide.
I have tried to match the style of the Getting Started page when
distinguishing UNIX (Mac OS X) commands from Windows commands.
R. David Murray added the comment:
Yeah, that's why I run tests with -bb myself. Except that there was a bug in
-W/-bb handling that meant I wasn't really...and that bit me because there is
at least one buildbot that really does, and it complained...
(Although in that case the 'bug' was
Berker Peksag added the comment:
Thanks Claudiu.
--
nosy: +berker.peksag
resolution: - fixed
stage: commit review - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23917
Roundup Robot added the comment:
New changeset 572dc6bdc0a3 by Berker Peksag in branch 'default':
Issue #23917: Fall back to sequential compilation when ProcessPoolExecutor
doesn't exist.
https://hg.python.org/cpython/rev/572dc6bdc0a3
--
nosy: +python-dev
Serhiy Storchaka added the comment:
Please don't deprecate the encoding parameter in str. It has a use case. str
constructor works with any bytes-like objects, even with these that don't have
the decode method. It raises more appropriate TypeError instead of
AttributeError, so often you don't
New submission from Terry J. Reedy:
The doc currently says, in the Edit menu section,
Show call tip
After an unclosed parenthesis for a function, open a small window with
function parameter hints.
I propose to add the additional information I gave in answer to
Tal Einat added the comment:
Attaching new patch for unicodeobject.c, which supersedes the previous patches.
I've changed the name of the parameter of str.join() to iterable to match the
docs. (In the previous patch I had changed it from seq to
iterable_of_strings.)
I also fixed two minor
Barry A. Warsaw added the comment:
More rationale from the thread:
The surprising part is that it also happens for explicit relative
imports. I'm guessing that part was unintentional and simply not
noticed when PEP 328 was implemented.
No, that must also have been intentional, because
New submission from Barry A. Warsaw:
As described here:
http://news.gmane.org/find-root.php?message_id=20150422115959.1ff2ee58%40limelight.wooz.org
Importing a submodule binds the submodule's name in the parent module's
namespace. This is surprising, but it seems intentional and it's relied
Barry A. Warsaw added the comment:
From Guido:
It's definitely intentional, and it's fundamental to the package import
design. We've had many implementations of package import (remember ni.py?
last seen as knee.py) and it was always there, because this is done as
part of *submodule loading*.
Larry Hastings added the comment:
I don't plan on doing tarball-only drops during the 3.5 beta/rc period like I
did during 3.4. However, when I do a release (e.g. 3.5.0a4), I release Windows
binaries (built by Steve Dower), OS X binaries (built by Ned Deily), and source
in tarballs. If
Changes by Charles-François Natali cf.nat...@gmail.com:
Removed file: http://bugs.python.org/file39171/mp_map_fail_fast_default.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23992
___
Changes by Charles-François Natali cf.nat...@gmail.com:
Removed file: http://bugs.python.org/file39170/mp_map_fail_fast_27.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23992
___
Changes by Charles-François Natali cf.nat...@gmail.com:
Added file: http://bugs.python.org/file39172/mp_map_fail_fast_27.diff
Added file: http://bugs.python.org/file39173/mp_map_fail_fast_default.diff
___
Python tracker rep...@bugs.python.org
New submission from Pablo:
IMAP library doesn't encode parameters to the required charset.
The library is useful, but when it comes to complex mailbox names, the user
needs to convert strings to and from the custom imap_utf7 encoding.
I think this conversion could be implemented in the library
Eric Snow added the comment:
Guido describes the global invariant for *all* the forms of importing a
submodule, including explicit relative imports:
I just mean that for relative import
there is no need to bind the submodule to the parent, is there?
But there *is* a reason. The submodule
Charles-François Natali added the comment:
Patches for 2.7 and default.
--
keywords: +patch
Added file: http://bugs.python.org/file39170/mp_map_fail_fast_27.diff
Added file: http://bugs.python.org/file39171/mp_map_fail_fast_default.diff
___
Python
Christie added the comment:
Hey @berker.peksag, @r.david.murray!
Here's another change set where script_helpers.py is moved with an hg mv (still
looks in the patch like the file was deleted and re-added, not sure if that's
expected).
I've ALSO removed some unused imports from
A.M. Kuchling added the comment:
neologix: did you intend to re-open this ticket when you made your 2013-03-05
comment? It seems to me that you didn't intend to -- your comment doesn't say
're-opening because reason'. I'll close it again; if you want, please
re-open it and just explain why.
Changes by Berker Peksag berker.pek...@gmail.com:
--
stage: patch review - resolved
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23887
___
___
Berker Peksag added the comment:
LGTM
--
nosy: +berker.peksag
stage: patch review - commit review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24031
___
paul j3 added the comment:
A similar Stackoverflow question
http://stackoverflow.com/questions/21692395/hiding-selected-subcommands-using-argparse/21712058#21712058
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22848
New submission from Christie:
As described in Issue9517, many test modules do not make use of the helpers in
script_helpers.py to invoke the python interpreter in a subprocess. Issue9517
will be broken down into several smaller issues so we can address smaller
change sets.
This issue is to
Christie added the comment:
I am working on this!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24033
___
___
Python-bugs-list mailing list
Christie added the comment:
Created issue24033. If it and issue23981 could be added as dependencies of this
issue (or I could get permission to add them?) that would be swell!
--
___
Python tracker rep...@bugs.python.org
Davin Potts added the comment:
Serhiy: If my comments on your questions make sense, should we go ahead with
the patch as it is?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23713
___
Changes by Facundo Batista facu...@taniquetil.com.ar:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23887
___
Antoine Pitrou added the comment:
This looks logical to me. The finally block is only entered if the try
block is ever entered, but if you don't consume anything in the generator then
the generator's code is never actually executed.
--
nosy: +pitrou
Roundup Robot added the comment:
New changeset e9ea679a92fa by Facundo Batista in branch 'default':
Issue #23887: urllib.error.HTTPError now has a proper repr() representation.
https://hg.python.org/cpython/rev/e9ea679a92fa
--
nosy: +python-dev
___
A.M. Kuchling added the comment:
From reading the discussion thread, it looks like the consensus is to not
apply this set of patches because the speed-up is unfortunately small.
Closing as won't-fix; please re-open if someone wishes to pursue this again.
--
nosy: +akuchling
Davin Potts added the comment:
@Luis: Before closing this bug, could you give a quick description of the fix
you put in place?
Two reasons:
1) Someone else encountering this frustration with similar needs might well
benefit from hearing what you did.
2) To provide evidence that there is
Barry A. Warsaw added the comment:
Here's some new text for the Language Reference.
--
Added file: http://bugs.python.org/file39175/issue24029-1.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24029
Roundup Robot added the comment:
New changeset 3968e7a9614c by Barry Warsaw in branch '3.4':
Issue #24029: Document the name binding behavior for submodule imports.
https://hg.python.org/cpython/rev/3968e7a9614c
New changeset 351ad8c4f3a6 by Barry Warsaw in branch '3.4':
Issue #24029: Document
Barry A. Warsaw added the comment:
Cool, thanks! I'll commit it and we can always clean it up/add to it later if
needed.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24029
___
Changes by Barry A. Warsaw ba...@python.org:
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24029
___
New submission from albertsmuktupavels:
From documentation:
Construct a full (“absolute”) URL by combining a “base URL” (base) with
another URL (url). Informally, this uses components of the base URL, in
particular the addressing scheme, the network location and (part of) the path,
to provide
Berker Peksag added the comment:
Thanks for the patch, Christie. Review comments:
http://bugs.python.org/review/9517/
(still looks in the patch like the file was deleted and re-added, not sure if
that's expected).
I don't know if it's important. I'm using a very old version of Mercurial
Masayuki Yamamoto added the comment:
I wrote the patch to replace $(PYTHON).
Changes:
Add TYPESLOTSGEN to configure.ac. TYPESLOTSGEN values is the built-in python.
If the built-in python is not found, TYPESLOTSGEN echoes message that is
skipping like ASDLGEN.
Generated the configure script
New submission from Masayuki Yamamoto:
Objects/typeslots.inc is broken, and make stop on cygwin-1.7.35-i686.
If built-in python is not found in make processing, Objects/typeslots.inc
generating will fail.
Because Objects/typeslots.inc is generated using $(PYTHON) in Makefile, but
$(PYTHON)
New submission from James:
Referring to Python 2.7 running on Windows (7/8):
At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is
held while an alpha-character is selected, the character is output and
displayed as uppercase, as one would expect. However, in Python 2.7,
Changes by Benjamin Peterson benja...@python.org:
--
resolution: - rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24019
___
New submission from Christian Heimes:
'make patchcheck' supports only Mercurial checkouts. The tool uses the 'hg
status' command to find modified files. My patch implements 'git status'
support in order to make the patch check tool available on git checkouts.
--
components: Build
Eric Snow added the comment:
LGTM. You've covered all the key points and the example is good.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24029
___
Maciej Szulik added the comment:
Thanks Milan for the info, I was about to ping you about that. I have a working
prototype for the tests that I've been working on during PyCon sprints with
David. I'll try to submit new patch within a couple of next days.
--
Roundup Robot added the comment:
New changeset 4bf210f59ac6 by Serhiy Storchaka in branch '2.7':
Issue #16840: Skip bignum tests on minor releases where they are not supported.
https://hg.python.org/cpython/rev/4bf210f59ac6
New changeset 97519d85b5c8 by Serhiy Storchaka in branch '3.4':
Issue
New submission from Johan Pretorius:
When running the $python manage.py createsuperuser command the following is
returned:
C:\Users\johanP\mysitepython manage.py cre
Username (leave blank to use 'johanp'):
Email address: jar...@gmail.com
Traceback (most recent call last):
File manage.py,
Roundup Robot added the comment:
New changeset aa60f4d1a569 by Berker Peksag in branch 'default':
Issue #21483: Skip test_timestamp_overflow on NFS.
https://hg.python.org/cpython/rev/aa60f4d1a569
--
nosy: +python-dev
___
Python tracker
Berker Peksag added the comment:
Thanks Isaac.
--
nosy: +berker.peksag
resolution: - fixed
stage: - resolved
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue21483
___
Serhiy Storchaka added the comment:
The file preset is default now, but if you will consider Argument Clinic as
general tool for use in third-party software, the bug still is here.
--
priority: normal - low
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - remind
versions: +Python 3.6 -Python 3.4, Python 3.5
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20323
___
Berker Peksag added the comment:
issue 15657 is actually a duplicate of this issue, but since there's more
information there I'm closing this. Please take a look the patch at issue
15657. Thank you all!
--
nosy: +berker.peksag
resolution: - duplicate
stage: - resolved
status: open -
Berker Peksag added the comment:
Here is a patch for Python 3.5.
--
components: +Interpreter Core -Documentation
keywords: +patch
nosy: +berker.peksag, serhiy.storchaka
type: - behavior
versions: +Python 3.5 -Python 3.2, Python 3.3
Added file:
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15216
___
Serhiy Storchaka added the comment:
Ah, if the two-pass preset is gone, then of course the bug is gone too.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20323
___
Larry Hastings added the comment:
I thought the bug only happened with the two-pass preset. The two-pass
preset is gone, because I broke it, and nobody was using it anyway, so I
removed it.
(I don't even remember what two-pass was trying to do. It's possible the
same effect could be
Martin Panter added the comment:
I thought it might be okay to use codecs.decode() instead for those cases,
though it doesn’t check for text encodings. And support for arbitrary
bytes-like object doesn’t seem to be documented (though seems to work in
reality).
--
Marco Paolini added the comment:
I think there is an issue in the way you designed your cleanup logic. So I
think this issue is invalid.
Usually, the code (funcion, class, ...) that *opens* the file should also be
resposible of closing it.
option 1) the caller opens and closes the file and
Amaury Forgeot d'Arc added the comment:
About the patch: I'm sure there are other tests to change,
in test_syntax.py for example::
It's a syntax error to assign to the empty tuple. Why isn't it an
error to assign to the empty list? It will always raise some error at
runtime.
Jean-Paul Calderone added the comment:
It's only been six years, no need to rush.
--
nosy: +Jean-Paul Calderone
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6731
___
Changes by Jean-Paul Calderone jean-p...@clusterhq.com:
--
nosy: -Jean-Paul Calderone, exarkun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6731
___
Changes by Dmitry Kazakov jsb...@gmail.com:
Added file: http://bugs.python.org/file39166/traceback_limit_doc_rev3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22619
___
Berker Peksag added the comment:
I don't have a strong opinion on this, but here is a patch to make () = [] a
valid assignment.
--
keywords: +patch
nosy: +berker.peksag
stage: - patch review
versions: +Python 3.5
Added file: http://bugs.python.org/file39165/issue23275.diff
Karl Richter added the comment:
I suspect the complaint might be about the lack of doc string
Exactly. It'd be helpful to figure out the return value and the means of the
function arguments in a more compact form than the referenced website docs and
to have it available in the interpreter
82 matches
Mail list logo