python and vc numbers

2009-11-28 Thread Daniel Dalton
Hi, I have a very simple problem, but I can't work out the answer. How do I return the current tty number in python? eg. what function/module should I use to figure out what tty my program was invoked from? Thanks -- Cheers, Dan http://members.iinet.net.au/~ddalton/ signature.asc Descriptio

Best strategy for converting to Python

2009-11-28 Thread Poker Player
I have a calculator program that is written in Visual C# and I would like to convert it to python using any method possible. I am thinking I have to rewrite the GUI and use the Visual C# as I go to make sure I am doing it right but I have no idea as to how this should work when converting a pro

Re: need clarification on -0

2009-11-28 Thread Ned Deily
In article <009b4bab$0$26925$c3e8...@news.astraweb.com>, Steven D'Aprano wrote: > When it comes to integers, I'm not aware of any mathematical or > programming system which treats -0 and +0 as distinct entities, even if > they have different internal representations. A documented feature of mo

Re: Variables with cross-module usage

2009-11-28 Thread Steven D'Aprano
On Sat, 28 Nov 2009 22:18:11 -0500, Nitin Changlani wrote: > Thanks for the reply MRAB, Rami, Matt and Mel, > > I was assuming that since one.myList0] = one.a, the change in one.a will > ultimately trickle down to myList[0] whenever myList[0] is printed or > used in an expression. It doesn't come

Is It A Directory

2009-11-28 Thread Lawrence D'Oliveiro
When doing recursive directory traversal, sometimes you want to follow symlinks that point at other directories, and sometimes you don’t. Here’s a routine that you can use to check whether a path specifies a directory, with the option to treat a symlink to a directory as a directory, or not: im

Re: Imitating "tail -f"

2009-11-28 Thread Aahz
In article , Matt Nordhoff wrote: >Jason Sewall wrote: >> >> FWIW, GNU tail on Linux uses inotify for tail -f: > >Some other operating systems have similar facilities, e.g. FSEvents on OS X. Having spent some time with FSEvents, I would not call it particularly similar to inotify. FSEvents only

Re: Feature request: String-inferred names

2009-11-28 Thread inhahe
i like this idea (i posted some thoughts on it in the blog, but it's not approved yet as of this writing) in short, i suggested extending the idea to make it more a) generalized, b) simple, c) intuitive, and d) flexible. so instead of just using $ for attributes, you could use it anywhere you def

Re: Python3 - encoding issues

2009-11-28 Thread Benjamin Peterson
DreiJane h-labahn.de> writes: > > Ohhh - that's nice. But no words of that in the library reference > here: > > http://docs.python.org/3.1/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range That's because it's here: http://docs.python.org/3.1/library/stdtypes.html#bytes-

Re: Feature request: String-inferred names

2009-11-28 Thread Steven D'Aprano
On Sat, 28 Nov 2009 17:22:27 -0800, The Music Guy wrote: > As for my specific use case, it's somewhat difficult to explain. The > general idea was to isolate a pattern that I spotted repeated in several > unrelated parts of my project. The pattern manifested itself as a set of > 4-5 methods and/or

Re: Variables with cross-module usage

2009-11-28 Thread Nitin Changlani
Thanks for the reply MRAB, Rami, Matt and Mel, I was assuming that since one.myList0] = one.a, the change in one.a will ultimately trickle down to myList[0] whenever myList[0] is printed or used in an expression. It doesn't come intuitively to me as to why that should not happen. Can you kindly su

Re: Python3 - encoding issues

2009-11-28 Thread DreiJane
Ohhh - that's nice. But no words of that in the library reference here: http://docs.python.org/3.1/library/stdtypes.html#sequence-types-str-bytes-bytearray-list-tuple-range Still this fails: >>> a = (1,2,3,4) >>> print(a.startswith((1,2))) Traceback (most recent call last): File "", line 1, in

Re: Python/HTML integration: phileas v0.3 released

