Re: Thank you Python community!

2018-03-20 Thread John Ladasky
On Monday, March 19, 2018 at 9:28:09 AM UTC-7, Etienne Robillard wrote: > I would like to thank you guys sincerely for helping a lot of people to > stay clean, and focus on programming high-level stuff in Python instead > of doing some really nasty drugs. Yeah, it's either Python or that horrif

Re: Plot not working

2018-05-04 Thread John Ladasky
On Friday, May 4, 2018 at 9:13:02 PM UTC-7, Sharan Basappa wrote: > I am new to Python and using it to learn machine learning. > > Below is a sample program I am running to plot IRIS data set. > The code runs but no plot comes up. I am not sure what the issue is with the > code. > > # Imports >

Re: Target WSGI script cannot be loaded as Python module.

2018-05-23 Thread John Gordon
led successfully. Is your web server using Python 2 or Python 3 to execute WSGI? -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies&quo

Re: Posting warning message

2018-06-10 Thread John Ladasky
On Sunday, June 10, 2018 at 7:47:01 AM UTC-7, T Berger wrote: > When I go to post a reply, I get a warning asking if I want my email address > (or other email addresses listed) visible to all, and do I want to edit my > post. What should I do? Are you posting through Google Groups? Sometimes I

Matplotlib 3D limitations, please recommend alternative

2018-07-04 Thread John Ladasky
I'm a regular Matplotlib user. Normally, I graph functions. I just attempted to graph an icosahedral surface using the plot_trisurf() methods of Matplotlib's Axes3D. I have discovered that Matplotlib is basically hard-wired for graphing functions, and therefore will not work for general-purpos

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-06 Thread John Ladasky
On Wednesday, July 4, 2018 at 3:30:32 PM UTC-7, Rick Johnson wrote: > On Wednesday, July 4, 2018 at 4:53:19 PM UTC-5, John Ladasky wrote: > > There are many 3D graphics packages on PyPI. Some appear to be quite > > specialized. I would appreciate your recommendations. Thanks! &g

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-06 Thread John Ladasky
On Wednesday, July 4, 2018 at 6:38:18 PM UTC-7, William Ray Wing wrote: > > On Jul 4, 2018, at 5:53 PM, John Ladasky wrote: [snip] > > I explored Python OpenGL bindings about three years ago, and quickly got > > bogged down. Even with Python to assist, dealing with OpenGL wa

Re: Matplotlib 3D limitations, please recommend alternative

2018-07-07 Thread John Ladasky
On Saturday, July 7, 2018 at 6:36:16 AM UTC-7, Rick Johnson wrote: > John Ladasky wrote: > > > Back then I wrote: > > > > "I have concluded that Qt, PyQt, and OpenGL are all > > rapidly-evolving, and huge, software packages. There may > > be compatibi

curses, ncurses or something else

2018-07-23 Thread John Pote
I recently wrote a command line app to take a stream of numbers, do some signal processing on them and display the results on the console. There may be several output columns of data so a title line is printed first. But the stream of numbers may be several hundred long and the title line disap

Can pip install packages for all users (on a Linux system)?

2018-07-24 Thread John Ladasky
I've been using "sudo pip3 install" to add packages from the PyPI repository. I have multiple user accounts on the computer in question. My goal is to install packages that are accessible to all user accounts. I know that using the Synaptic Package Manager in Ubuntu will install for all users

Re: curses, ncurses or something else

2018-07-25 Thread John Pote
On 24/07/2018 16:13, Peter Pearson wrote: On Mon, 23 Jul 2018 23:24:18 +0100, John Pote wrote: I recently wrote a command line app to take a stream of numbers, do some signal processing on them and display the results on the console. There may be several output columns of data so a title line

Re: Can pip install packages for all users (on a Linux system)?

2018-07-25 Thread John Ladasky
On Wednesday, July 25, 2018 at 7:15:35 AM UTC-7, Stephan Houben wrote: > Op 2018-07-24, John Ladasky schreef : > > I believe that I now have tensorflow 1.8 installed twice on my system, > > once for each user. If anyone can share how to convince pip to behave > > like Synapti

Re: regex pattern to extract repeating groups

2018-08-27 Thread John Pote
s from the camera to the digital negative format which many photo editors can handle.) Can send you sample .CR3 if you want to compare. Regards, John -- https://mail.python.org/mailman/listinfo/python-list

Re: How to sort over dictionaries

