High level SNMP

2004-12-09 Thread Jeremy Sanders
f a simple python package for doing this? I'd rather have something written in pure python, so that it is easily cross-platform. Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: High level SNMP

2004-12-09 Thread Jeremy Sanders
ater ones, so I might do that. That's if I can work out how to convert the random string it produces to a floating point number. Somehow it manages to gain 3 bytes over a float... Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: Help beautify ugly heuristic code

2004-12-09 Thread Jeremy Sanders
t work well, as many are sequences of numbers (high chance of number followed by number), and mixed characters and numbers, which are unusual in normal dns names. Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Re: Parse XML using Python

2004-12-09 Thread Jeremy Bowers
On Thu, 09 Dec 2004 06:00:27 -0800, Anil wrote: > > Thomas Guettler wrote: >> Hi, >> >> Here is an example how to use sax: >> >> http://pyxml.sourceforge.net/topics/howto/node12.html >> >> Thomas >> >> -- >> Thomas GÃttler, http://www.thomas-guettler.de/ > > > Could you please tell me how to a

Re: collaborative editing

2004-12-10 Thread Jeremy Jones
commits will not be able to commit the change until the resolve the conflict. Jeremy Jones -- http://mail.python.org/mailman/listinfo/python-list

Re: New versions breaking extensions, etc.

2004-12-11 Thread Jeremy Bowers
On Sat, 11 Dec 2004 01:28:45 -0600, Mike Meyer wrote: > Actually, there's a problem on Unix that may not exist on > Windows. Python is installed in /lib/python/. This > lets us have multiple versions of Python installed at the same time, > which is a good thing. > ... > The real solution is... Int

Re: Renaming __getattribute__ (PEP?)

2004-12-12 Thread Jeremy Bowers
On Sun, 12 Dec 2004 20:32:10 -0800, Henry 'Pi' James wrote: > It this qualified PEP stuff? I can't imagine how you'd justify breaking the reverse compatibility. Maybe Py3K. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mascot proposal

2004-12-13 Thread Jeremy Jones
than a Vorpal Bunny. Those things are vicious. Something that reflects power and excellence. I see some similarities between Vorpal Bunnies and Python (the language): - Pleasing to the eye - Deceptively powerful - Gets the job done - and then some What do you think? Vorpal Bunny. Because ever

Re: (No subject)

2004-12-16 Thread Jeremy Jones
MATCH-ALL cmap1', 'MaTch Ip AnY', 'CLASS-map Match-Any cmap2', 'MaTch AnY', 'Policy-map policy1', 'Class cmap1', 'policy-Map policy2', 'Service-PoLicy policy1', 'claSS cmap2'] In [15]: commands_lower = [string.lo

Re: BASIC vs Python

2004-12-17 Thread Jeremy Bowers
On Fri, 17 Dec 2004 13:53:15 +, Gregor Horvath wrote: > OK. Then please schow me, how you can create a complex form with grids, > explorer like trees etc. in 2 minutes in standard python. > > Or make any given standard python object accessible from MS Excel in 2 > minutes. Boa, gtkglade, or

Re: Python mascot proposal

2004-12-12 Thread Jeremy Bowers
On Sun, 12 Dec 2004 20:54:38 +, Dimitri Tcaciuc wrote: > I haven't came up with the name for that guy yet, so I'm leaving that > for public suggestions :). It is time Python gets an official face in > the Net! *cough* Anyway, I would like to hear your thoughts and suggestions. I mean no offe

Re: do you master list comprehensions?

2004-12-14 Thread Jeremy Bowers
On Tue, 14 Dec 2004 00:41:36 +0100, Max M wrote: > Fredrik Lundh wrote: >> Max M wrote: >> >> I tried funnies like [[w for w in L] for L in data], >>> >>>That is absolutely correct. It's not a funnie at all. >> >> well, syntactically correct or not, it doesn't do what he want... > > Doh! *

Re: lies about OOP (somewhat OT because Perl)

2004-12-14 Thread Jeremy Bowers
On Mon, 13 Dec 2004 19:33:25 -0800, projecktzero wrote: > We do web programming. I suspect that OO apps would behave as good as > procedural apps, and you'd get the benefit of code reuse if you do it > properly. Code reuse now consists of cutting and pasting followed by > enough modification that I

Re: Why are tuples immutable?