2009-11-28 Thread Aahz
In article <6ded5cc9-5491-43d3-849c-17fcfaaec...@k17g2000yqh.googlegroups.com>, papa hippo wrote: > >The prime goal of 'phileas' is to enable html code to be seamlessly >included in python code in a natural looking syntax, without resorting >to templatng language. > >see: > >http://larry.myerscou

Re: slightly OT: Python BootCamp

2009-11-28 Thread Aahz
In article , J wrote: > >Ok... so I've been re-teaching myself python, as it's been several >years since I last really used it. And in the midst of this, my >contracting company came up to me on Friday and asked if I'd be >interested in filling a last minute vacancy in this: > >http://www.otg-nc

Re: Python3 - encoding issues

2009-11-28 Thread Benjamin Peterson
DreiJane h-labahn.de> writes: > Does anybody want to make a PEP from this (i won't do so) ? I will answer this query with a little interactive prompt session: $ python3 Python 3.1.1 (r311:74480, Nov 14 2009, 13:56:40) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "license" for mor

Re: Variables with cross-module usage

2009-11-28 Thread Nitin Changlani.
Thanks for the reply MRAB, Rami, Matt and Mel, I was assuming that since one.myList0] = one.a, the change in one.a will ultimately trickle down to myList[0] whenever myList[0] is printed or used in an expression. It doesn't come intuitively to me as to why that should not happen. Can you kindly su

Python3 - encoding issues

2009-11-28 Thread DreiJane
Hello, at first i must beg the pardon of those from you, whose mailboxes got flooded by my last announcement of depikt. I myself get no emails from this list, and when i had done my corrections and posted each of the sligthly improved versions, i wasn't aware of the extra emails that produces. Sor

slightly OT: Python BootCamp

2009-11-28 Thread J
Ok... so I've been re-teaching myself python, as it's been several years since I last really used it. And in the midst of this, my contracting company came up to me on Friday and asked if I'd be interested in filling a last minute vacancy in this: http://www.otg-nc.com/python-bootcamp It's a wee

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 6:10 am, Lie Ryan wrote: > On 11/28/2009 10:38 PM, The Music Guy wrote: > > >> If you use it a lot, it is likely 1) you have abused class syntax for > >> what should have been a dict or 2) what you need is to override > >> __getattr__/__getattribute__ and __setattr__ > > > Oh boy...here

Re: Feature request: String-inferred names

2009-11-28 Thread Steven D'Aprano
On Sat, 28 Nov 2009 03:38:38 -0800, The Music Guy wrote: > Please listen. In all the time I've spent in the coding community > (that's at least 7 years) and especially since I started paying > attention to the Python community (2 years), I have noticed a trend: > When one coder does something that

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 6:10 am, Lie Ryan wrote: > On 11/28/2009 10:38 PM, The Music Guy wrote: > > >> If you use it a lot, it is likely 1) you have abused class syntax for > >> what should have been a dict or 2) what you need is to override > >> __getattr__/__getattribute__ and __setattr__ > > > Oh boy...here

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread News123
Hi John, John Bokma wrote: > News123 wrote: > >> MRAB wrote: >>> News123 wrote: r wrote: > more *maybe useful dump? > for i in dev.Items: > for p in i.Properties: > if not p.IsReadOnly: > print p.Name, '->', p.Value > > [..] > >> The ma

Re: filename of calling function?

2009-11-28 Thread Steven D'Aprano
On Sat, 28 Nov 2009 08:19:02 -0800, Phlip wrote: > Consider these two python modules: > > aa.py > > def a(): > print '?' > > bb.py > import aa > > def bb(): > aa.a() > > bb() > > How do I make the print line emit the filename of bb.py? (It could be > anything.) See the inspect modu

Re: need clarification on -0

2009-11-28 Thread Steven D'Aprano
On Sat, 28 Nov 2009 15:14:31 -0800, Mark Dickinson wrote: >> Actually, there ARE computers where you might not see this result. >> Virtually all of the processors on which Python runs use two's >> complement arithmetic.  In two's complement, there is no separate value >> called -0.  0 and -0 have

