Re: Multiplication

2024-04-01 Thread D'Arcy Cain via Python-list
necessary. Of course not. Check the date on the message. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking if email is valid

2023-11-07 Thread D'Arcy Cain via Python-list
. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking if email is valid

2023-11-05 Thread D'Arcy Cain via Python-list
nt about it dropping characters. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking if email is valid

2023-11-05 Thread D'Arcy Cain via Python-list
that I am started, what else? Oh yah. Look at your credit card. The number has spaces in it. Why do I have to remove them. If you don't like them then you are a computer, just remove them. When do we stop working for computers and have the computers start working for us? -- D'Arcy J.M.

Re: Checking if email is valid

2023-11-02 Thread D'Arcy Cain via Python-list
UUCP. It still exists. You can even do UUCP over TCP/IP. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Checking if email is valid

2023-11-02 Thread D'Arcy Cain via Python-list
it. In fact, mailing software may even have a control to turn it back on but definitely it doesn't reply to the request as delivered. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python

Re: Checking if email is valid

2023-11-01 Thread D'Arcy Cain via Python-list
without sending? That was before the black hats discovered the Internet. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Information about Dying kernel

2022-08-08 Thread D'Arcy Cain
On 2022-08-07 21:38, Paul Bryan wrote: Have you tried turning it off and back on again? Thank you, Roy. -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNetworks.com/ IM:da...@vybenetworks.com VoIP: sip:da

Replacement for Mailman

2021-06-08 Thread D'Arcy Cain
Given that mailman still runs under 2.7 and that's being deprecated, does anyone have a suggestion for a replacement? -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNetworks.com/ IM:da...@vybenetworks.com VoIP: sip:da

Re: Help Please

2021-03-28 Thread D'Arcy Cain
the actual issue. -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNetworks.com/ IM:da...@vybenetworks.com VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Please don't feed the trolls

2021-03-08 Thread D'Arcy Cain
On 2021-03-06 4:24 p.m., Terry Reedy wrote: Trolling, among other things, is fishing with a moving line, especially with a revolving lure, as from a moving boat.  A troll, among other things, is that method or the lure used. You are confusing "troll" with "trawl" -- D

Re: Cannot marshal objects

2020-11-27 Thread D'Arcy Cain
code to the server. Have to wait until Monday to test. I will update the list if it fixes it. -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNetworks.com/ IM:da...@vybenetworks.com VoIP: sip:da...@vybenetworks.com

Cannot marshal objects

2020-11-27 Thread D'Arcy Cain
for Python 2. I am running Python 3.5 (I know but I am stuck there for the moment). I tried changing the import to "from xmlrpcl.client import Marshaller" which didn't raise an error but the problem still persists. Do I need to do something different for Python 3? TIA. -- D'Ar

Re: Dataframe to postgresql - Saving the dataframe to memory using StringIO

2020-10-22 Thread D'Arcy Cain
/receive so the backup only copies the changed blocks so I keep it in the database. That way the data is available from any client with database access without the need to give access to the server. PostgreSQL can handle it. -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions

Re: File Name issue

2020-10-18 Thread D'Arcy Cain
nal hyphen have been a unicode character? -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNetworks.com/ IM:da...@vybenetworks.com VoIP: sip:da...@vybenetworks.com OpenPGP_signature Description: OpenPGP digital

Re: What might cause my sample program to forget that already imported datetime?

2020-10-13 Thread D'Arcy Cain
se Decimal a lot. I would hate to have to write "decimal.Decimal(str)" for example. Whichever method you use the most important thing is to be consistent as much as possible. -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward h

Re: Aw: Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-28 Thread D'Arcy Cain
in the way that makes sense for your requirements. Check the section on error handling here: https://www.askpython.com/python/string/python-encode-and-decode-functions -- D'Arcy J.M. Cain Vybe Networks Inc. A unit of Excelsior Solutions Corporation - Propelling Business Forward http://www.VybeNet

Re: How do I do this in Python 3 (string.join())?

2020-08-26 Thread D'Arcy Cain
pmsg[1] is a list of bytes. You probably want a list of strings. I would look further back and think about getting a list of strings in the first place. Without knowing how popmsg was created we can't tell you how to do that. Of course, if a bytes object is what you want then the above will wo

