Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-18 Thread James DeVincentis
18, 2015, at 10:55 AM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > > On Sun, Oct 18, 2015 at 2:46 AM, James DeVincentis <ad...@hexhost.net > <mailto:ad...@hexhost.net>> wrote: > > > > I see, looks like I’ll have to use Queue.close() > > > > D

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-17 Thread James DeVincentis
ing multiprocessing.Queue._feed(). Thoughts from anyone? > On Oct 15, 2015, at 7:37 PM, James DeVincentis <ad...@hexhost.net> wrote: > > Looking into it, I seem to have found a race condition where a > multiprocessing.Queue.get() can get hung waiting for an object even if

Re: Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-15 Thread John S James
Thank you, this is very helpful. John On Wed, Oct 14, 2015 at 3:31 PM, Zachary Ware <zachary.ware+pyl...@gmail.com > wrote: > On Wed, Oct 14, 2015 at 2:05 PM, John S. James <john2ja...@gmail.com> > wrote: > > I installed 3.5.0 today and it's working fine -- either f

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
to a multiprocess.Queue it fixed the issue. Kind of odd to me. Not sure if anyone wants to look into it. > On Oct 15, 2015, at 5:42 PM, Ian Kelly <ian.g.ke...@gmail.com> wrote: > > On Thu, Oct 15, 2015 at 4:02 PM, James DeVincentis <ad...@hexhost.net> wrote: > > > &

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
I take that back. It’s not entirely fixed. Something else strange is going on here. More debugging needed. > On Oct 15, 2015, at 6:36 PM, James DeVincentis <ad...@hexhost.net> wrote: > > I think I tracked this down and resolved it. > > It appears taking an object from

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
Size: 572 > On Oct 15, 2015, at 5:02 PM, James DeVincentis <ad...@hexhost.net> wrote: > > Anyone have any ideas? I feel like this could be a bug with the garbage > collector across multiprocessing. > > From: James DeVincentis [mailto:ad...@hexhost.net] > Sent: Wednes

RE: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-15 Thread James DeVincentis
Anyone have any ideas? I feel like this could be a bug with the garbage collector across multiprocessing. From: James DeVincentis [mailto:ad...@hexhost.net] Sent: Wednesday, October 14, 2015 12:41 PM To: 'python-list@python.org' Subject: Problem with copy.deepcopy and multiprocessing.Queue

Problem with copy.deepcopy and multiprocessing.Queue

2015-10-14 Thread James DeVincentis
I've got a bit of a problem with copy.deepcopy and using multiprocessing.Queue. I have an HTTPAPI that gets exposed to add objects to a multiprocessing.Qeue. Source code here: https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283 The trouble is, even using deepcopy,

Problem with copy.deepcopy and multiprocessing

2015-10-14 Thread James DeVincentis
I've got a bit of a problem with copy.deepcopy and using multiprocessing.Queue. I have an HTTPAPI that gets exposed to add objects to a multiprocessing.Qeue. Source code here: https://github.com/jmdevince/cifpy3/blob/master/lib/cif/api/handler.py#L283 The trouble is, even using deepcopy,

Installed 3.5.0 successfully on Windows 10, but where is DDLs, Doc, Lib, etc?

2015-10-14 Thread John S. James
I installed 3.5.0 today and it's working fine -- either from the command prompt, or running a .py script. But the Python 3.4 that was previously installed on the computer had a Python34 folder, which contained DDLs, Doc, include, Lib, and various other folders and files. I haven't found a

64bit Python builds on HP-UX ia64 and PA-RISC (Using GCC)

2015-09-23 Thread James Matthews
-o Parser/pgen ld: Mismatched Data ABI. Expected None but found EF_IA_64_ABI64 in file Parser/acceler.o Fatal error. collect2: error: ld returned 1 exit status *** Error exit code 1 Stop. *** Error exit code 1 Seems to be a library mismatch? Any help would be appreciated. Regards, James -- https://mail.python.org/mailman/listinfo/python-list