Re: Some Basic questions on the use of CTRL and ALT Keys

2009-11-28 Thread Rhodri James
On Sat, 28 Nov 2009 07:30:00 -, joy99 wrote: On Nov 28, 5:35 am, Steven D'Aprano wrote: As for Alt-combinations, I don't think there is any standard for what they are. I believe that they are operating system specific, and possibly even program specific. It seems the following site

Req. for comments section "Basic Data" in intro book

2009-11-28 Thread Alf P. Steinbach
I added a section on "basic data" to ch 2 of my writings, an introduction to programming (with Python as main language). The intended reader is someone who is intelligent and wants to learn programming but knows little or nothing about it. As before it would be nice with feedback on this.

Re: need clarification on -0

2009-11-28 Thread Mark Dickinson
On Nov 28, 11:14 pm, Mark Dickinson wrote: > While that's true, I think the implementation of Python is > such that the Python objects -0 and 0 should always be > indistinguishable even on machines where the underlying > architecture represents integers using ones' complement or > sign-magnitude.

Re: Variables with cross-module usage

2009-11-28 Thread Mel
Rami Chowdhury wrote: > Hi Nitin, > > On Sat, Nov 28, 2009 at 14:36, MRAB wrote: >> Nitin Changlani. wrote: >>> three.py >>> >>> import one >>> import two >>> >>> def argFunc(): >>> one.x = 'place_no_x' >>> one.a = 'place_no_a' >>> one.b = 'place_no_b' >>> > > I think this is what

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread John Bokma
News123 wrote: > MRAB wrote: >> News123 wrote: >>> r wrote: more *maybe useful dump? >>> for i in dev.Items: for p in i.Properties: if not p.IsReadOnly: print p.Name, '->', p.Value [..] > The main question is the correct python method to chan

Re: need clarification on -0

2009-11-28 Thread Mark Dickinson
On Nov 28, 8:39 pm, Tim Roberts wrote: > moijes12 wrote: > > >I know the value -0 is quite meaningless and makes little sense.But I > >was just fiddling.I am unable to figure out the below result > > -0 and True > >0 --> (Why is this 0 and not say True or False) > -0 and false >

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread News123
MRAB wrote: > News123 wrote: >> r wrote: >>> more *maybe useful dump? >>> >> for i in dev.Items: >>> for p in i.Properties: >>> if not p.IsReadOnly: >>> print p.Name, '->', p.Value >>> >> . . . >>> Horizontal Resolution -> 200 >>> Vertical Resolution -> 200 >>> Horizonta

Re: Variables with cross-module usage

2009-11-28 Thread Rami Chowdhury
Rami Chowdhury "Never assume malice when stupidity will suffice." -- Hanlon's Razor 408-597-7068 (US) / 07875-841-046 (UK) / 0189-245544 (BD) On Sat, Nov 28, 2009 at 14:57, Matt Nordhoff wrote: > Rami Chowdhury wrote: >> Hi Nitin, >> >> On Sat, Nov 28, 2009 at 14:36, MRAB wrote: >>> N

Re: Variables with cross-module usage

2009-11-28 Thread Matt Nordhoff
Rami Chowdhury wrote: > Hi Nitin, > > On Sat, Nov 28, 2009 at 14:36, MRAB wrote: >> Nitin Changlani. wrote: >>> three.py >>> >>> import one >>> import two >>> >>> def argFunc(): >>>one.x = 'place_no_x' >>>one.a = 'place_no_a' >>>one.b = 'place_no_b' >>> > > I think this

Re: Variables with cross-module usage

2009-11-28 Thread Rami Chowdhury
Hi Nitin, On Sat, Nov 28, 2009 at 14:36, MRAB wrote: > Nitin Changlani. wrote: >> three.py >> >> import one >> import two >> >> def argFunc(): >>    one.x = 'place_no_x' >>    one.a = 'place_no_a' >>    one.b = 'place_no_b' >> I think this is what is biting you. You might expect tha