2004-12-15 Thread Jeremy Bowers
On Wed, 15 Dec 2004 15:08:09 +, Antoon Pardon wrote: > And I think that is a stupid reason. There are enough other situations > were people work with mutable objects but don't wish to mutate specific > objects. Like objects in a sorted sequence you want to keep that way > or objects in a heap

Re: Why are tuples immutable?

2004-12-15 Thread Jeremy Bowers
On Thu, 16 Dec 2004 00:56:50 -0500, Jeremy Bowers wrote: > editing with the object representing the GUI widget; I actually give each > editable object a guaranteed unique id on creation, never changed, and I > define __eq__(self, other) as "return self is other". Before anybo

Re: Why no list heritable type?

2004-12-16 Thread Jeremy Bowers
On Thu, 16 Dec 2004 12:53:32 -0800, James Stroud wrote: > Then it can be heritable and I can add or override methods. Why aren't > built in lists and dictionaries real heritable types that can save this > kind of patchwork? Is there a pythonic reason I am missing here? Along with others pointing o

Re: BASIC vs Python

2004-12-20 Thread Jeremy Bowers
On Mon, 20 Dec 2004 22:41:00 -0600, Doug Holton wrote: > This is comp.lang.python, not comp.lang.logo. Please refrain from > discussing topics not related to CPython. This is comp.lang.python, not alt.holton.doug.doug.doug. Please spend less energy on dictating community standards and a more ene

Re: PHP vs. Python

2004-12-22 Thread Jeremy Bowers
On Wed, 22 Dec 2004 16:43:21 -0800, Paul Rubin wrote: > JZ <[EMAIL PROTECTED]> writes: >> But pure speed is not the all. Python can scale better, > > If a system is fast enough on a single processor, it doesn't need to scale. Your point is circular; "fast enough (right now)" can be defined as "d

Re: Speed ain't bad

2004-12-30 Thread Jeremy Bowers
On Fri, 31 Dec 2004 01:41:13 +0100, Bulba! wrote: > > One of the posters inspired me to do profiling on my newbie script (pasted > below). After measurements I have found that the speed of Python, at least > in the area where my script works, is surprisingly high. > > This is the experiment: a s

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread Jeremy Bowers
On Sat, 19 Mar 2005 20:07:40 -0800, Kay Schluehr wrote: > It is bad OO design, George. I want to be a bit more become more > specific on this and provide an example: Having thought about this for a bit, I agree it is a powerful counter-argument and in many other languages I'd consider this a total

Re: Changing the Keyboard output

2005-03-20 Thread Jeremy Bowers
On Sun, 20 Mar 2005 19:30:05 +, Abdul Hafiz al-Muslim wrote: > Hi, > I am new to Python and still learning. > > I am looking for a way to change the keyboard output within Tkinter - for > example, say I press "p" and I want to come out as "t". > > Could anyone point me in the right direction

Limerick (was: Re: Text-to-speech)

2005-03-20 Thread Jeremy Bowers
On Sun, 20 Mar 2005 16:18:14 -0500, Steve Holden wrote: > Since it's PyCon week, I will offer a prize of $100 to the best (in my > opinion) limerick about Python posted to this list (with a Cc: to > [EMAIL PROTECTED]) before midday on Friday. The prize money will be my > own, so there are no oth

Re: setattr inside a module

2005-03-23 Thread Jeremy Bowers
On Wed, 23 Mar 2005 11:35:34 +0100, kramb64 wrote: > I'm trying to use setattr inside a module. > From outside a module it's easy: > > import spam > name="hello" > value=1 > setattr(spam, name, value) > > But if I want to do this inside the module spam itself, what I've to > pass to setattr as f

Re: Suggestions for a Java programmer

2005-03-24 Thread Jeremy Bowers
On Thu, 24 Mar 2005 00:22:09 -0800, Ray wrote: > Can you point me to "Python for Java Programmers" resources? I found one > blog, but that only touched the tip of the iceberg, I feel. I know that as > I use Python more and read more books and read how experienced Python > programmers code, eventual

Re: Grouping code by indentation - feature or ******?

2005-03-25 Thread Jeremy Bowers
On Fri, 25 Mar 2005 11:31:33 -0800, James Stroud wrote: > Now, what happened to the whitespace idea here? This code seems very > unpythonic. I think : is great for slices and lamda where things go on one > line, but to require it to specify the start of a block of code seems a > little perlish. It

Re: Grouping code by indentation - feature or ******?

