[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Charles Merriam
New submission from Charles Merriam : On page: https://docs.python.org/3.8/library/itertools.html In the heading summary, in the "Iterators terminating on the shortest input sequence:" section, in the "zip_longest()" table row, in the "Arguments" column, the te

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Charles Merriam
Charles Merriam added the comment: Hi Cheryl, No. I've dealt with the Team Python long cycles for random pull requests before. Charles On Fri, Apr 12, 2019 at 2:27 PM Cheryl Sabella wrote: > > Cheryl Sabella added the comment: > > Good catch! In the same section

[issue31525] require sqlite3_prepare_v2

2019-04-23 Thread Charles P
Change by Charles P : -- pull_requests: +12852 ___ Python tracker <https://bugs.python.org/issue31525> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36768] distutils.util.convert_path mangles windows paths with forward slashes

2019-05-01 Thread Charles P
New submission from Charles P : https://github.com/python/cpython/blob/master/Lib/distutils/util.py#L106-L131 Due to the split('/') and os.path.join(), this function converts an absolute path of the form "C:/foobar" into a relative "C:foobar", which is li

[issue31640] Document exit() from parse_args

2017-09-29 Thread Charles Merriam
New submission from Charles Merriam : It is unexpected to testers and users to ArgParse that it terminates the process; one usually expects an error code. Fix by modifying documentation to section 16.4.4 The parse_args() Method. Change the words "Return the populated namespace."

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2017-11-16 Thread Charles Machalow
Charles Machalow added the comment: Antti, is there a place in the ctypes documentation that explicitly says ctypes is not meant to be used cross-platform? If not, shouldn't that be mentioned? I think ultimately ctypes should default to standard OS/compiler behavior, but should allo

[issue29753] Ctypes Packing Bitfields Incorrectly - Linux

2017-11-17 Thread Charles Machalow
Charles Machalow added the comment: All of Python is implicitly cross platform. If something isn't actually cross platform, it should be mentioned explicitly in the documentation. For example see the mmap documentation, it explicitly say on Unix it does X, on Windows it does Y. We shou

[issue16181] cookielib.http2time raises ValueError for invalid date.

2012-10-09 Thread Charles Jones
New submission from Charles Jones: The docs for http2time state that "None is returned if [...] the time is outside the representable range". However, it is raising a ValueError when a year larger than datetime.MAXYEAR is provided (actually raised downstream by calendar.date()). To

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2014-05-23 Thread Charles Merriam
Charles Merriam added the comment: Some more information to just nail this thing that's been here forever. 1. This has been an issue in Python since at least 2001. 2. It is a duplicate of the item 441129 which was closed as won't fix. 3. It is bug in curses implementations. 4. T

[issue21562] curses getsxy() should be curses getxy() in https://docs.python.org/3/library/curses.html#curses.cursxy

2014-05-23 Thread Charles Merriam
New submission from Charles Merriam: https://docs.python.org/3/library/curses.html#curses.cursxy The symbol 'getsxy' does not exist in the curses library. The correct symbol is 'getxy'. -- assignee: docs@python components: Documentation messages: 218986 nosy: C

[issue8243] curses writing to window's bottom right position raises: `_curses.error: addstr() returned ERR'

2014-05-23 Thread Charles Merriam
Charles Merriam added the comment: My typo. Documentation verbiage was included in the bug report. Submitting a patch to the documentation is a harder than just rewriting the library. I speak English, MarkDown, HTML, JavaScript, and even RST. I don't speak Sphinx, DocBook, or TeX. O

[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey
New submission from Charles Newey: URL: https://docs.python.org/2/tutorial/controlflow.html#pass-statements Quoted verbatim: """ The pass statement does nothing. It can be used when a statement is required syntactically but the program requires no action. For example: >

[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey
Charles Newey added the comment: Your point about using "pass" with the "with" statement sounds like a better example than using "pass" in a loop. Perhaps even something like adding a note to the example to clarify it: """ # Don't use this in

[issue22106] Python 2 docs 'control flow/pass' section contains bad example

2014-07-30 Thread Charles Newey
Charles Newey added the comment: @David I have no idea either (no having written much of that sort of code myself either), but that looks more sensible. I'm just nitpicking really, anyway. -- ___ Python tracker <http://bugs.python.org/is

[issue6636] Non-existant directory in sys.path prevents further imports

2009-08-03 Thread Charles Mason
New submission from Charles Mason : Steps to reproduce: 1) Add to sys.path a path that does not exist 2) Import a module, any module. This invokes get_path_importer over every element of sys.path. The NullImporter __init__ method is called and an instance created for each non-existing path

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-21 Thread Charles Cazabon
New submission from Charles Cazabon : Worker processes with multiprocessing.Pool live for the duration of the Pool. If the tasks they run happen to leak memory (from a C extension module, or from creating cycles of unreachable objects, etc) or open files or other resources, there's no eas

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-21 Thread Charles Cazabon
Changes by Charles Cazabon : Removed file: http://bugs.python.org/file14946/worker-lifetime-python2.6.2.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-21 Thread Charles Cazabon
Changes by Charles Cazabon : Added file: http://bugs.python.org/file14947/worker-lifetime-python2.6.2.patch ___ Python tracker <http://bugs.python.org/issue6963> ___ ___

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-22 Thread Charles Cazabon
Charles Cazabon added the comment: Alright, I'll add those. Thanks for looking at it; first pass was mostly to ensure it wouldn't be wasted work. -- ___ Python tracker <http://bugs.python.

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-27 Thread Charles Cazabon
Changes by Charles Cazabon : Removed file: http://bugs.python.org/file14947/worker-lifetime-python2.6.2.patch ___ Python tracker <http://bugs.python.org/issue6

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-09-27 Thread Charles Cazabon
Charles Cazabon added the comment: Updated patch attached; handles some of the Pool methods that weren't handled before. Now includes documentation and unit test additions as well. -- Added file: http://bugs.python.org/file14987/worker-lifetime-python2.6.2.

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-10-03 Thread Charles Cazabon
Charles Cazabon added the comment: Jesse: this is ready for your review now. Thanks, Charles -- ___ Python tracker <http://bugs.python.org/issue6963> ___ ___

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-10-12 Thread Charles Cazabon
Charles Cazabon added the comment: Can someone review this patch? I believe it's sufficient for inclusion now, as it includes docs and unit tests, but if anything about it requires further attention I'd be happy to listen to change requests. We'd like get this into mainline whe

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-10-13 Thread Charles Cazabon
Charles Cazabon added the comment: Okay, thanks, Jesse. Didn't realize the Con was on. -- ___ Python tracker <http://bugs.python.org/issue6963> ___ ___

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2009-11-14 Thread Charles Cazabon
Charles Cazabon added the comment: Hi Jesse -- Any chance you'll be able to review this in time for it to make it into trunk for the 2.7 alpha release? Charles -- ___ Python tracker <http://bugs.python.org/i

[issue6963] Add worker process lifetime to multiprocessing.Pool - patch included

2010-01-15 Thread Charles Cazabon
Charles Cazabon added the comment: Ping... two alphas into 2.7. Have you had a chance to review this functionality? Thanks. -- ___ Python tracker <http://bugs.python.org/issue6

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
New submission from Charles Solar : I am compiling python on AIX 5.3. The normal configure and make works, except it fails to compile the unicodedata module. The assembler reports a bunch of these errors: Error: value of 0001268b too large for field of 2 bytes at 006d

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Charles Solar added the comment: Seems as though python 2.7 should not support --disable-unicode so this ticket is invalid. I just googled python disable unicode, but it seems that the decision to never disable unicode is recent. Closing -- status: open -> clo

[issue8767] Configure: Cannot disable unicode

2010-05-19 Thread Charles Solar
Changes by Charles Solar : Removed file: http://bugs.python.org/file17403/config.log ___ Python tracker <http://bugs.python.org/issue8767> ___ ___ Python-bugs-list mailin

[issue9181] Solaris extension building does not work with 64 bit python

2010-07-06 Thread Charles Solar
New submission from Charles Solar : On solaris, if you build a 64 bit python and use it to build an extension, it will not properly link the module. Apparently solaris requires the -m64 flag in the linker as well as the compile steps. Python distutils successfully compiles all the object

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
New submission from Charles Harris: The lastest Python 3.6 pre-release broke a number of NumPy tests. The failing tests are of the sort with warnings.catch_warnings(record=True) as w: warnings.simplefilter('always') ... And the failure seems to be that nothing i

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: Probably this commit: https://hg.python.org/cpython/rev/aaee06743c61 . -- ___ Python tracker <http://bugs.python.org/issue28

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: The failing tests don't use the context manager mentioned in msg278976 and which was fixed. In any case, the failures are new an appeared today. A failing test may be viewed at: https://github.com/numpy/numpy/blob/master/numpy/lib/tests/test_nanfunctio

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: I downloaded the tarball and installed the release here and got the same errors. We setup the tests in developement mode by turning some warnings into errors, in particular DeprecationWarnings and RuntimeWarnings, and suppressing others. The tests that are

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: You probably need to run NumPy 1.12 to see the problem. Tt looks like the new suppress_warnings context manager is what has been broken. Note that is was broken by 3.6 before, fixed, and now seems to be broken again

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: The NumPy 1.12.0b1 tarball is available on PyPI if you want to download it. -- ___ Python tracker <http://bugs.python.org/issue28

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: I ran with Python 3.6.0rc1 (default, Dec 7 2016, 14:00:51) and get the same errors in both NumPy 1.13.0-dev and 1.12. But I gave you a wrong suggestion, we disable some test errors for releases, which is what is on PyPI, and that is doubtless why you don&#

[issue28897] Python 3.6.0rc1 breaks NumPy tests.

2016-12-07 Thread Charles Harris
Charles Harris added the comment: OK, you fixed what broke us before. If I revert our fixes the problem goes away. So, thanks I guess ;) You can close this. -- ___ Python tracker <http://bugs.python.org/issue28

[issue4431] Distutils MSVC doesn't create manifest file

2017-01-05 Thread Charles Brossollet
Charles Brossollet added the comment: Here with python 2.7.13 and Visual Studio 2013, I get hit by the problem and it looks like link.exe needs the /MANIFEST keyword. Voting to get it fixed! -- nosy: +Charles Brossollet ___ Python tracker <h

[issue27509] Some tests breaks PGO build on Windows

2016-07-13 Thread Charles G.
New submission from Charles G.: Environment: Python 3.5.2 Visual Studio 2015 Update 2 Windows 7 amd64 I tried to build python with pgo (build.bat --pgo) but found that no python35!1.pgc or python!1.pgc was created. Then I run the tests one by one while checking the existence of python35!1

[issue27509] Some tests breaks PGO build on Windows

2016-07-14 Thread Charles G.
Charles G. added the comment: Community Edition. PGO is available in the Community Edition since at least VS 2012. -- ___ Python tracker <http://bugs.python.org/issue27

[issue27509] Some tests breaks PGO build on Windows

2016-07-14 Thread Charles G.
Charles G. added the comment: The compiler itself supports PGO in the Community Edition. I'm not sure about the IDE (not using it). Since I compiled python using the batch file (with msbuild) so it is not limited by the features of th

[issue27509] Some tests breaks PGO build on Windows

2016-07-14 Thread Charles G.
Charles G. added the comment: Tried with Visual Studio Community 2015 Update 3 with same result. -- ___ Python tracker <http://bugs.python.org/issue27509> ___ ___

[issue18001] TypeError: dict is not callable in ConfigParser.py

2013-05-17 Thread Charles Henry
New submission from Charles Henry: Python 2.6 and 2.7 each have a bad definition of the class RawConfigParser It is immediately apparent in the __init__ function which begins with: class RawConfigParser: def __init__(self, defaults=None, dict_type=dict): self._dict = dict_type

[issue24533] Increased Test Coverage for Lib/random.py

2015-06-29 Thread Charles Nodell
New submission from Charles Nodell: This patch just extends test coverage on the random library by a few lines. -- components: Tests files: mywork.patch keywords: patch messages: 245956 nosy: Charles Nodell priority: normal severity: normal status: open title: Increased Test Coverage

[issue24533] Increased Test Coverage for Lib/random.py

2015-07-01 Thread Charles Nodell
Charles Nodell added the comment: Sounds fine! I look forward to seeing how to do this properly! -- ___ Python tracker <http://bugs.python.org/issue24533> ___ ___

[issue25858] Structure field size/ofs __str__ wrong with large size fields

2015-12-13 Thread Charles Machalow
New submission from Charles Machalow: Large sized fields in Structures lead to incorrect string representations because it is assuming that because the size is so large, it must be a bit field instead of a byte field. class bugStruct(Structure): _pack_ = 1 _fields_

[issue25858] Structure field size/ofs __str__ wrong with large size fields

2015-12-13 Thread Charles Machalow
Changes by Charles Machalow : Removed file: http://bugs.python.org/file41297/ctypesBug.py ___ Python tracker <http://bugs.python.org/issue25858> ___ ___ Python-bugs-list m

[issue25858] Structure field size/ofs __str__ wrong with large size fields

2015-12-13 Thread Charles Machalow
Charles Machalow added the comment: Adding file with code to reproduce. -- Added file: http://bugs.python.org/file41298/ctypesBug.py ___ Python tracker <http://bugs.python.org/issue25

[issue25858] Structure field size/ofs __str__ wrong with large size fields

2015-12-13 Thread Charles Machalow
Changes by Charles Machalow : Added file: http://bugs.python.org/file41299/ctypesBug.py ___ Python tracker <http://bugs.python.org/issue25858> ___ ___ Python-bugs-list m

[issue25858] Structure field size/ofs __str__ wrong with large size fields

2015-12-13 Thread Charles Machalow
Changes by Charles Machalow : Removed file: http://bugs.python.org/file41298/ctypesBug.py ___ Python tracker <http://bugs.python.org/issue25858> ___ ___ Python-bugs-list m

[issue26124] shlex.quote and pipes.quote do not quote shell keywords

2016-01-15 Thread Charles Daffern
New submission from Charles Daffern: The shlex.quote and pipes.quote functions do not quote shell keywords. Example shell keywords: done, time, coproc, while Presumably the intent of the quote functions is to prevent the resulting string from altering the syntax of the script it is inserted

[issue26124] shlex.quote and pipes.quote do not quote shell keywords

2016-01-15 Thread Charles Daffern
Charles Daffern added the comment: It's definitely a corner case (in argv[0] position + is keyword), but here's an example: >>> import subprocess >>> import shlex >>> subprocess.call(shlex.quote("done"), shell=True) /bin/sh: 1: Syntax error: &

[issue26124] shlex.quote and pipes.quote do not quote shell keywords

2016-01-15 Thread Charles Daffern
Charles Daffern added the comment: In that case, should the documentation specify that shlex.quote is unsuitable for quoting command names? -- ___ Python tracker <http://bugs.python.org/issue26

[issue26124] shlex.quote and pipes.quote do not quote shell keywords

2016-01-15 Thread Charles Daffern
Charles Daffern added the comment: >To be sure that it is existing program, you can use shutil.which() I'd like to clear this up a little because this is worded as if shutil.which()'s success implies that the shell will not fail. Here is the setup to demonstrate: >>> im

[issue26196] Argparse breaks when a switch is given an argument beginning with a dash

2016-01-25 Thread Charles Daffern
New submission from Charles Daffern: Example code demonstrating the problem: # {{{ import argparse def try_args(*args): parser = argparse.ArgumentParser() parser.add_argument("-a") print("Trying:", args) try: print(parser.parse_args(args))

[issue28539] httplib/http.client HTTPConnection._get_hostport() regression

2016-10-26 Thread Charles Stephens
New submission from Charles Stephens: Back through the mists of time, there was a change to strip square brackets IPv6 address host literals in HTTPConnection._get_hostport(): https://hg.python.org/cpython/diff/433606e9546c/Lib/httplib.py However, the code mixed tabs and spaces and was

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Er, that is HTTPConnection._set_hostport() not _get_hostport() -- ___ Python tracker <http://bugs.python.org/issue28

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Changes by Charles Stephens : -- title: httplib/http.client HTTPConnection._get_hostport() regression -> httplib/http.client HTTPConnection._set_hostport() regression ___ Python tracker <http://bugs.python.org/issu

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: I misapplied the term 'regression'. My intent was to describe how original author's change revision 433606e9546c was refactored to make it perform incorrectly. Without the scope specifier, the outcome is the same when HTTPConnection is inst

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Example with patch applied: Python 2.7.6 (default, Oct 26 2016, 20:33:50) [GCC 4.8.4] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import httplib >>> con1 = h

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Our internal use case is happening through requests via urllib3 for parsing. Essentially requests is taking the URL, passing it to urllib3 for parsing. urllib3 is returning a namedtuple of type Url which includes a host and port property which is being fed

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Not when passing it to getaddrinfo(). -- ___ Python tracker <http://bugs.python.org/issue28539> ___ ___ Python-bugs-list mailin

[issue28539] httplib/http.client HTTPConnection._set_hostport() regression

2016-10-26 Thread Charles Stephens
Charles Stephens added the comment: Yes, I'm working on patching urllib3 to preprocess the host argument to HTTPConnection. However, it makes sense to strip square brackets regardless. -- ___ Python tracker <http://bugs.python.org/is

[issue12881] ctypes: segfault with large structure field names

2011-09-11 Thread Charles-François Natali
Charles-François Natali added the comment: Looks good to me. -- nosy: +neologix stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-11 Thread Charles-François Natali
Charles-François Natali added the comment: > 2) http://sources.redhat.com/bugzilla/show_bug.cgi?id=12453 We actually had another issue due to this particular libc bug: http://bugs.python.org/issue6059 Basically, the problem is that if some libraries are dynamically loaded in an interlea

[issue12936] armv5tejl: random segfaults in getaddrinfo()

2011-09-12 Thread Charles-François Natali
Charles-François Natali added the comment: Oh, and BTW, for the "Backtrace stopped: frame did not save the PC", you might want to install the libc-dbg package. This might help in finding precisely where it's crashing. -- ___ Python

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread Charles-François Natali
Charles-François Natali added the comment: > I think I got it: pthread_setaffinity_np() does not crash. Nice. Out of curiosity, I just looked at the source code, and it just does sched_setaffinity(thread->tid), so you can do the same with sched_setaffinity(syscall(SYS_gettid)) f

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread Charles-François Natali
Charles-François Natali added the comment: > If we have access (and as I understood from Victor's post we do): > pthread_getaffinity_np() also exists on FreeBSD, which would be > an advantage. Yes, but I see several drawbacks: - as noted by Victor, it's really easy to crash

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-13 Thread Charles-François Natali
Charles-François Natali added the comment: > Do you mean that signal.pthread_kill() should be removed? This function is > very useful and solve some issues that cannot be solved differently. At the > same time, I don't think that it's possible to workaround the crashes. A

[issue12975] Invitation to connect on LinkedIn

2011-09-13 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue12975> ___ ___ Pyth

[issue12975] Invitation to connect on LinkedIn

2011-09-13 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23150/unnamed ___ Python tracker <http://bugs.python.org/issue12975> ___ ___ Python-bug

[issue8828] Atomic function to rename a file

2011-09-13 Thread Charles-François Natali
Charles-François Natali added the comment: > According to the following article, a fsync is also needed on the > directory after a rename. I don't understand if is it always needed for > an atomic rename, or if we only need it for the "atomic write" pattern. It'

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-14 Thread Charles-François Natali
Charles-François Natali added the comment: > I'd prefer to disable the misbehaving functions entirely on arm. -10 If we start disabling features on platforms with partly bogus implementations, we might as well drop threading on OpenBSD, sendmsg() on OS-X, etc. Furthermore, it'

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread Charles-François Natali
Charles-François Natali added the comment: Hello, According to http://fxr.watson.org/fxr/ident?v=NETBSD;im=3;i=EVFILT_TIMER EVFILT_TIMER is defined on NetBSD. As for MirBSD, with all due respect, it really looks like a niche platform, definitely not officially supported by Python. Of course

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread Charles-François Natali
Charles-François Natali added the comment: Since this patch alone won't be enough to support MirBSD (and is required only for MirBSD), I suggest you to post the complete patch, and rename this issue "add support for MirBSD platform", or something along those lines. That way,

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-14 Thread Charles-François Natali
New submission from Charles-François Natali : Now that sendmsg()/recvmsg() are exposed in socketmodule, we could use them to replace the ad-hoc FD-passing routines used by multiprocessing.reduction. Antoine suggested adding sendfd()/recvfd() methods to socket objects, but I'm not sure

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-14 Thread Charles-François Natali
Charles-François Natali added the comment: > I don't think that it's a problem to remove private functions. > Alright. > Is it mandatory to send a non-empty message (first argument for sendmsg, b'x' > in your patch)? The original C function sends a random byt

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Changes by Charles-François Natali : Added file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff ___ Python tracker <http://bugs.python.org/issue12981> ___ ___

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23156/multiprocessing_fd.diff ___ Python tracker <http://bugs.python.org/issue12981> ___ ___

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-15 Thread Charles-François Natali
Charles-François Natali added the comment: I only tried on Linux. By the way, what's the simplest way to create a personal clone to test patches on some of the buildbots before committing them? -- ___ Python tracker <http://bugs.py

[issue8237] multiprocessing.Queue() blocks program

2011-09-16 Thread Charles-François Natali
Charles-François Natali added the comment: It's a dupe of issue #8426: the Queue isn't full, but the underlying pipe is, so the feeder thread blocks on the write to the pipe (actually when trying to acquire the lock protecting the pipe from concurrent access). Since the children

[issue12996] multiprocessing.Connection endianness issue

2011-09-16 Thread Charles-François Natali
New submission from Charles-François Natali : Since the rewrite in pure Python of multiprocessing.Connection (issue #11743), multiprocessing.Connection sends and receives the length of the data (used as header) in host byte order. This will break if the connection's endpoints are on ma

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali
Changes by Charles-François Natali : -- nosy: haypo, neologix priority: normal severity: normal stage: needs patch status: open title: _XOPEN_SOURCE usage on Solaris type: behavior versions: Python 3.3 ___ Python tracker <http://bugs.python.

[issue12999] _XOPEN_SOURCE usage on Solaris

2011-09-17 Thread Charles-François Natali
New submission from Charles-François Natali : While testing issue #12981, I stumbled on a problem on OpenIndiana buildbot: """ test test_multiprocessing crashed -- Traceback (most recent call last): File "/export/home/buildbot/64bits/custom.cea-indiana-amd64/build/Lib/test

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: > Did you try it on Linux, FreeBSD and/or Windows? It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see issue #12999. -- dependencies: +_XOPEN_SOURCE usage on Solaris ___ Pyt

[issue12976] add support for MirBSD platform

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: Hello Benny, > As requested, here is the full patch for MirBSD support. The diff was taken > against version 2.7.2. It is really quite easy, you just need to handle > MirBSD like OpenBSD. > With this patch, I can successfully compile an

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Charles-François Natali added the comment: Here's a patch taking into account the fact that multiprocessing.reduction might not be available and importing it can raise an ImportError (which is already the case with the C implementation, but multiprocessing.reduction tests have been

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-17 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23166/multiprocessing_fd-1.diff ___ Python tracker <http://bugs.python.org/issue12

[issue13001] test_socket.testRecvmsgTrunc failure on FreeBSD 7.2 buildbot

2011-09-17 Thread Charles-François Natali
New submission from Charles-François Natali : http://www.python.org/dev/buildbot/all/builders/x86 FreeBSD 7.2 3.x/builds/2129/steps/test/logs/stdio """ == FAIL: testRecvmsgTrunc (test.test_socket

[issue12996] multiprocessing.Connection endianness issue

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > "Since the rewrite in pure Python of multiprocessing.Connection (issue > #11743), multiprocessing.Connection sends and receives the length of the data > (used as header) in host byte order." > > I don't think so,

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > "It works fine on Linux, FreeBSD, OS X and Windows, but not on Solaris: see > issue #12999." > > Oh, thank for testing before committing :) It's hard to debug multiprocessing. Yes. Especially when you stumble upon a kern

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-18 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23180/multiprocessing_fd-2.diff ___ Python tracker <http://bugs.python.org/issue12

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-18 Thread Charles-François Natali
Charles-François Natali added the comment: > I had a look at this patch, and the FD passing looked OK, except > that calculating the buffer size with CMSG_SPACE() may allow more > than one file descriptor to be received, with the extra one going > unnoticed - it should use CMSG_L

[issue12996] multiprocessing.Connection endianness issue

2011-09-20 Thread Charles-François Natali
Changes by Charles-François Natali : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12981] rewrite multiprocessing (senfd|recvfd) in Python

2011-09-20 Thread Charles-François Natali
Charles-François Natali added the comment: I committed the patch to catch the ImportError in test_multiprocessing. I'll commit the other patch (pure Python version) in a couple days. > Ah, no, you're right - that's fine. Sorry for the false alarm. No problem. As they say,

[issue13022] _multiprocessing.recvfd() doesn't check that file descriptor was actually received

2011-09-20 Thread Charles-François Natali
Charles-François Natali added the comment: > The patch includes a test case, but like the other recently-added > tests for the function, it isn't guarded against > multiprocessing.reduction being unavailable. Issue #12981 has a > patch "skip_reduction.diff" (already

[issue10141] SocketCan support

2011-09-22 Thread Charles-François Natali
Charles-François Natali added the comment: Here's an updated patch, with more tests. Please review! -- keywords: +needs review nosy: +haypo stage: patch review -> commit review Added file: http://bugs.python.org/file23225/socketcan_

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Charles-François Natali added the comment: > - dummy question: why an address is a tuple with 1 string instead of just > the string? Does AF_UNIX also uses a tuple of 1 string? I think the reason behind the tuple is future proofing. Here's the definition of `struct sockaddr_can`

[issue10141] SocketCan support

2011-09-23 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file23225/socketcan_v4.patch ___ Python tracker <http://bugs.python.org/issue10141> ___ ___ Pytho

<    1   2   3   4   5   6   7   8   9   10   >