Nested structures question

2011-01-12 Thread Physics Python
Hello, I am teaching myself python using the book: Python Programming for Absolute Beginners, 2nd edition by Michael Dawson. I am using python 2.7.1. In chapter 3 we are learning to use structures (while, if, elif) to write a program that has the user guess a number between 1 and 100. Here is

Re: Nested structures question

2011-01-12 Thread Physics Python
"Wow you suck! It should only take at most 7 tries!" break raw_input ("\n\nPress the enter key to exit.") --- end --- But the book states that this can be done without needing to use breaks. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Python Tkinter Linux Repair Question/ Python TCP Socket Example

2010-06-15 Thread My Python
I got to target my little GUI app that uses TCP sockets in Python 2.4.4 for Windows and Linux. Question 1 = Given the above, I installed 2.4.4 on Windows 7 and Tkinter import works like a charm. (the install is good) The Linux (Red Hat 4.1.2-46) though has python preinstalled with ver

Re: Python Tkinter Linux Repair Question/ Python TCP Socket Example

2010-06-16 Thread My Python
concepts that are explained visually with diagrams. TIA -- http://mail.python.org/mailman/listinfo/python-list

Python 2.4.4 Tkinter GUI Example for Modeless Dialog with Menu, Edit, List, Buttons, File Save etc.

2010-06-16 Thread My Python
(this one is easy, but I want the file save as python code to save a text file :) Please, those samples packed with install are *** bare and cheesy *** , it is inadequate. Can someone share a cool app code that implements a Modeless dialog. TIA!! -- http://mail.python.org/mailman/listinfo/python

Re: Help on finding word is valid as per English Dictionary through python

2010-06-25 Thread anu python
gful words as per English Dictionary. Do you have any package which can check "English Dictionary" Please help me. Thanks, Anu -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-list Digest, Vol 81, Issue 266

2010-06-26 Thread anu python
Thanks for your reply to Shashwat Anand & thomas.sub( Help on finding word is valid as per English Dictionary through python ) Let me try. On Fri, Jun 25, 2010 at 8:57 PM, wrote: > Send Python-list mailing list submissions to >python-list@python.org > > To subscrib

Newbie question about method options

2009-06-16 Thread python-newbie113
I am new to python and have a question about using methods. Here is the link i am looking at: http://www.pythonware.com/library/tkinter/introduction/x2102-methods.htm If i use, create_arc(bbox, options) => id what is id? and how do i find the parameter list representing options? Thanks for h

Python(x,y) - Free Python distribution for Scientists

2008-04-10 Thread Python(x,y) - Python for Scientists
Dear all, The scientists among you may be interested in Python(x,y), a new scientific-oriented Python distribution. This Python/Eclipse distribution is freely available as a one-click Windows installer (a release for GNU/Linux with similar features will follow soon): http://www.pythonxy.com

Re: code review

2012-07-03 Thread kushal . kumaran+python
ess >what? Your system has to hash that GB of data before it can reject >it. And if you're serious about security then it will be a >cryptographic hash, and that means slow. > Well, if you waited until you had the password (however long) in a variable before you applied your maximum limits, the DoS ship has probably sailed already. >To prevent that, the system needs to reject outright password attempts >that are longer than some predetermined reasonable length, and if the >system won't authenticate those passwords, then it can't allow the >user to set them either. > >Cheers, >Ian -- regards, kushal -- http://mail.python.org/mailman/listinfo/python-list

Re: New to python, do I need an IDE or is vim still good enough?

2012-12-28 Thread python培训
too much ide for python PyCharm PyDev(Eclipse) Pyscripter Sublime Text TextMate UliPad Vim for beginner best choiceidle -- http://mail.python.org/mailman/listinfo/python-list

Re: how to detect the character encoding in a web page ?

2012-12-28 Thread python培训
chardet.detect(html_1) #print mychar bianma=mychar['encoding'] if bianma == 'utf-8' or bianma == 'UTF-8': #html=html.decode('utf-8','ignore').encode('utf-8') html=html_1 else : html =html_1.decode('gb2312','ignore').encode('utf-8') -- http://mail.python.org/mailman/listinfo/python-list

