Apache Python 500 Error

2005-02-02 Thread Christian
PythonHandler python Order allow,deny Allow from all #PythonDebug On /Directory the script is in this directory /var/www/python but i get an 500 error everytime, with every script - why that - i´m newbie - sorry for that :) greetings from germany to newsgroup christian -- http://mail.python.org

Re: Apache Python 500 Error

2005-02-03 Thread Christian
Jeremy Bowers schrieb: But first, check your apache error log. Then you will know what your error is, too. Thanks for help, here is my error log: [Thu Feb 3 13:52:49 2005] [error] PythonHandler python: Traceback (most recent call last): [Thu Feb 3 13:52:49 2005] [error] PythonHandler python:

Re: Set an environment variable

2005-10-20 Thread Christian
Thanks Jeff and the crazy 88. -- http://mail.python.org/mailman/listinfo/python-list

Re: Set an environment variable

2005-10-21 Thread Christian
The closest thing you can do is that: -myScript.py-- print 'export MY_VARIABLE=value' -- -myScript.sh-- python myScript.py /tmp/chgvars.sh . /tmp/chgvars.sh

Re: Set an environment variable

2005-10-21 Thread Christian
Erik Max Francis wrote: Christian wrote: Can I write a .py script that calls a .sh script that executes the export command and then calls another .py script (and how would the first .py script look)? No, the shell script that the Python program would invoke would be a different

Re: Set an environment variable

2005-10-21 Thread Christian
Steve Holden wrote: :: one.py :: import os os.environ['STEVE'] = You are the man os.system(python two.py) print Ran one :: two.py :: import os print STEVE is, os.environ['STEVE'] print Ran two [EMAIL PROTECTED] tmp]$ python one.py

Re: Set an environment variable

2005-10-21 Thread Christian
Steve Holden wrote: Time you answered your own questions by trying things at the interactive interpreter prompt! regards Steve Right again, Steve. Thanks -- http://mail.python.org/mailman/listinfo/python-list

How to call a script from another?

2005-10-13 Thread Christian
From a not even newbie: Without knowing much about Python (yet) I'm trying to install the CMS Zope via FTP (with the well documented changes to make it work on an Apache server). By birth Zope is started from a shell script. And not having the permissions to execute such ones I'll try writing

Re: How to call a script from another?

2005-10-13 Thread Christian
Thanks guy's, you have opened my eyes and made my next step a whole lot easier. Chris -- http://mail.python.org/mailman/listinfo/python-list

Set an environment variable

2005-10-19 Thread Christian
Another question from a not even newbie: In Unix you can set an environment variable with the command export PYTHONPATH but I would like to set the variable from at .py script. So my question is: How do I export an environment variable in a .py script? Thanks Chris --

Re: Ban Xah Lee

2009-03-09 Thread Christian
on topic. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Ban Xah Lee

2009-03-10 Thread Christian
Xah Lee schrieb: Christian fakem...@xyz.de wrote: On Mar 9, 1:22 pm, Christian fakem...@xyz.de wrote: XahLeeschrieb: Of interest: • Why Can't You Be Normal? http://xahlee.org/Netiquette_dir/why_cant_you_be_normal.html IMHO the point that you never reply to responds is what makes

build python on Celeron D

2007-03-26 Thread Christian
multiarray ImportError: /media/hda6/home/ck/prog/scipy/numpy-1.0.1/numpy/core/multiarray.so: undefined symbol: Py_InitModule4 which is related to 32-64 issues, right? So my question is how do I force python to be built with 32bit? Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: build python on Celeron D

2007-03-26 Thread Christian
Chris Lasher wrote: On Mar 26, 10:48 pm, Christian [EMAIL PROTECTED] wrote: Traceback (most recent call last): File setup.py, line 89, in ? setup_package() File setup.py, line 59, in setup_package from numpy.distutils.core import setup File /mnt/home/ck/prog/scipy/numpy-1.0.1