2018-08-28 Thread John Ladasky
The top-level object you are showing is a list [], not a dictionary {}. It has dictionaries inside of it though. Do you want to sort the list? Python's sorted() function returns a sorted copy of a sequence. Sorted() has an optional argument called "key". Key accepts a second function which c

Re: clever exit of nested loops

2018-09-27 Thread John Ladasky
On Wednesday, September 26, 2018 at 12:50:20 AM UTC-7, vito.d...@gmail.com wrote: > I have "abused" the "else" clause of the loops to makes a break "broke" more > loops I did this once upon a time. In recent years, when I start writing tricky nested loops, I frequently find myself reaching fo

Re: What's needed for jpegtran in Python 3?

2018-09-27 Thread John Ladasky
On Thursday, September 27, 2018 at 10:48:16 AM UTC-7, Chris Green wrote: > I think that must be what I have already installed, it doesn't make > the module available in Python 3, it just says this when I try and > install it:- > > root@t470:~# pip install jpegtran-cffi > Requirement alread

Creating Win .exe file from *.py on Linux

2018-10-02 Thread John Doe
Hello World Is it possible to create on Linux win .exe file from *.py file? -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyscripter Issues

2016-03-31 Thread John Gordon
bit version. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list

Evaluating error strings for 'unittest' assert methods.

2016-04-06 Thread John Pote
xpectedValues), (nBytesRd,valuesRead), """Unexpected reg value. Expected values nBytes:%02x (%s) """%(nBytes,' '.join( [ "%04x"%v for v in expectedValues] )) + "Read values nBytes:%02x (%s)"%(nBytesRd,' '.join

Re: REMOVE ME

2016-04-11 Thread John Pote
instance by getting the reference to it and bring it back to life - revenant = Thing.things[x] But then I notice 'things' is used as an instance attribute rather than a class attribute. All seems to be shrouded in a web of mystery Regards, John -- https://mail.python.org/mailman/listinfo/python-list

Re: Serious error in int() function?

2016-04-15 Thread John Pote
656.00' >>> This indicates that 1e30 is not representable in Python's floating point representation. John Apfelkiste:AsynCA chris$ bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with

Re: Python path and append

2016-04-25 Thread John Gordon
en rename it afterwards, instead of rewriting the original file. import os f_in = open('win.txt', 'r') f_out = open('win_new.txt', 'w') for line in f_in.read().splitlines(): f_out.write(line + " *\n") f_in.close() f_

Re: What should Python apps do when asked to show help?

2016-04-28 Thread John Wong
On Thu, Apr 28, 2016 at 1:02 PM, Dan Strohl via Python-list < python-list@python.org> wrote: > I would suggest using argparse > https://docs.python.org/3/library/argparse.html as it handles all of that > natively... including validating arguments, showing errors, help, etc... > however, assuming y

Re: Simplest way to locate a string in a column and get the value on the same row in another column

2016-04-28 Thread John Gordon
ething else? -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread John Wong
ain, males historically dominated women), we still treat people inferior by gender and ethnicity. I don't know, this is a sensitive issue. People are either coerced to believe in one kind of response, or perceive as anti-X if given a different kind of response. Thanks. John -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.5.1 Not Working

2016-05-13 Thread John Gordon
ion 3.4.3 if you are using Windows XP. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list

Re: Program prints questions for user input, but won't show the answer output

2016-05-18 Thread John Gordon
ounter < 7: > if (pints[counter] < lowPints): > lowPints = pints[counter] > counter = counter + 1 > return lowPints And getLow() has a very similar problem. I suspect you want to unindent the 'counter = counter + 1' statement so that it is NOT insid

Python and GPSD

2016-05-21 Thread John McKenzie
Good day, all. I need help using the Python bindings for GPSD. Specifically, I would like to take a latitude reading, put it in a variable and use it later. The problem is that every example I see involves constantly taking changing readings. That part I have working for myself by following

Re: ZipImportError: can't find module

2016-05-24 Thread John Gordon
ob? Are the permissions on the zipfile correct, and all parent directories? How, specifically, are you importing the module? Are you doing something like this: zipfile = zipimport.zipimporter('file.zip') zipfile.load_module('mymodule') -- John Gordon

Re: Unit test a class with xml elements

2016-05-24 Thread John Gordon
here. > Share if any examples available. Create your own sample XML illustrating each desired combination. Then write test cases for each. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for B

