New submission from André Lehmann :
When using the csv.DictReader a dialect can be given to change the behavior of
interpretation of the csv file.
The Dialect has an option "skipinitialspace" which shall ignore the whitespace
after the delimiter according to the documentati
Patrick Lehmann added the comment:
Having single quotes in docstrings is also ok for Sphinx documentation.
Btw. ReStructured text (docutils) was invented to document Python sources, why
is it not used by Python?
--
___
Python tracker
<ht
Patrick Lehmann added the comment:
I don't think is cross-platform, because I'm still on Windows but in different
shells. More over, pathlib currently support cross-platform comparison. I can
save a configuration file on Linux and open it on Windows with such paths. I
use myPat
Patrick Lehmann added the comment:
Against what branch should I create the PR?
I was a huge number of changes.
I think I'll create multiple PRs to ease the review.
--
___
Python tracker
<https://bugs.python.org/is
Patrick Lehmann added the comment:
Any progress on that issue?
1.5 years passed by and it should be possible to fix the Python documentation
in that time, right?
--
___
Python tracker
<https://bugs.python.org/issue28
New submission from Patrick Lehmann :
pathlib does not compare absolute paths from Windows and MinGW as equal.
Windows absolute path: "C:\path\to\tool"
MinGW absolute path: "/c/path/to/tool"
Cygwin absolute path: "/cygdrive/c/path/to/tool"
I consider this a bug,
John Lehmann added the comment:
I may not have been clear as to how the problem seems when working with a
web.py application:
* visit the web page, see something that needs fixing
* make the required change to app.py
* reload the webpage
* error occurs
New submission from John Lehmann:
In testing the py3 port for the web framework web.py, I found a limitation of
importlib.reload.
A module that was loaded via the command line cannot be reloaded with
importlib.reload.
The basic mode of operation for web.py is to create a web application as a
John Lehmann added the comment:
You get a slightly different error using "-m".
I'll raise a new defect - with some background that may make the bug seem more
reasonable.
--
___
Python tracker
<http://bugs.pyt
New submission from John Lehmann:
Modules that have been loaded as an argument to the command line cannot be
reloaded using importlib.reload.
For example with the attached file:
$ python reloader.py
Traceback (most recent call last):
File "reloader.py", l
Julius Lehmann-Richter added the comment:
Hey Wolfgang,
thank you for the clarification.
I would never write such code of course, I stumbled across this with a
third-party program.
I understand your point of view and I actually agree. I would not have even
opened this report if it had not
Julius Lehmann-Richter added the comment:
Hey Wolfgang,
thank you for looking into this old one again ;)
The argument you are making does not answer the original bug report though as
far as I can see.
My initial problem was not the AttributeError about the missing write but a
ValueError (I
Patrick Lehmann added the comment:
I also found some docstrings using double back-tick plus double single quotes.
For example: ``x.y = v'' in builtins.py in function setattr(...).
--
___
Python tracker
<http://bugs.python.o
Patrick Lehmann added the comment:
I signed the CLA.
--
___
Python tracker
<http://bugs.python.org/issue28710>
___
___
Python-bugs-list mailing list
Unsub
Patrick Lehmann added the comment:
Hello,
I used this regexp on all files:
--
match pattern: `([A-Za-z0-9_]+)'
replace pattern ``\1``
--
I assumed that only identifiers where quoted in such way. I think my editor
Patrick Lehmann added the comment:
Here is the patch file created with:
PS> git diff > docstring_markup.patch
This patchfile effects all files with this markup in the CPython repository.
Kind regards
Patrick
--
keywords: +patch
Added file: http://bugs.python.org/fil
Patrick Lehmann added the comment:
How can I supply a fix?
I have a branch with lots of fixes.
https://github.com/Paebbels/cpython/tree/paebbels/issue-28710?ts=2
Why don't you accept pull requests via GitHub?
Kind regards
Pa
New submission from Patrick Lehmann:
Why does e.g. configparser.ConfigParser contain doc strings with Sphinx
incompatible markup?
The markup starts with back-tick, but ends with a single quote.
Example:
https://github.com/python/cpython/blob/master/Lib/configparser.py?ts=2#L26
Sphinx writes
Changes by John Lehmann :
--
nosy: +j1o1h1n
___
Python tracker
<http://bugs.python.org/issue23972>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Julius Lehmann-Richter:
In Lib/warnings.py the _show_warning function catches IOError with the
commented intention to ward against an "invalid file":
def _show_warning(message, category, filename, lineno, file=None, line=None):
"""Hook to
New submission from Robert Lehmann:
CodecInfo objects as retrieved from codecs.lookup currently throw an exception
when trying to copy or pickle them.
I have attached a patch with a fix and tests.
--
components: Library (Lib)
files: copy_codecinfo.patch
keywords: patch
messages
Marten Lehmann added the comment:
There's nice library called idna on PyPI doing idna2008:
https://pypi.python.org/pypi/idna/0.1
I'd however prefer this standard encoding to be part of standard python.
--
___
Python tracker
<http://bu
Marten Lehmann added the comment:
Which bug ID? Couldn't find it anywhere in the previous comments.
--
___
Python tracker
<http://bugs.python.org/is
Marten Lehmann added the comment:
Could you please tell me, in which exact release or commit this is resolved?
I'm using Python 3.3.0 on Ubuntu Precise and I noticed like the others, that
e.g. easy_install and pip are installed to venv/local/bin instead of venv/bin
and the site-pac
Marten Lehmann added the comment:
I found an interesting link about this issue:
http://www.unicode.org/faq/idn.html
I also checked a domain name of a client that ends with 'straße.de': IE,
Firefox and Chrome still use IDNA2003, Opera already does IDNA2008.
In IDNA2008 a lot of
Marten Lehmann added the comment:
IDNA2008 should be backwards compatible. I can try to explain it in a practical
example:
DENIC was the first registry that actually used IDNA2008 - at a time, where not
even libidn2 officially included the changes required for it. This was mainly
due to the
Marten Lehmann added the comment:
For the embedded Python examples, please prepend the following lines:
from __future__ import unicode_literals
name='müller.com'
So regarding interoperability: Usually you only use one implementation in your
code and hopefully the latest release, b
Marten Lehmann added the comment:
At least from the GNU people, two separate projects exists for this matter:
libidn, the original IDNA translation (http://www.gnu.org/software/libidn/)
libidn2, the IDNA2008 translation
(http://www.gnu.org/software/libidn/libidn2/manual/libidn2.html)
Btw
New submission from Marten Lehmann:
Since Python 2.3 the idna encoding is available for Internationalized Domain
Names. But the current encoding doesn't work according to the latest version of
the spec.
There is a new IDNA2008 specification (RFCs 5890-5894). Although I'm not very
Robert Lehmann added the comment:
Your proposal seems two-fold: (a) make map/filter lazy and (b) have them as
methods instead of functions.
It seems Tim borrowed Guido's time machine and already implemented (a) in
Python 3.x, see http://docs.python.org/py3k/library/functions.html#ma
New submission from Robert Lehmann :
The recently added copybutton.js (r18bbfed9aafa) does not work with the 2.7
docs since they are deployed with JQuery 1.2 (which is shipped with Sphinx 0.6).
Copybutton is an unobtrusive Javascript feature which adds a little button to
all doctests that
Robert Lehmann added the comment:
I can not reproduce either of your findings. Could you provide us with your
version information? re version 2.2.1, _sre 2.2.2, Python 2.6.6, Debian sid
here. Also tested with Python 2.7.2rc1 (same RE).
>>> import re
>>> re.compile(r&q
Robert Lehmann added the comment:
A few issues I'd like to raise:
(1) Multiple callback chains. Is there any code in your existing use case of
GC callbacks where you don't check for the phase argument and follow different
code paths depending on it? If not, having two callb
Robert Lehmann added the comment:
> I wonder whether there are many examples where scientific data is written in
> a form that Python's complex() constructor couldn't currently read, but would
> be able to read if it accepted 'i' in place of 'j'.
I co
Robert Lehmann added the comment:
I have attached a fix and a regression test.
--
keywords: +patch
nosy: +lehmannro
Added file: http://bugs.python.org/file19903/issue10598.patch
___
Python tracker
<http://bugs.python.org/issue10
Robert Lehmann added the comment:
Wouldn't constructing the key as a tuple of (class_, mofile) be much cleaner
than making up an artificial key?
--
nosy: +lehmannro
___
Python tracker
<http://bugs.python.org/i
Lehmann added the comment:
I hope I'm sending this information in the right place.
Trying to install psutil 0.1.3, on Python 2.7 (with Win7 as OS), I get the same
error that was mentionned in this thread:
c:\Users\Andre\Bureau\psutil-0.1.3>setup.py install
running install
runni
Robert Lehmann added the comment:
Thanks for your feedback. I added a few tests and changed the bits you
criticized.
--
Added file: http://bugs.python.org/file14945/range.patch
___
Python tracker
<http://bugs.python.org/issue1766
Robert Lehmann added the comment:
I revised the patch for Python 3.1 and added notices to Misc/NEWS and
the range documentation.
(Changing Type to resource usage.)
--
nosy: +lehmannro
type: feature request -> resource usage
Added file: http://bugs.python.org/file14939/range.pa
Robert Lehmann added the comment:
I addressed the other bug you were experiencing in issue6932.
--
___
Python tracker
<http://bugs.python.org/issue5483>
___
___
Changes by Robert Lehmann :
--
keywords: +patch
Added file: http://bugs.python.org/file14913/shelve-warning.patch
___
Python tracker
<http://bugs.python.org/issue6
New submission from Robert Lehmann :
I'm reopening issue5483 by Zhigang Wang (zhigang) as a separate bug.
Shelves that are still open when Python terminates will try to sync. If
writeback=True, this pickles cached items.
In this example, serialization of Test() re-imports __main__, whi
Robert Lehmann added the comment:
I think you're misquoting Python's shelve module documentation in your
first sentence. The documentation says:
"By default modified objects are written only when assigned to the shelf
[...]. If the optional writeback parameter is set to Tr
Robert Lehmann added the comment:
If I understand you correctly, your proposal is the following: use
Shelf.cache to cache *all* objects instead of only keeping live
references. Your patch retains the cache forever instead of purging it
on sync. (All these changes only apply with writeback=True
New submission from Robert Lehmann :
The patches in issue1736190 deprecated fifo and simple_producers. These
are safe for removal in Python 3.0.
I attached a patch purging fifo and simple_producers from py3k code and
tests. The docs are mostly trivial as well but also touched by my other
issue
Robert Lehmann added the comment:
I found another bug: async_chat.push still talks about automatically
creating a simple_producer, which is no longer true.
I added a fix to the patch.
--
Added file: http://bugs.python.org/file14893/asynchat-docs.patch
Robert Lehmann added the comment:
Excuse me -- fifo and simple_producer are indeed documented and need a
deprecation notice. New patch attached (plus reworded paragraph about
async_chat.__init__).
--
Added file: http://bugs.python.org/file14889/asynchat-docs.patch
New submission from Robert Lehmann :
asynchat.async_chat grew a _collect_incoming and a _get_data method in
2.6. The constructor has been extended to conform to
asyncore.dispatcher's. This should be documented.
Apart from that, fifo and simple_producer have been deprecated
New submission from Robert Lehmann :
The documentation for hashlib.hash.digest_size/block_size (notice the
hash) renders as documentation for hashlib.*_size, which does not exist.
Fixed by explicitly declaring membership; patch attached.
--
assignee: georg.brandl
components
Changes by Robert Lehmann :
Added file: http://bugs.python.org/file14886/future.patch
___
Python tracker
<http://bugs.python.org/issue6574>
___
___
Python-bugs-list mailin
Robert Lehmann added the comment:
Implemented proposed changes.
Additionally, I'd change line 13 to state either "future statements" or
"`future`:ref:" instead of "future_statements", which does not make
sense in normal, unmarked text.
--
Added fil
Robert Lehmann added the comment:
I composed a list of __future__ features and linked the respective PEPs.
Even though the language reference would be a better place to store such
general information (being PEP'd and all) I found the library
reference's __future__.py documentati
Robert Lehmann added the comment:
This only seems to be the case with the C implementation of json (_json).
>>> json.encoder.c_make_encoder = None
>>> json.dumps(OrderedDict(items))
'{"one": 1, "two": 2, "three": 3, "four":
New submission from Robert Lehmann :
There are a few errors in the ctypes documentation covering function
calls using the example of `libc.printf`. It's basically just typos but
they are really confusing when trying to understand the examples.
Patch to trunk is attached. Corrections s
Robert Lehmann added the comment:
When I started writing this patch this was actually what I intended. But
having ``fixlen(range(3), 2)`` return 0 1 2 struck me as odd. Renaming
the function to `pad` would help there indeed.
It depends on which use case is more common: either fixing an
New submission from Robert Lehmann :
As raised recently on python-ideas [1]_, an itertools method fixing
iterators to a certain length might be handy (where fixing is either
cutting elements off or appending values).
I appended a patch implementing this feature in Python/C, unit tests and
New submission from Robert Lehmann <[EMAIL PROTECTED]>:
The sqlite3 documentation misses Row and Cursor.description.
Additionally it does not use the best markup in all places (missing
links, basically, and forgotten .. class:: statements).
A patch is attached.
--
as
New submission from Robert Lehmann <[EMAIL PROTECTED]>:
The markup in the Doc/whatsnew/2.6.rst document is somewhat messy in
some places. I fixed indentation (spaces to tabs -- made some things
readable in the docutils output but not in the source), code samples
("->" notati
New submission from Robert Lehmann <[EMAIL PROTECTED]>:
The `sqlite3` docs are a little unpythonic. When using `str.join` on
`Connection.iterdump`, the example in the docs manually unpacks the
generator using a LC. I propose this'd be improved.
Patch attached. Same applies to th
Robert Lehmann <[EMAIL PROTECTED]> added the comment:
It seems "single-quoted" doesn't mean the actual quotation sign used but
rather how many you used. Compare the multiline triple quote syntax:
$ cat foo.py
"""bar
$ python foo.py
File "foo.py",
Robert Lehmann <[EMAIL PROTECTED]> added the comment:
Your example is parsed as [e for i in (j in ['a','b','c'])] and since
`j` is not defined, you get a NameError. If it was defined, you would
still be iterating a boolean (which is not defined).
Grammatica
Robert Lehmann added the comment:
In the example code from the tutorial you gave, there was still a comma
separator between the string 'equals' and the reference `x`. This is
missing when you entered the code, that's why Python is throwing an
exception there.
--
n
Robert Lehmann added the comment:
Right, the second link requires a tilde -- I just tried the first one
(which works without). You should change all lines to be 80 characters
wide maximum, though (can quickly be done by any commiter, not worth a
new patch IMO). The dash thing looks okay
Robert Lehmann added the comment:
Aye, this patch removes the spaces and re-aligns the paragraph of the
latter link.
--
nosy: +lehmannro
Added file: http://bugs.python.org/file9434/spaces.patch
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.p
Robert Lehmann added the comment:
This problem has been removed in the current version of the
documentation (http://docs.python.org/dev/install/index.html) -- old
docs aren't updated. It has an own section now
(http://docs.python.org/dev/bugs.html).
Issue can be closed.
--
65 matches
Mail list logo