Re: How to install Python package from source on Windows

2017-05-25 Thread Michael Torrie
On 05/25/2017 07:58 PM, Chris Angelico wrote: > On Fri, May 26, 2017 at 11:28 AM, Deborah Swanson > wrote: >> Since none of you have XP SP2 with Anaconda3 Python 3.4.3, to either >> confirm or deny my results, and I no longer have the message with the >> traceback showing what happened, nothing an

Re: How to install Python package from source on Windows

2017-05-25 Thread Michael Torrie
with failed attempts to install Visual Studio 2015. I've seen it too > many times not to be fairly sure of that. XP SP3 evidently does work, if > Michael Torrie had no problem. I suspect python.org Python 3.4 will work fine on XP2 without VS. Anaconda must be doing thingd differently. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install Python package from source on Windows

2017-05-25 Thread Michael Torrie
On 05/25/2017 02:16 PM, Deborah Swanson wrote: >> I just fired up my Windows XP SP3 virtual machine, which has >> no development tools whatsoever on it (no VS, nothing). I >> installed 32-bit Python 3.4 from the official python.org >> download. Then I did the pip >> upgrade: > > Yes XP SP3 can

Re: How to install Python package from source on Windows

2017-05-25 Thread Michael Torrie
On 05/25/2017 10:09 AM, Deborah Swanson wrote: > Could be, maybe it's something they do for every installation, whether > it will use it or not. But it always breaks when it can't install Visual > Studio. Upgrade pip does run and it works up to that point. It gets as > far as uninstalling the old p

Re: Scala considering significant indentation like Python

2017-05-22 Thread Michael Torrie
On 05/22/2017 02:57 PM, Ethan Furman wrote: >> Kind of reminds me of LISP. Lots of closing parenths, and often then >> just all get stuck together on a long. But I guess that's why they >> invented paren matching shortcuts in editors. To make it easy to see if >> you have them matched up. This

Re: Scala considering significant indentation like Python

2017-05-22 Thread Michael Torrie
On 05/22/2017 07:59 AM, Jussi Piitulainen wrote: > I am the inventor of multiple ends on the same line. This way, in a > language where all of several nested constructs end with an end - not > going to name the language but it's Julia - instead of > > end > end >

Re: How to install Python package from source on Windows

2017-05-20 Thread Michael Torrie
On 05/20/2017 03:56 PM, bartc wrote: > BTW /does/ Linux compile on /any/ modern compiler? I heard it was so > difficult to compile that gcc had to be specially modified to make it > possible. The kernel compiles with recent bog standard gcc compilers just fine. The last time there was an issue w

Re: How to install Python package from source on Windows

2017-05-19 Thread Michael Torrie
On 05/19/2017 03:38 PM, bartc wrote: > If I delete the .a file and do make again, then it will give me a list > of object files comprising libpython3.6m.a (not sure why it needs to be > a library, rather than bundle the list of .o files with python.o). The reason is that the core of CPython is a

Re: How to install Python package from source on Windows

2017-05-18 Thread Michael Torrie
On 05/18/2017 05:15 PM, Steve D'Aprano wrote: > Oh but this is Bart we're talking about. Of course his code generator is > perfect, it is unthinkable that it emits incorrect code. I think we've picked on Bart enough for one day. Fortunately he seems rather good natured, but this is bordering on t

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 04:21 PM, Chris Angelico wrote: > One of the complaints that bartc raised against clang was that it's > not self-contained - that it depends on some other stdlib. Yet he > espouses a tiny C compiler that obviously has the same limitation. On > my Linux boxes, I can grab GNU libc; but

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 04:32 PM, Chris Angelico wrote: > On Thu, May 18, 2017 at 8:21 AM, bartc wrote: >> My own approach with the standard library is that I just use what is >> provided by the OS (so msvcrt.dll or libc.so.6). >> >> I expect Tiny C does the same as it doesn't appear to come with any >> lib

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 03:56 PM, bartc wrote: > It sounds more like CPython is written in assembly code rather than C. > Why don't the C language, C compilers and their optimisers take care of > these concerns? No endianness definitely is something you as a programmer have to be aware of in any language

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 04:32 PM, Chris Angelico wrote: > On Thu, May 18, 2017 at 8:21 AM, bartc wrote: >> My own approach with the standard library is that I just use what is >> provided by the OS (so msvcrt.dll or libc.so.6). >> >> I expect Tiny C does the same as it doesn't appear to come with any >> lib

