On Mar 4, 12:48 pm, "Daniel Nogradi" <[EMAIL PROTECTED]> wrote:
> The etree.Element (or ElementTree.Element) supports a number of
> list-like methods: append, insert, remove. Any special reason why it
> doesn't support pop and extend (and maybe count)?
Those methods would not be hard to add. Perh
I had an idea but no time to think it through.
Perhaps the under-under name mangling trick
can be replaced (in Py3.0) with a suitably designed decorator.
Your challenge is to write the decorator.
Any trick in the book (metaclasses, descriptors, etc) is fair game.
Raymond
how we currentl
I have a simple package. I'm trying to add an examples subdirectory
with distutils. I'm using Python 2.4 on Linux. My file layout and
setup.py can be found here:
http://www.deadbeefbabe.org/paste/3870
I've tried using data_files as well, with the same result; examples/
fig2.3.apt is not added to
I wrote this little program called Squisher that takes a ZIP file
containing Python modules and generates a totally self-contained .pyc
file that imports a specified module therein. (Conveniently, Python's
bytecode parser ignores anything after an end marker, and the
zipimport mechanism skips any n
On Mar 4, 7:52 pm, "Mudcat" <[EMAIL PROTECTED]> wrote:
> I have done a bit of searching and can't seem to find a stock market
> tool written in Python that is active. Anybody know of any? I'm trying
> not to re-create the wheel here.
What kind of tool do you want? Getting quotes is the easy part:
I have done a bit of searching and can't seem to find a stock market
tool written in Python that is active. Anybody know of any? I'm trying
not to re-create the wheel here.
--
http://mail.python.org/mailman/listinfo/python-list
"Daniel Nogradi" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| The etree.Element (or ElementTree.Element) supports a number of
| list-like methods: append, insert, remove. Any special reason why it
| doesn't support pop and extend (and maybe count)?
I think you should turn the qu
"Roger" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
| Max Erickson wrote:
| > I don't know what the format is, etc, but jpegs I open with PIL have a
| > quantization attribute, e.g:
| >
| im.quantization
| Thank you, I wasn't aware of the quantization method. I was unable t
Nikita the Spider <[EMAIL PROTECTED]> wrote:
> Hi all,
> I'm a newbie when it comes to distributing C-based Python modules. I'm
> just now sharing my first with the rest of the world (it's actually V.
> Marangozov's shared memory module for IPC) and I've learned that the
> module needs a differen
Hi all,
I'm a newbie when it comes to distributing C-based Python modules. I'm
just now sharing my first with the rest of the world (it's actually V.
Marangozov's shared memory module for IPC) and I've learned that the
module needs a different set of compile flags for Linux than for my Mac.
My
P.S. Please send me 1% of all the money you make from your automated-
stock speculation program. On the other hand, if you lose money with
your program, don't bother sending me a bill.
-- Paul
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 11:42 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I understand that the web is full of ill-formed XHTML web pages but
> this is Microsoft:
>
> http://moneycentral.msn.com/companyreport?Symbol=BBBY
>
> I can't validate it and xml.minidom.dom.parseString won't work on it.
>
> If th
Max Erickson wrote:
> Roger <[EMAIL PROTECTED]> wrote:
>
>> Does anybody have a pointer to a Python library/utility that will
>> extract the chrominance and luminance quantization tables from
>> JPG images?
>>
>> I have been using the _getexif method from PIL, which works fine,
>> but doesn't ext
I am going to answer this question myself, but perhaps this will be
useful for someone else. My original C++ code was fine, the
PyRun_SimpleFile was failing due to errors in my python code. To get
a console and display the python interpreter errors I allocated a
console, and redirected stdout and
"Martin Unsal" <[EMAIL PROTECTED]> writes:
> 1) Namespace. Python wants my namespace heirarchy to match my filesystem
> heirarchy. I find that a well organized filesystem heirarchy for a
> nontrivial project will be totally unwieldy as a namespace. I'm either
> forced to use long namespace prefixe
John Nagle wrote:
> The Pascal/Ada/Modula family of languages all had type systems
> with restrictions on conversion. Unlike C, types in Pascal
> are not simply abbreviations of the type; they're unique types.
Ada is the only one of those that would let you
define things like "a new kind of
Hi,
i am just completed installing Python/Pydev/Eclipse/wxPython on an
Ubuntu system and all are running fine except program that contains
references to wx
It gives me:
ImportError: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-unicode/wx/
_core_.so: undefined symbol: PyUnicodeUCS4_FromEncodedObje
Paul Rubin wrote:
> Maybe we can concoct a cross between Python and Haskell, and call it
> "Paskell" after the philosopher Blaise ;-).
No, we name it after Pascall's confectionery:
http://www.homesick-kiwi.com/productpage.php?id=51
Lots of syntactic sugar. :-)
--
Greg
--
http://mail.python
1a) Module/class collision. I like to use the primary class in a file
as the name of the file. However this can lead to namespace collisions
between the module name and the class name. Also it means that I'm
going to be stuck with the odious and wasteful syntax foo.foo
everywhere, or forced to
On Mar 4, 12:14 am, "Ziga Seilnacht" <[EMAIL PROTECTED]> wrote:
> NickAlexanderwrote:
> > Hello,
>
> > I am writing a python extension (compiled C code) that defines an
> > extension type with PyNumberMethods. Everything works swimmingly,
> > except I can't deduce a clean way to set the docstring
I'm using Python for what is becoming a sizeable project and I'm
already running into problems organizing code and importing packages.
I feel like the Python package system, in particular the isomorphism
between filesystem and namespace, doesn't seem very well suited for
big projects. However, I mi
Roger <[EMAIL PROTECTED]> wrote:
> Does anybody have a pointer to a Python library/utility that will
> extract the chrominance and luminance quantization tables from
> JPG images?
>
> I have been using the _getexif method from PIL, which works fine,
> but doesn't extract the quantization data.
Is anyone out there knowledgeable about using the Snack tool under Windows?
Once I try to get beyond the simple provided examples I run out of reference
material.
Thanks, Vic
--
http://mail.python.org/mailman/listinfo/python-list
Hi currently I am using DNS and ODBC to connect to MS SQL database.
Is there any other non-dns way to connect? If I want to run my script
from different server I first have to create the DNS in win2k3.
Thank you,
hj
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>, Janto Dreijer wrote:
>> It's not a bug - sending multiple content-types is just totally broken.
>> What would such a header even be supposed to mean? It's like saying
>> "this is an apple orange".
>
> Hmmm. Thanks! I suspected as much.
>
> Rough inspection suggests
MonkeeSage wrote:
>
> The configure script checks for libraries and headers that are
> required for a base build, and (according to the options passed to
> configure, or using the defaults) optional components. There is NO WAY
> for it to know which PACKAGES, on any of the 500 linux distributions,
Peter Otten a écrit :
> Bruno Desthuilliers wrote:
>
>
>> print >> output, sorted(decorated_lines, reverse=True)[0][1]
>
>
> Or just
>print >> output, max(decorated_lines)[1]
Good point. More explicit, and a bit faster too. Thanks Peter.
--
http://mail.python.org/mailman/l
Bruno Desthuilliers wrote:
> print >> output, sorted(decorated_lines, reverse=True)[0][1]
Or just
print >> output, max(decorated_lines)[1]
Peter
--
http://mail.python.org/mailman/listinfo/python-list
The thread John Nagle started about building Python 2.5 on Fedora Core 6 led
me to implement a slight change to Python's setup.py. You clearly can't
have the build stop if the bits needed to build a particular module aren't
found or if compiling a module fails, but it's fairly straightforward to
Shawn Milo a écrit :
(snip)
> The script reads a file from standard input and
> finds the best record for each unique ID (piid). The best is defined
> as follows: The newest expiration date (field 5) for the record with
> the state (field 1) which matches the desired state (field 6). If
> there is
On Mar 4, 1:15 pm, Jan Danielsson <[EMAIL PROTECTED]> wrote:
>When I run doxygen on my python files, it does document classes, but
> not "standalone" functions.
Look in the doxygen config file for your python project, named
'Doxyfile', for the config setting
'EXTRACT_ALL', and read the commen
Does anybody have a pointer to a Python library/utility that will
extract the chrominance and luminance quantization tables from JPG images?
I have been using the _getexif method from PIL, which works fine, but
doesn't extract the quantization data. I am a bit fuzzy on the
terminology, but th
yes thanks, that is quite what I was looking for.
Arnaud Delobelle wrote:
> On Mar 4, 7:38 pm, Antoine De Groote <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I've been googling for quite a while now but can't find anything about a
>> function/keyword to make a list (or something else) immutable. Cou
Bjoern Schliessmann a écrit :
> Bruno Desthuilliers wrote:
>
>>Shawn Milo a écrit :
>
>
>>>if recs.has_key(piid) is False:
>>
>>'is' is the identity operator - practically, in CPython, it
>>compares memory addresses. You *dont* want to use it here.
>
>
> It's recommended to use "is None";
The etree.Element (or ElementTree.Element) supports a number of
list-like methods: append, insert, remove. Any special reason why it
doesn't support pop and extend (and maybe count)?
--
http://mail.python.org/mailman/listinfo/python-list
John Machin a écrit :
> On Mar 3, 12:36 pm, Bruno Desthuilliers >
> [snip]
>
>> DATE = 5
>> TARGET = 6
>
> [snip]
>
>>Now for the bad news: I'm afraid your algorithm is broken : here are my
>>test data and results:
>>
>>input = [
>> #ID STATE ... ... ... TARG DATE
>> "aaa\tAAA
On Mar 4, 12:29 pm, Jon Ribbens <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Janto Dreijer wrote:
> > The Nokia Java SDK allows one to define multiple content-types in a
> > single HTTP header field. I'm not sure if it's standard, but it's
> > happening from some Java-enabled phones
Aahz wrote:
>
> Assuming you have correctly tracked down the problem area, I would call
> that a thread bug in Python. But my experience is that you simply have
> run into a problem with the socket. I would suggest that using
> socket.setdefaulttimeout() would work just as well.
I believe that
John Nagle wrote:
> I've been installing Python and its supporting packages on
> a dedicated server with Fedora Core 6 for about a day now.
> This is a standard dedicated rackmount server in a colocation
> facility, controlled via Plesk control panel, and turned over
> to me with Fedora Core 6 in a
On Mar 4, 7:38 pm, Antoine De Groote <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I've been googling for quite a while now but can't find anything about a
> function/keyword to make a list (or something else) immutable. Could
> anybody point me to docs about this matter or give me a reason why this
> (a
On Mar 4, 12:03 pm, John Nagle <[EMAIL PROTECTED]> wrote:
> Exactly. As I've pointed out before, Python doesn't play well with
> others. The Python developers pass the buck to the Linux packager, the
> Linux packager passes the buck to the Python developers, and thus
> the user experience suc
It was Sun, 04 Mar 2007 20:38:16 +0100, when Antoine De Groote wrote:
> Hello,
>
> I've been googling for quite a while now but can't find anything about a
> function/keyword to make a list (or something else) immutable. Could
> anybody point me to docs about this matter or give me a reason why t
This is not a big deal but I would like to use Tix with 2.5. My
understanding is this bug will be fixed in the 2.5.1 release. Does
anyone know when this will be out ? What is the best guess?
Thanks,
Nile
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I've been googling for quite a while now but can't find anything about a
function/keyword to make a list (or something else) immutable. Could
anybody point me to docs about this matter or give me a reason why this
(apparently) doesn't exist in Python?
Kind regards,
antoine
--
http://ma
[EMAIL PROTECTED] wrote:
> I understand that the web is full of ill-formed XHTML web pages but
> this is Microsoft:
>
> http://moneycentral.msn.com/companyreport?Symbol=BBBY
Yes, thank you Microsoft!
> I can't validate it and xml.minidom.dom.parseString won't work on it.
>
> If this was just some
In article <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> I understand that the web is full of ill-formed XHTML web pages but
> this is Microsoft:
>
> http://moneycentral.msn.com/companyreport?Symbol=BBBY
>
> I can't validate it and xml.minidom.dom.parseString won't work
In article <[EMAIL PROTECTED]>,
Gordon Messmer <[EMAIL PROTECTED]> wrote:
>Aahz wrote:
>>
>> That doesn't make any sense. Blocking I/O generally releases the GIL,
>> which is the whole reason Python doesn't totally suck for threading.
>
>Nevertheless, among the caveats listed at
>http://docs.py
Bill Tydeman wrote:
> Just curious, but since the file size limitation on NTFS is 4 GB, have
> you confirmed that it isn't some other part of the interaction that is
> causing the problem? What FS is hosting the files?
I don't think that is correct. Groovy version of app runs just fine.
>
> On
Hello all,
I guess I should really be asking in some doxygen mailing list, but
since I believe that I found doxygen through this group, I assume that
there are some people here who can answer.
When I run doxygen on my python files, it does document classes, but
not "standalone" functions. I
Martins> I have been searching the internet for python version 0.9.0
Martins> sources which had been posted to alt.sources list, but without
Martins> any luck. Maybe someone has it available somewhere ?
If you *really* want Python 0.9.0 and not PyPy 0.9.0, I think you're going
to have
class Namespace(object):
def __init__(self, __ns=None, **kwargs):
if __ns is None:#if no dictionary is given
self.__dict__ = kwargs #then use kwargs without copying
or creating new dict
else:
assert len(kwargs) == 0
self.__dict__
[EMAIL PROTECTED] wrote:
> The distutils setup.py script checks for ncurses bits
No, it just plows on after compiler errors.
> As another person pointed out, you're conflating Python proper with a
> specific Linux distribution's packaging techniques.
Exactly. As I've pointed out befor
In article <[EMAIL PROTECTED]>,
Ben Finney <[EMAIL PROTECTED]> wrote:
>Dennis Lee Bieber <[EMAIL PROTECTED]> writes:
>>
>> """
>> I before E
>> Except after C
>> Or when sounded as A
>> As in Neighbor and Weigh
>> """
>
>Yes, like the "A" sound in "weird" or "ce
On Mar 3, 1:56 pm, Mark Nenadov <[EMAIL PROTECTED]> wrote:
> On Sat, 03 Mar 2007 08:46:09 -0800, [EMAIL PROTECTED] wrote:
> > I want to randomize a certain calculation in Python but haven't
> > figured it out yet. To explain what i mean, I' m going to use an
> > example:
> >
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I understand that the web is full of ill-formed XHTML web pages but
> this is Microsoft:
Yes... And Microsoft is responsible for a lot of the ill-formed pages on the
web be it on their website or made by their applications.
>
> http://moneycentr
Chris> http://moneycentral.msn.com/companyreport?Symbol=BBBY
Chris> I can't validate it and xml.minidom.dom.parseString won't work on
Chris> it.
Chris> If this was just some teenager's web site I'd move on. Is there
Chris> any hope avoiding regular expression hacks to extrac
John> If a Python build needs all that, something in ./configure should
John> be checking for each of those. After all, that's what ./configure
John> is supposed to be for. It looks like a Python install will plow
John> ahead without ncurses-devel, and install a dud version.
As
I understand that the web is full of ill-formed XHTML web pages but
this is Microsoft:
http://moneycentral.msn.com/companyreport?Symbol=BBBY
I can't validate it and xml.minidom.dom.parseString won't work on it.
If this was just some teenager's web site I'd move on. Is there any
hope avoiding re
Patrick Useldinger wrote:
> http://www.serpentine.com/blog/2006/12/22/how-to-build-safe-clean-python-25-rpms-for-fedora-core-6/
I've read that. It's very funny. "Now you’ll need to go into the SOURCES
directory and frob a single file..."
It does have something very useful in it - Python
On Feb 26, 9:48 pm, "Alan Isaac" <[EMAIL PROTECTED]> wrote:
> I have a class whose instances should only receive attribute
> assignments for attributes that were created at inititialization.
> If slots are not appropriate, what is the Pythonic design for this?
Hi !
Even though a lot of people hav
On Feb 24, 11:22 am, [EMAIL PROTECTED] wrote:
> Canada anti-terror law is struck down>From the Associated Press
>
> February 24, 2007
>
> OTTAWA - Canada's Supreme Court on Friday unanimously declared it
> unconstitutional to detain foreign terrorism suspects indefinitely
> while the courts review
goodwolf <[EMAIL PROTECTED]> wrote:
...
> Then you will prefer something like this:
>
> class Namespace(object):
> def __init__(self, __ns={}, **kwargs):
> if kwargs: __ns.update(kwargs)
> self.__dict__ = __ns
I might, if it weren't for the redundant "if" and the horribly b
What about this?
http://www.dalkescientific.com/Python/PyRSS2Gen.html
On 3/4/07, Florian Lindner <[EMAIL PROTECTED]> wrote:
> Hello,
> I'm looking for a python library that creates a RSS and/or Atom feed. E.g. I
> give a list like that:
> [
> [title1, short desc1, author1],
> [title2, short
On Sunday 04 March 2007 13:56, bahoo wrote:
> I have ssh access to two linux machines (both WITHOUT root account),
> and I'd like to copy data from one to another.
> Since the directory structure is different, I want to specify in a
> script (ideally in python, because that's what I want to learn)
> Sorry jumped the gun a little there. Is this what you are looking for?
> http://codespeak.net/download/py/py-0.9.0.zip
Probably not, the OP is looking for a python distribution, what you
are posting is a third party package *for* python and is actually a
part of the pypy project.
--
http://mail
On Feb 24, 11:22 am, [EMAIL PROTECTED] wrote:
> Canada anti-terror law is struck down>From the Associated Press
>
> February 24, 2007
>
> OTTAWA - Canada's Supreme Court on Friday unanimously declared it
> unconstitutional to detain foreign terrorism suspects indefinitely
> while the courts review
I installed python 2.5 and used the win package for installing MySQLdb. (I am
running Windows XP)
Everything works as expected using python directly (Windows command shell) but
using IDLE gives the import error below.
Same error with PythonWin as my IDE and everything works using python 2.4--
w
Sorry jumped the gun a little there. Is this what you are looking for?
http://codespeak.net/download/py/py-0.9.0.zip
--
http://mail.python.org/mailman/listinfo/python-list
On Sun, 04 Mar 2007 07:36:50 -0500, Nicholas Parsons wrote:
> Hi Jordan,
>
> That is true what you say about pop() behavior with stack-like
> objects. But the definition of pop() for a stack-like structure is
> stronger than that.
That's okay, we're not talking about pop for stack-like stru
I found a Very c00l feature, that you can write your own MPlayer GUI.
The core is Xembed (http://www.freedesktop.org/wiki/Standards/xembed-spec)
And Of course MPlayer support it as its para: -wid
I hope you like it!
--
LinuX Power
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 9:52 am, 13 <[EMAIL PROTECTED]> wrote:
> Hello list,
>
> I have been searching the internet for python version 0.9.0 sources
> which had been posted to alt.sources list, but without any luck. Maybe
> someone has it available somewhere ?
>
> Thanks,
> Martins
http://www.python.org/downloa
Dennis Lee Bieber wrote:
> Written properly, all it returns is the address of that array data
> -- there is no massive copying of data..
I know :) That's why I want to know how to write it properly.
zefciu
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 4, 1:03 pm, "goodwolf" <[EMAIL PROTECTED]> wrote:
> On Mar 3, 4:25 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
>
>
>
> > Hallvard B Furuseth <[EMAIL PROTECTED]> wrote:
>
> > > Does this class need anything more?
> > > Is there any risk of a lookup loop?
> > > Seems to work...
>
> > > class
bahoo wrote:
> I have ssh access to two linux machines (both WITHOUT root
> account), and I'd like to copy data from one to another.
> Since the directory structure is different, I want to specify in a
> script (ideally in python, because that's what I want to learn)
> what to copy over like this:
Hi,
I have ssh access to two linux machines (both WITHOUT root account),
and I'd like to copy data from one to another.
Since the directory structure is different, I want to specify in a
script (ideally in python, because that's what I want to learn) what
to copy over like this:
source: /home/joh
On Mar 4, 2007, at 4:38 AM, Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, Nicholas
> Parsons wrote:
>
>> Just from my computer science background when I see pop(), I think
>> of a
>> stack data structure.
>
> Then question your presumptions. There are also many people thinking
> `l
Hey,
> Python 3.x. I believe your fear is just a knee jerk reaction to the notion
> that there will be some stated incompatibilities between 2.x and 3.x without
> having done any investigation of the transition process. Nobody is forcing
> you to do anything right now or completely abandon your
Hi Jordan,
That is true what you say about pop() behavior with stack-like
objects. But the definition of pop() for a stack-like structure is
stronger than that. A stack is a LIFO data structure. Therefore the
pop() operation is defined to not only mutate the receiver and return
the item
WEBER Sébastien <[EMAIL PROTECTED]> writes:
> (I'm french and I speak english like a spanish cow : sorry.)
(Shouldn't it be French cow? Or you're more fluent in Spanish? ;-))
> Does someone know how to use the samba-python tdb.so module ? I've been
> looking for information about this on Google
http://sourceforge.net/projects/dfo/
Added some firefox2 ajax technologies to it and made it xhtml 1.1
valid :)
--
http://mail.python.org/mailman/listinfo/python-list
"Troy Melhase" <[EMAIL PROTECTED]> writes:
> You're trying to install a package without using the package
> management tools provided by your system, you haven't read the docs
> (or at least all of them), you show a general lack of understanding of
> the different responsibilities in the free/open
http://www.serpentine.com/blog/2006/12/22/how-to-build-safe-clean-python-25-rpms-for-fedora-core-6/
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 3, 4:25 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Hallvard B Furuseth <[EMAIL PROTECTED]> wrote:
>
> > Does this class need anything more?
> > Is there any risk of a lookup loop?
> > Seems to work...
>
> > class attrdict(dict):
> > """Dict where d['foo'] also can be accessed as d.fo
Hello,
I'm looking for a python library that creates a RSS and/or Atom feed. E.g. I
give a list like that:
[
[title1, short desc1, author1],
[title2, short desc2, author2],
]
and the library creates a valid feed XML file. (return as a string)
Thanks,
Florian
--
http://mail.python.org/mailma
On Feb 24, 11:22 am, [EMAIL PROTECTED] wrote:
> Canada anti-terror law is struck down>From the Associated Press
>
> February 24, 2007
>
> OTTAWA - Canada's Supreme Court on Friday unanimously declared it
> unconstitutional to detain foreign terrorism suspects indefinitely
> while the courts review
In <[EMAIL PROTECTED]>, Jon Ribbens wrote:
> It's not a bug - sending multiple content-types is just totally broken.
> What would such a header even be supposed to mean? It's like saying
> "this is an apple orange".
And the correct header for such a beast would be "this is an iOrange" of
course.
Hello,
(I'm french and I speak english like a spanish cow : sorry.)
Does someone know how to use the samba-python tdb.so module ? I've been
looking for information about this on Google for 3 days and I've found not
a word. The only functions I can use are 'open()' and 'first_key()' : not
enough.
[snip]
> So what's going on? We've run into a conflict between an assumption of Python
> and of the Plesk control panel. Plesk doesn't let the user create files
> in their own home directory. This installer assumes it can. Oops.
> (Plesk sets up a very locked down environment, which is a good
On Feb 24, 11:22 am, [EMAIL PROTECTED] wrote:
> Canada anti-terror law is struck down>From the Associated Press
>
> February 24, 2007
>
> OTTAWA - Canada's Supreme Court on Friday unanimously declared it
> unconstitutional to detain foreign terrorism suspects indefinitely
> while the courts review
In article <[EMAIL PROTECTED]>, Janto Dreijer wrote:
> The Nokia Java SDK allows one to define multiple content-types in a
> single HTTP header field. I'm not sure if it's standard, but it's
> happening from some Java-enabled phones.
>
> The only reference to this "bug" I can find dates back to 19
Hi!
The Nokia Java SDK allows one to define multiple content-types in a
single HTTP header field. I'm not sure if it's standard, but it's
happening from some Java-enabled phones.
This breaks the FieldStorage class in cgi.py by not causing
self.read_urlencoded() to be called at object init. Specif
Hello list,
I have been searching the internet for python version 0.9.0 sources
which had been posted to alt.sources list, but without any luck. Maybe
someone has it available somewhere ?
Thanks,
Martins
--
http://mail.python.org/mailman/listinfo/python-list
In <[EMAIL PROTECTED]>, Nicholas
Parsons wrote:
> Just from my computer science background when I see pop(), I think of a
> stack data structure.
Then question your presumptions. There are also many people thinking
`list` must be something with nodes and pointers when they see the
interface and
John Nagle <[EMAIL PROTECTED]> writes:
> "ftp://ftp.python.org/pub/"; is returning "Connection Refused" today.
True.
> I need FTP access to download onto a colocated server.
Is HTTP firewalled? If you have SSH-access, you could just do the HTTP
download at your workstation and scp/sftp it to t
It was Sun, 4 Mar 2007 14:09:20 +0500, when Bart Van Loon wrote:
> It was Sun, 4 Mar 2007 02:38:58 +0500, when Bart Van Loon wrote:
>> Hi all,
>>
>> I'm looking for a portable (FreeBSD and Linux) way of getting typical
>> ifconfig information into Python.
>
> After lots of trial and error (I'm prof
It was Sun, 4 Mar 2007 02:38:58 +0500, when Bart Van Loon wrote:
> Hi all,
>
> I'm looking for a portable (FreeBSD and Linux) way of getting typical
> ifconfig information into Python.
After lots of trial and error (I'm proficient in C at all), I puzzled
togehter the following. It works (at least
"Alex Martelli" <[EMAIL PROTECTED]> wrote:
> Raymond Hettinger <[EMAIL PROTECTED]> wrote:
>...
> > The notion that "pop" is only defined for stack operations is somewhat
> > pedantic.
>
> Worse: it's totally wrong. It's also defined for eyes, as a musical
> genre, as a kind of soda, as an a
There are several string interpolation functions, as well as
string.Template. But here's yet another. This one emulates ruby's
inline interpolation syntax (using #{}), which interpolates strings as
well as expressions. NB. It uses eval(), so only use it in trusted
contexts!
import sys, re
def inte
Aahz wrote:
>
> That doesn't make any sense. Blocking I/O generally releases the GIL,
> which is the whole reason Python doesn't totally suck for threading.
Nevertheless, among the caveats listed at
http://docs.python.org/lib/module-thread.html is:
"Not all built-in functions that may block wa
Nick Alexander wrote:
> Hello,
>
> I am writing a python extension (compiled C code) that defines an
> extension type with PyNumberMethods. Everything works swimmingly,
> except I can't deduce a clean way to set the docstring for tp_*
> methods. That is, I always have
>
> type.__long__.__doc__ ==
1 - 100 of 101 matches
Mail list logo