PEP-Dilbert

2020-01-26 Thread DL Neil via Python-list
Looks as if Dilbert is about to draft a PEP to change Python's world-view: https://dilbert.com/strip/2020-01-24 Curiously, "canard" whilst a French word for "duck", in English describes a rumor or false-story! -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Nested Loop Code Help

2020-01-26 Thread DL Neil via Python-list
On 27/01/20 1:53 PM, Richard Damon wrote: On 1/26/20 6:52 PM, DL Neil via Python-list wrote: On 27/01/20 4:15 AM, ferzan saglam wrote: Hello people, I have written the code below which works fine, but it has one small problem. Instead of printing one (x) on the first line, it prints two. I

Re: Python-list Digest, Vol 196, Issue 26

2020-01-27 Thread DL Neil via Python-list
subject to faithful reproduction) eases 'visual indexing', it still breaks the "threading" of email conversations (for those of us wot use it on our local machines AND in the archives). -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: on sorting things

2020-01-28 Thread Tony Flury via Python-list
's example is that it features two key functions rather than a complex comparison. If sort() would accept a sequence of key functions each function could be used to sort slices that compare equal when using the previous key. You don't need a sequence of key functions : the sort algorith

Re: [docs] Dynamic Data type assignment

2020-01-28 Thread DL Neil via Python-list
created issue 39476 created -- Thanks & Regards, - Sushma Mob:9740055884 ___ docs mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/docs.python.org/ -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-29 Thread DL Neil via Python-list
On 30/01/20 10:38 AM, jkn wrote: On Wednesday, January 29, 2020 at 8:27:03 PM UTC, Chris Angelico wrote: On Thu, Jan 30, 2020 at 7:06 AM jkn wrote: I want to be a able to use a simple 'download manager' which I was going to write (in Python), but then wondered if there was somethin

Re: Help on dictionaries...

2020-01-29 Thread DL Neil via Python-list
On 30/01/20 2:14 PM, Souvik Dutta wrote: Hey I was thinking how I can save a dictionary in python(obviously) so that the script is rerun it automatically loads the dictionary. Perhaps a YAML or JSON file (which follow a very similar format and structure to Python dicts), or a '

Was: Dynamic Data type assignment

2020-01-29 Thread DL Neil via Python-list
pe INPUT data in FORTRAN, back in the ?good old days! (don't over-excite me or I'll threaten you with my walking-stick...) -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-30 Thread DL Neil via Python-list
ub of the problem! Using ctrl+c is a VERY BAD idea. Depending upon the sophistication of the solution/existing code, surely there is another way... Even closing/pulling-out the networking connection to cause an exception within Python, would enable management of a more 'clean' an

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread DL Neil via Python-list
ecall a recent posting - or maybe they've ex-communicated me for requiring them to shout very (very) loudly to reach me... Thanks for the challenge! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-01-31 Thread DL Neil via Python-list
f there was an input() loop? The idea of putting, effectively the entire code-base, into a try...except block seemed crude and likely to cause side-effects. https://stackoverflow.com/questions/1112343/how-do-i-capture-sigint-in-python put me on a good path. So, I opened a door in my memory,

Re: Please answer fast.....

2020-01-31 Thread DL Neil via Python-list
a qlineedit. Please say me something that is more efficient and less idiot like. Thank you. Hi, you have certainly become part of the Python community. It's probably too late to say "welcome". Perhaps you are unfamiliar with this sort of discussion list, so please allow me try

Re: data sequencing

2020-02-01 Thread DL Neil via Python-list
egards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestions on mechanism or existing code - maintain persistence of file download history

2020-02-01 Thread DL Neil via Python-list
-- https://mail.python.org/mailman/listinfo/python-list

Re: JavaScript's void operator in Python?

2020-02-02 Thread Jon Ribbens via Python-list
On 2020-02-02, Stefan Ram wrote: > JavaScript has a void operator that maps everything to > undefined. E.g., > > JavaScript console > >|< void( console.log( 2 ) ) >| 2 >|> undefined > > I can easily write a corresponding function in Python. > &g

