OpenCV Object Detection

2011-07-15 Thread T
Hi all.. what is the best way (using OpenCV) to go about detecting objects by color? Specifically, I need to detect multiple objects - first, a main object (a coin), then multiple objects within that main (green particles on the coin). I'm finding lots of info about facial recognition, but not mu

Distributing Python Program

2011-03-19 Thread T
I have a Python program (which I've "frozen" via py2exe) that I'd like to distribute online, but I'm not sure of the steps to take. My thoughts were to create an account with RegNow or FastSpring, who could accept the payment and offer the download, but I'm unsure as to how you deal with licensing

Threading with Socket Server

2011-03-23 Thread T
Hello all, I am writing a Windows service that needs to 1) Act as a server (TCP), and write to a shelve file, and 2) Read that same shelve file every x number of seconds. My thought is to create 2 separate classes (1 for the socket server and writing to the shelve file, and another to read the fil

Validating Command Line Options

2011-03-23 Thread T
For a Python script with multiple command line options, what is the best way to go about validating that only certain options are used together? For example, say -s, -t, and -v are all valid options, but should never be used together (i.e. -s -t would be invalid). Thanks in advance. -- http

Re: Validating Command Line Options

2011-03-23 Thread T
Thanks! argparse is definitely what I need..unfortunately I'm running 2.6 now, so I'll need to upgrade to 2.7 and hope that none of my other scripts break. -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading with Socket Server

2011-03-23 Thread T
The server portion of the program will typically be writing to the shelve file (there may be a few cases in which I will need it to read), and the other part of the program will read it. Basically, I want the following to be able to both go on at the same time: 1) Server portion waits for connect

No need to close file?

2006-07-18 Thread T
Do I need to close the file in this case? Why or why not? for line in file('foo', 'r'): print line -- http://mail.python.org/mailman/listinfo/python-list

Re: No need to close file?

2006-07-18 Thread T
Thomas Bartkus wrote: > "T" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Do I need to close the file in this case? Why or why not? > > > > for line in file('foo', 'r'): > > print line > > Are you askin

Isn't there a better way?

2006-07-21 Thread T
I am using an optparse to get command line options, and then pass them to an instance of another class: # Class that uses optparse.OptionParser foo = Parse_Option() # Class that does the real work bar = Processor() bar.index = foo.options.index bar.output = foo.options.output bar.run() Th

Re: Isn't there a better way?

2006-07-21 Thread T
> I don't know what both classes do [snip] foo basically gets values for verbose (a True or False) and index (an integer) from command line options, using optparse.OptionParser.add_option() and optparse.OptionParser.parse_args() I would like bar to access the values of verbose and index. Is ther

Re: Isn't there a better way?

2006-07-21 Thread T
T wrote: > > I don't know what both classes do [snip] > > foo basically gets values for verbose (a True or False) and index (an > integer) from command line options, using > optparse.OptionParser.add_option() and > optparse.OptionParser.parse_args() > > I would

An optparse question

2006-07-21 Thread T
I have a short program using optparse.OptionParser that prints out help message with -h flag: % myprog.py -h usage: myprog.py [options] input_file options: -h, --help show this help message and exit -v, --verboseprint program's version number and exit -o FILE

Re: An optparse question

2006-07-21 Thread T
fuzzylollipop wrote: > > you can make the usage line anything you want. > > ... > usage = 'This is a line before the usage line\nusage %prog [options] > input_file' > parser = OptionsParser(usage=usage) > parser.print_help() > ... > No, that affects the string printed only *after* the "usage = " s

Accessing Yahoo Mail withtout POP

2006-08-08 Thread T
Is there a way to access yahoo mail via its web interface? If so, can someone give some pointers? -- http://mail.python.org/mailman/listinfo/python-list

How to delete a directory tree in FTP

2006-08-16 Thread T
I connect to a FTP server which can be either unix or windows server. Once in the FTP session, I would like to delete a directory tree on the server. Is there a command that will do this? If not, can someone point me to a right direction? Thanks! -- http://mail.python.org/mailman/listinfo/pyth

Re: How to delete a directory tree in FTP

2006-08-17 Thread T
That looks useful. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Newbie RE question

