Re: Help with report

2005-07-11 Thread Christopher Subich
ChrisH wrote: > Oh. The one other thing I forgot to mention is that the data needs to be > already updated every 10 minutes or so automatically. You know, this is the most concise example of feature-creep in a specification that I've ever seen. -- http://mail.python.org/mailman/listinfo/python-

Re: Fwd: Should I use "if" or "try" (as a matter of speed)?

2005-07-12 Thread Christopher Subich
Dark Cowherd wrote: > But one advise that he gives which I think is of great value and is > good practice is > "Always catch any possible exception that might be thrown by a library > I'm using on the same line as it is thrown and deal with it > immediately." That's fine advice, except for when it

Re: python parser

2005-07-12 Thread Christopher Subich
tuxlover wrote: > I have to write a verilog parser in python for a class project. I was > wondering if all you folks could advise me on choosing the right python > parser module. I am not comfortable with lex/yacc and as a result find > myself strugging with any module which use lex/yacc syntax/phi

Re: Slicing every element of a list

2005-07-12 Thread Christopher Subich
Gary Herron wrote: > Alex Dempsey wrote: >> for line in lines: >>line = line[1:-5] >>line = line.split('\"\t\"') > This, in fact, did do the operation you expected, but after creating the > new value and assigning it to line, you promptly threw it away. (Because > the loop then went back

Re: Fwd: Should I use "if" or "try" (as a matter of speed)?

2005-07-12 Thread Christopher Subich
Thomas Lotze wrote: > Neither does it to me. What about > > try: > f=file('file_here') > except IOError: #File doesn't exist > error_handle > else: > do_setup_code > do_stuff_with(f) > > (Not that I'd want to defend Joel's article, mind you...) That works. I'm still not used to

Re: all possible combinations

2005-07-13 Thread Christopher Subich
rbt wrote: > Expanding this to 4^4 (256) to test the random.sample function produces > interesting results. It never finds more than 24 combinations out of the > possible 256. This leads to the question... how 'random' is sample ;) sample(population,k): Return a k length list of unique element

Re: Help - Classes and attributes

2005-07-13 Thread Christopher Subich
rh0dium wrote: > Hi all, > > I believe I am having a fundamental problem with my class and I can't > seem to figure out what I am doing wrong. Basically I want a class > which can do several specific ldap queries. So in my code I would have > multiple searches. But I can't figure out how to do

Re: threads and sleep?

2005-07-14 Thread Christopher Subich
Jp Calderone wrote: > On 14 Jul 2005 05:10:38 -0700, Paul Rubin > <"http://phr.cx"@nospam.invalid> wrote: > >> Andreas Kostyrka <[EMAIL PROTECTED]> writes: >> >>> Basically the current state of art in "threading" programming doesn't >>> include a safe model. General threading programming is unsaf

Re: Changing size of Win2k/XP console?

2005-07-14 Thread Christopher Subich
Sheeps United wrote: > I'm far from sure if it's the right one, but I think it could be > SetConsoleScreenBufferSize from Kernel32. Hrr, for some reason I have nasty > feeling in back of my head... That could also be totally wrong way of > approaching. I have the source code to a win32-console

Re: main window in tkinter app

2005-07-20 Thread Christopher Subich
William Gill wrote: > O.K. I tried from scratch, and the following snippet produces an > infinite loop saying: > > File "C:\Python24\lib\lib-tk\Tkinter.py", line 1647, in __getattr__ > return getattr(self.tk, attr) > > If I comment out the __init__ method, I get the titled window, and pr

Re: main window in tkinter app

2005-07-20 Thread Christopher Subich
William Gill wrote: > That does it!, thanks. > > Thinking about it, when I created a derived class with an __init__ > method, I overrode the base class's init. It should have been > intuitive that I needed to explicitly call baseclass.__init(self), it > wasn't. It might have hit me if the f

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Christopher Subich
Peter Hansen wrote: > stringy wrote: > >> I have a program that shows a 3d representation of a cell, depending on >> some data that it receives from some C++. It runs with wx.timer(500), >> and on wx.EVT_TIMER, it updates the the data, and receives it over the >> socket. > > > It's generally ina

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Christopher Subich
Jp Calderone wrote: > In the particular case of wxWidgets, it turns out that the *GUI* blocks > for long periods of time, preventing the *network* from getting > attention. But I agree with your position for other toolkits, such as > Gtk, Qt, or Tk. Wow, I'm not familiar with wxWidgets; how's