Re: exiting a while loop

2020-05-22 Thread D'Arcy Cain
* (n - 1) >     sum += x >     print(n, sum) >     if sum >= target: >     print("Target met.") >     exit >     n += 1 > > print("\n", n, "terms are required.") I think that you meant "break", not "exit". -- D'Arcy

Re: Print formatting

2019-10-18 Thread D'Arcy Cain
On 10/18/19 5:00 PM, D'Arcy Cain wrote: Finally, if this is in a loop do this. FMT = '{0[0]:<12s}{0[3]:>12s}'.format for temp_list in GetLists(): print FMT(temp_list) Oops. Time warp. I meant "print(FMT(temp_list)) -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks

Re: Print formatting

2019-10-18 Thread D'Arcy Cain
int('{0[0]:<12s}{1[data3]:>12s}'.format(temp_list, temp_dict)) Finally, if this is in a loop do this. FMT = '{0[0]:<12s}{0[3]:>12s}'.format for temp_list in GetLists(): print FMT(temp_list) Cheers. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.

Re: FDs will be closed after exception automatically in python2.7?

2019-06-10 Thread D'Arcy Cain
On 2019-06-10 15:46, Alan Bawden wrote: > D'Arcy Cain writes: >> with open("file","w+") as fd: > > That makes the window smaller, but it doesn't actually eliminate it. Look > at the generated byte code. In both cases the call to open() is over a

Re: FDs will be closed after exception automatically in python2.7?

2019-06-10 Thread D'Arcy Cain
re if there are asynchronous events happening. Use this instead: with open("file","w+") as fd: *rest of good advice elided.* -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 594 cgi & cgitb removal

2019-05-24 Thread D'Arcy Cain
too" except that I saw posts suggesting that few people are chiming in. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Python indentation (3 spaces)

2018-10-15 Thread D'Arcy Cain
People's Emacs Front. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] master/slave debate in Python

2018-09-26 Thread D'Arcy Cain
e a snake is pejorative. I bet the PC police could find many words in the language that are offensive when applied to people. Where is Lenny Bruce when we need him? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Cross platform mutex to prevent script running more than instance?

2018-09-05 Thread D'Arcy Cain
try: pid = int(open(lockfile).read()) except FileNotFoundError: pass else: try: os.kill(pid, 0) except OSError: pass else: return False print(mypid, file=open(lockfile, 'w')) return True if not ok2run("/tmp/lockfile"): sys.exit(0) -- D'Arcy J.M.

Re: Cross platform mutex to prevent script running more than instance?

2018-09-03 Thread D'Arcy Cain
ry: pid = int(open(lockfile).read()) except FileNotFoundError: pass else: try: os.kill(pid, 0) except OSError: pass else: return False print(mypid, file=open(lockfile, 'w')) return True if not ok2run("/tmp/lockfile"): sys.exit(0) -- D'Arcy J.M.

Re: Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread D'Arcy Cain
id and, as far as I know, has always been invalid. I think it should be a different warning but I do understand why it is in a different code path in Python. It doesn't issue any warning in 2.7 by the way. It still prints the same thing so it is still an invalid escape sequence. -- D

Re: New books by O’Reilly

2018-08-19 Thread D'Arcy Cain
On 2018-08-18 09:40 PM, Larry Martell wrote: > https://imgur.com/gallery/tW1lwEl I think I have met the people who studied those books. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mail

Re: Pylint false positives

2018-08-16 Thread D'Arcy Cain
On 2018-08-14 04:58 AM, Frank Millman wrote: > "D'Arcy Cain"  wrote in message >> I am also getting a funny smell from your description.  Are you sure >> that you need to redefine the methods?  Perhaps you just need to define >> some class variables and use one me

Re: Pylint false positives

2018-08-14 Thread D'Arcy Cain
use one method. You can also define your own method and call the classA method inside it for common functionality. Just my 2¢ based on no information about your actual application. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7 can find cairo libs but not Python 3.6

2018-07-17 Thread D'Arcy Cain
On 2018-07-17 10:22 AM, Peter Otten wrote: > D'Arcy Cain wrote: > >> I just realized that my subject was backwards. It's 2.7 that can find >> the libs and 3.6 than cannot. Just in case that makes a difference. > > Not for me, I believed the pasted shell session rather