Re: Pyqt5 help

2020-02-02 Thread Alan Gauld via Python-list
f you need a reference -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Pyqt5 help

2020-02-02 Thread Alan Gauld via Python-list
Flickr at: http://www.flickr.com/photos/alangauldphotos -- https://mail.python.org/mailman/listinfo/python-list

Re: Please answer fast.....

2020-02-02 Thread DL Neil via Python-list
? Why prefer that over native-Python constructs, eg two 40-element lists, a list of (pairs) lists, or indeed a dict with name as 'key' and date as 'value'? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: JavaScript's void operator in Python?

2020-02-02 Thread Jon Ribbens via Python-list
places where an expression is allowed. Why does it matter if the return value is None? "print(2), print(3)" is an expression that will evaluate all of its sub-expressions. If the sub-expressions return None then I guess you could do "(x, y, z)[0]" too. -- https://mail.python.org/mailman/listinfo/python-list

Re: JavaScript's void operator in Python?

2020-02-02 Thread Jon Ribbens via Python-list
*x: None >>> f(print(2), print(3)) 2 3 Or if you're writing it inline then: >>> (None, print(2), print(3))[0] 2 3 -- https://mail.python.org/mailman/listinfo/python-list

The source of the PSL*

2020-02-02 Thread DL Neil via Python-list
Is there a set location for PSL project repos? (it used to be GitHub, and before that, Google) I'd like to review some serious PyTest/Unittest examples, eg as are applied to familiar (Python source) library members... * should be easier to find than was the source of the Nile (by Euro

Re: How to instlal pyodbc, without pip

2020-02-04 Thread DL Neil via Python-list
On 5/02/20 6:34 AM, [email protected] wrote: Pip won't work on my desktop, because of the firewalls we have set up. I have the version from github. Assuming my Python 3.8.1 Home Directory is C:\Python, How can I install pyodbc pyodbc-master.zip? Which folders should I unzip it

Re: Pkg iter_module for different versions of python

2020-02-09 Thread DL Neil via Python-list
On 10/02/20 4:46 AM, J A wrote: as a sysadmin I've written several small tools as python command line apps that get installed with python setup.py install. I would now like to create another tool that would quickly list out all of my custom tools that may be installed on the system. so

Re: Software not working

2020-02-10 Thread DL Neil via Python-list
On 11/02/20 12:00 AM, Tushita Parashar wrote: Even after installing the software on my system the software isn’t running. Today, an (apparently) identical question, already asked and answered. Please see the Python-Tutor list: "Python Beginner" msg. -- Regards =dn -- https://mail.

Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-10 Thread Jon Ribbens via Python-list
On 2020-02-10, Python wrote: > So far, so good. However, when you go to use this object, the time it > represents is in fact wrong. Unsurprisingly for a language feature that's been around for nearly 17 years, no it isn't. > For example: > >>>> print dt.s

Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Jon Ribbens via Python-list
On 2020-02-11, Chris Angelico wrote: >> That's the key piece of info. This does appear to work, though still >> not on python2. That, as you say, is my problem. But thankfully Jon >> Ribbens has the save: > > Isn't it time to stop going to great effort to

Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-11 Thread Jon Ribbens via Python-list
On 2020-02-11, Chris Angelico wrote: > On Tue, Feb 11, 2020 at 10:01 PM Jon Ribbens via Python-list > wrote: >> So while it's been about 6 years since anyone should have been >> starting any new projects using Python 2, there are plenty of >> projects that are o

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Jon Ribbens via Python-list
On 2020-02-12, Chris Angelico wrote: > But you CAN rewrite code such that it reduces technical debt. You can > refactor code to make it more logical. ... but if doing so costs more than the debt, you shouldn't do it. -- https://mail.python.org/mailman/listinfo/python-list

