James Lin added the comment:
Yes, but the Python docs have scary-looking warnings about using shell=True, so
people (rightly) should avoid using shell=True if they don't think that they
need it. And in this case, people might not even know that they're invoking
some binary that expects PWD
James Shewey added the comment:
According to the man page for gethostbyaddr "The gethostbyname*() and
gethostbyaddr*() functions are obsolete. Applications should use getaddrinfo(3)
and getnameinfo(3) instead." - so perhaps using the correct API call might be a
good start to
New submission from James:
Have any valid .netrc file. For testing purposes you can use this:
machine abc.xyz login myusername password mypassword
The documentation for netrc.__repr__() states that it "dumps the class data as
a string in the format of a netrc file". However, wh
our reply doesn't contain any JSON. Have you tried
dumping the response out to see exactly what was sent?
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James Lin:
Even though http://bugs.python.org/issue4057 was rejected (which I think is
fair), I think it would be worth mentioning something about PWD in the Python
docs for subprocess.Popen's cwd parameter (and possibly for os.chdir):
1. It's pretty common for people
sfer needs. However when you need that extra
flexibility, it's wonderful, and it doesn't *have* to be complex.
Of course, all this assumes you don't want the efficiency of a bespoke
binary protocol. Living in an embedded world, I usually do :-)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James Lu:
- Shorten the Copyright statement from a list of years (`2001, 2002, 2003, ...
2017`) into `2001-2017`
- Extend copyright date at end of README from 2016 to 2017
- Ensure that there are two newlines before every header throughout the file
(this was the original
d". Anyone doing
cross-platform work should avoid it like the plague it will become to them.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
scripts with that file, and (b) I think you may be
making assumptions about non-aligned pointers that will kill you on
ARM3, and are horribly inefficient elsewhere.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 17/05/17 14:53, bartc wrote:
On 17/05/2017 13:35, Rhodri James wrote:
On 17/05/17 01:41, bartc wrote:
As a cross-platform developer, I find your naivity refreshing. If only
life were so simple.
When you develop code yourself, you can lay out your files however you
find most convenient
icates that no one else thought it was worth while.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
f calling it, since you *don't* call it.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
newsgroup is unmoderated and cannot do such
filtering.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
ess finished with exit code 1
Description :
Can any one help with the error message.
It means exactly what it says. One of the values in your testDataVecs
(I assume) is not a number, infinite or too big for a 32-bit IEEE float
to represent. You may be using the sklearn package incorrect
output file.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
and that people awake and sleep with the sun is also fake?
The influence of Jupiter, Saturn, etc is — for astrology-buffs at least — just a
refinement of the influence of the sun, moon
Mostly it's irrelevant. Kindly stop.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman
Can the moderators please get involved here and remind people to address
python related topics and questions on the python mailing list? While I can
only speak to my interest when joining this list, isn't python why
most people joined this list? Others have different and polarizing views on
many
Hello. Am a Python newbie. I have researched and found examples how we can
check existence, readability, and write-ability on a given fully-qualified
filename for the current python script user. Evidently os.access is the way
to go, wrapped in some additional try and catch logic that helps
reading a decent shell scripting tutorial. Pay particular attention
to piping, which appears to be what you are trying to reinvent. If all
else fails, Read The Fine Manual; it's not the easiest of reads, but it
does contain all the information you need.
--
Rhodri James *-* Kynesim Ltd
On 30/03/17 16:57, Mikhail V wrote:
Steve, it is not bad to want to spell your name using spelling which
was taught you in the school. But it is bad to stay in illusion that there
is something good in using accents.
*plonk*
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman
I'm struggling with Python logging. Have tried to apply several examples I
have found in the open source literature, but can't get it to work. What I
need to do is this: I have two python scripts, a.py and b.py. Each is
called by NiFi ExecuteScript processor repeatedly against many incoming
New submission from James Triveri:
reply from james.triv...@gmail.com
--
messages: 289962
nosy: jtrive84
priority: normal
severity: normal
status: open
title: My reply
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
for fixed-width fonts.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
it and frankly the overly long lines don't survive
email well on my machine. However, you should look for the tidying up
in your code that doesn't get done because the attempted write throws an
exception.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
On 13/03/17 20:37, padawanweb...@gmail.com wrote:
On Monday, March 13, 2017 at 11:10:36 AM UTC-7, Rhodri James wrote:
On 13/03/17 17:40, padawanweb...@gmail.com wrote:
Hello, I'm having a problem with a try except inside a while loop. The problem
I see occuring has to do with an excel file
or unrelated reasons. I repeat, though; this isn't a loop, and my
crystal ball isn't up to telling me how it gets invoked.
FYI: The assetMapping.py runs another module from inside, and it's this module
running from assetMapping that writes to the excel file.
--
Rhodri James *-*
What is the easiest way to connect to an Oracle Database using python in order
to run queries?
--
https://mail.python.org/mailman/listinfo/python-list
James O added the comment:
Ah, I didn't realize some tools depended on it. Should I set the status to
closed? (like I said, I'm new to this)
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
New submission from James O:
PEP 420 says "Allowing implicit namespace packages means that the requirement
to provide an __init__.py file can be dropped completely..."
(as described here:
http://stackoverflow.com/questions/37139786/is-init-py-not-required-for-packages-i
longer.
Exactly Grant's point. The shutil.move documentation talks about the
*current* filesystem, not the filesystem on which is located.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
James Crowther added the comment:
Hi Ned,
Thats ok, thanks! I’m going to try it on another machine, its really
strange, I’m wondering what I might have done on my mac to cause it to flake
out like this. Will do some more testing with other macs running 10.12 and see
if they have
James Crowther added the comment:
Hi Ned,
Currently running 10.12.3. and output is as follows
Jamess-MacBook-pro:crowdrender_repository jamesmac$ python3.5
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 26 2016, 10:47:25)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "
James Crowther added the comment:
Hi Ned,
Doesn’t seem to matter, I can try my local host name given by;
socket.gethostname()
or I can try another host on the network, same result.
If I do the exact same operation using the same python version on windows or
linux, then I get
New submission from James Crowther:
Currently I can't use socket to resolve host names to IP addresses. This is
something critical to mine as well as other applications that run over
networks.
When I attempt to do the following:
import socket
socket.getaddrinfo(hostname, None
t are true in a boolean
context.
if attempt_umount() or df_output_lines():
is far more likely to do what you expect.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
which you weren't)
Since you probably want to do this for your file name too, you might
want to pass them as command line parameters to the script. Look up
sys.argv[] in the standard library, or the argparse module if you're
feeling keen.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
Changes by James R Barlow <j...@purplerock.ca>:
--
pull_requests: +105
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5945>
___
_
(update_dict)
range(len(something)) is usually a warning sign (code smell, if you
prefer) that you aren't thinking in Python. If you really need the list
index for some nefarious purpose, enumerate(something) is probably still
a better bet.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org
Which attribute
you want depends on exactly what you mean by "the latest folder
according to the latest date". Then just use your favourite means to
join the directory name you selected to the original path.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
it's just:
records = sorted(
sorted(
set(records),
key=operator.attrgetter("Description")
),
key=operator.attrgetter("Date")
)
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
inability to communicate again.
I think she meant to say that the console is dumb, not dead. In a
very strict sense that's almost true, but since we've been using
"console" interchangeably with "terminal emulator" throughout this
discussion, it's hilariously wrong.
--
Rhod
On 05/01/17 02:53, Deborah Swanson (Deborah Swanson) wrote:
Rhodri James wrote, on January 05, 2017 3:53 AM
On 05/01/17 04:52, Deborah Swanson wrote:
My original question was in fact whether there was a way to make
clickable hyperlinks in a console. I was persuaded after about 10
replies
ds them. It would be
> helpful to see the code for rootobs, if you have it.
Ahem. If Sayth is using the correct terminology and rootobs actually is a
generator (not, say, a list or tuple), then no it won't work. Once a generator
is exhausted, it's exhausted. Besides, the nested for-loop
stion since it's based on incorrect assumptions."
Translating that to "No" is just as much a mistake as translating it to
"Yes."
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
say, a list or tuple), then no it won't work. Once a
generator is exhausted, it's exhausted. Besides, the nested for-loops
over the same iterable is a dead giveaway that something is wrong.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
ive coding for blank lines or unexpected data
in there, and if want to use the results later on you probably want to
stash them in a dictionary, but that will do the job.
--
Rhodri James *-* Kynesim Ltd
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James Matthews:
Cannot build Python 2.7.12 on HP-UX due to the following error:
/opt/hp-gcc64-4.7.1/bin/gcc -pthread -shared
build/temp.hp-ux-B.11.31-9000-800-2.7/root/build/Python-2.7.12/Modules/_ssl.o
-L/usr/local/lib -lssl -lcrypto -o build/lib.hp-ux-B.11.31-9000-800
James Matthews added the comment:
This is marked as fixed but am still seeing this error in 2.7.12 on HP-UX 11.31.
/opt/hp-gcc64-4.7.1/bin/gcc -pthread -shared
build/temp.hp-ux-B.11.31-9000-800-2.7/root/build/Python-2.7.12/Modules/_ssl.o
-L/usr/local/lib -lssl -lcrypto -o build/lib.hp-ux-B
Changes by James Lu <bitfl...@gmail.com>:
--
nosy: +James Lu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28663>
___
__
James Schneider added the comment:
Please consider for implementation in 3.6. I'd love it even more for 3.5 but I
don't think that will happen. With the latest patch, I don't believe there are
any backwards-incompatible changes, though
Changes by James Lu <bitfl...@gmail.com>:
--
nosy: +James Lu
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28326>
___
__
Changes by Eddie James <eaja...@us.ibm.com>:
Added file: http://bugs.python.org/file44349/json-float-repr-2.7.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Eddie James added the comment:
Python 2.7 also already behaves correctly for other dbus types:
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import
Eddie James added the comment:
Wait what about the json C code for 2.7? That's still using PyObject_Repr()
which will call tp_repr for dbus.Double... Any suggestions?
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Eddie James added the comment:
Thanks Mark, yes you installed the right package.
OK I didn't dig deep enough in the sub class. And yea, there shouldn't be any
difference between float.__repr__ and float.__str__. Obviously repr calls the
object's tp_repr method, while float.__repr__ calls
Eddie James added the comment:
Understood on 2.7, I wasn't aware it would cause any issues.
Dbus.Double is not a subclass of float unfortunately. Problem is that all Dbus
types seem to have a custom tp_repr method that returns that strange formatting
I mentioned. So repr won't be the same
Changes by Eddie James <eaja...@us.ibm.com>:
Added file: http://bugs.python.org/file44334/json-float-str-2.7.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from Eddie James:
JSON does not correctly encode dbus.Double types, even though all other dbus
types are handled fine. I end up with output like this (0.25 is the floating
point value): dbus.Double(0.25, variant_level=1)
Found that the encoding uses repr() for float objects
James Domingo added the comment:
Per SilentGhost's request, reposting my message from issue 27890 here --
The platform.release() function in Python 3.5.1 returns the correct value on
Windows 2008 Server R2:
C:\Users\jdoe\Documents\Python>python-3.5.1-embed-amd64\python.exe
Python 3.
New submission from James Domingo:
The platform.release() function in Python 3.5.1 returns the correct value on
Windows 2008 Server R2:
C:\Users\jdoe\Documents\Python>python-3.5.1-embed-amd64\python.exe
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit
(AM
hon\lib\__pycache__\codecs.cpython-35.pyc matches
C:\Python\lib\codecs.py
Thank you in advance for your help.
Regards
James
On Mon, Aug 8, 2016 at 2:08 AM, Joaquin Alzola <joaquin.alz...@lebara.com>
wrote:
> >I am having problems when installing Python on a 64bit windows7 lapto
these issues and get Python and PyCharm to
work?
I would appreciate your help.
Regards
James
--
https://mail.python.org/mailman/listinfo/python-list
James Lu added the comment:
I think you closed it too quickly. You see, computing the length of
combinations() doesn't require looping all the way through the iterator;
you can compute it quickly. I created a wrapper class just for this purpose.
On Sat, Jul 16, 2016 at 5:24 PM, R. David Murray
James Lu added the comment:
same for itertools iterators - libraries such as tqdm would benefit from
this
On Sat, Jul 16, 2016 at 3:08 PM, James Lu <rep...@bugs.python.org> wrote:
>
> New submission from James Lu:
>
> This would be useful for libraries like tqdm (p
New submission from James Lu:
This would be useful for libraries like tqdm (progress bar module).
--
components: Interpreter Core
messages: 270581
nosy: James.Lu
priority: normal
severity: normal
status: open
title: Dictionary iterator has no len()
type: enhancement
versions: Python 3.6
James Paget added the comment:
The 2.7.12rc1+ build resolves the issue for me.
--
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
James Paget added the comment:
Python Packaging Authority member pfmoore from pypa/pip says "there's no
ctypes-based code that could be causing the error" and "Python appears to be
crashing as a result of pure Python code" and "there's no way that I can see
how pip co
James Paget added the comment:
I have submitted this to pip as you have suggested (see pip Issue #3795), but
feel that Python.exe should not crash even if there is a problem with a
third-party package.
--
___
Python tracker <rep...@bugs.python.
New submission from James Paget:
On Windows 10 Professional 64-bit, typing "pip list --outdated" or "python -m
pip install -U pip" at the Windows command prompt causes Python 2.7.12rc1 to
crash. I get the standard "python.exe has stopped working" crash not
James Lu added the comment:
It's not a very pythoniic way to simply negate the value. Plus, the
majority of heap users want performance (heap was made for speed), so a C
version would be much better.
On Sat, Jun 11, 2016 at 4:39 PM, Raymond Hettinger <rep...@bugs.python.org>
New submission from James Lu:
Both max heaps and min heaps have uses in algorithms. Some algorithms require
both. Why doesn't the heapq library support max heaps (not including the
private _heapify_max() method)?
--
components: Library (Lib)
messages: 268211
nosy: James.Lu
priority
James Lu added the comment:
Even a wrapper class would be helpful, it's simply more pythonic.
On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger <rep...@bugs.python.org>
wrote:
>
> Raymond Hettinger added the comment:
>
> The main reason is that there would be very litt
New submission from James Lu:
The heapq library uses a list or other mutable sequence time to represent a
heap. Since Python is a highly OOP language, why not make heaps their own data
type?
--
components: Library (Lib)
messages: 268159
nosy: James.Lu
priority: normal
severity: normal
Github org: https://github.com/circuits
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 Schneider added the comment:
I'd like to ask for a status on getting this merged?
As a network administrator, these changes would have a magical effect on my
code dealing with routing tables and ACL's.
--
nosy: +James Schneider
___
Python
James Tatum added the comment:
FYI, NamedTemporaryFile doesn't work well with Windows. There are a handful of
issues about it.
--
nosy: +James.Tatum
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/i
Changes by James Tatum <jta...@gmail.com>:
Removed file: http://bugs.python.org/file42786/forward_references.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by James Tatum <jta...@gmail.com>:
Added file: http://bugs.python.org/file42787/forward_references.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by James Tatum <jta...@gmail.com>:
Added file: http://bugs.python.org/file42786/forward_references.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
Changes by James Tatum <jta...@gmail.com>:
Removed file: http://bugs.python.org/file42785/forward_references.patch
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python
New submission from James Tatum:
In https://github.com/python/typeshed/issues/180, we discussed a slight
ambiguity with PEP 484's mention of forward references. It wasn't entirely
clear that they don't apply unless using function annotations. This patch
attempts to clear up the ambiguity
New submission from James:
>>> import mock
>>> print mock.__version__
2.0.0
>>>
=
test.py
from mock import Mock,call
class BB(object):
def __init__(self):pass
def print_b(self):pass
def print_bb(self,tsk_id):pass
bMock = Mock(return
New submission from James Hennessy:
The tempfile.SpooledTemporaryFile class doesn't correctly preserve data for
text (non-binary) SpooledTemporaryFile objects when Unicode characters are
written. The attached program demonstrates the failure. It creates a
SpooledTemporaryFile object, writes
--
https://mail.python.org/mailman/listinfo/python-list
n't go into detail as this is not a
Perl group but I found Perl horrible to work with. It is slick but also
cryptic.
James
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
I am having an issue installing Python 3.51,
I get an error message stating that there is a dll that is
missing:
API-MS-WIN-CRT-RUNTIME-l1-1-0.DLL
I have tried reinstalling the program but keep getting the
same error message.
Please advise of fix.
Please reply to
How do I add 18 seconds to this string in Python?
2000-01-01T16:36:25.000Z
--
https://mail.python.org/mailman/listinfo/python-list
Is there a python library to calculate longitudinal acceleration, lateral
acceleration and normal acceleration?
Thanks.
--
https://mail.python.org/mailman/listinfo/python-list
Thank you so much! Btw, how do I convert back to ISO-8301?
--
https://mail.python.org/mailman/listinfo/python-list
Oh... How do I convert it back to ISO 8301?
--
https://mail.python.org/mailman/listinfo/python-list
I cant thank you enough
--
https://mail.python.org/mailman/listinfo/python-list
I'm doing a data conversion and all is garbled when I add an extra hundred
lines to the print in my for loop. Is there a limit?
--
https://mail.python.org/mailman/listinfo/python-list
Hi!
I have recently installed Python 3.5.0 but cannot open the application! Could
you help me resolve this issue?
Thanks,James
--
https://mail.python.org/mailman/listinfo/python-list
New submission from James Paget:
This applies to Python 3.5.1rc1 only. The Windows 64-bit standalone installer
installs setuptools 18.2, but the latest version is 18.5. It should be noted
that the Python 2.7.11rc1 Windows 64-bit standalone installer installs
setuptools 18.5. Other Python
naries/win32/pygtk/2.24/
Reading http://www.daa.com.au/~james/pygtk/
Reading http://www.daa.com.au/~james/software/pygtk/
Reading http://www.pygtk.org
Reading http://www.pygtk.org/
Best match: pygtk 2.24.0
Processing pygtk-2.24.0-py2.7-win32.egg
pygtk 2.24.0 is already the active version in easy
stion is why is it necessary to call os._exit() ?
> On Oct 17, 2015, at 3:19 PM, James DeVincentis <ad...@hexhost.net> wrote:
>
> So, whatever is causing this is a bit deeper in the multiprocessing.Queue
> class. I tried using a non-blocking multiprocessing.Queue.get() by setting
I see, looks like I’ll have to use Queue.close()
Didn’t think it would be necessary since I was assuming it would be garbage
collected. Sigh. Bug, fixed.
Thanks everyone!
> On Oct 18, 2015, at 3:41 AM, James DeVincentis <ad...@hexhost.net> wrote:
>
> I get why it nee
to exit nicely (not raising a SystemExit), AND flush
the buffers, so I’m stuck in a stupid edge case.
> On Oct 18, 2015, at 3:33 AM, James DeVincentis <ad...@hexhost.net> wrote:
>
> Seems I found the cause. os._exit() is used in ForkingMixIn for SocketServer
> and it’s child
015, at 3:19 PM, James DeVincentis <ad...@hexhost.net> wrote:
>
> So, whatever is causing this is a bit deeper in the multiprocessing.Queue
> class. I tried using a non-blocking multiprocessing.Queue.get() by setting
> the first parameter to false and then catching the
501 - 600 of 4053 matches
Mail list logo