Roundup Robot added the comment:
New changeset 32a5de0e91d5 by Vinay Sajip in branch '2.7':
Issue #17795: Reverted backwards-incompatible change in SysLogHandler with Unix
domain sockets.
http://hg.python.org/cpython/rev/32a5de0e91d5
New changeset d03784713786 by Vinay Sajip in branch '3.3':
Changes by Ilya Konkov eru...@gmail.com:
--
nosy: +eruart
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17732
___
___
Python-bugs-list mailing
Serhiy Storchaka added the comment:
The problem (as I understand it) is that if Martin's patch fixes an unicode
literals, it breaks a string literals.
LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python Lib/idlelib/idle.py
print u'йцук'
йцук
print 'йцук'
йцук
Here is a different patch,
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - duplicate
superseder: - IDLE console uses incorrect encoding.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17348
___
Mher Movsisyan added the comment:
Can you share the link of the new robots.txt standard? I may help to implement
it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17403
___
Martin Morrison added the comment:
Attached another diff, which includes new test cases to cover all functions
that weren't covered before - expect print_last. I couldn't see a way of
getting sys.last_* set to test that function (it seems to require an unhandled
exception). However, the
Serhiy Storchaka added the comment:
I'm not against adding useful C tools to itertools, but you may have to
convince Raymond ;)
C implementation speeds up the benchmark only 1.5x. Granting the fact that this
idiom is used in stdlib less than two dozens times (without tests and iobench),
I do
Roundup Robot added the comment:
New changeset 041960bf92fe by Eli Bendersky in branch '3.3':
Issue #17736: fix misleading comment in _elementtree.c
http://hg.python.org/cpython/rev/041960bf92fe
--
nosy: +python-dev
___
Python tracker
Roundup Robot added the comment:
New changeset 3bfe8327612a by Eli Bendersky in branch 'default':
Issue #17736: fix misleading comment in _elementtree.c
http://hg.python.org/cpython/rev/3bfe8327612a
--
___
Python tracker rep...@bugs.python.org
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17736
___
R. David Murray added the comment:
I haven't a clue, that was part of the research I was going to do but haven't
done yet (and probably won't for now...I'll wait to see if you or Lukaz pick it
up first :).
I see he didn't nosy himself on the issue yet, though, so I've done that.
Maybe he'll
R. David Murray added the comment:
I've combined the nosy lists and will close the other issue. Serhiy, what if
the source already has a coding cookie line?
--
nosy: +Pradyun.Gedam, Tomoki.Imai, ned.deily, r.david.murray
___
Python tracker
R. David Murray added the comment:
Serhiy has proposed a patch on the older issue, closing this one since it is a
duplicate.
--
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Łukasz Langa added the comment:
robotparser implements http://www.robotstxt.org/orig.html, there's even a link
to this document at http://docs.python.org/3/library/urllib.robotparser.html.
As mher points out, there's a newer version of that spec formed as RFC:
Senthil Kumaran added the comment:
My suggestion for this issue is going ahead with patch2 of Mher. It does a
simple normalization and does the right thing.
The case in the question is an empty query string and behavior or Allow and
Disallow for that and patch addresses that. (I don't know
Tomoki Imai added the comment:
Oh, no support for Python2?
I think, it is too old, but still needs bug-fix supports.
IDLE for Python2 is really buggy.
For example, unicode problems in my environment.
http://bugs.python.org/issue17348
It might be GUI related problem.
By the way, your proposal
Nick Sloan added the comment:
Éric,
Fixed the mention of packages, and made a frozenset of ignore_options. Think
this thing is ready to go. I have tested it, and it does the trick. Thanks for
helping me get this patch merged in.
--
Added file:
Serhiy Storchaka added the comment:
A coding cookie line will be ignored. Note that this affects only very obscure
case when you are pasting a multiline code with a coding cookie line into IDLE
shell (this is only way to get a coding cookie line in the shell). Running a
file does not pass
Stefan Mihaila added the comment:
Hello. I apologize once again for not finalizing my work, but once I have
started my final year of faculty and a job, I have been busy pretty much all
the time. I would really like to finish this as I've really enjoyed working on
it, and everything on PEP
New submission from Theodoros Ikonomou:
I find the code presented as equivalent for itertools.combinations is overly
complex.
I think we can change it to something easier like the following:
def combinations(iterable, r):
i, size = 0, len(iterable)
while i + r - 1 size:
Éric Araujo added the comment:
Just wanted to note that addCleanup is smarter than many core devs think:
self.addCleanup(lambda: setattr(keyword, 'kwlist', oldlist))
self.addCleanup(setattr, keyword, 'kwlist', oldlist)
--
nosy: +eric.araujo
___
Serhiy Storchaka added the comment:
An interactive Python console ignores a coding cookie line too.
$ cat test.py
# -*- coding: koi8-r -*-
print repr('йцук'), 'йцук', repr(u'йцук'), u'йцук'
$ LC_ALL=ru_RU.cp1251 LANG=ru_RU.cp1251 ./python test.py
'\xe9\xf6\xf3\xea' йцук
Changes by Theodoros Ikonomou thiko...@gmail.com:
--
resolution: - postponed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17815
___
R. David Murray added the comment:
I think the issue of whether/how to test Python2 idle should be discussed on
idle-dev. One strategy is to make the tests backward compatible (so no mock).
Another possible strategy is to have an extra bit of test framework for IDLE in
2.7 that copies the
Zachary Ware added the comment:
I agree it would be nice, but I'm not sure how easy or practical it would be to
implement, particularly making sure that NASM is on the PATH. And besides, at
some point, we have to draw the line between what we can reasonably do for a
user and what we can
New submission from Nils Bruin:
The following program is a little dependent on memory layout but will usually
generate lots of
Exception KeyError: (A(9996),) in function remove at 0xa47050 ignored
messages in Python 2.7.
import weakref
class A(object):
def
Volker Braun added the comment:
This is http://bugs.python.org/issue7105. The patch from there could easily be
backported, I think.
--
nosy: +vbraun
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17816
Roundup Robot added the comment:
New changeset 5c45d0ca984f by Serhiy Storchaka in branch 'default':
Issue #16624: `subprocess.check_output` now accepts an `input` argument,
http://hg.python.org/cpython/rev/5c45d0ca984f
--
nosy: +python-dev
___
Serhiy Storchaka added the comment:
Thanks Zack for you patch. Thanks Mark for testing.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16624
New submission from Ricardo González:
Hello,
There seems to be a bug in versions 2.7.4 and 3.3.1 by typing the following
error in IDLE (Python GUI) Windows 8 64 bit:
Python 2.7.4 (default, Apr 6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on
win32
Type copyright, credits or license() for
Larry Hastings added the comment:
Can I get an LGTM?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15301
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Those bugs likely were fixed in issue17585 and issue14735 last week.
--
nosy: +kbk, roger.serwy, serhiy.storchaka, terry.reedy
versions: +Python 2.7, Python 3.4
___
Python tracker rep...@bugs.python.org
Nils Bruin added the comment:
Have you tried if the fix at issue7105 solves the problem? I don't see the
patch there introduce a `clear` method override for WeakValueDictionary or
WeakKeyDictionary. The one for WeakSet still calls self.data.clear(), which for
dictionaries would still result
Serhiy Storchaka added the comment:
New tests needed (with Decimal and Fraction). And what is purpose of changing
Py_TYPE(o) to o-ob_type?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15301
Changes by Phil Connell pconn...@gmail.com:
--
nosy: +pconnell
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7475
___
___
Python-bugs-list mailing
Larry Hastings added the comment:
Latest patch incorporating Serihy's comments.
--
Added file: http://bugs.python.org/file29977/larry.chown.unsigned.uid.gid.4.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15301
Larry Hastings added the comment:
Whoops, meant to throw in a Fraction too. Added that. Also hoisted the
imports out of the function call, just to be a good guy.
--
Added file: http://bugs.python.org/file29978/larry.chown.unsigned.uid.gid.5.diff
Changes by Terry J. Reedy tjre...@udel.edu:
--
nosy: -terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17717
___
___
Python-bugs-list
Thomas Barlow added the comment:
Just adding a patch here with a few unit tests to demonstrate the issue,
comments here are welcome. This is my first patch, I believe I have put the
tests in the correct place.
It appears the problem only occurs if there is an incomplete XML entity where a
Paul Hoffman added the comment:
Following up on
http://mail.python.org/pipermail/python-ideas/2011-March/009656.html, I would
like to request that struct also handle half-precision floats directly. It's a
short change, and half-precision floats are becoming much more popular in
applications.
New submission from Claudiu.Popa:
Hello!
Given the fact that issue 17487 was accepted, I think that is a good idea for
aifc.Aifc_read/Aifc_write.getparams to return a namedtuple as well, so that
both modules will behave consistently with each other.
I've attached a patch for this.
Thanks in
Paul Melis added the comment:
Here's a patch that removes the
pysqlite_do_all_statements(self, ACTION_RESET, 0);
call.
It also adds the sqlite error code to one of the exceptions raised, as the
error message is misleading in case the ACTION_RESET is left in (I forgot what
sqlite error is
Roundup Robot added the comment:
New changeset 2253b8a18bbf by Serhiy Storchaka in branch '2.7':
Issue #11714: Use 'with' statements to assure a Semaphore releases a
http://hg.python.org/cpython/rev/2253b8a18bbf
New changeset af30c5cb248f by Serhiy Storchaka in branch '3.3':
Issue #11714: Use
Terry J. Reedy added the comment:
When I opened this last July, I intentionally left off 2.7 for multiple reasons.
1. I knew that the new-in-3.3 mock module would probably be needed for some
types of testing. (As for 3.2: at that time, I expected 3.2.4 to be released in
September or October,
Serhiy Storchaka added the comment:
Thank you for the patch.
'try/finally' can't be replaced by 'with' statements in the _Event class
because a conditional variable should be reinitialized in
_reset_internal_locks() after fork.
--
resolution: - fixed
stage: commit review -
Mark Dickinson added the comment:
Paul: there's already an open issue for adding float16 to the struct module:
see issue 11734.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3132
___
Mark Dickinson added the comment:
I'll take a look at the numerics.
--
assignee: - mark.dickinson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11734
___
Paul Hoffman added the comment:
Whoops, never mind. Thanks for the pointer to 11734.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3132
___
___
Paul Hoffman added the comment:
Just another voice for seeing this put in a deployed version of Python.
Half-precision floats are becoming more common in applications.
Question: does adding this affect math.isnan and math.isinf?
--
nosy: +paulehoffman
Changes by Ned Deily n...@acm.org:
--
nosy: -ned.deily
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10513
___
___
Python-bugs-list mailing list
A.M. Kuchling added the comment:
I suggest just dropping this HOWTO.
It was written to contrast using Python with using only a low-level language
such as C. Today there may still be some people arguing over whether to use a
low-level or high-level language, but I think the idea of using
Tshepang Lekhonkhobe added the comment:
That's great to hear, especially coming from the author.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17729
___
STINNER Victor added the comment:
I expect that replacing *p++ = c; with *writer.str++ = c; would
not add an important overhead, especially because writer is a local
variable, and str is the first attribute of the structure. I hope that
the machine code will be exactly the same.
I ran some
paul j3 added the comment:
The attached file has a 'parse_intermixed_args()' that has the same API as
'parse_known_args()'.
It follows the two parse step model
args, remaining_args = optionals.parse_known_args()
args, extras = positionals.parse_known_args(remaining_args, args)
except
STINNER Victor added the comment:
We may add a command line option and/or an environment variable to not add the
current directory to sys.path.
Changing the current behaviour may break many applications / use cases.
--
___
Python tracker
Changes by STINNER Victor victor.stin...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16499
___
___
Python-bugs-list
STINNER Victor added the comment:
We may add a command line option and/or an environment variable to not add
the current directory to sys.path.
Oh, this is exactly what the issue #16499 proposes.
--
___
Python tracker rep...@bugs.python.org
New submission from Antonio Cavallo:
This patch introduces two new options (--enable-ptmx, --enable-ptc) to
the configure script.
In cross compile the actual code requires an external config.site config file to
set the result values for the AC_CHECK_FILE macros on /dev/ptmx, /dev/ptc.
These
Mike Milkin added the comment:
There are a few of interesting parts.
1.) I noticed that the ToASCII class is not tested.
2.) I had some unreachable branches due to concatenation of constant variable
ace_prefix.
3) I also found it weird that we only check the max of labels[-1], but decided
Changes by Mike Milkin mmil...@gmail.com:
Removed file: http://bugs.python.org/file29850/Issue9682-full.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
___
Changes by Mike Milkin mmil...@gmail.com:
Removed file: http://bugs.python.org/file29984/Issue9682.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
___
Changes by Mike Milkin mmil...@gmail.com:
Added file: http://bugs.python.org/file29985/Issue9682-42213.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9682
___
Roger Serwy added the comment:
Ricardo, you are correct that 2.7.4 and 3.3.1 have these bugs but they have
been fixed, as shown by Serhiy. Unfortunately, these fixes won't be released
for a while but they exist as patches and in version control.
I am closing this issue as a duplicate of
Meador Inge added the comment:
This seems reasonable to me to. So +1.
Small bikeshed on the name: I think 'unpack_iter' would be more
consistent with what is already there, e.g. 'unpack' and 'unpack_from'.
In fact, when experimenting with this patch I found myself typing
'unpack_iter' several
Nils Bruin added the comment:
I think the difference in behaviour between Py3 and Py2 is coming from:
http://hg.python.org/cpython/file/a26df2d03989/Objects/dictobject.c#l1275
which first clears all values before removing any keys. For a
WeakValueDictionary that means all the weakrefs are
New submission from Guilherme Simões:
In devguide/setup#editors-and-tools we have:
For editors and tools which the core developers have felt some special comment
is needed for coding in Python, see Key Resources.
Since emacs and other tools are mentioned in Additional Resources instead I
Roundup Robot added the comment:
New changeset df85ed024e96 by Ned Deily in branch 'default':
Issue #17820: Provide more appropriate link in devguide editor section.
http://hg.python.org/devguide/rev/df85ed024e96
--
nosy: +python-dev
___
Python
Ned Deily added the comment:
Thanks for the suggestion!
--
nosy: +ned.deily
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17820
Roger Serwy added the comment:
Here's a tangentially related issue: #14326
IDLE doesn't handle pasting multi-line code properly (issue3559), IDLE2 will
silently ignore code after the first executable statement. IDLE3 may give an
error.
Can't we just make IDLE's shell default to UTF-8?
Ezio Melotti added the comment:
Thanks for the patch Thomas!
Starting from your work I made an updated patch that fixes the bug, but at the
same time the tests revealed another possible issue.
In case of invalid character references, HTMLParser still calls
handle_entityref instead of reporting
70 matches
Mail list logo