On Sat, 25 Oct 2008 03:29:39 +, Steven D'Aprano wrote:
> Personally, I tend to use a combination of approaches. Since doctests
> aren't intended for full test coverage, I use *short* tests in methods.
> If I can't make a test short, it doesn't go into the method doctest. For
> more extensive t
Rhamphoryncus wrote:
A list
is not shareable, so it can only be used within the monitor it's
created within, but the list type object is shareable.
Type objects contain dicts, which allow arbitrary values
to be stored in them. What happens if one thread puts
a private object in there? It become
Hi list,
I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed
to build some of the modules.
"""
Failed to find the necessary bits to build these modules:
_bsddb _sqlite3 _tkinter
gdbm linuxaudiodev spwd
sunaudiodev
To find the necessary bit
Andy O'Meara wrote:
In our case, we're doing image and video
manipulation--stuff not good to be messaging from address space to
address space.
Have you considered using shared memory?
Using mmap or equivalent, you can arrange for a block of
memory to be shared between processes. Then you can
Glenn Linderman wrote:
If Py_None corresponds to None in Python syntax ... then
it is a fixed constant and could be left global, probably.
No, it couldn't, because it's a reference-counted object
like any other Python object, and therefore needs to be
protected against simultaneous refcount ma
Andy O'Meara wrote:
- each worker thread makes its own interpreter, pops scripts off a
work queue, and manages exporting (and then importing) result data to
other parts of the app.
I hope you realize that starting up one of these interpreters
is going to be fairly expensive. It will have to cr
In message
<[EMAIL PROTECTED]>, asit
wrote:
> from socket import *
I think I'd make it a policy not to help with any scripts that contain
wildcard imports.
> status={0:"open",10049:"address not available",10061:"closed",
> 10060:"timeout",10056:"already connected",10035:"filtered",11001:"IP
> no
Andy O'Meara wrote:
I would definitely agree if there was a context (i.e. environment)
object passed around then perhaps we'd have the best of all worlds.
Moreover, I think this is probably the *only* way that
totally independent interpreters could be realized.
Converting the whole C API to u
On Fri, 24 Oct 2008 01:47:10 -0700, Rafe wrote:
> Hi,
>
> I've encountered a problem which is making debugging less obvious than
> it should be. The @property decorator doesn't always raise exceptions.
I don't think that's the problem. I think properties do correctly raise
all exceptions that o
On Oct 24, 11:58 am, "John [H2O]" <[EMAIL PROTECTED]> wrote:
> Just a quick question.. what do I need to do so that my print statements are
> caught by nohup??
>
> Yes, I should probably be 'logging'... but hey..
>
> Thanks!
> --
> View this message in
> context:http://www.nabble.com/print-stateme
I'm trying to get the difference of two images using PIL. The
ImageChops.difference function does almost what I want, but it takes
the absolute value of the pixel difference. What I want is a two color
output image: black where the image wasn't different, and white where
it was different. Ri
Hi,
Using lxml to clean up auto-generated xml to validate against a dtd; I need
to remove an element tag but keep the text in order. For example
s0 = '''
first text
ladida
emphasized text
middle text
last text
'''
I want to get rid of the tag but keep everything else
Glenn Linderman wrote:
For example, Python presently has a rather stupid algorithm for string
concatenation.
Python the language has syntax and semantics. Python implementations
have algorithms that fulfill the defined semantics.
It allocates only the exactly necessary space for the
conca
On Fri, 24 Oct 2008 17:16:50 -0700, mde wrote:
> I'm wondering if there is a "best practice" for *creating doctests in
> methods* that reduces clutter/duplication of dummy instantiations. In
> the following code there are five (labeled 1-5) possible places to put a
> dummy mock instantiation. I
On Oct 24, 11:58 am, "John [H2O]" <[EMAIL PROTECTED]> wrote:
> Just a quick question.. what do I need to do so that my print statements are
> caught by nohup??
>
> Yes, I should probably be 'logging'... but hey..
>
> Thanks!
> --
> View this message in
> context:http://www.nabble.com/print-stateme
> It seems to me that the very simplest move would be to remove global
> static data so the app could provide all thread-related data, which
> Andy suggests through references to the QuickTime API. This would
> suggest compiling python without thread support so as to leave it up
> to the applicatio
>> A c-level module, on the other hand, can sidestep/release
>> the GIL at will, and go on it's merry way and process away.
>
> ...Unless part of the C module execution involves the need do CPU-
> bound work on another thread through a different python interpreter,
> right?
Wrong.
> (even if th
hai,
i am srinu from india. i am sending a blog url for yours use.
Right side Of The Blog Awsurvey Banner will appear.
click on the banner and get a free signup with 6$ bonus and you will
get more surveys.
once you have completed one survey you will get minimem 4$ and more
left side of the blog
On Fri, Oct 24, 2008 at 5:38 PM, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/24/2008 2:16 PM, came the following characters from the
> keyboard of Rhamphoryncus:
>>
>> On Oct 24, 3:02 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> On approximately 10/23/2008 2:24 PM,
On Fri, Oct 24, 2008 at 4:48 PM, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/24/2008 2:15 PM, came the following characters from the
> keyboard of Rhamphoryncus:
>>
>> On Oct 24, 2:59 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> On approximately 10/24/2008 1:09 PM,
I'm wondering if there is a "best practice" for *creating doctests in
methods* that reduces clutter/duplication of dummy instantiations. In
the following code there are five (labeled 1-5) possible places to put
a
dummy mock instantiation. I have the impression that creating the
dummies in every m
On Oct 24, 1:44 pm, Mr.SpOOn <[EMAIL PROTECTED]> wrote:
> Hi,
> in an application I have to use some variables with fixed valuse.
>
> For example, I'm working with musical notes, so I have a global
> dictionary like this:
>
> natural_notes = {'C': 0, 'D': 2, 'E': 4 }
>
> This actually works fin
> Are you familiar with the API at all? Multiprocessing was designed to
> mimic threading in about every way possible, the only restriction on
> shared data is that it must be serializable, but event then you can
> override or customize the behavior.
>
> Also, inter process communication is done
On Fri, 24 Oct 2008 09:34:36 -0700, Rafe wrote:
>> You must subclass from "object" to get a new style class. properties
>> don't work correctly on old style classes.
>>
>> Christian
>
> All classes are a sub-class of object. Any other ideas?
Only in Python 3. If you are relying on that to be tru
> Thank you, Chris. Class.__bases__ is exactly what I wanted to see.
> And I thought I had tried isinstance(), and found it lacking -- but I
> just tried it again, and it does what I hoped it would do.
While isinstance is no doubt the proper way to access this
information, you may have run into
>
> Developer. NOT User.
I go around and around on this issue, and have ended up considering
anyone using my code a user, and if it's a library or class system,
likely that user is a programmer. I don't really think there is a
strong distinction... more and more users can do sophisticated
configu
when I was a baby programmer even vendors didn't have documentation to
throw out... we just viewed the dissassembeled opcodes to find out how
things worked... we never did find out much but I could make the speak
click, and we were happy with it.
--
http://mail.python.org/mailman/listinfo/python-li
hello,
Although I personally hate to release a new version so soon,
the error reporting is so essential, that updating is a must.
V1.5 changes
- errors (catched by the library) will now give a normal error report
- GUI preview function now available in this library
gui_support is library for ea
On Fri, Oct 24, 2008 at 1:44 PM, Mr. SpOOn <[EMAIL PROTECTED]> wrote:
> Hi,
> in an application I have to use some variables with fixed valuse.
>
> For example, I'm working with musical notes, so I have a global
> dictionary like this:
>
> natural_notes = {'C': 0, 'D': 2, 'E': 4 }
>
> This actu
> From: "Andy O'Meara" <[EMAIL PROTECTED]>
> Unfortunately, a shared address region doesn't work when you have
> large and opaque objects (e.g. a rendered CoreVideo movie in the
> QuickTime API or 300 megs of audio data that just went through a
> DSP). Then you've got the hit of serialization if
On Oct 24, 3:02 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/23/2008 2:24 PM, came the following characters from the
> keyboard of Rhamphoryncus:
>>
>> On Oct 23, 11:30 am, Glenn Linderman <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> On approximately 10/23/2008 12:24 AM, came the f
On Oct 24, 2:59 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/24/2008 1:09 PM, came the following characters from
> the keyboard of Rhamphoryncus:
> > PyE: objects are reclassified as shareable or non-shareable, many
> > types are now only allowed to be shareable. A module a
On Fri, Oct 24, 2008 at 4:51 PM, Andy O'Meara <[EMAIL PROTECTED]> wrote:
>> In the module multiprocessing environment could you not use shared
>> memory, then, for the large shared data items?
>>
>
> As I understand things, the multiprocessing puts stuff in a child
> process (i.e. a separate addre
On approximately 10/24/2008 1:09 PM, came the following characters from
the keyboard of Rhamphoryncus:
On Oct 24, 1:02 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
On approximately 10/24/2008 8:42 AM, came the following characters from
the keyboard of Andy O'Meara:
Glenn, great post
Another great post, Glenn!! Very well laid-out and posed!! Thanks for
taking the time to lay all that out.
>
> Questions for Andy: is the type of work you want to do in independent
> threads mostly pure Python? Or with libraries that you can control to
> some extent? Are those libraries reentran
On Sat, Oct 25, 2008 at 12:25 AM, <[EMAIL PROTECTED]> wrote:
> Thank you,James.
> My original idea was to study all the contents of any object. I can do
> it by using module ctypes.
You can simply just query it's attributes.
Use __dict__ or dir(obj)
Example:
>>> x = 10
>>> dir(x)
['__abs__', '
Steven D'Aprano wrote:
On Sun, 19 Oct 2008 20:50:46 +0200, Stef Mientki wrote:
Duncan, in windows it's begin to become less common to store settings in
Docs&Settings,
because these directories are destroyed by roaming profiles
The directories aren't destroyed by roaming profiles. When the us
In message <[EMAIL PROTECTED]>, Steven D'Aprano
wrote:
> Why is it a class attribute instead of an instance attribute?
Singleton class.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
in an application I have to use some variables with fixed valuse.
For example, I'm working with musical notes, so I have a global
dictionary like this:
natural_notes = {'C': 0, 'D': 2, 'E': 4 }
This actually works fine. I was just thinking if it wasn't better to
use class variables.
Sin
In message
<[EMAIL PROTECTED]>,
Reckoner wrote:
> I have multiple packages that have many of the same function names. Is
> it possible to do
>
> from package1 import *
> from package2 import *
>
> without overwriting similarly named objects from package1 with
> material in package2?
Avoid wildc
On Oct 24, 12:05 pm, Robocop <[EMAIL PROTECTED]> wrote:
> Does anyone know of any decent (open source or commercial) python
> barcode recognition tools or libraries. I need to read barcodes from
> pdfs or images, so it will involve some OCR algorithm. I also only
> need to read the code 93 symbol
On Oct 24, 2:53 pm, Rex <[EMAIL PROTECTED]> wrote:
> Right. If you want to get the same results with your Python script
> that you did with Firefox, you can modify the browser headers in your
> code.
>
> Here's an example with
> urllib2:http://vsbabu.org/mt/archives/2003/05/27/urllib2_setting_http
On Oct 24, 1:02 pm, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/24/2008 8:42 AM, came the following characters from
> the keyboard of Andy O'Meara:
>
> > Glenn, great post and points!
>
> Thanks. I need to admit here that while I've got a fair bit of
> professional programming
If you're concerned about specific individual functions, you can use:
from package1 import some_function as f1
form package2 import some_function as f2
--
http://mail.python.org/mailman/listinfo/python-list
Right. If you want to get the same results with your Python script
that you did with Firefox, you can modify the browser headers in your
code.
Here's an example with urllib2:
http://vsbabu.org/mt/archives/2003/05/27/urllib2_setting_http_headers.html
By the way, if you're doing non-trivial web scr
On Fri, Oct 24, 2008 at 3:17 PM, Andy O'Meara <[EMAIL PROTECTED]> wrote:
> I'm a lousy writer sometimes, but I feel bad if you took the time to
> describe threads vs processes. The only reason I raised IPC with my
> "messaging isn't very attractive" comment was to respond to Glenn
> Linderman's p
On Fri, Oct 24, 2008 at 2:33 PM, asit <[EMAIL PROTECTED]> wrote:
> this the o/p
> [EMAIL PROTECTED]:~/hack$ python portscan.py 59.93.128.10 10 20
> Traceback (most recent call last):
> File "portscan.py", line 33, in
>print str(port) + " : " + scan(ip,port,timeout)
> File "portscan.py", line
Am Fri, 24 Oct 2008 11:33:33 -0700 schrieb asit:
> On Oct 24, 11:18 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote:
>> On Fri, Oct 24, 2008 at 1:42 PM, asit <[EMAIL PROTECTED]> wrote:
>> > I code in both windows and Linux. As python is portable, the o/p
>> > should be same in both cases. But why the f
Hi,
I'm currently using boost::python::import() to import Python modules,
so I'm not sure exactly which Python API function it is calling to
import these files. I posted to the Boost.Python mailing list with
this question and they said I'd probably get a better answer here, so
here it goes...
If
Am Fri, 24 Oct 2008 05:06:23 -0500 schrieb Tim Chase:
> ["%s="%s" % (k,v) for k,v in d.items()]
>> File "", line 1
>> ["%s="%s" % (k,v) for k,v in d.items()]
>> ^
>> SyntaxError: EOL while scanning single-quoted string
>
> You have three quotati
>
> The Global Interpreter Lock is fundamentally designed to make the
> interpreter easier to maintain and safer: Developers do not need to
> worry about other code stepping on their namespace. This makes things
> thread-safe, inasmuch as having multiple PThreads within the same
> interpreter spa
Gilles Ganault wrote:
> After scratching my head as to why I failed finding data from a web
> using the "re" module, I discovered that a web page as downloaded by
> urllib doesn't match what is displayed when viewing the source page in
> FireFox.
>
> For instance, when searching Amazon for "Wargam
Hello
After scratching my head as to why I failed finding data from a web
using the "re" module, I discovered that a web page as downloaded by
urllib doesn't match what is displayed when viewing the source page in
FireFox.
For instance, when searching Amazon for "Wargames":
URLLIB:
http://www.am
My client in Jersey City, NJ 07302 is looking for a Python Developer. Below
is the job description:
Job Summary:
This is a programming position in the technical department of Advance
Internet, working on application development, application integration,
automated testing and deployment of appli
On 24 Oct 2008 18:02:45 GMT, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]>
wrote:
>This "URL" lacks the protocol! Correct would be http://amazon.fr
(I
>guess).
Thanks, that did it :)
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 24, 11:18 pm, "Jerry Hill" <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 24, 2008 at 1:42 PM, asit <[EMAIL PROTECTED]> wrote:
> > I code in both windows and Linux. As python is portable, the o/p
> > should be same in both cases. But why the following code is perfect in
> > windows but error one
On Fri, Oct 24, 2008 at 1:42 PM, asit <[EMAIL PROTECTED]> wrote:
> I code in both windows and Linux. As python is portable, the o/p
> should be same in both cases. But why the following code is perfect in
> windows but error one in Linux ???
What error message do you get in linux? How are you r
On Fri, Oct 24, 2008 at 11:59:46AM +1000, James Mills wrote:
> On Fri, Oct 24, 2008 at 11:36 AM, John Ladasky <[EMAIL PROTECTED]> wrote:
> > etc. The list of subclasses is not fully defined. It is supposed to
> > be extensible by the user.
>
> Developer. NOT User.
It's a semantic argument, but
I have multiple packages that have many of the same function names. Is
it possible to do
from package1 import *
from package2 import *
without overwriting similarly named objects from package1 with
material in package2? How about a way to do this that at least gives a
warning?
Yeah, just use
On Oct 24, 1:06 pm, Reckoner <[EMAIL PROTECTED]> wrote:
> I have multiple packages that have many of the same function names. Is
> it possible to do
>
> from package1 import *
> from package2 import *
>
> without overwriting similarly named objects from package1 with
> material in package2? How abo
I am writing an algorithm that takes objects (i.e. graphs with
thousands of nodes) into a "hypothetical" state. I need to keep a
history of these hypothetical objects depending on what happens to
them later. Note that these hypothetical objects are intimately
operated on, changed, and made otherwi
On Fri, 24 Oct 2008 10:42:21 -0700, asit wrote:
> I code in both windows and Linux. As python is portable, the o/p should
> be same in both cases. But why the following code is perfect in windows
> but error one in Linux ???
So what *is* the error on Linux!?
> def scan(ip,port,timeout):
>
I have multiple packages that have many of the same function names. Is
it possible to do
from package1 import *
from package2 import *
without overwriting similarly named objects from package1 with
material in package2? How about a way to do this that at least gives a
warning?
Thanks.
--
http:/
On Fri, 24 Oct 2008 19:56:04 +0200, Gilles Ganault wrote:
> I'm trying to use urllib to download web pages with the GET method, but
> Python 2.5.1 on Windows turns the URL into something funny:
>
>
> url = "amazon.fr/search/index.php?url=search"
This "URL" lacks the protocol! Correct w
Hello
I'm trying to use urllib to download web pages with the GET method,
but Python 2.5.1 on Windows turns the URL into something funny:
url = "amazon.fr/search/index.php?url=search"
[...]
IOError: [Errno 2] The system cannot find the path specified:
'amazon.fr\\search\\index.php?url=
In message <[EMAIL PROTECTED]>, Steven D'Aprano
wrote:
> Putting preferences files in the user's top level directory is horribly
> inconvenient for the user.
There is a way around this: redefine the HOME environment variable to be the
directory where you want the dotfiles to end up.
--
http://mai
I code in both windows and Linux. As python is portable, the o/p
should be same in both cases. But why the following code is perfect in
windows but error one in Linux ???
from socket import *
import sys
status={0:"open",10049:"address not available",10061:"closed",
10060:"timeout",10056:"alread
Does anyone know of any decent (open source or commercial) python
barcode recognition tools or libraries. I need to read barcodes from
pdfs or images, so it will involve some OCR algorithm. I also only
need to read the code 93 symbology, so it doesn't have to be very
fancy. The most important th
Rafe wrote:
> On Oct 24, 2:21 am, Christian Heimes <[EMAIL PROTECTED]> wrote:
>> Rafewrote:
>> > Hi,
>>
>> > I've encountered a problem which is making debugging less obvious than
>> > it should be. The @property decorator doesn't always raise exceptions.
>> > It seems like it is bound to the clas
On Oct 18, 2008, at 8:12 AM, Dotan Cohen wrote:
I often see mention of SMBs that either want to upgrade their Windows
installations, or move to Linux, but cannot because of inhouse VB
apps. Are there any Python experts who I can reference them to for
porting? I have nothing on hand at the moment
Graham Dumpleton wrote:
http://code.google.com/p/modwsgi/wiki/InstallationOnMacOSX
http://developer.apple.com/releasenotes/OpenSource/PerlExtensionsRelNotes/index.html
The latter only works for Apple supplied Python as I understand it.
..
thanks for these, the mod_wsgi build
On Oct 24, 2:21 am, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Rafewrote:
> > Hi,
>
> > I've encountered a problem which is making debugging less obvious than
> > it should be. The @property decorator doesn't always raise exceptions.
> > It seems like it is bound to the class but ignored when ca
On Fri, Oct 24, 2008 at 12:30 PM, Jesse Noller <[EMAIL PROTECTED]> wrote:
> On Fri, Oct 24, 2008 at 10:40 AM, Andy O'Meara <[EMAIL PROTECTED]> wrote:
>>> > 2) Barriers to "free threading". As Jesse describes, this is simply
>>> > just the GIL being in place, but of course it's there for a reason.
On Fri, Oct 24, 2008 at 10:40 AM, Andy O'Meara <[EMAIL PROTECTED]> wrote:
>> > 2) Barriers to "free threading". As Jesse describes, this is simply
>> > just the GIL being in place, but of course it's there for a reason.
>> > It's there because (1) doesn't hold and there was never any specs/
>> > g
asit wrote:
what the wrong with the following code
d={"server":"mpilgrim","database":"master",
... "uid":"sa",
... "pwd":"secret"}
d
{'pwd': 'secret', 'database': 'master', 'uid': 'sa', 'server':
'mpilgrim'}
["%s="%s" % (k,v) for k,v in d.items()]
File "", line 1
["%s="%s" % (
On Oct 24, 8:01 pm, Steven D'Aprano <[EMAIL PROTECTED]
cybersource.com.au> wrote:
> On Fri, 24 Oct 2008 14:53:19 +, Peter Pearson wrote:
> > On 24 Oct 2008 13:17:45 GMT, Steven D'Aprano wrote:
>
> >> What are programmers coming to these days? When I was their age, we
> >> were expected to *read
Stefan Behnel wrote:
Terry Reedy wrote:
Everything in DLLs is compiled C extensions. I see about 15 for Windows
3.0.
Ah, weren't that wonderful times back in the days of Win3.0, when DLL-hell was
inhabited by only 15 libraries? *sigh*
... although ... wait, didn't Win3.0 have more than that
As a side note to the performance question, we are executing python
code in an audio thread that is used in all of the top-end music
production environments. We have found the language to perform
extremely well when executed at control-rate frequency, meaning we
aren't doing DSP computations, just
We are in the same position as Andy here.
I think that something that would help people like us produce
something in code form is a collection of information outlining the
problem and suggested solutions, appropriate parts of the CPython's
current threading API, and pros and cons of the many vario
Just a quick question.. what do I need to do so that my print statements are
caught by nohup??
Yes, I should probably be 'logging'... but hey..
Thanks!
--
View this message in context:
http://www.nabble.com/print-statements-not-sent-to-nohup.out-tp20152780p20152780.html
Sent from the Python -
Glenn, great post and points!
>
> Andy seems to want an implementation of independent Python processes
> implemented as threads within a single address space, that can be
> coordinated by an outer application. This actually corresponds to the
> model promulgated in the paper as being most likely
On Oct 23, 5:02 pm, [EMAIL PROTECTED] wrote:
> On Oct 22, 8:33 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > En Wed, 22 Oct 2008 20:34:39 -0200, <[EMAIL PROTECTED]> escribió:
>
> > > I am using py2exe and everything is working fine except one module,
> > > ClientCookie, found here:
I'm not finished reading the whole thread yet, but I've got some
things below to respond to this post with.
On Thu, Oct 23, 2008 at 9:30 AM, Glenn Linderman <[EMAIL PROTECTED]> wrote:
> On approximately 10/23/2008 12:24 AM, came the following characters from the
> keyboard of Christian Heimes:
>>
Philip Semanchuk <[EMAIL PROTECTED]> writes:
> On Oct 23, 2008, at 3:18 PM, J Kenneth King wrote:
>
>> Philip Semanchuk <[EMAIL PROTECTED]> writes:
>>
>>> On Oct 23, 2008, at 11:36 AM, J Kenneth King wrote:
>>>
Hey everyone,
I'm working on a python extension wrapper around Rob
On Fri, 24 Oct 2008 14:53:19 +, Peter Pearson wrote:
> On 24 Oct 2008 13:17:45 GMT, Steven D'Aprano wrote:
>>
>> What are programmers coming to these days? When I was their age, we
>> were expected to *read* the error messages our compilers gave us, not
>> turn to the Interwebs for help as soo
> That aside, the fundamental problem is what I perceive a fundamental
> design flaw in Python's C API. In Java JNI, each function takes a
> JNIEnv* pointer as their first argument. There is nothing the
> prevents you from embedding several JVMs in a process. Python can
> create embedded subinte
On Fri, 24 Oct 2008 07:43:16 -0700, Peng Yu wrote:
>> Most probably a backport to Python 2.6 or even 2.5 under a different
>> module name like re_ng wouldn't be too difficult to do for anybody that
>> needs the new functionality and knows a bit about building extension
>> modules.
>
> I did a goo
On 24 Oct 2008 13:17:45 GMT, Steven D'Aprano wrote:
>
> What are programmers coming to these days? When I was their age, we were
> expected to *read* the error messages our compilers gave us, not turn to
> the Interwebs for help as soon there was the tiniest problem.
Yes, and what's more, the te
On Oct 23, 8:11 pm, "John [H2O]" <[EMAIL PROTECTED]> wrote:
> datagrid = numpy.zeros(360,180,3,73,20)
On a 32 bit system, try this instead:
datagrid = numpy.zeros((360,180,3,73,20), dtype=numpy.float32)
(if you can use single precision that is.)
--
http://mail.python.org/mailman/lis
> Most probably a backport to Python 2.6 or even 2.5 under a different
> module name like re_ng wouldn't be too difficult to do for anybody that
> needs the new functionality and knows a bit about building extension
> modules.
I did a google a search. But I don't find any document that describe
it
On Oct 24, 2:12 am, greg <[EMAIL PROTECTED]> wrote:
> Andy wrote:
> > 1) Independent interpreters (this is the easier one--and solved, in
> > principle anyway, by PEP 3121, by Martin v. Löwis
>
> Something like that is necessary for independent interpreters,
> but not sufficient. There are also all
On Oct 24, 3:58 pm, "Andy O'Meara" <[EMAIL PROTECTED]> wrote:
> This is discussed earlier in the thread--they're unfortunately all
> out.
It occurs to me that tcl is doing what you want. Have you ever thought
of not using Python?
That aside, the fundamental problem is what I perceive a fundament
I have read about both Plone and Alfresco being considered as alternatives to
Sharepoint and unfortunately they may not be enough if you require
everything Sharepoint has too offer. Plone and Alfresco are both great
applications but out of the box they are too focused to be complete
replacements.
On 10月24日, 下午1时10分, "James Mills" <[EMAIL PROTECTED]>
wrote:
> On Fri, Oct 24, 2008 at 2:58 PM, <[EMAIL PROTECTED]> wrote:
> > maybe id(x) can get it ,but how to cast it back into a object
>
> You can't. Python is NOT C/C++/Java or whatever.
>
> If you have a variable, x, and you want to "copy" it
Terry Reedy wrote:
> Everything in DLLs is compiled C extensions. I see about 15 for Windows
> 3.0.
Ah, weren't that wonderful times back in the days of Win3.0, when DLL-hell was
inhabited by only 15 libraries? *sigh*
... although ... wait, didn't Win3.0 have more than that already? Maybe you
me
On Oct 24, 8:28 am, ASh <[EMAIL PROTECTED]> wrote:
> On Oct 23, 5:10 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
>
>
>
> > ASh wrote:
> > > Hi,
>
> > > I have this source:
>
> > > importlogging
> > > importlogging.config
>
> > >logging.config.fileConfig("logging.properties")
> > > log =loggin
This is expected behavior (see http://www.python.org/doc/essays/cleanup)
but it is definitely a wart of Python. The best advice I can give you
is *never* use __del__. There are alternatives,
such as the with statement, weak references or atexit.
See for instance http://code.activestate.com/recipes
On Oct 24, 9:35 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> Instead of "appdomains" (one interpreter per thread), or free
> threading, you could use multiple processes. Take a look at the new
> multiprocessing module in Python 2.6.
That's mentioned earlier in the thread.
>
> There is a fundamen
Hi Diez,
Thanks, I will look on Google again, to date though all examples I
have used come up against similar problems. As for HTTP framework and
libraries, I will see what is currently supported. At present I am
using standard Python libraries.
Best,
rod
--
http://mail.python.org/mailman/listi
Hi
i have i have a class that makes temp folders to do work in. it keeps
track of them, so that in the __del__() it can clean them up. ideally
if the user of the module still has objects left at the end of their
program, they should be automatically cleaned up. in my destructor i
had a call to shu
1 - 100 of 120 matches
Mail list logo