RE: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread Avi Gross via Python-list
. For some touch typists, the earlier word processors that do not know about a mouse and run in one big window, may be just right. But try sending one to others without using some conversion method first. But anyone teaching Python today who still uses version 2 exclusively may have some explaining

Re: Technical debt - was Re: datetime seems to be broken WRT timezones (even when you add them)

2020-02-12 Thread DL Neil via Python-list
s what it's there for!) Thus, what relationship did he (or even, 'they' of the IT dept) have with the contractor? The home truth: 'using' the cheapest people creates a 'race to the bottom', and must, by definition, lead to 'the cheapest job' being done

Re: Can anyone share experience about python backend developer?

2020-02-17 Thread DL Neil via Python-list
On 17/02/20 11:11 PM, lampahome wrote: I have 3+years developer experience in python, but I always develop about peer-to-peer service. Have no backend experience in python. But now I want to change to backend engineer, somebody shares their job is to do like 1. Develop customize API to receive

Re: insert data in python script

2020-02-17 Thread DL Neil via Python-list
where the 'mainline' can find (and import) it! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: insert data in python script

2020-02-18 Thread DL Neil via Python-list
... import preos # pass name, Tc, Pc, omega methane = preos.Molecule("methane", -82.59 + 273.15, 45.99, 0.011) methane.print_params() ... my code preos in one file preos.py my commands are alberto@HENDRIX ~/PREOS $ python3.5 Python 3.5.2 (default, Oct 8 2019, 13:06:37) [GCC 5.4.

Re: insert data in python script

2020-02-18 Thread DL Neil via Python-list
uage, even for professional programmers - and more-so if English is not one's native-language. Well done! Now, if you could tell us how to capture and control methane, perhaps the world would become a better place... Ciao! -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Idiom for partial failures

2020-02-20 Thread DL Neil via Python-list
On 21/02/20 10:05 AM, Stefan Ram wrote: David Wihl writes: I believe that it would be more idiomatic in Python (and other languages lik= e Ruby) to throw an exception when one of these partial errors occur. I wonder whether the term "idiomatic" is too heavily burdened here.

Re: Help with oop

2020-02-23 Thread DL Neil via Python-list
On 22/02/20 10:45 PM, S Y wrote: How can I use remove,add and verify methods in class oop. Which has tuple with allowed values inside class. Like two classes cart and inventory Please show the code you have so-far. What are you removing, adding, and verifying? Are you aware of the Python

Re: Help with oop

2020-02-23 Thread DL Neil via Python-list
def add_item(self, item_object):  if len(self.inventory) <= self.capacity:  self.inventory.append(item_object)  return True  else:  print("Reached max capacity")  return False on behalf of DL Neil via Python-list *Sent:* Sunday, February 23, 2020 4:41:54 PM *To:* python-list@

Managing plug-ins

2020-02-23 Thread DL Neil via Python-list
of plug-ins from which users may select to suit their particular research objective. -- Regards, =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Logging all the requests into a specific file

2020-02-27 Thread DL Neil via Python-list
On 28/02/20 9:29 AM, [email protected] wrote: I am new to python and all of this, I am using this FastAPI, to build API, I want when users hit any endpoint for ex /products, that to be written into a file , how do I do it? The Python Standard Library offers a Logging library. It has

Re: Mental model of lookahead assertions

2020-02-28 Thread Jon Ribbens via Python-list
multiple matches it knows once it's found a match at position to start looking for the next potential match at position ? -- https://mail.python.org/mailman/listinfo/python-list

Friday Finking: Poly more thick

