Re: Do you feel bad because of the Python docs?

2013-03-05 Thread Bob Hanson
ought I'd try one more time. I had wanted to report doc bugs, too, as I used to do copy and line editing. I seem to be able to find typos and such rather easily, but reporting said bugs -- not so easy. Something seems amiss, I'd say. It may be just me, but the point still stands. --Bob Hanso

Re: Do you feel bad because of the Python docs?

2013-03-05 Thread Bob Hanson
thing seems amiss, I'd say. It may be just me, but the point still stands. --Bob Hanson -- Hanson's Heuristic: Ninety-eight percent of what I think I know is bullshit. The rest is crap. -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you feel bad because of the Python docs?

2013-03-05 Thread Bob Hanson
thing seems amiss, I'd say. It may be just me, but the point still stands. --Bob Hanson -- Hanson's Heuristic: Ninety-eight percent of what I think I know is bullshit. The rest is crap. -- http://mail.python.org/mailman/listinfo/python-list

Re: Do you feel bad because of the Python docs?

2013-03-08 Thread Bob Hanson
On Wed, 06 Mar 2013 03:12:43 +, Mark Lawrence wrote: > On 06/03/2013 01:43, Bob Hanson wrote: > > > [problem reporting bugs] > > You'll be delighted to know that everybody will have to sign a > contributor agreement if they're supplying a patch file on

Re: Do you feel bad because of the Python docs?

2013-03-08 Thread Bob Hanson
On 06 Mar 2013 03:38:36 GMT, Steven D'Aprano wrote: > On Tue, 05 Mar 2013 17:51:36 -0800, Bob Hanson wrote: > > > [trouble reporting bugs] > > Works for me. > > Please try again, and if it still does not work, please email me off-list > and I will help you eith

Re: Do you feel bad because of the Python docs?

2013-03-08 Thread Bob Hanson
On Wed, 06 Mar 2013 18:50:35 -0500, Terry Reedy wrote: > On 3/6/2013 2:48 PM, rh wrote: > > > [Bob Hanson wrote:] > > > > > I've tried twice to register with the bug tracker -- including > > > just before sending this post. [...] > > > > >

Re: [Python-Help] how does the % work?

