pop3_ssl Attachment problem

2007-12-19 Thread los117
I am trying to fetch email from gmail, but what I am really interested is the attachment. I manage to access the gmail server and get the messege but the attachment came as text: "--=_Part_5286_15861975.1197955173158 Content-Type: audio/mpeg; name="Dire Straits - 12 - Calling Elvis.mp3" Conten

Re: Does fileinput.input() read STDIN all at once?

2007-12-19 Thread Tim Roberts
Adam Funk <[EMAIL PROTECTED]> wrote: > >I'm using this sort of standard thing: > > for line in fileinput.input(): > do_stuff(line) > >and wondering whether it reads until it hits an EOF and then passes >lines (one at a time) into the variable line. This appears to be the >behaviour when it'

Re: Problem untaring python2.5

2007-12-19 Thread abhishek
On Dec 19, 12:16 pm, [EMAIL PROTECTED] wrote: > Hello, > > It is not possible to give sharp hints without more relevant > information like: > - What is your platform? > - Which version of python? > - What is the version of: $tar--version (GNUtar, other proprietarytar, > according to my personal ex

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gabriel Genellina
En Thu, 20 Dec 2007 00:46:50 -0300, Gary <[EMAIL PROTECTED]> escribió: > 1) Is it best/more standard to read in, and parse the XML into some > kind of Python hierarchy first, and then build the UI out of the data > in that structure, or call out UI commands as say, callbacks from the > parser live

Re: How do I use trace to generate coverage data in multi-threaded programs?

2007-12-19 Thread Gabriel Genellina
En Thu, 20 Dec 2007 00:33:00 -0300, Noah <[EMAIL PROTECTED]> escribió: > I'm trying to use the trace module to build coverage files for > a multi-threaded program. > > http://docs.python.org/lib/module-trace.html > > I test my application using trace.py from the command-line like this: > >

Re: embed threaded python code, thread won't start right the way

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 23:45:28 -0300, Yue Fei <[EMAIL PROTECTED]> escribió: > I have a multi thread python code, threads can start immediately if I > run on command line, but I can get them started right the way if I call > the same code from C/C++. Only one thread at a time can execute Python

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 7:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > Hi, Gary. Welcome to Python. I hope you will take some of the reaction > you got as initiatory ribbing. Thanks, Terry, and absolutely! You guys are quite tame compared to some of the lions whose dens I've stumbled into on usenet. Yo

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 7:01 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > Hi, Gary. Welcome to Python. I hope you will take some of the reaction > you got as initiatory ribbing. Thanks, Terry, and absolutely! You guys are quite tame compared to some of the lions whose dens I've stumbled into on usenet. Yo

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 6:44 pm, Ross Ridge <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> wrote: > >cmds.window(t='gwfUI Builder') > >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > >100))) > >cmds.paneLayout(configuration='horizontal2') > >cmds.frameLayout(l='Layouts')

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 6:44 pm, Ross Ridge <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> wrote: > >cmds.window(t='gwfUI Builder') > >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, > >100))) > >cmds.paneLayout(configuration='horizontal2') > >cmds.frameLayout(l='Layouts')

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 3:50 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > You have been done a disservice > by whoever wrote the Maya python bindings, as far as using this tool > to improve your knowledge and understanding of Python goes. No worries there. I'm definitely not using Maya as the way to learn

Re: pypi and easy_install

2007-12-19 Thread Giampaolo Rodola'
On 20 Dic, 03:47, Istvan Albert <[EMAIL PROTECTED]> wrote: > On Dec 19, 9:44 pm, Istvan Albert <[EMAIL PROTECTED]> wrote: > > > On Dec 19, 8:07 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > > > download_url = 'http://code.google.com/p/pyftpdlib/downloads/list', > > this is from looking at yo

How do I use trace to generate coverage data in multi-threaded programs?

2007-12-19 Thread Noah
I'm trying to use the trace module to build coverage files for a multi-threaded program. http://docs.python.org/lib/module-trace.html I test my application using trace.py from the command-line like this: /usr/lib/python2.5/trace.py --missing --count --summary tools/ testall.py When I ex

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Terry Reedy
"Gary" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi! I'd like to join the fray, as the person who posted that original | LJ rant. First, some full disclosure, and stampings out of what seem | to me to be misconceptions... Hi, Gary. Welcome to Python. I hope you will take so

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Ross Ridge
Sam <[EMAIL PROTECTED]> wrote: >cmds.window(t='gwfUI Builder') >cmds.paneLayout(configuration='vertical3', ps=((1, 25, 100), (3, 20, >100))) >cmds.paneLayout(configuration='horizontal2') >cmds.frameLayout(l='Layouts') >cmds.scrollLayout(cr=True) >cmds.columnL