Re: Survey: improving the Python std lib docs

2017-05-17 Thread Michael Torrie
On 05/17/2017 02:31 PM, Ned Batchelder wrote: > Can you give an example of such a method? Often, that signature is used > because there is no pre-conception of what the arguments might be. I'm not sure if this afflicts the standard library, but in my own code, since Python doesn't support construc

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 02:52 PM, bartc wrote: > On 17/05/2017 21:17, Michael Torrie wrote: >> On 05/17/2017 01:32 PM, bartc wrote: >>> Sometimes, if there's a problem. But usually the code is doing something >>> sensible. The stuff in configure is complete gobbledygook (

Re: How to install Python package from source on Windows

2017-05-17 Thread Michael Torrie
On 05/17/2017 01:32 PM, bartc wrote: > Sometimes, if there's a problem. But usually the code is doing something > sensible. The stuff in configure is complete gobbledygook (if anyone > doesn't believe me, just have look). Well trying to edit an executable in a disassembler would look like goblig

Re: How to install Python package from source on Windows

2017-05-16 Thread Michael Torrie
On 05/16/2017 05:01 PM, bartc wrote: > And it sounds like the CPython developers have never used a compiler > other than gcc or MSVC, and the latter only reluctantly. It's more a matter of choosing the best compiler to support the many different platforms you wish to support. GCC is the defacto

Re: How to install Python package from source on Windows

2017-05-16 Thread Michael Torrie
On 05/16/2017 04:33 PM, Chris Angelico wrote: > Then you are stuck in your own little bubble. That's fine as long as > you never try to foist your software OR your system on anyone else. > The rest of us collaborate with other people. I don't collaborate with other people. However I still use git

Re: Why does Python want to read /proc/meminfo

2017-05-06 Thread Michael Torrie
On 05/06/2017 10:07 AM, Ian Pilcher wrote: > On 05/06/2017 12:51 AM, dieter wrote: >> Personally, I doubt that you will find a reference. >> Instead, I assume that the reference comes from the C runtime library. >> It might hepl optimize memory management to know about "meminfo" details. > > You'r

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-06 Thread Michael Torrie
On 05/06/2017 01:33 PM, Rahim Shamsy wrote: > Is there a better and faster way? I need more problem solving > experience (keeping in mind Data Science) with python. Probably. Depends on the person and how one learns. The best way to learn python is to have a problem you wish to solve and start co

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Michael Torrie
On 05/01/2017 08:57 PM, murdock wrote: > I am having a problem that seems to persist. I have written a program that > makes a mathematical calculation and uses a uses library that I have written. > It had been working but somehow in playing around with it, it stoppedgo > figure! But here is

Re: python won't uninstall

2017-04-26 Thread Michael Torrie
On 04/25/2017 09:41 AM, Shimon Mor wrote: > Hello, > python won't uninstall.. > I'm trying to uninstall so I could reinstall it.. some command doesn't work.. > like 'pip'. > Help please, > Thank you, > Shimon > [cid:image001.jpg@01D2BD37.046F7530] If you attached an im

Re: How to port a python package to a embedded system

2017-04-25 Thread Michael Torrie
On 04/25/2017 07:41 PM, chenchao wrote: > Hi, all: > > I have installed the PIP on my arm board now. But the 'numpy' > package includes some of C codes. This part of the C code must be > x-compiled and I don't know how to x-compiled this package. So, is there > a good idea for this issue?

Re: How to port a python package to a embedded system

2017-04-25 Thread Michael Torrie
On 04/25/2017 08:07 AM, MRAB wrote: > On 2017-04-25 07:28, chenchao wrote: >> Hi, all: >> >> I installed it by 'pip install numpy' or 'python setup.cfg >> install' on my PC, but I do not know how to do this on my arm board. >> Because of my arm board does not have tool of pip. could you plea

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:47 PM, chenchao wrote: >I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is there anybody know how to

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is ther

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 08:04 PM, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > package? Is ther

Re: How to port a python package to a embedded system

2017-04-24 Thread Michael Torrie
On 04/24/2017 03:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to > port a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks! Are you running a Linux distro

Re: Write a function sorting(L).

