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
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
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
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:
> >
> &
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
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
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
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,
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,
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
-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
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
"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
"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
"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
= 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
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
a little bit extra. ;-)
James
--
https://mail.python.org/mailman/listinfo/python-list
"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
"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
"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
"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
"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
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
though. Any comments on the ideas above?
James
--
https://mail.python.org/mailman/listinfo/python-list
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
"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
.
Any ideas?
James
--
https://mail.python.org/mailman/listinfo/python-list
"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
"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
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
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
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
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
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
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
Changes by James Tocknell aragilar+pythonb...@gmail.com:
--
nosy: +aragilar
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18391
___
___
Python
Changes by James Edwards jh...@jheiv.com:
--
nosy: +pitrou, yselivanov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24078
___
___
Python-bugs
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python-bugs-list
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
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17380
___
___
Python
Changes by James Powell ja...@dontusethiscode.com:
--
nosy: +james, r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10933
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
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
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
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
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
James Rutherford added the comment:
Updated docs look good to me, thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23539
___
___
Python
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
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
.
Thank you very much.
James Zimmerman
Emeritus Professor of Biochemistry
--
https://mail.python.org/mailman/listinfo/python-list
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.
--
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
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
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
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
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
!
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/
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
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
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
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
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
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
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
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
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
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
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
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
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
601 - 700 of 4053 matches
Mail list logo