Re: [spam] Re: look what I've found [ignore]

2016-05-29 Thread John Ladasky
On Sunday, May 29, 2016 at 11:55:04 AM UTC-7, Peter Pearson wrote: > > No, it reached me, too, through NNTP. I also saw it, through the Google Groups gateway. -- https://mail.python.org/mailman/listinfo/python-list

Re: Don't put your software in the public domain

2016-06-01 Thread John Wong
On Wed, Jun 1, 2016 at 4:45 PM, Lawrence D’Oliveiro wrote: > On Thursday, June 2, 2016 at 3:00:05 AM UTC+12, Steven D'Aprano wrote: > > ... because it is extremely unlikely to work. > > Which is why CC0 https://creativecommons.org/publicdomain/zero/1.0/ was > invented. > -- > This does not solve

Re: Recommendation for GUI lib?

2016-06-02 Thread John Pote
lders. Disadvantage is the download page only provides builds for Python 2.6 or 2.7. Does anyone know how Project Phoenix is coming on? http://wxpython.org/Phoenix/ItsAlive/ shows wxPython working with Python 3.2. Comments on how stable it is and how easy to install would be helpful. John

Re: Recommendation for GUI lib?

2016-06-04 Thread John Pote
On 02/06/2016 22:57, Dietmar Schwertberger wrote: On 02.06.2016 12:35, John Pote wrote: I've used wxPython (www.wxpython.org) for a few GUI projects and found it ok. It's a wrapper for the wxWidgets C++ library. There's even a reasonable free GUI builder, wxGlade, which I

Re: why it is like stop running after a 3 seconds

2016-06-09 Thread John Gordon
he function, but the recursive calls aren't inside that if block. DFS keeps calling itself with smaller and smaller values of deep. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears

Re: how to solve memory

2016-06-10 Thread John Gordon
In <4f853aa2-cc00-480b-9fd7-79b05cbd4...@googlegroups.com> meInvent bbird writes: > https://drive.google.com/file/d/0Bxs_ao6uuBDULVNsRjZSVjdPYlE/view?usp=sharing I already responded to your earlier post about this program. Did you read it? -- John Gordon A is for

Re: how to solve memory

2016-06-10 Thread John Gordon
ur name changed in previous post? My comment was that the recursive calls weren't indented in the "if deep > 0" block, therefore DFS was being called infinitely with smaller and smaller values of deep. But it appears you have fixed that issue. -- John Gordon

Re: log file.

2016-06-14 Thread John Gordon
g for help with logging, or communicating with the pump? -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.py

Re: how to for loop append a list [] when using parallel programming

2016-06-15 Thread John Gordon
In meInvent bbird writes: > how to for loop append a list [] when using parallel programming items = [] for item in parallelized_object_factory(): items.append(item) If you want a more specific answer, ask a more specific question. -- John Gordon A is

Re: value of pi and 22/7

2016-06-17 Thread John Ladasky
On Friday, March 18, 2011 at 5:17:48 AM UTC-7, Neil Cerutti wrote: > RIIght. What's a cubit? > > -- > Neil Cerutti How long can you tread water? (Showing my age...) -- https://mail.python.org/mailman/listinfo/python-list

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread John Wong
On Wed, Jun 22, 2016 at 4:45 AM, Nick Sarbicki wrote: > On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > > > IMO you can do that at https://www.codecademy.com/learn/python > > > > Some people might think differently but I wouldn't recommend a python > course which teaches 2.7 over 3.x. > > p

Re: while Loops

2016-06-22 Thread John Gordon
ing at 5, and only stop when i is 6. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tinies" -- https://mail.python.org/mailman/listinfo/python-list

Re: Break and Continue: While Loops

2016-06-23 Thread John Gordon
ode prints i and THEN adds one to it. So i is 4, it gets printed, then 1 is added to it, so it becomes 5 and then the loop exits. -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears

Re: Getting back into PyQt and not loving it.

2016-06-26 Thread John Ladasky
On Sunday, June 26, 2016 at 7:41:17 PM UTC-7, Michael Torrie wrote: > If GTK+ had first-class support on Windows and Mac, including native > themes and seamless UI integration (file and print dialogs), I'd say > GTK+ would be the only game in town for Python programmers. > Unfortunately, unless you

Re: Sharing package data across files

