broken, it did not list "all y'all" and its
most glaring omission was "yous guys" The Philly responders selected
the next best option of "yous"
It is a bit odd that You'uns, yins, and yous are confined to Pennsylvania
and very distinct east-west regions inside PA at that (Pittsburgh vs
Philly orbits).
-jack
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Oct 07, 2005 at 10:28:18PM -, Grant Edwards wrote:
> On 2005-10-07, Jack Diederich <[EMAIL PROTECTED]> wrote:
> >
> > It is a bit odd that You'uns, yins, and yous are confined to Pennsylvania
> > and very distinct east-west regions inside PA at that
of a deal. If you are
> using C++, you can hook into new/delete directly.
>
Electric Fence[1] uses the LD_PRELOAD method. I've successfully used it to
track down leaks in a python C extension. If you look at the setup.py in
probstat[2] you'll see
#libraries = ["
On Mon, Nov 28, 2005 at 04:44:56PM -0600, Kenneth McDonald wrote:
> I'm not trying to persuade my company to offer Python as a scripting
> language for their product, but I am trying to give them examples of
> things that Python can do easily that cannot be done easily with
> their current pr
l has abandoned
their "faster" line of processors and is using their CPUs that are slower in
MHz but get more work done. So the author's "MHz plateau" graph isn't all
Moore's law breaking down, it is the result of Intel's marketing dept breaking
down.
-Jack
mean to check
the thing that the string is a name for, so instead of
# callable(name)
PyCallable_Check(elem)
use
# callable(globals()[name])
PyCallable_Check(PyDict_GetItem(m_pGlobals, elem))
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
in the slightly different behavior of genexps
Python 2.4 (#2, Jan 8 2005, 20:18:03)
[GCC 3.3.5 (Debian 1:3.3.5-5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> list(e for e in vars())
['__builtins__
e than that.
>
> A Zen koan always implies more than the listener infers.
I've met Zell Cohen, and you sir ...
/got nothing.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
ead/47c878e2d7688324/18a97ab639d034cf
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
de dependent on it which is now so
> large that porting it to something else is an unthinkably large task.
> And it's got a small cadre of language gurus who spend all day defending
> the language with answers like, "But, it was never *intended* that
> people would do stuff like this with it".
>
Me Too!
I mean, did you used to work at CDNOW too?
I don't miss that want-to-gouge-out-your-own-eyes feeling.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
age was not, and the CPython interpreter definitely was not.
Search groups.google.com for previous discussions of this on c.l.py
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Jan 26, 2005 at 10:23:03AM -0700, Steven Bethard wrote:
> Jack Diederich wrote:
> >Yes, this comes up every couple months and there is only one answer:
> >This is the job of the OS.
> >Java largely succeeds at doing sandboxy things because it was written that
> >
definitely was
> >not.
> >
> >Search groups.google.com for previous discussions of this on c.l.py
> >
> It is really necessary to build a VM from the ground up that includes OS
> ability? What about JavaScript?
>
See the past threads I reccomend in another j
lashdot[2].
It is more lightweight and faster than full scale machine emulators because
it uses a modified system kernel (so it only works on *nixes it has been
ported to). You can set the virtual memory of each instance to keep
programs from eating the world. I don't know about CPU, you mi
the index and slow down access to the popular projects. Would a
naive file-based implementation have been just as bad? maybe.
If there is interest I'll follow up with some details on my own LAMP
software which does live reports on gigs of data and - you guessed it -
I regret it is database backed. That story also involves why I started
using Python (the prototype was in PHP).
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
5])]
[0, 1, 2, 3, 2, 4, 5]
>>>
Since this is 2.4 you could also return a generator expression.
>>> def iter_collapse(myList):
... return (x[0] for (x) in it.groupby([0,0,1,1,1,2,2,3,3,3,2,2,2,4,4,4,5]))
...
>>> i = iter_collapse([0,0,1,1,1,2,2,3,3,3,2,2,2,4,4,4,5])
>>> i
>>> list(i)
[0, 1, 2, 3, 2, 4, 5]
>>>
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Feb 04, 2005 at 10:31:19AM -0800, Robert Brewer wrote:
> Jack Diederich wrote:
> > *ding*ding*ding* The biggest mistake I've made most
> > frequently is using
> > a database in applications. YAGNI. Using a database at all has it's
> > own overhe
On Fri, Feb 04, 2005 at 09:09:46PM -0200, Carlos Ribeiro wrote:
> On Fri, 4 Feb 2005 17:46:44 -0500, Jack Diederich <[EMAIL PROTECTED]> wrote:
> > On Fri, Feb 04, 2005 at 10:31:19AM -0800, Robert Brewer wrote:
> > > Jack Diederich wrote:
> > > > If there
On Sat, Feb 05, 2005 at 02:31:08PM +1000, Nick Coghlan wrote:
> Jack Diederich wrote:
> >Since this is 2.4 you could also return a generator expression.
> >
> >
> >>>>def iter_collapse(myList):
> >
> >... return (x[0] for (x) in
On Tue, Jun 21, 2005 at 11:30:19PM -0400, Jenta wrote:
> A World Beyond Capitalism 2005, An Annual International Multiracial
> Alliance Building Peace Conference Is Accepting Proposals...
>
This must be a joke (and please please be a joke like the recent viral website
competition[1] that featured
On Wed, Jul 13, 2005 at 03:24:48AM +1000, Jeff Melvaine wrote:
> Bengt,
>
> Thanks for your informative reply, further comments interleaved.
>
> "Bengt Richter" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On Mon, 11 Jul 2005 02:37:21 +1000, "Jeff Melvaine"
> > <[EMAIL PROT
On Wed, Jul 13, 2005 at 05:07:33PM +0100, Duncan Smith wrote:
> rbt wrote:
> > On Wed, 2005-07-13 at 11:09 -0400, rbt wrote:
> >
> >>On Wed, 2005-07-13 at 10:21 -0400, rbt wrote:
> >>
> >>>Say I have a list that has 3 letters in it:
> >>>
> >>>['a', 'b', 'c']
> >>>
> >>>I want to print all the pos
Great, Transmeta is hiring. What does this have to do with python?
Hmm, Mutliprocessor or Multicore Transmeta chips?
Let the rumor mongering begin.
On Thu, Jul 28, 2005 at 12:40:13AM -0700, Nathan Sanders wrote:
> Hello-
>
> I'm hoping to network with you and find out if you know anyone who
> y
On Tue, Aug 09, 2005 at 09:15:17PM -0400, Jeremy Moles wrote:
> When using the C API and writing extension modules, how do you normally
> pass a structure up into the python module? For instance, if I have a
> structure:
>
> typedef struct Foo {
> int x;
> int y;
> int z;
>
On Fri, Aug 12, 2005 at 03:48:38PM -0400, Michael J. Fromberger wrote:
> In article <[EMAIL PROTECTED]>,
> Talin <[EMAIL PROTECTED]> wrote:
>
> > I'm sure I am not the first person to do this, but I wanted to share
> > this: a generator which returns all permutations of a list:
>
> You're right
Hi all,
i'm new to python programming so excuseme if the question is very stupid.
here the problem.
this code work
list=["airplane"]
select=vars
while select != list[0]:
select=raw_input("Wich vehicle?")
but i want check on several object inside the tuple so i'm trying this:
list=["airplane",
Thanks to all for the help.
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Aug 25, 2005 at 04:44:24PM +, Mark Dickinson wrote:
> I have a simple 192-line Python script that begins with the line:
>
> dummy0 = 47
>
> The script runs in less than 2.5 seconds. The variable dummy0 is never
> referenced again, directly or indirectly, by the rest of the script.
>
On Thu, Aug 25, 2005 at 01:35:04PM -0400, Bill Mill wrote:
> On 8/25/05, Erik Max Francis <[EMAIL PROTECTED]> wrote:
> > Mark Dickinson wrote:
> >
> > > Questions:
> > >
> > > (1) Can anyone else reproduce this behaviour, or is it just some quirk
> > > of my setup?
> > > (2) Any possible expla
On Thu, Aug 25, 2005 at 01:55:48PM -0400, Bill Mill wrote:
> Bill Mill wrote:
> >
> > Pentium M 1.8 GHz Windows 2k. Here's the top of the profile results
> > for fast and slow on my machine (these won't look decent except in a
> > fixed-width font):
> >
>
> >
> > Interestingly, the test.py:36 li
On Thu, Aug 25, 2005 at 09:23:09PM +0300, Stelios Xanthakis wrote:
> The explanation is this: hash
> and comparison of objects depends on the state of the memory
> allocator. A sample case is this:
>
> class A: pass
> dummy0=47 # comment this to get a different result for min
>
t fraction of a second to execute.)
Jack Orenstein
import sys
import signal
import threading
import datetime
import time
class metronome(threading.Thread):
def __init__(self, interval, function):
threading.Thread.__init__(self)
self.interval = interval
self.func
y wrong about plugging your own module when
responding to a troll.
-Jack
ps, Foxtrot Oscar Alpha Delta
--
http://mail.python.org/mailman/listinfo/python-list
oblems where this isn't true. From reading this
thread every couple months on c.l.py for the last few years it is my
opinion that the number of people who think threading is the only solution
to their problem greatly outnumber the number of people who actually have
such a problem (like, nearly all of them).
Killing the GIL is proposing a silver bullet where there is no werewolf-ly,
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
ll adults here." To see the first 19, type
"import this" at the python prompt.
I also discovered - to my shock and horror - that many of the GoF's "Design
Patterns" were actually C++ centric and not universals. The sting of seeing
canon reduced to a HOWTO fades quickly, just jump in with both feet.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
ne or in mod_python"""
context.AppContext.__init__(self, req)
# lots of initialization done here
return
Page is a singleton but it inherits from the class context.AppContext
which is just a regular class. The empty Page.__init__ doesn't call
the context.AppContext.__init__ but the once-only Page.init does.
Hope that helps,
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
os; os.system("sed -i s/change this/...tothis/g")'
You beat me to it, but you can cut a few more characters out of that.
/tmp/> python
Python 2.3.4 (#2, Jan 5 2005, 08:24:51)
Type "help", "copyright", "credits" or "license" for more information.
>>> ^D
/tmp/> sed -i 's/change this/...tothis/g'
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
our heartrate was back
to normal. The study concluded that people are bad at knowing when
their heart rate is elevated. I concluded that undergrads will only
do the minimum to pass a course, and are willing to lie about their
heartrate if it gets them out the door five minutes sooner.
Be carefu
hout the recursion and just make a wrapper
that applies the function count times in a wrapper.
def benign(f, count):
def wrap(x):
result = f(x)
for (i) in range(count-1):
result = f(result)
return result
return wrap
print benign(f, 3)(2)
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
aiting threads; or I
find some other problem that makes me wonder about the stability of
the threading module. I can post details on the problems I'm seeing,
but I thought it would be good to get general feedback
first. (Googling doesn't turn up any signs of trouble.)
Thanks.
Jack Orenstei
ch of before/during/after mentions on slashdot each year. If
there is an Indian slashdot kind of thing you might be better off posting there.
I assume you are trying to get butts in seats for the conference so maybe
100k mostly western eyeballs on slashdot wouldn't help with that goal. On the
e bytes arriving for a given file
descriptor and buffer them until the unpickler has enough data to
return a complete unpickled object.
(It would be nice to do this without copying the bytes from one place
to another, but I don't even see how do solve the problem with
copying.)
Jack
--
http:/
ine 26, in ?
time.sleep(1)
KeyboardInterrupt
[EMAIL PROTECTED] osh]$
In this case, thread 1 finishes but thread 2 never runs again. Is
this a known problem? Any ideas for workarounds? Are threads widely
used in Python?
Jack Orenstein
# threadtest.py
import sys
import thread
import time
nThr
Peter Hansen wrote:
> Jack Orenstein wrote:
>
>> I am using Python 2.2.2 on RH9, and just starting to work with Python
>> threads.
>
>
> Is this also the first time you've worked with threads in general,
> or do you have much experience with them in other situ
ut basically, a very simple
program with the thread module, running two threads, shows that on
occasion, one thread finishes and the other never runs again. python2.3
seems better, as does python2.2 with sys.setcheckinterval(100).)
Jack
--
http://mail.python.org/mailman/listinfo/python-list
,
for (contact) in contacts:
# do something with contact
But I tend to name dictionaries as "key_to_value" as in
"email_to_contact" or "ip_to_hostname."
for (email) in emails:
contact = email_to_contact[email]
# do something with contact
It may seem verbose but I can type much faster than I can think and
it makes reading even forgotten code a breeze.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote:
> Jack Diederich wrote:
> >Ditto for me, plural implies list and singular implies instance,
> >for (contact) in contacts:
> > # do something with contact
>
> May I ask why you place the parenthesis in the
On Mon, Feb 28, 2005 at 09:41:37PM +0100, Just wrote:
> In article <[EMAIL PROTECTED]>,
> Jack Diederich <[EMAIL PROTECTED]> wrote:
>
> > On Mon, Feb 28, 2005 at 04:02:37PM -0500, Benji York wrote:
> > > Jack Diederich wrote:
> > > >Ditto for me, p
:
>
> window('hello', 2) => 'he', 'el', 'll', 'lo'
This was considered for 2.4, and I put in a patch if you want a C-level
implementation[1]. The patch wasn't much faster than doing it in python (two
times, IIRC), the python vers
'Foo Bar',
author = 'Jack Orenstein',
author_email = '[EMAIL PROTECTED]',
packages = ['', 'xyz'],
scripts = ['bin/foobar']
)
The resulting package has everything in the specified directories, but
src/actioncompiler/swf4compiler.y
>
I haven't tried under windows, but here is how I got it to compile
under linux. Below is my setup.py
-Jack
"""
This is the setup.py for ming-0.3beta1
Do the normal ming compile and then remove all the .o files
copy this file to py_ext/
and
On Sun, Mar 27, 2005 at 02:20:33PM -0700, Steven Bethard wrote:
> Michele Simionato wrote:
> >I am surprised nobody suggested we put those two methods into a
> >separate module (say dictutils or even UserDict) as functions:
> >
> >from dictutils import tally, listappend
> >
> >tally(mydict, key)
>
On Mon, Mar 28, 2005 at 10:28:29AM -0700, Steven Bethard wrote:
> Jack Diederich wrote:
> >
> > itertools to iter transition, huh? I slipped that one in, I mentioned
> > it to Raymond at PyCon and he didn't flinch. It would be nice not to
> > have to sprinkle
want to iterate. As an anecdote
I use generator comprehensions[1] more often than list comprehensions.
I'll give the builtin manipulations a try but since I have to deal with
many machines I can't promise to flex it much.
-jack
[1] aside, I didn't care too much about upgrading mac
On Thu, Mar 31, 2005 at 08:32:20PM -0800, Andreas Beyer wrote:
> Hi:
>
> If I am getting the docs etc. correctly, the string-module is depricated
> and is supposed to be removed with the release of Python 3.0.
> I still use the module a lot and there are situations in which I don't
> know what t
On Fri, Apr 08, 2005 at 02:17:32PM -0400, jeremit0 wrote:
> I have read a text file using the command
>
> lines = myfile.readlines()
>
> and now I want to seach those lines for a particular string. I was
> hoping there was a way to "find" that string in a similar way as
> searching simply a si
On Fri, Apr 08, 2005 at 04:42:52PM -0700, George Sakkis wrote:
> I'm looking for a design to a problem I came across, which goes like
> this (no, it's not homework):
>
> 1. There is a (single inheritance) hierarchy of domain classes, say
> A<-B<-..<-Z (arrows point to the parent in the inheritance
On Fri, Apr 08, 2005 at 06:40:54PM -0700, George Sakkis wrote:
> > Err, you might want to explain what these things do instead of an
> > abstract description of how you are doing it. It looks like you are
> > using inheritance in the normal way _and_ you are using it to handle
> > versioning of so
On Fri, Apr 08, 2005 at 10:14:52PM -0400, David Jones wrote:
> I am trying to hunt down the difference in performance between some raw
> C++ code and calling the C++ code from Python. My goal is to use Python
> to control a bunch of number crunching code, and I need to show that
> this will not
On Tue, Apr 12, 2005 at 08:41:15AM -0400, Bill Mill wrote:
> On Apr 12, 2005 2:37 AM, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> > "Bernard A." wrote:
> >
> > > i'm looking for a way to have all possible length fixed n-uples from a
> > > list, i think generators can help, but was not able to do it
On Thu, Apr 21, 2005 at 06:13:02AM -0700, codecraig wrote:
> Hi,
> First, I come from a Java background.
>
> Ok, so I have this idea that I want to create an EventBus...basically
> a central class where objects can register themselves as listeners for
> different events. This central class al
On Sat, Apr 23, 2005 at 05:13:29PM -0300, Andr? Roberge wrote:
> I tried to install Ming
> (http://sourceforge.net/projects/ming/)
> on Windows to use with Python *but*
> I can't [/don't know how to] use "make" to install it.
>
> Does anyone know where I could find a ready-made compiled
> version
Can anyone suggest a way to get a pair of file descriptor numbers such
that data written to one can be read from the other and vice versa?
Is there anything like os.pipe() where you can read/write both ends?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 14, 2013 at 01:17:40AM +0100, Rhodri James wrote:
> On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates
> wrote:
>
> > Can anyone suggest a way to get a pair of file descriptor numbers such
> > that data written to one can be read from the other and vice ve
On Wed, Aug 14, 2013 at 01:55:38AM +0100, Chris Angelico wrote:
> On Wed, Aug 14, 2013 at 1:17 AM, Rhodri James
> wrote:
> > On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates
> > wrote:
> >
> >> Can anyone suggest a way to get a pair of file descriptor numbers such
On Wed, Aug 14, 2013 at 08:34:36AM +, Antoine Pitrou wrote:
> Nobody nowhere.com> writes:
> > On Tue, 13 Aug 2013 16:10:41 -0700, Jack Bates wrote:
> > > Is there anything like os.pipe() where you can read/write both ends?
> >
> > There's socket.socketp
Here is an old one I wrote. Good for small collections of documents and
uncomplicated queries.
https://github.com/jackdied/boolmatch
-Jack
On Thu, Apr 23, 2015 at 10:50 AM, wrote:
> Dear Group,
>
> I want to do the Boolean search over various sentences or documents.
> I do not
How do you pass a Python buffer() value as an argument to a ctypes
function, which expects a c_void_p argument? I keep getting TypeError:
ctypes.ArgumentError: argument 2: : wrong type
--
http://mail.python.org/mailman/listinfo/python-list
Why is the following ImportError raised?
$ ./test
Traceback (most recent call last):
File "./test", line 3, in
from foo import dns
File "/home/jablko/foo/dns.py", line 1, in
from foo import udp
File "/home/jablko/foo/udp.py", line 1, in
from foo import dns
ImportError: cannot
> It is a circular dependency. Dns will try to import udp which will in turn
> import dns (again) in an endless cycle; instead an ImportError is raised.
>
> Circular dependency is a Bad Thing.
According to this documentation:
http://docs.python.org/reference/simple_stmts.html#grammar-token-impor
r me, weighs in at 200 lines of
code, and only needs stdlib + json libraries. Using the official
google API required me to write more than 200 lines of code, so I'm a
happy camper.
https://github.com/jackdied/python-foauth2
Patches-welcome-ly,
-Jack
NB, the name can be pronounced "faux-aut
dangerous route to go down since it will be difficult to get help. Any
recommendations?
Thanks very much,
Jack
--
The earth is a very small stage in a vast cosmic arena. Think of the rivers
of blood spilled by all those generals and emperors so that in glory and in
triumph they could becom
; at Google ;) ?
> >
>
> Also, Dart is looking to support (optional) strict typing, which
> Python doesn't do. That's a fairly major performance enhancement.
>
> Traits from Enthought has defined types. I'm no expert mind so might not
be suitable.
Cheers,
would suit what I needed to do best. I'm still
very confused about the whole thing. Can you elaborate on the above a bit
please?
Cheers,
Jack
--
The earth is a very small stage in a vast cosmic arena. Think of the rivers
of blood spilled by all those generals and emperors so that in glor
On Wed, Nov 16, 2011 at 6:30 PM, Dave Angel wrote:
> On 11/16/2011 01:22 PM, Dave Angel wrote:
>
>> (You're top-posting. Put your remarks AFTER what you're quoting)
>>
>> On 11/16/2011 12:52 PM, Jack Keegan wrote:
>>
>>> Ok, I thought that pro
I think the OP meant when the parent gets killed (by ctrl+c or similar),
not deleted. At least that's what I think when I think of a program being
killed. Is it even possible to send a signal in such a case?
Cheers,
Jack
On Fri, Dec 2, 2011 at 4:27 PM, 8 Dihedral wrote:
> Plea
)s so valgrind becomes useful. Worst case add assertions
and printf()s in the places you think are most janky.
-Jack
On Sat, Dec 17, 2011 at 11:17 PM, buck wrote:
> I'm getting a fatal python error "Fatal Python error: GC object already
> tracked"[1].
>
> Using gdb, I
On Wed, Dec 21, 2005 at 01:36:42PM -0500, rbt wrote:
> Alex Martelli wrote:
> > I don't think there was any official announcement, but it's true -- he
> > sits about 15 meters away from me;-).
>
> For Americans: 15 meters is roughly 50 feet.
Right, so that is about three and a half stone?
--
ht
QOTW: "being able to cook an egg" - Guido Van Rossum in response to the
question, "What do you think is the most important skill every programmer
should posses?"
"I am asking for your forgiveness" - an open letter to Guido by someone
who took the "D" in "BDFL" too literally.
Parsing a Gramm
QOTW: "Consider changing your business plan: write crappy software, charge
heaps for support -- it's not a novel idea" - John Machin
"To make it run fast, use psyco. To make it even faster, implement the
compare function in C." - Raymond Hettinger
A Perl convert gladly announces his convers
g the list to length 1, still no dice. The PySequence
version segs under 2.4 and 2.5. It segs even when the Int is changed
to a String.
Yikes, I'll poke around some more.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 16, 2006 at 02:39:24PM -0700, John Machin wrote:
>
> Jack Diederich wrote:
>
> > Changing the PySequence_SetItem to PyList_SetItem and dropping the
> > DECREF works for me too (PyList functions steal a reference). I also
> > tried setting the list to le
On Wed, Aug 16, 2006 at 03:25:39PM -0700, John Machin wrote:
>
> Jack Diederich wrote:
> > On Wed, Aug 16, 2006 at 02:39:24PM -0700, John Machin wrote:
> > >
> > > Jack Diederich wrote:
> > >
> > > > Changing the PySequence_SetItem to PyList_S
On Wed, Aug 16, 2006 at 05:13:23PM -0700, John Machin wrote:
>
> Jack Diederich wrote:
> > On Wed, Aug 16, 2006 at 03:25:39PM -0700, John Machin wrote:
>
> > > > >
> > > > > Not the OP's problem, but a bug in the manual: example in the chapter
&g
always
segfaulted (at least back to 2.2, I didn't check 1.5).
While it feels uneven that other types can't get this kind of segfault the
fact that no one else has ever run accross it makes the point moot.
Unrelated, it looks like PySequence_* doesn't have much reason to live now
that
the source is small and readable).
The best thing to do would be to load your module last and conitionally
call Py_Initialize() if someone else hasn't already.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, Aug 19, 2006 at 09:08:21AM -0700, Bryan wrote:
> Jack Diederich wrote:
> > On Fri, Aug 18, 2006 at 02:21:40PM -0700, Bryan wrote:
> >> i've written a program that uses python c api code that lives in a
> >> shared library that is loaded by a custo
QOTW: "Because there's no chance that the original request is sane." - Georg
Brandl (responding to a question involving a Banana)
"this is one of your last chances to test the new code in 2.5 before the final
release. *Please* try this release out and let us know about any problems you
find" - An
eturns
> less than N rows, at which point you have exhausted the query.
>
> It's very little more effort to wrap this all up as a generator that
> effectively allows you to use the same solution as you quote for cx_Oracle.
MySQL will keep table locks until the results are all fetched so even though
the DB API allows fetchone() or fetchmany() using those with MySQLdb is
dangerous.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
> raises a MemoryError exception after about 10 seconds. hmm. looks like
> a bug in the file iterator, really...
svn log Objects/fileobject.c
r43506 | georg.brandl | 2006-03-31 15:31:02 -0500 (Fri, 31 Mar 2006) | 2 lines
Bug #1177964: make file iterator raise MemoryError on too big files
So it always the error on the trunk.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
QOTW: "The best working hypothesis is that upgrading will break
things." - Grant Edwards
"Should I take this to mean: "Don't go near TNEF because your underwear
will become carnivorous and consume your genitalia?" - Hendrik van Rooyen
Which is better, Turbogears or Rails? Flame on.
n't broken for them or they would know it by now.
2.3.6 probably isn't broken for them but it can't help -- or they would
have noticed a bug by now.
My own servers jumped from 2.2 to 2.4 for the same reason everyone else
has given for an upgrade. We just happened to have ti
QOTW: "The bad news is that I seem to be an anti-channeler, so my interest
is perhaps not a *good* sign" - Jim Jewett
"I'm sorry this letter is so long. I didn't have time to write a shorter
one." - Blaise Pascal (1657)
The Python 2.5 release date is now September 19th.
http://www.p
QOTW: "Regexps are a brittle tool, best tolerated in small doses." - Tim Peters
"Simplicity is prerequisite for reliability" - Edsger W. Dijkstra
eval(repr(var)) sometimes works for serialization but don't count on it.
http://groups.google.com/group/comp.lang.python/browse_thread/t
ex you have to slice the string by hand and with split
you would do something like.
try:
script, params = script.split('?')
except ValueError: pass
or
parts = script.split('?', 1)
script = parts[0]
params = ''.join(parts[1:])
Grep your source for index, find,
tegers, not necessarily positive integers. It worked on
> Python 2.4.
>
> Looking at the source (from 2.5 rc2), it looks like they accidentally
> used PyInt_FromSize_t rather than PyInt_FromSSize_t in the count
> iterator. size_t is unsigned, of course, hence the large negative
> numbers.
>
Nuts, that was me. I'll fix and add some tests.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
KB - this
was generated by the py-pil install)
2)
/opt/local/var/db/dports/software/py-pil/1.1.5_1/opt/lcoal/lib/python2.4/site-packages/PIL/_imagin.so
(684KB - this was generated by the py-pil install)
3) Desktop/Imaging-1.1.5/PIL/_imaging.so (212KB - this was generated
by the PIL Imaging isntall)
4) Desktop/Imaging-1.1.5/build/lib.darwin-7.9.0-Power_macintosh-2.4/_imaging.so
(212KB - this was generated by the PIL Imaging install)
My goal is to get the self-test working properly. Somebody please help!
--
Jack Wu
--
http://mail.python.org/mailman/listinfo/python-list
>
> This happens on python2.3 - python2.5 and it does not help to specify a
> maximum line size.
>
> Any ideas ?
The bz2 module is implemented in C so calling "f.readline()" repeatedly
has extra Python => C call overhead that "f.readlines()" doesn't have
because it stays in a tight C loop the whole time.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
They eventually got this once posted on the website.
http://techtalk.imi-us.com/Archives/2006/20061001/
The Lutz interview starts at 10:00 minutes in.
-Jack
On Fri, Sep 29, 2006 at 11:25:34AM -0700, Mark Lutz wrote:
> Python author and trainer Mark Lutz will be interviewed
> on the radi
housand
A's takes .5 seconds. This is because "100 choose 2" has 9900 permutations,
"1000 choose 2" has 999000, "1000 choose two" has , etc.
-Jack
--
http://mail.python.org/mailman/listinfo/python-list
201 - 300 of 408 matches
Mail list logo