embed threaded python code, thread won't start right the way

2007-12-19 Thread Yue Fei
I have a multi thread python code, threads can start immediately if I run on command line, but I can get them started right the way if I call the same code from C/C++. test code like this: from threading import Thread import thread class testThread(Thread): def __init__ (self, id): T

Re: pypi and easy_install

2007-12-19 Thread Istvan Albert
On Dec 19, 9:44 pm, Istvan Albert <[EMAIL PROTECTED]> wrote: > On Dec 19, 8:07 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > > download_url = 'http://code.google.com/p/pyftpdlib/downloads/list', this is from looking at your setup.py here: http://pyftpdlib.googlecode.com/svn/trunk/setup.py

Re: pypi and easy_install

2007-12-19 Thread Istvan Albert
On Dec 19, 8:07 pm, "Giampaolo Rodola'" <[EMAIL PROTECTED]> wrote: > Could someone point me in the right direction? > download_url = 'http://code.google.com/p/pyftpdlib/downloads/list', you'll need to specify the full path to the actual archive, a link that one could use to download the archive,

Re: Is there a simple way to parse this string ?

2007-12-19 Thread Paul McGuire
On Dec 19, 4:23 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Dec 20, 9:10 am, Larry Bates <[EMAIL PROTECTED]> wrote: > > In particular Paul Maguire recently pointed to a safe evaluator that > was restricted (IIRC) to something like lists/dicts/etc of ints/floats/ > string/etc constants -- looks

Re: Help %A in time.strftime(%A)

2007-12-19 Thread Ben Finney
jolly <[EMAIL PROTECTED]> writes: > import time > > today = time.localtime(time.time()) > theDate = time.strftime("%A %B %d", today) > [...] > > can someone explain to me the %A and the %B? Your first resort for more information about the standard library should be the online standard library r

Re: integer subclass range behavior

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 22:20:17 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > On Dec 19, 7:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: >> En Wed, 19 Dec 2007 18:11:49 -0300, [EMAIL PROTECTED] >> <[EMAIL PROTECTED]> escribió: >> >> > I was wondering what would happen, so I tri

Re: Is there a simple way to parse this string ?

2007-12-19 Thread Paul McGuire
On Dec 19, 4:23 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Dec 20, 9:10 am, Larry Bates <[EMAIL PROTECTED]> wrote: > > > > > > > Stef Mientki wrote: > > > hello, > > > > I need to translate the following string > > >a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' > > > > into the follo

Re: IronPython faster than CPython?

2007-12-19 Thread Ross Ridge
Jack <[EMAIL PROTECTED]> wrote: >I learned a lot from the other thread 'Is a "real" C-Python possible?' about >Python performance and optimization. I'm almost convinced that Python's >performance is pretty good for this dynamic language although there are >areas to improve, until I read some art

Re: Help %A in time.strftime(%A)

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 21:59:25 -0300, jolly <[EMAIL PROTECTED]> escribió: > I'm following a tutorial on Python and I came across this in one of > the examples. > > import time > > today = time.localtime(time.time()) > theDate = time.strftime("%A %B %d", today) > > print today > print theDate > > > R

Re: michael lalonde

2007-12-19 Thread wilson . smith9
http://wanderer.artificial-stupidity.net/ On Dec 16, 1:26 am, Michael Lalonde <[EMAIL PROTECTED]> wrote: > x-no-archive: yes > Michael Lalonde saw a movie made by Mr Harnwell on an ironing board > and got locked in a room full of greasy meat because he felt like it > and chased a bunnywhich got

Re: pySerial

2007-12-19 Thread [david]
__zip__ wrote: > Hi, > > I am using pySerial for communication with modem. > > Does anyone knows which values are for what in these variables? > > xonxoff=0 > rtscts=0 > dsrdtr=0 > > if xonxoff=0 is it hardware control on or of (logic says it would be off > , but who knows). > > > Second que

