Pierre Quentel added the comment:
I have released the module as httpcompressionserver on PyPI :
https://pypi.org/project/httpcompressionserver/
--
___
Python tracker
<https://bugs.python.org/issue30
Change by Benoit Pierre :
--
nosy: +benoit-pierre
___
Python tracker
<https://bugs.python.org/issue32696>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Pierre Quentel :
--
nosy: +quentel
___
Python tracker
<https://bugs.python.org/issue10486>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pierre Quentel added the comment:
The QUERY_STRING value is always set by the code at lines 1135-1137 of
http.server:
for k in ('QUERY_STRING', 'REMOTE_HOST', 'CONTENT_LENGTH',
'HTTP_USER_AGENT', 'HTTP_COOKIE', 'HTTP_RE
Pierre Quentel added the comment:
Thanks Hynek for raising this issue from the dead
Patch proposal attached. Sorry if there are markup errors, it's my first
contact with rst
--
Added file: http://bugs.python.org/file25416/cgi.rst
___
P
Pierre Quentel added the comment:
Sorry about that. I didn't dare to say I was also a Mercurial newbie
--
Added file: http://bugs.python.org/file25421/cgi-doc-update.patch
___
Python tracker
<http://bugs.python.org/is
Changes by Pierre Quentel :
Removed file: http://bugs.python.org/file25416/cgi.rst
___
Python tracker
<http://bugs.python.org/issue11352>
___
___
Python-bugs-list mailin
Pierre Quentel added the comment:
Thanks Senthil
I spot a typo in the first modified paragraph : "cet" instead of "set"
--
___
Python tracker
<http://bug
Changes by Pierre Quentel :
--
nosy: +quentel
___
Python tracker
<http://bugs.python.org/issue8077>
___
___
Python-bugs-list mailing list
Unsubscribe:
Pierre Quentel added the comment:
There are 2 different problems :
- handling of data by cgi.FieldStorage (issue 4953) : fixed since version 3.2
- in http.server.CGIHTTPRequestHandler, for POST requests on Windows, before
opening the subprocess in run_cgi() all data is read by a *single* call
Pierre Quentel added the comment:
Hi Glenn, good to hear from you ;-)
I think the fix can be simplified replacing
dir_sep = collapsed_path.find('/', 1)
by
dir_sep = collapsed_path.rfind('/', 1)
--
nosy: +quentel
___
P
Pierre Quentel added the comment:
Thanks for the explanation
I still think that the patch can be simplified, not using path lengths and the
"found" flag
collapsed_path = _url_collapse_path(self.path)
for head in self.cgi_directories:
if head==collapsed_path:
self.cgi_in
Pierre Quentel added the comment:
Hi Glenn,
My proposal was not about optimization, I just thought that "if x==y" is
simpler than "if len(x)==len(y) and x==y". Since we don't expect that there
will be many directories in the list, I don't think optimizing is
Pierre Quentel added the comment:
Hi,
I started working on a revised version of the whole cgi documentation. I mostly
changed paragraphs 2 & 3 ("Using the CGI module" and "Higher level interface")
and replaced them by a paragraph still called "Using the CGI modu
Pierre Quentel added the comment:
I attach a new version after sharing thought with Glenn
CGI scripts are still unable to define which encoding to use to print the
strings received from the user agent. A patch was proposed #11066 but the issue
is still pending. The new version documents this
New submission from Pierre K:
Idle crashes systematically when holding the ^button, which is regularly used
in French. Very very annoying.
--
components: IDLE
files: Script.sh
messages: 214726
nosy: pancakesnutella
priority: normal
severity: normal
status: open
title: Idle Crash with
Pierre K added the comment:
Thanks Ned for the advice & the links, indeed, there is a warning. The Tcl/Tk
8.5.15 version works like a charm!
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/
Pierre Tardy added the comment:
I made a similar patch today to fix the same issue, and I confirm the problem
and the correctness of the solution
Please approve the patch and fix this bug.
--
nosy: +Pierre.Tardy
___
Python tracker
<h
New submission from Pierre Hanser :
The json module provides an encoder python -> json.
The encoding may be specialized by the user, using
the cls parameter of the dumps function.
But all simple types are always handled by the library encoder,
the user encoder is only used as a last resort
Pierre Hanser added the comment:
you realize that the current handling is incorrect and also not documented?
and that the described case is from the real world: it prevents using pydbus
and dbus.Boolean type to send a json boolean
I don't take your argument about performance:
i would li
New submission from Pierre Bourdon :
Chapter 14 (Floating Point Arithmetic: Issues and Limitations) of the
Python 3.x tutorial contains integers with long suffix (424242L) when
talking about as_integer_ratio.
Patch is attached.
--
assignee: georg.brandl
components: Documentation
files
New submission from Pierre Bourdon :
In part 3.1.1 of the Python 3.1 tutorial, the following code sample is
obsolete :
>>> 8/5 # Fractions aren't lost when dividing integers
1.6001
In a fresh Python 3.1, 8/5 is now displayed as 1.6. The note below the
code sample sho
New submission from Pierre Quentel:
SimpleHTTPServer send a Last-Modified response header, but doesn't take into
account the If-Modified-Since header if it was sent by the user agent.
If a url matches a file and this file was not modified after the value of the
If-Modified-Since header
Pierre Raybaut added the comment:
How can I help to ensure that the patch submitted by Jason Roberts is actually
taken into account in next releases of Python?
I too would want to use this "remove" feature in distutils Windows installers.
For example, I was confronted to this bug/
Pierre Raybaut added the comment:
The submitted patch actually works (tested with Python 2.7.3 on Windows XP) and
also fixes another bug: the installation script is executed when uninstalling
(that feature is not implemented in current Python stable versions despite the
mention in docstrings
New submission from Pierre Boulanger:
I try to install python 3.4.2-amd 64 but i have an error: a program used for
the installation could not be run.
befor i have python 3.4.1 and it work perfectly.
--
components: Installation
messages: 229494
nosy: brp-log
priority: normal
severity
Pierre Boulanger added the comment:
the error occurs when the installer create shortcuts after removed files of old
python version.
--
___
Python tracker
<http://bugs.python.org/issue22
Pierre Boulanger added the comment:
the result of log is:
=== Verbose logging started: 18-10-14 08:42:21 Build type: SHIP UNICODE
5.00.9600.00 Calling process: C:\WINDOWS\system32\msiexec.exe ===
MSI (c) (C4:34) [08:42:21:518]: Font created. Charset: Req=0, Ret=0, Font:
Req=MS Shell Dlg
Pierre Boulanger added the comment:
Here is the right log...
--
Added file: http://bugs.python.org/file36962/log.txt
___
Python tracker
<http://bugs.python.org/issue22
Pierre Boulanger added the comment:
your soluce works.
great tanks !
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue22648>
___
___
Py
New submission from Pierre Nugues:
The sorted() function does not work properly with macosx.
Here is a script to reproduce the issue:
import locale
locale.setlocale(locale.LC_ALL, "fr_FR.UTF-8")
a = ["A", "E", "Z", "a", "e", "é&
New submission from Pierre Nugues:
Greek letters are not properly sorted when a locale is set. I tested a French
and a Greek locales. Here is an output obtained from the Python interactive
shell available from the python.org home page:
In [22]: a
Out[22]:
('Ά',
'Γ',
Pierre Nugues added the comment:
Hello David,
This is not the same issue as 23195. I tested the Greek letters on your
interactive console available at Python.org and this is not related to OS X.
The Greek sorting works for all the characters I tested except the ‘ῖ’
character, which is in the
Pierre Nugues added the comment:
Hello Victor,
Thank you for your prompt answer.
> Which order do you expect? What is your OS? Result on Linux (Fedora 21) with
> the french UTF-8 locale.
You can try this ICU demo
http://demo.icu-project.org/icu-bin/locexp?_=el&d_=fr&x=col and
Pierre Quentel added the comment:
Yes, I will be able to review the patch next week
2015-07-31 18:13 GMT+02:00 STINNER Victor :
>
> STINNER Victor added the comment:
>
> @Pierre Quentel: Hi! Are you still working on CGI? Can you please review
> this patch? Thanks.
>
>
Pierre Quentel added the comment:
I don't really see why there is a Content-Length in the headers of a
multipart form data. The specification at
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2 doesn't
mention it, and it is absent in the example that looks like the one
Pierre Quentel added the comment:
Victor, you can apply the patch and close the issue.
Le 7 août 2015 17:12, "Peter Landry" a écrit :
>
> Peter Landry added the comment:
>
> A new patch that simply removes Content-Length from part headers when
> present.
>
>
New submission from Pierre Ducroquet:
The what's new section about PEP 515 says :
«With PEP 515, though, you can use underscores to separate digits as desired to
make numeric literals easier to read: 1_000_000_000_000_000. Underscores can be
used with other numeric literals beyond int
New submission from Pierre Nugues:
I am using Unicode regexes in the form of properties: \p{} and these are not
standard in the re module. I have to use the new regex module, which has to be
installed separately.
I would like to see the replacement of re with regex in the future Python
New submission from Pierre Bousquie:
At pyconf-fr 2016 Florian Strzelecki (@Exirel) made a great talk on how to
make good documentation. At one time he asked "python logging doc?, did you
realy found it clear and helpfull?" clear answer from the crowd: not at all.
Stephane Wirtel a
Pierre Bousquie added the comment:
Hi stephane,
I have tweeted Florian and he is still interested.
I think the doc has a lot of information but does not organize it efficiently.
My notes from the conference:
- Logging reccord attribute is at 16.6.7 (middle of the doc) and that's a mus
Pierre Bousquie added the comment:
Thank you Vinay for your feedback.
RTD seems a very good start to me.
Florian thanks for joining :). I'm not leaving you alone on this!
I don't mind closing the "bug" request. It was mainly for Stéphane Wirtel
:)... but it's still &q
New submission from JP St. Pierre :
With all the tools I've used, the target of a symlink appears to be relative to
the actual symlink entry. Fix this.
--
components: Library (Lib)
messages: 120208
nosy: magcius
priority: normal
severity: normal
status: open
title: tarinfo shoul
Changes by JP St. Pierre :
--
keywords: +patch
Added file: http://bugs.python.org/file19462/tarinfo-10292.diff
___
Python tracker
<http://bugs.python.org/issue10
Jasper St. Pierre added the comment:
Oh man, attaching the wrong diff and getting the diff wrong.
The issue I found with Python 2.7:
when creating a simple link in tar:
$ mkdir tar_test
$ cd tar_test
$ touch one
$ ln -s one two
$ cd ..
$ tar czf tar_test.tgz tar_test
It seems obvious that
Jasper St. Pierre added the comment:
Uh, I just noticed the "python2.6" in the traceback.
Looks like I *was* using 2.6 because Cygwin decided
to downgrade for some reason.
Uh, sorry about that.
--
___
Python tracker
<http://bu
New submission from Pierre-Jean Grenier :
The module tarfile contains some methods for knowing whether an archive member
is a regular file/a directory/a symlink. Apart from an "is_dir()" method, there
was nothing alike in the zipfile module. For an on-going project, I needed to
kn
Change by Pierre-Jean Grenier :
--
keywords: +patch
pull_requests: +15108
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/15401
___
Python tracker
<https://bugs.python.org/issu
Pierre-Jean Grenier added the comment:
The PR went through review and has been awaiting core review for almost a
month, anyone to have a look at it? :)
--
___
Python tracker
<https://bugs.python.org/issue37
Pierre-Alain Moret added the comment:
The DICOM format is indeed very widely used in the medical field and for me it
deserves to be added in stdlib. I do not see why it is more specific than rast
format which is included. Moreover it should be easy to add because even if the
complete format
New submission from Jasper St. Pierre :
http://docs.python.org/dev/library/reprlib.html
"""
Formatting methods for specific types are implemented as methods with a name
based on the type name. In the method name, TYPE is replaced by
string.join(string.split(type(obj).__name__,
Jasper St. Pierre added the comment:
Yes. Yes it would. In my opinion, it really shouldn't do this sort of name
mangling, as it's a terrible idea, but whatever.
--
___
Python tracker
<http://bugs.python.o
Jasper St. Pierre added the comment:
The documentation is just flat out wrong, actually:
if ' ' in typename:
parts = typename.split()
typename = '_'.join(parts)
The documentation is claiming the inverse.
I don't know why we would ever have a space
Changes by Pierre Le Marre :
--
components: None
nosy: plemarre
priority: normal
severity: normal
status: open
title: sqlite3.Connection.iterdump() does not work with row_factory =
sqlite3.Row
type: crash
versions: Python 3.2
___
Python tracker
Pierre Le Marre added the comment:
I use Python 3.2.3 on GNU/Linux 64bits (openSUSE 12.2).
I have created an in-memory connection with the following code:
conn = sqlite3.connect(":memory:", detect_types=sqlite3.PARSE_DECLTYPES,
check_same_thread=False)
conn.row_factory = sqlite3.R
Pierre Le Marre added the comment:
By the way, this issue does not appear with Python 3.2.2.
--
___
Python tracker
<http://bugs.python.org/issue15545>
___
___
Pierre Le Marre added the comment:
Thanks for the patch. In which version will be your patch integrated?
--
___
Python tracker
<http://bugs.python.org/issue15
Jean-Pierre Flori added the comment:
Hello all,
I've been working on porting Sage, which heavily relies on Python to say the
least, to Cygwin so would be very interested in improving Python support for
Cygwin.
Lately we've been having troubles with Python and ncurses, s
New submission from Pierre-Antoine BRAMERET:
Hi,
With the following code:
class Base(object): pass
class Foo(Base):
def __init__(self):
super(Foo,self).__init__()
if False:
del Foo
I expect that Foo() would give me a Foo instance. Instead, it raises the
following exception
Pierre-Antoine BRAMERET added the comment:
Sorry, I miscopied the last Traceback. Please find the following:
Traceback (most recent call last):
File "", line 1, in
File "", line 4, in __init__
assert Foo
UnboundLocalError: local variable 'Foo'
Pierre-Antoine BRAMERET added the comment:
Hi,
Tanks for your clear answer. I find it surprising that "del" bounds the name
locally, but with little more thinking, it is not...
--
resolution: -> not a bug
status: open -> closed
__
New submission from JP St. Pierre :
Uploading a file to PyPI fails when a user has a long password, as
base64.encodestring linewraps data. Either replace '\n' with '', or use
base64.standard_b64encode
--
assignee: tarek
components: Distutils
messages: 96709
nosy: mag
JP St. Pierre added the comment:
This patch should fix the bug.
--
keywords: +patch
Added file: http://bugs.python.org/file15631/auth_7552.patch
___
Python tracker
<http://bugs.python.org/issue7
New submission from Pierre Le Marre:
Hi, I use Python 3.2.3 and Python 3.3.0 on Windows 7 64 bits.
I have an issue with the short script enclosed.
I use the module logging to get a log file with logging.FileHandler. There were
some issues about the file access on Windows, so I added a buffer
Pierre Le Marre added the comment:
Thank you for the tip! I just try it, it works. This behavior is not
documented, so it is quite confusing.
I try also to use ``collections.OrderedDict``, as a quick fix, but it does not
work. It seems we need here a simple resolution order
New submission from Pierre van de Laar :
On windows, with python 3.9, with unittests,
My test case fails when I use the following lines of code
```
result = map(lambda x: self.substitute_in_expression(x),
sequence.sequence)
```
It works fine with
```
result = list()
for x
Pierre van de Laar added the comment:
Zip didn't contain the test cases from the tests directory (sorry for that)
--
Added file: https://bugs.python.org/file49592/tests.zip
___
Python tracker
<https://bugs.python.org/is
Pierre van de Laar added the comment:
Not a bug: tuple is an iterator but an iterator is not a tuple.
Yet iterators are often accepted during initialization...
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
_
Change by Simon Bernier St-Pierre :
--
keywords: +patch
pull_requests: +13493
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/13586
___
Python tracker
<https://bugs.python.org/issu
Change by Simon Bernier St-Pierre :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36686>
___
__
New submission from Simon Bernier St-Pierre:
Because of the special way Path and PurePath are instantiated, they can't be
inherited like a normal class. Here's an example of the issue:
>>> import pathlib
>>> class MyPath(pathlib.Path):
... pass
...
>>>
New submission from Simon Bernier St-Pierre :
I had trouble figuring out how to simply inherit stdin, stdout, or stderr in
the asyncio.create_subprocess_exec / asyncio.subprocess_exec docs. My
experiments show that passing either None or `sys.std*` works but the way the
docs are written make
Change by Simon Bernier St-Pierre :
--
nosy: sbstp
priority: normal
severity: normal
status: open
title: subprocess encoding
___
Python tracker
<https://bugs.python.org/issue36
Change by Simon Bernier St-Pierre :
--
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue36687>
___
___
Pyth
Simon Bernier St-Pierre added the comment:
Could be cool to also mention that `encoding` / `errors` does not work yet.
https://bugs.python.org/issue31087
--
___
Python tracker
<https://bugs.python.org/issue36
New submission from Pierre van de Laar :
I would like to add information to CDATA in an Xml Tree.
Turns out I am not the only one:
https://stackoverflow.com/questions/174890/how-to-output-cdata-using-elementtree
Can the library be extended to also support CDATA (similar to Comment)?
Saves a
New submission from Simon Bernier St-Pierre:
I want to receive data on a UDP socket that was bound, without blocking the
event loop. I've looked through the asyncio docs, and I haven't found a way of
doing that using the coroutine API (yield from/await).
There is a sock_recv
Simon Bernier St-Pierre added the comment:
That could work. I came up with this
class MyProtocol(aio.DatagramProtocol):
def __init__(self, fut):
self._fut = fut
def datagram_received(self, data, addr):
self.fut.set_result((data, addr))
fut = aio.Future
Simon Bernier St-Pierre added the comment:
I want to have a loop that receives data like this:
socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
socket.bind(('0.0.0.0', port))
socket.setblocking(False)
while True:
data, addr = await loop.sock_recvfrom(sock, 4096)
Simon Bernier St-Pierre added the comment:
I created a patch for it on the asyncio github repo.
https://github.com/python/asyncio/pull/321
--
___
Python tracker
<http://bugs.python.org/issue26
Changes by Simon Bernier St-Pierre :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue26395>
___
___
Python-bugs-list mailing list
Un
201 - 281 of 281 matches
Mail list logo