2017-04-21 Thread Michael Torrie
On 04/21/2017 01:58 PM, Mohammed Ahmed wrote: > Write a function sorting(L) that takes a list of numbers and returns the list > with all > elements sorted in ascending order. > Note: do not use the sort built in function > > it is a python question Sounds like a basic homework question. Which p

Re: Looping [was Re: Python and the need for speed]

2017-04-16 Thread Michael Torrie
On 04/16/2017 07:57 AM, bartc wrote: > But people just don't want it. > > /That/ is what surprises me, when people reject things that to me are > no-brainers. I simply don't care about these missing loop constructs. Python works great for what I use it for, and apparently works well for many pe

Re: Python and the need for speed

2017-04-15 Thread Michael Torrie
On 04/15/2017 08:37 AM, bartc wrote: > What proportion of Python implementations depend on executing byte-code? Presumably Nuitka does not depend on any byte code at all. Jython uses JVM byte codes. Iron Python uses .net VM bytecodes. While CPython's byte codes do take their form in part becaus

Re: Python and the need for speed

2017-04-12 Thread Michael Torrie
On 04/11/2017 06:38 PM, Paul Rubin wrote: > Grant Edwards writes: >> If there are now other Python implementations (e.g. MicroPython) with >> C APIs that differ from CPython, then it seems like it is no longer >> redundant to say "the CPython API". > > Perhaps there should be an attempt to define

Re: Python and the need for speed

2017-04-12 Thread Michael Torrie
On 04/12/2017 03:33 AM, Brecht Machiels wrote: > However, rinohtype is located in a very different niche and it would > greatly benefit a lot from a speed boost. Rendering the Sphinx > documentation (311 pages) takes almost 10 minutes on my i7, which is > simply too long given the available proc

Re: Appending data to a json file

2017-04-04 Thread Michael Torrie
On 04/04/2017 11:23 AM, Dave wrote: > I did. Please see the subject - it is json, not some bastardized > version of it. My fault for not seeing that! Sorry about the noise. -- https://mail.python.org/mailman/listinfo/python-list

Re: Appending data to a json file

2017-04-04 Thread Michael Torrie
On 04/04/2017 08:19 AM, Jussi Piitulainen wrote: > The clue is on the subject line. Ahh, so it is. -- https://mail.python.org/mailman/listinfo/python-list

Re: Appending data to a json file

2017-04-04 Thread Michael Torrie
On 04/03/2017 11:31 PM, dieter wrote: > Dave writes: > >> I created a python program that gets data from a user, stores the data >> as a dictionary in a list of dictionaries. When the program quits, it >> saves the data file. My desire is to append the new data to the >> existing data file as i

Re: Appending data to a json file

2017-04-03 Thread Michael Torrie
On 04/03/2017 08:59 PM, Dave wrote: > I created a python program that gets data from a user, stores the data > as a dictionary in a list of dictionaries. When the program quits, it > saves the data file. My desire is to append the new data to the > existing data file as is done with purely tex

Re: All people deserve respect. Ideas are not people.

2017-04-02 Thread Michael Torrie
On 04/02/2017 06:00 PM, Alex Kaye wrote: > Michael, Thanks for your comment. > > However, If one derails from the core subject > > they need to be in another stream. Alex I think you'll find that the subject line was changed by Ben Finney to reflect the new direction he was taking it, which is

Re: All people deserve respect. Ideas are not people.

2017-04-02 Thread Michael Torrie
On 04/02/2017 05:10 PM, Ben Finney wrote: > > Ideas are not people, and are not innate to the person who holds them. > An idea is not deserving of respect; that respect must not be assumed, > it must be earned. > > More importantly, ideas inform behaviour. That is what makes robust > criticism of

Re: Text-mode apps (Was :Who are the "spacists"?)

2017-04-01 Thread Michael Torrie
On 04/01/2017 08:18 PM, Steve D'Aprano wrote: >> And yet America continues to be emulated by 100% of the world. > > Well, at least 100% of the world that you know of. Which isn't saying much. I plonked RR a long time ago, but this little doozie requires a reply! Having just traveled half way acro

Re: Text-mode apps (Was :Who are the "spacists"?)

2017-03-30 Thread Michael Torrie
On 03/30/2017 08:14 AM, Steve D'Aprano wrote: >> Why is it my responsibiliy to encode my text with >> pronuciation tutorials? Are we adults here or what? > > Now you're just being absurd. Ahh yes, good old RR with his reductio ad absurdum fallacies when he's lost the argument. -- https://mail.py