2020-02-28 Thread DL Neil via Python-list
ahead and recovered everyone's feelings of satisfaction/success! Aside from 'repairing' team spirit, (as regular readers will recognise) I wasn't going to let this pass without some thought and discussion (and perhaps I might learn something about Python interfacing)! Python

Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Marco Sulla via Python-list
As title. Currently I'm using gcc 9.2.0 and its compilation seems to work well and fast. But I would know by your experience if clang can produce, on a *nix system, a "faster Python". -- https://mail.python.org/mailman/listinfo/python-list

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Marco Sulla via Python-list
t; > produce, on a *nix system, a "faster Python". > > I took a quick run at this as I was wanting to give pyperformance a try. > Comparing GCC 9 with CLANG 8 on my Ubuntu laptop here's what I got. It seems > that GCC was

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-01 Thread Skip Montanaro via Python-list
I didn't have clang installed. It was just "sudo apt install clang-8". From there all I had to do was build Python from scratch twice, install pyperformance using pip after the first build, then run it after each build. It's not difficult. Going beyond that right now is n

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-02 Thread Marco Sulla via Python-list
2 Mar 2020 at 00:58, Skip Montanaro wrote: >> >> Have you compiled it optimized (--enable-optimizations --with-lto)? > > > Nope, just ./configure. Further investigation is left as an exercise for the > reader. :-) > > Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Have you some experience / link about difference between Python builded with gcc and clang?

2020-03-02 Thread Skip Montanaro via Python-list
> > Have you compiled it optimized (--enable-optimizations --with-lto)? > Nope, just ./configure. Further investigation is left as an exercise for the reader. :-) Skip > -- https://mail.python.org/mailman/listinfo/python-list

Re: Data model and attribute resolution in subclasses

2020-03-02 Thread Marco Sulla via Python-list
On Fri, 28 Feb 2020 at 08:28, Adam Preble wrote: > > I have been making some progress on my custom interpreter project Is your project published somewhere? What changes have you done to the interpreter? -- https://mail.python.org/mailman/listinfo/python-list

Why this message was rejected?

2020-03-02 Thread Marco Sulla via Python-list
, and the python list address to the Cc field. I don't added any Bcc. I do not understand why my message was blocked. -- https://mail.python.org/mailman/listinfo/python-list

Re: Why this message was rejected?

2020-03-02 Thread Marco Sulla via Python-list
On Mon, 2 Mar 2020 at 22:36, Ethan Furman wrote: > Questions like this should go to python-list-owner at python dot org. If > this message hadn't been flagged we may not have noticed it. Sorry, I posted to python-list-owner before reading this message. > When the mailing

Re: Why this message was rejected?

2020-03-02 Thread Marco Sulla via Python-list
Ok, I sent a message as I did before to the discussion "Re: Friday Finking: Poly more thick", with only "test" as body. On Mon, 2 Mar 2020 at 22:48, Marco Sulla wrote: > > On Mon, 2 Mar 2020 at 22:36, Ethan Furman wrote: > > Questions like this should go to

Why there's no __json__()?

2020-03-02 Thread Marco Sulla via Python-list
As title. For example, `copy.copy` can use the __copy__() method of a class, if defined. Is this not possible with `json`? -- https://mail.python.org/mailman/listinfo/python-list

`async def` breaks encapsulation?

2020-03-04 Thread Marco Sulla via Python-list
ly a function with a `yield`. If it quacks... Why can't an asynchronous coroutine be simply a coroutine that has an `async` or an `await` in its code, without `async` in the signature? -- https://mail.python.org/mailman/listinfo/python-list

Re: Help building python application from source