Re: Python 2.7 can find cairo libs but not Python 3.6

2018-07-16 Thread D'Arcy Cain
I just realized that my subject was backwards. It's 2.7 that can find the libs and 3.6 than cannot. Just in case that makes a difference. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman

Re: Kindness

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 05:45 PM, Marko Rauhamaa wrote: > Yeah, that is cult behavior. Here's a few boxes to tick on: > >http://www.csj.org/infoserv_cult101/checklis.htm> I couldn't find a single item that applies to this group. What's your point? -- D'Arcy J.M. Cain Vybe Networ

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
up to 7. More weirdness - I do have the issue on my HEAD system but only with 3.7. I can give you an account on that server as well. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listi

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-13 08:05 AM, Peter Otten wrote: > D'Arcy Cain wrote: >> Nope. Both are 64 bit. > > Just to be 100% sure, what does > > $ python2.7 -c 'import struct; print(struct.calcsize("l"))' > > $ python3.6 -c 'import struct; print(struct.calcsize("

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-12 07:41 PM, Peter Otten wrote: > Wild guess: one Python is 64 bit and the other is 32 bit, and you have only > one version of the library installed. Nope. Both are 64 bit. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP:

Re: Python 3.6 can find cairo libs but not Python 2.7

2018-07-13 Thread D'Arcy Cain
On 2018-07-12 04:17 PM, Terry Reedy wrote: > On 7/12/2018 3:52 PM, D'Arcy Cain wrote: >> $ python2.7 -c "import ctypes.util; >> print(ctypes.util.find_library('cairo'))" >> libcairo.so.2 >> $ python3.6 -c "import ctypes.util; >> print(ctypes.u

Python 3.6 can find cairo libs but not Python 2.7

2018-07-12 Thread D'Arcy Cain
$ python2.7 -c "import ctypes.util; print(ctypes.util.find_library('cairo'))" libcairo.so.2 $ python3.6 -c "import ctypes.util; print(ctypes.util.find_library('cairo'))" None I have the 3.6 version of py-cairo installed. Any thoughts? NetBSD 7.1.2 Cheers. -- D'A

Feeding the trolls

2018-06-20 Thread D'Arcy Cain
nt. One of these days I will have to figure out how to block replies to the trolls as well. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Proper email etiquette

2018-05-20 Thread D'Arcy Cain
t; necessary to be properly read, as opposed to a more or less complete > copy of the current thread. Another good idea is to change the subject when the topic changes. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-10 Thread D'Arcy Cain
eve that (c) is the correct answer I guess uses letters in the writer's browser. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Leading 0's syntax error in datetime.date module (Python 3.6)

2018-05-10 Thread D'Arcy Cain
On 2018-05-10 07:39 AM, AK wrote: > Try (should work from both PY2 and PY3): > > d0 = date(2018,0o2,0o1) Bad advice. Those numbers are decimal, not octal, You should use "date(2018,2,1)" here. Works in PY2, PY3 and for my birthday, Sept 4. -- D'Arcy J.M. Cain Vybe

PyGreSQL 5.0.5

2018-05-01 Thread D'Arcy Cain
and unit tested on: - NetBSD - FreeBSD - openSUSE - Ubuntu - Windows 7 and 10 with both MinGW and Visual Studio - PostgreSQL 9.0 to 9.6 and 10 (32 and 64bit) - Python 2.6, 2.7 and 3.3 to 3.6 (32 and 64bit) -- D'Arcy J.M. Cain PyGreSQL Development Group http://www.PyGreSQL.org IM:da

Using object as a class

2018-03-26 Thread D'Arcy Cain
, sometimes I simply want an object to hold values that I can pass around. I don't need methods and I don't always know what variables I am going to need. And yes, I know that dict is the usual way to do this. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP

Re: String formatting

2018-03-25 Thread D'Arcy Cain
far as I know and. I'm not even sure if I am a big fan of f-strings but I do like to run current versions of Python so they are there for me. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing parent objects

2018-03-25 Thread D'Arcy Cain
On 03/24/2018 06:54 PM, Steven D'Aprano wrote: >> On Saturday, March 24, 2018 at 1:20:24 PM UTC-5, D'Arcy Cain wrote: >>> I tried various forms of super() but that didn't seem to work. > > Define "doesn't see to work". It accesses the parent class. I w

Re: Accessing parent objects

2018-03-25 Thread D'Arcy Cain
.__name__} foo") -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing parent objects

2018-03-25 Thread D'Arcy Cain
On 03/25/2018 04:37 AM, Jugurtha Hadjar wrote: > On 03/24/2018 07:14 PM, D'Arcy Cain wrote: >> class C1(dict): >>    class C2(object): >> def f(self): >>    return X['field'] >> >> O1 = C1() >> O1['field'] = 1 >> O2 = O1.C2()

Accessing parent objects

2018-03-24 Thread D'Arcy Cain
'] O1 = C1() O1['field'] = 1 O2 = O1.C2() print(O2.f()) I am trying to figure out what "X" should be. I know how to access the parent class but in this case I am trying to access the parent object. I tried various forms of super() but that didn't seem to work. -- D'Arcy J.M. Cain Vybe Ne

Re: What F strings should have been

2018-02-15 Thread D'Arcy Cain
> > s = "ABC {1} {0} {2[x]}".format Hmm. Hadn't thought of that. >> print(s(1, 2, dict(x=3))) >> >> Too bad that it is too late to assign f'' to that function. > > I must be missing something. How would you simplify or improve the > readability of the above w

What F strings should have been

2018-02-14 Thread D'Arcy Cain
it is too late to assign f'' to that function. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: What is more Pythonic: subclass or adding functionality to base class?

2018-02-11 Thread D'Arcy Cain
s not need this field. Personally I would go with #1. It just seems cleaner. Not sure what the Python gods would do. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread D'Arcy Cain
90% of the people still use modems. And even if you connect directly to an AP that device still needs to talk to a modem so you are still connected to a modem at some point. Modems are still around. They have simply evolved from the 300 baud acoustic coupler. -- D'Arcy J.M. C

Re: Dunder variables

2018-01-09 Thread D'Arcy Cain
getattr(self, k) return dict.__getitem__(self, key) So, in the above example... >>>print("newvar = '%(newvar)s', VAR = '%(_VAR_)s'" % m newvar = 'Something', VAR = '5' -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...

Re: Goto

2017-12-29 Thread D'Arcy Cain
On 12/29/2017 02:25 PM, Chris Angelico wrote: >> PHP also added goto to a later version. > > Ahh, great choice of example. "It's okay - PHP does it." I thought that that was a reason to not do it. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da..

Re: Python homework

2017-12-06 Thread D'Arcy Cain
t (result) print(max(result)) This is why you get 14. The maximum number of rolls for any one side is 14 for side 4. Is that where you got "4"? -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: why does memory consumption keep growing?

2017-10-06 Thread D'Arcy Cain
Also, I am pretty sure that the two del statements don't do anything that ending the loop doesn't already do anyway. Your best option is to find the leak. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.pytho

Re: Beginners and experts (Batchelder blog post)

2017-09-29 Thread D'Arcy Cain
hen. I do "Carefully-designed experiments" to find non-obvious bugs so I guess I am not average. I get the impression that many people here are above average too. Personally I think you are being pessimistic about "average" programmers. Perhaps you just know the sloppy ki

Even Older Man Yells At Whippersnappers

2017-09-19 Thread D'Arcy Cain
get. Now, of course, I use calculators and computers but I still understand the theory behind what I am doing. To this day while writing code I will actually put pen to paper in order to check that my program is doing the correct calculations. -- D'Arcy J.M. Cain Vybe Networks

Re: python list name in subject

2017-08-22 Thread D'Arcy Cain
On 08/22/2017 10:14 AM, Grant Edwards wrote: Please don't. It wastes space which is better used on the subject. If you want the mailing list prepended, then configure procmail (or whatever) to do it for you. Better yet, put it in its own folder. -- D'Arcy J.M. Cain Vybe Networks Inc. http

Re: Basic python understanding

2017-07-27 Thread D'Arcy Cain
On 07/27/2017 09:59 AM, Grant Edwards wrote: If they have only ever used a single language, that may be a warning sign. Or if they list every language that they have ever smelled. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da

Re: Basic python understanding

2017-07-27 Thread D'Arcy Cain
On 07/27/2017 09:34 AM, Rhodri James wrote: On 27/07/17 13:24, D'Arcy Cain wrote: Lesson: Look for programmers, not Python (or Perl or C or C++ or Java or...) programmers. This isn't universally true, I'm afraid. A friend of mine who is a very good C/assembler programmer simply cannot get

Re: Basic python understanding

2017-07-27 Thread D'Arcy Cain
. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: A Good Tutorial on Python Decorators

2017-06-28 Thread D'Arcy Cain
/ https://www.proofpoint.com/us/corporate-blog/post/adgholas-malvertising-campaign http://www.pcworld.com/article/2604480/malicious-advertising-hits-amazon-youtube-and-yahoo-cisco-says.html Anyone else find it sad that all of these sites us Javascript? -- D'Arcy J.M. Cain System Administrator

Re: Checking for an exception

2017-06-25 Thread D'Arcy Cain
https://docs.python.org/3.6/library/exceptions.html#exception-hierarchy -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
y more productive on a long term basis, than replacing tabs and spaces back and forth, like pouring water from one glass to another. At one point I couldn't decide if you were just a troll or not. Thanks for clearing it up. *plonk* -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
On 2017-03-18 09:46 AM, Mikhail V wrote: Not to judge, but usually such opinions come from determined And he probably wasn't being facetious. Butyouareprobablyright.Spaceisawasteofspace. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
are careful but life is so much easier if you pick one or the other. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Dynamically replacing an objects __class__; is it safe?

2017-03-16 Thread D'Arcy Cain
Falling is not the same as flying unless you accidentally miss the ground. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: str.title() fails with words containing apostrophes

2017-03-07 Thread D'Arcy Cain
On 2017-03-06 06:33 PM, Steve D'Aprano wrote: If you read "title case" as *literally* as being only for titles (of books, I believe there is only one conclusion to be drawn from this thread - There is still a place for human proofreaders. I'm taking that as good news. -- D'Arcy

Re: str.title() fails with words containing apostrophes

2017-03-06 Thread D'Arcy Cain
On 2017-03-06 05:04 AM, Peter Otten wrote: Won't Steve D'aprano And D'arcy Cain Be Happy Now :) Perhaps one could limit the conversion to go from lower to upper only, as names tend be in the desired case in the original text. That would help with acronyms as well. -- D'Arcy J.M. Cain Vybe

Re: Who still supports recent Python on shared hosting

2017-03-05 Thread D'Arcy Cain
On 2017-03-05 09:39 PM, John Nagle wrote: I'm looking for shared hosting that supports at least Python 3.4. http://www.VybeNetworks.com/ We have Python 2.7 and 3.6 installed. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com

Re: str.title() fails with words containing apostrophes

2017-03-05 Thread D'Arcy Cain
handle exceptions. print title("My name is D'Arcy") Oops. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread D'Arcy Cain
was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread D'Arcy Cain
was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.6.1rc1 is now available

2017-03-05 Thread D'Arcy Cain
was released on 2017-12-22 from __future__ import 3.6.0 Did Guido finally get that time machine working? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Need reviews for my book on introductory python

2017-01-27 Thread D'Arcy Cain
don't say "suntax". The government hasn't thought of that one yet. Don't give them ideas. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Need reviews for my book on introductory python

2017-01-27 Thread D'Arcy Cain
On 2017-01-27 03:17 PM, bob gailer wrote: sudo apt-get won't work on Windows. Tell the reader that this is how to do it in Unix, and show the Windows equivalent. Actually it doesn't work on Unix either. It only works on Linux. -- D'Arcy J.M. Cain System Administrator, Vex.Net http

Re: Extended ASCII [solved]

2017-01-13 Thread D'Arcy Cain
On 2017-01-13 05:44 PM, Grant Edwards wrote: On 2017-01-13, D'Arcy Cain <da...@vybenetworks.com> wrote: Here is the failing code: with open(sys.argv[1], encoding="latin-1") as fp: for ln in fp: print(ln) Traceback (most recent call last): File "./load_iff"

Extended ASCII

2017-01-13 Thread D'Arcy Cain
encode character '\xe9' in position 132: ordinal not in range(128) I don't understand why the error says "ascii" when I told it to use "latin-1". -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vybenetworks.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-06 Thread D'Arcy Cain
On 2017-01-04 07:07 PM, Deborah Swanson wrote: > D'Arcy Cain wrote, on Wednesday, January 04, 2017 5:03 AM >> In all the messages in this thread I still don't understand what this >> "teensy advantage" is supposed to be. Do you want to be able >> to do th

Re: Clickable hyperlinks

2017-01-06 Thread D'Arcy Cain
ML. You either need to generate that or capture it from somewhere. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-06 Thread D'Arcy Cain
ed to be. Do you want to be able to do this: make_web_link(http://...) instead of: make_web_link("http://...;) -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-06 Thread D'Arcy Cain
to do with it. In any case, it's still just a wrapper around various string methods. You still need to give the class a string to create the object. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-04 Thread D'Arcy Cain
On 2017-01-04 07:07 PM, Deborah Swanson wrote: D'Arcy Cain wrote, on Wednesday, January 04, 2017 5:03 AM In all the messages in this thread I still don't understand what this "teensy advantage" is supposed to be. Do you want to be able to do this: make_web_link(http://...

Re: Clickable hyperlinks

2017-01-04 Thread D'Arcy Cain
erate that or capture it from somewhere. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-04 Thread D'Arcy Cain
g methods. You still need to give the class a string to create the object. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Clickable hyperlinks

2017-01-04 Thread D'Arcy Cain
ake_web_link(http://...) instead of: make_web_link("http://...;) -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading python list as a newsgroup (was ...)

2016-12-16 Thread D'Arcy Cain
il recipe. :0 Hir * ^List-Id:.*python-list.python.org * ^From:.*@gmail.com * ^Newsgroups:.* /dev/null -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Reading python list as a newsgroup (was ...)

2016-12-16 Thread D'Arcy Cain
judicious PLONKs and it is now useful. Al I need to do now is figure out how to filter out the almost daily Windows installer questions. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo

Re: Mapping with continguous ranges of keys

2016-12-15 Thread D'Arcy Cain
>= 1 and key <= 100: return "foo" return dict.__getitem__(self, key) Obviously that middle section can be as complex as you need. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/

PyGreSQL 5.0.3 released

2016-12-11 Thread D'Arcy Cain
and 64bit -- D'Arcy J.M. Cain PyGreSQL Development Group http://www.PyGreSQL.org IM:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: Call a shell command from Python

2016-11-01 Thread D'Arcy Cain
y had the answer. :-) -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: How to use two threads (GUI and backend)

2016-10-27 Thread D'Arcy Cain
ould not do is focus on gaining "CPU clocks". You just don't care. It's probably not an issue. If it is, drop python and implement your app in C. In fact, going to C often is less of a win than you may think. Python is pretty damn efficient if you write good code. -- D'Arcy J.M. Cain Syst

Re: Why doesn't Python include non-blocking keyboard input function?

2016-10-27 Thread D'Arcy Cain
Not always. I have many Unix systems that don't run X. A GUI is not essential to running a useful Unix server. You may be correct that Linux systems tend to run GUIs but even then it isn't mandatory. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP

Re: How to handle errors?

2016-10-20 Thread D'Arcy Cain
the HB line. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python.org/mailman/listinfo/python-list

Re: default argument value is mutable

2016-10-07 Thread D'Arcy J.M. Cain
On Fri, 07 Oct 2016 16:09:19 +0200 jmp <jeanmic...@sequans.com> wrote: > What about > > def test(): >if not hasattr(test, '_store'): test._store={'x':0} >test._store['x'] += 1 Why is everyone working so hard to avoid creating a class? -- D'Arcy J.M. Cain System A

Re: What you can do about legalese nonsense on email (was: How to split value where is comma ?)

2016-09-09 Thread D'Arcy J.M. Cain
any validity wouldn't the fact that they are attached to every email, even ones obviously meant for the public, give someone an argument that they don't really apply? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:da...@vex.net VoIP: sip:da...@vex.net -- https://mail.python

  1   2   3   4   5   6   7   >