Python 3

2020-11-06 Thread Nick Li
Does anyone know how to turn a decimal number into duodecimal or if there is a function built-in for it? -- https://mail.python.org/mailman/listinfo/python-list

Re: I have no clue figuring out how to check dates in workholidays

2020-11-06 Thread Cameron Simpson
On 06Nov2020 08:41, J.J. E. wrote: >Thank you for allowing me in this support mailing list. Anyone may join. Welcome! >My experience with >Python is short due to my new job. My boss told me that I need to create a >code that checks yesterday's date. The conditions for returning none are >that: >

Re: Is there a conflict of libraries here?

2020-11-06 Thread Mats Wichmann
On 11/6/20 3:05 PM, Steve wrote: "Right, because the name "datetime" points to the class datetime in the module datetime. The class, unlike the module, has no "datetime" attribute." Ok, how do I unpoint/repoint a "datetime" to let the two locations work? "Apologies if you already knew

RE: Is there a conflict of libraries here?

2020-11-06 Thread Steve
"Right, because the name "datetime" points to the class datetime in the module datetime. The class, unlike the module, has no "datetime" attribute." Ok, how do I unpoint/repoint a "datetime" to let the two locations work? "Apologies if you already knew this. I wasn't sure." Absolutel

Re: Questions about XML processing?

2020-11-06 Thread Hernán De Angelis
Thank you Terry, Dan and Dieter for encouraging me to post here. I have already solved the problem albeit with a not so efficient solution. Perhaps, it is useful to present it here anyway in case some light can be added to this. My job is to parse a complicated XML (iso metadata) and pick up v

Re: Questions about XML processing?

2020-11-06 Thread Terry Reedy
On 11/6/2020 11:17 AM, Hernán De Angelis wrote: I am confronting some XML parsing challenges and would like to ask some questions to more knowledgeable Python users. Apparently there exists a group for such questions but that list (xml-sig) has apparently not received (or archived) posts since

Questions about XML processing?

2020-11-06 Thread Hernán De Angelis
Hi everyone I am confronting some XML parsing challenges and would like to ask some questions to more knowledgeable Python users. Apparently there exists a group for such questions but that list (xml-sig) has apparently not received (or archived) posts since May 2018(!). I wonder if there are

Re: Is there a conflict of libraries here?

2020-11-06 Thread Peter Pearson
On Fri, 6 Nov 2020 02:25:25 -0500, Steve wrote: > In my program, I have the following lines of code: > import random > import re > import time > import datetime At this point, the name "datetime" points to a module. > from datetime import timedelta > from time import gmt

I have no clue figuring out how to check dates in workholidays

2020-11-06 Thread J.J. E.
Hi, Thank you for allowing me in this support mailing list. My experience with Python is short due to my new job. My boss told me that I need to create a code that checks yesterday's date. The conditions for returning none are that: - Yesterday happens to be a holiday, - Yesterday turns out

Re: Please help test astral char display in tkinter Text (especially *nix)

2020-11-06 Thread Anssi Saari
Terry Reedy writes: > Perhaps half of the assigned chars in the first plane are printed > instead of being replaced with a narrow box. This includes emoticons > as foreground color outlines on background color. Maybe all of the > second plane of extended CJK chars are printed. The third plane i

Re: Incoming datas difficult to read "\r\n" and "\n"

2020-11-06 Thread Bischoop
On 2020-11-06, Chris Angelico wrote: > On Fri, Nov 6, 2020 at 11:51 PM Bischoop wrote: >> >> On 2020-11-06, Chris Angelico wrote: >> >> > You're currently dumping out the raw bytes. Not very interesting, and >> > that's why it's not easy to read. I would recommend (a) decoding the >> > bytes to

Re: Incoming datas difficult to read "\r\n" and "\n"

2020-11-06 Thread Chris Angelico
On Fri, Nov 6, 2020 at 11:51 PM Bischoop wrote: > > On 2020-11-06, Chris Angelico wrote: > > > You're currently dumping out the raw bytes. Not very interesting, and > > that's why it's not easy to read. I would recommend (a) decoding the > > bytes to text, and (b) splitting it on "\r\n", thus get

Re: Incoming datas difficult to read "\r\n" and "\n"

2020-11-06 Thread Bischoop
On 2020-11-06, Chris Angelico wrote: > You're currently dumping out the raw bytes. Not very interesting, and > that's why it's not easy to read. I would recommend (a) decoding the > bytes to text, and (b) splitting it on "\r\n", thus getting it > line-by-line. > > What you may want to consider, t

Re: Incoming datas difficult to read "\r\n" and "\n"

2020-11-06 Thread Chris Angelico
On Fri, Nov 6, 2020 at 11:26 PM Bischoop wrote: > > > I'm experimenting with irc bot. I've made it connecting, reading etc but > everything is difficult to read. > > It's coming like one long string without breaking lines. > How to mace it printing in new line after: \r\n or \n in data? > -- >

Incoming datas difficult to read "\r\n" and "\n"

2020-11-06 Thread Bischoop
I'm experimenting with irc bot. I've made it connecting, reading etc but everything is difficult to read. It's coming like one long string without breaking lines. How to mace it printing in new line after: \r\n or \n in data? -- b':weber.freenode.net 001 saaaki :Welcome to the freenode Inte

Re: Is there a conflict of libraries here?

2020-11-06 Thread Cameron Simpson
On 06Nov2020 09:36, Frank Millman wrote: >On 2020-11-06 9:25 AM, Steve wrote: >>In my program, I have the following lines of code: >> import datetime >> from datetime import timedelta >> >> from time import gmtime, strftime ##define strftime as time/date right >>now >>If I add the code

Re: songbird's ngfp

2020-11-06 Thread songbird
flaskee wrote: ... > I look forward to seeing your game. > > Thanks! unfortunately the system needs a bit more complicated things to be installed for ngfp to also be installed. pkg-config and the cairo/pycairo stuff and a compiler... note, i have not had any chance to look into this furth