Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-08 Thread Rustom Mody
On Sunday, May 7, 2017 at 1:03:57 AM UTC+5:30, Rahim Shamsy wrote: > Hi, > > Hope you are well. I am currently in the process of learning the basics of > programming in Python, and was just checking if I am in the right direction. The tutorial https://docs.python.org/3/tutorial/ is short and g

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread Chris Angelico
On Mon, May 8, 2017 at 2:34 AM, Dennis Lee Bieber wrote: > I can partly agree with one aspect... In comparison to my old life > with > versions of FORTRAN, wherein standards were roughly 10 years apart, each > standard tended to accept all of a previous standard, while declaring > things

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread breamoreboy
On Sunday, May 7, 2017 at 8:21:01 AM UTC+1, Shivangi Motwani wrote: > Hey! > > Learn Python The Hard Way is good I cannot recommend LPTHW after the author had this https://learnpythonthehardway.org/book/nopython3.html to say late last year. The best of the rebuttals is here https://eev.ee/blo

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread breamoreboy
On Saturday, May 6, 2017 at 8:33:57 PM UTC+1, Rahim Shamsy wrote: > Hi, > > Hope you are well. I am currently in the process of learning the basics of > programming in Python, and was just checking if I am in the right direction. > I have experience programming in C++ and Java, and want to lear

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-07 Thread Shivangi Motwani
Hey! Learn Python The Hard Way is good, apart from that you can take Udacitie's Intro to Data Analysis: https://in.udacity.com/course/intro-to-data-analysis--ud170/ This will help you learn numpy and pandas which will be very useful. Hope that helps! On Sun, May 7, 2017 at 1:03 AM, Rahim Shamsy

Re: I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-06 Thread Michael Torrie
On 05/06/2017 01:33 PM, Rahim Shamsy wrote: > Is there a better and faster way? I need more problem solving > experience (keeping in mind Data Science) with python. Probably. Depends on the person and how one learns. The best way to learn python is to have a problem you wish to solve and start co

I want to learn Python and how to benefit from the great Data Science packages - have some questions.

2017-05-06 Thread Rahim Shamsy
Hi, Hope you are well. I am currently in the process of learning the basics of programming in Python, and was just checking if I am in the right direction. I have experience programming in C++ and Java, and want to learn Python for research work that I am doing. The research is regarding appli

Re: Some questions about atexit

