[issue30576] http.server should support HTTP compression (gzip)

2018-09-22 Thread Pierre Quentel
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

[issue32696] Fix pickling exceptions with multiple arguments

2018-10-29 Thread Benoit Pierre
Change by Benoit Pierre : -- nosy: +benoit-pierre ___ Python tracker <https://bugs.python.org/issue32696> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10486] http.server doesn't set all CGI environment variables

2018-11-10 Thread Pierre Quentel
Change by Pierre Quentel : -- nosy: +quentel ___ Python tracker <https://bugs.python.org/issue10486> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10486] http.server doesn't set all CGI environment variables

2018-11-13 Thread Pierre Quentel
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

[issue11352] Update cgi module doc

2012-04-30 Thread Pierre Quentel
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

[issue11352] Update cgi module doc

2012-04-30 Thread Pierre Quentel
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

[issue11352] Update cgi module doc

2012-04-30 Thread Pierre Quentel
Changes by Pierre Quentel : Removed file: http://bugs.python.org/file25416/cgi.rst ___ Python tracker <http://bugs.python.org/issue11352> ___ ___ Python-bugs-list mailin

[issue11352] Update cgi module doc

2012-04-30 Thread Pierre Quentel
Pierre Quentel added the comment: Thanks Senthil I spot a typo in the first modified paragraph : "cet" instead of "set" -- ___ Python tracker <http://bug

[issue8077] cgi handling of POSTed files is broken

2012-05-02 Thread Pierre Quentel
Changes by Pierre Quentel : -- nosy: +quentel ___ Python tracker <http://bugs.python.org/issue8077> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8077] cgi handling of POSTed files is broken

2012-05-03 Thread Pierre Quentel
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-06 Thread Pierre Quentel
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-06 Thread Pierre Quentel
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

[issue14565] is_cgi doesn't function as documented for cgi_directories

2012-05-07 Thread Pierre Quentel
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

[issue11352] Update cgi module doc

2012-05-09 Thread Pierre Quentel
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

[issue11352] Update cgi module doc

2012-05-10 Thread Pierre Quentel
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

[issue21053] Idle Crash with the ^ button

2014-03-24 Thread Pierre K
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

[issue21053] Idle Crash with the ^ button

2014-03-24 Thread Pierre K
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/

[issue17849] Missing size argument in readline() method for httplib's class LineAndFileWrapper

2014-06-05 Thread Pierre Tardy
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

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
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

[issue5535] json custom encoder not fully functionnal

2009-03-22 Thread Pierre Hanser
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

[issue6353] "L" integer suffix in Python 3.1 tutorial

2009-06-28 Thread Pierre Bourdon
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

[issue6354] Old floating point representation in 3.1 tutorial

2009-06-28 Thread Pierre Bourdon
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