2016-06-28 Thread John Pote
[0] = "oranges" In module barx at some later time from foo import bar ... print bar#prints ["oranges","bananas","grapes"] If my understanding here is correct then this would be a good case for never directly writing to a globle. Use getter()s and setter()s to make it obvious that any use of the setter() will be seen by all future calls to the getter(). Regards all, John -- https://mail.python.org/mailman/listinfo/python-list

Re: what the heck this code is doing?

2016-07-01 Thread John Gordon
27;?? It loops through the child items in entry, looking for one with a 'key' value of 'Track ID'. If it finds one, it sets found=True and loops one more time, returning the text of the *next* child element. It depends on the 'key' element being directly followed by the &#

Well, I finally ran into a Python Unicode problem, sort of

2016-07-03 Thread John Ladasky
A while back, I shared my love for using Greek letters as variable names in my Python (3.4) code -- when, and only when, they are warranted for improved readability. For example, I like to see the following: from math import pi as π c = 2 * π * r When I am copying mathematical formulas from

Re: Well, I finally ran into a Python Unicode problem, sort of

2016-07-03 Thread John Ladasky
Lawrence, I trust you understand that I didn't post a complete working program, just a few lines showing the intended usage? -- https://mail.python.org/mailman/listinfo/python-list

Re: Well, I finally ran into a Python Unicode problem, sort of

2016-07-03 Thread John Ladasky
On Sunday, July 3, 2016 at 12:42:14 AM UTC-7, Chris Angelico wrote: > On Sun, Jul 3, 2016 at 4:58 PM, John Ladasky wrote: > Very good question! The detaily answer is here: > > https://docs.python.org/3/reference/lexical_analysis.html#identifiers > > > A philosophical ques

py2exe crashes on simple program

2016-07-04 Thread John Nagle
ime.py", line 426, in build_archive assert mod.__file__.endswith(EXTENSION_SUFFIXES[0]) AssertionError Python 3.5.2 / Win7 / AMD64. John Nagle -- https://mail.python.org/mailman/listinfo/python-list

Re: py2exe crashes on simple program

2016-07-05 Thread John Nagle
flow.com/questions/32963057/is-there-a-py2exe-version-thats-compatible-with-python-3-5 cx_freeze has been suggested as an alternative, but its own documents indicate it's only been tested through Python 3.4. Someone reported success with a development version. I guess people don't create Python executables much. John Nagle -- https://mail.python.org/mailman/listinfo/python-list

input vs. readline

2016-07-08 Thread John Nagle
ross-version (Python 2.7, 3.x), and doesn't do "readline" processing? (No, I don't want to use signals, a GUI, etc. This is simulating a serial input device while logging messages appear. It's a debug facility to be able to type input in the console window.) John Nagle -- https://mail.python.org/mailman/listinfo/python-list

Re: JSON result parsing

2016-07-29 Thread John Gordon
return results['ID'] else: return 'something else' -- John Gordon A is for Amy, who fell down the stairs gor...@panix.com B is for Basil, assaulted by bears -- Edward Gorey, "The Gashlycrumb Tin

Re: Odd truth result with in and ==

2018-11-23 Thread John Pote
On 21/11/2018 19:18, Python wrote: $ python3 Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. 1 in [1,2,3] == True False 1 in ([1,2,3] == True) Traceback (most recent call last): File "", line

Re: get the terminal's size

2019-01-14 Thread John Doe
On 2019-01-14, Bob van der Poel wrote: > try this: > > > http://stackoverflow.com/questions/566746/how-to-get-console-window-width-in-python > and have a look at this one too: https://stackoverflow.com/questions/1396820/apt-like-column-output-python-library/1446973#1446973 > -- https://mail.pyth

Re: cant use def command

2019-02-02 Thread John Doe
On 2019-02-01, mb1541def 0 <12345678mb1541...@gmail.com> wrote: > > Hello, > I need help on the def command. > > My script: > > Import os > Test > > def Test(): > print(“test”) > os.system(“pause”) > > someone please help,it gives me an error in python 3. > I did everything right. > On 2019-02-01,

Re: Implement C's Switch in Python 3

