Re: command line utility for cups

2018-06-20 Thread Brian Oney via Python-list
lib. I have gotten bitten too often. -- https://mail.python.org/mailman/listinfo/python-list

Package directory question

2018-06-24 Thread Robert Latest via Python-list
. Any thoughts? Thanks robert -- https://mail.python.org/mailman/listinfo/python-list

Re: Package directory question

2018-06-25 Thread Robert Latest via Python-list
Ben Finney wrote: > Robert Latest via Python-list writes: > >> Because the main.py script needs to import the tables.py module from >> backend, I put this at the top if main.py: >> >>sys.path.append('../..') >>import jobwatch.backend.tables a

Re: PEP 526 - var annotations and the spirit of python

2018-07-03 Thread Ben Finney via Python-list
ite" is a number”. -- \“That's the essence of science: Ask an impertinent question, | `\and you're on the way to the pertinent answer.” —Jacob | _o__) Bronowski, _The Ascent of Man_, 1973 | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list

openstack connection

2018-07-03 Thread jayshankar nair via Python-list
S, WITHOUT# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the# License for the specific language governing permissions and limitations# under the License. """The :class:`~openstack.connection.Connection` class is the primary interfaceto

Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-05 Thread Mark Summerfield via Python-list
For GUI programming I often use Python bindings for Qt. There are two competing bindings, PySide and PyQt. Ideally I like to have applications that can use either. This way, if I get a problem I can try with the other bindings: if I still get the problem, then it is probably me; but if I don&#

[OT] Bit twiddling homework

2018-07-19 Thread Brian Oney via Python-list
Dear Python-List, an old dog wants to learn some new tricks. Due to my contact with microcontrollers, I am learning C/C++. I am aware that this is the endearing, helpful, yet chatty python-list. Many of you are competent C-programmers. The allure of C is that I can play directly with memory

Re: [OT] Bit twiddling homework

2018-07-20 Thread Brian Oney via Python-list
On Fri, 2018-07-20 at 06:37 +, Steven D'Aprano wrote: > On Fri, 20 Jul 2018 08:25:04 +0200, Brian Oney via Python-list wrote: > > > PS: Can I twiddle bits in Python? > > Yes. > > These operators work on ints: > > bitwise AND: & > bitwise OR:

Re: [OT] Bit twiddling homework

2018-07-20 Thread Brian Oney via Python-list
On Fri, 2018-07-20 at 18:07 +0900, xffox wrote: > On Fri, Jul 20, 2018 at 08:25:04AM +0200, Brian Oney via Python-list wrote: > > Therefore, what book or learning course do you recommend? I imagine > > something that tours or skims > > the fundamentals of Boolean algebra a

Re: [OT] Bit twiddling homework

2018-07-20 Thread Brian Oney via Python-list
On Fri, 2018-07-20 at 10:38 -0400, Dennis Lee Bieber wrote: > On Fri, 20 Jul 2018 11:00:09 +0200, Brian Oney via Python-list > declaimed the following: > > > Are 16|1 and 16+1 internally the same operation (for integers)? > > For those integers the EFFECT/RESULT

Re: For next loops

2018-07-23 Thread Brian Oney via Python-list
What if ply != com in the first (0th) iteration?  It's better to have an 'else:'-statement in your case, I suppose. -- https://mail.python.org/mailman/listinfo/python-list

Re: Want to be a rockstar programmer?

2018-07-23 Thread Brian Oney via Python-list
meh, I'm more into 90s and 00s metal rock and punk rock. Oh well, I knew it wasn't meant to be. ;) -- https://mail.python.org/mailman/listinfo/python-list

Re: curses, ncurses or something else

2018-07-23 Thread Dale Marvin via Python-list
ndows standard library for Python. It occured to me that I could create a simple tkinter class but I haven't tinkered for some time and would have to refresh my knowledge of the API. Just wondered if there was any other simple way I could keep the title line on the console, preferably witho

Re: Python Console Menu

2018-07-31 Thread Juraj Papic via Python-list
15:36 GMT-03:00 Jerry Hill : > On Tue, Jul 31, 2018 at 12:31 PM juraj.papic--- via Python-list > wrote: > > I will check the links thanks for that tips, is there any page where I > can see more examples? > > I like Doug Hellmann's Python Module of the Week site for in-d

Re: >< swap operator