List comprehensions and evaluation of elements therein

2015-09-23 Thread James Harris
analog of the list comprehension? With this latter expansion the values of v0 and v2 could appear in expr4 or expr5. Again, the evaluation order would matter. James -- https://mail.python.org/mailman/listinfo/python-list

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Dennis Lee Bieber" <wlfr...@ix.netcom.com> wrote in message news:mailman.12.1442794762.28679.python-l...@python.org... On Sun, 20 Sep 2015 23:36:30 +0100, "James Harris" <james.harri...@gmail.com> declaimed the following: There are a few things and more crop

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Marko Rauhamaa" <ma...@pacujo.net> wrote in message news:8737y6cgp6@elektro.pacujo.net... "James Harris" <james.harri...@gmail.com>: I agree with what you say. A zero-length UDP datagram should be possible and not indicate end of input but is that gua

Re: Lightwight socket IO wrapper

2015-09-22 Thread James Harris
"Akira Li" <4kir4...@gmail.com> wrote in message news:mailman.18.1442804862.28679.python-l...@python.org... "James Harris" <james.harri...@gmail.com> writes: ... There are a few things and more crop up as time goes on. For example, over TCP it would be helpf

Re: A little test for you Guys

2015-09-22 Thread James Harris
= list(g) > b = list(g) > c = g() > > Question : At the end of the program, > > 1. What is the type of g ? > 2. What is the value of a ? > 3. What is the value of b ? > 4. What is the value of c ? Good one. I checked this and only got 1 and 2 right. > 5 Decorators No idea! James -- https://mail.python.org/mailman/listinfo/python-list

Re: A little test for you Guys

2015-09-22 Thread James Harris
would be at the end of the program in question 4 could be easily found by trying it. James -- https://mail.python.org/mailman/listinfo/python-list

Lightwight socket IO wrapper

2015-09-20 Thread James Harris
a little bit extra. ;-) James -- https://mail.python.org/mailman/listinfo/python-list

Re: Lightwight socket IO wrapper

2015-09-20 Thread James Harris
"Akira Li" <4kir4...@gmail.com> wrote in message news:mailman.37.1442754893.21674.python-l...@python.org... "James Harris" <james.harri...@gmail.com> writes: I guess there have been many attempts to make socket IO easier to handle and a good number of those h

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Laura Creighton" <l...@openend.se> wrote in message news:mailman.5.1442609448.21674.python-l...@python.org... In a message of Fri, 18 Sep 2015 20:09:19 +0100, "James Harris" writes: Set the daemon flag on the worker threads, so when the main thread exits, the worker

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Chris Angelico" <ros...@gmail.com> wrote in message news:mailman.8.1442612439.21674.python-l...@python.org... On Sat, Sep 19, 2015 at 3:17 AM, James Harris <james.harri...@gmail.com> wrote: Needless to say, on a test Windows machine AF_UNIX is not present. The only

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Chris Angelico" <ros...@gmail.com> wrote in message news:mailman.13.1442657702.21674.python-l...@python.org... On Sat, Sep 19, 2015 at 7:49 PM, James Harris <james.harri...@gmail.com> wrote: "Chris Angelico" <ros...@gmail.com> wrote in message ne

Re: Shutting down a cross-platform multithreaded app

2015-09-18 Thread James Harris
"Paul Rubin" <no.email@nospam.invalid> wrote in message news:87zj0jd1ta@jester.gateway.sonic.net... "James Harris" <james.harri...@gmail.com> writes: I have a multithreaded app that I want to be able to shut down easily such as by hitting control

[issue25167] THE SCORCH TRIALS OF MAZE RUNNER DISFACTION LOGGIC

2015-09-18 Thread james
New submission from james: http://www.thebigidea.co.nz/profile/james/65456 http://www.cyclefish.com/hebucoho/ https://soundation.com/user/MazeRunnerTheScorchTrials https://issuu.com/mazerunnerthescorchtrials http://poputka.ua/user-profile-39591.aspx http://www.pikore.com/mazerunnerthescorch