2006-09-22 Thread T
I would like to search for any of the strings in r'/\:*?"<>|' in a string using RE module. Can someone tell me how? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie RE question

2006-09-22 Thread T
I meant to say: Search for any character in r'/\:*?"<>|' in a string Sorry T wrote: > I would like to search for any of the strings in r'/\:*?"<>|' in a > string using RE module. Can someone tell me how? > > Thanks! -- http://mail.python.org/mailman/listinfo/python-list

License / Registration key enabled software

2006-09-22 Thread T
We all know that there are many softwares that require some license key or registration key to enable them. How does one implement something like this in python? -- http://mail.python.org/mailman/listinfo/python-list

Re: License / Registration key enabled software

2006-09-23 Thread T
Umm...I was hoping for something simpler and more straight forward. Is there a module that would be useful for this type of thing? -- http://mail.python.org/mailman/listinfo/python-list

Re: License / Registration key enabled software

2006-10-02 Thread T
Mike Playle wrote: > The people who want to use your software illegitimately will succeed no > matter what you do, so you shouldn't worry about them. Worry instead about > the people who DON'T want to use it illegitimately. Can a license key > scheme help them? If so, implement it. No trickery is n

Re: How to use os.putenv() ?

2007-08-30 Thread T
On Aug 29, 9:50 pm, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Aug 30, 11:21 am, [EMAIL PROTECTED] wrote: > > > > > >>> import os > > > >>> os.environ['PATH'] > > > 'C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;%C:\\WINNT%\ > > \system32;%C:\\WINNT%;%C:\\WINNT%\\System32\\Wbem' > >

Re: How to use os.putenv() ?

2007-08-30 Thread T
Thank you everyone! -- http://mail.python.org/mailman/listinfo/python-list

Executing Commands From Windows Service

2010-02-07 Thread T
I have a script, which runs as a Windows service under the LocalSystem account, that I wish to have execute some commands. Specifically, the program will call plink.exe to create a reverse SSH tunnel. Right now I'm using subprocess.Popen to do so. When I run it interactively via an admin account

Re: Executing Commands From Windows Service

2010-02-07 Thread T
On Feb 7, 4:43 pm, Sean DiZazzo wrote: > On Feb 7, 11:02 am, T wrote: > > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.exe to create a revers

Modifying Class Object

2010-02-07 Thread T
Ok, just looking for a sanity check here, or maybe something I'm missing. I have a class Test, for example: class Test: def __init__(self, param1, param2, param3): self.param1 = param1 self.param2 = param2 self.param3 = param3 Next, I have a dictionary mytest that con

Re: Modifying Class Object

2010-02-07 Thread T
On Feb 7, 8:16 pm, Chris Rebert wrote: > On Sun, Feb 7, 2010 at 5:05 PM, T wrote: > > Ok, just looking for a sanity check here, or maybe something I'm > > missing.  I have a class Test, for example: > > > class Test: > >    def __init__(self, param1, para

Re: Modifying Class Object

2010-02-07 Thread T
Oops, this one was my fault - the object I was having the issues with was actually a shelve file, not a dictionary..so just re-assigning the variable isn't working, but re-writing the object to the shelve file does. So in this case, is there any way to just change a single value, or am I stuck rew

Re: Executing Commands From Windows Service

2010-02-08 Thread T
Thanks for the suggestions - I think my next step is to try running it under an admin user account, as you guys both mentioned. Alf - you're absolutely right, Microsoft has srvany.exe, which allows you to run any EXE as a Windows service. I've done this in the past, but it's more of a "hack"..so

Re: Executing Commands From Windows Service

2010-02-08 Thread T
On Feb 8, 1:28 am, Sean DiZazzo wrote: > On Feb 7, 4:57 pm, T wrote: > > > Thanks for the suggestions -  I think my next step is to try running > > it under an admin user account, as you guys both mentioned.  Alf - > > you're absolutely right, Microsoft has sr

Re: Modifying Class Object

2010-02-08 Thread T
On Feb 8, 4:00 am, Duncan Booth wrote: > T wrote: > > Oops, this one was my fault - the object I was having the issues with > > was actually a shelve file, not a dictionary..so just re-assigning the > > variable isn't working, but re-writing the object to the shelve