2019-02-05 Thread John Sanders
On Saturday, February 2, 2019 at 6:47:49 PM UTC-6, Sayth Renshaw wrote: > Hi > > I am trying to convert a switch statement from C into Python. (why? > practising). > > This is the C code. > > printf("Dated this %d", day); > switch (day) { > case 1: case 21: case 31: > printf("st"

Your IDE's?

2019-03-25 Thread John Doe
What is your favorite Python IDE? -- https://mail.python.org/mailman/listinfo/python-list

Losing words

2019-04-01 Thread John Doe
I'm learning SOCKETS and working with Irc. --- s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) When more than one word ( for example: This is a message) in *message* it sends the FIRST word only "This" and skips th

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: >> >> I'm learning SOCKETS and working with Irc. >> --- >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) >> >> When more than one word ( for example: This is a message) >> in

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, David Raymond wrote: > https://docs.python.org/3.7/library/socket.html#socket.socket.send > > .send returns the number of bytes that it actually succeeded in sending. From > the docs: "Applications are responsible for checking that all data has been > sent; if only some of the dat

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Jon Ribbens wrote: > On 2019-04-01, John Doe wrote: >> I'm learning SOCKETS and working with Irc. >> --- >> s.send(bytes("PRIVMSG " + channel +" "+ message + "\n", "UTF-8")) >> --

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Joel Goldstick wrote: >> >> def text(): >> mess = input("> ") >> s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", "UTF-8")) >> >> text() >> > > Is this a typo or are you calling text() from within text()? >> Indeed I do :-) I was thinking on another way but

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: > > Use a loop, not recursion :) > I can guess only you mean: while but I've got no idea while what. -- https://mail.python.org/mailman/listinfo/python-list

Re: Losing words

2019-04-01 Thread John Doe
The colon was the solution, thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Roel Schroeven wrote: > This is what 'while' is made for: > > def text(): > while True: > mess = input("> ") > s.send(bytes("PRIVMSG " + " "+ channel + " " + mess + "\n", > "UTF-8")) > see it working thanks, indeed while is powerful, had to add colon to b

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Chris Angelico wrote: > > Cool. Please don't post context-free messages though - not everyone > knows that you were talking about IRC. (Part of that is because your > subject line didn't mention IRC either.) > I've mentioned it in a mother post mate. > If you're going to do a lot w

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Rhodri James wrote: > > I'm not an expert, but looking at RFC-1459 it looks like your final > parameter (the message) needs to be preceded by a colon. In other words > you want: > > s.send(bytes("PRIVMSG " + channel + " :" + mess + "\n", "UTF-8")) > > (Try printing out the line y

Re: Losing words

2019-04-01 Thread John Doe
On 2019-04-01, Abdur-Rahmaan Janhangeer wrote: > Since this is IRC, you might want to see a demo here: > https://github.com/Abdur-rahmaanJ/honeybot/blob/master/honeybot/main.py Yes. However get these def text() and loop while 1: working together. def text(): while True: mess = input

Re: Losing words

2019-04-02 Thread John Doe
On 2019-04-01, Paul Rubin wrote: > John Doe writes: >> sendall also is not sending a whole sentence. > > Have you observed that with something like wireshark? > I was about colon ":" before message with a colon a whole message is " before message wit

newer version

2019-04-09 Thread John Doe
I've already -X555UJ:~$ python python python3python3.6m python3m python2python3.6 python3.6m-config python3m-config python2.7 python3.6-config python3-config Wondering if not add Python3.7 yet if so should I just do: sudo apt instal

Re: python book

2019-04-16 Thread John Doe
On 2019-04-16, Larry Martell wrote: > https://www.reddit.com/r/Python/comments/bc2606/just_found_the_best_python_bookcover NOT FOUND -- https://mail.python.org/mailman/listinfo/python-list

Re: Amber Brown: Batteries Included, But They're Leaking

2019-05-19 Thread John Ladasky
mpy is not part of the Python stdlib. On Monday, September 18, 2017 at 10:21:55 PM UTC+1, John Ladasky wrote: > OK, I found this statement intriguing. Honestly, I can't function without > Numpy, but I have always assumed that many Python programmers do so. > Meanwhile: most of th

Re: Meanwhile Norwegian trolls created ...

2019-08-19 Thread John Ladasky
On Saturday, August 17, 2019 at 2:40:14 AM UTC-7, Abdur-Rahmaan Janhangeer wrote: > But it is not so easy to combine different memory management paradigms. Oh, I feel this. I love the look and feel of PyQt5, but object management has bitten me more than once. -- https://mail.python.org/mailman

Full stack trace in pdb.post_mortem() ?