Re: wxPython, Syntax highlighting

2007-03-28 Thread Christian
at StyledTextControl (wx.stc) in the demo. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: XML Parsing

2007-03-28 Thread Christian
. And yes I have used Google but I am unsure what to use. Try this: http://www.python.org/doc/2.4.1/lib/expat-example.html Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Kill thread

2007-04-09 Thread Christian
list: http://mail.python.org/mailman/listinfo/python-win32 Christian http://www.dowski.com -- http://mail.python.org/mailman/listinfo/python-list

Re: does anybody earn a living programming in python?

2006-09-25 Thread Christian
walterbyrd wrote: If so, I doubt there are many. I wonder why that is? Previously I used Python while earning a living working in IT at a college. Currently it is putting food on the table via contract jobs. I imagine there are many out there like me, doing just that. Christian http

Re: does anybody earn a living programming in python?

2006-09-26 Thread Christian
? Both of my current contracts came by way of my involvement with the CherryPy open source project. Christian http://www.dowski.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: CherryPy 3.0 RC1

2006-11-29 Thread Christian
Christian Wyglendowski [EMAIL PROTECTED] writes: I'm happy to announce the first release candidate for CherryPy 3.0. Ben Finney wrote: Congratulations, I'm glad to see an announcement for CherryPy. Please, in future, don't send HTML message bodies to public forums; plain text is far

Re: database wrapper ?

2009-02-06 Thread Christian
for file system, Shelve and in-memory storage. The 2.0 alpha code in trunk also has a memcached storage implementation. HTH, Christian http://www.dowski.com -- http://mail.python.org/mailman/listinfo/python-list

Re: database wrapper ?

2009-02-06 Thread Christian
On Feb 6, 10:17 am, Christian christ...@dowski.com wrote: One of its distinctives is that ... Not sure how I forgot this, but Dejavu also lets you write your datastore queries in a LINQ-like syntax. Robert Brewer, the author, is giving a talk [1] about it at this year's PyCon in the US

Re: Feeding differeent data types to a class instance?

2010-03-18 Thread Christian
://pythonconquerstheuniverse.wordpress.com/2010/03/17/multiple-constructors-in-a-python-class/ http://blog.dowski.com/2010/03/17/my-take-on-multiple-constructors/ That second one is my response. Christian -- http://mail.python.org/mailman/listinfo/python-list

OrderedDict / DIctComprehension

2012-10-29 Thread Christian
Hi, is there a way building an OrderedDict faster? Thanks in advance Christian @timeit def ordered(n=10): d = OrderedDict() for i in xrange(n): d['key'+str(i)] = i return d @timeit def comprehension(n=10): d = { 'key'+str(i):i for i in xrange(n) } return d

Re: SSH Connection with Python

2012-10-29 Thread Christian
/ssh_exec.asp Don't know if it is worth the money, never used it. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: OrderedDict / DIctComprehension

2012-10-29 Thread Christian
Too bad that's not (using python2.7) 'ordered_dict_generator' ((), {}) 1.089588 sec Anyway thanks for your hint! Hi, is there a way building an OrderedDict faster? Thanks in advance Christian @timeit def ordered(n=10): d = OrderedDict() for i

mysql insert with tuple

2012-11-21 Thread Christian
),)) #This produce (1054, Unknown column 'None' in 'field list'), #but without None values it works. con.execute( INSERT INTO {} VALUES %r; .format(table) % (tuple(ilist),)) Many thanks, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: mysql insert with tuple

2012-11-22 Thread Christian
Am Mittwoch, 21. November 2012 20:49:14 UTC+1 schrieb Hans Mulder: On 21/11/12 18:19:15, Christian wrote: Hi , my purpose is a generic insert via tuple , because the number of fields and can differ. But I'm stucking . ilist=['hello',None,7,None,None

re.finditer with lookahead and lookbehind

