Python Programming Patterns
Hi, I have listed Python Programming Patterns ISBN:0130409561 on ebay.co.uk A brand new with really cheap price-4.99 If you are interested, go and have a look at www.ebay.co.uk and locate that one. Come one, fish and chips would cost more than that. Surely. Cheers Tin -- http://mail.python.org/mailman/listinfo/python-list
slots? SLOTS?
Dear pythonista, what is a "slot" in python? I stumbled over it in several meta-reflection discussions and hard-core developer talk, but found no mention of it in the language reference. Google coughs up more interesting banter about it, but no specifics. Is it a feature that was once planned (for 2.2 or so) and later abandoned? I find no *new* talk about it. Thanks for your attention Tin -- http://mail.python.org/mailman/listinfo/python-list
Missing /usr/lib/python2.3/config
Hallo, when trying to run the script ez_setup.py, I fail with unable to open /usr/lib/python2.3/config/Makefile This is true. There is no /usr/lib/python2.3/config directory. A check on groups.google revealed that this is a bug in my debian distro or something. Is this true? Is there a work-around? I can't reinstall debian because it is not my server. Any clues appreciated, thanks Tin -- http://mail.python.org/mailman/listinfo/python-list
Re: Missing /usr/lib/python2.3/config
Zoli wrote: > Hi. > > >>when trying to run the script ez_setup.py, I fail >>with >> >> unable to open /usr/lib/python2.3/config/Makefile >> >>This is true. There is no /usr/lib/python2.3/config >>directory. A check on groups.google revealed that >>this is a bug in my debian distro or something. Is >>this true? Is there a work-around? I can't reinstall >>debian because it is not my server. > > > Install the python-dev package: > > apt-get install python-dev > This did it, thanks. Tin -- http://mail.python.org/mailman/listinfo/python-list
Re: syntax errors while building pypgsql
[EMAIL PROTECTED] wrote:
> Have you tried apt-get build-dep pypgsql ?
>
> It could be that you lacks the necessary packages to build it.
funny you'd mention it, I did. pypgsql does not seem to
be an apt-get package, however. It did not work because
"E: Couldn't find package pypgsql"
The fact that there is a
PyObject_HEAD PGconn *conn;
throws an error can't be relieved by another package,
I guess...
>
> Tin Gherdanarra wrote:
>
>>Hallo,
>>
>>I'm trying to install pypgsql. However, I get syntax errors
>>while compiling the C sources. The following excerpt
>>from pgconnection.h looks a little funny to me:
>>
>>typedef struct {
>> PyObject_HEAD /* Here is the syntax error, and rightly so */
>> PGconn *conn;
>> PyObject *host;
>> PyObject *port;
>> PyObject *db;
>> PyObject *options;
>> PyObject *tty;
>> PyObject *user;
>> PyObject *pass;
>> PyObject *bePID;
>> PyObject *socket;
>> PyObject *version;
>> PyObject *notices;
>> PyObject *cinfo;
>> int showQuery;
>>} PgConnection;
>>
>>
>>I don't know what PyObject_HEAD or PGconn is,
>>but if they are types, a syntax error is justified here:
>>
>> PyObject_HEAD /* Here is the syntax error */
>> PGconn *conn;
>>
>>The setup.py-settings look good to me, I use debian sarge stable.
>>Installation of PostgreSQL ran without any problems.
>
>
--
http://mail.python.org/mailman/listinfo/python-list
syntax errors while building pypgsql
Hallo,
I'm trying to install pypgsql. However, I get syntax errors
while compiling the C sources. The following excerpt
from pgconnection.h looks a little funny to me:
typedef struct {
PyObject_HEAD /* Here is the syntax error, and rightly so */
PGconn *conn;
PyObject *host;
PyObject *port;
PyObject *db;
PyObject *options;
PyObject *tty;
PyObject *user;
PyObject *pass;
PyObject *bePID;
PyObject *socket;
PyObject *version;
PyObject *notices;
PyObject *cinfo;
int showQuery;
} PgConnection;
I don't know what PyObject_HEAD or PGconn is,
but if they are types, a syntax error is justified here:
PyObject_HEAD /* Here is the syntax error */
PGconn *conn;
The setup.py-settings look good to me, I use debian sarge stable.
Installation of PostgreSQL ran without any problems.
--
http://mail.python.org/mailman/listinfo/python-list
Re: syntax errors while building pypgsql
[EMAIL PROTECTED] wrote: > Tin Gherdanarra wrote: > >>[EMAIL PROTECTED] wrote: >> >>>Have you tried apt-get build-dep pypgsql ? >>> >>>It could be that you lacks the necessary packages to build it. >> >>funny you'd mention it, I did. pypgsql does not seem to >>be an apt-get package, however. It did not work because >>"E: Couldn't find package pypgsql" >> >>The fact that there is a >> >> PyObject_HEAD PGconn *conn; >> >>throws an error can't be relieved by another package, >>I guess... >> > > If that is the case, you need to read the pypgsql for what it is > needed. As an alternative, you may try apt-get build-dep celementtree > which may pull in the necessary files. But this is really WAG. > Thanks, but what is WAG? This came right in: Confusingly, it's not apt-get pypgsql, it is python-pgsql. After doing a apt-get python-pgsql. I'm not yet one happy camper, but getting there. Thanks. -- http://mail.python.org/mailman/listinfo/python-list
Re: syntax errors while building pypgsql
Gerhard Häring wrote:
> Tin Gherdanarra wrote:
>
>> Hallo,
>>
>> I'm trying to install pypgsql. However, I get syntax errors
>> while compiling the C sources. The following excerpt
>> from pgconnection.h looks a little funny to me:
>>
>> typedef struct {
>> PyObject_HEAD /* Here is the syntax error, and rightly so */
>> [...]
>> I don't know what PyObject_HEAD or PGconn is,
>> but if they are types, a syntax error is justified here: [...]
>
>
> I don't think that's the real error.
Well, I don't know what's going on in that struct def,
but to me it looks a little weird.
> Are there any error messages
> *before* that?
Nope. First error.
> Like the compiler can't find "Python.h" or something?
> That would be an indication that you do not have the python-devel
> package installed.
This provokes different errors. Your idea is good, though,
because this was the first problem another correspondent
pointed out.
>
> Btw. the Debian package of pyPgSQL is called python-pgsql, so an apt-get
> install python-pgsql should do.
Thanks, this I have found out already (see previous post).
It is in the fine print of the documentation.
Thanks
Tin
>
> -- Gerhard
>
--
http://mail.python.org/mailman/listinfo/python-list
Re: syntax errors while building pypgsql
Carsten Haese wrote:
> On Wed, 2005-11-23 at 08:01, Tin Gherdanarra wrote:
>
>>Hallo,
>>
>>I'm trying to install pypgsql. However, I get syntax errors
>>while compiling the C sources. The following excerpt
>>from pgconnection.h looks a little funny to me:
>>
>>typedef struct {
>> PyObject_HEAD /* Here is the syntax error, and rightly so */
>> PGconn *conn;
>> PyObject *host;
>> PyObject *port;
>> PyObject *db;
>> PyObject *options;
>> PyObject *tty;
>> PyObject *user;
>> PyObject *pass;
>> PyObject *bePID;
>> PyObject *socket;
>> PyObject *version;
>> PyObject *notices;
>> PyObject *cinfo;
>> int showQuery;
>>} PgConnection;
>>
>>
>>I don't know what PyObject_HEAD or PGconn is,
>>but if they are types, a syntax error is justified here:
>
>
> PyObject_HEAD is not a type, it is a macro that defines struct members
> that all Python objects have in common. The macro definition has a
> semicolon at the end, so when the macro is expanded, the result is
> syntactically correct, even though the above looks wrong on the surface.
Aha! Weird!
>
> What error messages are you actually getting? If you are getting a long
> list of errors, please give us the first few rather than the last few.
The aforementioned error was the first one.
I "fixed" it by delegating the installation/build to
apt-get python-pgsql. That did it for me.
Unfortunately, I can't duplicate the errors now.
This probably means that apt-get automatically failed
to install some stuff I failed to do.
However, I don't think that you miss anything interesting,
i.e. a bug in pysql or so. This was just a newbie problem.
Thanks all the same
Tin
>
> -Carsten
>
>
--
http://mail.python.org/mailman/listinfo/python-list
Re: Post-modernism, Academia, and the Tech Geeking fuckheads
Xah Lee wrote: > Post-modernism, Academia, and the Tech Geeking fuckheads > > • the Sokal Affair > http://en.wikipedia.org/wiki/Sokal_Affair > > • SCIGen and World Multi-Conference on Systemics, Cybernetics and > Informatics > http://pdos.csail.mit.edu/scigen/ > > • What are OOP's Jargons and Complexities, Xah Lee > http://xahlee.org/Periodic_dosage_dir/t2/oop.html > > • Politics and the English Language, George Orwell > http://xahlee.org/p/george_orwell_english.html > > Xah > [EMAIL PROTECTED] > ∑ http://xahlee.org/ > I agree with everything you say. You should check out the following links. They will amuse and enlight you. Post-modernism, Schizo-Islamism and the world at large: http://www.rhfweb.com/mctom.html S.N.A.F.U., D.I.S.C.O. and C.R.I.S.I.S. reaching crisis proportions: http://koti.welho.com/mjack1/ The Dalai Llama is just another EVIL spitting mammal: http://pages.123-reg.co.uk/sumon-262452/ It's a pussy-eat-pussy world. Tech Geek fuckheads might beg to disagree, however: http://www.johnnydisco.com/ Secularism, homosexuality, fringe humor finally dominating occidental tech elite. End neigh, doctors say: http://www.qgeeks.org Don't mention it, at your service Tin -- http://mail.python.org/mailman/listinfo/python-list
Re: PHP = Perl Improved
Xah Lee wrote: > recently i got a project that involves the use of php. In 2 days, i > read almost the entirety of the php doc. Finding it a breeze because it > is roughly based on Perl, of which i have mastery. I suspect that you are a computer program posing as a human usenet correspondent. Please answer these questions: If Alice goes to the supermarket to buy a pint of milk, does her head go with her? Please elaborate. What is the difference between my disher blowing a fuse and your boss blowing a fuse? Please elaborate. How can you turn off the light of a candle? Why does it work? -- http://mail.python.org/mailman/listinfo/python-list
Re: languages with full unicode support
Oliver Bandel wrote: > > こんいちわ Xah-Lee san ;-) Uhm, I'd guess that Xah is Chinese. Be careful with such things in real life; Koreans might beat you up for this. Stay alive! > > > Xah Lee wrote: > >> Languages with Full Unicode Support >> >> As far as i know, Java and JavaScript are languages with full, complete >> unicode support. That is, they allow names to be defined using unicode. > > > Can you explain what you mena with the names here? > > >> (the JavaScript engine used by FireFox support this) >> >> As far as i know, here's few other lang's status: >> >> C → No. > > > Well, is this (only) a language issue? > > On Plan-9 all things seem to be UTF-8 based, > and when you use C for programming, I would think > that C can handle this also. > > But I only have read some papers about Plan-9 and did not developed on > it > > Only a try to have a different view on it. > > If someone knows more, please let us know :) > > > Ciao, >Oliver -- Lisp kann nicht kratzen, denn Lisp ist fluessig -- http://mail.python.org/mailman/listinfo/python-list
Re: Reddit broke - should have remained on Lisp?
Luis M. González wrote: > Alok wrote: > >>I was merely describing my experience and inviting others' response >>about theirs. > > > That's exactly what I'm doing. > > >>Please don't misconstrue that as a blame on any language. > > > I think it can be interpreted in many ways. > Now if you're not ready to read other people's oppinions, don't ask. > > >>And of course, I disagree with your comments about ridicule etc. > > > Ok. > C'mon guys! That "looks like..." thingy is an genre JOKE on the reddit-jokers' own expense, right? Knock it OFF! -- Lisp kann nicht kratzen, denn Lisp ist fluessig -- http://mail.python.org/mailman/listinfo/python-list