2012-09-13 Thread Roy Smith
In article , Terry Reedy wrote: > On 9/12/2012 8:58 PM, Roy Smith wrote: > > The atexit docs (http://docs.python.org/library/atexit.html) are very > > confusing. In one place they say, "The order in which the functions are > > called is not defined". In another place, "all functions registered

Re: Some questions about atexit

2012-09-12 Thread Terry Reedy
On 9/12/2012 8:58 PM, Roy Smith wrote: The atexit docs (http://docs.python.org/library/atexit.html) are very confusing. In one place they say, "The order in which the functions are called is not defined". In another place, "all functions registered are called in last in, first out order". Whic

Some questions about atexit

2012-09-12 Thread Roy Smith
The atexit docs (http://docs.python.org/library/atexit.html) are very confusing. In one place they say, "The order in which the functions are called is not defined". In another place, "all functions registered are called in last in, first out order". Which is correct? Also, it's not clear ho

Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 8:52 pm, Mark Dickinson wrote: > On Mar 27, 3:00 pm, joy99 wrote: > > > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > > are writing in Python as, > > variable1=2 > > variable2=3 > > result=pow(variable1,variable2) > > > In my first problem p(x) a list of floa

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 3:00 pm, joy99 wrote: > (i) Suppose we have 8 which is 2^3 i.e., 3 is the power of 2, which we > are writing in Python as, > variable1=2 > variable2=3 > result=pow(variable1,variable2) > > In my first problem p(x) a list of float/decimals and f(x) is another > such. > Here, > variable1=

Re: Some questions on pow and random

2011-03-27 Thread joy99
On Mar 27, 4:36 pm, Mark Dickinson wrote: > On Mar 27, 11:07 am, joy99 wrote: > > > (b) Suppose we have two distributions p(x1) and p(x2), of the Model M, > > the E of EM algorithm, without going into much technical details is, > > P0(x1,x2), P1(x1,x2) > > > Now I am taking random.random() t

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 wrote: > (b) Suppose we have two distributions p(x1) and p(x2), of the Model M, > the E of EM algorithm, without going into much technical details is, > P0(x1,x2), P1(x1,x2) > > Now I am taking random.random() to generate both x1 and x2 and trying > to multiply the

Re: Some questions on pow and random

2011-03-27 Thread Mark Dickinson
On Mar 27, 11:07 am, joy99 wrote: > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L(f;p)=Ðp(x)f(x) > > My question is python provides two functions, > (a)     pow for power. > (b)     reduce(

Re: Some questions on pow and random

2011-03-27 Thread Jason Swails
2011/3/27 joy99 > Dear Group, > > I have two questions one related to pow() and other is related to > random. > My questions are as below: > > (i) By standard definition of Likelihood Estimation, we get if x EURO X, > where X is a countable set of types, p is probability and f is > frequency. > L

A wrap for a multi-tabbed terminal. Some questions

2010-12-29 Thread Steve
http://pastie.org/763792/wrap This in IMHO, a really useful piece of code, to wrap and run terminal commands, on a gtk+vte python based gui. I would to make some improvements, in order to wrap some terminal applications. How can SET_FOCUS (at start) to the first vte frame? (Avoiding to click on

Re: Some questions about PyOpenGL and wxPython

2008-09-21 Thread Mike C. Fletcher
Clay Hobbs wrote: I am making a program with wxPython that renders objects in 3D using PyOpenGL, and I am having some problems. For one thing, I forgot how to make a double-buffered hardware surface. http://bazaar.launchpad.net/~mcfletch/openglcontext/trunk/annotate/1?file_id=wxcontext.py-20080

Some questions about PyOpenGL and wxPython

2008-09-21 Thread Clay Hobbs
I am making a program with wxPython that renders objects in 3D using PyOpenGL, and I am having some problems. For one thing, I forgot how to make a double-buffered hardware surface. For another thing, glColor(1.0, 0.0, 0.0) just before the rendering doesn't make the object red. Please help, I'm

Re: some questions about ejabberd,spark and psi

2008-02-24 Thread Mr Shore
the url missed http://allforces.com/2005/05/06/ichat-to-msn-through-jabber/ On 2月25日, 上午12时01分, Mr Shore <[EMAIL PROTECTED]> wrote: > hi,every buddy > I've now installed a jabber server,right it's ejabberd mentioned above > and 2 jabber client,right again it's spark and psi > and I can connect to j

some questions about ejabberd,spark and psi

2008-02-24 Thread Mr Shore
hi,every buddy I've now installed a jabber server,right it's ejabberd mentioned above and 2 jabber client,right again it's spark and psi and I can connect to jabber server by spark but failed by psi,saying 'certificate failed the authenticity test;Reason:certificate is self signed' and i follow thi

Re: Some questions about decode/encode

2008-01-28 Thread glacier
On Jan 28, 2:31 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 28, 2:53 pm, glacier <[EMAIL PROTECTED]> wrote: > > > > > Thanks,John. > > It's no doubt that you proved SAX didn't support GBK encoding. > > But can you give some suggestion on how to make SAX parse some GBK > > string? > > Yes, t

Re: Some questions about decode/encode

2008-01-27 Thread John Machin
On Jan 28, 2:53 pm, glacier <[EMAIL PROTECTED]> wrote: > > Thanks,John. > It's no doubt that you proved SAX didn't support GBK encoding. > But can you give some suggestion on how to make SAX parse some GBK > string? Yes, the same suggestion as was given to you by others very early in this thread,

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月28日, 上午5时50分, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 28, 7:47 am, "Mark Tolonen" <[EMAIL PROTECTED]> > wrote: > > > > > > > >"John Machin" <[EMAIL PROTECTED]> wrote in message > > >news:[EMAIL PROTECTED] > > >On Jan 27, 9:17 pm, glacier <[EMAIL PROTECTED]> wrote: > > >> On 1月24日, 下午3时

Re: Some questions about decode/encode

2008-01-27 Thread John Machin
On Jan 28, 7:47 am, "Mark Tolonen" <[EMAIL PROTECTED]> wrote: > >"John Machin" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > >On Jan 27, 9:17 pm, glacier <[EMAIL PROTECTED]> wrote: > >> On 1月24日, 下午3时29分, "Gabriel Genellina" <[EMAIL PROTECTED]> > >> wrote: > > >*IF* the file is w

Re: Some questions about decode/encode

2008-01-27 Thread Mark Tolonen
>"John Machin" <[EMAIL PROTECTED]> wrote in message >news:[EMAIL PROTECTED] >On Jan 27, 9:17 pm, glacier <[EMAIL PROTECTED]> wrote: >> On 1月24日, 下午3时29分, "Gabriel Genellina" <[EMAIL PROTECTED]> >> wrote: > >*IF* the file is well-formed GBK, then the codec will not mess up when >decoding it to Un

Re: Some questions about decode/encode

2008-01-27 Thread Martin v. Löwis
>> Is there any way to solve this better? >> I mean if I shouldn't convert the GBK string to unicode string, what >> should I do to make SAX work? > > Decode it and then encode it to utf-8 before feeding it to the parser. The tricky part is that you also need to change the encoding declaration in

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月27日, 下午7时20分, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 27, 9:17 pm, glacier <[EMAIL PROTECTED]> wrote: > > > > > > > On 1月24日, 下午3时29分, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > En Thu, 24 Jan 2008 04:52:22 -0200, glacier <[EMAIL PROTECTED]> escribió: > > > > > According to

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月27日, 下午7时04分, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 27, 9:18 pm, glacier <[EMAIL PROTECTED]> wrote: > > > > > > > On 1月24日, 下午4时44分, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > > On Wed, 23 Jan 2008 19:49:01 -0800, glacier wrote: > > > > My second question is: is there

Re: Some questions about decode/encode

2008-01-27 Thread John Machin
On Jan 27, 9:17 pm, glacier <[EMAIL PROTECTED]> wrote: > On 1月24日, 下午3时29分, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > > > En Thu, 24 Jan 2008 04:52:22 -0200, glacier <[EMAIL PROTECTED]> escribió: > > > > According to your reply, what will happen if I try to decode a long > > > string sep

Re: Some questions about decode/encode

2008-01-27 Thread John Machin
On Jan 27, 9:18 pm, glacier <[EMAIL PROTECTED]> wrote: > On 1月24日, 下午4时44分, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > > > On Wed, 23 Jan 2008 19:49:01 -0800, glacier wrote: > > > My second question is: is there any one who has tested very long mbcs > > > decode? I tried to decode a long

Re: Some questions about decode/encode

2008-01-27 Thread Marc 'BlackJack' Rintsch
On Sun, 27 Jan 2008 02:18:48 -0800, glacier wrote: > Yepp. I feed SAX with the unicode string since SAX didn't support my > encoding system(GBK). If the `decode()` method supports it, IMHO SAX should too. > Is there any way to solve this better? > I mean if I shouldn't convert the GBK string to

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月24日, 下午5时51分, John Machin <[EMAIL PROTECTED]> wrote: > On Jan 24, 2:49 pm, glacier <[EMAIL PROTECTED]> wrote: > > > I use chinese charactors as an example here. > > > >>>s1='你好吗' > > >>>repr(s1) > > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > > >>>b1=s1.decode('GBK') > > > My first question is :

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月24日, 下午4时44分, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 23 Jan 2008 19:49:01 -0800, glacier wrote: > > My second question is: is there any one who has tested very long mbcs > > decode? I tried to decode a long(20+MB) xml yesterday, which turns out > > to be very strange and

Re: Some questions about decode/encode

2008-01-27 Thread glacier
On 1月24日, 下午3时29分, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 24 Jan 2008 04:52:22 -0200, glacier <[EMAIL PROTECTED]> escribió: > > > According to your reply, what will happen if I try to decode a long > > string seperately. > > I mean: > > ## > > a

Re: Some questions about decode/encode

2008-01-24 Thread 7stud
On Jan 24, 1:44 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Wed, 23 Jan 2008 19:49:01 -0800, glacier wrote: > > My second question is: is there any one who has tested very long mbcs > > decode? I tried to decode a long(20+MB) xml yesterday, which turns out > > to be very strange an

Re: Some questions about decode/encode

2008-01-24 Thread John Machin
On Jan 24, 2:49 pm, glacier <[EMAIL PROTECTED]> wrote: > I use chinese charactors as an example here. > > >>>s1='你好吗' > >>>repr(s1) > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > >>>b1=s1.decode('GBK') > > My first question is : what strategy does 'decode' use to tell the way > to seperate the words. I

Re: Some questions about decode/encode

2008-01-24 Thread Marc 'BlackJack' Rintsch
On Wed, 23 Jan 2008 19:49:01 -0800, glacier wrote: > My second question is: is there any one who has tested very long mbcs > decode? I tried to decode a long(20+MB) xml yesterday, which turns out > to be very strange and cause SAX fail to parse the decoded string. That's because SAX wants bytes,

Re: Some questions about decode/encode

2008-01-23 Thread glacier
On 1月24日, 下午1时49分, [EMAIL PROTECTED] wrote: > On Jan 23, 8:49 pm, glacier <[EMAIL PROTECTED]> wrote: > > > I use chinese charactors as an example here. > > > >>>s1='你好吗' > > >>>repr(s1) > > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > > >>>b1=s1.decode('GBK') > > > My first question is : what strategy

Re: Some questions about decode/encode

2008-01-23 Thread Gabriel Genellina
En Thu, 24 Jan 2008 04:52:22 -0200, glacier <[EMAIL PROTECTED]> escribió: > According to your reply, what will happen if I try to decode a long > string seperately. > I mean: > ## > a='你好吗'*10 > s1 = u'' > cur = 0 > while cur < len(a): > d = min(len(a)-i

Re: Some questions about decode/encode

2008-01-23 Thread glacier
On 1月24日, 下午1时41分, Ben Finney <[EMAIL PROTECTED]> wrote: > Ben Finney <[EMAIL PROTECTED]> writes: > > glacier <[EMAIL PROTECTED]> writes: > > > > I use chinese charactors as an example here. > > > > >>>s1='你好吗' > > > >>>repr(s1) > > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > > >>>b1=s1.decode('GBK')

Re: Some questions about decode/encode

2008-01-23 Thread bbtestingbb
On Jan 23, 8:49 pm, glacier <[EMAIL PROTECTED]> wrote: > I use chinese charactors as an example here. > > >>>s1='你好吗' > >>>repr(s1) > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > >>>b1=s1.decode('GBK') > > My first question is : what strategy does 'decode' use to tell the way > to seperate the words.

Re: Some questions about decode/encode

2008-01-23 Thread Ben Finney
Ben Finney <[EMAIL PROTECTED]> writes: > glacier <[EMAIL PROTECTED]> writes: > > > I use chinese charactors as an example here. > > > > >>>s1='你好吗' > > >>>repr(s1) > > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > > >>>b1=s1.decode('GBK') > > > > My first question is : what strategy does 'decode' use to

Re: Some questions about decode/encode

2008-01-23 Thread Ben Finney
glacier <[EMAIL PROTECTED]> writes: > I use chinese charactors as an example here. > > >>>s1='你好吗' > >>>repr(s1) > "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" > >>>b1=s1.decode('GBK') > > My first question is : what strategy does 'decode' use to tell the way > to seperate the words. I mean since s1 is an

Some questions about decode/encode

2008-01-23 Thread glacier
I use chinese charactors as an example here. >>>s1='你好吗' >>>repr(s1) "'\\xc4\\xe3\\xba\\xc3\\xc2\\xf0'" >>>b1=s1.decode('GBK') My first question is : what strategy does 'decode' use to tell the way to seperate the words. I mean since s1 is an multi-bytes-char string, how did it determine to seper

Re: some questions about Python and tkinter

2007-10-18 Thread fabdeb
On Oct 16, 9:17 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Tue, 16 Oct 2007 11:52:22 -0700, fabdeb wrote: > > the first: what is the differences between a function and a classe? > > A class bundles data and functions into one object. > > > In which case i should use a function ? >

Re: some questions about Python and tkinter

2007-10-16 Thread Marc 'BlackJack' Rintsch
On Tue, 16 Oct 2007 11:52:22 -0700, fabdeb wrote: > the first: what is the differences between a function and a classe? A class bundles data and functions into one object. > In which case i should use a function ? > In which case i should use a class ? If you have several functions that operate

Re: some questions about Python and tkinter

2007-10-16 Thread kyosohma
On Oct 16, 1:52 pm, fabdeb <[EMAIL PROTECTED]> wrote: > Hi every one, > I m a sysadmin who want to know how to use python. > I dont know anything about oriented object programation, i only know > bash and a little perl. > I have some simple questions about python. > > the first: what is the differe

Re: some questions about Python and tkinter

2007-10-16 Thread Bruno Desthuilliers
fabdeb a écrit : > Hi every one, > I m a sysadmin who want to know how to use python. > I dont know anything about oriented object programation, i only know > bash and a little perl. > I have some simple questions about python. > > the first: what is the differences between a function and a classe

some questions about Python and tkinter

2007-10-16 Thread fabdeb
Hi every one, I m a sysadmin who want to know how to use python. I dont know anything about oriented object programation, i only know bash and a little perl. I have some simple questions about python. the first: what is the differences between a function and a classe? In which case i should use a

Some questions about ipath error messages

2007-06-06 Thread Mitko Haralanov
Hi Dave, I have some questions about the ipath error messages that we print out. I am currently testing the error injection part of the matrix and I starting with "incorrect checksum" and "incorrect HW version". I have set the debug level on both machines to 0x83 and I am m

Re: Starting Python... some questions

2007-03-13 Thread jezzzz .
All, thank you for your responses. I learned much and made some modifications in my small program. Currently I am attempting to put together a packet that contains a Python message (created using struct.pack) and a Scapy message (Ether()). Having a packet with combined payload from Python and S

Re: Starting Python... some questions

2007-03-13 Thread Bruno Desthuilliers
Steven D'Aprano a écrit : > On Mon, 12 Mar 2007 21:39:11 -0700, jezonthenet wrote: > >> I started using Python a couple of days ago - here are a few >> questions: >> >> * Doesn't the __main__() method automatically execute when I run my >> python program? > > > No. > > >> * Only when I do an

Re: Starting Python... some questions

2007-03-13 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I started using Python a couple of days ago - here are a few > questions: > > * Doesn't the __main__() method automatically execute when I run my > python program? Which "__main__" method ??? Anyway, the answer is no. Every code at the top-level (which includes imp

Re: Starting Python... some questions

2007-03-12 Thread Gabriel Genellina
En Tue, 13 Mar 2007 03:13:37 -0300, je . <[EMAIL PROTECTED]> escribió: > I added the self parameter to the the chassis_id function, however I now > have a problem and question regarding encoding MAC addresses for a > struct. What string format am I supposed to use? py> data = [int(x,16)

Re: Starting Python... some questions

2007-03-12 Thread Tim Roberts
You only need three things here: [EMAIL PROTECTED] wrote: > >#!/usr/bin/python >import scapy >import struct > >class lldp_class: > def __init__(self): > self.chassis_id_tlv = None > > def chassis_id(subtype, chassis_info): Make that def chassis_id(self, subtype,

Re: Starting Python... some questions

2007-03-12 Thread jezzzz .
Jordan, Thinker, Steven, Thanks for your responses. Makes more sense now! I can run my program from the console. I added the self parameter to the the chassis_id function, however I now have a problem and question regarding encoding MAC addresses for a struct. What string format am I sup

Program __main__ function (was: Starting Python... some questions)

2007-03-12 Thread Ben Finney
[EMAIL PROTECTED], "Greenberg <"@bag.python.org, "greenbergj\""@NOSPAM.xs4all.nl, [EMAIL PROTECTED], ">"@bag.python.org writes: > [EMAIL PROTECTED] wrote: > > * Doesn't the __main__() method automatically execute when I run > > my python program? > > No, there is no special __main__ function, to

Re: Starting Python... some questions

2007-03-12 Thread Steven D'Aprano
On Mon, 12 Mar 2007 21:39:11 -0700, jezonthenet wrote: > I started using Python a couple of days ago - here are a few > questions: > > * Doesn't the __main__() method automatically execute when I run my > python program? No. > * Only when I do an import of my test.py file within python and t

Re: Starting Python... some questions

2007-03-12 Thread Thinker
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: > I started using Python a couple of days ago - here are a few > questions: > > * Doesn't the __main__() method automatically execute when I run my > python program? > * Only when I do an import of my test.py file within python

Re: Starting Python... some questions

2007-03-12 Thread Greenberg
[EMAIL PROTECTED] wrote: > I started using Python a couple of days ago - here are a few > questions: > > * Doesn't the __main__() method automatically execute when I run my > python program? > * Only when I do an import of my test.py file within python and then > run test.__main__() I can see wher

Starting Python... some questions

2007-03-12 Thread jezonthenet
I started using Python a couple of days ago - here are a few questions: * Doesn't the __main__() method automatically execute when I run my python program? * Only when I do an import of my test.py file within python and then run test.__main__() I can see where my bugs are. Is this correct? (right

Re: PyMedia - some questions

2006-12-06 Thread Kjell Magne Fauske
I'm not familiar with PyMedia, but this blog entry should be of interest: [Video Blogging using Django and Flash(tm) Video (FLV)] http://blog.go4teams.com/?p=56 It describes a toolchain for publishing AVI files as FLV on the web. ffmpeg is used together with a few other tools, but Python is us

PyMedia - some questions

2006-12-06 Thread Lad
Hi, Can anyone answer the following questions? Question 1. Can pyMedia create/convert FLV format? I explain in details. As I would like to publish videos for viewing in a browser , I need a good video format. I learned that FLV (Flash(tm) Video) format could be a good choice. Or does anybody sugg

Re: some questions on how to study the bittorent.

2006-07-08 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Moore Liu wrote: > Hi all, > > I am very interesting in the detailed implement of bittorrent and have > read some p2p protocol document, but I want to know more of the > technique implementation. It's time-consuming to reverse-engineering > the code to understand the desig

some questions on how to study the bittorent.

2006-07-08 Thread Moore Liu
Hi all, I am very interesting in the detailed implement of bittorrent and have read some p2p protocol document, but I want to know more of the technique implementation. It's time-consuming to reverse-engineering the code to understand the design intention of it. So my question is: Is there any we

Re: first post: new to pythong. some questions.

2005-12-08 Thread Simon Brunning
On 12/8/05, shawn a <[EMAIL PROTECTED]> wrote: > Hello. Im brand new to this list and to python. Ive recently started > reading about it > and am now in the tinkering stage. Welcome to Python! > I have a script im working on that i > need some > asistance debugging. Its super small and shoul

first post: new to pythong. some questions.

2005-12-07 Thread shawn a
Hello. Im brand new to this list and to python.  Ive recently started reading about it  and am now in the tinkering stage.  I have a script im working on that i need some asistance debugging. Its super small and should be a snap for you gurus =) I have 2 files in a dir off my home dir: mkoneurl.py

Re: Some questions

2005-08-20 Thread Jorgen Grahn
On Thu, 18 Aug 2005 08:53:56 GMT, Alessandro Bottoni <[EMAIL PROTECTED]> wrote: > Titi Anggono wrote: ... >> 2. I use gnuplot.py module for interfacing with >> gnuplot in linux. Can we make the plot result shown in >> web ? I tried using cgi, and it didn't work. > > The ability to display a image (

Re: Some questions

2005-08-19 Thread Magnus Lycka
Thomas Ganss wrote: > My blind guess would have been that Tkinter was *not* the GUI of choice > for *J*ython. With Jython you'd probably use Swing or SWT. It's certainly less coding to get something working in Jython/Swing than with Java/Swing, but I suspect that there is a cost in runtime perfor

Re: Some questions

2005-08-18 Thread Thomas Ganss
Cameron Laird schrieb: > In article <[EMAIL PROTECTED]>, > Alessandro Bottoni <[EMAIL PROTECTED]> wrote: > >>Titi Anggono wrote: >>>1. Can we use Tkinter for web application such as Java? ... > ... or, if you mean, "is Python an apt language for client-side > Web development in the way Java is, w

Re: Some questions

2005-08-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Alessandro Bottoni <[EMAIL PROTECTED]> wrote: >Titi Anggono wrote: >> 1. Can we use Tkinter for web application such as Java? > >What do you mean? If you want to build up a GUI (something like a HTML page) >for a web-based application, you can do it with TKinter. Yo

Re: Some questions

2005-08-18 Thread Alessandro Bottoni
Titi Anggono wrote: > 1. Can we use Tkinter for web application such as Java? What do you mean? If you want to build up a GUI (something like a HTML page) for a web-based application, you can do it with TKinter. Your TKinter app can connect to a web server (or any other kind of server) using the s

Some questions

2005-08-18 Thread Titi Anggono
Hi all, I have some questions: 1. Can we use Tkinter for web application such as Java ? 2. I use gnuplot.py module for interfacing with gnuplot in linux. Can we make the plot result shown in web ? I tried using cgi, and it didn't work. T

Re: Considering moving from Delphi to Python [Some questions]

2005-07-06 Thread malkarouri
Dark Cowherd wrote: > Stupid of me. > > I want some feedback on folllwing: > anybody who has experience in writing SOAP servers in Python and data > entry heavy web applications. > Any suggestions? > darkcowherd Check ZSI, or SOAPPY, both on Python Web Services http://pywebsvcs.sourceforge.net/ I

Re: Considering moving from Delphi to Python [Some questions]

2005-07-05 Thread Benji York
Dark Cowherd wrote: > I want some feedback on folllwing: > anybody who has experience in writing [...] data > entry heavy web applications. > Any suggestions? You might be interested in Zope 3's ability to generate data entry/edit forms via schemas. -- Benji York -- http://mail.python.org/mailma

Re: Considering moving from Delphi to Python [Some questions]

2005-07-05 Thread Harald Armin Massa
> I want some feedback on folllwing: > anybody who has experience in writing SOAP servers in Python and data > entry heavy web applications. > Any suggestions? > darkcowherd > I have never written SOAP Servers. But I have very very good experience in creating entry heavy web application using Pytho

Re: Considering moving from Delphi to Python [Some questions]

2005-07-04 Thread Dark Cowherd
Stupid of me. I want some feedback on folllwing: anybody who has experience in writing SOAP servers in Python and data entry heavy web applications. Any suggestions? darkcowherd On 7/4/05, Dark Cowherd <[EMAIL PROTECTED]> wrote: > Hi, > > We program in Delphi in our shop and are generally very

Re: Considering moving from Delphi to Python [Some questions]

2005-07-04 Thread Terry Reedy
"Dark Cowherd" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > We program in Delphi in our shop and are generally very happy with it. > We are now looking at cross-platform options especially for middle > tier and web server. > > I have been doing a lot of reading and testing of Pyt

Re: Considering moving from Delphi to Python [Some questions]

2005-07-04 Thread flamesrock
The curve may take a while, but I'd definately recommend it. While you're at it, why not switch th front end to python too? -- http://mail.python.org/mailman/listinfo/python-list

Considering moving from Delphi to Python [Some questions]

2005-07-04 Thread Dark Cowherd
Hi, We program in Delphi in our shop and are generally very happy with it. We are now looking at cross-platform options especially for middle tier and web server. I have been doing a lot of reading and testing of Python, I am falling in love with the language :-) But seems to be be very difficul

Re: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread Grant Edwards
On 2005-06-25, Jp Calderone <[EMAIL PROTECTED]> wrote: >>[I've never figured out why one would do a shutdown RDWR rather >>than close the connection, but I haven't put a lot of thought >>into it.] > > shutdown actually tears down the TCP connection; close > releases the file descriptor. > > If the

Re: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread pwilkins
On Fri, 24 Jun 2005 21:42:48 -0400, Jp Calderone wrote: > shutdown actually tears down the TCP connection; close releases the file > descriptor. > > If there is only one file descriptor referring to the TCP connection, > these are more or less the same. If there is more than one file > descript

Re: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread Jp Calderone
On Sat, 25 Jun 2005 01:36:56 -, Grant Edwards <[EMAIL PROTECTED]> wrote: >On 2005-06-25, Giovanni Tumiati <[EMAIL PROTECTED]> wrote: > >> (2)Does one have to do a socket.shutdown() before one does a >> socket.close?? > >No. > >[I've never figured out why one would do a shutdown RDWR >rather tha

Re: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread Grant Edwards
On 2005-06-25, Giovanni Tumiati <[EMAIL PROTECTED]> wrote: > However some of my questions still remain from earlier post: > (1) What is the difference between > - setdefaulttimeout(timeout) That sets the timeout for any sockets created in the future. > - settimeout(value) That sets the timeo

Re: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread Peter Hansen
Giovanni Tumiati wrote: > However some of my questions still remain from earlier post: > (1) What is the difference between / how should they be used? > - setdefaulttimeout(timeout) > - settimeout(value) I think it's basically as you surmised. Calling socket.setdefaulttimeout() (where "socket"

RE: Newbie question: SOLVED (how to keep a socket listening), but still some questions

2005-06-24 Thread Giovanni Tumiati
To all those that replied - thank you. I solved the problem I posted earlier. I'm embarrassed to admit that it was caused by the following: ... while 1: ## wait for a connection try: #...waiting for connection (client, address)=sa.accept() except sa.timeout: <--there is no such e

Re: Some questions...

2005-02-10 Thread bruno modulix
Mario Lacunza wrote: Hello, Im new in Python, please I need some information: - Somebody know if: is possible use Python within Net Framework in windows environment?? http://www.ironpython.com/ http://www.zope.org/Members/Brian/PythonNet/ - Where found info about reports in Python? exist some prog

Some questions...

2005-02-09 Thread Mario Lacunza
Hello, Im new in Python, please I need some information: - Somebody know if: is possible use Python within Net Framework in windows environment?? - Where found info about reports in Python? exist some program like Crystal Reports?? - Database access: Firebird , I dont found correct information