Shutting down a cross-platform multithreaded app

2015-09-18 Thread James Harris
though. Any comments on the ideas above? James -- https://mail.python.org/mailman/listinfo/python-list

Re: Signal SIGINT ignored during socket.accept

2015-09-11 Thread James Harris
ering sensibility were of concern, then he wouldn't be using Windows in the first place. ;) LOL. I know that's tongue in cheek but I tend to favour portability over most other things. So running on Windows as well as Unix is, in my book, a Good Thing. James -- https://mail.python.org/mailman/listinfo/python-list

Re: Signal SIGINT ignored during socket.accept

2015-09-11 Thread James Harris
"James Harris" <james.harri...@gmail.com> wrote in message news:msv21t$n1m$1...@dont-email.me... "Grant Edwards" <invalid@invalid.invalid> wrote in message news:msum6c$hv$1...@reader1.panix.com... ... Waking up twice per second and immediately calling s

Signal SIGINT ignored during socket.accept

2015-09-10 Thread James Harris
. Any ideas? James -- https://mail.python.org/mailman/listinfo/python-list

Re: Signal SIGINT ignored during socket.accept

2015-09-10 Thread James Harris
"Chris Angelico" <ros...@gmail.com> wrote in message news:mailman.332.1441910212.8327.python-l...@python.org... On Fri, Sep 11, 2015 at 4:24 AM, James Harris <james.harri...@gmail.com> wrote: I have a listening socket, self.lsock, which is used in an accept() call

Re: Signal SIGINT ignored during socket.accept

2015-09-10 Thread James Harris
"Chris Angelico" <ros...@gmail.com> wrote in message news:mailman.337.1441913195.8327.python-l...@python.org... On Fri, Sep 11, 2015 at 5:11 AM, James Harris <james.harri...@gmail.com> wrote: ... However, on Windows the recognition of Control-C does not happen

[issue24748] Change of behavior for importlib between 3.4 and 3.5 with DLL loading

2015-08-28 Thread James Salter
James Salter added the comment: This also affects py2exe, which dynamically generates stub .pyc loaders inside a ZIP which then load .pyd modules outside the ZIP with the same name. Windows 8, x64, visual studio 2015 enterprise. It is simple enough to work around by doing a del sys.modules

[issue24673] distutils/_msvccompiler does not remove /DLL during link(CCompiler.EXECUTABLE)