2020-03-04 Thread Marco Sulla via Python-list
Mh. I hoped not, but unluckily I expected a response like this. People of Python List, I strongly discourage you to support this user. He is quite suspicious for the following reasons: 1. he go so far as he offers money for, IMHO, a trivial task 2. he does not trust binaries from pip. He is so

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
> b'\xff\x00' >> >>>> 'ÿ'.encode('utf-32-le') >> > b'\xff\x00\x00\x00' > >> That all looks as expected. > Yes > >>Is there something about the output that puzzles you? > No > >>Did you have a question? > No, only a comment > > This buggy language is very amusing. What's the bug, or source of amusement? -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
ing. >> >> What's the bug, or source of amusement? > > The bug is in the mental world of the OP. Quite possibly. I must admit I was just interested to learn what they thought was wrong or amusing in the above. There's plenty of room to have reasonable differing opinions on Unicode strings and how they're implemented in languages, but it's not at all obvious what could be different in those specific expressions. -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
y amusing. >> >> What's the bug, or source of amusement? > > The bug is in the mental world of the OP. Quite possibly. I must admit I was just interested to learn what they thought was wrong or amusing in the above. There's plenty of room to have reasonable differing opinions on Unicode strings and how they're implemented in languages, but it's not at all obvious what could be different in those specific expressions. -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
t;> > b'\xff\x00' >> >>>> 'Ä¿'.encode('utf-32-le') >> > b'\xff\x00\x00\x00' > >> That all looks as expected. > Yes > >>Is there something about the output that puzzles you? > No > >>Did you have a question? > No, only a comment > > This buggy language is very amusing. What's the bug, or source of amusement? -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
27;) >> > b'\xff\x00' >> >>>> 'Ääâ¿'.encode('utf-32-le') >> > b'\xff\x00\x00\x00' > >> That all looks as expected. > Yes > >>Is there something about the output that puzzles you? > No > >>Did you have a question? > No, only a comment > > This buggy language is very amusing. What's the bug, or source of amusement? -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
is very amusing. >> >> What's the bug, or source of amusement? > > The bug is in the mental world of the OP. Quite possibly. I must admit I was just interested to learn what they thought was wrong or amusing in the above. There's plenty of room to have reasonable differing opinions on Unicode strings and how they're implemented in languages, but it's not at all obvious what could be different in those specific expressions. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to POST html data to be handled by a route endpoint

2020-03-06 Thread DL Neil via Python-list
...html... ''' % app.get_url( '/mailform ) Can someone explain why?! Please post the full error message and traceback. To clarify: is the error coming from Python or from the web server? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: ÿ in Unicode

2020-03-06 Thread Jon Ribbens via Python-list
On 2020-03-06, Jon Ribbens wrote: > What's the bug, or source of amusement? Oh, that's fun. There's a Russian Fidonet gateway, that somehow still exists, that's re-injecting usenet posts back into the group. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to POST html data to be handled by a route endpoint

2020-03-07 Thread DL Neil via Python-list
t; WHILE if i try the following way, i receive no error. > > ...html... ''' % app.get_url( '/mailform ) > > Can someone explain why?! Please post the full error message and traceback. To clarify: is the error coming from Python or from the web server? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Possible Addition to Python Language: Marked Sub-condition

2020-03-08 Thread DL Neil via Python-list
On 8/03/20 11:05 PM, Shrinivas Kulkarni wrote: Hello Everyone While writing python code, I frequently come across the need to do certain tasks based on combined conditions. Much of the task for all the sub-conditions are common but some are specific to one or more of these sub-conditions

Re: How to POST html data to be handled by a route endpoint

2020-03-08 Thread DL Neil via Python-list
t/mailform +1 May I recommend two techniques: 1 before using a URL from Python, check what happens in your favorite web browser (with exactly the same values - not what you might think/expect as an expansion). This helps narrow-down the problem between the two choices (in this case) - the langu

Re: pip UX Studies - help improve the usability of pip

2020-03-10 Thread Marco Sulla via Python-list
Subscribed. I have a little suggestion IMHO "What is you favourite pip command or functionality?" is not very useful... of course the most useful command is "install" :-) -- https://mail.python.org/mailman/listinfo/python-list

Re: pip UX Studies - help improve the usability of pip

2020-03-10 Thread Marco Sulla via Python-list
pip, funded by > MOSS/CZI. > > I want to let you know about the pip UX Studies we've started today, and > encourage you to sign-up and take part. > > The pip Team is looking for Python users who use pip to take part in our > UX Studies. Your input will have a direct impact on

Re: Error while installing a python code

2020-03-10 Thread Marco Sulla via Python-list
y.com/datasets/s2x4d542dc/1 It seems the problem is that the above sources are generated by an old version of Cython: https://github.com/mcfletch/pyopengl/issues/11 You have "simply" to enter any subdir of PoissonSolver that ends with "_cy", remove the .c file inside and do:

Re: [Python-ideas] Re: Magnitude and ProtoMagnitude ABCs — primarily for argument validation

2020-03-10 Thread Tim Peters via Python-list
[Marco Sulla ] > Excuse me, Tim Peters, what do you think about my (probably heretical) > proposal of simply raising an exception instead of return a NaN, like > Python already do for division by zero? Sorry, I'm missing context. I don't see any other message(s) from you in th

Re: [Python-ideas] Re: Magnitude and ProtoMagnitude ABCs — primarily for argument validation

2020-03-10 Thread Marco Sulla via Python-list
IEEE 754 says also that the division by +0 should return +Infinity, and by -0 -Infinity. On the contrary, Python decided to not adhere to IEEE 754 in this case and do a very wise choice: raise an exception. The question is: why Python does not do the same for operations that now return NaN? Rais

Re: [Python-ideas] Re: New explicit methods to trim strings

2020-03-10 Thread Marco Sulla via Python-list
I agree with Steven D'Aprano. I never had problems with strip(), but if people find it confusing, Python can simply leave strip() and all the other function as they are and add another functions, like crop() or snip() or shear() prune() or mow(). Personally I prefer crop() or prune(). Thi

Re: pip UX Studies - help improve the usability of pip

2020-03-10 Thread Marco Sulla via Python-list
On Mon, 9 Mar 2020 at 16:09, Paul Moore wrote: > We've had some questions as to whether this survey is legitimate. I > can confirm it is (speaking as a pip core developer). Thank you a lot! -- https://mail.python.org/mailman/listinfo/python-list

Re: Python question

2020-03-10 Thread Marco Sulla via Python-list
is message before in Gmail. Didn't your Gmail warned about this, Souvik Dutta? -- https://mail.python.org/mailman/listinfo/python-list

Re: Error while installing a python code

2020-03-10 Thread Marco Sulla via Python-list
Little errata: you have only to install or update Cython, remove the .c files as I wrote before and run again python setup.py build_ext -b PoissonSolver/ No intermediate steps are required. The generated ELF files are three. You have also to rename them with the names in the README file. On

Re: Python question

2020-03-10 Thread DL Neil via Python-list
On 11/03/20 7:34 AM, Michael Torrie wrote: On 3/10/20 6:40 AM, Chris Angelico wrote: On Tue, Mar 10, 2020 at 11:22 PM Marco Sulla via Python-list ... I'm also reading this in Gmail, and I didn't get any such warning. I'm going to call that a spurious warning, a false positive

Re: Installation of python

2020-03-10 Thread Marco Sulla via Python-list
braries is PoissonSolver/PoissonSolver/ps3d.cpython-38-x86_64-linux-gnu.so You have also to rename them. Follow the README. On Mon, 9 Mar 2020 at 15:23, Tim Ko wrote: > > Hello, > > I am trying to install a custom Python package but ran into an error. The > error presumably associated w

Re: [Python-ideas] Re: Magnitude and ProtoMagnitude ABCs — primarily for argument validation

2020-03-10 Thread Marco Sulla via Python-list
On Tue, 10 Mar 2020 at 13:41, Chris Angelico wrote: > It makes good sense for > division by 0 and division by 0.0 to both result in the same > exception. But Python 3 returns a float, for example, in division between integers. 4 / 2 == 2.0. So some_integer / +0 should return +Infinity

Re: link to venv python sees a different sys.path

2020-03-11 Thread Jon Ribbens via Python-list
On 2020-03-11, Robin Becker wrote: > I'm trying to understand why python 3.8.2 venv behaves differently > when it is executed va a link Because site.py contains a function called venv() which looks up the path of the executed python binary, and searches for the virtual environment

Re: Python question

2020-03-11 Thread DL Neil via Python-list
On 12/03/20 3:03 AM, Rhodri James wrote: On 11/03/2020 04:06, Michael Torrie wrote: On 3/10/20 6:49 PM, Souvik Dutta wrote: What about moving on to a social media app completely made in pythoj for python? No thanks. I don't want to be on yet another web forum.  I don't need "s