2019-11-01 Thread John W
I'm trying to understand pdb.post_mortem(), and why the backtrace available in the debugger session seems limited. I posted a similar question on stackoverflow[1], but figured I'd try here as well. Here's a simple program import pdb def inner(): raise Exception("bad stuff")

"Don't install on the system Python"

2019-11-30 Thread John Ladasky
Long-time Ubuntu user here. For years, I've read warnings about not installing one's personal stack of Python modules on top of the system Python. It is possible to corrupt the OS, or so I've gathered. Well, I've never heeded this advice, and so far nothing bad has happened to me. I don't li

Re: "Don't install on the system Python"

2019-12-01 Thread John Ladasky
On Sunday, December 1, 2019 at 12:47:43 AM UTC-8, Cameron Simpson wrote: > On 01Dec2019 09:29, Manfred Lotz <...@posteo.de> wrote: > >On Sat, 30 Nov 2019 20:42:21 -0800 (PST) > >John Ladasky <...@sbcglobal.net> wrote: > >> For years, I've read war

Re: How to specific multiple dtypes in numpy.ndarray?

2019-12-21 Thread John Ladasky
On Thursday, December 19, 2019 at 2:53:18 AM UTC-8, lampahome wrote: > I meet performance is low when I use struct.unpack to unpack binary data. > > So I tried to use numpy.ndarray > But meet error when I want to unpack multiple dtypes > > Can anyone teach me~ > > Code like below: > # python3 >

Threading hang problems with requests module

2020-01-13 Thread John Levine
join() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 1011, in join self._wait_for_tstate_lock() File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 1027, in _wait_for_tstate_lock elif lock.acquire(block, timeout): KeyboardInterrupt -- Regards, John Levine, jo...@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly -- https://mail.python.org/mailman/listinfo/python-list

Re: Multiple comparisons in a single statement

2020-03-12 Thread John Pote
chained comparisons to change to an 'or' operation (Python always does the 'and' operation in chained comparisions). EG for simple integers instead of tuples, >>> not (1==1==1) False >>> not (2==1==1) True >>> (1!=1!=1) False  correct as before >>> (2!=1!=1) False  oops! John ChrisA -- https://mail.python.org/mailman/listinfo/python-list

ModuleNotFoundError, even though I can see module in dist-packages folder, Setuptools / EGG issue?

2020-04-08 Thread John Ladasky
Hi folks, Something broke in my Python installation in the past two or three days. I'm working in Ubuntu 19.10 and Python 3.7, without virtual environments. I have two modules of Python source code that I am developing. I regularly change this code and "distribute" it to myself using setupt

Re: ModuleNotFoundError, even though I can see module in dist-packages folder, Setuptools / EGG issue?

2020-04-08 Thread John Ladasky
On Wednesday, April 8, 2020 at 10:47:42 AM UTC-7, John Ladasky wrote: > Hi folks, > > Something broke in my Python installation in the past two or three days. I'm > working in Ubuntu 19.10 and Python 3.7, without virtual environments. > > I have two modules of Pytho

Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-04 Thread John Ladasky
Several years ago I built an application using multiprocessing. It only needed to work in Linux. I got it working fine. At the time, concurrent.futures did not exist. My current project is an application which includes a PyQt5 GUI, and a live video feed with some real-time image processing.

Re: Multiprocessing vs. concurrent.futures, Linux vs. Windows

2020-05-04 Thread John Ladasky
On Monday, May 4, 2020 at 4:09:53 PM UTC-7, Terry Reedy wrote: > On 5/4/2020 3:26 PM, John Ladasky wrote: > > Several years ago I built an application using multiprocessing. It only > > needed to work in Linux. I got it working fine. At the time, > > concurrent.

Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
I just came across a package in PyPI which is in a state of neglect. The official version on the PyPI page is 1.3.1 -- but the installed module reports its version as 1.2.0. This is confusing. There are several bugs in this package besides the mismatched version number. I've forked a copy of

Re: Should setuptools version propagate to a module's __version__? If so, how?

2020-05-08 Thread John Ladasky
On Friday, May 8, 2020 at 6:07:33 PM UTC-7, John Ladasky wrote: > Is there a recommended way to keep the internal reference and the setup.py > reference in sync? Is there any reason someone would NOT want these numbers > to match? Replying to myself... I just found thi

Re: Should setuptools version propagate to a module's __version__? If so, how?