Re: Need to interrupt to check for mouse movement

2005-07-21 Thread Christopher Subich
Paul Rubin wrote: > Huh? It's pretty normal, the gui blocks while waiting for events > from the window system. I expect that Qt and Tk work the same way. Which is why I recommended Twisted for the networking; it integrates with the toolkit event loops so it automagically works: http://twistedm

Re: Help with regexp please

2005-07-22 Thread Christopher Subich
Scott David Daniels wrote: > Felix Collins wrote: >> I have an "outline number" system like >> 1 >> 1.2 >> 1.2.3 >> I want to parse an outline number and return the parent. > > Seems to me regex is not the way to go: > def parent(string): > return string[: string.rindex('.')] Absolute

Re: find a specified dictionary in a list

2005-07-22 Thread Christopher Subich
Odd-R. wrote: > On 2005-07-22, John Machin <[EMAIL PROTECTED]> wrote: > > Odd-R. wrote: > >> I have this list: > >> > >> [{'i': 'milk', 'oid': 1}, {'i': 'butter', 'oid': 2},{'i':'cake','oid':3}] > >> > >> All the dictionaries of this list are of the same form, and all the oids > >> are distinct.

Re: Help with regexp please

2005-07-22 Thread Christopher Subich
Terry Hancock wrote: > I think this is the "regexes can't count" problem. When the repetition > count matters, you usually need something else. Usually some > combination of string and list methods will do the trick, as here. Not exactly, regexes are just fine at doing things like "first" and "l

Re: "Aliasing" an object's __str__ to a different method

2005-07-22 Thread Christopher Subich
ncf wrote: > Well, suffice to say, having the class not inherit from object solved > my problem, as I suspect it may solve yours. ;) Actually, I did a bit of experimenting. If the __str__ reassignment worked as intended, it would just cause an infinite recursion. To paste the class definition a

Re: Location of tk.h

2005-07-22 Thread Christopher Subich
none wrote: > Probably a stupid question, but... > > I was attempting to install the Tkinter 3000 WCK. It blew up trying to > build _tk3draw. The first error is a 'No such file or directory' for > tk.h. I can import and use Tkinter just fine, so I'm not sure what is > what here. You can imp

Re: return None

2005-07-23 Thread Christopher Subich
Grant Edwards wrote: > Personally, I don't really like the idea that falling off the > botton of a function implicitly returns None. It's just not > explicit enough for me. My preference would be that if the > function didn't execute a "return" statement, then it didn't > return anyting and attem

Re: "Aliasing" an object's __str__ to a different method

2005-07-23 Thread Christopher Subich
Paolino wrote: > Little less ugly: > In [12]:class A(object): >: def __str__(self):return self.__str__() >: def str(self):return 'ciao' >: def setStr(self):self.__str__=self.str >: > > In [13]:a=A() > > In [14]:a.setStr() > > In [15]:str(a) > Out[15]:'

Re: return None

2005-07-23 Thread Christopher Subich
Christopher Subich wrote: > print '%s returns:', retval Not that it matters, but this line should be: print '%s returns:' % func.__name__, retval -- http://mail.python.org/mailman/listinfo/python-list

Re: consistency: extending arrays vs. multiplication ?

2005-07-24 Thread Christopher Subich
Soeren Sonnenburg wrote: > On Sat, 2005-07-23 at 23:35 +0200, Marc 'BlackJack' Rintsch wrote: >>Both operate on the lists themselves and not on their contents. Quite >>consistent if you ask me. > But why ?? Why not have them operate on content, like is done on > *arrays ? Because they're lists,

Re: return None

2005-07-24 Thread Christopher Subich
Repton wrote: > 'Well, there's your payment.' said the Hodja. 'Take it and go!' +1: the koan of None "Upon hearing that, the man was enlightened." -- http://mail.python.org/mailman/listinfo/python-list

Re: can list comprehensions replace map?

