Baptiste Mispelon added the comment:
(Apologies if this isn't the right place and/or time for this kind of negative
feedback. I'm open to suggestions for a more appropriate venue)
I found it disheartening that my work on this ticket has been erased.
While I understand
Baptiste Mispelon added the comment:
I've tried using subsection (level 3) for each syntax element and I'm not sure
it's a big improvement.
Pros:
* Visible ΒΆ anchors which make it easier to copy/paste a reference link
Cons:
* headings have a slightly different style (
New submission from Baptiste Mispelon :
While writing documentation about regexps for a project I help maintain, I
wanted to link to some specific aspects of Python's implementation (in my case,
non-capturing groups) which are described on
https://docs.python.org/3/library/re.html.
Ther
Baptiste Mispelon added the comment:
I updated the patch based on Raymond's feedback.
I don't know C at all and I tried to mimic the namedtuple usage of timemodule.c
as much as I could (until the code compiled and the test suite passed).
I still have two questions:
* It seems that
Baptiste Mispelon added the comment:
Here's a new patch with the name `IsoCalendarDate` used (it also fixes a wrong
version in the `versionadded` section in the docs).
Thanks
--
Added file: http://bugs.python.org/file39705/issue24416_4
Baptiste Mispelon added the comment:
For the name, I took (un)inspiration from ParseResult:
https://docs.python.org/3/library/urllib.parse.html?highlight=urlparse#urllib.parse.ParseResult
Any better suggestion is welcome of course.
--
___
Python
Baptiste Mispelon added the comment:
Some C code cleanups suggested by haypo.
--
Added file: http://bugs.python.org/file39668/issue24416_3.diff
___
Python tracker
<http://bugs.python.org/issue24
Baptiste Mispelon added the comment:
Here's a second attempt at a patch which seems to work.
I don't know C at all but I used _decimal.c to try and figure out how to use
namedtuple in C.
The code compiles and the datetime test suite runs.
I've added a test for the new featur
Baptiste Mispelon added the comment:
I didn't know about issues with pickling. As for the performance issue, is
date.isocalendar() really performance critical?
I found a precedent for replacing a tuple by a namedtuple:
https://hg.python.org/cpython/rev/ef72142eb8a2
I'm trying
Baptiste Mispelon added the comment:
As far as I know, using a namedtuple in place of a tuple is fully
backwards-compatible.
--
___
Python tracker
<http://bugs.python.org/issue24
New submission from Baptiste Mispelon:
Currently, `date.isocalendar()` returns a plain tuple of (year, week, weekday).
It would be a bit more useful if this tuple could be made into a namedtuple
(with fields year, week and weekday).
--
components: Library (Lib)
messages: 245061
nosy
Baptiste Mispelon added the comment:
I wasn't sure if that was going to be out of scope or not.
Here's an attached patch that fixes the remaining usages of `open` inside
`Doc/includes` to always use a context manager.
--
Added file: http://bugs.python.org
Baptiste Mispelon added the comment:
Patch attached.
--
keywords: +patch
Added file: http://bugs.python.org/file38228/issue23511.diff
___
Python tracker
<http://bugs.python.org/issue23
New submission from Baptiste Mispelon:
The first code example at
https://docs.python.org/3.5/library/email-examples.html throws an
`AttributeError` because `MIMEText`'s constructor expects a `str` object, not a
`bytes` one:
>>> # Import smtplib for the actual sending funct
New submission from Baptiste Mispelon:
When doing a search for "PYTHONDONTWRITEBYTECODE" on the 2.7 docs
(http://docs.python.org/2/search.html?q=PYTHONDONTWRITEBYTECODE), the first
(and only) search result is the following link:
http://docs.python.org/2/using/cmdline.html
New submission from Baptiste Mispelon:
When trying to parse the string `a&b`, the parser raises an UnboundLocalError:
{{{
>>> from html.parser import HTMLParser
>>> p = HTMLParser()
>>> p.feed('a&b')
>>> p.close()
Traceback (most rece
New submission from Baptiste Mispelon:
When a syntax error happens, the exception that gets printed has an extra line
with a caret that helps locate the error.
If the line also contains an identifier with non-ascii characters, then this
caret is misaligned (too far on the right).
I
17 matches
Mail list logo