New submission from Jamie Bliss :
As it says in the title. ._replace() (inherited from namedtuple) doesn't allow
changing the generated properties.
While this is a natural consequence of how ParseResult is implemented, I would
describe it as a deficiency of developer experience.
My
Jamie Bliss added the comment:
Similarly, stumbled across this working on
https://github.com/pyz-dispenser/cpython-static
This is particularly problematic because of the SQLite module's MODULE_NAME
macro.
--
nosy: +astronouth7303
___
P
Jamie Bliss added the comment:
I consider it debatable as to if this is a bug in ABC (for using recursion in a
way that limits class tree depth) or in CPython (for accounting recursion in
such a way you can get significantly shallower stacks
Changes by Jamie Bliss :
--
nosy: +astronouth7303
___
Python tracker
<http://bugs.python.org/issue29221>
___
___
Python-bugs-list mailing list
Unsubscribe:
Jamie Bliss added the comment:
* Should be backwards compatible with people who actually use Morsel
* Didn't even attempt to document it
* Instead of having the Morsel dict being filled initially, unset
attributes are, well, unset
* .key, .value, and .coded_value are now property()s
* .val
Jamie Bliss added the comment:
Sure, I'll do that.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2211>
__
___
Python-bugs-list mailing list
U
New submission from Jamie Bliss:
The primary offender is in BaseCookie.load(), which uses the test:
type(rawdata) == type("")
which should be:
isinstance(rawdata, basestring)
--
components: Library (Lib)
messages: 63145
nosy: astronouth7303
severity: normal
status:
New submission from Jamie Bliss:
Cookie.Morsel lacks in properly overloading dict methods, amongst other
things:
* .__eq__() does not take .key and .value into account
* .copy() returns a dict, not a Morsel
* .update() allows invalid attributes in, eg
Morsel().update({'eggs':'sp
Jamie Bliss added the comment:
They might be the same bug, with different manifestations.
That bug is starting to get rather annoying.
(At first, I thought it wasn't. Surprise, surprise.)
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python
Jamie Bliss added the comment:
depending on the use case, updatecache() will be passed
'distutils/cmd.py', but still turn that into '/usr/lib/python2.5/cmd.py'.
I have not messed with my stock Python modules. My sys.path is:
* /usr/lib/python2.5/site-packages/recaptcha_cl
10 matches
Mail list logo