Re: integer subclass range behavior

2007-12-19 Thread [EMAIL PROTECTED]
On Dec 19, 7:42 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Wed, 19 Dec 2007 18:11:49 -0300, [EMAIL PROTECTED] > <[EMAIL PROTECTED]> escribió: > > > > > I was wondering what would happen, so I tried this out for the heck of > > it with: > > Python 3.0a2 (py3k:59572M, Dec 19 2007, 15:54:

Wireless Card Data on Windows?

2007-12-19 Thread Justin Donato
Hello, I’m looking for a Python library that can return data about wireless networks. In particular, I’m looking for signal quality, noise, etc. I’ve found: HYPERLINK "http://www.romanofski.de/downloads/pywifi"http://www.romanofski.de/download s/pywifi But it’s only for Linux. Is ther

pypi and easy_install

2007-12-19 Thread Giampaolo Rodola'
Hi, I noticed tonight that I can't download/install a package of mine hosted on pypi by using easy_install. By running "ez_setup.py pyftpdlib" I get: --- snippet -- options (after parsing config files): no commands known yet options (after parsing command line): option dict for 'aliases' command:

Re: Why custom objects take so much memory?

2007-12-19 Thread Colin J. Williams
Hrvoje Niksic wrote: > Steven D'Aprano <[EMAIL PROTECTED]> writes: > >> On Tue, 18 Dec 2007 21:13:14 +0100, Hrvoje Niksic wrote: >> >>> Each object takes 36 bytes itself: 4 bytes refcount + 4 bytes type ptr + >>> 4 bytes dict ptr + 4 bytes weakptr + 12 bytes gc overhead. That's not >>> counting m

Help %A in time.strftime(%A)

2007-12-19 Thread jolly
Hey guys, I'm following a tutorial on Python and I came across this in one of the examples. import time today = time.localtime(time.time()) theDate = time.strftime("%A %B %d", today) print today print theDate Result: (2007, 12, 20, 9, 48, 15, 3, 354, 1) Thursday December 20 can someone ex

Help %A in time.strftime(%A)

2007-12-19 Thread jolly
Hey guys, I'm following a tutorial on Python and I came across this in one of the examples. (Toggle Plain Text) import time today = time.localtime(time.time()) theDate = time.strftime("%A %B %d", today) print today print theDate import time today = time.localtime(time.time()) theDate = time.st

Re: Is there a simple way to parse this string ?

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 19:23:36 -0300, John Machin <[EMAIL PROTECTED]> escribió: > On Dec 20, 9:10 am, Larry Bates <[EMAIL PROTECTED]> wrote: >> Stef Mientki wrote: >> >> > I need to translate the following string >> >a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' >> >> > into the followin

Re: integer subclass range behavior

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 18:11:49 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > I was wondering what would happen, so I tried this out for the heck of > it with: > Python 3.0a2 (py3k:59572M, Dec 19 2007, 15:54:07) [MSC v.1500 32 bit > (Intel)] on win32 > > class a(int): > def __new__(cls

Re: Durability and backward compatibility over 10 years...

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 08:10:59 -0300, Philippe DAVID <[EMAIL PROTECTED]> escribió: > I would like to use python to write some scripts for a system that will > be used > for more than 10 years. My problem is the following: > In 10 years, if the OS evolves and ships with the latest stable version

CoCoPy Release Candidate

2007-12-19 Thread Ron Provost
I'm happy to announce the CoCo/r for Python release candidate. CoCo/r is an scanner generator and LL(k) parser generator which has already been ported to many languages. CocoPy 1.1.0rc can be found in the Python Package Index. CoCo/r for Python now passes all tests in the official COCO test su

Re: class memebers

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 17:17:43 -0300, N L <[EMAIL PROTECTED]> escribió: > How do I list the members of a class? Meaning, how do I know what are > the functions a particular class has, if i do not want to manually > browse through the class? From the interpreter, just print dir(class) or dir(in

Re: Eclipse/PyQt/Eric4 question

2007-12-19 Thread Fabio Zadrozny
> > Hi - > in fact, you can do pretty much everything you have to do with pydev > in eclipse. Eclipse itself is very flexible, robust and intuitive. > pydev may be a touch too nervous, but is very supportive. It has a few > bugs, but none lethal. Only setback is that you have to pay a small > licen

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Chris Mellon
On Dec 19, 2007 4:05 PM, Gary <[EMAIL PROTECTED]> wrote: > > > Chris Mellon writes: > """It's interesting that the solutions "move away from the terrible > abomination of a GUI toolkit" and "write Python wrappers that don't > cause actual physical pain" never occur to him.""" > > Oh, but they hav

Re: sending a rip1 request via python

2007-12-19 Thread Dirk Loss
scripteaze wrote: >>> I need to be able to send a rip1 request to my rip1 enabled device., > Well, i use scapy quite often, however, this needs to be very portable import socket rip_request = '\x01\x01\x00\x00\x00\x02' + '\x00' * 17 + '\x10' s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
On Dec 19, 3:19 pm, Grant Edwards <[EMAIL PROTECTED]> wrote: > The problem is that to everybody else in the world, indentation > in Python represents control flow nesting, not GUI widget > nesting. Thanks, Grant. That's the first solid reasoning I've seen, and it's a very solid argument, as well.

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Grant Edwards
On 2007-12-19, Gary <[EMAIL PROTECTED]> wrote: > Grant Edwards said: > "Code should work the way it looks and look the way it works." > > I fully agree. To that end, the MEL UI code I write does look > exactly like how it works to me. To me, the layouts are a > stack of a containers, which can be

Re: sending a rip1 request via python

2007-12-19 Thread scripteaze
On Dec 19, 5:14 pm, scripteaze <[EMAIL PROTECTED]> wrote: > On Dec 19, 10:34 am, Dirk Loss <[EMAIL PROTECTED]> wrote: > > > > > scripteaze wrote: > > > I need to be able to send a rip1 request to my rip1 enabled device., > > > so i need python to send : > > > 01 01 00 00 00 02 00 00 00 00 00 00 00

Re: sending a rip1 request via python

2007-12-19 Thread scripteaze
On Dec 19, 10:34 am, Dirk Loss <[EMAIL PROTECTED]> wrote: > scripteaze wrote: > > I need to be able to send a rip1 request to my rip1 enabled device., > > so i need python to send : > > 01 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > > 10 > > Use Scapy: > > from scapy import

Durability and backward compatibility over 10 years...

2007-12-19 Thread Philippe DAVID
Hi, I would like to use python to write some scripts for a system that will be used for more than 10 years. My problem is the following: In 10 years, if the OS evolves and ships with the latest stable version of python, is there a chance for my 10 year old scripts to run on the new system ? (I am

Re: No tab completion if sys.stdout is redirected

2007-12-19 Thread Bjoern Schliessmann
Dirk Loss wrote: > Bjoern Schliessmann wrote: >> readline module applies its autocompletion functions to (and only >> to) sys.stdout. > > I see. Then I guess I'll have to avoid redirecting sys.stdout and > come up with some kind of workaround instead. Just use a "central" function for printing o

Re: In an inherited class, "embedded" classes is referenced?

2007-12-19 Thread Diez B. Roggisch
Christian Joergensen schrieb: > Hello > > I stumpled upon this "feature" during my work tonight, and found it > a bit confusing: > class A(object): > ... class C: > ... foobar = 42 > ... class B(A): pass > ... A.C > B.C > B.C.foobar = 60 A.C.foob

Re: Is there a simple way to parse this string ?

2007-12-19 Thread John Machin
On Dec 20, 9:10 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Stef Mientki wrote: > > hello, > > > I need to translate the following string > >a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' > > > into the following list or tuple > >b = [(0, 0, 0, 255), (192, 192, 192, 255), True, 8 ] >

Re: Eclipse/PyQt/Eric4 question

2007-12-19 Thread straub
On 14 Dez., 10:59, king kikapu <[EMAIL PROTECTED]> wrote: > On 14 Äåê, 01:09, "Fabio Zadrozny" <[EMAIL PROTECTED]> wrote: > > > > > > > > Hmmm...but this means that i am forced to do this for ALL .ui files on > > > the project, either changed or not and this can slow things down... > > > (pyuic.bat

Re: In an inherited class, "embedded" classes is referenced?

2007-12-19 Thread Carl Banks
On Dec 19, 4:23 pm, Christian Joergensen <[EMAIL PROTECTED]> wrote: > Hello > > I stumpled upon this "feature" during my work tonight, and found it > a bit confusing: > > >>> class A(object): > > ... class C: > ... foobar = 42 > ...>>> class B(A): pass > ... > >>> A.C > > >>> B.C > > >>

Re: Is there a simple way to parse this string ?

2007-12-19 Thread Larry Bates
Stef Mientki wrote: > hello, > > I need to translate the following string >a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' > > into the following list or tuple >b = [(0, 0, 0, 255), (192, 192, 192, 255), True, 8 ] > > Is there a simple way to to this. > (Not needed now, but might nee

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
Hi! I'd like to join the fray, as the person who posted that original LJ rant. First, some full disclosure, and stampings out of what seem to me to be misconceptions... 1) I am not a CS major. I majored in Computer Animation at an art college. I'm quite well aware that I don't know all there is to

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Gary
Hi! I'd like to join the fray, as the person who posted that original LJ rant. First, some full disclosure, and stampings out of what seem to me to be misconceptions... 1) I am not a CS major. I majored in Computer Animation at an art college. I'm quite well aware that I don't know all there is to

Re: Is there a simple way to parse this string ?

2007-12-19 Thread [EMAIL PROTECTED]
Stef, You can quickly get a tuple via: t = eval('(0, 0, 0, 255), (192, 192, 192, 255), True, 8') Joseph Armbruster On Dec 19, 4:17 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > hello, > > I need to translate the following string > a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' > > into

RE: Is there a simple way to parse this string ?

2007-12-19 Thread James Newton
>I need to translate the following string >a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' > >into the following list or tuple >b = [(0, 0, 0, 255), (192, 192, 192, 255), True, 8 ] >Is there a simple way to to this. >Stef Mientki >>> a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8

file upload permissions

2007-12-19 Thread lloyd
Hello, I have three web sites hosting the identical Python web application, each theoretically identical in content and configuration. One is used for development; the second is a back-up/mirror; and the third is the production site. The development site is running on my local network, the mirr

class memebers

2007-12-19 Thread N L
How do I list the members of a class? Meaning, how do I know what are the functions a particular class has, if i do not want to manually browse through the class? N Never miss a thing. Make Yahoo your

In an inherited class, "embedded" classes is referenced?

2007-12-19 Thread Christian Joergensen
Hello I stumpled upon this "feature" during my work tonight, and found it a bit confusing: >>> class A(object): ... class C: ... foobar = 42 ... >>> class B(A): pass ... >>> A.C >>> B.C >>> B.C.foobar = 60 >>> A.C.foobar 60 Whe

Is there a simple way to parse this string ?

2007-12-19 Thread Stef Mientki
hello, I need to translate the following string a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' into the following list or tuple b = [(0, 0, 0, 255), (192, 192, 192, 255), True, 8 ] Is there a simple way to to this. (Not needed now, but might need it in the future: even deeper nested

integer subclass range behavior

2007-12-19 Thread [EMAIL PROTECTED]
I was wondering what would happen, so I tried this out for the heck of it with: Python 3.0a2 (py3k:59572M, Dec 19 2007, 15:54:07) [MSC v.1500 32 bit (Intel)] on win32 class a(int): def __new__(cls,number): return int.__new__(cls,number) for x in range(0,a(5)): print(x) Which resulted in

Re: operator module isSequenceType with builtin set produces False

2007-12-19 Thread Terry Reedy
"MarkE" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || > Is there a short Pythonic way to determine whether an object is | > iterable (iteratable ??) Welcome to Python and its neat concept of iterables and iterators. An iterable is an object that has an __iter__ method that retur

Re: How to in Python

2007-12-19 Thread John Machin
On Dec 20, 4:02 am, [EMAIL PROTECTED] wrote: > I've got a pointer to a position in a line of code that contains > either a digit or a period (decimal point). I've got this comment: > > Numbers are one of these: > integers: > digit+ >

dbus bindings under Windows

2007-12-19 Thread Yann Leboulanger
Are there any python dbus bindings under windows ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Changing intobject to use int rather than long

2007-12-19 Thread Terry Reedy
"Christian Heimes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy wrote: | > Good idea. I think people who moved to 64 bits to get 64 bits would be | > upset if they did not ;-). | | Windows X64 users still get 32bit ints. The long datatype is 32bit even | on the 64bit

Re: Another newbie design question

2007-12-19 Thread John Machin
On Dec 20, 5:00 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Dec 19, 10:48 am, [EMAIL PROTECTED] wrote: > > > This morning block comments disappeared from the Decaf design. Maybe > > later today they'll be instantiated in the tokenizer. > > Out of the idlest of curiousity, does this language ha

Re: Does fileinput.input() read STDIN all at once?

2007-12-19 Thread Adam Funk
On 2007-12-18, Jonathan Gardner wrote: >> As a test, I tried this: >> >>for line in fileinput.input(): >> print '**', line >> >> and found that it would print nothing until I hit Ctl-D, then print >> all the lines, then wait for another Ctl-D, and so on (until I pressed >> Ctl-D twice in

Re: help displaying pdf thru client/server

2007-12-19 Thread Jean-Paul Calderone
On Wed, 19 Dec 2007 13:50:10 -0600, Larry Bates <[EMAIL PROTECTED]> wrote: >PaulS wrote: >> Connecting to a Linux server from XP pc using a telnet program, I run a >> report and convert it to a pdf document(using Reportlab) which I need to >> display. The pdf is on the Linux server. Ideas how to d

Re: help displaying pdf thru client/server

2007-12-19 Thread kyosohma
On Dec 19, 1:41 pm, "PaulS" <[EMAIL PROTECTED]> wrote: > Connecting to a Linux server from XP pc using a telnet program, I run a > report and convert it to a pdf document(using Reportlab) which I need to > display. The pdf is on the Linux server. Ideas how to display to the pc > would be appreciat

Re: help displaying pdf thru client/server

2007-12-19 Thread Larry Bates
PaulS wrote: > Connecting to a Linux server from XP pc using a telnet program, I run a > report and convert it to a pdf document(using Reportlab) which I need to > display. The pdf is on the Linux server. Ideas how to display to the pc > would be appreciated. thanks, paul > > You will need w

help displaying pdf thru client/server

2007-12-19 Thread PaulS
Connecting to a Linux server from XP pc using a telnet program, I run a report and convert it to a pdf document(using Reportlab) which I need to display. The pdf is on the Linux server. Ideas how to display to the pc would be appreciated. thanks, paul -- http://mail.python.org/mailman/listi

Re: How to in Python

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 14:02:00 -0300, <[EMAIL PROTECTED]> escribi�: > I've got a pointer to a position in a line of code that contains > either a digit or a period (decimal point). I've got this comment: > > Numbers are one of these: > integers: > digi

Re: Where best to put local modules?

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 14:02:20 -0300, <[EMAIL PROTECTED]> escribi�: > I'm just beginning to create some python modules for my own use and > I'm wondering where to put them. Initially I have put them in > $HOME/bin and I have set PYTHONPATH to point to them there. It all > seems to be OK but I was

Re: Static linking of python and pyqt

2007-12-19 Thread Martin v. Löwis
> I need an environment that can be delivered to our customers without > installing python, qt and pyqt. We want to provide the complete package. > In order to do so I need to link at least python and qt. How can this be done? You should link all extension modules into the Python executable, thro

Re: operator module isSequenceType with builtin set produces False

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 06:28:03 -0300, MarkE <[EMAIL PROTECTED]> escribi�: >> Is there a short Pythonic way to determine whether an object is >> iterable (iteratable ??) that I haven't thought of (getattr(obj, >> '__iter__') ?). Would operator.isIterable() be at all a useful >> addition ? Yes, I t

Re: import X between submodules in a package

2007-12-19 Thread Gabriel Genellina
En Wed, 19 Dec 2007 07:02:00 -0300, Chris <[EMAIL PROTECTED]> escribió: > #fp.py > import cli > > #cli.py > import os > > #config.py > import cli > print cli.os.environ['HOME'] > > if you wish to use the os module loaded by the cli module En Wed, 19 Dec 2007 09:42:31 -0300, Donn Ingle <[EMAIL PRO

Re: Where best to put local modules?

2007-12-19 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > I'm just beginning to create some python modules for my own use and > I'm wondering where to put them. Initially I have put them in > $HOME/bin and I have set PYTHONPATH to point to them there. It all > seems to be OK but I was wondering if I might be storing up prob

Re: error with wxPython2.8-win32-unicode-2.8.7.1-py25.exe

2007-12-19 Thread kyosohma
On Dec 19, 5:26 am, Emmanuel <[EMAIL PROTECTED]> wrote: > I recently upgraded wxpython (and python) on XP using wxPython2.8- > win32-unicode-2.8.7.1-py25.exe > > Now when I run > > from wxPython.wx import * > > It crashes : > > -> import _wx > ... > > from _misc import * > > ... > > --> 456 wxDate

Re: import X between submodules in a package

2007-12-19 Thread Donn Ingle
> You guess. When fisrt imported, the module's source is executed, a > module object is created and stored in sys.modules, and the needed names > are inserted into the importing module's namespace. Next times the > module is "served" directly from sys.modules. Peachy, thanks. \d -- http://mail.

Re: Another newbie design question

2007-12-19 Thread Neil Cerutti
On 2007-12-19, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Dec 19, 10:48 am, [EMAIL PROTECTED] wrote: >> This morning block comments disappeared from the Decaf design. >> Maybe later today they'll be instantiated in the tokenizer. > > Out of the idlest of curiousity, does this language have a BNF,

Re: Another newbie design question

2007-12-19 Thread Paul McGuire
On Dec 19, 10:48 am, [EMAIL PROTECTED] wrote: > This morning block comments disappeared from the Decaf design. Maybe > later today they'll be instantiated in the tokenizer. Out of the idlest of curiousity, does this language have a BNF, or some other form of grammar definition? -- Paul -- http:/

Re: New+old-style multiple inheritance

2007-12-19 Thread George Sakkis
On Dec 19, 12:01 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > They should have converted the > old-style to new when they decided to derive from both types (it's not > like that's terribly difficult). Unless perhaps the old-style class is part of an stdlib or 3rd party (or rather 4th party since

Re: 3D plotting with python 2.5 on win32

2007-12-19 Thread Jason
On Dec 19, 7:15 am, anton <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if some of you knows a > > - working > > - actual > > - out of the box (for me: binaries available) > > Package/Lib to do 3D plotting out of the box. > > I know matplotlib. > > There is MayaVi from enthon but yo

Re: No tab completion if sys.stdout is redirected

2007-12-19 Thread Dirk Loss
Bjoern Schliessmann wrote: > readline module applies its autocompletion functions to (and only > to) sys.stdout. I see. Then I guess I'll have to avoid redirecting sys.stdout and come up with some kind of workaround instead. Nevertheless, thanks for the info. Regards Dirk -- http://mail.python.o

Re: 3D plotting with python 2.5 on win32

2007-12-19 Thread markacy
On 19 Gru, 15:15, anton <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to know if some of you knows a > > - working > > - actual > > - out of the box (for me: binaries available) > > Package/Lib to do 3D plotting out of the box. > > I know matplotlib. > > There is MayaVi from enthon but you

Re: Preprocessing of input for the interactive interpreter?

2007-12-19 Thread Larry Bates
Stefan Salewski wrote: > Hello, > > I just start learning Python (ordered "Dive into Python" a week ago). > > In the past I have used the Python interactive interpreter for some > calculations instead of Linux command line tools like "bc" or "calc". > > I wonder if it is possible to do a pre-pro

Where best to put local modules?

2007-12-19 Thread tinnews
I'm just beginning to create some python modules for my own use and I'm wondering where to put them. Initially I have put them in $HOME/bin and I have set PYTHONPATH to point to them there. It all seems to be OK but I was wondering if I might be storing up problems for the future by putting pytho

How to in Python

2007-12-19 Thread MartinRinehart
I've got a pointer to a position in a line of code that contains either a digit or a period (decimal point). I've got this comment: Numbers are one of these: integers: digit+ 0xhex_digit+ decimals:

Re: New+old-style multiple inheritance

2007-12-19 Thread Carl Banks
On Dec 19, 10:55 am, George Sakkis <[EMAIL PROTECTED]> wrote: > On Dec 18, 3:16 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > > > On Dec 18, 10:08 am, "[EMAIL PROTECTED]" > > > <[EMAIL PROTECTED]> wrote: > > > We are trying to monkey-patch a third-party library that mixes new and > > > old-style clas

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Chris Mellon
On Dec 19, 2007 10:46 AM, Sam <[EMAIL PROTECTED]> wrote: > On Dec 19, 11:09 am, gDog <[EMAIL PROTECTED]> wrote: > > Hi, Sam- > > > > I'm not wanting to start a flame war, either, but may I ask why does > > your friend want to do that? I'm always intrigued by the folks who > > object to the indenta

Re: Another newbie design question

2007-12-19 Thread MartinRinehart
This morning block comments disappeared from the Decaf design. Maybe later today they'll be instantiated in the tokenizer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread Sam
On Dec 19, 11:09 am, gDog <[EMAIL PROTECTED]> wrote: > Hi, Sam- > > I'm not wanting to start a flame war, either, but may I ask why does > your friend want to do that? I'm always intrigued by the folks who > object to the indentation rules in Python, even though I've always > tried to keep consist

Re: sending a rip1 request via python

2007-12-19 Thread Dirk Loss
scripteaze wrote: > I need to be able to send a rip1 request to my rip1 enabled device., > so i need python to send : > 01 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 > 10 Use Scapy: from scapy import * myrip = RIP()/RIPEntry(metric=16) ans, unans = sr(IP(dst="192.168.1.1")/

Re: How to generate pdf file from an html page??

2007-12-19 Thread Grant Edwards
On 2007-12-19, Terry Jones <[EMAIL PROTECTED]> wrote: >> "Grant" == Grant Edwards <[EMAIL PROTECTED]> writes: >Grant> On 2007-12-19, abhishek <[EMAIL PROTECTED]> wrote: > Hi everyone, I am trying to generate a PDF printable format file from > an html page. Is there a way to do this us

Re: Allowing Arbitrary Indentation in Python

2007-12-19 Thread gDog
Hi, Sam- I'm not wanting to start a flame war, either, but may I ask why does your friend want to do that? I'm always intrigued by the folks who object to the indentation rules in Python, even though I've always tried to keep consistent indentation in all the languages I've used (and I've been at

Re: container.___le___ can use only <=?

2007-12-19 Thread Neil Cerutti
On 2007-12-15, Carl Banks <[EMAIL PROTECTED]> wrote: > On Dec 15, 9:05 am, [EMAIL PROTECTED] wrote: >> My reasoning is (I hope) that the container ought to support >> every comparison operation supported by the contained objects. >> This can be ensured by being careful in the implementation. > > I

Preprocessing of input for the interactive interpreter?

2007-12-19 Thread Stefan Salewski
Hello, I just start learning Python (ordered "Dive into Python" a week ago). In the past I have used the Python interactive interpreter for some calculations instead of Linux command line tools like "bc" or "calc". I wonder if it is possible to do a pre-processing of command strings in the inter

Re: New+old-style multiple inheritance

2007-12-19 Thread George Sakkis
On Dec 18, 3:16 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Dec 18, 10:08 am, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > > We are trying to monkey-patch a third-party library that mixes new and > > old-style classes with multiple inheritance. > > New library? Geez, if people are dumb

Re: How to generate pdf file from an html page??

2007-12-19 Thread Ismail Dönmez
Wednesday 19 December 2007 17:40:17 tarihinde Terry Jones şunları yazmıştı: > > "Grant" == Grant Edwards <[EMAIL PROTECTED]> writes: > > Grant> On 2007-12-19, abhishek <[EMAIL PROTECTED]> wrote: > >>> > Hi everyone, I am trying to generate a PDF printable format file from > >>> > an html page.

Re: How to generate pdf file from an html page??

2007-12-19 Thread Terry Jones
> "Grant" == Grant Edwards <[EMAIL PROTECTED]> writes: Grant> On 2007-12-19, abhishek <[EMAIL PROTECTED]> wrote: >>> > Hi everyone, I am trying to generate a PDF printable format file from >>> > an html page. Is there a way to do this using python. If yes then >>> > which library and functions

Re: How to generate pdf file from an html page??

2007-12-19 Thread Grant Edwards
On 2007-12-19, abhishek <[EMAIL PROTECTED]> wrote: >> > Hi everyone, I am trying to generate a PDF printable format file from >> > an html page. Is there a way to do this using python. If yes then >> > which library and functions are required and if no then reasons why it >> > cant be done. >> >>

  1   2   >