Running Python Demo on the Web?

2011-09-05 Thread Python Fiddle Admin
Python has been ported to the web browser at pythonfiddle.com. Python Fiddle can import snippets of code that you are reading on a web page and run them in the browser. It supports a few popular libraries. Another common usage is to post code on the site to allow other people to play around with

¡¡¡uoɥʇʎꓒ uᴉ ʇxǝʇ uʍoꓷ ǝpᴉsdꓵ ǝʇɐǝɹↃ oʇ ʍoΗ

2021-09-18 Thread Python 4 Fun
How to Create Upside Down text in Python!!! This is a very simple yet very interesting program in python. We are going to make our text, word or string UPSIDE DOWN which will be still readable on phone or desktop if you stand on your head lol. But any ways... lets do a little research first

Generate Popular Tags for instagram or facebook

2021-09-20 Thread Python 4 Fun
Before we proceed let me make it clear we are not scraping tags from any website. We will "Generate" them using simple code in python. So, How does it work? First, I have collected all popular tags and saved it in a text file as list. [Read More] https://pysnakeblog.blogspot.c

Get a Joke in Python

2021-10-27 Thread Python 4 Fun
Get a Joke in Python. Pyjokes - is a python library / module for one line joke program based on programmers. You can get funny one-liner random jokes at every run also available in following " languages " & " categories ". Supported Languages By Pyjokes English — ‘en

i have to create this patch in python but wasnt having any luck i was wondering if anyone had a solution?

2014-12-01 Thread python help required
ine("white") rectangleHorizontal.draw(win) rectangleHorizontal = Rectangle(Point(61,91), Point(91,100)) rectangleHorizontal.setFill("white") rectangleHorizontal.setOutline("white") rectangleHorizontal.draw(win) #Outlined Red circles fillCircle = Circle(Point(20,20)+100/amountOfCircles) fillCircle.draw(win) fillCircle.setOutline("red") it is supposed to create this design>>> http://i.stack.imgur.com/2dfGi.jpg -- https://mail.python.org/mailman/listinfo/python-list

Forward of moderated message

2015-01-04 Thread python-ro-bounces
--- Begin Message --- *Help with finding tutors for Python, Linux, R, Perl, Octave, MATLAB and/or Cytoscape for yeast microarray analysis, next generation sequencing and constructing gene interaction networks* Hi I am a visually impaired bioinformatics graduate student using microarray data

Newb Tkinter Question: Object has no attribute 'tk'

2006-06-30 Thread python programming newb
Hi all, first post. I'm new to python and tkinter. I'm trying to write a program that opens the root window with a button that then opens a toplevel window that then has it's own widgets. I can get the new toplevel window to open but none of the widgets appear. The c

Re: Logging hangs thread after detaching a StreamHandler's terminal

2006-02-13 Thread python-list . overbored
sr/bin/env bash > scp hup.* localhost: > ssh localhost './hup.bash ; while true ; do sleep 1 ; done' > > $ cat hup.bash > #!/usr/bin/env bash > ./hup.py & > > $ cat hup.py > #!/usr/bin/env python > import time > import logging > f = f

Logging hangs thread after detaching a StreamHandler's terminal

2006-02-13 Thread python-list . overbored
case I came up with - maybe there's something simpler): $ cat tryhup.bash #!/usr/bin/env bash scp hup.* localhost: ssh localhost './hup.bash ; while true ; do sleep 1 ; done' $ cat hup.bash #!/usr/bin/env bash ./hup.py & $ cat hup.py #!/usr/bin/env python import time import

Auto-response for your message to the "marketing-python" mailing list

2007-07-06 Thread marketing-python-bounces
This mailing list has been retired. Please use the new Python Advocacy mailing list instead: http://mail.python.org/mailman/listinfo/advocacy Thanks! -- http://mail.python.org/mailman/listinfo/python-list