2012-06-20 Thread Christian
Hi, i have some trouble to split a pattern like s. Even have this problems with the first and last match. Some greedy problems? Thanks in advance Christian import re s='v1=pattern1v2=pattern2v3=pattern3v4=pattern4v5=pattern5x1=patternx' pattern =r'(?=[a-z0-9]+=)(.*?)(?=)' regex = re.compile

memory usage multi value hash

2011-04-14 Thread christian
,9,10,11,12,90,34,322,21 Thanks for advance regards, Christian import csv import random import sys from itertools import groupby from operator import itemgetter f=csv.reader(open(sys.argv[1]),delimiter=';') z=[[i[0],i[1]] for i in f] z.sort(key=itemgetter(0)) mydict = dict((k,','.join(map

build the sql where cause dynamic

2011-05-02 Thread christian
','2') and p1 in ('3','1','5') and pc in ('1') and py in ('1') Many thanks for any starting point Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: build the sql where cause dynamic

2011-05-02 Thread christian
On 2 Mai, 10:13, Chris Angelico ros...@gmail.com wrote: On Mon, May 2, 2011 at 5:48 PM, christian oz...@web.de wrote: Hi, from some radio buttons in a django app i concat  string like that: But have no idea how i get the or when there different values for a specified p column

Python CGI

2014-05-19 Thread Christian
Hi, I'd like to use Python for CGI-Scripts. Is there a manual how to setup Python with Fast-CGI? I'd like to make sure that Python scripts aren't executed by www-user, but the user who wrote the script. -- Gruß, Christian -- https://mail.python.org/mailman/listinfo/python-list

WSGI (was: Re: Python CGI)

2014-05-25 Thread Christian
On 05/20/2014 03:52 AM, Tim Chase wrote: While Burak addressed your (Fast-)CGI issues, once you have a test-script successfully giving you output, you can use the standard-library's getpass.getuser() function to tell who your script is running as. LoadModule wsgi_module modules/mod_wsgi.so

BitSet Redis

2012-03-07 Thread Christian
snippet didn't work, beacause bitset[0] isn't approriate. bitset = r.get('bytestringFromRedis') x = {0:b}.format(ord(bitset[0])) Thanks in advance Christian -- http://mail.python.org/mailman/listinfo/python-list

filter max from iterable for grouped element

2012-03-19 Thread Christian
Hi, as beginner in python , I struggle somewhat to filter out only the maximum in the values for and get hmax. Maybe it easier when i change the structure of h? Many thanks in advance Christian h = {'abvjv': ('asyak', 0.9014230420411024), 'afqes': ('jarbm', 0.9327883839839753), 'aikdj

Re: filter max from iterable for grouped element

2012-03-19 Thread Christian
On 19 Mrz., 09:45, Peter Otten __pete...@web.de wrote: Christian wrote: as beginner in python , I struggle  somewhat to filter out only the maximum in the values for  and get hmax. h = {'abvjv': ('asyak', 0.9014230420411024),  'afqes': ('jarbm', 0.9327883839839753),  'aikdj': ('jarbm

multiprocessing itertools.product Iterator

2012-03-24 Thread Christian
Hey, I struggle to extend a multiprocessing example to my problem with a itertools.product result iterator. How I have to assign the combos.next() elements approriate to Pool.imap/calc functions? Thanks in advance Christian from multiprocessing import Process,Queue,Pool import Calculation

String formatting - mysql insert

2011-07-14 Thread Christian
Hi, I get some problem when i like to set the table name dynamic. I'm appreciate for any help. Christian ### works newcur.execute ( INSERT INTO events (id1,id2) VALUES (%s,%s); , (rs[1],rs[2])) ### works not newcur.execute ( INSERT INTO %s_events (id1,id2) VALUES (%s, %s

Re: String formatting - mysql insert

2011-07-14 Thread Christian
On 14 Jul., 17:31, Billy Mays no...@nohow.com wrote: On 07/14/2011 11:00 AM, Christian wrote: Hi, I get some problem  when i like to set the table name dynamic. I'm appreciate for any help. Christian ### works newcur.execute (   INSERT INTO events (id1,id2)   VALUES

Approximate comparison of two lists of floats

2011-07-28 Thread Christian
, that i can compare many lists of floats with a tolerance in percentage very fast? (sorry for my bad englisch ;-) ) thanks christian -- http://mail.python.org/mailman/listinfo/python-list

Daemon with n subscriber

2013-02-04 Thread Christian
Hi, experimenting with zmq. I like to start/stop/restart n independent subscriber with one deamon service in Python. How I should adapt a common daemon class in python? Thanks for a starting point Christian -- http://mail.python.org/mailman/listinfo/python-list

@staticmethods called more than once

2013-05-21 Thread Christian
Hi, i'm somewhat confused working with @staticmethods. My logger and configuration methods are called n times, but I have only one call. n is number of classes which import the loger and configuration class in the subfolder mymodule. What might be my mistake mistake? Many thanks Christian

Re: @staticmethods called more than once

2013-05-21 Thread Christian
Am Dienstag, 21. Mai 2013 18:48:07 UTC+2 schrieb John Gordon: In kng7n6$efc$1...@reader1.panix.com John Gordon gor...@panix.com writes: You should only call addHandler() once. ...for each intended logging output destination, of course. If you want logging output to appear in a

Pool.map mongodb cursor

2013-06-14 Thread Christian
} },upsert=True) Thanks in advance Christian -- http://mail.python.org/mailman/listinfo/python-list

[issue10015] Creating a multiproccess.pool.ThreadPool from a child thread blows up.

2011-08-17 Thread Christian
Christian brugger@googlemail.com added the comment: A workaround would be to call the following in the thread you want to use ThreadPool: if not hasattr(threading.current_process(), _children): threading.current_process()._children = weakref.WeakKeyDictionary() (putting

Re: memory utilization blow up with dict structure

2016-09-23 Thread Christian
Am Freitag, 23. September 2016 12:02:47 UTC+2 schrieb Chris Angelico: > On Fri, Sep 23, 2016 at 7:05 PM, Christian <mining.fa...@gmail.com> wrote: > > I'm wondering why python blow up a dictionary structure so much. > > > > The ids and cat substructure could have 0..n en

memory utilization blow up with dict structure

2016-09-23 Thread Christian
Hi, I'm wondering why python blow up a dictionary structure so much. The ids and cat substructure could have 0..n entries but in the most cases they are <= 10,t is limited by <= 6. Thanks for any advice to save memory. Christian Example: {'0a0f7a3a0e09826caef1bff707785662':

EuroPython 2006: Video of Keynote by Alan Kay

2006-07-21 Thread Christian Scholz
. Christan Scholz -- Christian Scholz COM.lounge Luetticher Strasse 10 52064 Aachen Tel: +49 241 400 730 0 Fax: +49 241 979 00 850 EMail: [EMAIL PROTECTED] Homepage: http://comlounge.net -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation

ANN: CherryPy 3.0.0 beta 2

2006-09-28 Thread Christian Wyglendowski
://www.cherrypy.org/wiki/WhatsNewIn30 * http://www.cherrypy.org/wiki/UpgradeTo30 Thanks to the CherryPy community for all of the bug reports and comments on the first beta. Please try out this latest release and let us know what you think. Christian WyglendowskiCherryPy Team -- http://mail.python.org

ANN: CherryPy 3.0 RC1

2006-11-28 Thread Christian Wyglendowski
/UpgradeTo30. Christian Wyglendowski http://www.dowski.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html

ANN: CherryPy 3.0.0

2006-12-26 Thread Christian Wyglendowski
/CherryPyDownload. Thanks to everyone who contributed to this release by reporting a bug, contributing code or even just giving feedback on the mailing list and IRC. Christian Wyglendowski CherryPy Team -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

ANN: CherryPy 3.0.1 Released

2007-02-23 Thread Christian Wyglendowski
the checker with checker.on = False, or turn off specific methods with checker.check_method_foo = None. Get the 3.0.1 release at: http://cherrypy.org/wiki/CherryPyDownload Christian Wyglendowski CherryPy Team -- http://mail.python.org/mailman/listinfo/python-announce-list Support

Zope 3.4.0a1 released

2007-04-20 Thread Christian Theune
contributed to this release: Jim Fulton, Dmitry Vasiliev, Martijn Faassen, Christian Theune, Wolfgang Schnerring, Fred Drake, Marius Gedminas, Baiju M, Brian Sutherland, Gary Poster signature.asc Description: Dies ist ein digital signierter Nachrichtenteil -- http://mail.python.org/mailman/listinfo

Zope 3.4.0b1 released

2007-07-06 Thread Christian Theune
at launchpad: https://launchpad.net/zope3 - IRC Channel: #zope3-dev at irc.freenode.net Acknowledgments --- Much thanks to everyone who contributed to this release: Jim Fulton, Dmitry Vasiliev, Martijn Faassen, Christian Theune, Wolfgang Schnerring, Fred Drake, Marius Gedminas, Baiju

ANN: CherryPy 3.0.2

2007-08-13 Thread Christian Wyglendowski
/cherrypy-3.0.x?action=stop_on_copyrev=1681stop_rev=1635mode=stop_on_copy Thanks to everyone who submitted the tickets detailing these issues and for those who contributed code to fix the problems. Christian Wyglendowski CherryPy Team -- http://mail.python.org/mailman/listinfo/python-announce-list

ANN: CherryPy 3.1.0 beta3 Released

2008-01-13 Thread Christian Wyglendowski
are here: http://www.cherrypy.org/wiki/UpgradeTo31 General information on new stuff in 3.1: http://www.cherrypy.org/wiki/WhatsNewIn31 Thanks to everyone who contributed bug reports and code for this release. Christian Wyglendowski CherryPy Team -- http://mail.python.org/mailman/listinfo/python

ANN: CherryPy 3.0.3 Released

2008-01-13 Thread Christian Wyglendowski
/UpgradeTo30 General information on new stuff in 3.0.x: http://www.cherrypy.org/wiki/WhatsNewIn30 Thanks to everyone who contributed bug reports and code for this release. Christian Wyglendowski CherryPy Team -- http://mail.python.org/mailman/listinfo/python-announce-list Support

bliptv.reader V1.0 released

2008-07-27 Thread Christian Scholz
about it: http://tinyurl.com/64t7tv or check the PyPI homepage: http://pypi.python.org/pypi/bliptv.reader -- Christian -- Christian Scholz Homepage: http://comlounge.net COM.lounge blog: http://mrtopf.de/blog Luetticher Strasse 10

ANN: psyco V2

2009-07-16 Thread Christian Tismer
, Laura Creighton and Andrea Tismer, for all the support and discussions. Looking forward to a great future of Psyco! July 17, 2009 -- Christian Tismer :^) mailto:tis...@stackless.com tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A

PythonCamp Cologne on 16th/17th April 2011

2011-02-15 Thread Christian Scholz
: http://openetherpad.org/pycamp Homepage: http://pythoncamp.de Twitter: http://twitter.com/pythoncamp I hope to see you there! -- Christian -- Christian Scholz, COM.lounge GmbH, tel. +49 241 400 730 0, http://comlounge.net Blog: http://mrtopf.de/blog, Twitter: http://twitter.com/mrtopf Podcasts

python.net stackless.com moving days

2011-12-22 Thread Christian Tismer
Hi friends, The python.net and stackless.com sites are moving again. I have upgraded from a EQ8 to an EX4 server, again from Hetzner, Germany. It has only 16GIB instead of 24, but a Core-I7 - 2600 CPU at 3.5 GHz and A 3 TB Raid1. That is double size and performance at a 2/3 reduced price -

tiffany 0.3 released

2012-06-08 Thread Christian Tismer
``. Please let me know if this stuff works for you, and send requests to tis...@stackless.com or use the links in the bitbucket website: https://bitbucket.org/didoca/tiffany cheers -- Chris -- Christian Tismer :^)mailto:tis...@stackless.com tismerysoft GmbH : Have

Ann: New Stackless Website

2012-06-12 Thread Christian Tismer
to be browsed (an hourly updated clone from hg.python.org) and includes a new issue tracker. Please let me know if you encounter any problems. cheers -- Chris -- Christian Tismer :^)mailto:tis...@stackless.com tismerysoft GmbH : Have a break! Take a ride on Python's

tiffany 0.4 released

2012-06-16 Thread Christian Tismer
website: https://bitbucket.org/didoca/tiffany cheers -- Chris -- Christian Tismer :^)mailto:tis...@stackless.com tismerysoft GmbH : Have a break! Take a ride on Python's Karl-Liebknecht-Str. 121 :*Starship* http://starship.python.net/ 14482 Potsdam

tiffany 0.6 released

2012-06-26 Thread Christian Tismer
this are most welcome. Please let me know if this stuff works for you, and send requests to tis...@stackless.com or use the links in the bitbucket website: https://bitbucket.org/didoca/tiffany cheers -- Chris -- Christian Tismer :^)mailto:tis...@stackless.com tismerysoft GmbH

tiffany 0.6.1 released

2012-06-30 Thread Christian Tismer
if this stuff works for you, and send requests to tis...@stackless.com or use the links in the bitbucket website: https://bitbucket.org/didoca/tiffany cheers -- Chris -- Christian Tismer :^)mailto:tis...@stackless.com tismerysoft GmbH : Have a break! Take a ride on Python's

Re Wide Unicode build for Windows available somewhere?

2005-01-12 Thread Christian Wittern
Wide unicode is currently not supported on Windows. A number of internal APIs (in particular for the registry, and for the mbcs codec) assume that sizeof(Py_UNICODE) is 2. Contributions are welcome. Even with that fixed, Pythonwin would still need a major rework to support wide Unicode.

Pointer: CfV de.comp.lang.python

2005-01-24 Thread Christian Helmbold
hi I ask german speaking python programmers to contest the election to establish the german python newsgroup de.comp.lang.python. You can find the ballot in de.admin.news.annouce [EMAIL PROTECTED] or via Google http://tinyurl.com/5g5gf. Thank You! Christian -- http://mail.python.org/mailman

inherit without calling parent class constructor?

2005-01-26 Thread Christian Dieterich
how to inherit the data attributes and the methods of a class without calling it's constructor over and over again? Thank, Christian Here's the proper example: class B: def __init__(self, length): size = self.method(length) self.size = size def __str__(self): return

Re: inherit without calling parent class constructor?

2005-01-26 Thread Christian Dieterich
recipe of Scott David Daniels looks promising. I'll try that, when I've installed Python 2.4. However, I need my package to work on machines where there is Python 2.2 and 2.3 only. Thanks for more ideas, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: inherit without calling parent class constructor?

2005-01-26 Thread Christian Dieterich
, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: inherit without calling parent class constructor?

2005-01-27 Thread Christian Dieterich
first. Thanks for all the help, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: inherit without calling parent class constructor?

2005-01-27 Thread Christian Dieterich
ways to use OO than inheritance...) I appreciate your input anyway. Thinking of how I could use containers it became clear, that I'm going to use them for something else, where I want something to be calculated upon request only. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: inherit without calling parent class constructor?

