Re: How to write raw strings to Python

2017-07-05 Thread Sam Chats
On Wednesday, July 5, 2017 at 8:22:13 PM UTC+5:30, Stephen Tucker wrote: > Sam, > > You use > > f.write(r'hello\tworld') > > The r in front of the string stands for raw and is intended to switch off > the escape function of the backslash in the string. It

Re: How to write raw strings to Python

2017-07-05 Thread Sam Chats
On Wednesday, July 5, 2017 at 9:09:18 PM UTC+5:30, Grant Edwards wrote: > On 2017-07-05, Sam Chats wrote: > > > I want to write, say, 'hello\tworld' as-is to a file, but doing > > f.write('hello\tworld') makes the file look like: > [...] > > How can

Re: poplib's POP3_SSL not downloading latest email

2017-07-08 Thread Sam Chats
object > I'm using. It shows mails from more than a month ago. I'm unable to figure > out what's wrong. Please help me in correcting the code. > Thanks in advance. ð\x9f\x99\x8f > > Here's the script: > https://github.com/schedutron/CPAP/blob/master/Chap3/m

Re: poplib's POP3_SSL not downloading latest email

2017-07-08 Thread Sam Chats
can see my sent mails on the Gmail app on my phone. So the emails are indeed getting delivered. The problem is that POP shows me emails from about a month ago, and I've received potentially hundreds of emails after that. So it's a receiving problem. Cheers, Sam -- https://mail.python.org/mailman/listinfo/python-list

Synchronization Primitives in Python

2017-08-17 Thread Sam Chats
A good introductory article on synchronizing threads in Python: https://hackernoon.com/synchronization-primitives-in-python-564f89fee732 -- https://mail.python.org/mailman/listinfo/python-list

help with wxPython and wxGrid

2005-04-10 Thread Sam the Cat
using "from wxPython.wx import *" under python2.3 I cannot seem to find the wxGrid class -- it says its undefined -- am I missing something obvious ? I know the globalspace import is not the best, but that how I got started ;) -- any help owuld be appreciated -- http://mail.python.org/mailman/l

Re: semicolon at end of python's statements

2013-08-29 Thread Sam Fourman Jr.
on and don't put? > > Yours, > Mohsen I totally understand where you are coming from, but I have found that the thing I can't get used to is the "indent thing" Python is a great language, but I always secretly find myself wishing I could somehow use python, an

Re: Moving to Python for web

2013-08-29 Thread Sam Fourman Jr.
python bindings :) there are MANY micro frameworks, I have been following these guys for a few years http://www.pocoo.org/ specifically jinja2 and flask looks to be the best choice out of all the options out there -- Sam Fourman Jr. -- http://mail.python.org/mailman/listinfo/python-list

Re: basic maze problem with turtle

2013-10-14 Thread Sam Fourman Jr.
o/python-list> > Who the hell is Nikos? I hear reference to this guy ALL the time, is he a troll or a python god? this simply isn't clear.. I have only been on this list a few months. -- Sam Fourman Jr. -- https://mail.python.org/mailman/listinfo/python-list

Re: GO vs Python

2014-08-24 Thread Sam Fourman Jr.
3.x, they dropped the ball. -- Sam Fourman Jr. -- https://mail.python.org/mailman/listinfo/python-list

Re: GO vs Python

2014-08-24 Thread Sam Fourman Jr.
On Sun, Aug 24, 2014 at 10:07 PM, Chris Angelico wrote: > On Mon, Aug 25, 2014 at 12:57 PM, Sam Fourman Jr. > wrote: > > my initial reason for even looking at GO, was because, I noticed that if > I > > wanted to move my largest clients app from Python 2.x to 3.x it was &

network ping

2005-05-29 Thread Sam the Cat
Besides calling the external ping utility -- is there a way native to python to execute a similar utility ? -- http://mail.python.org/mailman/listinfo/python-list

Python and Javascript equivalence

2007-04-22 Thread Sam the Cat
o no avail. Anyone have any insight on what via the COM interface is equivalent to an Array in javascript ? Cheers Sam -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Javascript equivalence

2007-04-23 Thread Sam the Cat
>> >> I am writing some COM code in Python to control photoshop. Several >> functions of PS require an "Array" argument. In the examples of VBscript >> or javascript the Array type is used. I have tried what would appear to >> be the equivalent in Python -- Lists and Tuples -- but to no avail

html DOM

2008-03-29 Thread Sam the Cat
Is there a package that would allow me the same or similar functionality for modifying html code via the DOM model as I have in JavaScript ? I'd like to parse an html file, then modify it and save the result. I am not trying to do this online, rather I would like to do this on a batch of files

help

2016-01-15 Thread sam Rogers via Python-list
adafruit project work. https://learn.adafruit.com/arduino-lesson-17-email-sending-movement-detector/overview Thanks,Sam -- https://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4