2015-07-20 Thread James Salter
New submission from James Salter: Encountered trying to build numpy with python 3.5b3, visual studio 2015. From distutils/_msvccompiler.py:MSVCCompiler.link: if self._need_link(objects, output_filename): ldflags = (self.ldflags_shared_debug if debug

[issue24643] VS 2015 pyconfig.h #define timezone _timezone conflicts with timeb.h

2015-07-16 Thread James Salter
New submission from James Salter: For python 3.5, PC/pyconfig.h contains the following for vs2015 support: /* VS 2015 defines these names with a leading underscore */ #if _MSC_VER = 1900 #define timezone _timezone #define daylight _daylight #define tzname _tzname #endif This breaks any python

[issue20825] containment test for ip_network in ip_network

2015-07-07 Thread James
James added the comment: What is the status of these changes? Apparently they were slated for inclusion in 3.5 but it looks as though they haven't hit yet - is there a reason for this, or was it just forgotten? -- nosy: +JamesGuthrie ___ Python

[issue24281] String formatting: incorrect number of decimal places

2015-05-26 Thread James Luscher
James Luscher added the comment: Eric, I am not familiar with the 'g' format and did not know it was the default, but the documentation, read fully, is correct. It just took the response of Christopher Welborn to wake me up (it was a LONG day and I was struggling to understand the problem

[issue24281] String formatting: incorrect number of decimal places

2015-05-24 Thread James Luscher
New submission from James Luscher: Doc for 3.4: at 6.1.3.1. Format Specification Mini-Language indicates that: The precision is a decimal number indicating how many digits should be displayed after the decimal point for a floating point value Yet I find that I get this behavior: Python 3.4.3

[issue18391] socket.fromfd()'s API is difficult or impossible to use correctly in general

2015-05-19 Thread James Tocknell
Changes by James Tocknell aragilar+pythonb...@gmail.com: -- nosy: +aragilar ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18391 ___ ___ Python

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
Changes by James Edwards jh...@jheiv.com: -- nosy: +pitrou, yselivanov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24078 ___ ___ Python-bugs

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
James Edwards added the comment: Added Yury (inspect module) and Antoine (PEP 3155) to nosy -- apologies if you're not interested. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24078

[issue24078] inspect.getsourcelines ignores context and returns wrong line #

2015-05-01 Thread James Edwards
James Edwards added the comment: Inspect could probably be updated to use 3.3's __qualname__ in the case of classes-in-classes; classes-in-functions or functions-in-functions would likely be harder, but I'm not sure it's impossible. -- nosy: +jedwards

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-25 Thread James
James added the comment: When I start the interpreter with the -S switch, the problem goes away. Thanks for looking into it, and I apologize for the false alarm! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-25 Thread James
Changes by James james.triv...@gmail.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: It looks like this is a bug in pyreadlines as suggested by eryksun, but for a different reason. Even though the Caps Lock + Shift combination is recognized correctly (as lower case), the logic in the pyreadlines module forces it to upper case. See lines 44-45

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-24 Thread James Edwards
James Edwards added the comment: If you start the interactive interpreter with the -S switch, e.g. python.exe -S Do you still see this behavior? -- nosy: +jedwards ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-22 Thread James
New submission from James: Referring to Python 2.7 running on Windows (7/8): At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is held while an alpha-character is selected, the character is output and displayed as uppercase, as one would expect. However, in Python 2.7

[issue23986] Inaccuracy about in keyword for list and tuple

2015-04-17 Thread James Edwards
James Edwards added the comment: What about: For the list and tuple types, ``x in y`` is true if and only if there exists an -index *i* such that ``x == y[i]`` is true. +index *i* such that either ``x == y[i]`` or ``x is y[i]`` is true. Seems to address your issue, and match the semantics

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread James Edwards
James Edwards added the comment: It seems like this issue has morphed over time. At the beginning, it looked like you expected perfectly reasonable (but odd) definitions of __call__ attributes, where the logic inside raised an Exception, to be somehow determined to be uncallable. This does

[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread James Edwards
James Edwards added the comment: Attaching revised patch per reviews. Notable changes: * Reverted howto/curses.rst multiple inline statements - multi-target assignment (curses.rst is now unchanged) * Reverted library/subprocess.rst == to # == changes since there are other

[issue23921] Standardize documentation whitespace, formatting

2015-04-14 Thread James Edwards
James Edwards added the comment: Thanks for the review Serhiy. I'll prepare a revised patchset, given the comments from you and Berker and have it uploaded today. Thanks again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread James Powell
James Powell added the comment: See attached patch for unittest. For 3.4, test that inspect.signature(str) raises TypeError. For 3.5, this can be improved to use _testcapi.matmulType -- Added file: http://bugs.python.org/file38949/issue_23934-test.patch

[issue23921] Standardize documentation whitespace, formatting

2015-04-13 Thread James Edwards
James Edwards added the comment: Thanks Berker, I responded to most of your comments in rietveld. A few of your comments suggested we should get rid of X, and while I can't say I disagree, I really tried to limit the scope of the changes to whitespace and formatting. As far as the script

[issue23934] inspect.signature reporting () for all builtin extension types

2015-04-13 Thread James Powell
James Powell added the comment: Discussed with Nick Coghlan. See attached patch to return `signature(object)` only if both `__new__` and `__init__` are shared with `object`. Otherwise, raise TypeError indicating built-in types not supported. https://docs.python.org/3/library/inspect.html

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
James Powell added the comment: See attached patch to clarify this in the docs. -- keywords: +patch Added file: http://bugs.python.org/file38910/issue_17380.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python-bugs-list

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
James Powell added the comment: We investigated this issue with pdmccormick r.david.murray. The behaviour appears to be intentional. If the trace function raises an Exception, system tracing is disabled entirely. See attached documentation patch to clarify this. -- keywords: +patch

[issue17380] initproc return value is unclear

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2015-04-12 Thread James Powell
Changes by James Powell ja...@dontusethiscode.com: -- nosy: +james, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10933

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
New submission from James Edwards: I realize this is a huge patch, I'd be happy to split it to multiple little patches (one per file, one per documentation directory, etc.) to make things easier. Just let me know. The patch attempts to do a few things (with exceptions, as noted below

[issue23921] Standardize documentation whitespace, formatting

2015-04-11 Thread James Edwards
Changes by James Edwards jh...@jheiv.com: -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23921 ___ ___ Python-bugs-list

[issue23912] Inconsistent whitespace/formatting in docs/reference/datamodel/Special Method Lookup

2015-04-10 Thread James Edwards
New submission from James Edwards: There's inconsistent leading whitespace between the two classes in the 4th code snippet of the Special Method Lookup section. https://docs.python.org/3/reference/datamodel.html#special-method-lookup The (very substantial :) included patch makes both classes

[issue23835] configparser does not convert defaults to strings

2015-04-07 Thread James Tocknell
James Tocknell added the comment: Here's a patch for 2.7 (based of the head of the 2.7 branch), something similar could be done for 3.4 (I wasn't sure what branch I was supposed to base the patch off, since 3.4 is inactive). The string requirement was already noted in the docstring

[issue23835] configparser does not convert defaults to strings

2015-03-31 Thread James Tocknell
New submission from James Tocknell: ConfigParser(defaults={1:2.4}) and ConfigParser(defaults={a:5.2}) cause an exception when configparser tries to perform string operations on 1 and 5.2. I didn't see it documented that defaults must only contain strings, and using ConfigParser['DEFAULT

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-22 Thread James Rutherford
James Rutherford added the comment: Updated docs look good to me, thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23539 ___ ___ Python

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread James Rutherford
James Rutherford added the comment: Python 3 patch attached. The documentation has changed structure a little so I've adapted (simplified) this from the original. Otherwise, it's pretty much the same, except with python3 fixes, and incorporated feedback. I'll upload an updated 2.7 patch

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-19 Thread James Rutherford
James Rutherford added the comment: Updated 2.7 patch attached. -- Added file: http://bugs.python.org/file38570/issue23539-py27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23539

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-13 Thread James Rutherford
James Rutherford added the comment: Hi all, apologies for the spam, but I just wanted to confirm that no-one is waiting on anything from me... I'm happy to consolidate the final minor points make the patch against python3 if that would simplify things

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-13 Thread James Rutherford
James Rutherford added the comment: Ok I'll have a go at a consolidated python3 patch tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23539

Installed Python 3 on Mac OS X Yosemite but its still Python 2.7

2015-03-09 Thread James Dekker
I am currently running OS X Yosemite (10.10.2) on my MacBook Pro... By default, Apple ships Python 2.7.6 on Yosemite. Just downloaded and ran this installer for Python 3: python-3.4.3-macosx10.6.pkg When I opened up my Terminal and typed in python, this is what came up: Python 2.7.6 (default,

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-04 Thread James Rutherford
James Rutherford added the comment: Single patch against default makes sense and I'll do that in future. As for the review comments, I'm happy to go with all of your suggestions but have offered a tweak to the docstring that you can take or leave at your discretion

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-02 Thread James Rutherford
James Rutherford added the comment: OK, sounds like we're approaching consensus? And I believe that the patch as-is captures that consensus, so should I proceed and make another for 3.X for review? -- ___ Python tracker rep...@bugs.python.org http

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-03-01 Thread James Rutherford
James Rutherford added the comment: My feeling is that '' implies present but empty (so should have a content-length set to zero), whereas None implies missing (so should only have a content-length header set to zero if the method is expecting a body. ... In light of that, I think

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: I actually consider this a fix for the fix in 14721, rather than a new feature. The only new behaviour here is setting content length to be zero if body is None on PATCH, POST, or PUT. Happy to change the labeling if that's the consensus but IMO it's

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-28 Thread James Rutherford
James Rutherford added the comment: Happy to remove OPTIONS from the list of methods that gets a content-length where body is None, but do we also want to consider behaviour if it's the empty string? My feeling is that '' implies present but empty (so should have a content-length set to zero

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: Thanks for setting up the new issue, I'll cook up a patch. I'm assuming this affects all Python 3.X versions but I've specifically encountered it on Python 2.7. -- nosy: +jimr versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: OK, thanks. -- versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23539

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: Patch attached for the 2.7 branch, including updated tests. All tests pass. Let me know if this looks like a sensible approach and I'll produce something comparable for 3.X. The logic now is as it was before, except that we set a content length of zero

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: OK, I've got a patch but it's failing on 'test_send_file'[1], which is sending a body on a GET request. According to the IETF memo[2]: Bodies on GET requests have no defined semantics. Note that sending a body on a GET request might cause some

[issue23539] Content-length not set for HTTP methods expecting body when body is None

2015-02-27 Thread James Rutherford
James Rutherford added the comment: The first patch should actually be modified so the condition reads (update attached): if body is None and method_expects_body: thelen = 0 elif body is not None: ... Demian, I believe this is equivalent to your 'expecting_len

[issue14721] httplib doesn't specify content-length header for POST requests without data

2015-02-25 Thread James Rutherford
James Rutherford added the comment: The fix for this still doesn't set Content-Length to zero when body is None, but I don't see any reason why this should be the case. For example, the following snippet would work for any 'empty' body: if 'content-length' not in header_names: self

can python handle CHIME .spt files?

2015-02-18 Thread James Zimmerman
. Thank you very much. James Zimmerman Emeritus Professor of Biochemistry -- https://mail.python.org/mailman/listinfo/python-list

pickle and then object changes

2015-01-20 Thread James Smith
Say an object like this exists: class test: a = b = You pickle it. You change the object definition to have a new field: class test a = b = c = You read the pickled object. Will it load but ignore the new field? That is what I want. --

[issue20916] ssl.enum_certificates() will not return all certificates trusted by Windows

2015-01-15 Thread James Teh
Changes by James Teh ja...@nvaccess.org: -- nosy: +jteh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20916 ___ ___ Python-bugs-list mailing list

Re: Command Line Inputs from Windows

2015-01-05 Thread James Scholes
the registry directly or use a third party tool to manage filetypes and their associated actions. -- James Scholes http://twitter.com/JamesScholes -- https://mail.python.org/mailman/listinfo/python-list

[issue23117] Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall

2014-12-26 Thread James Wahlman
New submission from James Wahlman: The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or any version or OS X I imagine when a user enables the built in OS X firewall and runs Python it complains about allowing the app thru the firewall. The only way to fix since

[issue23118] Properly codesign Mac python 2.7.9.pkg so it can work thru OS X firewall

2014-12-26 Thread James Wahlman
New submission from James Wahlman: The app is not code signed properly so when using Python 2.7.9 on OS X 10.10 or any version of OS X I imagine when a user enables the built in OS X firewall and runs Python it complains about allowing the app thru the firewall. The only way to fix since

[issue21614] Case sensitivity problem in multiprocessing.

2014-11-26 Thread James Burke
James Burke added the comment: I'm also getting this error. It appears to me to be caused by the length of the module name rather than case. mp_bug.py will run fine for me, but if I change it to mp_bug_longname.py then I will get this error. import multiprocessing import time class MP_Bug

[ANN]: hipachectl 0.0.1 - CLI tool to manage hipache

2014-11-01 Thread James Mills
! cheers James James Mills / prologic E: prolo...@shortcircuit.net.au W: prologic.shortcircuit.net.au -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

[issue22691] A Better Help File

2014-10-23 Thread James
James added the comment: I've written several languages, I'm no novice but, I also know when to brush up.Its just how I started, it looks like an opening for others. -Original Message- From: R. David Murray Sent: Wednesday, October 22, 2014 6:25 AM To: geek.mo...@gmail.com Subject

[issue22692] Problems with Python's help()

2014-10-22 Thread James
New submission from James: Hello, I really think that Microsoft’s last release of Quick Basic 4.5 really had the ultimate of all help files. Here’s why, you could cut and copy the code to the program you were working on, and then alter it to your program. It was one of the nicer things

[issue22694] The help file issue I'm having.

2014-10-22 Thread James
New submission from James: Hello, Now, I really want you to think about the hunt and pick method of programming and learning how to program. Being self taught, isn’t something that can happen unless, the authors of the software want people to learn how to use it. Help files

[issue22691] A Better Help File

2014-10-21 Thread James
New submission from James: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[issue22691] A Better Help File

2014-10-21 Thread James
James added the comment: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[issue22658] IMAP4 Example lacking host information

2014-10-17 Thread James Goodwin
New submission from James Goodwin: The IMAP4 Example for Python 3.4 (Section 21.15.2) does not show the appropriate host information for the example to work. Suggested fix would be to change the line M = imaplib.IMAP4() to M = imaplib.IMAP4('localhost') This will bring the example inline

[issue22658] IMAP4 Example lacking host information

2014-10-17 Thread James Goodwin
James Goodwin added the comment: I do see that. I agree that this is a duplicate of that one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22658

help with regex

2014-10-07 Thread James Smith
I want the last 1 I can't this to work: pattern=re.compile( (\d+)$ ) match=pattern.match( LINE: 235 : Primary Shelf Number (attempt 1): 1) print match.group() -- https://mail.python.org/mailman/listinfo/python-list

[issue17835] test_io broken on PPC64 Linux

2014-09-29 Thread James Spurin
James Spurin added the comment: With both the kernel parameters defined and undefined, I get the following output - # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 29 2014, 13:31:39) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux Type help, copyright, credits or license

[issue17835] test_io broken on PPC64 Linux

2014-09-25 Thread James Spurin
James Spurin added the comment: fcntl doesnt seem to like the parameter you mentioned - # cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) # /local/0/opt/python-3.4.1/bin/python Python 3.4.1 (default, Sep 24 2014, 12:23:21) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4

[issue22498] frozenset allows modification via -= operator

2014-09-25 Thread James Paget
New submission from James Paget: The operator -= modifies a frozenset (this should not be possible), instead of signaling a TypeError. Contrast with the += operator. f=frozenset([1,2]) f frozenset([1, 2]) f -= frozenset([1]) f frozenset([2]) f -= frozenset([2]) f frozenset([]) f

[issue17835] test_io broken on PPC64 Linux

2014-09-24 Thread James Spurin
James Spurin added the comment: I encountered similar issues to those discussed in this issue whilst compiling 3.4.1 on 'Red Hat Enterprise Linux Server release 6.5 (Santiago)' In particular, the following tests were failing - [root@lonlx90800 ~]# /local/0/python-3.4.1/bin/python3 /local/0

[ANN]: circuits 3.0 (Lightweight Event driven Asynchronous Application Framework)

2014-08-31 Thread James Mills
that supports Event-Driven programming and uses a Component Architecture to to help define separation of concerns. circuits support Async I/O, is written in pure Python and has it's own Web Framework. For more information see the PyPi page: http://pypi.python.org/pypi/circuits/ cheers James [1]: http

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