2005-01-27 Thread Christian Dieterich
in this particular case, but maybe in another case... :) Yeah, maybe not. But I'll remember it as a useful recipe. Cheers, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: variable declaration

2005-02-01 Thread Christian Dieterich
to find an efficient way to avoid rebinding of y. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Reinstall python 2.3 on OSX 10.3.5?

2005-02-03 Thread Christian Dieterich
On Déardaoin, Feabh 3, 2005, at 01:52 America/Chicago, Robert Kern wrote: Christian Dieterich wrote: On Dé Céadaoin, Feabh 2, 2005, at 17:48 America/Chicago, [EMAIL PROTECTED] wrote: Hi there I started a very long and roundabout process of attempting to install python 2.3.4 along side my apple

Re: Pickling and inheritance are making me hurt

2005-02-04 Thread Christian Dieterich
and destructor is __init__() __init__() __del__() Maybe this interferes with pickling your first instance? Hope this helps debugging, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-libnjb on macosx

2005-02-10 Thread Christian Dieterich
linker arguments for you. I (distutils) usually include -bundle -flat_namespace -undefined suppress to build .so files. Maybe this helps in your case too. But the setup.py is definitively the safer way. Christian -- http://mail.python.org/mailman/listinfo/python-list

Ann: PyPy Sprint before PYCON 2005 in Washington