2018-08-14 Thread Brian Oney via Python-list
anded for more. > > > > > a = 1 > > > > b = 2 > > > > c = "confusion" > > > > > > > > c, a, b = a, b, c > > > > print a > > 2 > > > > print b > > confusion > > > > print c > > 1 Indeed, that is elegant. It doesn't take a special knowledge of syntax, for good guessers. It also doesn't look like two male variables peeing on each others feet. -- https://mail.python.org/mailman/listinfo/python-list

RE: __init__ patterns

2018-08-30 Thread Dan Strohl via Python-list
e __init__ Dan > -Original Message----- > From: Python-list On > Behalf Of Tim > Sent: Thursday, August 30, 2018 6:01 AM > To: [email protected] > Subject: __init__ patterns > > EXTERNAL MAIL: [email protected] > > I saw a thread on redd

Why emumerated list is empty on 2nd round of print?

2018-09-06 Thread Viet Nguyen via Python-list
>>> numList [2, 7, 22, 30, 1, 8] >>> aList = enumerate(numList) >>> for i,j in aList:print(i,j) 0 2 1 7 2 22 3 30 4 1 5 8 >>> for i,j in aList:print(i,j) >>> -- https://mail.python.org/mailman/listinfo/python-list

Re: Why emumerated list is empty on 2nd round of print?

2018-09-06 Thread Viet Nguyen via Python-list
On Thursday, September 6, 2018 at 10:34:19 AM UTC-7, Chris Angelico wrote: > On Fri, Sep 7, 2018 at 3:26 AM, Viet Nguyen via Python-list > wrote: > >>>> numList > > [2, 7, 22, 30, 1, 8] > > > >>>> aList = enumerate(numList) > > > >>&g

Re: Why emumerated list is empty on 2nd round of print?

2018-09-06 Thread Viet Nguyen via Python-list
ee the changes. If you want a full copy > then you can just wrap it with list() > > Python 3.7.0 (v3.7.0:1bf9cc5093, Jun 27 2018, 04:59:51) [MSC v.1914 64 bit > (AMD64)] on win32 > Type "help", "copyright", "credits" or "license" for mo

ModuleNotFoundError: No module named 'encodings'

2018-09-06 Thread Jason Qian via Python-list
Hi Need some help. I have a C++ application that invokes Python. ... Py_SetPythonHome("python_path"); Py_Initialize(); This works fine on Python 3.6.4 version, but got errors on Python 3.7.0 when calling Py_Initialize(), Fatal Python error: initfsencoding: unable to load the file sy

Re: I need help to put the output from terminal in a csv file

2018-09-07 Thread Brian Oney via Python-list
Please study the following to get you started. It looks like JSON output that you are dealing, which is good. I added a ", to the "body"-line, because I assume that you botched that when giving an example. ```python #!/usr/bin/env python import json output = '''

Re: ModuleNotFoundError: No module named 'encodings'

2018-09-07 Thread Jason Qian via Python-list
Thanks Thomas, You are right, this seems the Python home configuration issue. One more question. Is there a way I can catch the error ( Fatal Python error: initfsencoding: ..) as exception in the c code ? try{ Py_Initialize(); }catch(xxx) { } Thanks On Thu, Sep 6, 2018 at 5:29 PM

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
On Sun, Sep 9, 2018 at 2:20 PM, Gilmeh Serda wrote: > > # Python 3.6.1/Linux > (acts the same in Python 2.7.3 also, by the way) > >>>> from glob import glob > >>>> glob('./Testfile *') > ['./Testfile [comment] some text.txt'] >

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
On Sun, Sep 9, 2018 at 6:03 PM, Thomas Jollans wrote: > On 09/09/2018 02:20 PM, Gilmeh Serda wrote: >> >> >> # Python 3.6.1/Linux >> (acts the same in Python 2.7.3 also, by the way) >> >>>>> from glob import glob >> >> >>&

Re: "glob.glob('weirdness')" Any thoughts?

2018-09-10 Thread Max Zettlmeißl via Python-list
can't see how I came to that wrong conclusion. Your suggested "[][comment]" is exactly what I thought your "[[]comment]" to be and I can't explain to myself anymore how I came to that conclusion. There actually is glob.ecape [1] which escapes all the glob meta-characters in a path and does so exactly as in your example. (Since it is obviously the shortest and therefore in this case best way.) [1] https://docs.python.org/3/library/glob.html#glob.escape -- https://mail.python.org/mailman/listinfo/python-list