[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-02-25 Thread Pierre Quentel
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

[issue13276] bdist_wininst-created installer does not run the postinstallation script when uninstalling

2013-03-18 Thread Pierre Raybaut
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/

[issue15797] bdist_msi does not pass -install/remove flags to install_script

2013-03-22 Thread Pierre Raybaut
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

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-15 Thread Pierre Boulanger
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

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-15 Thread Pierre Boulanger
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

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-17 Thread Pierre Boulanger
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

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-18 Thread Pierre Boulanger
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

[issue22648] Unable to install Python 3.4.2 amd64 on Windows 8.1

2014-10-20 Thread Pierre Boulanger
Pierre Boulanger added the comment: your soluce works. great tanks ! -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue22648> ___ ___ Py

[issue23195] Sorting with locale does not work properly with Python3 on Macos

2015-01-08 Thread Pierre Nugues
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", "é&

[issue23196] Greek letters not sorted properly

2015-01-08 Thread Pierre Nugues
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]: ('Ά', 'Γ',

[issue23196] Greek letters not sorted properly

2015-01-09 Thread Pierre Nugues
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

[issue23196] Greek letters not sorted properly

2015-01-09 Thread Pierre Nugues
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

[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-01 Thread Pierre Quentel
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. > >

[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-07 Thread Pierre Quentel
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

[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-08 Thread Pierre Quentel
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. > >

[issue28116] Error in what's new - PEP 515

2016-09-13 Thread Pierre Ducroquet
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

[issue28461] Replacement of re with the regex package

2016-10-17 Thread Pierre Nugues
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

[issue28499] Logging module documentation needs a rework.

2016-10-21 Thread Pierre Bousquie
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

[issue28499] Logging module documentation needs a rework.

2016-10-22 Thread Pierre Bousquie
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

[issue28499] Logging module documentation needs a rework.

2016-11-02 Thread Pierre Bousquie
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

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
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

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
Changes by JP St. Pierre : -- keywords: +patch Added file: http://bugs.python.org/file19462/tarinfo-10292.diff ___ Python tracker <http://bugs.python.org/issue10

[issue10292] tarinfo should use relative symlinks

2010-11-02 Thread Jasper St. Pierre
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

[issue10292] tarinfo should use relative symlinks

2010-11-02 Thread Jasper St. Pierre
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

[issue37921] Improve zipfile: add support for symlinks

2019-08-22 Thread Pierre-Jean Grenier
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

[issue37921] Improve zipfile: add support for symlinks

2019-08-22 Thread Pierre-Jean Grenier
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

[issue37921] Improve zipfile: add support for symlinks

2019-09-21 Thread Pierre-Jean Grenier
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

[issue42916] Support for DICOM image file format in imghdr module

2021-04-11 Thread Pierre-Alain Moret
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

[issue14824] reprlib documentation references string module

2012-05-15 Thread Jasper St. Pierre
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__,

[issue14824] reprlib documentation references string module

2012-05-16 Thread Jasper St. Pierre
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

[issue14824] reprlib documentation references string module

2012-05-18 Thread Jasper St. Pierre
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

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-03 Thread Pierre Le Marre
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

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-03 Thread Pierre Le Marre
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

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-08-06 Thread Pierre Le Marre
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> ___ ___

[issue15545] sqlite3.Connection.iterdump() does not work with row_factory = sqlite3.Row

2012-09-21 Thread Pierre Le Marre
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

[issue18634] mingw find import library

2013-11-29 Thread Jean-Pierre Flori
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

[issue22574] super() and del in the same method leads to UnboundLocalError

2014-10-07 Thread Pierre-Antoine BRAMERET
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

[issue22574] super() and del in the same method leads to UnboundLocalError

2014-10-07 Thread Pierre-Antoine BRAMERET
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'

[issue22574] super() and del in the same method leads to UnboundLocalError

2014-10-07 Thread Pierre-Antoine BRAMERET
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 __

[issue7552] uploading fails on long passwords

2009-12-20 Thread JP St. Pierre
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

[issue7552] uploading fails on long passwords

2009-12-20 Thread JP St. Pierre
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

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-21 Thread Pierre Le Marre
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

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-22 Thread Pierre Le Marre
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

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
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

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
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

[issue42320] unexpected difference between map and list

2020-11-11 Thread Pierre van de Laar
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 _

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-26 Thread Simon Bernier St-Pierre
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

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-05-27 Thread Simon Bernier St-Pierre
Change by Simon Bernier St-Pierre : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36686> ___ __

[issue30957] pathlib: Path and PurePath cannot be subclassed

2017-07-17 Thread Simon Bernier St-Pierre
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 ... >>>

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-04-20 Thread Simon Bernier St-Pierre
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

[issue36687] subprocess encoding

2019-04-20 Thread Simon Bernier St-Pierre
Change by Simon Bernier St-Pierre : -- nosy: sbstp priority: normal severity: normal status: open title: subprocess encoding ___ Python tracker <https://bugs.python.org/issue36

[issue36687] subprocess encoding

2019-04-20 Thread Simon Bernier St-Pierre
Change by Simon Bernier St-Pierre : -- stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue36687> ___ ___ Pyth

[issue36686] Docs: asyncio.loop.subprocess_exec documentation is confusing, it's not clear how to inherit stdin, stdout or stderr in the subprocess

2019-04-20 Thread Simon Bernier St-Pierre
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

[issue36874] Support CDATA by xml.etree.(c)ElementTree

2019-05-10 Thread Pierre van de Laar
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-20 Thread Simon Bernier St-Pierre
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)

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-21 Thread Simon Bernier St-Pierre
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

[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

2016-02-22 Thread Simon Bernier St-Pierre
Changes by Simon Bernier St-Pierre : -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue26395> ___ ___ Python-bugs-list mailing list Un

<    1   2   3