2005-02-14 Thread Christian Tismer
Participants --- all days: Jacob Hallén Armin Rigo Holger Krekel Samuele Pedroni Anders Chrigström Bea Düring Christian Tismer Richard Emslie -- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have

Re: Floating numbers and str

2005-11-09 Thread Christian Stapfer
statement, you can do something like %.4d, but how can I do this with converting the number to a string? Thanks! from scipy import round print round(0.13241414515,4) Regards, Christian -- http://mail.python.org/mailman/listinfo/python-list

Delays getting data on sys.stdin.readline() ?

2005-11-19 Thread Christian Convey
. This delay prevents my program from being responsive in the way it must be. Has anyone else seen this effect? If so, is there a reasonable workaround? Thanks very much, Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Delays getting data on sys.stdin.readline() ?

2005-11-20 Thread Christian Convey
On 11/19/05, Mike Meyer [EMAIL PROTECTED] wrote: Christian Convey [EMAIL PROTECTED] writes: I've got a program that (ideally) perpetually monitors sys.stdin for lines of text. As soon as a line comes in, my program takes some action. The problem is, it seems like a very large amount

Re: character encoding conversion

2004-12-13 Thread Christian Ergh
Peter Otten wrote: Steven Bethard wrote: Christian Ergh wrote: flag = true for char in data: if 127 ord(char) 128: flag = false if flag: try: data = data.encode('latin-1') except: pass A little OT, but (assuming I got your indentation right[1]) this kind of loop