Re: Variables with cross-module usage

2009-11-28 Thread MRAB
Nitin Changlani. wrote: Hello everyone, I am fairly new to Python and occasionally run into problems that are almost always resolved by referring to this mailing-list's archives. However, I have this one issue which has got me stuck and I hope you will be tolerant enough to help em out with i

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread MRAB
News123 wrote: r wrote: more *maybe useful dump? for i in dev.Items: for p in i.Properties: if not p.IsReadOnly: print p.Name, '->', p.Value . . . Horizontal Resolution -> 200 Vertical Resolution -> 200 Horizontal Start Position -> 0 . . .

Variables with cross-module usage

2009-11-28 Thread Nitin Changlani.
Hello everyone, I am fairly new to Python and occasionally run into problems that are almost always resolved by referring to this mailing-list's archives. However, I have this one issue which has got me stuck and I hope you will be tolerant enough to help em out with it! What I want to achieve is

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread News123
Meanwhile I found out, why my script worked only on windows 7/Vista and not on my XP host. The WIA 2.0 Scripting Model is by default not installed on Windows XP. Install instructions can be found at http://msdn.microsoft.com/en-us/library/ms630827%28VS.85%29.aspx My second problem (changing par

Re: scanning under windows WIA with custom settings (dpi / etc )

2009-11-28 Thread News123
r wrote: > more *maybe useful dump? > for i in dev.Items: > for p in i.Properties: > if not p.IsReadOnly: > print p.Name, '->', p.Value > . . . > Horizontal Resolution -> 200 > Vertical Resolution -> 200 > Horizontal Start Position -> 0 . . . > > No

Re: need clarification on -0

2009-11-28 Thread Tim Roberts
moijes12 wrote: > >I know the value -0 is quite meaningless and makes little sense.But I >was just fiddling.I am unable to figure out the below result > -0 and True >0 --> (Why is this 0 and not say True or False) -0 and false >0 -0 or True >True > >Could someone please prov

py2exe users

2009-11-28 Thread jim-on-linux
I have used py2exe many times with success. My current program is completing as expected but the exe file fails to open. The output file states that _imaging_gif is missing. I can run the program ok with IDLE but after converting with py2exe, the exe file just sits there. I'm using 2.6 on wi

Re: why do I get this behavior from a while loop?

2009-11-28 Thread Tim Roberts
"S. Chris Colbert" wrote: > >What a newbie mistake for me to make. Don't feel too badly about it. Even very experienced programmers get bitten by this issue. Until someone points it out, it's certainly not obvious. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. -- http://mail.p

Re: hex int and string

2009-11-28 Thread Tim Roberts
Marco Mariani wrote: >luca72 wrote: > >> i have checked and pyscard accept also the decimal notation, > >I'm not sure you ever understood what the problem was, or where, but I'm >happy you feel like you've solved it. +1 QOTW. Great reply. -- Tim Roberts, t...@probo.com Providenza & Boekelheid

Re: filename of calling function?

2009-11-28 Thread Gerard Flanagan
Phlip wrote: Consider these two python modules: aa.py def a(): print '?' bb.py import aa def bb(): aa.a() bb() How do I make the print line emit the filename of bb.py? (It could be anything.) Possibly not very reliable in every situation (doctests, other pythons, ...) but this i

Re: Python Programming Challenges for beginners?

2009-11-28 Thread n00m
PS My straightforward C++ solution got TLE... #include #include #include #include #include #include #include #include #include using namespace std; int main() { //freopen("88.txt", "rt", stdin); //freopen("99.txt", "wt", stdout); int tcs; string s; cin >> tcs; whi

Re: Python Programming Challenges for beginners?

