[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-17 Thread Michael Amrhein
Michael Amrhein added the comment: > > ... Has anyone checked what C does? > #include int main() { int i = -12345; double f = -12345.0; printf("%-020d\n", i); printf("%020d\n", i); printf("%20d\n", i); printf("%-020f\n"

[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-17 Thread Michael Amrhein
Michael Amrhein added the comment: Mark, to answer your question regarding the two implementations of Decimals: No, in the cases I stated above there are no differences in their behaviour. In order to dig a bit deeper, I wrote a little test: d = cdec.Decimal("1234567890.123

[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-17 Thread Michael Amrhein
Michael Amrhein added the comment: Mark, I mostly agree with your classifications / proposals. Regarding cases 3-7 I'd like to suggest a slightly different resolution: Following my interpretation of the spec ("use zeropad *only* if no align is given"), "<020", "&g

[issue39077] Numeric formatting inconsistent between int, float and Decimal

2019-12-17 Thread Michael Amrhein
New submission from Michael Amrhein : The __format__ methods of int, float and Decimal (C and Python implementation) do not interpret the Format Specification Mini-Language in the same way: >>> import decimal as cdec ... cdec.__file__ ... '/usr/lib64/python3.6/decimal.py' &

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
On 12/12/19 8:03 PM, Python wrote: >> Just when I think Windows 10 is a pretty decent system, I encounter >> something inexplicable like this. > > We've gone through that before, haven't we? Yup, Several times. The good news is her son finally got it installed by launching the installer from

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
On 12/12/19 6:33 PM, Python wrote: > catherine morris wrote: >> Good evening, >> >> My son is trying to download python 3.8.0 on my PC, which has Windows 10, >> and it won't install properly. I'm not tech savvy and have no idea where to >> start. > > What happened exactly? Did you download the

Re: Troubleshooting

2019-12-12 Thread Michael Torrie
ot;Idle" in the start menu, which is probably where your son will want to start. Idle is a code editor and and an environment in which to run the python programs. See this url for an introduction to Idle. https://realpython.com/python-idle/ Hope this helps! Michael -- https://mail.python.org/mailman/listinfo/python-list

[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Michael Thompson
Michael Thompson added the comment: Thanks. I found 3.6 works for me. --Mike On Tue, Dec 10, 2019 at 5:10 PM Mark Dickinson wrote: > > Mark Dickinson added the comment: > > I think this was already fixed in 3.5, but the fix would have gone in > later than the 3.5.2 rel

[issue39023] random.seed with string and version 1 not deterministic in 3.5.2

2019-12-10 Thread Michael Thompson
New submission from Michael Thompson : Version 3.5.2, the "rand string seed" is not deterministic in code sample below across multiple invocations of the program. Python 3.6.8 works fine. #!/usr/bin/env python3 import random lis = '94' random.seed(lis, version=1) w = random.rand

[issue39020] [AIX] module _curses fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt
Michael Felt added the comment: quote: Interesting, a comment in curses.h: * Notes: * a. ESCDELAY was an undocumented feature under AIX curses. * It gives the ESC expire time in milliseconds. iirc - that is a symbolic link to ncurses.h from ncurses-devel RPM package

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 2:08 PM, R.Wieser wrote: > You might know a thing or two about Python, but you (and a number of others > here) positivily stink as teachers, incapable or even unwilling to place > themselves in the shoes of a newbie. As it happens, I've heard Chris speak about teaching Python to

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 11:47 AM, R.Wieser wrote: > Who did I call stupid ?I mentioned that the language doing it as Chris > thinks it happens would be stupid, and I gave a reason for that (race > conditions everywhere). But odd: Neither him nor you nor anyone else who > complains about me thinking

[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt
Michael Felt added the comment: I am thinking along two lines: a) tell setup.py to not build _curses, just as _curses_panel b) figure out how to use configure tests, to establish that ESCDELAY is not available AND then tell _cursesmodule.* that these routines are not available (and add

[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt
Change by Michael Felt : -- components: +Extension Modules ___ Python tracker <https://bugs.python.org/issue39020> ___ ___ Python-bugs-list mailing list Unsub

[issue39020] [AIX] module _ctypes fails to build since ESCDELAY has been added

2019-12-10 Thread Michael Felt
New submission from Michael Felt : Did not notice this earlier - as the buildbot does not report it: issue38312 introduced a regression with regard to AIX. Not sure how to classify component (as Build, C API, or Library, so left blank) Failed to build these modules: _curses

Re: Python3 - How do I import a class from another file

2019-12-10 Thread Michael Torrie
On 12/10/19 5:44 AM, R.Wieser wrote: >> Well, that's exactly what happens. > > So, only the reference count gets lowered. Yep, thats daft. Why? Consider: a = someobject b = a How many references for someobject? After "del a" what should be be? It's still someobject (the same object). Or

Re: Aw: Re: stuck on time

2019-12-08 Thread Michael Torrie
On 12/8/19 11:47 AM, RobH wrote: > Err, excuse me, I was not attempting to hack into someone else's code. > As the code is in the public domain, I wanted it to work as is, like it > did for the author, without changing anything. No worries, you're totally fine. The word "hack" means something

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-12-08 Thread Michael Felt
Michael Felt added the comment: Well, I certainly had not considered people would be using distutils.get_platform().startswith('aix') as I have, in my limited reading, only seen sys.platform.startswith("aix"). Likewise, do not want to break things. I thought this was easier to gra

Re: IOError: cannot open resource

2019-12-07 Thread Michael Torrie
On 12/7/19 9:48 AM, RobH wrote: > On 07/12/2019 16:00, Dan Sommers wrote: >> On 12/7/19 9:43 AM, RobH wrote: >>> When I run a python project with an oled display on a rasperry pi zero, >>> it calls for the Minecraftia.ttf font. I have the said file in >>> home/pi/.fonts/ >> >> Do you mean

Re: Error getting data from website

2019-12-07 Thread Michael Torrie
On 12/7/19 3:53 AM, Peter Otten wrote: > > ... because Amazon doesn' like what you do. You can cheat or play by their > rules and use the API. Yup and although I have no love for Amazon, I can understand why they don't want bots on the site. Already they have enough trouble with bots buying up

Re: Error getting data from website

2019-12-06 Thread Michael Torrie
On 12/6/19 5:31 PM, DL Neil via Python-list wrote: > If you read the HTML data that the REPL has happily splattered all over > your terminal's screen (scroll back) (NB "soup" is easier to read than > is "content"!) you will observe that what you saw in your web-browser is > not what Amazon

Re: Developers are advised to purge these malicious packages

2019-12-04 Thread Michael Torrie
On 12/4/19 10:59 AM, David Lowry-Duda wrote: > I notice that "python3-dateutil" is in over 4000 github repositories > [1]. That sounds like a disaster. > > [1]: https://github.com/search?q=python3-dateutil=Code It's clearly not, as Christian has already said. In fact it would be very difficult

Re: increasing the page size of a dbm store?

2019-12-02 Thread Michael Torrie
On 12/1/19 7:50 PM, Tim Chase wrote: > After sparring with it a while, I tweaked the existing job so that it > chunked things into dbm-appropriate sizes to limp through; for the > subsequent job (where I would have used dbm again) I went ahead and > switched to sqlite and had no further issues.

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-12-01 Thread Ido Michael
Ido Michael added the comment: @yselivanov Can we close this? -- ___ Python tracker <https://bugs.python.org/issue34344> ___ ___ Python-bugs-list mailin

[issue37883] threading.Lock.locked is not documented

2019-12-01 Thread Ido Michael
Ido Michael added the comment: Hey Tal, created a new PR: GH-17427 Also fixed the signed CLA issue -- ___ Python tracker <https://bugs.python.org/issue37

[issue37883] threading.Lock.locked is not documented

2019-12-01 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +16906 pull_request: https://github.com/python/cpython/pull/17427 ___ Python tracker <https://bugs.python.org/issue37

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

2019-12-01 Thread Michael Torrie
On 11/30/19 9:42 PM, John Ladasky wrote: > Can anyone provide concrete examples of problems arising from > installing modules on top of the system Python? Am I courting > disaster? No you aren't. I've also never had any problems. I've installed many things into my root system Python

Re: Does module socketserver using epoll in python3?

2019-11-28 Thread Michael Torrie
On 11/28/19 8:46 PM, lampahome wrote: > As title, > > I want to use socketserver to replace my own server code to > maintain ealsier. > > But I don't found any info about tech. detail of socketserver, epoll is > important. > > Can anyone tell me? The source code is here:

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-11-28 Thread Michael Felt
Michael Felt added the comment: Updated this PR, and PRs in pypa/pip and pypa/packaging to all be "in sync". -- ___ Python tracker <https://bugs.python.o

[issue38021] Modify AIX platform_tag so it provides PEP425 needs

2019-11-28 Thread Michael Felt
Change by Michael Felt : -- title: pep425 tag for AIX is inadequate -> Modify AIX platform_tag so it provides PEP425 needs ___ Python tracker <https://bugs.python.org/issu

[issue38021] pep425 tag for AIX is inadequate

2019-11-27 Thread Michael Felt
Michael Felt added the comment: On 26/11/2019 20:10, Paul Moore wrote: > Paul Moore added the comment: > >> replacement platform_tag, not compatibility tag. > Ah, I see, sorry. In that case, this should be fine, it's purely a CPython > question. There's obviously a follow-o

[issue37883] threading.Lock.locked is not documented

2019-11-27 Thread Ido Michael
Ido Michael added the comment: Thanks, Tal, I think this one can be closed, I don't think I have permissions to close it -- ___ Python tracker <https://bugs.python.org/issue37

Re: Python Resources related with web security

2019-11-26 Thread Michael Torrie
On 11/26/19 10:24 AM, Pycode wrote: > On Tue, 26 Nov 2019 10:20:11 -0500, Dennis Lee Bieber wrote: > >> On Tue, 26 Nov 2019 02:51:36 + (UTC), Pycode >> declaimed the following: >> >>> which keywords should i use for web-search? do you have a list? >>> what is the best "manual" for the

Re: Python Resources related with web security

2019-11-26 Thread Michael Torrie
On 11/26/19 11:57 AM, Pycode wrote: > On Wed, 27 Nov 2019 04:35:10 +1100, Chris Angelico wrote: >> On Wed, Nov 27, 2019 at 4:26 AM Pycode wrote: >>> asking offtopic question, >>> can you give a few guides that teach how to search the web? >>> >> At this point, I'm starting to be quite confused as

[issue38021] pep425 tag for AIX is inadequate

2019-11-26 Thread Michael Felt
Michael Felt added the comment: On 22/11/2019 10:42, Paul Moore wrote: > Paul Moore added the comment: > > PyPA member here - if this PR is defining new compatibility tags, replacement platform_tag, not compatibility tag. > I would have expected it to need discussion as a revisio

[issue38021] pep425 tag for AIX is inadequate

2019-11-22 Thread Michael Felt
Michael Felt added the comment: @paul.moore - thanks for the comment. I am trying to work from both https://packaging.python.org/specifications/platform-compatibility-tags/ which describes in a few words the goals of PEP425. As to the PEP425 itself, it does not specify what a tag looks

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-22 Thread Michael Felt
Michael Felt added the comment: And the other AIX bot has been repaired, and is running green as well! :) -- ___ Python tracker <https://bugs.python.org/issue22

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-22 Thread Michael Felt
Michael Felt added the comment: p.s. the new PR also needs to be backported for the 3.8 bots. -- ___ Python tracker <https://bugs.python.org/issue22367> ___ ___

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-22 Thread Michael Felt
Michael Felt added the comment: Thanks for the update to the PR FYI One AIX bot seems to be having support issues atm (and stays red), but the other one turned green again. :smile: -- ___ Python tracker <https://bugs.python.org/issue22

[issue38021] pep425 tag for AIX is inadequate

2019-11-21 Thread Michael Felt
Michael Felt added the comment: a) - thanks Ned, for the kind words. b) - the proposed (change to the tag) is "AIX.VRTL.YYWW.SZ". "AIX" - in caps, to distinguish from current tag starting as "aix" VRTL - 4 digit number, one digit for Version, one digi

[issue38021] pep425 tag for AIX is inadequate

2019-11-20 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +16795 pull_request: https://github.com/python/cpython/pull/17303 ___ Python tracker <https://bugs.python.org/issue38

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 10:12 AM, R.Wieser wrote: > Feel free to post code showing that it can be done. The extension is > RPi.GPIO, the method is "output", and the extra argument is the pinnaming > scheme (BCM or BOARD). Success! :-p If you mentioned RPi.GPIO before, I apologize for my mistake. That's

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 9:00 AM, Michael Torrie wrote: > Sure but the Python methods themselves are exposed and accessible and > according to your previous posts, I meant to say the class methods defined by the C code. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to delay until a next increment of time occurs ?

2019-11-19 Thread Michael Torrie
On 11/19/19 12:57 AM, R.Wieser wrote: > First things first: For some reason I see your message coming in empty, but > with two attachments. An "att*.txt" one with the actual message contents, > and a "signature.asc". Makes it kind of hard to read ... His message is a (standard) PGP-signed

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-19 Thread Michael Torrie
On 11/19/19 1:09 AM, R.Wieser wrote: > Michael > >> Does this have to be done in the C API? > > As far as I can tell, yes. What I need to do is not exposed by the > extension itself, meaning that a wrapper class can't get access to it > either. Sure but the P

Re: Writing a CPython extension - calling another sibbling method ?

2019-11-18 Thread Michael Torrie
On 11/18/19 1:15 PM, R.Wieser wrote: > The thing is that the arguments of py_proc1 and py_proc2 are the same, but > for a single argument. Does this have to be done in the C API? Depending on how this class is used in your Python code, I would just create a new Python class that extends this

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-18 Thread Michael Felt
Michael Felt added the comment: FYI: I loaded the pr just now and tested on AIX. $ ./python -m test test_fcntl 0:00:00 Run tests sequentially 0:00:00 [1/1] test_fcntl == Tests result: SUCCESS == 1 test OK. Total duration: 767 ms Tests result: SUCCESS $ git status On branch pr_17154

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-17 Thread Michael Felt
Michael Felt added the comment: ignore my last comment - I missed your comment about skipping the test. My apologies. I'll be patient. Thanks for the update! -- ___ Python tracker <https://bugs.python.org/issue22

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-17 Thread Michael Felt
Michael Felt added the comment: Could PR17010 be reverted? For 10 days now several bots, AIX and x86-64 High Sierra - afaik, are failing the tests. re: https://bugs.python.org/issue22367#msg356614 - while that may address High Sierra, it does not address AIX. See message https

Re: nonlocal fails ?

2019-11-15 Thread Michael Torrie
On 11/15/19 5:28 AM, R.Wieser wrote: > :-) Although that is how we humans remember the effect of what we do, there > is no reason for a programming language to do it exactly like that. And > sometimes they don't. So, in effect he's saying not all languages use the classic variable model,

Re: nonlocal fails ?

2019-11-15 Thread Michael Torrie
On 11/15/19 4:56 AM, R.Wieser wrote: >> Well I've only seen this done in languages where other mechanisms >> for returning complex types are not present. > > :-) Than you have not seen to many languages I'm afraid. Careful there. > If I would have wanted that, why would I post here with open

[issue22367] Add open_file_descriptor parameter to fcntl.lockf() (use the new F_OFD_SETLK flag)

2019-11-15 Thread Michael Felt
Michael Felt added the comment: @corona10 The AIX bot's are also in the red zone with PR17010. This was examined earlier See: https://bugs.python.org/issue35633#msg333662 In short, the recommendation by Victor was to skip the test: quote: > On AIX the test for flock() passes, but the t

Re: How to delay until a next increment of time occurs ?

2019-11-14 Thread Michael Torrie
On 11/14/19 2:13 AM, R.Wieser wrote: > Too bad that the Pi has no free hardware that can be abused for stuff like > this (like a serial port in synchronous mode). An arduino working in conjunction with the Pi can fill in the gaps. At one time you could buy an arduino board that was also a Pi

Re: nonlocal fails ?

2019-11-14 Thread Michael Torrie
On 11/14/19 2:16 PM, R.Wieser wrote: > I think I did - though implicitily. What do normal people use "by > reference" arguments for ? Yep, that is what I wanted too. Well I've only seen this done in languages where other mechanisms for returning complex types are not present. For example in

[issue38802] Clearer wording of os.WNOHANG documentation to avoid misinterpretation

2019-11-14 Thread Michael Yagliyan
Michael Yagliyan added the comment: If this documentation fix will not be backported (i.e. it will only apply to versions *after* the aforementioned bug fix) then a more precise way to phrase that last part would be: "...with the first 2 elements being 0 and the last being an all

[issue38802] Clearer wording of os.WNOHANG documentation to avoid misinterpretation

2019-11-14 Thread Michael Yagliyan
New submission from Michael Yagliyan : For versions 2.7 through 3.9 of https://docs.python.org/3/library/os.html, os.WNOHANG is described as returning (0, 0) when no child process status is immediately available. However, both os.wait3() and os.wait4() return 3-element tuples

Re: nonlocal fails ?

2019-11-14 Thread Michael Torrie
On 11/14/19 10:57 AM, R.Wieser wrote: > The trick seems to be to emulate a "by reference" call, by using a mutable > object as the argument and stuff the value inside of it (IIRC a tuple with a > single element). I note that you didn't answer the question, what are you trying to accomplish? In

Re: nonlocal fails ?

2019-11-14 Thread Michael Torrie
On 11/14/19 10:57 AM, R.Wieser wrote: >> I know of no sane way that a function could work with the scope of >> any arbitrary caller. > > The trick seems to be to emulate a "by reference" call, by using a mutable > object as the argument and stuff the value inside of it (IIRC a tuple with a >

Re: nonlocal fails ?

2019-11-14 Thread Michael Torrie
On 11/14/19 7:15 AM, R.Wieser wrote: > Too bad though, it means that procedures that want to share/use its callers > variables using nonlocal can never be called from main. And that a caller > of a procedure using nonlocal cannot have the variable declared as global > (just tested it).

Re: Help!

2019-11-12 Thread Michael Torrie
As always, keep your messages on the mailing list so others can benefit. On 11/12/19 7:02 AM, Jack Gilbert wrote: > > . how do I get the PY program onto my desktop? Not quite sure what you mean. Python programs are saved into text files which you can store anywhere you want. Save them to the

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
Michael H added the comment: Many thanks! -- ___ Python tracker <https://bugs.python.org/issue38779> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
Michael H added the comment: Sorry, its my bad, it is correct as it is, I hadn't read further on about the print statement being needed. As I am working through the tutorial in pycharm, I am had already used print statement. Thanks

[issue38779] Simple typo in strings module documentation

2019-11-12 Thread Michael H
New submission from Michael H : https://docs.python.org/3/tutorial/introduction.html#strings In the strings part of the basic tutorial, there is an output error regarding the escaping of the single quote >>> '"Isn\'t," they said.' '"Isn\'t," they said.' # I think

Re: Can we use Python for hacking?

2019-11-11 Thread Michael Torrie
On 11/11/19 9:49 PM, Abdur-Rahmaan Janhangeer wrote: > Someone requested my answer to the question: "Can we use Python for > hacking?" Sigh. I suppose it's a lost battle to reclaim that word. Most of what I do with Python is hacking but likely not as you are using the word. Most recently I

Re: Help!

2019-11-11 Thread Michael Torrie
On 11/11/19 12:07 PM, Jack Gilbert wrote: > Here's the deal, I have loaded both, one at a time, 3.7.2, and tried 3.8.0, > separately, when I go to open the program to run I get the same message, > Each time and for each version I get a Setup window. asking to modify, > repair, or uninstall, I usu

Re: Using Makefiles in Python projects

2019-11-10 Thread Michael Torrie
On 11/9/19 5:09 PM, Skip Montanaro wrote: > I thought recent versions of Win10 had a full Ubuntu subsystem. Before > that, doesn't something like Cygwin still exist/work? Sure you can install Ubuntu into the WSL2 system, but it's not like you can use that to script things back into Windows land.

Re: How execute at least two python files at once when imported?

2019-11-06 Thread Michael Torrie
On 11/6/19 9:16 AM, Spencer Du wrote: > I just wanted a way to import at least two python files in parallel > and I wanted to know how this can be done or a reason why its bad as > stated in another post. It's not "bad," but it's also not possible. Nor does it make sense. That's why so many

Re: Is there some python libary for edit iso file drectly?

2019-11-04 Thread Michael Torrie
On 11/4/19 4:11 PM, Hongyi Zhao wrote: > Is there some python libary for edit iso file drectly? Isn't an ISO image a read-only sort of thing? If you want to modify files don't you have to create a whole new image? -- https://mail.python.org/mailman/listinfo/python-list

[issue38645] datetime.datetime.fromtimestamp(0, tzlocal()) throws error

2019-10-31 Thread Michael Zhang
Michael Zhang added the comment: Yeah, seconded with my own tracing as well. -- ___ Python tracker <https://bugs.python.org/issue38645> ___ ___ Python-bug

[issue38645] datetime.datetime.fromtimestamp(0, tzlocal()) throws error

2019-10-31 Thread Michael Zhang
Michael Zhang added the comment: I think it might be something Windows specific; the original comment includes the version and code to reproduce. -- ___ Python tracker <https://bugs.python.org/issue38

Re: [Python-Dev] [WARNING] Some users who downloaded the Python 3.5.8 .xz tarball got the wrong version

2019-10-31 Thread Michael
On 31/10/2019 00:17, Larry Hastings wrote: > > > Due to awkward CDN caching, some users who downloaded the source code > tarballs of Python 3.5.8 got a preliminary version instead of the > final version.  As best as we can tell, this only affects the .xz > release; there are no known instances of

Re: [Python-Dev] [WARNING] Some users who downloaded the Python 3.5.8 .xz tarball got the wrong version

2019-10-31 Thread Michael
On 31/10/2019 00:17, Larry Hastings wrote: > > > Due to awkward CDN caching, some users who downloaded the source code > tarballs of Python 3.5.8 got a preliminary version instead of the > final version.  As best as we can tell, this only affects the .xz > release; there are no known instances of

[issue38645] datetime.datetime.fromtimestamp(0, tzlocal()) throws error

2019-10-30 Thread Michael Zhang
New submission from Michael Zhang : Discovered this while trying to use a function in `boto3`. Seems like when tzlocal() is passed with a 0 to datetime.datetime.fromtimestamp(), it throws an "[Errno 22] Invalid argument" error. Using 3.7.4 via Anaconda on Windows 10, and tzlocal()

Re: web scraper

2019-10-26 Thread Michael Torrie
On 10/25/19 9:19 AM, joseph pareti wrote: > but can it be generalized? > Not all tags are in the form ofto just replace those tags in the code, should > one process a different website? Not really, no. There is not an easy way to generalize this sort of web scraping. There are many

[issue36752] test multiprocessing: test_rapid_restart() crash on AIX

2019-10-18 Thread Michael Felt
Michael Felt added the comment: Please let me be much more specific. This specific bot failure is from when I ran the bot using XLC as a compiler. Because I could not solve it on my own, and did not get any hints in time (see issue35828) Since my work schedule intensified I switched the bot

[issue38516] PEP 3132 -- Extended Iterable Unpacking inconsistent assignment of * variable

2019-10-18 Thread Michael Jaquier
New submission from Michael Jaquier : x = [1,2,3] Case (1) *b, = x *b == [1, 2, 3] Case(2) *b, _ = x b = [1,2] Is it not more logical for this to give consistent values regardless. i.e., *b, = [1,2,3] ; b == [1,2] *b, _ = [1,3,2] ; b == [1,2] ; _ == [3] -- components

Re: upgrading python on raspbian

2019-10-14 Thread Michael Torrie
On 10/14/19 10:00 AM, Michael Torrie wrote: > https://github.com/LinuxCNC/linuxcnc/issues/403 > > Whatever you do, you probably will want to discuss it on the github > issue tracker to make sure efforts aren't duplicated. Reading further, it appears that the binding and embedding

Re: upgrading python on raspbian

2019-10-14 Thread Michael Torrie
On 10/14/19 8:52 AM, Gene Heskett wrote: > I think thats the obvious path forward. Once ported, we don't have to > worry about that legacy stuff for two or 3 generations of linux. A worthy goal and I'm sure the LinuxCNC folk would be grateful for contributions. Be aware that porting the python

Re: python -m pip install and pip install

2019-10-10 Thread Michael Torrie
On 10/10/19 1:21 AM, Pankaj Jangid wrote: > So the scripts will just work fine if you simply use ~import pip~ > and work with it. > > Suppose you were writing bash scripts around python programs. Then > what will be the behaviour of, > > pip2 install mod > > under a python3 environment. If

Re: question about making an App for Android

2019-10-10 Thread Michael Torrie
On 10/10/19 9:47 AM, pyotr filipivich wrote: > What I want is a "simple" program to calculate and display the > "natural time", and do so on my phone. > > "A simple program" to divide the amount of "today's" daylight into 12 > even '"hours", so that Dawn begins the First hour, the third hour is >

[issue38351] Modernize email example from %-formatting to f-string

2019-10-09 Thread Ido Michael
Ido Michael added the comment: So what was decided? I can fix this issue and I can wait for a final conclusion as it wasn't clear from the thread. -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue38

Re: Print to Paper

2019-10-04 Thread Michael Torrie
On 10/4/19 8:59 AM, Daniel wrote: > How to do a code to print to paper? please post here a "Hello World" > code to be printed on paper with an inkjet. What operating system? Are you using a graphical UI toolkit or is this a command-line program you're making? --

Re: how can i run python script in spamassassin

2019-10-03 Thread Michael Torrie
On 10/3/19 1:10 PM, Doris Marca Guaraca wrote: > > Hello, I'm sorry to bother you, I just reviewed this post, the Python > beginner, the Linux beginner, needs to run spamassassin, and now I'm trying > to do something very similar with a Python script is for a project, maybe you > can help me

Re: uses both shell and python codes in one script.

2019-10-03 Thread Michael Torrie
On 10/3/19 8:15 AM, James Lu wrote: > I would use IPython as a scripting language. It has a slow startup time > though. Lately I've been using Xonsh, which is a much more comfortable application of Python to shell scripting than anything else I've tried. Occasionally subprocess mode selection vs

[issue38318] Issues linking with ncurses and tinfo (cannot resolve symbols)

2019-10-02 Thread Michael Everitt
Michael Everitt added the comment: Attached patch seems to fix build with python3.6 withh uclibc-ng. Tested on x86_64 and ARMv6zk. -- Added file: https://bugs.python.org/file48640/fix-tinfo-probably-python-3_6.patch ___ Python tracker <ht

[issue38318] Issues linking with ncurses and tinfo (cannot resolve symbols)

2019-10-02 Thread Michael Everitt
Michael Everitt added the comment: Attached patch seems to fix build failure for python2.7 with uclibc-ng. -- keywords: +patch Added file: https://bugs.python.org/file48639/fix-tinfo-probably-python-2_7.patch ___ Python tracker <ht

Re: How can I set the value of the textedit box and slider of ui with the value from a config file when it has been created?

2019-10-01 Thread Michael Torrie
On 10/1/19 9:51 AM, Spencer Du wrote: > Hi > How can I set the value of the textedit box and slider of ui with the value > from a config file when it has been created meaning if a configuration file > exists then set the UI with value from the config file otherwise load ui with > nothing set to

[issue38318] Issues linking with ncurses and tinfo (cannot resolve symbols)

2019-09-29 Thread Michael Everitt
Michael Everitt added the comment: May have confused the '_readline' extension with the '_ncurses' extension .. apologies! attaching build.log from x86_64. -- Added file: https://bugs.python.org/file48632/build-x86_64-uclibc.log ___ Python

[issue38318] Issues linking with ncurses and tinfo (cannot resolve symbols)

2019-09-29 Thread Michael Everitt
New submission from Michael Everitt : tinfo library detection as part of ncurses is inconsistent, and causes build failure when expected symbols aren't found at link-time. This breaks compilation of the 'readline' module as the attached log shows. It seems to work in some configurations

[issue23284] Improve termcap detection in setup.py

2019-09-29 Thread Michael Everitt
Change by Michael Everitt : -- nosy: +veremitz ___ Python tracker <https://bugs.python.org/issue23284> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-09-28 Thread Ido Michael
Ido Michael added the comment: I've fixed the documentation according to the thread. Here's the PR: GH-16463 Ido -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue34

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2019-09-28 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +16048 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16463 ___ Python tracker <https://bugs.python.org/issu

[issue38035] shared_semaphores cannot be shared across unrelated processes

2019-09-28 Thread Ido Michael
Ido Michael added the comment: @ned.deily any thoughts? I can start working on it. Ido -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue38

[issue37970] urllib.parse docstrings incomplete

2019-09-28 Thread Ido Michael
Ido Michael added the comment: Committed a PR: GH-16458 I've read all of the thread and changed the docstring to the latest suggestion by @zach.ware Ido -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue37

[issue37970] urllib.parse docstrings incomplete

2019-09-28 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +16039 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16458 ___ Python tracker <https://bugs.python.org/issu

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-09-28 Thread Ido Michael
Ido Michael added the comment: Fixed this issue since the CLA of the past user wasn't signed. Added a check for the socket type in each of the methods: sock_recv, sock_recv_into, sock_sendall, sock_connect, sock_accept. PR: GH-16457 -- nosy: +Ido Michael

[issue37404] asyncio sock_recv blocks on ssl sockets.

2019-09-28 Thread Ido Michael
Change by Ido Michael : -- pull_requests: +16037 pull_request: https://github.com/python/cpython/pull/16457 ___ Python tracker <https://bugs.python.org/issue37

[issue37883] threading.Lock.locked is not documented

2019-09-27 Thread Ido Michael
Change by Ido Michael : -- keywords: +patch pull_requests: +16017 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16420 ___ Python tracker <https://bugs.python.org/issu

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: P.S PR: https://github.com/python/cpython/pull/16420 -- ___ Python tracker <https://bugs.python.org/issue37883> ___ ___ Python-bug

[issue37883] threading.Lock.locked is not documented

2019-09-26 Thread Ido Michael
Ido Michael added the comment: Hey Remi, I've fixed it and created PR on the issue. Ido -- nosy: +Ido Michael ___ Python tracker <https://bugs.python.org/issue37

<    3   4   5   6   7   8   9   10   11   12   >