elegant python style for loops

2007-05-09 Thread ian . team . python
To step through a list, the python style is avoid an explicit index. But what if the same hidden index is to be used for more than one list for example:- for key,value in listKeys,listValues : newdict[key]=value won't work as it is a tuple of lists, as opposed to a list of tuples. Is

Re: elegant python style for loops

2007-05-10 Thread ian . team . python
thank you everybodyvery well answered.just one question remains where do i find documentation on zip ...i was looking for a function like this, but could not even find a relevant list of functions!! -- http://mail.python.org/mailman/listinfo/python-list

Re: elegant python style for loops

2007-05-10 Thread ian . team . python
was answered. again, thanks -- http://mail.python.org/mailman/listinfo/python-list

how to use WSGI applications with apache

2009-10-07 Thread travis+ml-python
ed. pgpJzDE6lo3nC.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Propietary binary serial port protocols

2010-04-26 Thread jon vs. python
e I took a look to scapy's source code and didn't see any of those... Thanks, Jon. -- http://mail.python.org/mailman/listinfo/python-list

Re: pysms

2010-05-06 Thread jon vs. python
6, 2010 at 9:40 AM, luca72 wrote: > Hello > Has anyone used pysms can you tell me with wich gsm module it works? > > Thanks > > Luca > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python a functional programming language?

2010-05-15 Thread travis+ml-python
On Mon, May 10, 2010 at 08:45:51PM +0100, Nobody wrote: > On Tue, 11 May 2010 00:24:22 +1200, Samuel Williams wrote: > > Is Python a functional programming language? > Not in any meaningful sense of the term. LOL > > I heard that lambdas were limited to a single expressi

Pyserial and pysqlite data types, need advice

2010-05-17 Thread jon vs. python
ut hides content and thus doesn't allow to use database operations directly on the data) I've also tried, unsuccessfully, to use bytearrays with pysqlite... Any suggestion? Thanks, Jon. -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial and pysqlite data types, need advice

2010-05-18 Thread jon vs. python
The best thing I've found is this: http://eli.thegreenplace.net/2009/05/29/storing-blobs-in-a-sqlite-db-with-pythonpysqlite/ On Mon, May 17, 2010 at 5:05 PM, jon vs. python wrote: > Hi, > I'm trying to store frames received via serial port (using Pyserial) into a > sql

pythonic web markup languages & templating systems & site generators

2010-06-05 Thread travis+ml-python
inquiry (still ongoing) are here: http://www.subspacefield.org/~travis/static_blog_generators.html It's a little disorganized, but does represent a fair amount of work, and might be a nice intro for a python programmer who isn't up to his neck in web authoring tools. Suggestions on how t

Re: Function/method returning list of chars in string?

2009-06-09 Thread jon vs. python
mailman/listinfo/python-list

proposal: add setresuid() system call to python

2009-07-17 Thread travis+ml-python
Hello, Historically, I have used scripting languages like python for typical uses, but they tend to not fare very well at system programming; for close interfacing with the operating system, I'm often forced to use a language like C. This is undesirable to me. I do not think this has to b

Re: proposal: add setresuid() system call to python

2009-08-21 Thread travis+ml-python
(suid)) > > def setresuid(ruid, euid, suid): > res = _setresuid(__uid_t(ruid), __uid_t(euid), __uid_t(suid)) > if res < 0: > raise OSError('[Errno %d] %s' % (os.errno, errno.strerror(os.errno))) I am working on a module to implement all of this, but that

Re: proposal: add setresuid() system call to python

2009-08-25 Thread travis+ml-python
ted the module here: http://www.subspacefield.org/~travis/python/privilege/ I could sure use any comments people had on my python style. PyPi link: http://pypi.python.org/pypi/privilege/1.0 -- Obama Nation | My emails do not have attachments; it's a digital signature that your mail pr

run-time inclusion of files