2009-11-28 Thread n00m
On Nov 28, 8:24 pm, Lie Ryan wrote: > Now, this makes me interested. How efficient it would be when len(s) == > 1... might as well write it and see. Take back what I said, give me > a minute... ... and you can check it here: http://www.spoj.pl/problems/DISUBSTR/ I see there only one (accepted

Re: Python Programming Challenges for beginners?

2009-11-28 Thread Lie Ryan
On 11/28/2009 1:51 AM, n00m wrote: On Nov 27, 1:22 pm, Jon Clements wrote: Of course, if you take '~' literally (len(s)<= -10001) I reckon you've got way too many :) Jon. Then better: len(s)< abs(~1) PS It's a hard problem; so let's leave it alone I'm not going to write it, but I gue

Re: Writing a Carriage Return in Unicode

2009-11-28 Thread Aahz
In article , Dennis Lee Bieber wrote: >On Thu, 19 Nov 2009 23:22:22 -0800, Scott David Daniels > declaimed the following in >gmane.comp.python.general: >> >> If you've actually typed on a physical typewriter, you know that moving >> the carriage back is a distinct operation from rolling the plat

Re: Arcane question regarding white space, editors, and code collapsing

2009-11-28 Thread Aahz
In article <87fx8bl74c@benfinney.id.au>, Ben Finney wrote: >Wells writes: >> >> Is it... pythonic, then, to have these lines of tabs/spaces to support >> code collapsing? Is it proper, improper, or irrelevant? > >It's quite improper (though syntactically null, in Python) to have >trailing wh

Re: WindowsError is not available on linux?

2009-11-28 Thread Aahz
In article , wrote: >On 07:53 pm, a...@pythoncraft.com wrote: >>In article , >>Peng Yu wrote: >>> >>>It's not clear to me whether WindowsError is available on linux or >>>not, after I read the document. >> >>Here's what I told a co-worker to do yesterday: >> >>if os.name =3D=3D 'nt': >>Disk

Re: best performance for storage of server information for python CGI web app?

2009-11-28 Thread Aahz
In article <58e5cd75-75be-4785-8e79-490364396...@e31g2000vbm.googlegroups.com>, davidj411 wrote: > >i was also thinking about using SQL Lite with one DB to store all the >info. with this option, i would not have to worry about concurrent >updates, but as the file size increases, i could expect pe

Re: filename of calling function?