Re: character encoding conversion

2004-12-13 Thread Christian Ergh
Once more, indention should be correct now, and the 128 is gone too. So, something like this? Chris import urllib2 url = 'www.someurl.com' f = urllib2.urlopen(url) data = f.read() # if it is not in the pagecode, how do i get the encoding of the page? pageencoding = '???' xmlencoding = 'whatever

Re: character encoding conversion

2004-12-13 Thread Christian Ergh
- snip - def get_encoded(st, encodings): Returns an encoding that doesn't fail for encoding in encodings: try: st_encoded = st.decode(encoding) return st_encoded, encoding except UnicodeError: pass -snip- This works fine, but after this

Re: character encoding conversion

2004-12-13 Thread Christian Ergh
Dylan wrote: Here's what I'm trying to do: - scrape some html content from various sources The issue I'm running to: - some of the sources have incorrectly encoded characters... for example, cp1252 curly quotes that were likely the result of the author copying and pasting content from Word

Re: character encoding conversion

2004-12-13 Thread Christian Ergh
Forgot a part... You need the encoding list: encodings = [ 'utf-8', 'latin-1', 'ascii', 'cp1252', ] Christian Ergh wrote: Dylan wrote: Here's what I'm trying to do: - scrape some html content from various sources The issue I'm running to: - some of the sources have incorrectly