Re: [Mostly OT] Feedback on Python homework using Canvas LMS

2020-03-16 Thread DL Neil via Python-list
t Canvas (I haven't used that LMS) permit the embedding of a "frame"? (allowing greater formatting freedom/character choices within its 'enclosure') Another option may be to link to a post on a 'snippet site' - most seem JavaScript-oriented, but may also

Re: PEP Idea: Multi-get for lists/tuples and dictionaries (inspired in NumPy)

2020-03-18 Thread DL Neil via Python-list
"last_name" ] >>> fname, lname ('Frances', 'Allen') That said, I've often wished to be allowed to write: d.first_name for a dict (cf a class/object). Hmm, I feel a 'utility' coming-on - but first I'll look to see where/how such might be used in 'live' code (and be any better than the current mechanisms)... Simple collections are one thing. How would you handle the structure if one or more elements contains a second dimension? eg a list within a list/a 2D matrix (or if you must, an 'array')? -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: How to incorporate environment from with python.

2020-03-22 Thread DL Neil via Python-list
On 23/03/20 4:04 AM, Antoon Pardon wrote: I think I can best explain what I want by showing two bash sessions: Session 1) -- $ /opt/csw/bin/python Python 2.6.4 (r264:75706, Sep 9 2015, 15:05:38) [C] on sunos5 Type "help", "copyright", "credits" or

Re: Like c enumeration in python3 [ERRATA]

