Python 3.5.1

2016-05-19 Thread Bella via Python-list
Thisis my first encountering with Python. I have successfully downloaded Python3.5.1 for Windows but see only a black window with command prompt. I do not see IDLE under PYthon on Windows Start Menu. Downloaded version of Python is based on 32-bit and my PC is 64-bit. Couldyo please help an

Re: META Culture of this place [was Re: for / while else doesn't make sense]

2016-05-24 Thread Wildman via Python-list
On Tue, 24 May 2016 10:44:56 -0700, Ned Batchelder wrote: > On Tuesday, May 24, 2016 at 12:44:04 PM UTC-4, Steven D'Aprano wrote: >> On Tue, 24 May 2016 12:19 pm, Ned Batchelder wrote: >> >> > Ugh, can we please stop with the "well, actually" pedantic tangents? >> >> With respect, no. >> >> Thi

import

2016-05-30 Thread luca72 via Python-list
Hello i'm not sure that is the right group but i try i use pyqt5 with eric i have two form in the first form i have add : from form_two import Form_two and for pass varible to second form i have add in the function def test(self) self.ft= Form_two() #so i can acces to Object in form_two se

Re: Python on Windows with linux environment

2016-06-02 Thread Wildman via Python-list
On Thu, 02 Jun 2016 04:22:45 -0700, Muhammad Ali wrote: > Hi, > > I use windows regularly, however, I use linux for only my research work at > supercomputer. In my research field (materials science) most of the scripts > are being written in python with linux based system. Could I installed suc

Re: Intel Distribution for Python

2016-06-09 Thread beliavsky--- via Python-list
Intel has released Beta Update 1 of its Python distribution: "What's New! Jupyter* notebook interface Neural network APIs support for pyDAAL Optimized random number generation features for numpy.random package" -- https://mail.python.org/mailman/listinfo/python-list

pip vs pip2 vs pip2.7?

2016-06-15 Thread Chupo via Python-list
Hi everyone, this is my first post here. I've been using Python occasionally to accomplish some specific tasks but now I decided to study it more seriously. I am successfully using both Python 2.6.2 and Python 3.2.2 instaled on Windows. I installed 2.6.2 back in 2009. and 3.2.2 came along with

python-2.7.11.msi destroys PATH env var?

2016-06-15 Thread Chupo via Python-list
After installing Python 2.7.11 through python-2.7.11.msi Windows installer OS couldn't anymore detect antivirus software so after some investigation I found that PATH environment variable was completely removed from the system. I had to recreate the PATH var and add: %SystemRoot%\system32;%Syst

Re: pip vs pip2 vs pip2.7?

2016-06-15 Thread Chupo via Python-list
In article , Random832 says... > The idea is, if you have multiple python installations on your path, > "pip" will find the first one, "pip2" will find the first python2 one > (so if the first one was python3, or vice versa), and pip2.7 will find > 2.7 even if e.g. 2.6 was before it on the path.

best text editor for programming Python on a Mac

2016-06-17 Thread Chris via Python-list
I have been trying to write a simple Hello World script on my Mac at work with TextEdit. However, I keep getting this error message: SyntaxError: Non-ASCII character '\xe2' in hello_world.py on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details I am using Te

Re: value of pi and 22/7

2016-06-20 Thread Wildman via Python-list
On Mon, 20 Jun 2016 01:01:21 -0700, Lawrence D’Oliveiro wrote: > On Monday, June 20, 2016 at 7:32:54 PM UTC+12, Marko Rauhamaa wrote: > >> Width/height ratio of the pyramid of Cheops was so close to π/2 that UFO >> enthusiasts were convinced alien technology was used in the construction >> of the

Re: while Loops

2016-06-21 Thread Wildman via Python-list
On Tue, 21 Jun 2016 20:50:24 -0700, Elizabeth Weiss wrote: > i=1 > while i<=5: >print(i) >i=i+1 > > The result is: > 1 > 2 > 3 > 4 > 5 > > Why is one of the results 5 since i=i+1? Should the maximum result be 4 since > 4 +1=5? > > Thanks for your help! The operator '<=' means less th

[ANN] pygcgen (github changelog generator)

2016-07-01 Thread topic2k--- via Python-list
Hello, maybe you know "GitHub Changelog Generator" (https://github.com/skywinder/github-changelog-generator). As i came across it, i liked to try it, but wasn't able to get it running. The script is written in Ruby. As i don't know Ruby, i had the idea to convert it to Python. After a few days

Re: Touch screen development in Python

2016-07-11 Thread Wildman via Python-list
On Mon, 11 Jul 2016 19:21:56 +0200, Jahn wrote: > Hi , > Does anyone use Python for developping applications that work with a touch > screen? > http://www.technolabsz.com/2011/08/how-to-make-touch-screen-user-interface.html -- GNU/Linux user #557453 The cow died so I don't need your bull!

python IDLE display with a 13.3-inch screen

2016-07-17 Thread bbking4611--- via Python-list
Hello, I just load the latest version of Python 3.5 on my new computer Asus 13.3-inch full HD display and the police is blurred in IDLE. I like to use IDLE with my students but I am unable to solve the problem. If someone can do an update for its screens. Thank you. Cordially. -- https://mail.p

Re: SyntaxError: Non-ASCII character

2016-07-17 Thread Wildman via Python-list
On Sun, 17 Jul 2016 05:01:21 -0700, ldompeling wrote: > I installed python 3.4 and set my python path to PYTONPATH:/usr/bin/python3.4 > > When I try to import pyaudio then I get this error: > Python 3.4.2 (default, Oct 19 2014, 13:31:11) > [GCC 4.9.1] on linux > Type "help", "copyright", "credits

Python packages listed in PyPI

2016-07-20 Thread Rayne via Python-list
Hi, May I know if the Python packages listed on the PyPI page (https://pypi.python.org/pypi) are OS-independent? That is, do I download and install the same package on both Windows and Linux systems? Thank you. Regards,Rayne -- https://mail.python.org/mailman/listinfo/python-list

Re: Python packages listed in PyPI

2016-07-20 Thread Rayne via Python-list
Thanks! One more question: Does "pip install" require Internet to work? Or are all implementations already contained in the packages and so do not require additional downloads? From: Pete Forman To: [email protected] Sent: Thursday, July 21, 2016 2:19 PM Subject: Re: Python packa

Re: Python packages listed in PyPI

2016-07-21 Thread Rayne via Python-list
"I don't understand what difference you intend between “implementations” and “packages”." I meant whether the package is self-contained, that is, all the different implementations for different OS and versions of Python are already contained in the package itself. But you've already answered m

Re: making executables smaller

2016-07-26 Thread Wildman via Python-list
On Tue, 26 Jul 2016 12:22:16 -0500, Carter Temm wrote: > Hi, > I’m writing a couple different projects at the moment, and when I > compile it into a single executable using pyinstaller, it becomes > extremely large. I’m guessing this is because of the modules used. > Because I’m not that skilled a

where is it

2016-08-06 Thread Dave via Python-list
I am trying to associate the .py file extension with idle...where IS idle? Can you make it a bit more difficult to load/use your software please. -- https://mail.python.org/mailman/listinfo/python-list

api-ms-win-crt-runtime-l1-1-0.dll missing ?

2016-08-08 Thread zutix via Python-list
I just have subscribed, so I send my message again as required. Sorry for not having pay attention. Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the buton. After

python 3.5.2 lounch: api-ms-win-crt-runtime-l1-1-0.dll is missing ?

2016-08-08 Thread zutix via Python-list
Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the buton. After a succesfull installation, a system error occurs on the lounch of the program. I desinstalled this version from my

api-ms-win-crt-runtime-l1-1-0.dll missing ?

2016-08-08 Thread zutix via Python-list
Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the buton. After a succesfull installation, a system error occurs on the lounch of the program. I desinstalled this version from my

Re: Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Wildman via Python-list
I tried posting this already but it didn't make it. I am trying again... On Tue, 13 Nov 2018 01:07:06 +0530, srinivasan wrote: > Dear Python Experts, > > *First method:* > > I need to get the IP address basically the gateway IP I am assuming your platform is Linux. If I am incorrect then ign

Re: Re: Generators, generator expressions, and loops

2018-11-16 Thread Peter via Python-list
Lovely, succinct answers. On 17/11/2018 2:44 AM, Ian Kelly wrote: On Fri, Nov 16, 2018 at 7:57 AM Steve Keller wrote: I have looked at generators, generator expressions, and iterators and I try to get more familiar with these. 1. How would I loop over all (with no upper bound) integers or al

Have I Been Banned?

2018-11-20 Thread Wildman via Python-list
In the past I have participated in the group without any problems. I access the forum through the usenet mirror and I am still using the same newsreader and account. Recently I made some followup posts to the group and they never showed up. Have I been banned? If so, I would appreciate it to kno

Re: Have I Been Banned?

2018-11-20 Thread Wildman via Python-list
On Tue, 20 Nov 2018 16:39:39 +, Jon Ribbens wrote: > On 2018-11-20, Wildman wrote: >> In the past I have participated in the group without any >> problems. I access the forum through the usenet mirror >> and I am still using the same newsreader and account. >> Recently I made some followup p

Re: Unable to find newly installed Python 3.7.1

2018-11-23 Thread Peter via Python-list
On 23/11/2018 10:51 PM, Edward Popko wrote: Snake people: I'm a Java person and thought to try Python for Windows. I installed Python 3.7.1 (64-bit) hoping for an IDE, documentation and even a sample or two. The python-3.7.1-amd64.exe unpacks and installs fine. Only problem is I cannot find it.

Re: how to match list members in py3.x

2018-11-25 Thread Alister via Python-list
On Sun, 25 Nov 2018 07:43:42 -0800, Muhammad Rizwan wrote: > for each word in each line how can we check to see if a word is already > present in a list and if it is not how to append that word to a new list the 1st step is to stay awake in class & listen to your instructor, then try to apply th

Re: Issue in using "subprocess.Popen" for parsing the command output

2018-11-25 Thread Wildman via Python-list
On Sun, 25 Nov 2018 22:43:10 +0530, srinivasan wrote: > Dear Python Experts Team, > > As am newbie still learning the python syntax from past 2 weeks, Excuse me, > If this might be silly question, As I am trying to execute shell command > (ie, nmcli) using "subprocess.Popen". > > *return pro

Re: how to match list members in py3.x

2018-11-25 Thread Alister via Python-list
On Sun, 25 Nov 2018 08:49:03 -0800, Muhammad Rizwan wrote: > On Sunday, 25 November 2018 10:59:46 UTC-5, Alister wrote: >> On Sun, 25 Nov 2018 07:43:42 -0800, Muhammad Rizwan wrote: >> >> > for each word in each line how can we check to see if a word is >> > already present in a list and if it i

Re: RAR functionality

2018-11-30 Thread Wildman via Python-list
On Fri, 30 Nov 2018 16:42:06 -0500, Benjamin Schollnick wrote: > Folks, > > Can anyone explain to me why RAR support isn’t available natively in python? > > We have the zipfile and tarfile modules… > > Yes, there is rarfile and PaTools but they both rely on RAR being available > to shell out

Re: Program to keep track of success percentage

2018-12-08 Thread Alister via Python-list
On Sat, 08 Dec 2018 10:02:41 -0800, Musatov wrote: > I am thinking about a program where the only user input is win/loss. The > program let's you know if you have won more than 31% of the time or not. > Any suggestions about how to approach authoring such a program? Thanks. To start describe how

building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
Hi all, I'm trying to build 3.7.1 from source and having trouble with libffi and _ctypes. I'm on linux and have installed libffi also from source to a custom location: $HOME/opt/lib64/libffi.so.6.0.4 $HOME/opt/lib64/libffi.a $HOME/opt/lib64/libffi.la $HOME/opt/lib64/libffi.so.6 $HOME/opt/lib64/lib

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
On 12/20/18, Fetchinson . wrote: > Hi all, I'm trying to build 3.7.1 from source and having trouble with > libffi and _ctypes. I'm on linux and have installed libffi also from > source to a custom location: > > $HOME/opt/lib64/libffi.so.6.0.4 > $HOME/opt/lib64/libffi.a > $HOME/opt/lib64/libffi.la

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-25 Thread Fetchinson . via Python-list
>> And as far as I know pkg-config is used by python's configure script >> so everything should be fine. I also set >> LD_LIBRARY_PATH=/home/fetch/opt/lib:/home/fetch/opt/lib64 and also >> C_INCLUDE_PATH=/home/fetch/opt/include > > I looked into this a little. I found that setting C_INCLUDE_PATH as

Python Humble Bundle from Packt

2019-01-01 Thread beliavsky--- via Python-list
For about the next two weeks, Humble Bundle https://www.humblebundle.com/books/python-packt-2019-books offers the following 18 books and 7 videos on Python for $15. BOOKS: Python Interviews OpenCV 3 Computer Vision with Python Cookbook Mastering Flask Web Development Python Automation Cookbo

Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
I read that pep 484 type hinting of python has no effect of performance, then what’s the purpose of it? Just a toy ? Python is an old programming language, but not better than other programming languages, then what are you all dong for so many times ? Pep484 is too complex. Typle should not a

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
In fact, there is only 3 types in all prigramming languages. Primitive type: int, string, bool, char Complex type: struct or class Array Type: int[10], string[100], struct[1000] These 3 type can represent all thins in the world. -- https://mail.python.org/mailman/listinfo/python-list

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
{ id: 1, name:’abc’, age:99, address:{province:’CA’, city:’SA’}} Can be represent by: Class Address { public string province; public string city; } Class Person { public int id; public string name; public int age; public Address address; } -- http

Re: Are all items in list the same?

2019-01-08 Thread Alister via Python-list
On Tue, 08 Jan 2019 16:48:58 +0200, Serhiy Storchaka wrote: > 08.01.19 11:07, Peter Otten пише: >> Bob van der Poel wrote: >> >>> I need to see if all the items in my list are the same. I was using >>> set() >>> for this, but that doesn't work if items are themselves lists. So, >>> assuming that

Re: Are all items in list the same?

2019-01-08 Thread Alister via Python-list
On Tue, 08 Jan 2019 17:15:17 +, Alister wrote: > On Tue, 08 Jan 2019 16:48:58 +0200, Serhiy Storchaka wrote: > >> 08.01.19 11:07, Peter Otten пише: >>> Bob van der Poel wrote: >>> I need to see if all the items in my list are the same. I was using set() for this, but that does

python package management confusion

2019-01-14 Thread dcs3spp via Python-list
Hi, I am a newbie completely confused with python package management. I have a setup.py file (listed below) and have setup pip and setup.cfg to install my own dependencies from a local devpi repository. Can setup.py reference a git repository so that I can install from that url? Is this possi

Re: python package management confusion

2019-01-15 Thread dcs3spp via Python-list
On Tuesday, 15 January 2019 07:48:57 UTC, Chris Angelico wrote: > On Tue, Jan 15, 2019 at 6:18 PM dieter wrote: > > > > dcs3spp via Python-list writes: > > > I am a newbie completely confused with python package management. > > > > > > I have a setup

Re: 3 random numbers

2019-01-15 Thread Alister via Python-list
On Tue, 15 Jan 2019 06:13:00 -0800, Gengyang Cai wrote: > I managed to solve the problem and also another problem with different 3 > random numbers. But it wasn't a very good question in the first place, i > admit > > Indeed it is a poorly write exercise & I suspect it has been misinterpret

Re: python package management confusion

2019-01-16 Thread dcs3spp via Python-list
On Wednesday, 16 January 2019 07:07:29 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > So to manage the development of private packages, e.g. wheels, I would have > > to use my own private repository (something like devpi or a an alternative > > clou

Re: get the terminal's size

2019-01-16 Thread Wildman via Python-list
On Mon, 14 Jan 2019 11:57:33 +, Alex Ternaute wrote: > Hi there, > > I want to know the number of columns of the terminal where python2 writes > it's outputs. > > In a terminal, I type > $ echo $COLUMNS > 100 > > But in Python, os.getenv("COLUMNS") gets nothing. > It gets nothing as well i

Re: python package management confusion

2019-01-17 Thread dcs3spp via Python-list
On Thursday, 17 January 2019 07:41:43 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > How do I configure python setup.py develop to pull the pyramid_core > > dependent packages using virtualenv? > > Your "setup.py" below should work (onc

Re: python package management confusion

2019-01-18 Thread dcs3spp via Python-list
On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > How do I configure setuptools to pull my own private dependency package > > using virtualenv + python setup.py develop > > > You call "python setup.py dev

Re: python package management confusion

2019-01-19 Thread dcs3spp via Python-list
On Saturday, 19 January 2019 07:33:50 UTC, dieter wrote: > dcs3spp via Python-list writes: > > On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > > ... > > My situation is similar to the following > > > > Assume the following two privately devel

How to access a folder in a zip file?

2019-01-19 Thread mignoncharly via Python-list
Hello! I'm a newbie in python and I was trying to access a folder inside a zip file and I also have issues with relative and absolute path. Thks in advance. In projects there a lot of urls (i'll read them later one by one and store them in a list/array so that I could work with it easily) here

How to access a folder inside a zip file

2019-01-19 Thread mignoncharly--- via Python-list
Hello! I'm a newbie in python and I was trying to access a folder inside a zip file and I also have issues with relative and absolute path. Thks in advance. In projects there a lot of urls (i'll read them later one by one and store them in a list/array so that I could work with it easily) here

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Saturday, 19 January 2019 11:17:19 UTC, dcs3spp wrote: > On Saturday, 19 January 2019 07:33:50 UTC, dieter wrote: > > dcs3spp via Python-list writes: > > > On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > > > ... > > > My situation is similar to

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Sunday, 20 January 2019 20:38:30 UTC, Oscar Benjamin wrote: > On Sun, 20 Jan 2019 at 16:22, dcs3spp via Python-list > wrote: > > > > On Saturday, 19 January 2019 11:17:19 UTC, dcs3spp wrote: > > > > > > My question is, can setuptools be configured to pull

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Sunday, 20 January 2019 21:27:53 UTC, Oscar Benjamin wrote: > On Sun, 20 Jan 2019 at 21:12, dcs3spp via Python-list > wrote: > > > > Pip 18.1 supports reading pep508 direct urls from install_requires. In > > future release there are plans to deprecate the --process-d

Re: Exercize to understand from three numbers which is more high

2019-01-27 Thread Alister via Python-list
On Sun, 27 Jan 2019 15:59:42 +0100, ^Bart wrote: >> You have got to a starting point - you have three numbers. Good. >> >> Where do you do go from here? >> >> I would start with two of the numbers, and work out which one is >> higher. > > # SOLVED!!! > number1 = int( input("Insert the first num

Trying to figure out the data type from the code snippet

2019-01-29 Thread Chupo via Python-list
I am trying to figure out what data type is assigned to variable p in this code snippet: for p in game.players.passing(): print p, p.team, p.passing_att, p.passer_rating() Results: R.Wilson SEA 29 55.7 J.Ryan SEA 1 158.3 A.Rodgers GB 34 55.8 https://stackoverflow.com/q/28056171/1324175 If

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , Cameron Simpson says... > What you're probably wanting to know is that the print statement calls > str(x) for every "x" which it is asked to print, and that "p" has a > __str__ method returning the "R.Wilson" string (etc). All object's have > an __str__ method, and for "p" it h

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , DL Neil says... > Alternately/additionally, if you ask help(p), it will reveal-all about > the "class" (of which p is an "instance") - including some answers to > your second question (and perhaps others which logically follow-on). Yes, but unfortunately this was all I had: https

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article <[email protected]>, Rick Johnson says... > Listen... if you are not familiar with all of Python's built-in functions, > all special methods of Python objects, and all the methods of strings, > integers, floats, lists, tuples, dicts (and possibly oth

Re: Trying to figure out the data type from the code snippet

2019-01-30 Thread Chupo via Python-list
In article , DL Neil says... > It can't be - there must be some source for p (code and data)! Surely > you're only showing us a small portion of the code? > I am not author of the question on StackOverflow. I was looking for something about Python and that question was among the search result

Re: How to replace space in a string with \n

2019-01-31 Thread Alister via Python-list
On Thu, 31 Jan 2019 10:18:20 +0100, ^Bart wrote: > Hello everybody! :) > > I got a text and I should replace every space with \n without to use > str.replace, Why? > I thought something like this: > > text = "The best day of my life!" > > space = (' ') > > if text.count(' ') in text: >

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
In article <[email protected]>, Rick Johnson says... > I'm impressed! But you're asking basic questions that someone with your > resume should either (1) already know, or (2) be competent enough to find on > their own. Now don't get me wrong. My intention

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
> I was thought > I meant: 'I was taught'. -- Let There Be Light Custom LED driveri prema specifikacijama http://tinyurl.com/customleddriver Chupo -- https://mail.python.org/mailman/listinfo/python-list

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
In article , Chris Angelico says... > There are stupid questions, but I enjoy answering those too. You don't > need to apologize for asking these questions. All you need to do is > ignore the trolls like Rick. In fact, if you abandon Google Groups and > instead read the mailing list python-list@p

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
In article , Chris Angelico says... > Ah okay. You may want to killfile a few people then, since you're > using an actual real newsreader and have that capability. > Yes, Gravity has Bozo Bin for that purpose :-) But although I've been using newsgroups for 20 years I've never blocked a single

Re: Trying to figure out the data type from the code snippet

2019-01-31 Thread Chupo via Python-list
In article , Rick Johnson says... > You know _all_ that What I mentioned is just a small excerpt of what I know :-) > yet... you didn't know about the built-in `type()` method? Exactly :-) > Well, that's just great. We can only hope you don't try your hand at any > mission-critical code. A

Re: Python program to phone?

2019-02-06 Thread Alister via Python-list
On Mon, 04 Feb 2019 15:20:58 -0500, Steve wrote: > I have written my first python program (600 lines!) to help control my > blood sugar and it has been so successful that my A1c dropped form 9.3 > to an impressive 6.4. It will be much more useful if I had it on my > phone. (MotoG, Android) The .

Re: how to exit from a nested loop in python

2019-02-08 Thread Rurpy via Python-list
On Thursday, February 7, 2019 at 11:45:23 PM UTC-7, Kaka wrote: > for i in range(len(A.hp)): > > for j in range(len(run_parameters.bits_Mod)): > req_slots[j] = math.ceil((A.T[i]) > > for g in Temp[i]["Available_ranges"][j]: > for s in range(g[0], g[-1]): >

Re: What's the address for?

2019-02-18 Thread Alister via Python-list
On Mon, 18 Feb 2019 11:59:18 +, Stefan Ram wrote: > When one prints a function, one might get something like: > > > > . The participants of my basic course asked me what the address is > for. I did not know. > > What's so important about the (presumed) address of a function that it >

Re: How to play with Python in an existing app

2019-02-20 Thread 0x906 via Python-list
A rule of thumb to keep your sanity and maybe your job is to never touch a production system in any way. Use a copy of that db and do all your research there. > On Feb 20, 2019, at 10:56 AM, [email protected] wrote: > > So I'm a newbie to Python. I got access to an existing RavenDB and am >

Re: tkinter: variable width widgets in a grid?

2019-02-24 Thread Wildman via Python-list
On Sun, 24 Feb 2019 09:09:22 -0800, Rich Shepard wrote: > When placing widgets (e.g., Entry, Spinbox) in a grid layout can a length > (visible width) be specified? For example, a telephone extension is a shorter > string than the number itself. The height and width can be specified in the command

Re: how to setup for localhost:8000

2019-02-24 Thread 0x906 via Python-list
There is a chance that I missed something with the 0.0.0.0. but I am pretty sure that the localhost IP is 127.0.0.1. > On Feb 24, 2019, at 6:13 PM, [email protected] wrote: > > On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, [email protected] wrote: >> Hi, >> >> I am working on window

Adopting semantic versioning in trunk based development with Python

2019-04-11 Thread dcs3spp via Python-list
Hi, Hoping posting this in the correct place...Apologies if not I am trying to understand how to use semantic versioning with trunk based development for a Python project. Has anyone had any experience of adopting a trunk based development with semantic versioning for packages? I store the

Re: Adopting semantic versioning in trunk based development with Python

2019-04-12 Thread dcs3spp via Python-list
On Thursday, 11 April 2019 17:33:04 UTC+1, dcs3spp wrote: > Hi, > > Hoping posting this in the correct place...Apologies if not > > I am trying to understand how to use semantic versioning with trunk based > development for a Python project. Has anyone had any experience of adopting a > tr

Re: Tkinter on Mac OS crashes python

2019-05-14 Thread Wildman via Python-list
On Tue, 14 May 2019 11:22:54 -0600, Chip Towner wrote: > I am trying to use tkinter and when I attempt to do so Python crashes. I am > accessing Python (v 3.6.8) in Spyder (v3.6) from Anaconda. The version of > TkVersion tells me the version is 8.6 and the Anaconda environment browser > tells

Re: The if is not working properly

2019-05-19 Thread Alister via Python-list
On Sun, 19 May 2019 20:29:35 +1000, Cameron Simpson wrote: > On 18May2019 13:22, nobelio wrote: >>When you print the variable “a” it appears as True, but the program is >>it is not getting in the if a==True: > > It may be that "a" is not the Boolean value True but something else. But > that is j

Re: How to split a list type array into float array?

2019-05-21 Thread Alister via Python-list
On Tue, 21 May 2019 03:38:43 -0700, Madhavan Bomidi wrote: > Hi, > > I have the following list type data: > > [' 29.7963 29.6167 29.4371 29.2574 29.0778 28.8982 28.7185 > 28.5389 28.3593 28.1797 28. 27.8204 27.6408 27.4611 > 27.2815 27.1019 26.9223 26.7426

Re: (no subject)

2019-05-31 Thread Alister via Python-list
On Wed, 29 May 2019 08:07:06 +0530, Sri Tharun wrote: > Why I am unable to install packages because you are doing it wrong -- https://mail.python.org/mailman/listinfo/python-list

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Wildman via Python-list
On Wed, 26 Jun 2019 13:25:15 +0200, Cecil Westerhof wrote: > I need to write a desktop program. I choose to use tkinter. How can I > make sure the window title is visible? For example when I have the > following code: > from tkinter import Button, filedialog, Label, messagebox, Tk > > >

Re: Make sure the window title is visible in tkinter

2019-06-26 Thread Wildman via Python-list
On Wed, 26 Jun 2019 15:05:15 +0200, Cecil Westerhof wrote: >> OK, then I will have to live with it. I did find some references to a method where you first disable the Tkinter title bar using overrideredirect(True). Then you create a new title bar using a frame and canvas. You can then set the f

Re: Hiding a progressbar in tkinter

2019-06-26 Thread Wildman via Python-list
On Wed, 26 Jun 2019 17:47:39 +0200, Cecil Westerhof wrote: > I just started with GUI stuff in tkinter. I have a progressbar, but I > want it to be only visible when it is used. So I tried the following: > window = Tk() > window.title(window_str) > frame = Frame(window) > frame.pac

Re: What's wrong on using Popen's communicate method?

2019-07-03 Thread Wildman via Python-list
On Thu, 04 Jul 2019 10:36:36 +1000, Cameron Simpson wrote: > On 03Jul2019 16:57, Jach Fong wrote: >>I have the test0.py below. I expect to see 'abcd' showing in the notepad >>window: >>- >>import subprocess as sp >>p0 = sp.Popen('notepad.exe', stdin=sp.PIPE) >>p0.communicate(input=b'abcd

Re: how to setup for localhost:8000

2019-07-07 Thread Alister via Python-list
On Sun, 07 Jul 2019 16:57:12 +, nabru wrote: > jaymoyer44 [[email protected]] wrote: > >> On Thursday, April 14, 2016 at 1:47:03 PM UTC-4, [email protected] >> wrote: >>> Hi, >>> >>> I am working on window 7 and Python 3.5 to setup a localhost:8000 but >>> it did not get through as shown b

Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread rkartunova--- via Python-list
Hi everyone! I need help transferring an image via TCP from a python program on my raspberry pi to an android application. I have set up a client-server architecture such that my raspberry pi 3 records audio, performs some analysis on it, and then sends the data (via TCP) to the android app to

book on modern Python

2019-07-25 Thread beliavsky--- via Python-list
I did some basic programming in Python 2 and now use Python 3. All I know about Python 3 is that print is a function requiring parentheses. What is a good book on modern Python that covers topics such as type annotations? I know of Fluent Python: Clear, Concise, and Effective Programming by Luc

Re: Definite or indefinite article for non-singletons?

2019-07-27 Thread Mirko via Python-list
Am 27.07.2019 um 23:10 schrieb Chris Angelico: > When talking about indistinguishable objects, is it correct to talk > about "the " or "an "? > > Example: > > def f(s): > """Frob a thing. > > If s is an empty string, frobs all the things. > OR > If s is the empty string, frobs al

Trouble installing python

2019-07-28 Thread Steven via Python-list
Good afternoon, I originally started with the latest version of python (3.7), but I was unable to figure out how to get to script mode. There weren't any tabs at the top of the interactive mode window. So I decided to uninstall 3.7, and try 3.5.2 (since that is the version my online instructo

Modify setup

2019-07-30 Thread Steven via Python-list
Good morning, I have uninstalled and reinstalled different versions of Python, and continue to get the "modify setup" box when I try to open. Is there something I'm doing wrong? Sent from ProtonMail mobile -- https://mail.python.org/mailman/listinfo/python-list

Re: help with tkinter

2019-08-01 Thread Wildman via Python-list
On Thu, 01 Aug 2019 16:31:02 +0300, adam kabbara wrote: > Hello I am having trouble with tkinter when I enter the command from tkinter > import* I get an error message > What was the error and what version of Python are you using? For Python 2 you need... from Tkinter import* -- GNU/Linux u

Python/SQLite best practices

2019-08-05 Thread Dave via Python-list
I'm looking for some tips from experienced hands on on this subject. Some of the areas of interest are (feel free to add more): * Passing connections and cursors - good, bad indifferent? I try to avoid passing file handles unless necessary, so I view connections and cursors the same. Though

Re: beginner question-very basic

2019-08-11 Thread Wildman via Python-list
On Sun, 11 Aug 2019 12:50:29 -0400, slefkowitz wrote: > Just getting started with Python. > > Downloaded 3.7.4 rom python.org > > I wrote program in Notepad, saved it with a ".py" extension. > > What do I do next? How do I execute a program? I am assuming you are using Windows since you poste

Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
Oops! Just posted this to the wrong newsgroup. Sorry!!! I'm doing a Python app that uses SQLite, and am stumbling on a few questions. I've read a lot of books and documentation, but two questions still allude me. Hope someone that

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
On 8/13/19 4:45 PM, MRAB wrote: On 2019-08-13 19:59, Chris Angelico wrote: On Wed, Aug 14, 2019 at 4:50 AM Dave via Python-list wrote: Some of the tables are related.  For example: Hiking_Table Trails_Table    Joining_Table

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
On 8/13/19 2:59 PM, Chris Angelico wrote: On Wed, Aug 14, 2019 at 4:50 AM Dave via Python-list wrote: Some of the tables are related. For example: Hiking_Table Trails_TableJoining_Table -- hike_id PK

Re: Create multiple sqlite tables, many-to-many design

2019-08-13 Thread Dave via Python-list
On 8/13/19 5:46 PM, Rich Shepard wrote: On Tue, 13 Aug 2019, Rich Shepard wrote: Read Joe Celko's books, starting with his SQL Programming Guide, then SQL That should be SQL Programming Style Rich Rich, On my next trip to BN I'll see if they have them. That is long term though. Right n

Application Preferences

2019-08-19 Thread Dave via Python-list
The plan for an app that I'm doing was to use SQLite for data and to hold the preference settings as some apps do. The plan was changed last week to allow the user to select the location of the data files (SQLite) rather than putting it where the OS would dictate. Ok with that, but it brings

Re: Application Preferences

2019-08-19 Thread Dave via Python-list
On 8/19/19 9:22 AM, Malcolm Greene wrote: Hi Dave, The plan for an app that I'm doing was to use SQLite for data and to hold the preference settings as some apps do. The plan was changed last week to allow the user to select the location of the data files (SQLite) rather than putting it whe

Re: Application Preferences

2019-08-19 Thread Dave via Python-list
On 8/19/19 1:53 PM, Barry Scott wrote: On 19 Aug 2019, at 13:43, Dave via Python-list wrote: The plan for an app that I'm doing was to use SQLite for data and to hold the preference settings as some apps do. The plan was changed last week to allow the user to select the location o

Re: Application Preferences

2019-08-19 Thread dboland9 via Python-list
, 2019 1:53 PM, Barry Scott wrote: >> On 19 Aug 2019, at 13:43, Dave via Python-list >> wrote: >> >> The plan for an app that I'm doing was to use SQLite for data and to hold >> the preference settings as some apps do. The plan was changed last week to >>

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