2013-03-22 Thread bob gailer
''') % (name, quest, color) TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple' -- Bob Gailer 919-636-4239 Chapel Hill NC -- http://mail.python.org/mailman/listinfo/python-list

Re: Ubuntu package "python3" does not include tkinter

2013-04-22 Thread Bob Martin
in 695509 20130422 081727 Steven D'Aprano wrote: >I think that if you are worrying about the overhead of the tkinter >bindings for Python, you're guilty of premature optimization. The tkinter >package in Python 3.3 is trivially small, under 2 MB. "trivially small"? 30 years ago a small mainfram

Re: [Python-Help] help to code...

2013-05-02 Thread bob gailer
On 5/2/2013 9:50 AM, leonardo selmi wrote: Please in future post plain text. -- http://mail.python.org/mailman/listinfo/python-list

StringVar() IntVar() vs. Dictionary of same

2006-01-16 Thread Bob Greschke
ting all of the StringVars and IntVars into a dictionary (like Vars = {"barcode":StringVar()...}) and accessing them that way? Just roughly what do you think the effect would be? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: StringVar() IntVar() vs. Dictionary of same

2006-01-17 Thread Bob Greschke
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Bob Greschke" <[EMAIL PROTECTED]> writes: >> Just roughly what do you think the effect would be? > > Either extremely slight or else nonexistent. I kinda thought

Off Topic (OT) Message

2006-01-20 Thread Bob Harding
  We are looking for a 1981 graduate from Gaithersburg High School, Maryland. We believe he may frequent this list, hence this post. Please contact us at [EMAIL PROTECTED]. Thank you. Bob/Mary Harding -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem Solved

2006-07-16 Thread costello . bob
dylpkls91 wrote: > Thank you all for your responses. > > I have managed to figure out a solution using XML RPC which fits my > needs perfectly. Mind posting it for us lesser beings? ;) -- http://mail.python.org/mailman/listinfo/python-list

Tkinter StringVar mystery

2006-07-17 Thread Bob Greschke
uot;:", ":"+Where+":" return Everything works as it should, except when the Button is clicked BC is an empty str in test(). How come? (I really have NO clue how that Command class works, but I use it like crazy. Is it the problem?) Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Coding style

2006-07-17 Thread Bob Greschke
ently, > then you should do the same. > I'd go even one step further. Turn it into English (or your favorite non-computer language): 1. While list, pop. 2. While the length of the list is greater than 0, pop. Which one makes more sense? Guess which one I like. CPU cycles be damned. :) Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Which Pyton Book For Newbies?

2006-07-24 Thread Bob Sinclar
Web programming is all about stdin & stdout. Recommanded practice before going further. On Monday 24 July 2006 20:08, John Salerno wrote: > Gerhard Fiedler wrote: > > While I don't doubt that there are many applications that are well-suited > > for web apps and that there are a number of good reas

tkinter: Button color Solaris/Linux

2006-08-14 Thread Bob Greschke
that color while Button-1 is being held down, and the background continues to stay that color when Button-1 is released. The background only turns green when the user moves the pointer off of the button. Can that be fixed, or is that an X-Windows thing? Thanks! Bob -- http://mail.python.o

Re: tkinter: Button color Solaris/Linux

2006-08-14 Thread Bob Greschke
"Bob Greschke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a GUI where the background of the "GO" button, for example, turns >green while the associated action is running. On Windows it works fine, >but on Solaris and Linux the button

Optimization of __len__() in cgi.py

2006-08-16 Thread Bob Kline
implementation of keys() reduces the amount of time taken by several orders of magnitude: def keys(self): return {}.fromkeys([i.name for i in self.list]).keys() Is there a better place for submitting suggestions like this? Bob Kline -- http://mail.python.org/mailman/listinfo/python

Re: Optimization of __len__() in cgi.py

2006-08-16 Thread Bob Kline
n which in this case would be justified, given the documentation of the keys() method quoted above). Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Optimization of __len__() in cgi.py

2006-08-16 Thread Bob Kline
Sybren Stuvel wrote: > FieldStorage.__nonzero__ tried first if it exists. You might want to > use that for more optimization. Excellent suggestion! It would be nice if this were adopted to supplement the original optimization, rather than replace it. Bob -- http://mail.python.org/m

Re: Optimization of __len__() in cgi.py

2006-08-16 Thread Bob Kline
Georg Brandl wrote: > Post a RFE to the Python Tracker at > http://sourceforge.net/tracker/?group_id=5470&atid=355470 > > If you want, assign it to me (gbrandl). Done, thanks. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: getting database column names from query

2006-08-16 Thread Bob Kline
Jason Nordwick wrote: > I'm using MySQLdb and can connect and issue queries that return result > sets, but I how do I get the column names for those result sets? [d[0] for d in k.description] Cheers, Bob -- http://mail.python.org/mailman/listinfo/python-list

Overriding traceback print_exc()?

2006-10-31 Thread Bob Greschke
to alter the output of exceptions that I am looking for, but I'm after those pesky ones that should never happen. :) Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Extracting 3-byte integers

2006-06-26 Thread Bob Greschke
them one at a time and doing the math? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting 3-byte integers

2006-06-27 Thread Bob Greschke
I'll have to convert them. To me balancing my checkbook involves higher "math". :) Bob -- http://mail.python.org/mailman/listinfo/python-list

Subclassing Tkinter Buttons

2006-08-31 Thread Bob Greschke
kw confuse me and I can't seem to find simple enough examples in my mountain of books. Thanks! Bob System = platform[:3].lower() . . class BButton(Button): if System == "win": Make a button with " " before and after text else: Make a button usi

Tkinter window focusing or selecting

2006-09-04 Thread Bob Greschke
overed up. Is there something else I should be calling after the .deiconify() and .lift() to make sure the window get 'activated' (or what ever that state is)? This is on Linux at this point. Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Two ethernet cards/networks (still)

2006-09-07 Thread Bob Greschke
has a fixed IP address. It's on Windows at this time if that makes any difference. Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Two ethernet cards/networks (still)

2006-09-10 Thread Bob Greschke
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Greschke wrote: > The reason that "binding to a specific address is almost never used for a > client" is because it's the server destination address that the network >

Re: Python on handhelds

2006-09-11 Thread Bob Greschke
man/listinfo/pythonce > > > Luke Dunstan > NSBasic (which has a CE version) is pretty nice for PalmOS. Making applications is pretty straightforward if you don't need to access serial ports and stuff like that. Nice IDE too. Bob -- http://mail.python.org/mailman/listinfo/python-list

Tkinter Text widget incremental search

2006-09-28 Thread Bob Greschke
you search the text of the Text() for a string like "ff" and get back the proper index position (line.char) AND have that take into account word wrapping? Text().get(0.0, END).split("\n") returns a bunch of lines, but one line in the List may be many text widget/screen lines.

Need old pywin32/win32all for Win95

2007-01-02 Thread Bob Greschke
Does anyone have an old version of this? I've got some old OEM stuff that will only handle Win95 because of some custom hardware drivers. The build 200 on sourceforge of pywin32 isn't old enough. I'm trying to get pyserial up and running. Python/Tkinter does OK at 233MHz! :

Getting Tkinter Text contents before destruction

2006-02-06 Thread Bob Greschke
t;", ..., since that one function handles all of the frames in the program...or would that even work? How can I do this? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter, X-windows and ebay

2006-02-10 Thread Bob Greschke
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Bob Greschke" <[EMAIL PROTECTED]> writes: >> What I came up with was the user can just create a text file (a kind >> of a transaction log of what things were don

A C-like if statement

2006-02-23 Thread Bob Greschke
ou don't have to have another like that specifically gets the index of the "3". Is there a way to do this in Python? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: A C-like if statement

2006-02-23 Thread Bob Greschke
"Roy Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bob Greschke <[EMAIL PROTECTED]> wrote: >>I miss being able to do something like this in Python >> >>1f (I = a.find("3")) != -1: >>print "It's here:

properties vs. eval()

2005-05-04 Thread Bob Rogers
Given this class: class C(object): def set_x(self, x): self._x = x def get_x(self): return self._x x = property(get_x, set_x) This use of compile() and eval() works as I expected it to: c = C() c.x = 5000 n = '\'five thousand\'' code = compile('c.x

Re: properties vs. eval()

2005-05-05 Thread Bob Rogers
So you're saying you don't know the answer? The question wasn't "should I use setattr?" -- http://mail.python.org/mailman/listinfo/python-list

Tkinter Return/Enter key handling

2005-05-18 Thread Bob Greschke
I have a Tkinter Text() widget in a program that the user can type stuff into. Most of our keyboards have the regular keys with a "Return" key, and a numeric keypad with an "Enter" key. The Return key generates events with "" for the keysym, and the Enter key generates events with "" as the k

Re: Tkinter Return/Enter key handling

2005-05-18 Thread Bob Greschke
Sorry. Yeah, Linux. Eww. Ick. Don't want to mess with .Xdefaults. It works, so I guess I'll just keep the .bind. Thanks, Phil! "phil" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you are talking Linux there's .Xdefaults > Which I had to resort to for tn5250. > For Tkinter

tkinter, option_add, entry field trouble

2005-06-05 Thread Bob Greschke
quot;globally"? Setting these two options in the Entry() statements themselves works OK. I've just got about 200 Entry statements that I was hoping to not have to edit. :) This is on Linux FC1, Python 2.3. Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter, option_add, entry field trouble

2005-06-05 Thread Bob Greschke
Yahoo! That was it. When is Grayson coming out with a new version of "Python and Tkinter Programming"? Mine is getting pretty full of pen & ink changes. :) Nice tip, too! Thanks! <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I think you have to spell it Root.option_add("*En

Want to build a binary header block

2007-04-30 Thread Bob Greschke
more fields in Block than in this example and they are all kinds of types not just H's and B's. What I really want is a C struct union. :) How would I do this? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: SEO - Search Engine Optimization - Seo Consulting

2007-05-01 Thread Bob Phillips
You bottom posters really are a bunch of supercilious, self-righteous bigots. Personally, I find bottom-posting like reading a book backwards ... it doesn't work for me. And regardless of his response, Mr Bruney IS an MVP, he is clearly knowledgeable in his subject, and his book is well enough

Re: SEO - Search Engine Optimization - Seo Consulting

2007-05-01 Thread Bob Phillips
That is the oft-quoted, idiotic type of example. The reality is that if we follow the thread, we know the question, we only want to see the answer, not wade through a morass of stuff we have already seen. If we haven't seen it, guess what, we can go and read it. "funfly3" <[EMAIL PROTECTED]>

Adding a list of descriptors to a class

2007-08-07 Thread Bob B.
ry adding self.__class__.__dict__[attr] = MyDesc(attr) in MyClass's __init__ method, I get the error: "TypeError: 'dictproxy' object does not support item assignment" Any ideas? Thanks, Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding a list of descriptors to a class

2007-08-07 Thread Bob B.
> Probably the simplest thing is to just add the attributes after the > class body, e.g.:: > > >>> class MyClass(object): > ... pass > ... > >>> for attr in ['attr1', 'attr2']: > ... setattr(MyClass, attr, MyDesc(attr)) > ... > >>> c = MyClass() > >>>

Re: (Re)announcing APL 2007

2007-08-14 Thread Bob Armstrong
On Aug 6, 7:20 am, Paul Mansour <[EMAIL PROTECTED]> wrote: > APL2007 Roll Call: Is anyone going to this? I'm thinking of going also , setting up some arrangement to provide an introductory tutorial to my free and open 4th.CoSy . My website is transiting between hosts so I don't recommend even lo

Un(der)documented bits of cgi.py

2007-09-15 Thread Bob Kline
night, suddenly breaking one's software. Can anyone think of a good reason why it would not be desirable to expose a publicly documented means of detecting the condition described above? Cheers and thanks! Bob Kline -- http://mail.python.org/mailman/listinfo/python-list

Re: Un(der)documented bits of cgi.py

2007-09-17 Thread Bob Kline
Aahz wrote: > What I suggest doing is submitting a doc patch to > http://bugs.python.org/ Done. Thanks for the suggestion. Bob -- http://mail.python.org/mailman/listinfo/python-list

Python on Intel A110?

2007-10-23 Thread Bob Greschke
Will the "stock" Windows version of Python install on a Samsung Q1U-EL UMPC running Vista and with an Intel A110 processor? I want to do some development and just happened to think about this. I don't know what these processors are compatible with at the binary level. Thanks!

context managers and co-routines

2007-01-12 Thread Bob . Sidebotham
): ... x = yield y with foo(): ... which is not so pretty. What I'd like is some way to transparently save and restore context over a yield, but I don't see an easy way to do this. Any suggestions? Thanks, Bob Sidebotham -- http://mail.python.org/mailman/listinfo/python-list

Fixed length lists from .split()?

2007-01-26 Thread Bob Greschke
do I just have to check the length of Parts and loop to add the required missing items (this one would just take Parts+=[""], but there are other types of lines in the file that have about 10 "fields" that also have this problem)? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: time series data and NumPy

2007-01-26 Thread Bob Greschke
at. Would that help? > > Actually that might help, as all I need the date for is to index > values. > > Thanks, I'll give it a spin. > > jab You're using the Python-MySQL module mysqldb, right? You can select the data from the database and have MySQL do

Re: Fixed length lists from .split()?

2007-01-26 Thread Bob Greschke
On 2007-01-26 11:13:56 -0700, Duncan Booth <[EMAIL PROTECTED]> said: > Bob Greschke <[EMAIL PROTECTED]> wrote: > >> Is there a fancy way to get Parts=Line.split(";") to make Parts always >> have three items in it, or do I just have to check the length o

Re: Tkinter Scrolling

2007-02-01 Thread Bob Greschke
else to it. Of course you are then limited to the 'typewriter layout' of widget placement. The typical way to do it is to make a scrolling canvas and pack the buttons and other stuff into an empty Frame() and then pack the frame on to the canvas, which I haven't had to do yet. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: Fixed length lists from .split()?

2007-02-01 Thread Bob Greschke
o happen which is just fine in this program's case. Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: It is good to blow up a marketplace full of people buying and selling food

2007-02-04 Thread Bob Kolker
Frank Arthur wrote: > > Suicide truck bomber kills at least 130 in Baghdad > By Tina Susman, Times Staff Writer > 11:23 AM PST, February 3, 2007 The sound of the exploding bomb is the Muslim Call to Prayer. Allah hu'Akbar. Bob Kolker -- http://mail.python.org/mailman/listinfo/python-list

SPAM

2007-11-14 Thread just bob
-- http://mail.python.org/mailman/listinfo/python-list

Re: SPAM

2007-11-14 Thread just bob
"John Bean" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 14 Nov 2007 11:04:35 -0800, "just bob" > <[EMAIL PROTECTED]> wrote: > >> > > Your SPAM appears to be non-existent. Vapourware. Not real. > > Shame, I

Re: SPAM

2007-11-15 Thread just bob
"Lew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > just bob wrote: >> "John Bean" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> On Wed, 14 Nov 2007 11:04:35 -0800, "just bob" >>&

Re: Writing backwards compatible code - when?

2006-04-18 Thread Bob Greschke
Is there a list of all of the Python commands and modules that tell when (what version) they were added to Python? I was hoping the new Essential Reference would have it, but it doesn't. Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Canvas items into widgets?

2006-05-23 Thread Bob Greschke
tooltip that reports what the temperature of that point was. The concept: Rec = can.create_rectangle() Wig = (Then a miracle occurs) Tooltip(Wig, "1500C - She's gonna blow!!") Thanks! Bob :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't wish to give up on a Tkinter GUI Builder :(

2006-05-23 Thread Bob Greschke
er than try to get some other program to do it for you. I tried rapyd today, too. Started it, drug a button to the frame, but then couldn't figure out how to set the text of the button. Deleted it. :) Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: John Bokma harassment

2006-05-24 Thread Bob Felts
John Bokma <[EMAIL PROTECTED]> wrote: > "Ant" <[EMAIL PROTECTED]> wrote: > > > I have no particular affinity for Xah's views, but what does get up my > > nose is usenet Nazism. > > That's because you're clueless. Count me among the clueless, then. I just wrote to DreamHost and asked that they

Tkinter canvas zooming (sortof)

2006-05-26 Thread Bob Greschke
o make it bigger the Toplevel frame itself gets bigger. I want the frame to stay the same size, but still be resizable. I have scrollbars, and they seem to work ok, and scrollregion seems to do what it should, but I can't figure out how to get them to all work together to do what I w

Re: Tkinter canvas zooming (sortof)

2006-05-26 Thread Bob Greschke
"Bob Greschke" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have a program that sucks in a list of equipment positions (Lats/Longs), >opens a Toplevel frame with a canvas set to, for example, 700x480 pixels, >and then does all of the calculations and

Re: Does anyone else use this little idiom?

2008-02-04 Thread Bob Martin
in 332496 20080204 102153 "=?ISO-8859-1?Q?BJ=F6rn_Lindqvist?=" <[EMAIL PROTECTED]> wrote: >> In Python, the direct translation of this is a for loop. When the >> index doesn't matter to me, I tend to write it as: >> >> for _ in xrange (1,n): >>some code >> >> An alternative way of indicating

Re: Return value of an assignment statement?

2008-02-23 Thread Bob Martin
in 335100 20080222 123210 Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Fri, 22 Feb 2008 08:12:56 +, Marc 'BlackJack' Rintsch wrote: > >> A "variable" in >> programming languages is composed of a name, a memory location, possibly >> a type and a value. In C-like languages, where you put values

Re: Distributed App - C++ with Python for Portability?

2008-03-10 Thread Bob Martin
in 337513 20080310 115744 "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >Roopan wrote: > >> Hello! >> >> I am looking at developing an enterprise-grade distributed data >> sharing application - key requirements are productivity and platform >> portability. >> >> Will it be sensible to use C++ for p

Re: Distributed App - C++ with Python for Portability?

2008-03-11 Thread Bob Martin
in 337600 20080310 222850 [EMAIL PROTECTED] wrote: >On Mar 10, 2:21 pm, Bob Martin <[EMAIL PROTECTED]> wrote: > >> >> Java is more portable than most other languages, especially if your app >> needs a gui. > >The promise of Java portability was one of the bi

Re: what IDE is the best to write python?

2009-02-03 Thread Bob Martin
in 100686 20090203 181957 Catherine Heathcote wrote: >Tim Rowe wrote: >> 2009/2/3 Jervis Whitley : >> >>> real programmers use ed. >> >> Ed? Eee, tha' were lucky. We had to make holes in Hollerith cards wi' >> our bare teeth... >> > >You had teeth!?! > >Oh and hi, I shall be a new face in the cro

Change in cgi module's handling of POST requests

2009-02-10 Thread Bob Kline
[Didn't realize the mirror didn't work both ways] We just upgraded Python to 2.6 on some of our servers and a number of our CGI scripts broke because the cgi module has changed the way it handles POST requests. When the 'action' attribute was not present in the form element on an HTML page th

Re: Change in cgi module's handling of POST requests

2009-02-12 Thread Bob Kline
u provide more details? I think we should have enough specifics with what I've provided above to make it clear what's happening, but if you can think of anything I've left out which you think would be useful, let me know and I'll try to supply it. Cheers, Bob [1] I haven&

Re: Change in cgi handling of POST requests

2009-02-21 Thread Bob Kline
Aahz wrote: Interesting. Nobody has responded, so I suggest first filing a report using bugs.python.org and then asking on python-dev (with reference to your report). http://bugs.python.org/issue5340 Cheers, Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Having Issues with CMD and the 'python' command

2008-12-15 Thread bob gailer
ight PATH under System Variables & Click Edit. Add ;C:\python26 -- Bob Gailer Chapel Hill NC 919-636-4239 -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary

2008-10-26 Thread Bob Martin
in 86949 20081024 205720 "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: >Steven D'Aprano wrote: > >>On Fri, 24 Oct 2008 14:53:19 +, Peter Pearson wrote: >> >>> On 24 Oct 2008 13:17:45 GMT, Steven D'Aprano wrote: What are programmers coming to these days? When I was their age, we >>>

List of disk drives on Windows?

2008-05-20 Thread Bob Greschke
This MUST have been asked before, but I can't seem to Google the right thing.  How can I get a list of drives on a Windows box, like ["C:\", "D:\"], like I can if I do something like listdir("/Volumes") on a Mac? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: List of disk drives on Windows?

2008-05-22 Thread Bob Greschke
On 2008-05-20 13:18:08 -0600, Bob Greschke <[EMAIL PROTECTED]> said: This MUST have been asked before, but I can't seem to Google the right thing.  How can I get a list of drives on a Windows box, like ["C:\", "D:\"], like I can if I do something like listdir

Re: Books for learning how to write "big" programs

2008-06-06 Thread Bob Martin
in 69148 20080605 140635 [EMAIL PROTECTED] wrote: >On May 22, 12:49=A0pm, "Kurt Smith" <[EMAIL PROTECTED]> wrote: >> On Thu, May 22, 2008 at 10:55 AM, duli <[EMAIL PROTECTED]> wrote: >> > Hi: >> > I would like recommendations forbooks(in any language, not >> > necessarily C++, C, python) which have

bpython - fancy Python shell

2008-06-15 Thread Bob Farrell
ing, and it doesn't work on Windows (heard good reports about it working fine on a Mac though). -- Bob Farrell -- http://mail.python.org/mailman/listinfo/python-list

Re: interpreter vs. compiled

2008-07-25 Thread Bob Martin
in 75186 20080725 050433 Tim Roberts <[EMAIL PROTECTED]> wrote: >castironpi <[EMAIL PROTECTED]> wrote: >> >>Compiling a program is different than running it. A JIT compiler is a >>kind of compiler and it makes a compilation step. I am saying that >>Python is not a compiler and in order to impleme

Re: interpreter vs. compiled

2008-07-31 Thread Bob Martin
in 76135 20080731 090911 Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Thu, 31 Jul 2008 06:17:59 GMT, Tim Roberts <[EMAIL PROTECTED]> declaimed >the following in comp.lang.python: > > >> And again, I never said that it did. CPython is an interpreter. the >> user's code is never translated into

Re: Why prefer != over <> for Python 3.0?

2008-04-02 Thread Bob Martin
in 340625 20080402 094139 "Hendrik van Rooyen" <[EMAIL PROTECTED]> wrote: >John J. Lee wrote: > >>How did programmers manage back then in 32k? > >Some of the answers, in no particular sequence, are: > >Tight, small operating systems that did the minimum. Apart from the GUI stuff, mainframe operati

Re: Java or C++?

2008-04-14 Thread Bob Martin
in 342367 20080414 074410 [EMAIL PROTECTED] wrote: >Hello, I was hoping to get some opinions on a subject. I've been >programming Python for almost two years now. Recently I learned Perl, >but frankly I'm not very comfortable with it. Now I want to move on >two either Java or C++, but I'm not sure

Re: Java or C++?

2008-04-15 Thread Bob Martin
in 342436 20080414 160208 =?UTF-8?B?R3J6ZWdvcnogU8WCb2Rrb3dpY3o=?= <[EMAIL PROTECTED]> wrote: >> Hello, I was hoping to get some opinions on a subject. I've been >> programming Python for almost two years now. Recently I learned Perl, >> but frankly I'm not very comfortable with it. Now I want to

2's complement conversion. Is this right?

2008-04-18 Thread Bob Greschke
256)+Value3 if Value >= 0x80: Value -= 0x100 print Value For example: 16682720 = -94496 Should it be Value -= 0x101 so that I get -94497, instead? Thanks! Bob -- http://mail.python.org/mailman/listinfo/python-list

Re: 2's complement conversion. Is this right?

2008-04-18 Thread Bob Greschke
On 2008-04-18 14:37:21 -0600, Ross Ridge <[EMAIL PROTECTED]> said: > Bob Greschke <[EMAIL PROTECTED]> wrote: >> I'm reading 3-byte numbers from a file and they are signed (+8 to >> -8million). This seems to work, but I'm not sure it's right. >&

Re: 2's complement conversion. Is this right?

2008-04-18 Thread Bob Greschke
On 2008-04-18 16:04:37 -0600, George Sakkis <[EMAIL PROTECTED]> said: > On Apr 18, 5:26 pm, Bob Greschke <[EMAIL PROTECTED]> wrote: > >> On 2008-04-18 14:37:21 -0600, Ross Ridge >> <[EMAIL PROTECTED]> said: >> >> >> >>> Bob Gresc

Re: 2's complement conversion. Is this right?

2008-04-18 Thread Bob Greschke
On 2008-04-18 17:55:32 -0600, Ross Ridge <[EMAIL PROTECTED]> said: > George Sakkis <[EMAIL PROTECTED]> wrote: >> You'd better use a more precise timing method than finger counting, >> such as timeit. Twice as fast is probably a gross overestimation; on >> my box (Python 2.5, WinXP) avoiding unpa

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
On 2008-04-18 23:35:12 -0600, Ivan Illarionov <[EMAIL PROTECTED]> said: > On Sat, 19 Apr 2008 04:45:54 +, Ivan Illarionov wrote: > >> On Fri, 18 Apr 2008 22:30:45 -0500, Grant Edwards wrote: >> >>> On 2008-04-18, Bob Greschke <[EMAIL PROTECTED]> wrot

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
On 2008-04-18 21:33:34 -0600, Grant Edwards <[EMAIL PROTECTED]> said: > On 2008-04-18, Bob Greschke <[EMAIL PROTECTED]> wrote: > >> I'm on a Solaris 8 with Python 2.3.4 and when crunching >> through, literally, millions and millions of samples of >> seis

Re: 2's complement conversion. Is this right?

2008-04-19 Thread Bob Greschke
> > > www.greschke.com/unlinked/files/pocus.png > > > Darnit. www.greschke.com/unlinked/images/pocus.png -- http://mail.python.org/mailman/listinfo/python-list

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Bob Greschke
, Ross Ridge <[EMAIL PROTECTED]> >>> wrote: >> >>>> Ross Ridge <[EMAIL PROTECTED]> said: >> >>>>> If you have Python 2.5, here's a faster version: >> >>>>> from struct import * >>>>> unpa

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Bob Greschke
Something is fishy. I just ran this simple-minded thing and I'm, again, getting better times for ord() than I am for unpack() on a 2.8GHz OSX iMac with 2.5.1. This is the iterate so many times you can use your wristwatch method: #! /usr/bin/env python from os import system from struct

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Bob Greschke
On 2008-04-21 16:51:13 -0600, Bob Greschke <[EMAIL PROTECTED]> said: JUST COMPLETELY IGNORE THAT LAST ONE. What a dope. Here: #! /usr/bin/env python from os import system from struct import unpack print "unpack 1" system("date") for x in xrange(0, 1): V

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Bob Greschke
On 2008-04-21 17:06:39 -0600, Bob Greschke <[EMAIL PROTECTED]> said: On 2008-04-21 16:51:13 -0600, Bob Greschke <[EMAIL PROTECTED]> said: JUST COMPLETELY IGNORE THAT LAST ONE. What a dope. Here: #! /usr/bin/env python from os import system from struct import unpack print "

Re: Python Success stories

2008-04-23 Thread Bob Woodham
On 2008-04-22, Paul Hankin <[EMAIL PROTECTED]> wrote: > On Apr 22, 5:50 pm, Jérémy Wagner <[EMAIL PROTECTED]> wrote: >> Sure. Python is more readable than Perl, though I have found Python >> to have a weird behavior regarding this little issue : >> >> How can you explain that Python doesn't support

Re: RE: Lucky gay sucking cock while butt fucked deep

2008-04-24 Thread Bob Martin
in 344018 20080422 231351 "Blubaugh, David A." <[EMAIL PROTECTED]> wrote: >Is there a way to block these messages. I do not want to be caught >with filth such as this material. I could lose my job with Belcan with >evil messages such as these messages. =20 So don't repeat them! -- http://mail

<    1   2   3   4   5   6   7   >