2009-11-28 Thread Phlip
On Nov 28, 9:04 am, Joel Davis wrote: > >         try: > >             raise None > >         except: > >             import sys > >             from traceback import extract_tb, extract_stack > >             frame = sys.exc_info()[2].tb_frame.f_back > >             calling_file = extract_stack(f

Re: filename of calling function?

2009-11-28 Thread Joel Davis
On Nov 28, 11:40 am, Phlip wrote: > On Nov 28, 8:19 am, Phlip wrote: > > > > > Consider these two python modules: > > > aa.py > > > def a(): > >     print '?' > > > bb.py > >   import aa > > > def bb(): > >   aa.a() > > > bb() > > > How do I make the print line emit the filename of bb.py? (It cou

Re: filename of calling function?

2009-11-28 Thread Phlip
On Nov 28, 8:19 am, Phlip wrote: > Consider these two python modules: > > aa.py > > def a(): >     print '?' > > bb.py >   import aa > > def bb(): >   aa.a() > > bb() > > How do I make the print line emit the filename of bb.py? (It could be > anything.) try: raise None

Re: a 100-line indentation-based preprocessor for HTML

2009-11-28 Thread Martijn Arts
It´s quite clear to me: Not. I've taken a look at the "Timebar", and in the last two months there has been no change at all. On Sat, Nov 28, 2009 at 7:32 AM, Steve Howell wrote: > On Nov 27, 9:56 pm, "David Williams" wrote: > > You might want to take a look at this: > > > > http://www.ghrml.org

filename of calling function?

2009-11-28 Thread Phlip
Consider these two python modules: aa.py def a(): print '?' bb.py import aa def bb(): aa.a() bb() How do I make the print line emit the filename of bb.py? (It could be anything.) I am currently playing with sys.exc_info, but it seems to only emit the stack between the raise and the e

Re: python bijection

2009-11-28 Thread Patrick Maupin
On Nov 19, 8:36 pm, Ben Finney wrote: > Carl Banks writes: > > On Nov 19, 3:24 pm, Joshua Bronson wrote: > > Apart from the GPL, it seems perfectly fine to release, and looks like > > an interesting strategy. I've wanted one of those once in a while, > > never enough to bother looking for one or

Re: ANN: pdfrw pure-Python PDF file reading and writing

2009-11-28 Thread Patrick Maupin
On Nov 27, 2:35 am, Patrick Maupin wrote: > pdfrw is a basic PDF file manipulation library, developed and tested > on Python 2.5 and 2.6. > > pdfrw can read and write PDF files, and can also be used to read in > PDFs which can then be used inside reportlab (as source material for > new PDFs).  Thi

Re: Some Basic questions on the use of CTRL and ALT Keys

2009-11-28 Thread Vlastimil Brom
2009/11/28 joy99 : > On Nov 28, 2:22 pm, Lie Ryan wrote: >> On 11/28/2009 6:20 PM, joy99 wrote: >> >> > I was writing a transliteration program from Bengali to English and >> > vice versa. The program using Unicode chart is giving me perfect >> > outputs in Bengali and vice versa with Bengali inpu

Re: debugger on system with Python 2 and 3

2009-11-28 Thread Detlev Offenbach
Hi, eric4 snapshot releases support Python3. Detlev Yo Sato wrote: > Hi, > > I am a relative newcomer to the Python language, and only write Python > 3. Now I would very much like to a more-than-basic debugger. However > it seems as if the fact that I have both Python 2 and 3 on the system > c

Re: a 100-line indentation-based preprocessor for HTML

2009-11-28 Thread Colin W.
On 27-Nov-09 22:04 PM, Steve Howell wrote: Python has this really neat idea called indentation-based syntax, and there are folks that have caught on to this idea in the HTML community. AFAIK the most popular indentation-based solution for generating HTML is a tool called HAML, which actually is

Re: Feature request: String-inferred names

2009-11-28 Thread Lie Ryan
On 11/28/2009 10:38 PM, The Music Guy wrote: If you use it a lot, it is likely 1) you have abused class syntax for what should have been a dict or 2) what you need is to override __getattr__/__getattribute__ and __setattr__ Oh boy...here we go. :| ok, then what's your use case, AFAICT in the

Re: Feature request: String-inferred names

2009-11-28 Thread Ben Finney
The Music Guy writes: > Please listen. In all the time I've spent in the coding community > (that's at least 7 years) and especially since I started paying > attention to the Python community (2 years), I have noticed a trend: > When one coder does something that another cannot understand, > freq

Re: Feature request: String-inferred names

2009-11-28 Thread The Music Guy
On Nov 28, 3:07 am, Lie Ryan wrote: > On 11/28/2009 3:08 PM, The Music Guy wrote: > > > As for your code, I haven't seen it, so it would be hard for me to say > > exactly how the new syntax would come into play. What I can tell you, > > however, is that the parts of your code that would use it wou

Re: Intro To Python Using Turtle Graphics

2009-11-28 Thread Ben Finney
Terry Reedy writes: > Enkidu wrote: > > Ben Finney wrote: > >> Oh, so trash-talking in *other* forums where you feel safe from > >> being caught is okay? ;-) > >> > > I take your point, but the other group in question is a 'local' > > group. > > I think he intended to mean that it was a local gro

Re: Python & OpenOffice Spreadsheets

2009-11-28 Thread Paul Rudin
r writes: > On Nov 23, 4:49 am, Gerhard Häring wrote: >> Is there a *simple* way to read OpenOffice spreadsheets? >> >> Bonus: write them, too? >> >> I mean something like: >> >> doc.cells[0][0] = "foo" >> doc.save("xyz.ods") >> >> >From a quick look, pyodf offers little more than just using a X