2005-03-26 Thread Jeremy Bowers
On Sat, 26 Mar 2005 15:42:03 +, Tim Tyler wrote: > I very much favour the smalltalk-inspired idea of keeping the actual > language as small as is reasonably possible. > > I wonder if there are any promising new kids on the dynamic > scripting-language block that I haven't heard about yet - i.e

Re: html tags and python

2005-03-26 Thread Jeremy Bowers
On Sat, 26 Mar 2005 18:07:01 -0800, EP wrote: > Then... about the time you start to try to build a real application with > JavaScript, it will start to drive you mad... and you will have a new, > greater affection for Python. Actually, if you dig into it really hard, it's not bad. In fact of all t

Re: Lambda: the Ultimate Design Flaw

2005-04-01 Thread Jeremy Bowers
On Thu, 31 Mar 2005 23:30:42 -0800, Erik Max Francis wrote: > Daniel Silva wrote: > >> Shriram Krishnamurthi has just announced the following elsewhere; it might >> be of interest to c.l.s, c.l.f, and c.l.p: >> http://list.cs.brown.edu/pipermail/plt-scheme/2005-April/008382.html > > April Fool's

Re: unittest vs py.test?

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 16:42:30 +, Raymond Hettinger wrote: > FWIW, the evolution of py.test is to also work seemlessly with existing tests > from the unittest module. Is this true now, or is this planned? I read(/skimmed) the docs for py.test when you linked to the project, but I don't recall

Re: Decorater inside a function? Is there a way?

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 18:30:56 +, Ron_Adam wrote: > I'm trying to figure out how to test function arguments by adding a > decorator. The rest of your message then goes on to vividly demonstrate why decorators make for a poor test technique. Is this an April Fools gag? If so, it's not a very goo

Re: Decorater inside a function? Is there a way?

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 19:56:55 +, Ron_Adam wrote: > On Fri, 01 Apr 2005 13:47:06 -0500, Jeremy Bowers <[EMAIL PROTECTED]> > wrote: >>Is this an April Fools gag? If so, it's not a very good one as it's quite >>in line with the sort of question I've seen man

Re: try / except not worknig correctly

2005-04-01 Thread Jeremy Bowers
On Sat, 12 Mar 2005 17:06:17 -0800, '@'.join([..join(['fred','dixon']),..join(['gmail','com'])]) wrote: I'd also suggest validInput = "ABCDEFGHIJKL" # and there are more clever ways to do this, # but this will do myInput = raw_input(" ".join(validInput) + "?") if len(

Re: Pseudocode in the wikipedia

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 16:02:53 -0500, Gabriel Cooper wrote: > Ron_Adam wrote: > >>To me ":=" could mean to create a copy of an object... or should it >>be "=:" ? >> >>Or how about ":=)" to mean is equal and ":=(" to mean it's not. >> >>Then there is ";=)", to indicate 'True', and ':=O' to indicate

Re: How To Do It Faster?!?

2005-04-01 Thread Jeremy Bowers
On Thu, 31 Mar 2005 13:38:34 +0200, andrea.gavana wrote: > Hello NG, > > in my application, I use os.walk() to walk on a BIG directory. I > need > to retrieve the files, in each sub-directory, that are owned by a > particular user. Noting that I am on Windows (2000 or XP), this is wha

Re: decorator syntax polling suggestion

2005-04-01 Thread Jeremy Bowers
On Fri, 13 Aug 2004 16:49:53 +1000, Anthony Baxter wrote: > The > people who hate pie-decorators post a _lot_ - most people seem to either > not care, or else post once or twice and then disappear. I just posted on another mailing list about how posting the same message, over and over, is fundamen

Re: decorator syntax polling suggestion

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 16:52:52 -0500, Jeremy Bowers wrote: Oops, sorry, some "send later" messages I thought were gone got sent. Sorry. Didn't mean to revive dead threads. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with splitting

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 14:20:51 -0800, RickMuller wrote: > I'm trying to split a string into pieces on whitespace, but I want to > save the whitespace characters rather than discarding them. > > For example, I want to split the string '12' into ['1','','2']. > I was certain that there was a

Re: that is it is not it (logic in Python)

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 22:01:25 +, F. Petitjean wrote: > Le Fri, 1 Apr 2005 13:39:47 -0500, Terry Reedy a Ãcrit : >> This is equivalent to '(that is it) and (it is not it)' which is clearly >> false. >> >>> False # What ? >> >> Reread the ref manual on chained comparison operators. > > And s

Re: Help with splitting