2005-07-28 Thread Christopher Subich
Andrew Dalke wrote: > Steven Bethard wrote: > >>Here's one possible solution: >> >>py> import itertools as it >>py> def zipfill(*lists): >>... max_len = max(len(lst) for lst in lists) > > > A limitation to this is the need to iterate over the > lists twice, which might not be possible if one o

Re: A replacement for lambda

2005-07-29 Thread Christopher Subich
Mike Meyer wrote: > My choice for the non-name token is "@". It's already got magic > powers, so we'll give it more rather than introducing another token > with magic powers, as the lesser of two evils. Doesn't work. The crux of your change isn't introducing a meaning to @ (and honestly, I prefe

Re: A replacement for lambda

2005-07-30 Thread Christopher Subich
Paul Rubin wrote: > Christopher Subich <[EMAIL PROTECTED]> writes: > >>My personal favourite is to replace "lambda" entirely with an >>"expression comprehension", using < and > delimeters. > > > But how does that let you get more tha

Re: A replacement for lambda

2005-07-30 Thread Christopher Subich
Scott David Daniels wrote: > What kind of shenanigans must a parser go through to translate: > < > > this is the comparison of two functions, but it looks like a left- > shift on a function until the second with is encountered. Then > you need to backtrack to the shift and convert it to a pa

Re: A replacement for lambda

2005-07-30 Thread Christopher Subich
Paolino wrote: > why (x**2 with(x))<(x**3 with(x)) is not taken in consideration? Looks too much like a generator expression for my taste. Also, syntax could be used with 'for' instead of 'with' if PEP343 poses a problem, whereas (expr for params) is identically a generator expression. > If 'w

Re: A replacement for lambda

2005-07-30 Thread Christopher Subich
Paddy wrote: > Christopher Subich <[EMAIL PROTECTED]> writes: > >>Basically, I'd rewrite the Python grammar such that: >>lambda_form ::= "<" expression "with" parameter_list ">" > > > I do prefer my parameter list to com

Re: Thaughts from an (almost) Lurker.

2005-07-31 Thread Christopher Subich
Robert Kern wrote: > My experience with USENET suggests that there is always a steady stream > of newbies, trolls, and otherwise clueless people. In the absence of > real evidence (like traceable headers), I don't think there's a reason > to suspect that there's someone performing psychological

Re: Wheel-reinvention with Python

2005-08-01 Thread Christopher Subich
Paul Rubin wrote: > I think my approach is in some sense completely typical: I don't want > to install ANYTHING, EVER. I've described this before. I want to buy > a new computer and have all the software I'll ever need already on the > hard drive, and use it from that day forward. By the time th

Re: Standard Threads vs Weightless Threads

2005-08-01 Thread Christopher Subich
yoda wrote: > 1)What is the difference (in terms of performance, scalability,[insert > relevant metric here]) between microthreads and "system" threads? System-level threads are relatively heavyweight. They come with a full call stack, and they take up some level of kernel resources [generally

Re: 2-player game, client and server at localhost

2005-08-02 Thread Christopher Subich
Michael Rybak wrote: > That's the problem - "or a player input comes in". As I've explained, > this happens a dozen of times per second :(. I've even tried not > checking for player's input after every frame, but do it 3 times more > rare (if framecount % 3 == 0 : process_players_input()). Well, I

Re: 2-player game, client and server at localhost

2005-08-02 Thread Christopher Subich
Michael Rybak wrote: > CS> There's the key. How are you processing network input, specifically > CS> retrieving it from the socket? > > A "sock" class has a socket with 0.1 timeout, and every time I > want anything, I call it's read_command() method until it returns > anything. read_command(

Re: 2-player game, client and server at localhost

2005-08-03 Thread Christopher Subich
Michael Rybak wrote: > As stated above, that's how I'm trying it right now. Still, if doing > it turn-base, I would have to create a new thread every time. >I have some other questions though - please see below. No, you should never need to create a new thread upon receiving input. What you

Re: HELP:sorting list of outline numbers

2005-08-03 Thread Christopher Subich
Felix Collins wrote: > Using Decorate, Sort , Undecorate... > > works like a charm. As a one-liner, you can also deconstruct and rebuild the outline numbers: new_outline = ['.'.join(v) for v in (sorted([k.split('.') for k in old_outline]))] -- http://mail.python.org/mailman/listinfo/python-list

Re: cut & paste text between tkinter widgets

2005-08-03 Thread Christopher Subich
William Gill wrote: > Is there a simple way to cut and paste from a tkinter text widget to an > entry widget? I know I could create a mouse button event that triggers > a popup (message widget) prompting for cut/paste in each of the widgets > using a temp variable to hold the text, but I don't

Re: cut & paste text between tkinter widgets

2005-08-03 Thread Christopher Subich
Apologies in advance to anyone who has this post mangled, I use a couple Unicode characters at the end and Thunderbird wants to use UTF8 for the message encoding. Unless it does something weird, this post should still be legible... but I'm not going to rely on that. :) William Gill wrote: >> 2

Re: Python's CSV reader

2005-08-03 Thread Christopher Subich
Stephan wrote: > Can the CSV module be coerced to read two line formats at once or am I > better off using read and split? Well, readlines/split really isn't bad. So long as the file fits comfortably in memory: fi = open(file) lines = fi.readlines() evens = iter(lines[0::2]) odds = iter(lines[1

Re: Metaclasses and class variables

2005-08-04 Thread Christopher Subich
Jan-Ole Esleben wrote: > class Meta(type): > def __new__(cls, name, bases, d): > d['classvar'] = [] > return type.__new__(cls, name, bases, d) The problem is that __new__ is called upon object construction, not class definition, but you're trying to set the class variables at definitio

Re: cut & paste text between tkinter widgets

2005-08-04 Thread Christopher Subich
Repton wrote: >>This poses a small problem. I'm not sure whether this is a >>Win32-related issue, or it's because the PRIMARY selection isn't fully >>configured. > > > You need to select something first :-) > That doesn't work for inter-process communication, though, at least not with win32 n

Re: Replacement for keyword 'global' good idea? (e.g. 'modulescope' or 'module' better?)

2005-08-06 Thread Christopher Subich
John Roth wrote: > > "Mike Meyer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> So the only way to remove the global statement would be to have some >> way to mark the other interpretation, with say a "local" >> decleration. I thik that would be much worse than "global". For

Re: Proposed new collection methods

2005-08-06 Thread Christopher Subich
Mike Meyer wrote: > Another thread pointed out a couple of methods that would be nice to > have on Python collections: find and inject. These are taken from > http://martinfowler.com/bliki/CollectionClosureMethod.html >. > > find can be defined as: > > def find(self, test = None): >

Re: Proposed new collection methods

2005-08-06 Thread Christopher Subich
Robert Kern wrote: > Jeff Schwab wrote: >> Why are you retarded? Isn't the above code O(n)? >> >> Forgive me for not understanding, I'm still awfully new to Python >> (having come from Perl & C++), and I didn't see an explanation in the >> FAQ. > (s for s in iter(self) is test(s)) is a generato

Re: Proposed new collection methods

2005-08-07 Thread Christopher Subich
Jeff Schwab wrote: > Robert Kern wrote: >> Now, if I were to do >> >> item = g(self, test).next() >> >> the generator would execute the code until it reached the yield >> statement which happens when it finds the first item that passes the >> test. That item will get returned, and execution doe

Re: don't understand instanse creation

2005-08-09 Thread Christopher Subich
Maksim Kasimov wrote: > > Hello, > > i have a class, such as below. > when i try to make instances of the class, > fields __data1 and __data2 gets different values: __data1 behaves like private field, __data2 - like static > which is the thing i've missed? Firstly, you get interesting be

Re: Passing arguments to function - (The fundamentals are confusing me)

2005-08-09 Thread Christopher Subich
Gregory Piñero wrote: > Hey guys, would someone mind giving me a quick rundown of how > references work in Python when passing arguments into functions? The > code below should highlight my specific confusion: All arguments are passed by reference, but in Python equality rebinds the name. > >

Re: Passing arguments to function - (The fundamentals are confusing me)

2005-08-09 Thread Christopher Subich
Dennis Lee Bieber wrote: > In a more simplistic view, I'd reverse the phrasing... The name > "x" is assigned to the object "y" (implying it is no longer attached to > whatever used to have the name) No, because that'd imply that the object 'y' somehow keeps track of the names assigned to it

Re: Passing arguments to function - (The fundamentals are confusing me)

2005-08-09 Thread Christopher Subich
infidel wrote: >>in Python equality rebinds the name > > > Assignment (=) rebinds the name. Equality (==) is something else > entirely. Good catch. I was thinking of it as the "equals" operator. -- http://mail.python.org/mailman/listinfo/python-list

Re: Passing arguments to function - (The fundamentals are confusing me)

2005-08-09 Thread Christopher Subich
Rocco Moretti wrote: > Variables in Python are names. They aren't the cubbyholes into which you > put values, they are sticky notes on the front of the cubby hole. +1 MOTW (Metaphor of the Week) -- http://mail.python.org/mailman/listinfo/python-list

Re: Does any one recognize this binary data storage format

2005-08-09 Thread Christopher Subich
[EMAIL PROTECTED] wrote: > I am hoping someone can help me solve a bit of a puzzle. > > We are working on a data file reader and extraction tool for an old > MS-DOS accounting system dating back to the mid 80's. > > In the data files, the text information is stored in clearly readable > ASCII tex

Re: Does any one recognize this binary data storage format

2005-08-09 Thread Christopher Subich
Dejan Rodiger wrote: > 8003346488(10)=1DD096038(16) > 1D D0 96 03 8 > 80 03 96 D0 1D 00 > 80 03 96 d0 fd 41 Add E041 I'm pretty sure that the last full byte is a parity check of some sort. I still thing that Phone2 (..F1) is a typo and should be 41. Even if it's not, it could be a more detail

Re: Passing arguments to function - (The fundamentals are confusing me)

2005-08-09 Thread Christopher Subich
Gregory Piñero wrote: > So what if I do want to share a boolean variable like so: Well, the easiest way is to wrap it in a list: mybool = [True] mybool[0] = False mybool[0] = True and so on. Alternately, what is this boolean attached to that's so significant? Sharing an arbitrary boolean, with

Re: Does any one recognize this binary data storage format

2005-08-09 Thread Christopher Subich
Grant Edwards wrote: > That would just be sick. I can't imagine anybody on an 8-bit > CPU using FP for a phone number. Nobody on an 8-bit CPU would have a FPU, so I'll guarantee that this is done using only 8 or 16-bit (probably 8) integer math. -- http://mail.python.org/mailman/listinfo/python

Re: Does any one recognize this binary data storage format

2005-08-09 Thread Christopher Subich
Grant Edwards wrote: > And I'll guarantee that the difference between 333- and > 666- has to be more than 1-bit. There's no way that can be > the correct data unless it's something like an index into a > different table or a pointer or something along those lines. Absolutely. I hadn't ev

Re: Import question

2005-08-09 Thread Christopher Subich
ncf wrote: > Hmm...thanks for the replies. Judging by this, it looks like I might > still be in a slight perdiciment with doing it all, but time will tell. > I wish there were a way I could reference across multiple modules. > > Well, thanks for your help. Hopefully I'll be able to work out some >

Re: Does any one recognize this binary data storage format

2005-08-10 Thread Christopher Subich
Calvin Spealman wrote: > > Original Poster should send this off to thedailywtf.com I absolutely agree. This is a terrible programming practice. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with Regular Expressions

2005-08-10 Thread Christopher Subich
Paul McGuire wrote: > If your re demands get more complicated, you could take a look at > pyparsing. The code is a bit more verbose, but many find it easier to > compose their expressions using pyparsing's classes, such as Literal, > OneOrMore, Optional, etc., plus a number of built-in helper func

Re: wxPython and threads again

2005-08-10 Thread Christopher Subich
David E. Konerding DSD staff wrote: > The easiest approach, though, is to use the threadedselectreactor in Twisted > (you need > to check the HEAD branch out with subversion, because that reactor isn't > included in any releases). > With threadedselectreactor, it's easy to incorporate both the GU

Re: PEP 328, absolute/relative import

2005-08-10 Thread Christopher Subich
Ben Finney wrote: > Once PEP 328 is fully implemented, all bare 'import foo' statements > specify absolute imports (i.e. from sys.path only). To perform a > relative import (e.g. from current directory) will require different > syntax. I'm not completely familiar with either, but how will that inf

Re: regex help

2005-08-10 Thread Christopher Subich
jeff sacksteder wrote: > Regex questions seem to be rather resistant to googling. > > My regex currently looks like - 'FOO:.*\n\n' > > The chunk of text I am attempting to locate is a line beginning with > "FOO:", followed by an unknown number of lines, terminating with a > blank line. Clearly th

Unicode regular expressions -- buggy?

2005-08-10 Thread Christopher Subich
I don't think the python regular expression module correctly handles combining marks; it gives inconsistent results between equivalent forms of some regular expressions: >>> sys.version '2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]' >>>re.match('\w',unicodedata.normalize('NFD

Re: Catching stderr output from graphical apps

2005-08-12 Thread Christopher Subich
Bryan Olson wrote: > > Thanks. > > Yeah, guess I was naive to test on Windows and expect that kind > of process stuff to be portable. I'll be away from Linux for a > week or so, so this will take me a while. > > Further bulletins as events warrant. If you can get a cross-platform solution, plea

Re: thread limit in python

2005-08-12 Thread Christopher Subich
[EMAIL PROTECTED] wrote: > i modified my C test program (included below) to explicitly set the > default thread stack size, and i'm still running into the same > problem. can you think of any other thing that would possibly be > limiting me? Hrm, you're on an A64, so that might very well mean you

Re: Spaces and tabs again

2005-08-13 Thread Christopher Subich
[EMAIL PROTECTED] wrote: > Are you kidding? You are going to MANDATE spaces? Actually, future whitespace rules will be extensive. See: http://64.233.187.104/search?q=cache:k1w9oZr767QJ:www.artima.com/weblogs/viewpost.jsp%3Fthread%3D101968 (google cache of http://www.artima.com/weblogs/viewpost.

Python and file locking - NFS or MySQL?

2005-08-29 Thread Christopher DeMarco
I don't want to get involved with NLM as my impression is it's being buggy and unwieldy. Thanks in advance! I was present at an undersea, unexplained mass sponge migration. -- Christopher DeMarco <[EMAIL PROTECTED]> Alephant Systems (http://alephant.net) PGP public key at http://pgp.

Re: Python-list Digest, Vol 23, Issue 415

2005-08-29 Thread Christopher DeMarco
.O.G.R.A.M.M.E.R.S DELIVERED DISCRETELY TO YOUR DOORSTEP -- Christopher DeMarco <[EMAIL PROTECTED]> Alephant Systems (http://alephant.net) PGP public key at http://pgp.alephant.net +1 412 708 9660 -- http://mail.python.org/mailman/listinfo/python-list

Re: learning python

2005-09-04 Thread Christopher Culver
"placid" <[EMAIL PROTECTED]> writes: > I was just wondering about good books that teach python (either with > programming or no programming experience at all) ? Or some online > tutorial? Did you even bother doing a web search? "Learn Python" or "Python

Re: Proposal: add sys to __builtins__

2005-09-06 Thread Christopher Subich
Michael J. Fromberger wrote: > While I'm mildly uncomfortable with the precedent that would be set by including the contents of "sys" as built-ins, I must confess my objections are primarily aesthetic: I don't want to see the built-in namespace any more cluttered than is necessary -- or at le

Re: Python and file locking - NFS or MySQL?

2005-09-13 Thread Christopher DeMarco
Fredrik Lundh wrote: >os.link(tempfile, lockfile) # atomic! Fredrik, thanks for replying - I monitored python-list but didn't see anything. Gotta get a proper Usenet feed... Are you sure os.link() will be atomic over NFS? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and file locking - NFS or MySQL?

2005-09-13 Thread Christopher DeMarco
Thanks for the reply; I somehow missed this entire thread in python-list. I'm going to give it a whirl, after digging a bit into the status quo of Linux' NFSv3 implementation. -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing a parser the right way?

2005-09-21 Thread Christopher Subich
beza1e1 wrote: > Well, a declarative sentence is essentially subject-predicate-object, > while a question is predicate-subject-object. This is important in > further processing. So perhaps i should code this order into the > classes? I need to think a little bit more about this. A question is subj

FS: O'Reilly Python Pocket Reference

2005-02-13 Thread Christopher Culver
Media Mail within the US, airmail internationally), payable by check or money order in the US, or Paypal elsewhere. Christopher Culver [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

symbol not found involving dynlink/dlopen/embedding Python

2004-12-19 Thread Christopher Armstrong
on2.3.so ./main, then the symbols are found. Does anyone have any idea on how I can solve this? I'd like to not hack CPython, and not have tie the build to a single machine. -- Twisted | Christopher Armstrong: International Man of Twistery Radix|-- http://radix.twistedmat

Re: symbol not found involving dynlink/dlopen/embedding Python [platform information]

2004-12-19 Thread Christopher Armstrong
rsten Kukuk Thread-local storage support included. On Sun, 19 Dec 2004 20:55:20 +1100, Christopher Armstrong <[EMAIL PROTECTED]> wrote: > With the following situation, Numarray can't find Python's symbols. > > problematic-Python:: > Main dlopens Two > Two dynlink

Re: The Industry choice

2004-12-31 Thread Christopher Koppler
. The moral is, of course, that either the Python community's alpha geeks need to get access to controlling interest in a *major* company (or to become successful enough with their own companies to register on the current *major* companies radar as potential competition) or as you say, Pyth

Re: The Industry choice

2004-12-31 Thread Christopher Koppler
f Java programmers >> waiting to take your place. > > IMO learning Python is a matter of few days for Java programmer. True, but learning to *think* in Python takes a while longer. That static straitjacket takes some time to loosen... -- Christopher -- http://mail.python.org/mailman/listinfo/python-list

Re: The Industry choice

2004-12-31 Thread Christopher Koppler
On Fri, 31 Dec 2004 03:49:44 -0800, Paul Rubin wrote: > Christopher Koppler <[EMAIL PROTECTED]> writes: >> The moral is, of course, that either the Python community's alpha >> geeks need to get access to controlling interest in a *major* >> company (or to become

Re: The Industry choice

2004-12-31 Thread Christopher Koppler
On Fri, 31 Dec 2004 04:03:53 -0800, Paul Rubin wrote: > Christopher Koppler <[EMAIL PROTECTED]> writes: >> IMO (and - indubitably limited - experience) in the many cases where it >> *would* be an excellent choice, it *is* most often a matter of politics, >> to have a

Re: The Industry choice

2004-12-31 Thread Christopher Koppler
ce I nearly never use them ;-) The interactive environment and unit testing are just great for whatever I've needed so far. But then I haven't used Python in a really *large* project yet, either. -- Christopher In theory, I'm in love with Lisp, but I hop into bed with Python every chance I get. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting the word to conventional programmers

2005-03-23 Thread Christopher Nelson
Hey, Jeff Hobbs got the last word. ;-) -- http://mail.python.org/mailman/listinfo/python-list

ANN: Twisted version 2.0

2005-03-24 Thread Christopher Armstrong
e and propagated the software to the public. Version 2.0 is said to have originated from ancient underground ruins somewhere in Australia, but their existence has not yet been verified. Christopher Armstrong, enslaved release archaeologist, was only able to say "Aieeya! Release?? What release? I

Re: Twisted version 2.0

2005-03-24 Thread Christopher Armstrong
On Fri Mar 25, Terry Reedy wrote: > > Twisted is an event-based framework for internet applications which > > works on Python 2.2.X and 2.3.X. > Was 2.4.X intentionally omitted? No, I'm sorry. Twisted also supports Python 2.4. -- Twisted | Christopher Armstrong:

Re: re module non-greedy matches broken

2005-04-04 Thread Christopher Weimann
On 04/04/2005-04:20PM, lothar wrote: > > how then, do i specify a non-greedy regex > <1st-pat>*? > > that is, such that non-greedy part *? > excludes a match of <1st-pat> > jet% cat vwre2.py #! /usr/bin/env python import re vwre = re.compile("V[^V]W") vwlre = re.compile("V[^V]WL") if __nam

Re: Bug asking for input number

2013-11-15 Thread Christopher Welborn
int(s[0]) ones = int(s[2]) return abs(hundreds - ones) >= 2 prompt = 'Give me a number --> ' res = input(prompt) while not is_valid_input(res): print('\nInvalid number!: {}\n'.format(res)) res = input(prompt) ...Of course you don't have to make it a funct

Re: Bug asking for input number

2013-11-15 Thread Christopher Welborn
Sorry about my previous post, gmane is being really slow. :( I wouldn't have posted if I knew the question was already answered. -- - Christopher Welborn http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Christopher Welborn
are different approaches and styles for using Gtk, so don't think my 'process' is set in stone. Someone else here may have a different view. The great thing about Gtk is the amount of control you have over everything. Large projects may require a different style than small one

Re: python programming help

2013-12-09 Thread Christopher Welborn
o bad he got an answer, even worse he doesn't know what to do with it. -- - Christopher Welborn http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: adding values from a csv column and getting the mean. beginner help

2013-12-11 Thread Christopher Welborn
. When I saw the video at http://docopt.org my jaw dropped. I couldn't believe all of the arg parsing junk I had been writing for even the smallest scripts. The other arg parsing libs make it easier than manually doing it, but docopt is magic. -- - Christopher Welborn http://welbornpro

Re: Need help with file object

2013-12-12 Thread Christopher Welborn
move('/tmp/file2', '/tmp/file1') -- - Christopher Welborn http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Constructive Criticism

2014-01-09 Thread Christopher Welborn
for one second (no need to import time again). time.sleep(1) # Example usage: print('hello') # Prints the countdown. countdown(10) sys.exit(0) -- - Christopher Welborn http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.x adoption

2014-01-15 Thread Christopher Welborn
reak their site by upgrading too early (without migrating code) it's the user's fault. -- - Christopher Welborn http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Simple % question

2014-02-11 Thread Christopher Welborn
ction also. -- \¯\ /¯/\ \ \/¯¯\/ / / Christopher Welborn (cj) \__/\__/ / cjwelborn at live·com \__/\__/ http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Stop writing Python 4 incompatible code

2016-01-15 Thread Christopher Reimer
> On Jan 15, 2016, at 10:09 AM, Bernardo Sulzbach > wrote: > >> On Fri, Jan 15, 2016 at 3:02 PM, William Ray Wing wrote: >> >> What Micro$oft was actually sued for was worse. They would approach a small >> company: “We like your product/technology, we think we are interested in >> buying y

Re: Stop writing Python 4 incompatible code

2016-01-16 Thread Christopher Reimer
On 1/15/2016 10:09 AM, Bernardo Sulzbach wrote: On Fri, Jan 15, 2016 at 3:02 PM, William Ray Wing wrote: What Micro$oft was actually sued for was worse. They would approach a small company: “We like your product/technology, we think we are interested in buying you out, but we want to see you

Re: Python Not Working as expected on Win 8 and above.

2016-02-13 Thread Christopher Reimer
On 2/13/2016 5:35 AM, MWS wrote: Just to add to the above discussion, i find that when my workplace updated from win 7 to win 8.1 with fresh install, i downloaded the official python 3.5 and installed it. Everything went well during installation, but, i couldn't find the default install python d

Re: beautiful soup get class info

2014-03-11 Thread Christopher Welborn
attrs={'class': 'date'}) I haven't tested it, but it's worth looking into. -- \¯\ /¯/\ \ \/¯¯\/ / / Christopher Welborn (cj) \__/\__/ / cjwelborn at live·com \__/\__/ http://welbornprod.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: ImportError: No module named site

2015-07-23 Thread Christopher Mullins
What did you set those variables to? Also, output from python -v would be helpful. On Jul 23, 2015 10:15 PM, "Laura Creighton" wrote: > In a message of Fri, 24 Jul 2015 09:37:35 +0800, "chenc...@inhand.com.cn" > write > s: > >hi: > >I'm Needing to get python 2.7.10 to cross compile correctly for

Re: Which GUI?

2015-07-24 Thread Christopher Mullins
You might checkout pyqtgraph. I think a ton of the examples will be relevant to your use case. On Fri, Jul 24, 2015 at 1:31 PM, Paulo da Silva < p_s_d_a_s_i_l_v_a...@netcabo.pt> wrote: > Hi all! > > I am about to write an application (python3 in linux) that needs: > > 1. Display time series grap

<    1   2   3   4   5   6   >