Re: K&L graph partitioning code offer

2017-03-29 Thread Michael Torrie
On 03/29/2017 11:17 AM, jlada...@itu.edu wrote: > On Wednesday, March 29, 2017 at 1:23:48 AM UTC-7, arpitam...@gmail.com wrote: >> Hi >> I am planning to tweak the Kernighan Lin algorithm a bit use coercing of >> certain vertices .I was wondering if u would be kind enough to share the >> python

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions? Sometimes clea

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 10:09 PM, filtered wrote: > Sorry but all your answers are pointless. Possibly. > I clearly asked about compiling PyUno MYSELF with a self-compiled > Python 3.6.1 installation. Is this so hard to understand? Why do you give > unrelated comments to a clear questions? Sometimes clea

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 09:13 PM, Jim wrote: > I don't know if this is of any help but I am running Mint 18 with Python > 3.5 and I have a package installed called python3-uno which is described > as "Python-UNO bridge". Maybe CentOS has a similarly name package. You're right. In fact it looks like LibreO

Re: Using/compiling pyuno with Python 3.6

2017-03-27 Thread Michael Torrie
On 03/27/2017 05:40 AM, filtered wrote: > I am running CentOS 7.1 with LibreOffice 5.0.6.2. > > I have installed the official pyuno package from CentOS. > > I installed Python 3.6.1 from the sources and now I am trying to import > pyuno which fails with > > aj...@dev.zopyx.com:~/src/docx> bin/py

Re: PEOPLE! PLEASE! [ WAS: Re: Who are the "spacists"? ]