Re: Pretty printing dicts with compact=True

2018-09-11 Thread Max Zettlmeißl via Python-list
st other sequences. In a dictionary the relation between keys and values is the most important one and reading a dictionary certainly is easier if each key value pair has a line of it's own. (Especially if the keys and values vary a lot in their lengths.) [1] https://github.

Re: Fumbling with emacs + elpy + flake8

2018-09-13 Thread Brian Oney via Python-list
+lang/python/README.org Here's what I ask you to consider: pip install flake8 pip install --upgrade "jedi>=0.9.0" "json-rpc>=1.8.1" "service_factory>=0.1.5" if [ -d ~/.emacs.d ]; then \rm -rf ~/.emacs.d/; fi git clone https://github.com/syl20bnr/spacemac

Help on PyList 3.7.0

2018-09-13 Thread Jason Qian via Python-list
ady in the path ? So, If the path contains the newPath, I will not append the newpath. Thanks for help -- https://mail.python.org/mailman/listinfo/python-list

Re: how to convert this psuedo code to python

2018-09-14 Thread Max Zettlmeißl via Python-list
hile epsilon + 1 > 1: epsilon = epsilon / 2.0 epsilon = 2 * epsilon This will not work in Octave. But maybe it will help you in improving your understanding of the solution. -- https://mail.python.org/mailman/listinfo/python-list

Re: Help on PyList 3.7.0

2018-09-14 Thread Jason Qian via Python-list
Thanks a lot. On Thu, Sep 13, 2018 at 5:24 PM, MRAB wrote: > On 2018-09-13 21:50, Jason Qian via Python-list wrote: > >> Hey, >> >> Need some help on PyList. >> >> >> #get path >> PyObject *path = PyObject_GetAttrString(sys, &q

Re: help me in python plssss!!!!

2018-09-14 Thread Max Zettlmeißl via Python-list
on / 2.0 > > epsilon = 2 * epsilon > > help me! > This list is not here to solve every single step of what is (presumably) your homework for you. Everything you present right here is what I helped you with in "how to convert this psuedo code to python". You will have to at least try

Re: Python for System Verilog testbench

2018-09-14 Thread Dale Marvin via Python-list
is Gherkin syntax. Then I read about this Gherkin synatx. It also looks good specially for Verilog. Maybe the syntax I was following earlier is too complicated. Some more questions regarding this: - I read that there are other Python framweorks also for BDD like 'behave'. What do you sugg

how to get string printed by PyErr_Print( )

2018-09-17 Thread Jason Qian via Python-list
Hey, Someone has discussed this issue before. Other than redirect stderr, does the new version python 3.7.0 has other way to retrieve the string whichPyErr_Print( ) ? if (PyErr_Occurred()) PyErr_Print(); //need to retrieve the error to string Thanks -- https://mail.python.org/mailman

What is not working with my "map" usage?

2018-09-21 Thread Viet Nguyen via Python-list
ist)) i = 2 BEFORE total = 0 AFTER total = 2 FINAL total = 2 i = 09 BEFORE total = 0 AFTER total = 9 FINAL total = 9 i = 49 BEFORE total = 0 AFTER total = 49 FINAL total = 49 [2, 9, 49] Thanks, Viet -- https://mail.python.org/mailman/listinfo/python-list

Re: What is not working with my "map" usage?

2018-09-21 Thread Brian Oney via Python-list
mon term: https://en.wikipedia.org/wiki/Map_%28higher-order_function%29?wprov=sfla1 HTH On September 21, 2018 11:29:41 PM GMT+02:00, Viet Nguyen via Python-list wrote: >Hi, > >I want to add up all of the list elements. But when I use the "map" >function, it didn't seem to work

Re: 2 Bugs: in Python 3 tutorial, and in bugs.python.org tracker registration system

2018-09-22 Thread Brian Oney via Python-list
That's one thing that confused me. Generators are supposed to be one-off iterators. Iterators, *I understood* as reusable iterables. -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] master/slave debate in Python

2018-09-26 Thread Brian Oney via Python-list
> PS: I'm not a great fan of it, but I think we all know that off-topic is > in a way what this list excels at. +1 An open source community thrives on being open. It also welcomes those who like to pick a fight for various, usually personal reasons. Has any heard of that Python

Re: JPEGImage() hangs