2020-03-22 Thread DL Neil via Python-list
rectly: for name, value in C.__members__.items(): -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread DL Neil via Python-list
y of cursive hand-writing [substitute any number of grumpy, old man regrets/favorite complaints, here]. Beyond such syntactic concerns, textwrap applies no semantic meaning to its text-content. For that we have to move to markup languages (HTML is my bias - but (largely) presumes screen prese

Re: Confusing textwrap parameters, and request for RE help

2020-03-24 Thread DL Neil via Python-list
On 25/03/20 10:30 AM, Chris Angelico wrote: On Wed, Mar 25, 2020 at 8:04 AM DL Neil via Python-list wrote: On 23/03/20 8:00 AM, Chris Angelico wrote: When using textwrap.fill() or friends, setting break_long_words=False without also setting break_on_hyphens=False has the very strange

Re: Confusing textwrap parameters, and request for RE help

2020-03-25 Thread DL Neil via Python-list
On 25/03/20 11:57 AM, Chris Angelico wrote: On Wed, Mar 25, 2020 at 9:37 AM DL Neil via Python-list wrote: As you observe, the problem with terminal emulators is the extent of their emulation and the degree of adoption of their 'extended features'! My concern grows because of t

Re: Module import best practice

2020-03-26 Thread DL Neil via Python-list
asses in each view module? My personal approach is to follow 'the Zen of Python' and prefer "explicit" over "implicit". (it helps beginners, as well as us old-fogies whose minds cannot retain things for very long) I see little point in importing 'stuff'

Re: Module import best practice

2020-03-26 Thread DL Neil via Python-list
I'm not a professional coder. I'm an environmental consultant and I use a I take it all back then... No! No need to feel apologetic, the Python community works hard to be inclusive - which I take to include levels of expertise, not merely countering the various "-isms".

Re: error in importing

2020-03-31 Thread DL Neil via Python-list
On 31/03/20 11:23 PM, Jami Yaswanth wrote: i am not able to use the libraries that are installed using "pip install pandas" Welcome to Python! Are you aware of the Python-Tutor Discussion List? (https://mail.python.org/mailman/listinfo/tutor) Please describe how you installed these

Re: questions:

2020-04-01 Thread DL Neil via Python-list
On 2/04/20 6:49 AM, anson freer wrote: Will Anaconda2, Python2, jupyter and many applications I have for python harm the 3.8.2? should I be in Python Tutor and in this one(current email)at the same time? Or is it one or the other not both I want to learn how to use PDF to read files that have

Re: Fwd: Problemas para ejecutar Python en windows 7

2020-04-01 Thread DL Neil via Python-list
On 2/04/20 7:15 AM, Honori R. Camacho wrote: Ok. 1.- Necesitamos ayuda. No podemos ejecutar Python 3.5.4 en windows 7, se descargo la version Python 3.5.4 y se instalo correctamente.Y se corrigieron los path. Pero no permite ejecutar los .py ni los .pyw por acceso directo. gracias. Hola

Re: Fwd: Problemas para ejecutar Python en windows 7

2020-04-02 Thread DL Neil via Python-list
On 2/04/20 7:24 PM, Honori R. Camacho wrote: Gracias por atender esta solicitud. Si, no explique que antes se ejecutaba correctamente, pero ocurio que por error se desinstalo un *frameworks* y desde ahi consideramos, empezaron los problemas. Se reinstalo el Python 3.5.4 desde los repositorios

Re: Window and position of figure

2020-04-04 Thread DL Neil via Python-list
I already use the IDL software. Now I`m using Python. In IDL I havethe vector position=(xo,yo,x1,y1) to set where Iwnat to plot my figure in my window. I have an 2d array with x and y dimensition equal 5224. when I plot my figure, using contourtf it takes up a small part of my window. What can I

Re: kill a window

2020-04-07 Thread DL Neil via Python-list
ation: plt.close( 1 ) ^ | -- Regards =dn -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Troubling running my Python

2020-04-08 Thread DL Neil via Python-list
I have downloaded the 3.8 64 bit python program to my PC but the interpreter will not run. It seems to have 'repaired' itself when I ran the setup again but the interpreter still won't run. Is there a reason for this? Do you require a screenshot? Welcome to Python! This is

Re: type annotations for xpath list

2020-04-08 Thread DL Neil via Python-list
'gotchas' in certain situations, a general advice/'rule' of: 'don't do it' is being applied. Perhaps there is another/a better reason that someone else will provide... Disclaimers: - Python typing (and thus: mypy) has a somewhat experimental approach and is

Re: Is it possible to inheret a metaclass.

2020-04-10 Thread Greg Ewing via Python-list
't specify a metaclass. I find it peculiar that you can give a function as metaclass. Yes, it just calls whatever object you give it, which allows for various fun things. You'd be risking a lynching if you took advantage of it for anything important, though.:-) -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: RFC: For Loop Invariants

2020-04-10 Thread DL Neil via Python-list
On 11/04/20 8:44 AM, Elliott Dehnbostel wrote: If I've done this incorrectly, please let me know so that I can improve/revise. I'm new to the Python community and quite enjoy the more functional features of Python 3, but have I have a peeve about it. I'd like to propose and discus

My New Project : Aduct

2020-04-12 Thread J.Arun Mani via Python-list
Hello, I made my first Python package that can be installed via PIP. It is called "Aduct". https://github.com/atornel/Aduct. Aduct is a toolkit to design graphical applications that can be dynamically changed with a little work as possible. It is designed by inheriting objects provid

Re: python

2020-04-15 Thread DL Neil via Python-list
On 15/04/20 2:05 PM, mike via Python-list wrote: I need somehelpwith Python 36-32 and 38-32 I have been using sublime text 3 asmy ide for about 1 year now and everything was fine -I tried to change to Pycharm 2020 - I was going to use sublime 3 as my IDE for python36-32 and the Pycharm2020

Re: DLL file was not loading everytime when pandas was use to run

2020-04-15 Thread DL Neil via Python-list
On 15/04/20 6:47 PM, [email protected] wrote: Whenever I try to run any file in which pandas was import it was showing that dll file is not loaded Please copy-paste the *exact* error message. Are you aware of the Python-Tutor list? https://mail.python.org/mailman/listinfo/tutor

<    41   42   43   44   45   46   47   48   49   50   >