Re: Intro To Python Using Turtle Graphics

2009-11-28 Thread Terry Reedy
Enkidu wrote: Ben Finney wrote: Oh, so trash-talking in *other* forums where you feel safe from being caught is okay? ;-) I take your point, but the other group in question is a 'local' group. I think he intended to mean that it was a local group where trash-talking and stupid comments are

Re: Some Basic questions on the use of CTRL and ALT Keys

2009-11-28 Thread joy99
On Nov 28, 2:22 pm, Lie Ryan wrote: > On 11/28/2009 6:20 PM, joy99 wrote: > > > I was writing a transliteration program from Bengali to English and > > vice versa. The program using Unicode chart is giving me perfect > > outputs in Bengali and vice versa with Bengali input ->  English. > > I wante

Python MySQL: clean multiple foreign keys table

2009-11-28 Thread Threader Slash
Hi Everybody, I am working with Python MySQL, and need to clean a table in my database that has 13328 rows. I can not make a simple drop table, because this table is child and also father of other child foreign-keys linked on it. If I try drop table, the system forbidden me. The table is defined

dvb3

2009-11-28 Thread luca72
hello i try to use the python-dvb3 bindings, but i have some problem: fe = dvb3.frontend.Frontend(0) type = tipo_1 = fe.get_dvbtype() now i need to set the parameters parametri = dvb3.frontend.QPSKParameters(frequency=frequency, inversion=2 , symbol_rate=27500, fec_inner=9) but when i use fe.set_f

Re: python bijection

2009-11-28 Thread Joshua Bronson
On Nov 27, 9:36 pm, "Gabriel Genellina" wrote: > En Fri, 27 Nov 2009 15:12:36 -0300, Francis Carr   > escribió: > > > I was really inspired by this discussion thread! :-) > > > After much tinkering, I think I have a simpler solution.  Just make > > the inverse mapping accessible via an attribute,

Re: python logging filters

2009-11-28 Thread Vinay Sajip
On Nov 27, 1:11 pm, Grimsqueaker wrote: > When I add a Filter to a Handler, everything works as expected (ie. > all messages sent from Loggers below the Filter's level are allowed > through), but when I add the Filter directly on to the Logger, only > that Logger is blocked, regardless of the cont

Re: Some Basic questions on the use of CTRL and ALT Keys

2009-11-28 Thread Lie Ryan
On 11/28/2009 6:20 PM, joy99 wrote: I was writing a transliteration program from Bengali to English and vice versa. The program using Unicode chart is giving me perfect outputs in Bengali and vice versa with Bengali input -> English. I wanted to add some more power to the key board entry scheme,

Re: Feature request: String-inferred names

2009-11-28 Thread Steven D'Aprano
On Fri, 27 Nov 2009 20:02:31 -0800, The Music Guy wrote: > That PEP seems to pretty clearly state that it applies only to the 3.x > branch and not to the 2.x branch. Is there maybe a slim chance of > getting my idea added to 2.7, or even 2.8? :D The only new features being added to 2.7 are featu

Re: need clarification on -0

2009-11-28 Thread Steven D'Aprano
On Fri, 27 Nov 2009 23:09:06 -0800, moijes12 wrote: > Hi > > I know the value -0 is quite meaningless and makes little sense. Actually, when it comes to floating point values, it is very useful to be able to distinguish between -0 and +0. > But I > was just fiddling.I am unable to figure out

Re: Feature request: String-inferred names

2009-11-28 Thread Lie Ryan
On 11/28/2009 3:08 PM, The Music Guy wrote: As for your code, I haven't seen it, so it would be hard for me to say exactly how the new syntax would come into play. What I can tell you, however, is that the parts of your code that would use it would probably be easier to read and change to anyone