Re: Suggestion for syntax error: ++i, --i

2004-12-13 Thread Christian Ergh
Hmm, i never liked the i++ syntax, because there is a value asignment behind it and it does not show - except the case you are already used to it. i = 1 i +=1 i 2 I like this one better, because you see the assignment at once, it is easy to read and inuitive usability is given - in my

Re: A beginner's problem...

2004-12-16 Thread Christian Ergh
DogWalker wrote: Marc 'BlackJack' Rintsch [EMAIL PROTECTED] said: In [EMAIL PROTECTED], Amir Dekel wrote: When I import a module I have wrote, and then I find bugs, it seems that I can't import it again after a fix it. It always shows the same problem. I try del module but it doesn't work. (I

Re: Suggestion for syntax error: ++i, --i

2004-12-13 Thread Christian Ergh
Ah, ok, i misunderstood you. Well, to mark it as a syntax error sounds good, and at the Moment I would not know a case where this conflicts with a implementation. Chris Petr Prikryl wrote: Hi Christian, The suggestion is to mark PREFIX version ++i as syntax error. It is not related

Re: convert \uXXXX to native character set?

2004-12-21 Thread Christian Ergh
Miki Tebeka wrote: Hello Joe, Is there any library to convert HTML page with \u encoded text to native character set, e.g. BIG5. Try: help(.decode) I use HTMLFilter.py, you can download it at http://www.shearersoftware.com/software/developers/htmlfilter/ Cheers Chris --

Re: Read word tables

2004-12-25 Thread Christian Tismer
use an XML parser to easily get at any structure. It might be simpler to use than using all the COM objects directly. (Well, the structures aren't that easy, of course). ciao - chris -- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have a break! Take

Re: pickle - recursion - stack size limit - MS windows

2005-12-09 Thread Christian Tismer
with Python 2.3 at the moment (2.4.2 support is expected after PyCon 2006 the latest), you can just use Stackless Python. It is not limited by stack size and also includes a version of cPickle that is unlimited. cheers -- chris -- Christian Tismer :^) mailto:[EMAIL PROTECTED

Re: Please enlighten me about PyPy

2005-12-25 Thread Christian Tismer
will, but considerably simpler than writing C. merry christmas -- chris -- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 Berlin

Re: Please enlighten me about PyPy

2005-12-25 Thread Christian Tismer
Christian Tismer wrote: This is not trying to split apart from PyPy, or to short-cut its goals. I'm completely with PyPy's goals, and it will do much more than RPython translation ever will, this is out of question. Of course I meant this is beyond question :-) -- Christian Tismer

Re: How to avoid f.close (no parens) bug?

2005-12-25 Thread Christian Tismer
with parentheses(). Caling the suqresum() method should not be turned into a property, since such a thing isn't cheap in most cases. Not to speak of functions which have side-effects. merry christmas - chris -- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH

Re: python coding contest

2005-12-25 Thread Christian Tismer
-- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 Berlin : PGP key - http://wwwkeys.pgp.net/ work +49 30 802 86 56 mobile

Re: python coding contest

2005-12-25 Thread Christian Tismer
-- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9A :*Starship* http://starship.python.net/ 14109 Berlin : PGP key - http://wwwkeys.pgp.net/ work +49 30 802 86 56

Re: Please enlighten me about PyPy

2005-12-25 Thread Christian Tismer
for the time after 2006 to make PyPy survive for a long time, and creating tools like this will become a self-running motor for PyPy. A matter of good balancing :-) merry christmas -- chris -- Christian Tismer :^) mailto:[EMAIL PROTECTED] tismerysoft GmbH : Have a break! Take

  1   2   3   4   5   6   7   8   9   10   >