2005-04-01 Thread Jeremy Bowers
On Fri, 01 Apr 2005 18:01:49 -0500, Brian Beck wrote: > py> from itertools import groupby > py> [''.join(g) for k, g in groupby(' test ing ', lambda x: x.isspace())] > [' ', 'test', ' ', 'ing', ' '] > > I tried replacing the lambda thing with an attrgetter, but apparently my > understanding of

Re: How To Do It Faster?!?

2005-04-01 Thread Jeremy Bowers
On Sat, 02 Apr 2005 01:00:34 +0200, andrea_gavana wrote: > Hello Jeremy & NG, > ... > I hope to have been clearer this time... > > I really welcome all your suggestions. Yes, clearer, though I still don't know what you're *doing* with that data :-) Here's an i

FAM and Python? (was Re: How To Do It Faster?!?)

2005-04-01 Thread Jeremy Bowers
On Sat, 02 Apr 2005 02:02:31 +0200, andrea_gavana wrote: > Hello Jeremy & NG, > Every user of thsi big directory works on big studies regarding oil fields. > Knowing the amount of data (and number of files) we have to deal with > (produced > by simulators, visualization to

Re: testing -- what to do for testing code with behaviour dependant upon which files exist?

2005-04-02 Thread Jeremy Bowers
On Sat, 02 Apr 2005 15:30:13 -0500, Brian van den Broek wrote: > So, how does one handle such cases with tests? When I had a similar situation, I created a directory for testing that was in a known state, and tested on that. If you can test based on a relative directory, that should work OK. Non-

Re: testing -- what to do for testing code with behaviour dependant upon which files exist?

2005-04-04 Thread Jeremy Bowers
On Mon, 04 Apr 2005 17:02:20 -0400, Brian van den Broek wrote: > Jeremy suggested using a directory name akin to > "C:\onlyanidiotwouldhavethisdirecotrynameonadrive". That is what I had > settled on before I posted. Somehow it feels unhappy and inelegant. > But, I'

Re: unittest vs py.test?

2005-04-04 Thread Jeremy Bowers
On Mon, 04 Apr 2005 22:50:35 +, John J. Lee wrote: > What I don't understand about py.test (and trying it out seems > unlikely to answer this) is why it uses the assert statement. > unittest used to do that, too, but then it was pointed out that that > breaks when python -O is used, so unittest

Re: Python sleep doesn't work right in a loop?

2005-04-06 Thread Jeremy Bowers
On Wed, 06 Apr 2005 12:49:51 -0700, ritterhaus wrote: > Nope. Does't work. Running Python 2.3.4 on Debian, Linux kernel 2.6. This > is actually test code for a larger project... > > # flash the selected wx.TextControl > > for flasher in range(4): > self.textField.SetBackgroundColour(255, 0,

Re: args attribute of Exception objects

2005-04-08 Thread Jeremy Bowers
On Fri, 08 Apr 2005 09:32:37 +, SÃbastien de Menten wrote: > Hi, > > When I need to make sense of a python exception, I often need to parse the > string exception in order to retrieve the data. What exactly are you doing with this info? (Every time I started to do this, I found a better way

Re: Can dictionary values access their keys?

2005-04-08 Thread Jeremy Bowers
On Fri, 08 Apr 2005 10:33:53 -0600, Matthew Thorley wrote: > I must say I am *very* suprised that python does not have a way to look > up what key is pointing to a given object--without scanning the whole > list that is. Assuming fairly optimal data structures, nothing is free. Python chooses not

Re: workaround for generating gui tools

2005-04-09 Thread Jeremy Bowers
On Sat, 09 Apr 2005 19:59:18 +0200, Diez B. Roggisch wrote: >> why use data files when you have an extremely powerful programming >> language in your toolbox? the advantage of building UI's in Python is >> that you can quickly create "domain specific UI languages", and use them >> to generate the

Re: workaround for generating gui tools

2005-04-10 Thread Jeremy Bowers
On Sun, 10 Apr 2005 13:57:26 +0200, Diez B. Roggisch wrote: >> Domain-specific abstractions do that *faster* than GUI designers, not >> slower. And better, too, since every iteration tends to be fully >> functional and not just a "let's see what this looks like" prototype. > > Can you show me som

Re: workaround for generating gui tools

2005-04-10 Thread Jeremy Bowers
On Sun, 10 Apr 2005 13:02:27 -0700, Ken Godee wrote: > The original poster was just asking for an example of > how to sub class his code generated form into his program > for easy future updates, a "VERY STANDARD" way of doing it. I recognize your sarcasm, and I recognize the poor attitude it show

Re: semicolons

2005-04-11 Thread Jeremy Bowers
On Tue, 12 Apr 2005 00:14:03 +0200, Mage wrote: >Hello, > > I amafraid of I will stop using semicolons in other languages after one > or two months of python. However I see that python simply ignores the > semicolons atd the end of the lines. > > What's your advice? I don't want to write

Re: Supercomputer and encryption and compression @ rate of 96%

2005-04-14 Thread Jeremy Bowers
On Thu, 14 Apr 2005 17:44:56 +0200, Fredrik Lundh wrote: > Will McGugan wrote: > >> Muchas gracias. Although there may be a bug. I compressed my Evanescence >> albumn, but after decompression it became the complete works of Charles > > strange. the algorithm should be reversible. sounds like a

Re: SimpleXMLRPCServer - disable output

2005-04-14 Thread Jeremy Jones
ould be able to change logRequests to 0 and that should fix it. I just tested it at a prompt and it worked just fine. Jeremy Jones -- http://mail.python.org/mailman/listinfo/python-list

Re: SimpleXMLRPCServer - disable output

2005-04-14 Thread Jeremy Jones
codecraig wrote: Jeremy Jones wrote: codecraig wrote: Hi, I thought I posted this, but its been about 10min and hasnt shown up on the group. Basically I created a SimpleXMLRPCServer and when one of its methods

ANN: Veusz 0.5 - a scientific plotting package

2005-04-17 Thread Jeremy Sanders
Veusz 0.5 - Velvet Ember Under Sky Zenith - http://home.gna.org/veusz/ Veusz is Copyright (C) 2003-2005 Jeremy Sanders <[EMAIL PROTECTED]> Licenced under the GPL (version 2 or greater) Veusz is a scientific plotting package written in Python (current

Re: ANN: Veusz 0.5 - a scientific plotting package

2005-04-18 Thread Jeremy Sanders
rt by having my own plotting routines. I've done 90% of what's needed there. Basically, I'll be happy when contouring and images are added. The advantage of Veusz is the nice object-based system of building up a plot. I have a version of veusz which used matplotlib as a backend, but I

Re: ANN: Veusz 0.5 - a scientific plotting package

2005-04-19 Thread Jeremy Sanders
inear and log coordinates, but that was well before I had heard of matplotlib! I think my current code isn't bad for log and linear. It's nice to do the transformation with numarray in a single line! I took a long time to decide whether to continue with my own plotting routines, or use matplotlib, and I found it a hard decision. I went my own route as I had the freedom to redesign as I liked, was having fun with it, I had written a fair chunk already, and I knew exactly how it worked. I'd also got slightly annoyed by the bugs in previous versions of matplotlib (which is a lot better in recent releases, I'm sure, and my code is not free of bugs!). Thanks for your reply Jeremy -- http://mail.python.org/mailman/listinfo/python-list

Python Imaging Library and PyGTK - color image path?

2005-04-22 Thread Jeremy Bowers
I have an image in the Python Image Library. I'm trying to get it into PyGTK in color. Is there any way to do this cross-platform, preferably without writing to anything to the disk? PIL apparently can't write XPMs. GTK will only take XPMs, that I can see. Therein lies the rub. I can ship over mon

Re: Python Imaging Library and PyGTK - color image path?

2005-04-22 Thread Jeremy Bowers
On Fri, 22 Apr 2005 22:43:13 -0400, Jeremy Bowers wrote: > (Use case, in case it matters: I am trying to embed a graphic into a text > widget. This is going fine. Because I want the text widget to be able use > different size text, and no one image can look right with everything from >

Re: Python Imaging Library and PyGTK - color image path?

2005-04-23 Thread Jeremy Bowers
On Sat, 23 Apr 2005 10:20:29 +0200, Fredrik Lundh wrote: > which discusses draw_rgb_image and friends, and says that "if you can > convert your PIL image to a pixel data string or buffer object, you could > use them to display the image". here's some code that seems to do exactly > that: > >

Re: Python or PHP?

2005-04-23 Thread Jeremy Bowers
On Sat, 23 Apr 2005 20:13:24 +0200, Mage wrote: > Avoid them is easy with set_type($value,"integer") for integer values and > correct escaping for strings. "Avoiding buffer overflows in C is easy, as long as you check the buffers each time." The *existence* of a technique to avoid problems is not

Re: Variables

2005-04-24 Thread Jeremy Bowers
On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood wrote: > Indeed, this language is math. My friend says that foo is a constant and > necessarily not a variable. If I had written foo = raw_input(), he would > say that foo is a variable. Which is perfectly fine except that he insists > that sinc

Re: What's do list comprehensions do that generator expressions don't?

2005-04-25 Thread Jeremy Bowers
On Sun, 24 Apr 2005 22:59:12 -0700, Robert Kern wrote: > Never. If you really need a list > > list(x*x for x in xrange(10)) > > Sadly, we can't remove list comprehensions until 3.0. Why "remove" them? Instead, we have these things called "comprehensions" (which, now that I say that, seems a rath

Re: What's do list comprehensions do that generator expressions don't?

2005-04-25 Thread Jeremy Bowers
different implementations; they'll just have the genexp implementation, and an optimization for list creation if the list creation can know the size in advance, regardless of where it came from. >> Jeremy> should be relatively simple), it's not worth breaking that >> Jer

Re: Python or PHP?

2005-04-25 Thread Jeremy Bowers
On Mon, 25 Apr 2005 23:26:56 +, John Bokma wrote: > Mike Meyer wrote: > >> John Bokma <[EMAIL PROTECTED]> writes: Nobody ever changed their mind as a result of a 20-thread endless reply-fest. As usual, the posters aren't about to admit anything, and none of the bystanders are reading any mor

Re: What's do list comprehensions do that generator expressions don't?

2005-04-25 Thread Jeremy Bowers
On Mon, 25 Apr 2005 23:00:57 -0500, Mike Meyer wrote: > Why do we have to wait for Python 3.0 for this? Couldn't list > comprehensions and generator expression be unified without breaking > existing code that didn't deserve to be broken? We don't; my mentioning 3.0 was just in reference to a previ

Re: What's do list comprehensions do that generator expressions don't?

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 02:12:07 -0500, Mike Meyer wrote: > Right. But that shouldn't be hard to do. Let genexp stand for a a > generator expression/list comprehension without any brackets on it at all. > Then [genexp] is the syntax to expand the list. [(genexp)] is the syntax > to create a list of one

Re: delete will assure file is deleted?

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 03:40:16 -0700, [EMAIL PROTECTED] wrote: > Hello Mike, > I have to know this topic otherwise my program has to check whether the > file / files are already deleted and this is a little bit messy. I would be fairly confident in asserting that assuming the file is there, you hav

Re: regex over files

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 19:32:29 +0100, Robin Becker wrote: > Skip Montanaro wrote: >> Robin> So we avoid dirty page writes etc etc. However, I still think I >> Robin> could get away with a small window into the file which would be >> Robin> more efficient. >> >> It's hard to imagine how

Re: delete will assure file is deleted?

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 21:24:30 +0200, andreas wrote: > On Tue, Apr 26, 2005 at 03:13:20PM -0400, Jeremy Bowers wrote: >> On Tue, 26 Apr 2005 03:40:16 -0700, [EMAIL PROTECTED] wrote: >> >> > Hello Mike, >> > I have to know this topic otherwise my program has to ch

Re: regex over files

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 20:54:53 +, Robin Becker wrote: > Skip Montanaro wrote: > ... >> If I mmap() a file, it's not slurped into main memory immediately, though as >> you pointed out, it's charged to my process's virtual memory. As I access >> bits of the file's contents, it will page in only w

Re: schedule a monthly ftp event

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 15:15:35 -0700, willitfw wrote: > Greetings, > I am looking for some guidance on a script. > > My goals are: > 1) have this script run automatically through a time set schedule. > 2) verify if a file is updated on an ftp site (usually on the 15th of > the month). > 3) If the u