2020-05-10 Thread John Ladasky
On Saturday, May 9, 2020 at 8:17:19 PM UTC-7, Cameron Simpson wrote: > I also autopatch the module itself to > set __version__ to match when I make that release tag. Yes, that's exactly what the module I wrote for my company's internal use does. The official version number is hard-coded into se

Syntax Help

2020-06-10 Thread John Weller
Hi I am trying to learn python. Looking at an example on the web I found this line: def plot(*args, **kwargs): What do the stars mean? TIA John Weller 01380 723235 07976 393631 -- https://mail.python.org/mailman/listinfo/python-list

RE: Syntax Help

2020-06-11 Thread John Weller
the family IT guru 😊 I have been able to find answers to most problems by Googling but couldn't work out a suitable query for this one. I have signed up for the tutors list. Thanks again John Weller 01380 723235 07976 393631 -Original Message- From: Python-list On Behalf Of DL

Threading plus multiprocessing plus cv2 error

2020-08-29 Thread John O'Hagan
ad. IOW the error only occurs if a Thread is started first, and a Process is started a little later. Any ideas what might be causing the error? Thanks. -- John -- https://mail.python.org/mailman/listinfo/python-list

Re: Threading plus multiprocessing plus cv2 error

2020-08-30 Thread John O'Hagan
On Sat, 29 Aug 2020 13:01:12 -0400 Dennis Lee Bieber wrote: > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > declaimed the following: > > >There's no error without the sleep(1), nor if the Process is started > >before the Thread, nor if two Processes are used

Re: Threading plus multiprocessing plus cv2 error

2020-09-01 Thread John O'Hagan
On Sun, 30 Aug 2020 09:59:15 +0100 Barry Scott wrote: > > > > On 29 Aug 2020, at 18:01, Dennis Lee Bieber > > wrote: > > > > On Sat, 29 Aug 2020 18:24:10 +1000, John O'Hagan > > declaimed the following: > > > >> There's no e

Re: GUI (tkinter) popularity and job prospects for

2020-10-23 Thread John Pote
en gobject or wx. Tkinter would probably be last. I've used tkinter and wxPython occasionally in the past for 1 off test tasks (and interest). What's the advantage of Qt? John -- https://mail.python.org/mailman/listinfo/python-list

Re: Why do I have both /usr/lib/python3 and /usr/lib/python3.8?

2021-01-01 Thread john steve
On Wednesday, December 30, 2020 at 9:03:28 AM UTC-8, Chris Green wrote: > Anssi Saari wrote: > > Chris Green writes: > > > > > Why are there both /usr/lib/python3 and /usr/lib/python3.8 on my > > > x[ubuntu] system? > > > > While it's more of an Ubuntu (or Debian) question better asked in s

words relating to networks that I should probably know

2005-09-22 Thread John Walton
this project? Not the definitions, but just the words; I can look up the definitions on webopedia. It would be appreciated. Thanks! -John __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com -- http://mail.python.o

Dynamic character substitution.

2005-09-26 Thread John Bausano
*do,n,1,3 #loop through n *dim,data%n%,1000,2 #creates variables arrays data1(1000,2), data2(1000,2).. *vread,data%n%,filename%n%#fills arrays with data from filename1,. Than

Re: Struggling with this concept please help

2005-09-26 Thread John Hazen
xpect it to do 3) post actual output (or traceback) 4) ask a specific question about what you don't understand about item 3. Even though we know this is schoolwork, I'm OK with offering you a hint or answering a specific question. -John -- http://mail.python.org/mailman/listinfo/python-list

Re: Background process for ssh port forwarding

2005-10-04 Thread John Hazen
ere are no longer any references to 'connection', so it gets deleted, which cleans up the connection. You probably want to add: return connection at the end of hostforward, and call it like: connection = hostforward() my_rsync_function() connection.close() # or whatever the approved pexpect cleanup is Hope that helps- John -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-08 Thread John Bokma
possible to make links to fake sites. It's even possible with pure ASCII I mean: HTTP://WWW.G00GLE.COM/ or even: http://www.goog1e.com/. -- John Small Perl scripts: http://johnbokma.com/perl/ Perl programmer available: http

Re: Jargons of Info Tech industry

2005-10-08 Thread John Bokma
; Sending photos > is an example of what attachments are for. Yeah, yeah, and 640K is enough for everybody. Same song, different tune. -- John Small Perl scripts: http://johnbokma.com/perl/ Perl programmer available: http://castleamber.com/

<    5   6   7   8   9   10   11   12   13   14   >