2018-09-27 Thread Brian Oney via Python-list
Could you please try another tool like `convert'? E.g. $ convert 102_PANA/P1020466.JPG test.png What does that say? -- https://mail.python.org/mailman/listinfo/python-list

Re: So apparently I've been banned from this list

2018-09-30 Thread Max Zettlmeißl via Python-list
> instance for the purposes of transparency and openness. (I don't know if > this will show up on the mailing list or the newsgroup.) [...] > > Forwarded Message > Subject: Temporary Suspension > Date: Mon, 10 Sep 2018 07:09:04 -0700 > From: Ethan Furman

Re: How to change '\\' to '\'

2018-10-01 Thread Alister ware via Python-list
On Sun, 30 Sep 2018 17:45:52 -0700, Rick Johnson wrote: > Jach Fong wrote: >> I get a string item, for example path[0], from path = >> os.get_exec_path() >> It's something like "\\Borland\\Bcc55\\Include", a Python string. >> I want to use this "

ANN: distlib 0.2.8 released on PyPI

2018-10-02 Thread Vinay Sajip via Python-list
tinfo/python-list

Question about Multi-processing

2018-10-02 Thread Anthony Flury via Python-list
I decided to spend this morning to get my head around multi-processing, and decided to try to experiment initially in the command line interpreter, using the Python 3 documentation <https://docs.python.org/3/library/multiprocessing.html?highlight=process#multiprocessing.pool.Pool> I fi

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-02 Thread Max Zettlmeißl via Python-list
28729, > 36683, 37831, 46853, 50411, 53129, 55457, 57367, 60251, 67339, 70489, 74797, > 89669, 98909, 98911 > > EXAMPLE > > 7*5 - 3 - 1 = 31 > > 11*7 - 5 - 1 = 71 > > 11*7 - 5 + 1 = 73 > > 13*11 - 7 + 1 = 137 > > Can someone put this in a Python pro

Help please installing Python on Windows 10

2018-10-03 Thread Timothy Cowell via Python-list
Hi, Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the programs list from the windows start button, all

Re: Observations on the List - "Be More Kind"

2018-10-06 Thread Anthony Flury via Python-list
power trip - they are here to help, and they are volunteers. Part of the really important thing about Python is the community and this list is a critical part of that community.; lets keep it that way please :-) -- Anthony Flury *Email* : [email protected] <mailto:anthony

Encounter issues to install Python

2018-10-08 Thread Olivier Oussou via Python-list
Hi!I downloaded and installed python 3.6.4 (32-bit) on my computer but I have problems and can not access the python interface. I need your technical assistance to solve this matter.  Best regard! Olivier OUSSOUMedical entomologist, Benin -- https://mail.python.org/mailman/listinfo/python-list

Re: Encounter issues to install Python

2018-10-13 Thread Anthony Flury via Python-list
Olivier, Welcome to the list - before we can help you, we need some more information : * What Operating system are you using - Windows/Mac/Linux/Raspberry Pi/Android for something else ? * What command or installer did you use to try to install Python. * What issues did you have during

Re: ESR "Waning of Python" post

2018-10-16 Thread Brian Oney via Python-list
gabytes. > That's a pretty good stress test for any program, especially one with so much human interaction. -- https://mail.python.org/mailman/listinfo/python-list

email automation

2018-10-22 Thread Brian Oney via Python-list
Dear List, I would like to send out custom automated replies to email. In the future, I would like to be able to integrate nltk and fuzzy matching if necessary. After some basic research I have a few options: 1. Grapple with OpenEMM (interesting software, has python library, still alive

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Brian Oney via Python-list
x27;s too short. HTH On October 28, 2018 5:14:54 PM GMT+01:00, Tim Daneliuk wrote: >On 10/27/2018 08:17 AM, Musatov wrote: >> I am wondering if Python could be used to write a program that >allows: >> >> 1. Highlight some text >> 2. Ctl+HOTKEY1 stores the string o

Re: regular expression problem

2018-10-28 Thread Brian Oney via Python-list
On Sun, 2018-10-28 at 22:04 +0100, Karsten Hilbert wrote: > [^<:] Would a simple regex work? I mean: ~$ python Python 2.7.13 (default, Sep 26 2018, 18:42:22)  [GCC 6.3.0 20170516] on linux2 Type "help", "copyright", "credits" or "license&q

zenity substitution

2018-10-28 Thread listo factor via Python-list
Hi all, I'm new to Python, but not to programming. As a teaching exercise, I am converting a bunch of bash shell scripts to Python, so that they can be run on all three OS-es (Linux, Windows, MacOS). The scripts in questions make extensive use of Linux "zenity" dialogs. Is ther

[ANN] maildog, Re: email automation

2018-10-30 Thread Brian Oney via Python-list
s for me. If I have piqued your interest, have a look at https://github.com/oneyb/maildog/ Thank you for the tips. Kind regards Brian -- https://mail.python.org/mailman/listinfo/python-list

Simple, fast responsive, secure way of creating REST services

2016-03-29 Thread David Shi via Python-list
Hello, Justin, What you said is very interesting and useful. I just wonder whether there are much simpler alternatives for fast, responsive, secure REST services.  Python at server-side.  It provides REST services.  Data exchange with the web--page.  Formatted XML or Json. Ideally, it uses the

Re: Suggestion: make sequence and map interfaces more similar

2016-03-29 Thread Marco Sulla via Python-list
) method, like sequence types"? Since simply adding get(), items(), keys(), values() to existing sequence interface will likely break existing code, I would try also to write new sequence types, using a common interface with maps. This is my idea. -- https://mail.python.org/mailman/listinfo/python-list

IPython and Jupyter

2016-03-29 Thread David Shi via Python-list
I can switch between the twowhenever required. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Mark Lawrence via Python-list
On 29/03/2016 23:29, Marco Sulla via Python-list wrote: Let me add that an items() and keys() for sequences will be also useful for day-by-day programming, since they will be a shortcut for enumerate(seq) and range(len(seq)) I cannot remember the last time I needed range(len(seq)) so I don&#

Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
mum', variable=buttonVar, value=1) rb1.configure(style='BW.TRadiobutton') rb1.grid(row=0, column=0) rb2 = ttk.Radiobutton(text='Hello dad', variable=buttonVar, value=2) rb2.configure(style='BW.TRadiobutton') rb2.grid(row=1, column=0) root.mainloop() Sadly no border

Re: Instalação

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 14:13, Alan Evangelista wrote: Não consigo instalar o python no meu Windows,gostaria de alguma ajuda ou esclarecimento Natalia, you should use English in this mailing list. - download latest Python. Python has 2 different versions under development: Python 2 and Python 3. As

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 15:45, ast wrote: "Mark Lawrence" a écrit dans le message de news:[email protected]... I believe something like this should suffice to display borders around the radiobuttons. import tkinter as tk import tkinter.ttk as ttk root = tk.

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 15:55, ast wrote: "ast" a écrit dans le message de news:[email protected]... "Mark Lawrence" a écrit dans le message de news:[email protected]... I believe something like this should suffice to displa

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Marco Sulla via Python-list
ible", then he can do so. But to make all dicts and lists behave in > this "terrible" and "strange" way is a terrible idea. You did not understand well what I mean, my dear friend. I applied the word "terrible" to my code, not to the concept. You've demonstrated that a fair thinker, so do not fall in the temptation to play with words. -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Marco Sulla via Python-list
python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 20:35, Marco Sulla via Python-list wrote: On 30 March 2016 at 02:55, Terry Reedy wrote: To me [seq.items() and seq.keys()] are useless and confusing duplications since enumerate()(seq) and range(len(seq)) are quite different from dict.items and dict.keys. It's true. I

Re: Suggestion: make sequence and map interfaces more similar

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 21:00, Marco Sulla via Python-list wrote: Let me also add that even if it seems that my idea will not break any official contracts, I can create a new ABC class and let maps and sequence types inherit from it. IMHO it's absolutely not needed, but at least the discussion will

Re: Adding borders to ttk radiobuttons

2016-03-30 Thread Mark Lawrence via Python-list
On 30/03/2016 17:35, Terry Reedy wrote: .theme_names() only displays the themes for the OS. I believe that there is a way to access themes for other OSes (unix, mac) but don't remember. Possibly http://bugs.python.org/issue17397 which refers to http://code.activestate.com/lists/p

Re: Python Array

2016-03-30 Thread Mark Lawrence via Python-list
On 31/03/2016 06:34, [email protected] wrote: I am creating the following aData = [] This is a Python list, not an array as the subject gives. # get my data from database for row in rows: aData.append({row["tierid"]:"name":row["tiername"],"descri

Which plugin allows quick creation of secure REST services?

2016-03-31 Thread David Shi via Python-list
Hello,  Which plugin allows quick creation of secure REST services?  so that Python scripts can be attached to it. Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marco Sulla via Python-list
uences and maps, apart the fact they are all iterables. -- https://mail.python.org/mailman/listinfo/python-list

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 12:58, Marco Sulla via Python-list wrote: On 31 March 2016 at 04:40, Steven D'Aprano wrote: Enough of the hypothetical arguments about what one could do or might do. Let's see a concrete example of actual real world code used in production, not a mickey-mouse toy prog

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Marco Sulla via Python-list
uences, so it's much more natural to make map iteration over values by default, as for sequences. This is why I proposed a vdict. On 31 March 2016 at 14:30, Mark Lawrence via Python-list wrote: > Note that dict also supports > __getitem__() and __len__(), but is considered a mapping ra

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 13:49, Marco Sulla via Python-list wrote: On 31 March 2016 at 14:30, Mark Lawrence via Python-list wrote: Note that dict also supports __getitem__() and __len__(), but is considered a mapping rather than a sequence because the lookups use arbitrary immutable keys rather than

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
(and bogoexamples that prove nothing beyond that the author knows how to mess with Python - fun, but not a strong argument on either side). Give us some real meat to work with, instead of these drips of tantalizing blood. What a strange request. Whether or not something is worth discussing is a per

Re: Suggestion: make sequence and map interfaces more similar

2016-03-31 Thread Mark Lawrence via Python-list
On 31/03/2016 14:27, Random832 wrote: On Thu, Mar 31, 2016, at 09:17, Mark Lawrence via Python-list wrote: On 31/03/2016 14:08, Antoon Pardon wrote: Op 31-03-16 om 13:57 schreef Chris Angelico: Okay. I'll put a slightly different position: Prove that your proposal is worth discussi

Re: Suggestion: make sequence and map interfaces more similar

2016-04-01 Thread Mark Lawrence via Python-list
On 01/04/2016 08:59, Antoon Pardon wrote: Op 31-03-16 om 16:12 schreef Mark Lawrence via Python-list: On 31/03/2016 14:27, Random832 wrote: So can we discuss how a unified method to get a set of all valid subscripts (and/or subscript-value pairs) on an object would be a useful thing to have

Re: The next major Python version will be Python 8

2016-04-01 Thread Gisle Vanem via Python-list
n-ubuntu-on-windows-10/ they say Python inside Ubuntu-in-Windows works! Ref. time 03:03. -- --gv -- https://mail.python.org/mailman/listinfo/python-list

Re: Drowning in a teacup?

2016-04-01 Thread Mark Lawrence via Python-list
. I would suggest that you search the archives, but that would upset teacher, so I won't. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: [beginner] What's wrong?

2016-04-01 Thread Mark Lawrence via Python-list
On 01/04/2016 23:10, Michael Okuntsov wrote: Nevermind. for j in range(1,8) should be for j in range(8). Thank you for your correction, we in Python land greatly appreciate such things :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our

Re: Strange range

2016-04-01 Thread Mark Lawrence via Python-list
ed to have Bots here commenting on the Python language. Obviously they've all given up as so much drivel is spouted, and/or they've gone to join the Norwegian Blue. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawren

Re: [beginner] What's wrong?

2016-04-01 Thread Mark Lawrence via Python-list
en I'm left figuring out why my loop isn't executing the last step. "First instinct"? "I expected"? The Python docs might not be perfect, but they were certainly adequate enough to get me going 15 years ago, and since then they've improved. So where is t

Re: Drowning in a teacup?

2016-04-02 Thread Mark Lawrence via Python-list
x'] >>> l.sort(key=lambda e: not e.startswith('yes')) >>> l ['yes_c', 'yes_z', 'yes_x', 'no_a', 'no_b', 'no_y'] If the number of matches is small relative to the size of the list, I'd

tkinter Entry validation modes

2016-04-02 Thread Mark Lawrence via Python-list
rk, as I'm just venturing into the tkinter world. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: [beginner] What's wrong?

2016-04-02 Thread Mark Lawrence via Python-list
n have to support an entire industry of workers to transcribe the old clay tablets...) Here we go again, yet another completely useless thread that is irrelevant to the Python programming language. Hardly surprising that the bots don't bother any more. Are any of the bots still alive?

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
On 02/04/2016 23:23, Loop.IO wrote: On Saturday, April 2, 2016 at 11:09:13 PM UTC+1, BartC wrote: On 02/04/2016 22:59, Loop.IO wrote: Hey So I built a keylogger using python as a test, got the code from the tutorial online, I want to improve on it to make it more automated, but the issue I&#

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
On 02/04/2016 23:37, Michael Selik wrote: I might be overlooking something, but raw_input (Python 2) and input (Python 3) won't return the input from sys.stdin until you type ENTER. Or did I misunderstand the question? On Sat, Apr 2, 2016 at 6:30 PM BartC wrote: On 02/04/2016 23:16

Re: [beginner] What's wrong?

2016-04-02 Thread Mark Lawrence via Python-list
uad, let alone the starting lineup. Of course this is completely irrelevant on the Python programming main mailing list, but it appears that any old crap is acceptable in the year 2016. A Bot, a Bot, any kingdom for a Bot. -- My fellow Pythonistas, ask not what our language can do for you, ask wha

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-02 Thread Mark Lawrence via Python-list
h is the most efficient, I'll leave that to others to test. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: [beginner] What's wrong?

2016-04-02 Thread Mark Lawrence via Python-list
hat would happen to the poor little darlings if they had to spend the entire match on the pitch? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

ONE CLICK REST API

2016-04-03 Thread David Shi via Python-list
Eclipse has got one click app for creating REST services. What is it equivalent in Python? Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange range

2016-04-04 Thread Mark Lawrence via Python-list
ch?cq=range would appear to be as good a starting point as any. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: [beginner] What's wrong?

2016-04-04 Thread Mark Lawrence via Python-list
On 02/04/2016 23:49, Michael Torrie wrote: Mark, your messages are showing up to the list as being from "python," at least on my email. Any reason for this? Assuming that you're referring to me, frankly I haven't a clue. I read this list with Thunderbird on Windo

How can I install

2016-04-04 Thread Mohamed Ali via Python-list
I have tried to install python and nltk but I couldn't. Please could you please help me because I need to work on natural language processing using Python. Regards,Mohamed -- https://mail.python.org/mailman/listinfo/python-list

Re: Best Practices for Internal Package Structure

2016-04-04 Thread Mark Lawrence via Python-list
tas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: IDLE's subprocess didn't make connection. Either IDLE can't start or personal firewall software is blocking connection.

2016-04-04 Thread Mark Lawrence via Python-list
for the answer. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: ONE CLICK REST API

2016-04-05 Thread Roland Mueller via Python-list
for yourself: - http://blog.miguelgrinberg.com/post/designing-a-restful-api-with-python-and-flask BR, Roland 2016-04-04 9:09 GMT+03:00 David Shi via Python-list : > Eclipse has got one click app for creating REST services. > What is it equivalent in Python? > Regards. > David

Re: Label behavior's difference between tkinter and ttk

2016-04-05 Thread Mark Lawrence via Python-list
eground='lime') img.config(foreground='yellow') It looks like a ttk bug, isn't it ? I am using python 3.5.1 I tried a root.update_idletasks() to refresh the graphic but it changed nothings. I'm no tkinter expert, but I do know that there is a huge difference betwe

Re: tkinter Entry validation modes

2016-04-05 Thread Mark Lawrence via Python-list
On 02/04/2016 19:45, Terry Reedy wrote: On 4/2/2016 11:11 AM, Mark Lawrence via Python-list wrote: A typical call to create an Entry field would be:- e = Entry(master, validate='all', ...) Once this call has been made is it possible to change the validation mode at runtime? AF

Re: python script for .dat file

2016-04-05 Thread Mark Lawrence via Python-list
On 05/04/2016 16:23, Muhammad Ali wrote: Hello, Could any body tell me a general python script to generate .dat file after the extraction of data from more than 2 files, say file A and file B? Or could any body tell me the python commands to generate .dat file after the extraction of data

Re: Install request

2016-04-05 Thread Mark Lawrence via Python-list
On 05/04/2016 16:56, Igor Korot wrote: Hi, python community, Recently there was a huge number of e-mail stating that the python installer does not work. When asked about it, people reveal that they wee using Windows and they were getting errors about missing DLL. I know for a fact that in

Re: Best Practices for Internal Package Structure

2016-04-05 Thread Mark Lawrence via Python-list
n.org/mailman/listinfo/python-list

<    37   38   39   40   41   42   43   44   45   46   >