On Sep 18, 11:28 am, Ned Deily wrote:
> In article ,
> Lawrence D'Oliveiro wrote:
>
> > In message , Ned Deily
> > wrote:
> > > try:
> > > importreadline
> > > except ImportError:
> > > print("Modulereadlinenot available.")
> > > else:
> > > import rlcompleter
Hi all,
Thanks for your help. I installed python 2.7 on my Mac OS X 10.5.8
machine:
nik$ python
Python 2.7 (r27:82508, Jul 3 2010, 21:12:11)
[GCC 4.0.1 (Apple Inc. build 5493)] on darwin
Type "help", "copyright", "credits" or "license" for more informati
On 31 Αύγ, 11:07, Nik the Greek wrote:
> On 30 Αύγ, 20:50, MRAB wrote:
>
>
>
>
>
>
>
>
>
> > On 30/08/2010 18:16, Nik the Greek wrote:
>
> > > On 30 Αύγ, 19:41, MRAB wrote:
> > >> On 30/08/2010 04:33, Nik the Greek wrote:
>
On 30 Αύγ, 20:50, MRAB wrote:
> On 30/08/2010 18:16, Nik the Greek wrote:
>
>
>
>
>
>
>
>
>
> > On 30 Αύγ, 19:41, MRAB wrote:
> >> On 30/08/2010 04:33, Nik the Greek wrote:
>
> >>> On 30 Αύγ, 06:12, MRAB wrote:
>
> >>
On 30 Αύγ, 20:48, Rami Chowdhury
wrote:
> On Mon, Aug 30, 2010 at 23:36, Nik the Greek
> wrote:
>
>
>
>
>
>
>
>
>
> > # initialize cookie
> > cookie = SimpleCookie()
> > cookie.load( os.environ.get('HTTP_COOKIE', '
On 30 Αύγ, 20:53, MRAB wrote:
> > Why visitor.value is undefined?
>
> Because visitor is None. It's not seeing any cookie.
WHY NOT?!
THE COOKIE _DOES_EXIST !!!
What am i missing here?!
--
http://mail.python.org/mailman/listinfo/python-list
On 30 Αύγ, 19:41, MRAB wrote:
> On 30/08/2010 04:33, Nik the Greek wrote:
>
>
>
>
>
>
>
> > On 30 Αύγ, 06:12, MRAB wrote:
>
> >> This part:
>
> >> ( not mycookie or mycookie.value != 'nikos' )
>
> >> is false but
On 30 Αύγ, 19:21, Peter Otten <__pete...@web.de> wrote:
> Nik the Greek wrote:
> >> Perhpas its doenst get loaded like that?
>
> >> # initialize cookie
> >> cookie = SimpleCookie()
> >> cookie.load( os.environ.get('HTTP_COOKIE', ''
On 30 Αύγ, 19:41, MRAB wrote:
> On 30/08/2010 04:33, Nik the Greek wrote:
>
>
>
>
>
>
>
> > On 30 Αύγ, 06:12, MRAB wrote:
>
> >> This part:
>
> >> ( not mycookie or mycookie.value != 'nikos' )
>
> >> is false but
On 30 Αύγ, 11:11, Gregory Ewing wrote:
> Nik the Greek wrote:
> > Yes i will i just asked to know if i were to substitute what might be
> > the problem so to understand why i need the quoting.
>
> Because if you use % to build a query string, the result must
> be synt
On 30 Αύγ, 11:01, Nik the Greek wrote:
> On 30 Αύγ, 06:12, MRAB wrote:
>
>
>
>
>
>
>
>
>
> > On 30/08/2010 03:55, Nik the Greek wrote:
>
> > > On 30 Αύγ, 05:43, MRAB wrote:
> > >> On 30/08/2010 03:07, Nik the Greek wrote:
>
> &
On 30 Αύγ, 06:12, MRAB wrote:
> On 30/08/2010 03:55, Nik the Greek wrote:
>
>
>
>
>
>
>
>
>
> > On 30 Αύγ, 05:43, MRAB wrote:
> >> On 30/08/2010 03:07, Nik the Greek wrote:
>
> >>> On 30 Αύγ, 04:51, MRAB wrote:
> >>
On 30 Αύγ, 06:12, MRAB wrote:
> This part:
>
> ( not mycookie or mycookie.value != 'nikos' )
>
> is false but this part:
>
> re.search( r'(msn|yandex|13448|spider|crawl)', host ) is None
>
> is true because host doesn't contain any of those substrings.
So, the if code does executed bec
On 30 Αύγ, 05:48, MRAB wrote:
> On 30/08/2010 03:33, Nik the Greek wrote:
>
>
>
>
>
>
>
> > On 30 Αύγ, 05:04, MRAB wrote:
>
> > when iam trying to pass a tuple to the execute methos should i pass it
> > like this?
>
> > cursor.execute(
On 30 Αύγ, 05:43, MRAB wrote:
> On 30/08/2010 03:07, Nik the Greek wrote:
>
>
>
>
>
>
>
>
>
> > On 30 Αύγ, 04:51, MRAB wrote:
> >> On 30/08/2010 02:14, Νίκος wrote:
>
> >>> On 29 Αύγ, 21:44, MRAB wrote:
> >>>> On
On 30 Αύγ, 05:04, MRAB wrote:
when iam trying to pass a tuple to the execute methos should i pass it
like this?
cursor.execute(''' SELECT hits FROM counters WHERE page = %s and
date = %s and host = %s ''' % (page, date, host) )
or like
tuple = (page, host, date)
cursor.execute(''' SELECT hit
On 30 Αύγ, 04:51, MRAB wrote:
> On 30/08/2010 02:14, Νίκος wrote:
>
>
>
>
>
>
>
>
>
> > On 29 Αύγ, 21:44, MRAB wrote:
> >> On 29/08/2010 06:34, Νίκος wrote:
>
> >>> On 28 Αύγ, 23:15, MRAB wrote:
> On 28/08/2010 20:37, Íßêïò wrote:
>
> > On 22 Áýã, 10:27, Íßêïò wrote:
> >> On
Στις 20/8/2010 8:22 πμ, ο/η Cameron Simpson έγραψε:
[...snip...]
| Why does the page variable which is actually a string needs to be a
| tuple or a list and not just as a string which is what it actually
| is?
With regard to the "%" operator, it considers the string on the left to
be a format s
Στις 19/8/2010 6:58 μμ, ο/η Tim Chase έγραψε:
It can be written as a non-3-quote string, you just have to escape the
inner quotes (single & double) and the backslash to be seen:
name = 'My name is "Nikos" and I\'m from Thessaloniki\\Greece'
name = "My name is \"Nikos\" and I'm from Thessal
Στις 19/8/2010 2:32 μμ, ο/η Tim Chase έγραψε:
(1,) + (2,)
to return "(1,2)"
This is actually joining two single element tuples (1,) and (2, ) to a
new bigger tuple of two elements, correct?
--
http://mail.python.org/mailman/listinfo/python-list
Στις 19/8/2010 2:32 μμ, ο/η Tim Chase έγραψε:
So Python needs a way to express that you *explicitly* mean "this is
one of those rare one-element tuples, not an order of operations
prioritization":
(1,) + (2,)
to return "(1,2)"
Yes i can see the difference now!! I just had to look at the big
Στις 18/8/2010 7:31 πμ, ο/η Cameron Simpson έγραψε:
On 17Aug2010 20:15, Νίκος wrote:
| ===
| cursor.execute( ''' SELECT host, hits, date FROM visitors WHERE page =
| '%s' ORDER BY date DESC ''' % (page) )
| ===
|
| Someone told me NOT to d
Στις 3/8/2010 10:39 πμ, ο/η Chris Rebert έγραψε:
Please tell me the difference between 3 things.
a) Asking Notepad++(my editor) to save all my python scripts as UTF-8
without BOM.
That affects what encoding the text file comprising the source code
itself is in.
What does this practically mea
Hi eveyone,
I am working on a project that requires streaming video from a webcam over
LAN and displaying the live video on the remote computer. Basically, I am
creating a specialized video chat client. I can get really nice video
locally using VideoCapture and Pygame, however have only been able t
On Jan 29, 10:56 am, nik <[EMAIL PROTECTED]> wrote:
> Thanks,
> that does help and now I have:
>
> >>> from datetime import datetime, tzinfo, timedelta
> >>> import time
> >>> class TZ(tzinfo):
>
> ...def utcoffset(self,dt): return
>> t = time.gmtime()
>>> print datetime(t[0],t[1],t[2],t[3],t[4],t[5],tzinfo=TZ()).isoformat()
but I imagine there might be a cleaner way of doing this.
Thanks,
Nik
On Jan 28, 9:10 pm, "Nicholas F. Fabry" <[EMAIL PROTECTED]>
wrote:
> Hello, nik.
>
> On Jan 2
imedelta(minutes=-399)
...
>>> datetime(2002, 12, 25, tzinfo=TZ()).isoformat(' ')
'2002-12-25 00:00:00-06:39'
and I've also figured out:
>>>datetime.datetime.fromtimestamp(time.time()).isoformat()[:-3]
'2008-01-23T11:22:54.130'
But can't figure o
OK, that's it,
so to do what I want I am using:
self.logger = logging.getLogger('debuglog')
hdlr = logging.handlers.RotatingFileHandler(debugfilename,
'a', 0, 5)
hdlr.doRollover()
formatter = logging.Formatter('%(asctime)s %
(levelname)s:%(message
On Oct 23, 11:46 am, nik <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I heard that there was a utility for keeping files and specifically
> log files organized, but haven't been able to find anything but the
> logging class. The logging class seems to help create the content of
hing together myself.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
those interact with python I would like to know if
anybody already knows of something like them that is more tuned to
python.
Thanks,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
#
The subprocess is opened, because the warning is coming off of the
test applications stderr, but nothing else seems to go in or out. I've
been looking at a lot of examples and a lot of different postings, and
can't see any mistakes in my use of subprocess. I would really
appreciate it if somebody could see where I am going wrong.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
Thank you for the lead. That is exactly what I was wishing for.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
find
more information or examples on it. I would really appreciate it if
someone could point me in the right direction for using python objects
from VB.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
Thank you for all the responses. In light of what you've told me I
have gone back to storing my specific dictionaries in text files and
then reading them in to the class.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
. When I am shutting
down the application I close the serial port, which causes the IO
error: (9, 'Bad file descriptor'). It makes sense that we would get
this error, because it is trying to read off of a closed 'file'. Is
there a better way to close this thread and port down?
T
On Jun 13, 10:04 pm, Josiah Carlson <[EMAIL PROTECTED]>
wrote:
> Gabriel Genellina wrote:
> > En Wed, 13 Jun 2007 23:11:22 -0300, nik <[EMAIL PROTECTED]> escribió:
> >> It would seem that I want to actually save the source code for the
> >> class. I know t
On Jun 13, 6:48 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Wed, 13 Jun 2007 22:20:16 -0300, nik <[EMAIL PROTECTED]> escribió:
>
> > I would like to create a class and then save it for re-use later. I
> > have tried to usepickle, but am not sure
idn't can anybody point me in the right
direction? I know that classes must get saved from the interactive
console, so I would think that it would be a standard thing to do.
Thank you,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
out, since there
Is there a trick to read 9 bytes off of a serial port?
Thanks,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
Great thank you for the help, we got it working.
--
http://mail.python.org/mailman/listinfo/python-list
Thank you, but I am not sure.
What is wx in this case?
I should have mentioned that I am using Tkinter, am pretty new to
python
and had previously tried just a plain text box with a scrollbar
without success.
The scrollbar always works manually, nothing I've tried yet has
scrolled down automatical
s, so that I can see what's going wrong.
Thanks,
Nik
--
http://mail.python.org/mailman/listinfo/python-list
at are the
pitfalls?
thanks for any help!
nik
--
http://mail.python.org/mailman/listinfo/python-list
44 matches
Mail list logo