2009-09-05 Thread travis+ml-python
oblems: 1) being able to import a file that isn't in the standard module include path 2) being able to import a file whose name is specified in a python string 3) being able to reload the file if it changes on disk I'm pretty sure that the Pylons web framework does all this, and I'

In Python 2.x, is it possible to make unicode as default like in Python 3.x?

2011-06-08 Thread G00gle and Python Lover
Hello. I almost like everything in Python. Code shrinking, logic of processes, libraries, code design etc. But, we... - everybody knows that Python 2.x has lack of unicode support. In Python 3.x, this has been fixed :) And I like 3.x more than 2.x But, still major applications haven't been p

RE: unzip problem

2011-06-24 Thread steve+comp . lang . python
rror. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Significant figures calculation

2011-06-24 Thread steve+comp . lang . python
mes you may need to inspect the exponent as well: >>> zero = decimal.Decimal('0.') >>> zero._int '0' >>> zero._exp -8 -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: what's the big deal for print()

2011-06-24 Thread steve+comp . lang . python
John Gordon wrote: > In > pipehappy writes: > >> Why people want print() instead of print str? That's not a big deal >> and the old choice is more natural. Anyone has some clue? > > Because the new Python uses print(). print "str" is the old

Re: those darn exceptions

2011-06-25 Thread steve+comp . lang . python
ate information. They'll still be in as ignorant a position re exceptions as they are now, only they won't know it. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 3 syntax error question

2011-06-26 Thread steve+comp . lang . python
rzed wrote: > I've tried to install PySVG in a Python 3 setting, and I get a few > errors on the build. Most are easy to fix, but this one I can't > explain or fix: > > > Traceback (most recent call last): > File "", line 1, in > File "

Re: using an instance of Object as an empty class

2011-06-29 Thread steve+comp . lang . python
> which is quite a bit more cumbersome. Or I used a tuple and hoped to get > the position of the elements correct. Often, the right solution for that is to use collections.namedtuple: >>> from collections import namedtuple as nt >>> struct = nt('struct', 'x y

Safely modify a file in place -- am I doing it right?

2011-06-29 Thread steve+comp . lang . python
I have a script running under Python 2.5 that needs to modify files in place. I want to do this with some level of assurance that I won't lose data. E.g. this is not safe: def unsafe_modify(filename): fp = open(filename, 'r') data = modify(fp.read()) fp.close() fp

Using __init__.py

2017-09-06 Thread Kryptxy via Python-list
ed to know that can I use __init__.py file for adding a project directory to sys.path (sys.path.insert(0, directory))? -- https://mail.python.org/mailman/listinfo/python-list

non-standard glibc location

2017-09-06 Thread Fetchinson . via Python-list
on2.7 from source (hopefully using my custom glibc) and installed pip and everything else using this custom built python. But still when I try to import tensorflow I get: ImportError: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by /home/nogradi/fetch/custom/lib/python2.7/sit

Re: non-standard glibc location

2017-09-07 Thread Fetchinson . via Python-list
On 9/7/17, Thomas Jollans wrote: > On 2017-09-06 16:14, Fetchinson . via Python-list wrote: >> Hi folks, >> >> I'm trying to install a binary package (tensorflow) which contains >> some binary C extensions. Now my system glibc is 2.15 but the binaries >

Torrench - Torrent search made simple

2017-09-10 Thread Kryptxy via Python-list
Torrench: Command-line torrent search program (cross-platform). Torrent search made quick and simple. GitHub: https://github.com/kryptxy/torrench Suggestions/feedbacks are highly appreciated. -- https://mail.python.org/mailman/listinfo/python-list

ttk.Notebook Tabs Question

2017-09-11 Thread Wildman via Python-list
https://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] beginning to code

2017-09-12 Thread alister via Python-list
On Tue, 12 Sep 2017 08:03:58 -0700, Rick Johnson wrote: > Chris Angelico wrote: >> Rick Johnson wrote: >> > Ruby: >> > farray = [1.5, 1.9, 2.0, 1.0] >> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length >> > >> > Python: >>

Re: Brainstorming on recursive class definitions

2017-09-12 Thread moogyd--- via Python-list
on, which defines some common terms (IIRC register, address map, address space etc). Having a consistent definition here will definitely help moving forward Although it may seem OTT at the moment, it is something you should consider at the outset. e.g. A single GPIO register may occur at two different addresses, depending on the bus master (CPU Core, Debugger, External SPI access). Steven -- https://mail.python.org/mailman/listinfo/python-list

Re: Python dress

2017-09-13 Thread alister via Python-list
our statement could have said when prince charles OR the duke of edinburgh... -- Madness takes its toll. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python dress

2017-09-13 Thread alister via Python-list
their own part in the death of Diana by blaming the royals). -- Mystics always hope that science will some day overtake them. -- Booth Tarkington -- https://mail.python.org/mailman/listinfo/python-list