Re: delete will assure file is deleted?

2005-04-26 Thread Jeremy Bowers
On Tue, 26 Apr 2005 21:24:06 -0500, Mike Meyer wrote: > Jeremy Bowers <[EMAIL PROTECTED]> writes: > >> On Tue, 26 Apr 2005 03:40:16 -0700, [EMAIL PROTECTED] wrote: >> os.remove, as the module name implies, tells the OS to do something. I >> would consider an OS that

Re: How do I parse this ? regexp ?

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 07:56:11 -0700, [EMAIL PROTECTED] wrote: > Hello all, > > I have this line of numbers: > > > 04242005 18:20:42-0.02, 271.1748608, [-4.119873046875, > 3.4332275390625, 105.062255859375], [0.093780517578125, 0.041015625, > -0.960662841796875], [0.01556396484375, 0.01220703

Re: tkinter text width

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 10:52:14 -0700, James Stroud wrote: > This is more or less what I would like, but I would also like to probe the > Text to see how many characters it thinks it can display within the container > window. I am formatting text dynamically and so I rely on the width. I am not > a

Re: tkinter text width

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 12:52:21 -0700, James Stroud wrote: > Thank you to everybody helping me. I think I am almost there... > > On Wednesday 27 April 2005 12:10 pm, so sayeth Jeremy Bowers: >> 2. Use a fixed-width font and manually wrap. (It's pretty easy then, you >> can

Re: creating very small types

2005-04-27 Thread Jeremy Bowers
On Wed, 27 Apr 2005 22:17:07 +0200, andrea wrote: > I was thinking to code the huffman algorithm and trying to compress > something with it, but I've got a problem. > How can I represent for example a char with only 3 bits?? > I had a look to the compression modules but I can't understand them muc

Re: OOP

2005-04-28 Thread Jeremy Bowers
On Thu, 28 Apr 2005 10:34:44 -0700, demon_slayer2839 wrote: > Hey yall, > I'm new to Python and I love it. Now I can get most of the topics > covered with the Python tutorials I've read but the one thats just > stumping me is Object Orientation. I can't get the grasp of it. Does > anyone know of a

Re: How do I parse this ? regexp ? [slighly OT]

2005-04-28 Thread Jeremy Bowers
On Thu, 28 Apr 2005 20:53:14 -0400, Peter Hansen wrote: > The re docs clearly say this is not the case: > > ''' > [] > Used to indicate a set of characters. Characters can be listed > individually, or a range of characters can be indicated by giving two > characters and separating them by a "

Python C API version mismatch for module pytspc ---Gyach voice chat problems

2005-04-29 Thread jeremy fleming
(EXPAND|FILL) -- http://mail.python.org/mailman/listinfo/python-list

Re: squeeze out some performance

2013-12-06 Thread Jeremy Sanders
s = all_y[radiussqd < 50**2] Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-16 Thread Jeremy Sanders
PySide mailing lists. Work seems slow now everyone is a volunteer. For example, Qt 5 is not yet supported (there's no effort towards this according to the mailing list) and bugs seem to take a long time to be fixed. PyQt support is much better, even when I'm using it for a free proje

Re: Weird and sparese cgi:error

2016-02-17 Thread Jeremy Leonard
On Tuesday, February 16, 2016 at 3:02:40 PM UTC-5, Φώντας Λαδοπρακόπουλος wrote: > Hello, > > I recentely changed VPS server and when i try to load my webiste iam > receiving 500 error which i wasnt receiving in my old VPS server with the > same exact cgi scripts. > > After looking at Apacher's

Re: Will file be closed automatically in a "for ... in open..." statement?

2016-02-18 Thread Jeremy Leonard
On Tuesday, February 16, 2016 at 3:39:34 AM UTC-5, jf...@ms4.hinet.net wrote: > I know > > with open('foo.txt') as f: > ...do something... > > will close the file automatically when the "with" block ends. > > I also saw codes in a book: > > for line in open('foo.txt'): >

Processing multiple forms in a cgi script

2016-02-19 Thread Jeremy Leonard
I have a quick question regarding processing multiple forms. Most of my experience has been where there is just one form so the logic was pretty straight forward for me. My question revolves around how to handle multiple forms. I've seen that you can have an id for each form, but I'm unsure how

Re: Processing multiple forms in a cgi script

2016-02-19 Thread Jeremy Leonard
On Friday, February 19, 2016 at 1:18:41 PM UTC-5, Jon Ribbens wrote: > On 2016-02-19, Jeremy Leonard wrote: > > I have a quick question regarding processing multiple forms. Most of > > my experience has been where there is just one form so the logic was > > pretty straig

Re: Python, C++ interaction

2014-12-04 Thread Jeremy Sanders
and such, it requires a bit more work, however. Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Re: checking if two things do not equal None

2014-03-31 Thread Jeremy Sanders
contact.tri...@gmail.com wrote: > if (a, b) != (None, None): > or > if a != None != b: > > Preference? Pros? Cons? Alternatives? I couldn't see anyone else give this, but I like if None not in (a, b): pass Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Re: semicolon at end of python's statements

2013-09-05 Thread Jeremy Sanders
Chris Angelico wrote: > Because s/he thought it made for better code, or as a joke? Usually I > see this sort of thing as the latter... http://oldhome.schmorp.de/marc/bournegol.html http://utcc.utoronto.ca/~cks/space/blog/programming/BourneGol Jeremy -- https://mail.python.org/m

Re: Multiple scripts versus single multi-threaded script

2013-10-04 Thread Jeremy Sanders
/questions/807506/threads-vs-processes-in-linux Combined with the lack of a GIL-conflict, processes can be pretty efficient. Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Random vs. Cython C Rand for Dice Rolls

2015-06-08 Thread Jeremy Sanders
000) b=numpy.random.randint(1,6,5000) numpy.bincount(a+b-1) array([ 0, 1999229, 4000369, 5999372, 7999232, 9998769, 8003430, 5998538, 4001160, 101]) This takes a few seconds on my system. Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Re: A new module for performing tail-call elimination

2015-07-16 Thread Jeremy Sanders
Robin Becker wrote: > I believe the classic answer is Ackermann's function > > http://demonstrations.wolfram.com/RecursionInTheAckermannFunction/ > > which is said to be not "primitive recursive" ie cannot be unwound into > loops; not sure whether that implies it has to be recursively defined or

Re: Optimizing if statement check over a numpy value

2015-07-23 Thread Jeremy Sanders
o a boolean array exclbool = N.zeros(vals.shape, dtype=bool) exclbool[exclude] = True # do replacement ones = vals==1.0 # Note: ~ is numpy.logical_not vals[ones & (~exclbool)] = 1e-20 I think you'll have to convert your HDF array into a numpy array first, using numpy.array(). Jeremy

Re: Writing a Financial Services App in Python

2015-11-19 Thread Jeremy Leonard
rmance. > > This seems to us like something software should help solve. We'd like to see > teams tackling each of the component issues around saving and investing, > along with ones tackling the entire package. > > > Thanks alot ! > > Cai Gengyang What platform do you want the app to target (web/desktop/etc...)? Jeremy -- https://mail.python.org/mailman/listinfo/python-list

Properly Using 3.4.1 & Valgrind

2014-09-17 Thread Jeremy Moles
Hey guys. I'm using the Python 3.4.1 release tarball, and am trying to configure it for usage with valgrind. I have followed all of the common, well-documented steps online such as uncommenting Py_USING_MEMORY_DEBUGGER, compiling with --with-pydebug, --with-valgrind, and --without-pymalloc. I've

Re: Properly Using 3.4.1 & Valgrind

2014-09-17 Thread Jeremy Moles
On Wednesday, September 17, 2014 6:46:21 PM UTC-4, Jeremy Moles wrote: > Hey guys. I'm using the Python 3.4.1 release tarball, and am trying to > configure it for usage with valgrind. I have followed all of the common, > well-documented steps online such as uncommenting Py_USING_M

PyConn--anyone needing roommates?

2006-01-11 Thread Jeremy Moles
There's a specific list, I believe, for this sort of question, but it has been surprisingly quiet since I registered. :) My employer has agreed to send me to PyConn this year (yay!) but I'm on my own as far as roomage is concerned. If anyone needs another body--or wants to find another body--I'm g

Linux NETLINK Sockets

2006-01-11 Thread Jeremy Moles
http://mail.python.org/pipermail/python-dev/2005-January/050834.html ^^ From a year ago or so--did this never get put into Python trunk? As far as I can tell the answer is no. It's something I'd like to use in Python if available, though, writing a small wrapper wouldn't be out of the question if

ANN: Veusz 0.9, a scientific plotting package

2006-01-20 Thread Jeremy Sanders
Veusz 0.9 - Velvet Ember Under Sky Zenith - http://home.gna.org/veusz/ Veusz is Copyright (C) 2003-2006 Jeremy Sanders <[EMAIL PROTECTED]> Licenced under the GPL (version 2 or greater) Veusz is a scientific plotting package written in Python. It uses Py

Re: Multi-threaded FTP Question

2006-07-11 Thread Jeremy Jones
us ftp connections? > > Thanks. > > Derek I replied to this about 4 hours ago from my gmail email account (not my google groups account associated with the same email addres), but haven't seen it show up, so I apologize if this is a dupe. Would you mind posting your code? Are you try

<    1   2   3   4   5   6   7   >