Re: Executing Commands From Windows Service

2010-02-09 Thread T
On Feb 8, 2:25 pm, David Bolen wrote: > T writes: > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.exe to create a reverse SSH tunnel.  Ri

Re: Executing Commands From Windows Service

2010-02-10 Thread T
On Feb 9, 4:25 pm, David Bolen wrote: > David Bolen writes: > > Not from my past experience - the system account (LocalSystem for > > services) can be surprising, in that it's pretty much unlimited access > > to all local resources, but severely limited in a handful of cases, > > one of which is

Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 4:10 am, Tim Golden wrote: > On 10/02/2010 22:55, T wrote: > > > Great suggestions once again - I did verify that it was at least > > running the plink.exe binary when under LocalSystem by having the > > service run "plink.exe>  C:\plinkoutput.txt&quo

Re: Executing Commands From Windows Service

2010-02-12 Thread T
On Feb 11, 8:21 am, "Martin P. Hellwig" wrote: > On 02/07/10 19:02, T wrote: > > > I have a script, which runs as a Windows service under the LocalSystem > > account, that I wish to have execute some commands.  Specifically, the > > program will call plink.

Upgrading Py2exe App

2010-02-18 Thread T
I have a Python app which I converted to an EXE (all files separate; single EXE didn't work properly) via py2exe - I plan on distributing this and would like the ability to remotely upgrade the program (for example, via HTTP/HTTPS). Looks like it's not just the EXE that I will need need to replac

Re: Upgrading Py2exe App

2010-02-19 Thread T
On Feb 18, 7:19 pm, Ryan Kelly wrote: > On Thu, 2010-02-18 at 07:46 -0800, T wrote: > > I have a Python app which I converted to an EXE (all files separate; > > single EXE didn't work properly) via py2exe - I plan on distributing > > this and would like the ability to re

Re: Upgrading Py2exe App

2010-02-20 Thread T
On Feb 19, 4:32 pm, Ryan Kelly wrote: > On Fri, 2010-02-19 at 11:08 -0800, T wrote: > > On Feb 18, 7:19 pm, Ryan Kelly wrote: > > > On Thu, 2010-02-18 at 07:46 -0800, T wrote: > > > > I have a Python app which I converted to an EXE (all files separate; > >

Py2exe - Bad File Descriptor

2010-02-28 Thread T
I have a Python script, which is a Windows Service, that I created an EXE of via py2exe. As part of the program, it calls some external binaries, one of which restarts the computer. When I'm logged in, this works fine. However, if I log out, the service stops and logs the following error in the

Re: Py2exe - Bad File Descriptor

2010-02-28 Thread T
On Feb 28, 3:48 pm, Dennis Lee Bieber wrote: > On Sun, 28 Feb 2010 10:35:23 -0800 (PST), T > declaimed the following in gmane.comp.python.general: > > > I have a Python script, which is a Windows Service, that I created an > > EXE of via py2exe.  As part of the program, i

Re: Py2exe - Bad File Descriptor

2010-03-01 Thread T
On Feb 28, 10:00 pm, Dennis Lee Bieber wrote: > On Sun, 28 Feb 2010 13:22:19 -0800 (PST), T > declaimed the following in gmane.comp.python.general: > > > Sorry for the lack of code - yes, it does try to write to the > > console.  From what I'm finding, this error may b

Parsing Email Headers

2010-03-11 Thread T
All I'm looking to do is to download messages from a POP account and retrieve the sender and subject from their headers. Right now I'm 95% of the way there, except I can't seem to figure out how to *just* get the headers. Problem is, certain email clients also include headers in the message body

Re: Parsing Email Headers

2010-03-11 Thread T
On Mar 11, 3:13 pm, MRAB wrote: > T wrote: > > All I'm looking to do is to download messages from a POP account and > > retrieve the sender and subject from their headers.  Right now I'm 95% > > of the way there, except I can't seem to figure out how to *ju

Re: Parsing Email Headers

2010-03-11 Thread T
Thanks for your suggestions! Here's what seems to be working - it's basically the same thing I originally had, but first checks to see if the line is blank response, lines, bytes = M.retr(i+1) # For each line in message for line in lines:

re.search when used within an if/else fails

2012-11-19 Thread Kevin T
python version 2.4.3, yes i know that it is old. getting the sysadmin to update the OS requires a first born. with the following code.. for signal in register['signals'] : 351 sigName = signal['functionName'] 352 if re.search( "rsrvd", sigName

Re: re.search when used within an if/else fails

2012-11-20 Thread Kevin T
On Monday, November 19, 2012 7:29:20 PM UTC-6, Steven D'Aprano wrote: > On Tue, 20 Nov 2012 01:24:54 +, Steven D'Aprano wrote: > > > > - use "if something is None", not == None. > > > Steven i will not include line #'s in the future, point taken i will change ==/!= to is/is not as most pe

Re: re.search when used within an if/else fails

2012-11-21 Thread Kevin T
On Nov 20, 1:37 pm, Ian Kelly wrote: > On Tue, Nov 20, 2012 at 12:09 PM, Kevin T wrote: > > #if re.search( "rsrvd", sigName ) :   #version a > > #if re.search( "rsrvd", sigName ) == None :   #version b > > if re.search( "rsrvd", sig

Re: re.search when used within an if/else fails

2012-11-28 Thread Kevin T
, which is tab based. thanks kevin On Wednesday, November 21, 2012 11:00:50 PM UTC-6, Chris Angelico wrote: > On Thu, Nov 22, 2012 at 3:41 AM, Kevin T wrote: > > > I went back and tried version a again, blam it is/does work now ?!?!? > > > > This is why the Short, Self-Co

dynamically creating classes from text

2012-01-24 Thread T H
I’m new to python, sorry if my question is a bit naive, I was wondering if it is possible to parse some text (ie. from a text file or say html) and then dynamically create a class? for example lets say the contents of the text file is: functionName: bark arg1: numberBarks functionName:

controlling Python script with usb midi controller tia sal22

2011-06-30 Thread Rick T
Greetings All I have a usb midi controller (uc-33e) and I have a working python script see below. I would like to be able to control the variables of the python script using my usb controller does anyone have an example of this? I would like to use the "midi learn" function to automatically map a

Why do class methods always need 'self' as the first parameter?

2011-08-31 Thread T. Goodchild
I’m new to Python, and I love it. The philosophy of the language (and of the community as a whole) is beautiful to me. But one of the things that bugs me is the requirement that all class methods have 'self' as their first parameter. On a gut level, to me this seems to be at odds with Python’s d

Re: Numerical representation

2011-03-07 Thread Katie T
The main choices for arbitrary point precision seem to be mpmath (which is pure python) and GMP (C++ but with python wrapper; GMP is heavily used in academia) Links: http://code.google.com/p/mpmath/ http://gmpy.sourceforge.net/ Katie -- CoderStack http://www.coderstack.co.uk The Software Devel

Re: possible to run a python script without installing python?

2011-03-15 Thread Katie T
On Tue, Mar 15, 2011 at 8:58 PM, davidj411 wrote: > it seems that if I copy the python.exe binary and the folders > associated with it to a server without python, i can run python. > does anyone know which files are important to copy and which can be > omitted? > > i know about py2exe and have ha

Re: Bounds checking

2011-03-18 Thread Katie T
What sort of checks are you making ? - in general greater than/less than tend to be fairly optimal, although you might be able to do a faster "is negative" test Katie On Fri, Mar 18, 2011 at 2:24 PM, Martin De Kauwe wrote: > Hi, > > if one has a set of values which should never step outside ce

Re: Bounds checking

2011-03-18 Thread Katie T
On Fri, Mar 18, 2011 at 3:01 PM, Jean-Michel Pichavant < jeanmic...@sequans.com> wrote: > > Don't check for bounds, fix any bug in the code that would set your values > out of bounds and use asserts while debugging. > > Otherwise if you really need dynamic checks, it will cost you cpu, for > sure.

Want to write a python code for sending and receiving frames over wifi/wlan0 using python

2017-10-12 Thread T Obulesu
Hello all, I want to send some frames defined by me{Example, [0x45,0x43,0x32]} to the raspberry pi from any macine(Desktop/Laptop/other raspberry pi). But I want to send those frames over wifi or use wlan0 using python Any suggestions? -- https://mail.python.org/mailman/listinfo/python-list

Re: Want to write a python code for sending and receiving frames over wifi/wlan0 using python

2017-10-12 Thread T Obulesu
On Thursday, 12 October 2017 13:38:55 UTC+5:30, T Obulesu wrote: > Hello all, I want to send some frames defined by me{Example, > [0x45,0x43,0x32]} to the raspberry pi from any macine(Desktop/Laptop/other > raspberry pi). But I want to send those frames over wifi or use wlan0 using

Sockets but calling from different programs

2017-10-23 Thread T Obulesu
I'm new to python3 and scratching my head to write a program for this logic: classA.py Class A: # class for socket communication basic init method that initializes port, address, connection method send(message): # for sending any message through the given por

Re: Python Idle not giving my prompt after If line

2018-04-09 Thread T Berger
On Monday, April 9, 2018 at 1:34:04 PM UTC-4, Peter Otten wrote: > brg...@gmail.com wrote: > > > On Monday, April 9, 2018 at 3:08:28 AM UTC-4, Peter Otten wrote: > >> brg...@gmail.com wrote: > >> > >> > I typed the If part of an If/Else statement, but did not get a prompt > >> > at the beginning

Re: Python Idle not giving my prompt after If line

2018-04-09 Thread T Berger
On Monday, April 9, 2018 at 1:19:13 PM UTC-4, Terry Reedy wrote: > On 4/9/2018 3:07 AM, Peter Otten wrote: > > brg...@gmail.com wrote: > > > >> I typed the If part of an If/Else statement, but did not get a prompt at > >> the beginning of the next line when I hit return. Instead, the cursor > >> l

Filtering computer.lang.python

2018-04-09 Thread T Berger
This is the first time I've joined a google group and I don't understand the setup. Why are most of the posts in this group unrelated to python, and how do I filter this junk (sorry) out? -- https://mail.python.org/mailman/listinfo/python-list

How to apply filters to posts

2018-04-09 Thread T Berger
This is the first time I've joined a google group and I don't understand the setup. Why are most of the posts in this group unrelated to python, and how do I filter this junk (sorry) out? -- https://mail.python.org/mailman/listinfo/python-list

Meaning of abbreviated terms

2018-05-05 Thread T Berger
What does the "p" in "plist" stand for? Is there a python glossary that spells out the meanings of abbreviated terms? -- https://mail.python.org/mailman/listinfo/python-list

Re: Meaning of abbreviated terms

2018-05-10 Thread T Berger
On Saturday, May 5, 2018 at 6:45:46 PM UTC-4, MRAB wrote: > On 2018-05-05 17:57, T Berger wrote: > > What does the "p" in "plist" stand for? > > Is there a python glossary that spells out the meanings of abbreviated > > terms? > > > &qu

Learning Python

2018-06-05 Thread T Berger
Can someone learn Python through a book such as Head Start Python? Would an online course from MIT or google be better? -- https://mail.python.org/mailman/listinfo/python-list

Problem finding my folder via terminal

2018-06-06 Thread T Berger
I’m learning Python on my own and have been stuck for two days trying to get modules I created into site-packages. As a trial step, we were asked to change directly into the folder containing our modules. I typed “cd mymodules” per instructions, but got this error message: “-bash: cd: mymodules:

Re: Problem finding my folder via terminal

2018-06-07 Thread T Berger
On Wednesday, June 6, 2018 at 12:19:35 PM UTC-4, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to get > modules I created into site-packages. As a trial step, we were asked to > change directly into the folder containing our modules. I

Re: Problem finding my folder via terminal

2018-06-07 Thread T Berger
On Wednesday, June 6, 2018 at 12:19:35 PM UTC-4, T Berger wrote: > I’m learning Python on my own and have been stuck for two days trying to get > modules I created into site-packages. As a trial step, we were asked to > change directly into the folder containing our modules. I

Distribution file error

2018-06-08 Thread T Berger
Hi, I really need help here. I’m trying to create a distribution file for my module, but got an error message. The module, including the setup and read me files, are contained within the folder “mymodules.” I typed this command (per instructions from my workbook) from within mymodules folder:

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 5:05:25 AM UTC-4, Cameron Simpson wrote: > On 09Jun2018 02:37, Gene Heskett wrote: > >On Saturday 09 June 2018 01:36:17 Tamara Berger wrote: > >> Re inline style: When I hit reply, this is the window I get. > > The python-list server strips attachments, so I didn't ge

Re: Problem finding my folder via terminal

2018-06-09 Thread T Berger
On Saturday, June 9, 2018 at 3:30:39 PM UTC-4, MRAB wrote: > On 2018-06-09 18:48, T Berger wrote: > [snip] > > > I want to read your last two emails in the evening when I have more time to > > digest the information, but I have a quick question now. I made the > >

Posting warning message

2018-06-10 Thread T Berger
When I go to post a reply, I get a warning asking if I want my email address (or other email addresses listed) visible to all, and do I want to edit my post. What should I do? -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting warning message

2018-06-10 Thread T Berger
Thanks, everyone, for your suggestions. I didn't respond to your posts earlier because I wasn't notified by email updates. I don't understand why they've stopped coming. I didn't change any settings. -- https://mail.python.org/mailman/listinfo/python-list

Re: Posting warning message

2018-06-11 Thread T Berger
On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > Tamara Berger wrote: > > I typed these 2 lines in the terminal: > > > > 192:~ TamaraB$ sudo python3 > > ... > python3 -m pip install pytest > > You need to enter this *single* line in the Terminal: > > sudo python3 -m

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Re: Posting warning message

2018-06-12 Thread T Berger
On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > Tamara Berger wrote: > > I typed these 2 lines in the terminal: > > > > 192:~ TamaraB$ sudo python3 > > ... > python3 -m pip install pytest > > You need to enter this *single* line in the Terminal: > > sudo python3 -m

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

Filters

2018-06-12 Thread T Berger
Why doesn't the system allow me to set filters for my own posts? I was able to do it once, but when I returned to the forum, I was back among the unfiltered posts. When I tried to reapply the filter, the option was grayed out. Also, I've selected the option to get email updates to my posts, but

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 10:27:06 AM UTC-4, Chris Angelico wrote: > On Wed, Jun 13, 2018 at 12:17 AM, T Berger wrote: > > > > Sorry, to bother you again. But is there some way to edit a message once > > its posted? Or do I have to delete it and rewrite it? > > No

Re: Posting warning message

2018-06-12 Thread T Berger
On Tuesday, June 12, 2018 at 3:28:29 AM UTC-4, Cameron Simpson wrote: > On 11Jun2018 22:51, Tamara Berger wrote: > >On Monday, June 11, 2018 at 7:24:58 PM UTC-4, Gregory Ewing wrote: > >> Tamara Berger wrote: > >> > I typed these 2 lines in the terminal: > >> > 192:~ TamaraB$ sudo python3 > >> >>>

PEP8 compliance

2018-06-13 Thread T Berger
Sorry for this basic question, but to change my code if it's failed the PEP8 test, what code do I use to open my program and make changes? Obviously, I should still be in bash, but then what? Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 11:04:39 AM UTC-4, T Berger wrote: > Sorry for this basic question, but to change my code if it's failed the PEP8 > test, what code do I use to open my program and make changes? Obviously, I > should still be in bash, but then what? > > Thanks

Re: PEP8 compliance

2018-06-13 Thread T Berger
On Wednesday, June 13, 2018 at 1:44:49 PM UTC-4, Paul Moore wrote: > On 13 June 2018 at 17:35, T Berger wrote: > > > I did make the changes in IDLE, but I thought I must be in the wrong place. > > The line of code I got in terminal was: > > /Users/TamaraB/Desktop/m

Re: How to apply filters to posts

2018-06-13 Thread T Berger
On Tuesday, April 10, 2018 at 1:21:53 AM UTC-4, Chris Angelico wrote: > I recommend, instead, joining the mailing list: > > https://mail.python.org/mailman/listinfo/python-list There seem to be two options on the Python-list Information Page. * Subscribe to the list (see sections below) * Sen

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > They're connected. "Subscribe to the list" makes you a member of the > mailing list (and thus you will start receiving posts), which also > entitles you to send to the list. Sending email to that address will > send it to the

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 11:26:00 AM UTC-4, Rhodri James wrote: > On 14/06/18 16:00, T Berger wrote: > > On Thursday, June 14, 2018 at 8:02:44 AM UTC-4, Chris Angelico wrote: > > > >> They're connected. "Subscribe to the list" makes you a member of t

Re: How to apply filters to posts

2018-06-14 Thread T Berger
On Thursday, June 14, 2018 at 3:39:44 PM UTC-4, Ben Finney wrote: > T Berger writes: > > > Thanks, Rhodri. One more question. What is a daily digest? I'm > > wondering whether to choose that option. > > Don't choose the daily digest, because it makes a speci

Re: Posting warning message

2018-06-15 Thread T Berger
On Monday, June 11, 2018 at 4:32:56 AM UTC-4, Cameron Simpson wrote: > This is one reason to prefer the mailing list. You can subscribe here: > > https://mail.python.org/mailman/listinfo/python-list > > Many of us prefer that to Google Groups. You have the advantage that email > messages arri

Flask failure

2018-06-15 Thread T Berger
I’m trying to build a webapp with flask. I installed flask, created a webapp in IDLE, but when I tried testing it at my terminal, I got a huge error message. This is the app: from flask import Flask app = Flask(__name__) @app.route('/') def hello() -> str:     return 'Hello world from Flask!' ap

Python list vs google group

2018-06-15 Thread T Berger
I'm suspecting that posting to python google groups (this site) gets more responses than mailing to the python list. Am I correct? Also, contrary to what I read on the python list information sheet, what shows up in this forum does not match what comes into my inbox. I started a post here and th

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > it certainly seems to be the source of most SPAM > as such some users of this list/newsgroup call it what you like block all > posts from google groups But you don't think you get more replies to a question posted here than emailed

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > On 15/06/18 16:47, T Berger wrote: > > On Friday, June 15, 2018 at 11:31:47 AM UTC-4, Alister wrote: > > > >> it certainly seems to be the source of most SPAM > >> as such some users of this lis

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > Perhaps quantity is not the important thing here. It is the important thing. I'm stuck with a problem and still waiting for replies to my email. I've decided to repost my problem here, so we'll see whether my hypothesis holds

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:14:30 PM UTC-4, Mark Lawrence wrote: > For the third and final time, just get a (semi-)decent email client/news > reader/whatever it's called, point it at news.gmane.org and read this > forum, hundreds of other python forums and thousands of other technical > foru

Re: Python list vs google group

2018-06-15 Thread T Berger
Hi Rich, Please define YMMV, MUA. Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-15 Thread T Berger
On Friday, June 15, 2018 at 12:32:17 PM UTC-4, T Berger wrote: > On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote: > > Perhaps quantity is not the important thing here. > > It is the important thing. I'm stuck with a problem and still waiting for > re

Re: Flask failure

2018-06-18 Thread T Berger
On Friday, June 15, 2018 at 1:48:16 PM UTC-4, Elismar Luz wrote: > Address already in use! Hi Elismar, I'm new to Python and didn't understand your post when I first read it. Thanks, Tamara -- https://mail.python.org/mailman/listinfo/python-list

Proper way to download stylesheets and templates

2018-06-25 Thread T Berger
I’m creating a webapp and trying to download a stylesheet and templates from my manual’s support site. I must be doing something wrong, because when I try to run my app, I get a 404 error message. I downloaded the files by dragging them off the screen into my webapp folder. But I’m getting a wei

Re: Proper way to download stylesheets and templates

2018-06-25 Thread T Berger
On Monday, June 25, 2018 at 12:12:26 PM UTC-4, T Berger wrote: > I’m creating a webapp and trying to download a stylesheet and templates from > my manual’s support site. I must be doing something wrong, because when I try > to run my app, I get a 404 error message. I downloaded the

  1   2   3   4   5   >