Change project licence?

2017-09-14 Thread Kryptxy via Python-list
Hi, I have an opensource (python) project under GPL3 licence. I wish switch to MIT licence so as to make it more permissive. I know how to change the licence, but I want to know is it fine and wise to change the licence at this point? (The project already has 19 clones, 250+ GitHub stars. Here

Re: ttk.Notebook Tabs Question

2017-09-15 Thread Wildman via Python-list
eed your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: ttk.Notebook Tabs Question

2017-09-15 Thread Wildman via Python-list
On Fri, 15 Sep 2017 20:45:20 +0100, MRAB wrote: > On 2017-09-15 16:24, Wildman via Python-list wrote: >> On Fri, 15 Sep 2017 06:09:21 +0400, Abdur-Rahmaan Janhangeer wrote: >> >>> try >>> widget["width"] it returns string >>> then mult by no.

Re: Test Bank for Governing Texas, 3rd Edition by Champagne Harpham

2017-09-17 Thread alister via Python-list
or "sexual intercourse" or "fornication." Hence: Tierra de California, "the land of hot sex." -- Ed Moran -- https://mail.python.org/mailman/listinfo/python-list

Re: ttk.Notebook Tabs Question

2017-09-17 Thread Wildman via Python-list
On Sun, 17 Sep 2017 08:45:27 +0400, Abdur-Rahmaan Janhangeer wrote: > by widget["width"] i meant replace widget with your widget Yes, that is what I did. It returned 0. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-20 Thread alister via Python-list
On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote: > On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben < > stephan...@gmail.com.invalid> wrote: > >> Op 2017-09-19, Steven D'Aprano schreef > pearwood.info>: >> >> > There is a significant chunk

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-20 Thread alister via Python-list
On Wed, 20 Sep 2017 14:14:24 +0100, Paul Moore wrote: > On 20 September 2017 at 13:58, alister via Python-list > wrote: >> On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote: >> >>> On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben < >>> stephan...@gmail.com

Re: Assertions

2017-09-22 Thread alister via Python-list
t`, > or the exception be changed to ValueError, whichever better expresses > the intention of the code. In a code review I would want the condition changed to be less noisy/ confusing to the reader. if thing <=0: whatever -- The best thing about growing older is that it takes such a long time. -- https://mail.python.org/mailman/listinfo/python-list

Re: Assertions

2017-09-22 Thread alister via Python-list
to the reader. >> >> if thing <=0: whatever > > Fair point, assuming they are the same. > > Actually, even for floats they're not the same. > > py> not (NAN > 0) > True py> NAN <= 0 False I bet those are conditions the original author did n

Re: Change project licence?

2017-09-23 Thread Kryptxy via Python-list
ticket was opened. Sent with [ProtonMail](https://protonmail.com) Secure Email. > Original Message > Subject: Re: Change project licence? > Local Time: 15 September 2017 5:54 AM > UTC Time: 15 September 2017 00:24 > From: ros...@gmail.com > To: python-list@pyth

Re: Change project licence?

2017-09-23 Thread Kryptxy via Python-list
r when you take the honorable path. > > Remembering that that, of course, is Plan B; plan A is to keep trying > to contact that last contributor.. S/he hasn't refused, so there's > still every possibility of getting that last okay. > > ChrisA > -- > https://mail.p

Running a GUI program haults the calling program (linux)

2017-09-25 Thread Kryptxy via Python-list
I want to run a GUI program (transmission-gtk) from python. This is what I do: import subprocess subprocess.Popen(['transmission-gtk', link], stdout=subprocess.PIPE, stderr=subprocess.PIPE) Where `link` is some magnetic link. This command opens transmission-gtk, but it haults t

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
Sent with [ProtonMail](https://protonmail.com) Secure Email. > Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 6:20 AM > UTC Time: 26 September 2017 00:50 > From: ros...@gmail.com > To: p

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
Sent with [ProtonMail](https://protonmail.com) Secure Email. > Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 12:09 PM > UTC Time: 26 September 2017 06:39 > From: c...@cskk.id.au > To:

Re: Running a GUI program haults the calling program (linux)

2017-09-26 Thread Kryptxy via Python-list
> Original Message > Subject: Re: Running a GUI program haults the calling program (linux) > Local Time: 26 September 2017 1:26 PM > UTC Time: 26 September 2017 07:56 > From: __pete...@web.de > To: python-list@python.org > > Kryptxy via Python-li

Re: Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]

2017-09-26 Thread alister via Python-list
;ve been asked nicely by the list mod to stop :) > > Perhaps we could agree on a subject line tag to be used in all threas > arguing about what to call the Python argument passing scheme? That way > the other 99% of us could pre-emptively plonk it? so you are suggesting a system whe

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread alister via Python-list
programmer? What is 'know" and what should be "known"? Specifically >> with Python. >> >> > Hopefully NOT like this person... > (Source: http://rinkworks.com/stupid/cs_misc.shtml There is no direct > link to this item, it's about 2/3 the way dow

Re: Spam

2017-10-03 Thread alister via Python-list
m filters -- Come live with me, and be my love, And we will some new pleasures prove Of golden sands, and crystal brooks, With silken lines, and silver hooks. -- John Donne -- https://mail.python.org/mailman/listinfo/python-list

Need some help with argparse

2017-10-03 Thread Kryptxy via Python-list
Now I want to get arguments of group1 and group2 separately. If I print(args) - I get arguments from both the groups. Also group1.parse_args() does not work (since ArgumentGroup does not have parse_args() method) How can I get all arguments of group 1 ONLY? Same goes for group 2? I tried subparsers too - but they require a mandatory `positional argument` - which is not application's requirement. Any kind of help is appreciated. Thank you! -- https://mail.python.org/mailman/listinfo/python-list

Re: The "loop and a half"

2017-10-04 Thread alister via Python-list
f > the world's vowels. but that is compensated for by the welsh which don't seem to use any -- Never trust an operating system. -- https://mail.python.org/mailman/listinfo/python-list

why does memory consumption keep growing?

2017-10-05 Thread Fetchinson . via Python-list
make the memory consumption go up. Any hint would be much appreciated, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: why does memory consumption keep growing?

2017-10-05 Thread Fetchinson . via Python-list
On 10/5/17, Chris Angelico wrote: > On Fri, Oct 6, 2017 at 8:06 AM, Fetchinson . via Python-list > wrote: >> Hi folks, >> >> I have a rather simple program which cycles through a bunch of files, >> does some operation on them, and then quits. There are 500 files

Re: stop/start windows services -python command

2017-10-06 Thread alister via Python-list
mand to stop and start windows services ? i >> >> can't install win32serviceutil bec am using latest python version. >> > >> > Please advice on this >> > >> Ask Google: windows services start stop command line > > asking for python. if yo

Re: The "loop and a half"

2017-10-09 Thread alister via Python-list
e machine & run the editor there (using X forwarding to route the display to you local PC) -- The more you sweat in peace, the less you bleed in war. -- https://mail.python.org/mailman/listinfo/python-list

Re: The "loop and a half"

2017-10-09 Thread alister via Python-list
On Mon, 09 Oct 2017 17:27:27 +0300, Marko Rauhamaa wrote: > Grant Edwards : > >> On 2017-10-09, alister via Python-list wrote: >> >>> or if you want the luxury of a GUI editor simply ssh to the remote >>> machine & run the editor there (using X forwardi

Re: Lies in education [was Re: The "loop and a half"]

2017-10-13 Thread alister via Python-list
most manufacturers no incorporate a way to update the firmware of a device (usually with flash memory) -- "I am not sure what this is, but an `F' would only dignify it." -- English Professor -- https://mail.python.org/mailman/listinfo/python-list

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread alister via Python-list
On Sat, 14 Oct 2017 11:41:08 +0200, Peter J. Holzer wrote: > On 2017-10-13 21:42, Ben Bacarisse wrote: >> That's one way to put it. Another is that to use Python I need to buy >> a new service that is already configured. > > That's exactly the same for PHP. Y

Re: how to read in the newsreader

2017-10-16 Thread alister via Python-list
d/or > senders to ignore. I have (I think) just three or four rules that > eliminate just about all the junk. Although that is the case I ma finding that because of the amount of junk in this newsgroup I am rapidly running out of space in /dev/null ! -- In Oz, never say "krizzle kroo" to a Woozy. -- https://mail.python.org/mailman/listinfo/python-list

Problem with StreamReaderWriter on 3.6.3?

2017-10-19 Thread Peter via Python-list
I came across this code in Google cpplint.py, a Python script for linting C++ code. I was getting funny results with Python 3.6.3, but it worked fine under 2.7.13 I've tracked the problem to an issue with StreamReaderWriter; the traceback and error never shows under 3. The _cause_ o

Re: Re: Problem with StreamReaderWriter on 3.6.3? SOLVED

2017-10-20 Thread Peter via Python-list
with the buffering and therefore the order of the output of stderr vs stdout. Thanks again. Peter On 20/10/2017 10:19 AM, MRAB wrote: On 2017-10-19 22:46, Peter via Python-list wrote: I came across this code in Google cpplint.py, a Python script for linting C++ code. I was getting funny resu

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
oving redundant space from an inefficient coding Can you compress that sequence on paper when you only have the values 0-9 to work with (forget computer representation & removing un-used bits) -- Old age and treachery will overcome youth and skill. -- https://mail.python.org/mailman/listinfo/python-list

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
On Mon, 23 Oct 2017 13:40:59 +, Neil Cerutti wrote: > On 2017-10-23, Chris Angelico wrote: >> On Mon, Oct 23, 2017 at 11:18 PM, alister via Python-list >> wrote: >>> On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: >>> >>>> On 23 October 20

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
here. Nobody is saying not to criticize: it is how it is done that is the problem. But of course that is nowhere near as much fun, is it? -- https://mail.python.org/mailman/listinfo/python-list

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
rs aren't setting a duel standard where favored regular "alpha male" posters can be as rude as they want but the Code of Conduct is dragged out to whack non-alphas when they respond the same way. [*] https://mail.python.org/pipermail/python-list/2017-October/727190.html -- https://mail.python.org/mailman/listinfo/python-list

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 09:33 AM, Chris Angelico wrote: > On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list > wrote: >> On 11/08/2017 11:29 AM, Chris Angelico wrote: >>> [...] >>> Please, Jon, accept that we were not deliberately trying >>> to put you dow

Re: Ideas about how software should behave

2017-11-09 Thread Rurpy via Python-list
On 11/09/2017 10:51 AM, Rhodri James wrote: > On 09/11/17 17:41, Michael Torrie wrote: >> On 11/09/2017 09:33 AM, Chris Angelico wrote: >>> On Fri, Nov 10, 2017 at 2:14 AM, Rurpy via Python-list >>> wrote: >>>> On 11/08/2017 11:29 AM, Chris Angelico wrote:

Re: for/ if against dict - one liner

2017-11-14 Thread alister via Python-list
ke things easier or harder to read/understand? "Readability counts" -- (Presuming for the sake of argument that it's even *possible* to design better code in Perl than in C. :-) -- Larry Wall on core code vs. module code design -- https://mail.python.org/mailman/listinfo/python-list

Re: How to Generate dynamic HTML Report using Python

2017-11-19 Thread Kryptxy via Python-list
code here: https://github.com/kryptxy/torrench/blob/master/torrench/modules/tpb_details.py Hope this helps. Original Message On 20 Nov 2017, 6:46 AM, mradul dhakad wrote: > Hi All , > > I am new to python . I am trying to generate Dynamic HTML report using > Pyh

Re: Pros and cons of Python sources?

2017-11-25 Thread alister via Python-list
On Sat, 25 Nov 2017 09:20:44 +, Martin Schöön wrote: > Some time ago I was advised that having a Python installation based on > several sources (pip and Debian's repos in my case) is not a good idea. > I need to tidy up my installation and I don't know what to opt for an

Re: connect four (game)

2017-11-26 Thread alister via Python-list
after the def statement that way is becomes a "Doc String" & can be accessed using the help function you may also want to check out the recommended way of structuring a doc string, it could help you with your difficulty in writing them (a problem shared by many) -- This door is baroquen, please wiggle Handel. (If I wiggle Handel, will it wiggle Bach?) -- Found on a door in the MSU music building -- https://mail.python.org/mailman/listinfo/python-list

Re: connect four (game)

2017-11-26 Thread nospam.alister via Python-list
ef statement that way is becomes a "Doc String" & can be accessed using the help function you may also want to check out the recommended way of structuring a doc string, it could help you with your difficulty in writing them (a problem shared by many) -- This door is baroquen, please wiggle Handel. (If I wiggle Handel, will it wiggle Bach?) -- Found on a door in the MSU music building -- https://mail.python.org/mailman/listinfo/python-list

Re: connect four (game)

2017-11-26 Thread nospam.nospam.alister via Python-list
ef statement that way is becomes a "Doc String" & can be accessed using the help function you may also want to check out the recommended way of structuring a doc string, it could help you with your difficulty in writing them (a problem shared by many) -- This door is baroquen, please wiggle Handel. (If I wiggle Handel, will it wiggle Bach?) -- Found on a door in the MSU music building -- https://mail.python.org/mailman/listinfo/python-list

Re: connect four (game)

2017-11-27 Thread nospam.nospam.nospam.alister via Python-list
ef statement that way is becomes a "Doc String" & can be accessed using the help function you may also want to check out the recommended way of structuring a doc string, it could help you with your difficulty in writing them (a problem shared by many) -- This door is baroquen, please wiggle Handel. (If I wiggle Handel, will it wiggle Bach?) -- Found on a door in the MSU music building -- https://mail.python.org/mailman/listinfo/python-list

Python homework

2017-12-05 Thread nick.martinez2--- via Python-list
f __name__ == "__main__": result = rollDie(50) print (result) print(max(result)) -- https://mail.python.org/mailman/listinfo/python-list

Re: Please tell me how to execute python file in Ubuntu by double click

2017-12-09 Thread alister via Python-list
hat "Linux doesn't do email" because it is > sendmail or postfix > (or similar) that sends email rather than the Linux kernel itself? Linux does not associate by file extn it uses a 'magic' file to analyse the content of the file so that it runs the correct applica

Re: request fails on wikipedia (https) - certificate verify failed (_ssl.c:748)

2017-12-11 Thread Kryptxy via Python-list
Install pyopenssl package and try again? Original Message On 11 Dec 2017, 16:44, F Massion wrote: > Hi, > > I would like to get information from Wikipedia articles and I am testing the > connection to Wikipedia. > > I am running Python 3.6.2 on Windows 10. >

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