[issue30798] Document that subprocess.Popen does not set PWD

2017-07-01 Thread James Lin
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

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2017-06-30 Thread James Shewey
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

[issue30806] netrc.__repr__() is broken for writing to file

2017-06-29 Thread James
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

Re: Error

2017-06-29 Thread Rhodri James
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

[issue30798] Document that subprocess.Popen does not set PWD

2017-06-28 Thread James Lin
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

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread Rhodri James
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.

Re: Hello from a super noob!

2017-06-08 Thread Rhodri James
-- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

[issue30568] README Formatting

2017-06-04 Thread James Lu
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

Re: Verifiably better, validated Enum for Python

2017-05-26 Thread Rhodri James
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

Re: How to install Python package from source on Windows

2017-05-18 Thread Rhodri James
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

Re: How to install Python package from source on Windows

2017-05-17 Thread Rhodri James
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

Re: How to install Python package from source on Windows

2017-05-17 Thread Rhodri James
icates that no one else thought it was worth while. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-02 Thread Rhodri James
f calling it, since you *don't* call it. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Rosetta: Sequence of non-squares

2017-05-02 Thread Rhodri James
newsgroup is unmoderated and cannot do such filtering. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: ValueError: Input contains NaN, infinity or a value too large for dtype('float32')

2017-04-27 Thread Rhodri James
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

Re: Array column separations for beginners

2017-04-26 Thread Rhodri James
output file. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Bigotry (you win, I give up)

2017-04-25 Thread Rhodri James
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

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread James McMahon
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

Check multiple file parms in single os.access?

2017-04-13 Thread James McMahon
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

Re: Data exchange between python script and bash script

2017-04-04 Thread Rhodri James
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

Re: Text-mode apps (Was :Who are the "spacists"?)

2017-03-30 Thread Rhodri James
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

Logging from different python scripts to different output files

2017-03-27 Thread James McMahon
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

[issue29872] My reply

2017-03-21 Thread James Triveri
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

Re: Who are the "spacists"?

2017-03-21 Thread Rhodri James
for fixed-width fonts. -- Rhodri James *-* Kynesim Ltd -- https://mail.python.org/mailman/listinfo/python-list

Re: Issues with in try except and excel spreadsheet

2017-03-14 Thread Rhodri James
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

Re: Issues with in try except and excel spreadsheet

2017-03-14 Thread Rhodri James
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

Re: Issues with in try except and excel spreadsheet

2017-03-13 Thread Rhodri James
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 *-*

Oracle Database

2017-03-07 Thread Robert James Liguori
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

[issue29716] Python 3 Module doc still sounds like __init__.py is required

2017-03-03 Thread James O
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

[issue29716] Python 3 Module doc still sounds like __init__.py is required

2017-03-03 Thread James O
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

Re: Odd wording it docs for shutil.move?

2017-03-03 Thread Rhodri James
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

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
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

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
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 "

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
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

[issue29705] socket.gethostbyname, getaddrinfo etc broken on MacOS 10.12

2017-03-02 Thread James Crowther
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

Re: If statement with or operator

2017-02-22 Thread Rhodri James
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

Re: Python - decode('hex')

2017-02-20 Thread Rhodri James
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

[issue5945] PyMapping_Check returns 1 for lists

2017-02-17 Thread James R Barlow
Changes by James R Barlow <j...@purplerock.ca>: -- pull_requests: +105 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5945> ___ _

Re: update a list element using an element in another list

