Ezio Melotti added the comment:
That's because there's no test file called test_urlwithfrag.py.
Do you see any failure if you do ./python -m test -v test_urllib2net?
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15994
___
___
Python-bugs-list mailing list
Serhiy Storchaka added the comment:
Changeset 525407d89277: Fix test_socket broken in previous commit (changeset
13e2e44db99d).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15989
___
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15948
___
___
Python-bugs-list mailing list
Mark Shannon added the comment:
The interaction between bdb/pdb and the line number table is via the
frame.f_lineno attribute.
Allowing signed offsets changes the one-to-one line muber = bytecode offset
relation into a one-to-many relation.
Reading frame.f_lineno is not an issue as each
Changes by Jesús Cea Avión j...@jcea.es:
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16086
___
___
Python-bugs-list mailing list
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: serhiy.storchaka - docs@python
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16954
___
Chris Jerdonek added the comment:
Adding a failing test. I will supply a patch shortly.
--
keywords: +patch
stage: - needs patch
Added file: http://bugs.python.org/file28731/issue-16468-1.patch
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Here are updated to current codebase patches for 2.7 and 3.2. It seems that
all the rest of overflows are hypothetical bugs and do not appear on the
current supported platforms. Fix them is not necessary (rather for purity). If
no one can see visible bugs,
Chris Jerdonek added the comment:
Attaching patch. With this patch, passing a non-iterable choices argument to
parser.add_argument() raises (for example):
Traceback (most recent call last):
...
File .../Lib/argparse.py, line 558, in _metavar_formatter
choice_strs = [str(choice) for
Chris Jerdonek added the comment:
Slight doc tweak: s/container/sequence/.
--
Added file: http://bugs.python.org/file28735/issue-16468-3.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16468
Serhiy Storchaka added the comment:
Oh, I forgot to mention the issue number in commit messages. There are
changeset ad9b5c69b8b6 (for 3.3) and changeset 1f66fc397c8d (for default).
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
New submission from Chris Jerdonek:
parser = argparse.ArgumentParser()
parser.add_argument('foo', nargs='a')
...
File .../Lib/argparse.py, line 1333, in add_argument
raise ValueError(length of metavar tuple does not match nargs)
ValueError: length of metavar tuple does not match nargs
Stefan Krah added the comment:
In the absence of an enum type, string constants are nicer to read in
the REPL, so here's a patch. Translating between strings and ints is
fast if you use the module constants.
--
keywords: +patch
Added file:
Richard Oudkerk added the comment:
New patch reflecting Amaury's comments.
--
Added file: http://bugs.python.org/file28737/winfileio.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12939
Changes by Richard Oudkerk shibt...@gmail.com:
Removed file: http://bugs.python.org/file28707/winfileio.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12939
___
Changes by Christian Heimes li...@cheimes.de:
--
nosy: +christian.heimes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15994
___
___
Roundup Robot added the comment:
New changeset f07435fa6736 by Richard Oudkerk in branch '2.7':
Issue #10527: Remove dead code
http://hg.python.org/cpython/rev/f07435fa6736
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 49d45151b9ed by Richard Oudkerk in branch '3.2':
Issue #10527: Remove dead code
http://hg.python.org/cpython/rev/49d45151b9ed
--
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 33a8ef498b1e by Serhiy Storchaka in branch '2.7':
Issue #14850: Now a chamap decoder treates U+FFFE as undefined mapping
http://hg.python.org/cpython/rev/33a8ef498b1e
New changeset 13cd78a2a17b by Serhiy Storchaka in branch '3.2':
Issue #14850: Now
New submission from Serhiy Storchaka:
Charmap decoder can leak a reference in case of error.
--
components: Unicode
files: charmap_decode_leaks-3.3.patch
keywords: 3.3regression, patch
messages: 180018
nosy: ezio.melotti, serhiy.storchaka
priority: normal
severity: normal
stage: patch
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file28739/charmap_decode_leaks-3.4.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16971
___
Serhiy Storchaka added the comment:
Fixed. Thank you for your answers, Martin.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14850
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14850
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16971
___
___
Python-bugs-list
Ezio Melotti added the comment:
How difficult would it be to write a test for this?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16971
___
___
R. David Murray added the comment:
Since the line between a type error and a value error is fuzzy anyway, I'd be
in favor of maintaining the backward compatibility here. We don't consider
exception message content part of the API (though we do occasionally work to
preserve it when we know
New submission from Kirill:
In Lib/site.py:149 [1] _init_pathinfo call has no effect. Looks like it's here
because in the past _init_pathinfo was changing a global variable [2]. I
believe that it should be changed to `known_paths = _init_pathinfo()`, in the
same way as it's done in
Chris Jerdonek added the comment:
Sounds fine. Does that mean a test should still be added for the message? I
was never clear on this because on the one hand we want to be sure we use the
right message (and that we're actually fixing the issue), but on the other hand
we don't want the
Chris Jerdonek added the comment:
I guess another option would be to mark the test CPython-only.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16468
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13773
___
___
Python-bugs-list mailing
Antoine Pitrou added the comment:
This would definitely be useful. I would have liked to have this feature today.
poq, could you sign a contributor agreement?
See http://www.python.org/psf/contrib/
Also, it's better if you can use a real name (or at least a well-known
pseudonym).
--
Antoine Pitrou added the comment:
This would be nice to have in 3.4. When were the _v2 APIs introduced?
See also issue13773 which uses sqlite3_open_v2() to pass some flags.
--
nosy: +larry, pitrou
versions: +Python 3.4 -Python 3.3
___
Python tracker
Roundup Robot added the comment:
New changeset 411bb75be5d1 by Serhiy Storchaka in branch '3.2':
Issue #15861: tkinter now correctly works with lists and tuples containing
http://hg.python.org/cpython/rev/411bb75be5d1
New changeset 927352d7e994 by Serhiy Storchaka in branch '3.3':
Issue #15861:
Serhiy Storchaka added the comment:
Fixed. Thank you for report, Bryan Oakley.
--
resolution: - fixed
stage: patch review - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15861
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15861
___
___
New submission from Grant:
This module would allow programmers to perform high level workday addition and
subtraction - a commonly needed function in the finance and accounting world
not yet provided in a standard python module.
--
components: Extension Modules
files: workDayMath.py
Serhiy Storchaka added the comment:
Fixed in issue15861. Thank you for report, Clayton Darwin.
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11290
Ezio Melotti added the comment:
I think it would be better to propose this on the Python-ideas mailing list
first. Adding a new module usually requires a PEP, and the module should be
tested in the wild beforehand (i.e. it should be published on PyPI and should
have a decent user base). The
R. David Murray added the comment:
CPython only would not be appropriate, as it is not.
What I usually do in such cases is use AssertRaisesRegex looking for some
critical part of the message that represents the functionality we are looking
for rather than the exact text. In this case, it
Xavier de Gaye added the comment:
Still randomly getting ignored exceptions on 3.3 and the default
branch, got for example:
Exception TypeError: TypeError(argument of type 'NoneType' is not
iterable,) in function _removeHandlerRef at 0x7fcbe6014200 ignored
This happens in a threaded
Changes by Xavier de Gaye xdeg...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file28743/teardown_module.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9501
___
Serhiy Storchaka added the comment:
Tkinter as perhaps any other GUI library must be used only from one thread.
--
nosy: +serhiy.storchaka, terry.reedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6933
Serhiy Storchaka added the comment:
It should be self._getints(...) or None as in other methods.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6160
___
Serhiy Storchaka added the comment:
Can you please update the patch for the default branch tip? It looks too
outdated.
--
nosy: +serhiy.storchaka
versions: +Python 3.4 -Python 3.3
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
status: open - pending
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15019
___
___
Serhiy Storchaka added the comment:
In versions of Tk before 4.0, the set command accepted 4 arguments.
I think this is a new feature and can be applied only to 3.4. Agree with Jim
that for backward compatibility we should keep name index and arbitrary
number of arguments at least for one
Serhiy Storchaka added the comment:
For backward compatibility we must keep accepting arbitrary amount of arguments
at least a one release (with warnings).
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
Roundup Robot added the comment:
New changeset 966887830011 by Vinay Sajip in branch '2.7':
Issue #9501: Improved shutdown handling to deal with module attributes
correctly.
http://hg.python.org/cpython/rev/966887830011
New changeset 8eac88f49cc0 by Vinay Sajip in branch '3.2':
Issue #9501:
Serhiy Storchaka added the comment:
Enough difficult.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16971
___
___
Python-bugs-list mailing list
Zachary Ware added the comment:
Hmmm, actually, I was wrong; Brett's suggestion doesn't cover running as part
of regrtest. It looks like Chris is right and some kind of load_tests magic
will have to happen. I'm looking into it now.
--
___
Python
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15436
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16643
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16700
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15984
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +easy
versions: +Python 3.3, Python 3.4 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7340
___
Serhiy Storchaka added the comment:
Fixed in r86838.
--
nosy: +serhiy.storchaka
resolution: - out of date
stage: - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7468
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: - needs patch
versions: +Python 3.2, Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
components: +Regular Expressions
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
___
___
Antoine Pitrou added the comment:
The current patch does not support overlapped IO, but that could be
added easily enough. (Overlapped IO for normal files might be more
complicated.)
That could be cool. Wouldn't it belong in the fabled winapi module?
--
Serhiy Storchaka added the comment:
The Py_UNICODE* representation is deprecated since 3.3. New features can be
added only to 3.4.
--
nosy: +serhiy.storchaka
resolution: - rejected
status: open - pending
___
Python tracker rep...@bugs.python.org
Serhiy Storchaka added the comment:
Indeed, xml.dom.minidom.parseString() and xml.etree.ElementTree.fromstring()
accepts both bytes and strings, xml.dom.minidom.parse(),
xml.etree.ElementTree.parse() and even xml.sax.parse() accepts both byte and
text streams. Only xml.sax.parseString()
Serhiy Storchaka added the comment:
It's interesting. The example behaves unstable on 3.3+ with C implementation of
picle, sometimes works, sometimes fails. With Python implementation and on 3.2
it works always. On 2.7 it fails always.
A difference between C and Python implementations of
Serhiy Storchaka added the comment:
Already fixed in 3.3+.
--
keywords: +easy
nosy: +eli.bendersky, serhiy.storchaka
stage: - needs patch
type: - enhancement
versions: +Python 2.7, Python 3.2 -Python 2.6
___
Python tracker rep...@bugs.python.org
Antoine Pitrou added the comment:
I find the posted code mystifying. As the name suggests, __getstate__ should
probably not mutate anything.
It would be nice if you could post a simpler example to reproduce issue. Even
better if it doesn't have a mutating __getstate__, I would say.
--
Terry J. Reedy added the comment:
The exception question is messy, but I think it is the wrong question. The doc
is correct in that it says what the code should be doing. To test whether an
argument is in a collection of choices, the code should just say that: 'arg in
choices' (as far as I
David Beazley added the comment:
I have run into this bug myself. Agree that a file-like object should never
report itself as closed unless .close() has been explicitly called on it.
HTTPResponse should not return itself as closed after the end-of-file has been
reached.
I think there is
Matthew Barnett added the comment:
I've attached my attempt at a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file28744/issue9669.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
Chris Jerdonek added the comment:
I don't disagree that this feature could be useful. I'm just not sure it
should go into a maintenance release. It feels like an enhancement to me
because to use this feature, the user will have to use the API in a way they
haven't before, and we will
Chris Jerdonek added the comment:
Note that we would also have to deal with not just the error text but also the
usage string. From the docs:
parser.parse_args('11'.split())
usage: PROG [-h] {5,6,7,8,9}
PROG: error: argument foo: invalid choice: 11 (choose from 5, 6, 7, 8, 9)
--
Serhiy Storchaka added the comment:
Here is a patch which include position number in the invalid bytes exception,
wrap it into SyntaxError, and adds tests for bytes and strings.
--
keywords: +patch
nosy: +serhiy.storchaka
stage: test needed - patch review
versions: +Python 3.4
Added
New submission from Eric Lammerts:
$ echo lovely spam string
$ python -c 'open(nonexistent,r)'
Traceback (most recent call last):
File string, line 1, in module
lovely spam
IOError: [Errno 2] No such file or directory: 'nonexistent'
I see this in python 2.7.3 and 3.2.3 from Ubuntu
New submission from Serhiy Storchaka:
import codecs
codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9', 'replace')
(b'?\\x1?\\x2?\\x3?\\x4?\\x5?\\x6?\\x', 27)
codecs.escape_decode(r'\x1\x2\x3\x4\x5\x6\x7\x8\x9' * 1000, 'replace')
Segmentation fault
--
components: Interpreter Core
Changes by Serhiy Storchaka storch...@gmail.com:
--
stage: needs patch - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9669
___
___
Roundup Robot added the comment:
New changeset 3fa3e7975724 by Benjamin Peterson in branch '3.3':
remove warning about tb circular reference (closes #7340)
http://hg.python.org/cpython/rev/3fa3e7975724
New changeset d866bbdd68e8 by Benjamin Peterson in branch 'default':
merge 3.3 (#7340)
New submission from Anthony Lozano:
If you create a asynchat subclass with a SSL socket asyncore can hang when data
larger than the ac_in_buffer_size comes in.
What (I think) happens is that asyncore uses a select.select call to determine
when to read more data from the socket. On the first
Frank Wierzbicki added the comment:
I have addressed all of the comments, but I don't know the exact procedure
here. Does someone need to say Looks good to me before I push?
--
___
Python tracker rep...@bugs.python.org
Changes by Anthony Lozano amloza...@gmail.com:
--
type: crash - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16976
___
___
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16976
___
___
Python-bugs-list
Serhiy Storchaka added the comment:
If you addressed last Ezio's comments, it will be good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16886
___
Giampaolo Rodola' added the comment:
asyncore simply does not support SSL.
That is tracked in issue 10084.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16976
___
R. David Murray added the comment:
The ideal is if someone says looks good to me. The practical path is that if
you have addressed all the comments, and no one objects after a couple-three
days, you should feel free to commit (unless you feel like you want another
review, in which case you
R. David Murray added the comment:
Heh. Nice find. I'm not sure how practical it is to fix, though. We don't
have any actual rules about what indicates a 'non-file-stand-in' for the
__file__ attribute, just a loose convention that it is an identifier in angle
brackets. If we make that a
Xavier de Gaye added the comment:
The reason why this happens in python 3.3.0 and not in 3.2:
1) lastResort holds a reference to an instance of _StderrHandler at
module tear down, thus potentially triggering a TypeError in
_removeHandlerRef.
2) The logging code has the following two
Xavier de Gaye added the comment:
The initial teardown_module.py can be simply replaced with
(not a contrived example anymore) the following statements
to print the spurious ignored Exceptions:
# Run the script in a loop:
# while [ 1 ]; do python3 teardown_module.py; sleep .1; done
import
Ry Erickson added the comment:
./python -m test -v test_urllib2net
== CPython 3.3.0 (default, Jan 14 2013, 20:45:36) [GCC 4.6.1]
== Linux-3.0.0-29-generic-i686-with-debian-wheezy-sid little-endian
== /home/ry/Desktop/Python-3.3.0/build/test_python_2080
Testing with flags: sys.flags(debug=0,
Terry J. Reedy added the comment:
I took a good look at the 3.3 code. With respect to the main purpose of choices
-- checking user input -- argparse does not require that choices be iterable,
as it *does* use 'in', as it should. Line 2274:
if action.choices is not None and value not
New submission from Chris Jerdonek:
When passing a string for the choices argument, argparse's usage and error
messages differ from its behavior:
p = argparse.ArgumentParser()
p.add_argument('a', choices='abc')
p.parse_args(['d'])
usage: [-h] {a,b,c}
: error: argument a: invalid choice: 'd'
Chris Jerdonek added the comment:
I forgot to mention that argparse uses such cases as examples in its
documentation (one of which was replaced in bddbaaf332d7).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16977
Brian Thorne added the comment:
I've added a single BCM test. Any feedback on it would be good and then I'll
add more complex ones.
Should the documentation be updated in this patch as well?
--
Added file: http://bugs.python.org/file28747/bcm2.patch
Chris Jerdonek added the comment:
argparse does not require that choices be iterable, as it *does* use 'in', as
it should. Line 2274:
if action.choices is not None and value not in action.choices:
There are cases where it's incorrect for argparse to being using in instead
of
Ramchandra Apte added the comment:
Well, it should't open string IMHO.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16974
___
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16974
___
___
Python-bugs-list
Changes by Éric Araujo mer...@netwok.org:
--
nosy: +eric.araujo
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16972
___
___
Ramchandra Apte added the comment:
Is this still valid because this seems fixed in latest Python 3.4 tip.
--
nosy: +ramchandra.apte
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5773
___
Eric Lammerts added the comment:
Does it have to be an identifier in angle brackets? An empty string makes more
sense to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16974
___
Changes by Tshepang Lekhonkhobe tshep...@gmail.com:
--
assignee: docs@python
components: Documentation
files: grammar.diff
keywords: patch
nosy: docs@python, tshepang
priority: normal
severity: normal
status: open
title: fix grammar in 'threading' documentation
versions: Python 2.7
Terry J. Reedy added the comment:
_Actions_container(object) [1198 in 3.3.0 code] .add_argument() [1281] does not
directly check for choices.__iter__ ('__iter__' is not in the file). Nor does
it use the 3.x-only alternative isinstance(choices, collections) ('Iterable' is
also not in the
Ezio Melotti added the comment:
Sorry, the right command is: ./python -m test -v -uall test_urllib2net
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16969
___
Changes by wim glenn wim.gl...@gmail.com:
--
nosy: -wim.glenn
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16697
___
___
Python-bugs-list
1 - 100 of 101 matches
Mail list logo