2017-03-25 Thread Michael Torrie
On 03/25/2017 01:40 PM, Gilmeh Serda wrote: > >>> So Python supports both spaces and tabs for indentation. > > People! > > This is as far from normal conversation about Python as it gets! > > Keep this shit to yourselves, PLEASE! > > Using an editor worth the name, makes it a non issue (since

Re: Recompilation of Python3.6.x

2017-03-23 Thread Michael Torrie
On 03/23/2017 01:45 AM, Klaus Jantzen wrote: > The information must be somewhere because Python must have been compiled > frequently and correctly for the various (important) OSs before making > it available to the public. And I do not think that it is left up to > "your luck" that the required

Re: Who are the "spacists"?

2017-03-21 Thread Michael Torrie
On 03/21/2017 08:15 AM, Mikhail V wrote: > Didn't want to say this, but you know it was quite predictable from > the beginning that > the arguments will end up somewhere in "linux console is the center of the > universe, e-macs is mother of all apps and monospaced text is peak of > human evolution"

Re: relative paths connect using python

2017-03-20 Thread Michael Torrie
On 03/20/2017 11:49 AM, Xristos Xristoou wrote: > and the path i need full absolute path like this : > var1='C:/my/store/path/myimage_1010_im.png' > > in my first code i dont have error but i take wrong for me path not full Since you have not provided any sample output from your program, there'

Re: Who are the "spacists"?

2017-03-18 Thread Michael Torrie
On 03/18/2017 09:18 AM, Mikhail V wrote: > Slight note of aggression in you words makes me think you > are a ... spacist? Please stop trolling. You obviously have an opinion and you are pursuing it aggressively, apparently attempting to bait people into an argument. Please stop. Your argument is

Re: python and databases

2017-03-15 Thread Michael Torrie
On 03/15/2017 08:45 AM, Xristos Xristoou wrote: > first thx for response second i cant use additional packate because i > build tool for other python program and that use standar python > only, I don't see how you can retrieve data from MS Access without a tool that is not part of the standard Pyt

Re: python and databases

2017-03-14 Thread Michael Torrie
On 03/14/2017 01:59 PM, Xristos Xristoou wrote: > I have a database in microsoft ACCESS with about 150 records.. if I > want to get some data from this database using a query in python and > i want to store in some variables in python that will do this ? to > avoid the 150 if ...: Using the stand

Re: Does one create an event to notify parent window/GUI of something?

2017-03-13 Thread Michael Torrie
On 03/13/2017 02:37 AM, Chris Green wrote: > Michael Torrie wrote: >> On 03/12/2017 06:14 AM, Chris Green wrote: >>> There are (of course) event handlers for the 'Save' and 'Cancel' >>> button click events in abookeditgui, what I need is hooks from t

Re: Compiling new Pythons on old Windows compilers

2017-03-12 Thread Michael Torrie
On 03/12/2017 09:26 PM, Michael Torrie wrote: > On 03/12/2017 02:45 PM, eryk sun wrote: >> On Sun, Mar 12, 2017 at 5:02 PM, Eric Frederich >> wrote: >>> Any idea why compatibility was dropped recently? There used to be a PC >>> directory with different VS direc

Re: Compiling new Pythons on old Windows compilers

2017-03-12 Thread Michael Torrie
On 03/12/2017 02:45 PM, eryk sun wrote: > On Sun, Mar 12, 2017 at 5:02 PM, Eric Frederich > wrote: >> Any idea why compatibility was dropped recently? There used to be a PC >> directory with different VS directories in the source tree, now it isn't >> there any more. > > CPython 3.5+ uses the Un

Re: Does one create an event to notify parent window/GUI of something?

2017-03-12 Thread Michael Torrie
On 03/12/2017 06:14 AM, Chris Green wrote: > There are (of course) event handlers for the 'Save' and 'Cancel' > button click events in abookeditgui, what I need is hooks from these > to run some code in abookgui after the abookeditgui has completed. How > should one do this, is there a way for a cl

Re: What's the neatest way of getting dictionary entries in a specified order?

2017-03-11 Thread Michael Torrie
On 03/11/2017 03:07 AM, Chris Green wrote: > The order I was asking about was the order of the *fields* of the > heading (i.e. the column names) *not* the data. It won't get updated > when new data is added. What I was after (and got) was a way that > would allow me to extract the data for one en

Re: Where to find python GTK+ 3 reference documentation?

2017-03-10 Thread Michael Torrie
On 03/10/2017 01:26 PM, Chris Green wrote: > Wildman wrote: >> On Fri, 10 Mar 2017 18:51:35 +, Chris Green wrote: >> >>> I'm using the excellent tutorial at >>> https://python-gtk-3-tutorial.readthedocs.io >>> and occasionally want reference documentation, is there reference >>> documentation

Re: What's the neatest way of getting dictionary entries in a specified order?

2017-03-08 Thread Michael Torrie
On 03/08/2017 12:27 PM, Chris Green wrote: > I have a fairly simple application that populates a GUI window with > fields from a database table. The fields are defined/configured by a > dictionary as follows:- Instead of ordering the data in Python, why not rely on the GUI to do the sort? Most G

Re: Using re to perform grep functionality in Python

2017-03-01 Thread Michael Torrie
On 03/01/2017 02:55 PM, rob...@forzasilicon.com wrote: > Obviously, not what I want. Can anyone feed some input? You've already got some good answers, but I just wanted to point you at this good resource: http://www.dabeaz.com/generators/ Pretty much anything you do in a shell script that involv

Re: Python application launcher (for Python code)

2017-02-23 Thread Michael Torrie
On 2017-02-22 09:49 PM, Deborah Swanson wrote: Didn't even look. Visual Studio has always been pricey, and it never occurred to me that they might have a free or cheap version now. You can get the full edition of Visual Studio, called Visual Studio Community Edition for free. They still offer

Re: Problems with scp script in Python

2017-02-13 Thread Michael Torrie
On 2017-02-13 05:17 AM, jhlo...@gmail.com wrote: I have an SCP script that auto completes just fine from the terminal window in Pi. When I use either subprocess or os to try and have it run under Python it does not do the file transfer from Pi to my Ubuntu machine. What am I doing wrong? He

Re: How to store properties

2017-02-08 Thread Michael Torrie
On 02/08/2017 04:26 AM, Cecil Westerhof wrote: > In Java you (can) use a properties file store configuration. What is > the best way to do something like that in Python? > I saw ConfigParser, but have the feeling that it is not really used. > Would a JSON file be a good idea? I've used ConfigParse

What's with all the messages from @f38.n261.z1

2017-02-07 Thread Michael Torrie
Seems like we're getting a bunch of messages on the mailing list that appear to be copies of real member posts that are saying they are from @f38.n261.z1? They don't appear to be deliberate impersonations. Some misconfigured server reflecting messages back to the list perhaps? -- https://mail.py

Re: search for a data in my browser via script

2017-02-06 Thread Michael Torrie
On 02/06/2017 07:43 AM, Meeran Rizvi wrote: > Hello guys, > Here i am writing a script which will open my chrome browser and opens the > URL www.google.com. > But how to search for a data via script. > for example i need to search for 'Rose' in google.com via script. > how to do that? > > > impo

Re: best way to ensure './' is at beginning of sys.path?

2017-02-04 Thread Michael Torrie
On 02/04/2017 12:20 PM, Lew Pitcher wrote: > It doesn't take root access to write a file to /tmp > In fact, /tmp is specifically set up to allow /any/ user to create /any/ file > or directory in it. > > Witness: > > > guest@bitsie:~$ chmod a+x /tmp/dothis > > Hey! I've even made the file exe

Re: best way to ensure './' is at beginning of sys.path?

2017-02-04 Thread Michael Torrie
On 02/04/2017 08:19 AM, Wildman via Python-list wrote: > No, I do not know. You might try your question in > a linux specific group. Personally I don't understand > the danger in having the dot in the path. The './' > only means the current directory. DOS and Windows > has searched the current

Re: best way to ensure './' is at beginning of sys.path?

2017-02-03 Thread Michael Torrie
On 02/03/2017 12:07 PM, Wildman via Python-list wrote: > Sorry, I forgot something important. If you use > /etc/rc.local, the execute bit must be set. I don't think this is what Neal Becker was asking about. He's talking about the Python module search path (sys.path) not the operating system PAT

Re: How to know what to install (Ubuntu/Debian) for a given import?

2017-02-01 Thread Michael Torrie
On 02/01/2017 02:29 PM, Chris Green wrote: > OK, thank you, what a strange way to do it. Why is it strange? Essentially, python bindings for any GObject-based library are now fully automatic via this gi module. No longer do we need custom bindings for each component of a glib-based library. Thi

Re: How to know what to install (Ubuntu/Debian) for a given import?

2017-02-01 Thread Michael Torrie
On 02/01/2017 01:03 PM, Wildman via Python-list wrote: > > It is the proper way. This page helps explain it. > > http://askubuntu.com/questions/784068/what-is-gi-repository-in-python > >> ... and doesn't it need an internet connection? > > No. However the gi module provides access to GTK+3, a

Re: Python3 using requests to grab HTTP Auth Data

2017-02-01 Thread Michael Torrie
On 02/01/2017 01:51 PM, Νίκος Βέργος wrote: > as well as input() for both user & pass combo but iam not getting in chrome > the basic pop-up HTTP auth window. > > Any idea why? What you're describing is not something you can do with an interactive Python script. HTTP-level authentication is req

Re: sorting a list of dicts by a computed field

2017-01-31 Thread Michael Torrie
On 01/31/2017 01:26 PM, Larry Martell wrote: > I have a list of dicts and one item of the dict is a date in m/d/Y > format. I want to sort by that. I tried this: > > sorted(data['trends'], key=lambda k: > datetime.strptime(k['date_time'],'%m/%d/%Y')) > > But that fails with: > > Exception Type:

Re: What are your opinions on .NET Core vs Python?

2017-01-31 Thread Michael Torrie
On 01/30/2017 10:31 PM, Gregory Ewing wrote: > Michael Torrie wrote: >> He was saying that you can >> use the explicit self paradigm in C#. Simply prefix each member variable >> with "this." > > One can do that in one's own code, but it doesn't

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 06:52 PM, Nathan Ernst wrote: > self vs this, and you might start a language holy war. Actually no, you misread his point. He was speaking of C#, not Python. In C#, the only word you can use is "this." He was saying that you can use the explicit self paradigm in C#. Simply prefix ea

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 06:18 PM, Joseph L. Casale wrote: > Which sounds pretty good to me, they are both high performance, mature > and rich languages. Sure it's a matter of personal preference and need. I happen to find the expressivity and flexibility of Python (warts and all) to be rather liberating co

Re: What are your opinions on .NET Core vs Python?

2017-01-30 Thread Michael Torrie
On 01/30/2017 11:44 AM, Juan C. wrote: > On Sun, Jan 29, 2017 at 1:06 AM, Juan C. wrote: >> >> As you guys might know, .NET Core is up and running, promising a >> "cross-platform, unified, fast, lightweight, modern and open source >> experience" (source: .NET Core official site). What do you guy

Re: Is shutil.get_terminal_size useless?

2017-01-28 Thread Michael Torrie
On 01/28/2017 09:15 AM, Steve D'Aprano wrote: > Then explain why os.get_terminal_size() returns the correct answer. Basically you were asking two different questions there. shutil.get_terminal_size always asks the question of size of the terminal that the standard output file handle is connected t

Re: Is shutil.get_terminal_size useless?

2017-01-28 Thread Michael Torrie
On 01/28/2017 09:15 AM, Steve D'Aprano wrote: > Then get_terminal_size() should raise, unless you explicitly ask for a > default size. Which it does if you call it on the standard out file handle, which is the default, and for most applications, the most useful. -- https://mail.python.org/mailm

Re: Is shutil.get_terminal_size useless?

2017-01-28 Thread Michael Torrie
On 01/28/2017 09:03 AM, Michael Torrie wrote: > On 01/28/2017 04:00 AM, Steve D'Aprano wrote: >>> $ COLUMNS=123 python3 test_gts.py | cat >>> shutil: os.terminal_size(columns=123, lines=999) >>> os: os.terminal_size(columns=72, lines=48) > > Interestin

Re: Is shutil.get_terminal_size useless?

2017-01-28 Thread Michael Torrie
On 01/28/2017 04:00 AM, Steve D'Aprano wrote: >> $ COLUMNS=123 python3 test_gts.py | cat >> shutil: os.terminal_size(columns=123, lines=999) >> os: os.terminal_size(columns=72, lines=48) Interesting. On my machine with Python 3.4, calling os.get_terminal_size() and piping the output results in the

Re: Is it possible to get the Physical memory address of a variable in python?

2017-01-23 Thread Michael Torrie
On 01/23/2017 10:49 AM, Sourabh Kalal wrote: > how we can access the value from using id.. > like x=10 > id(x) > 3235346364 > > how i can read value 10 using id 3235346364 Many objects in python such as numbers like 10 or strings are immutable; they can never be altered once called into existance

Re: How coding in Python is bad for you

2017-01-23 Thread Michael Torrie
On 01/23/2017 10:34 AM, Chris Angelico wrote: > I would respond point-by-point if I thought the author had a clue. Yeah a pretty bizarre, flame-bait blog post. Glad I use an ad-blocker as a matter of course. I'm uncertain as to why Mark chose to post that particular little gem to the list. It's

Re: python corrupted double-linked list error

2017-01-19 Thread Michael Torrie
On 01/19/2017 05:53 PM, Xristos Xristoou wrote: > > > how to understand that ?solution ? Well the problem is likely in the gdal or/and qgis modules. You'll probably want to talk to the qgis folks about this problem. It's not a bug in Python itself. If you can reproduce the problem with a minim

Re: Python 3.6 Installation

2017-01-18 Thread Michael Torrie
On 01/18/2017 10:59 AM, eryk sun wrote: > On Wed, Jan 18, 2017 at 6:23 AM, Terry Reedy wrote: >> Not everyone has run Windows update since the current runtime was released. > > Python's installer tries (and sometimes fails) to install the > KB2999226 update, which installs an old version of the U

Re: Python 3.6 Installation

2017-01-17 Thread Michael Torrie
On 01/17/2017 07:12 PM, Steven D'Aprano wrote: > On Wednesday 18 January 2017 12:30, Michael Torrie wrote: > >> Yes googling error messages is a good idea. However the SO link seems to >> describe this problem as a missing DLL, probably the VS 2015 runtime >> redistr

Re: Python 3.6 Installation

2017-01-17 Thread Michael Torrie
On 01/17/2017 03:31 PM, Terry Reedy wrote: > On 1/17/2017 1:23 PM, Earl Izydore wrote: >> I having problems installing Python 3.6. I was using Python 2.7 >> successfully. >> >> Today, I installed python-3.6.0.exe. > > Which binary? from where? > >> At the end of the installation I got a message

Re: Can not run the Python software

2017-01-13 Thread Michael Torrie
On 01/13/2017 08:32 PM, Joseph L. Casale wrote: >> Just downloaded Python 3.6.0 2016-12-23 and PyCharm. Tried to run the "Hello >> World" program and got the following message: >> "Process finished with exit code 1073741515 (0xC135)" >> I am using Windows 8.1 on an HP ENVY Touchsmart Notebook

Re: Can not run the Python software

2017-01-13 Thread Michael Torrie
On 01/13/2017 06:34 PM, Bernard via Python-list wrote: > Hi, > > Just downloaded Python 3.6.0 2016-12-23 and PyCharm. Tried to run the "Hello > World" program and got the following message: > "Process finished with exit code 1073741515 (0xC135)" > I am using Windows 8.1 on an HP ENVY Touchs

Re: Using namedtuples field names for column indices in a list of lists

2017-01-12 Thread Michael Torrie
On 01/12/2017 02:26 AM, Deborah Swanson wrote: > It's true, I've only been on this list a few weeks, although I've seen > and been on the receiving end of the kind of "help" that feels more like > being sneered at than help. Not on this list, but on Linux and similar > lists. There does seem to be

Re: Clickable hyperlinks

2017-01-09 Thread Michael Torrie
On 01/09/2017 06:02 PM, Deborah Swanson wrote: > Fair enough. I only suggested that they could have started their own > thread, but mainly just to point out that they would have been off-topic > if they did. I didn't demand that they do so, I just wanted them to > think about it. I don't see how i

Re: Clickable hyperlinks

2017-01-09 Thread Michael Torrie
On 01/09/2017 10:27 AM, Michael Torrie wrote: >> You can use tkinter (code >> in a program) to make clickable links in the console, > > Unless you're talking about an implementation of a console or terminal > emulator in tkinter, this is incorrect. Tkinter does not d

Re: Clickable hyperlinks

2017-01-09 Thread Michael Torrie
On 01/09/2017 06:00 AM, Deborah Swanson wrote: > Rhodri James wrote, on January 09, 2017 4:28 AM >> >> Nope. PyCharm outputs text to the console that the console >> chooses to >> interpret as a link and makes clickable. As Stephen pointed >> out right >> back at the beginning of this thread,

Re: Using sudo with pip3?

2017-01-07 Thread Michael Torrie
On 01/07/2017 11:39 AM, Clint Moyer wrote: > All Linux operating systems come with Python installed, with more > recent systems such as Arch defaulting /usr/bin/python to Python3, > since Python2 discontinued some 7-9 years ago. Poor choice of words, in my opinion. Python 2 has not received new

Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 04:53 PM, Victor Porton wrote: > Ionut Predoiu wrote: > >> I am a beginner in programming language. >> I want to know what version of Python I must to learn to use, beside of >> basic language, because I want to integrate in my site 1 page in which >> users to can made calculus based

Re: Python for WEB-page !?

2017-01-06 Thread Michael Torrie
On 01/05/2017 05:57 AM, Ionut Predoiu wrote: > Good afternoon, > > I am a beginner in programming language. I want to know what version > of Python I must to learn to use, beside of basic language, because I > want to integrate in my site 1 page in which users to can made > calculus based on my for

Re: Clickable hyperlinks

2017-01-06 Thread Michael Torrie
On 01/04/2017 03:58 PM, Deborah Swanson wrote: > Thank you, thank you! Finally, at least one person on this list knows > about something (anything) in the python world that is internet aware. > It's also occurred to me that Beautifulsoup downloads data from a url, > so that code must have access to

Re: Clickable hyperlinks

2017-01-06 Thread Michael Torrie
On 01/03/2017 08:28 PM, Deborah Swanson wrote: > I think you're making this too complicated. I meant a console in a GUI > application. Ahh. Well, a "console in a GUI application" is whatever you make it[1]. There's no single "GUI console" hence my confusion and the confusion expressed by the oth

Re: Clickable hyperlinks

2017-01-06 Thread Michael Torrie
On 01/03/2017 08:46 PM, Deborah Swanson wrote: > Actually it is, or at least it doesn't happen in all email readers. > Mine, for instance, never breaks up threads. Mine doesn't either, which illustrates the issue. This message, for example appears under a long thread that started out life as "me

Re: Clickable hyperlinks

2017-01-06 Thread Michael Torrie
On 01/03/2017 04:32 PM, Deborah Swanson wrote: > The GUI consoles I have are in Pycharm, the IDLE that comes with > Anaconda, and Spyder. PyCharm and IDLE both ask for internet access when > I open them, so they're capable of opening links, but whether that means > their output space is capable of

<    1   2   3   4   5   6   7   8   9   10   >