2017-01-31 Thread Rhodri James
(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

Re: Find and append file path

2017-01-12 Thread Rhodri James
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

Re: Using namedtuples field names for column indices in a list of lists

2017-01-09 Thread Rhodri James
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

Re: Clickable hyperlinks

2017-01-09 Thread Rhodri James
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

Re: Clickable hyperlinks

2017-01-09 Thread Rhodri James
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

Re: Screwing Up looping in Generator

2017-01-06 Thread Rhodri James
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

Re: Clickable hyperlinks

2017-01-05 Thread Rhodri James
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

Re: Screwing Up looping in Generator

2017-01-04 Thread Rhodri James
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

Re: Python3, column names from array - numpy or pandas

2016-12-15 Thread Rhodri James
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

[issue28877] Cannot compile _ssl.o on HP-UX

2016-12-05 Thread James Matthews
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

[issue18777] Cannot compile _ssl.c using openssl > 1.0

2016-11-30 Thread James Matthews
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

[issue28663] Higher virtual memory usage on recent Linux versions

2016-11-11 Thread James Lu
Changes by James Lu <bitfl...@gmail.com>: -- nosy: +James Lu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28663> ___ __

[issue20825] containment test for "ip_network in ip_network"

2016-10-20 Thread James Schneider
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

[issue28326] multiprocessing.Process depends on sys.stdout being open

2016-10-01 Thread James Lu
Changes by James Lu <bitfl...@gmail.com>: -- nosy: +James Lu ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28326> ___ __

[issue27934] json float encoding incorrect for dbus.Double

2016-09-02 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-02 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-02 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-02 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-02 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-01 Thread Eddie James
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

[issue27934] json float encoding incorrect for dbus.Double

2016-09-01 Thread Eddie James
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

[issue26513] platform.win32_ver() broken in 2.7.11

2016-08-31 Thread James Domingo
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.

[issue27890] platform.release() incorrect in Python 3.5.2 on Windows 2008ServerR2

2016-08-29 Thread James Domingo
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

Re: Python and 64bit Windows7

2016-08-08 Thread James Santiago
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

Python and 64bit Windows7

2016-08-08 Thread James Santiago
these issues and get Python and PyCharm to work? I would appreciate your help. Regards James -- https://mail.python.org/mailman/listinfo/python-list

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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

[issue27532] Dictionary iterator has no len()

2016-07-16 Thread James Lu
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

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-17 Thread James Paget
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

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
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

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
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.

[issue27305] Crash with "pip list --outdated" on Windows 10 with Python 2.7.12rc1

2016-06-13 Thread James Paget
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

[issue27295] heaps library does not have support for max heap

2016-06-12 Thread James Lu
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>

[issue27295] heaps library does not have support for max heap

2016-06-11 Thread James Lu
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

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
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

[ANN]: circuits 3.2 (Bug Fix Release)

2016-06-02 Thread James Mills
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/

[issue20825] containment test for "ip_network in ip_network"

2016-06-01 Thread James Schneider
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

[issue26689] Add `has_flag` method to `distutils.CCompiler`

2016-05-08 Thread James Tatum
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

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
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

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
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

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
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

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
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

[issue26982] Clarify forward annotations in PEP 484

2016-05-08 Thread James Tatum
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

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2016-04-14 Thread James
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

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2016-04-10 Thread James Hennessy
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

Unable to activate Python once installed, as far I am aware i have full permission. The download is in programs but does not show when i use run in windows start menu, any suggestions would be helpful

2016-01-31 Thread Haydn James
-- https://mail.python.org/mailman/listinfo/python-list

Re: psss...I want to move from Perl to Python

2016-01-29 Thread James Harris
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

installation error

2016-01-28 Thread JAMES SCALF
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 ISO-8301 String in Python?

2016-01-23 Thread Robert James Liguori
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

Calculating longitudinal acceleration, lateral acceleration and normal acceleration

2016-01-23 Thread Robert James Liguori
Is there a python library to calculate longitudinal acceleration, lateral acceleration and normal acceleration? Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I add 18 seconds to an ISO-8601 String in Python?

2016-01-23 Thread Robert James Liguori
Thank you so much! Btw, how do I convert back to ISO-8301? -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I add 18 seconds to an ISO-8601 String in Python?

2016-01-23 Thread Robert James Liguori
Oh... How do I convert it back to ISO 8301? -- https://mail.python.org/mailman/listinfo/python-list

Re: How do I add 18 seconds to an ISO-8601 String in Python?

2016-01-23 Thread Robert James Liguori
I cant thank you enough -- https://mail.python.org/mailman/listinfo/python-list

Is there a limit to the characters used in a print statement?

2016-01-16 Thread Robert James Liguori
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

Issue

2015-12-06 Thread James Gilliver
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

[issue25713] Setuptools included with 64-bit Windows installer is outdated

2015-11-23 Thread James Paget
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

pygtk beginner script not working

2015-11-14 Thread james
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

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-18 Thread James DeVincentis
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

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-18 Thread James DeVincentis
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

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-18 Thread James DeVincentis
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

Re: Problem with copy.deepcopy and multiprocessing.Queue

2015-10-18 Thread James DeVincentis
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

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