How do I run a python program from an internet address?

2012-05-07 Thread Albert
I have a small text based python program that I want to make available to people who might be behind a firewall or can't install python on their office computers, but can access the internet. It is just an algorithm that makes a handful of straightforward calculations on some input that the user p

Anyone know a donation app codebase?

2016-06-04 Thread Albert
Hello, Anyone knows a donation app whose code is available on github or similar made in python (could be django, flask, or any other web framework). Thank you very much. -- https://mail.python.org/mailman/listinfo/python-list

Re: Anyone know a donation app codebase?

2016-06-05 Thread Albert
://github.com/danielweinmann/unlock Any suggestion please? On Saturday, June 4, 2016 at 6:02:51 PM UTC-3, Ben Finney wrote: > Albert writes: > > > Anyone knows a donation app whose code is available on github or > > similar made in python (could be django, flask, or any other

Re: Anyone know a donation app codebase?

2016-06-15 Thread Albert
On Monday, June 6, 2016 at 10:17:35 AM UTC-3, Michael Selik wrote: > On Sun, Jun 5, 2016 at 3:26 PM Ben Finney <> > wrote: > > > Albert <> writes: > > > > > Thank you for your answer Ben, > > > > You're welcome. Please note that

Re: [newbie] problem with if then

2013-06-09 Thread Albert Dengg
the exit code of the shell, when chaining commands with ; it returns the exit status of the last command,in your case the echo. So,if you really want to go with wget here, Either drop the echo or chain with && Yours Albert Hi, While i agree that calling wget here is not optimal -- http://mail.python.org/mailman/listinfo/python-list

Re: Contact information for Jim Hugunin?

2013-07-24 Thread Albert Hopkins
On Mon, Jul 22, 2013, at 05:33 PM, Larry Hastings wrote: > > > Does anybody have an email address (or anything, really) for Jim > Hugunin? He left Google in May and appears to have dropped off the face > of the internet. Please email me privately. > > I swear I will use the information only

Re: 'indent'ing Python in windows bat

2012-09-19 Thread Albert Hopkins
On Tue, 2012-09-18 at 22:12 -0600, Jason Friedman wrote: > > I'm converting windows bat files little by little to Python 3 as I find time > > and learn Python. > > The most efficient method for some lines is to call Python like: > > python -c "import sys; sys.exit(3)" > > > > How do I "indent" if I

Re: Fastest web framework

2012-09-24 Thread Albert Hopkins
On Sun, 2012-09-23 at 12:19 +0300, Andriy Kornatskyy wrote: > I have run recently a benchmark of a trivial 'hello world' application for > various python web frameworks (bottle, django, flask, pyramid, web.py, > wheezy.web) hosted in uWSGI/cpython2.7 and gunicorn/pypy1.9... you might find > it i

Re: who can give me some practical tutorials on django 1.4 or 1.5?

2012-11-04 Thread Albert Hopkins
On Sun, 2012-11-04 at 13:29 +0800, Levi Nie wrote: > Who can give me some practical tutorials on django 1.4 or 1.5? > Thank you. Is the official[1] tutorial not practical enough? [1] https://docs.djangoproject.com/en/1.4/intro/tutorial01/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Help accessing COM .dll from Python

2012-12-01 Thread Albert Dengg
ou want to use in the documentation of your libary. there are however some pitfalls, espesially with arguments passed by reference: there not the parameter will be modified but you will have a tuple as a return value. albert signature.asc Description: Digital signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Tarfile and usernames

2012-12-30 Thread Albert Hopkins
On Sun, Dec 30, 2012, at 01:57 PM, Nicholas Cole wrote: Dear List, I'm hoping to use the tarfile module in the standard library to move some files between computers. I can't see documented anywhere what this library does with userids and groupids. I can't guarantee that the computers invo

Re: When is overriding __getattr__ is useful?

2013-01-07 Thread Albert Hopkins
On Mon, Jan 7, 2013, at 10:54 AM, Rodrick Brown wrote: > Can someone provide an example why one would want to override __getattr__ > and __getattribute__ in a class? They're good for cases when you want to provide an "attribute-like" quality but you don't know the attribute in advance. For exa

Re: sockobj.connect Errno 13 Permission denied

2013-01-26 Thread Albert Hopkins
On Sat, Jan 26, 2013, at 08:52 AM, Joel Goldstick wrote: > On Sat, Jan 26, 2013 at 8:47 AM, Joel Goldstick > wrote: > > > > > > > > > On Sat, Jan 26, 2013 at 6:19 AM, nobody wrote: > > > >> Hi, > >> > >> I have a client program Client.py which has a statement of > >> sockobj.connect(), the port

WatPy: A new Python User Group in Kitchener-Waterloo, Ontario

2012-05-29 Thread Albert O'Connor
We are having our first night of talks on Thursday June 7th, 6:30 at the Communitech Hub in downtown Kitchener. More information: http://watpy.ca/blog/post/peer-2-peer-talks/ Albert O'Connor -- http://mail.python.org/mailman/listinfo/python-list

Re: subtle error slows code by 10x (builtin sum()) - replace builtin sum without using import?

2011-07-01 Thread Albert Hopkins
On Friday, July 1 at 19:17 (-0700), bdb112 said: > Question: > Can I replace the builtin sum function globally for test purposes so > that my large set of codes uses the replacement? > > The replacement would simply issue warnings.warn() if it detected an > ndarray argument, then call the origi

Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?

2011-08-30 Thread Michel Albert
Hi, I use python oftentimes to write automation scripts on Linux servers. And there's a big pattern in my scripts: - I *always* use `logging` instead of `print` statements. - I *always* create two stream handlers. One for `sys.stdout` with level `INFO` and one for `sys.stderr` with level `WARN`

Re: Making `logging.basicConfig` log to *both* `sys.stderr` and `sys.stdout`?

2011-08-30 Thread Michel Albert
On Aug 30, 11:45 am, Peter Otten <__pete...@web.de> wrote: > Michel Albert wrote: > > I use python oftentimes to write automation scripts on Linux servers. > > And there's a big pattern in my scripts: > > > - I *always* use `logging` instead of `print` stat

Re: Restarting a daemon

2011-04-26 Thread Albert Hopkins
On Tue, 2011-04-26 at 06:13 -0600, Jeffrey Barish wrote: > Not exactly a Python question, but I thought I would start here. > > I have a server that runs as a daemon. I can restart the server manually > with the command > > myserver restart > > This command starts a new myserver which first l

Re: How to concatenate unicode strings ???

2011-04-26 Thread Albert Hopkins
On Tue, 2011-04-26 at 17:58 +0200, Ariel wrote: > Hi everybody, how could I concatenate unicode strings ??? > What I want to do is this: > > unicode('this an example language ') + unicode('español') > > but I get an: > Traceback (most recent call last): > File "", line 1, in > UnicodeDecodeE

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Thu, 2011-05-05 at 15:35 +0200, Nico Grubert wrote: > Hi there > > I am having trouble to install PIL 1.1.7 on CentOS. > > I read and followed the instructions from > http://effbot.org/zone/pil-imaging-not-installed.htm > > However, I still get the "The _imaging C module is not installed" err

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
Oh I forgot to say, after installing these libraries, you will need to re-compile (install) PIL. -a -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL: The _imaging C module is not installed

2011-05-05 Thread Albert Hopkins
On Fri, 2011-05-06 at 01:45 +0200, Michel Claveau - MVP wrote: > Hi! > > > you need to install the appropriate libraries, among which are: > > libjpeg-devel > > freetype-devel > > libpng-devel > > OK, but where can I find it? I want use PIL with Python under Windows, > and I can't compile C's so

Re: if statement multiple or

2011-05-06 Thread Albert Hopkins
On Fri, 2011-05-06 at 13:47 +0300, Lutfi Oduncuoglu wrote: > Hi, > > I am trying to write a script and I realised that I need to use > something like > > if ('a' or 'b' or 'c') not in line: >print line > The expression: ('a' or 'b' or 'c') evaluates to True True not in line Is

Re: if statement multiple or

2011-05-06 Thread Albert Hopkins
Correction: ('a' or 'b' or 'c') evaluates to 'a' -- http://mail.python.org/mailman/listinfo/python-list

Re: FW: help please

2011-05-17 Thread Albert Hopkins
On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote: > Not to be pedantic or anything, and I may not be able to help > regardless, but it looks like your space key is fixed, and I don't > really care to pick through and try to play hangman with your message. I actually, at first glance,

Re: FW: help please

2011-05-18 Thread Albert Hopkins
On Tue, 2011-05-17 at 21:46 -0300, Gabriel Genellina wrote: > En Tue, 17 May 2011 16:48:29 -0300, Albert Hopkins > escribió: > > On Tue, 2011-05-17 at 10:18 -0600, Littlefield, Tyler wrote: > > >> Not to be pedantic or anything, and I may not be able to help > >&

Re: FW: help please

2011-05-18 Thread Albert Hopkins
On Wed, 2011-05-18 at 13:39 +0100, Stuart MacKay wrote: > If you were required to answer the question then asking the poster to > phrase it better is going to help solve the issue faster but for a > mailing list like this simply ignore it. Which is what I've done. -- http://mail.python.org/ma

Re: How To Make Fast Money Legally

2011-05-18 Thread Albert Hopkins
On Wed, 2011-05-18 at 15:48 -0400, D'Arcy J.M. Cain wrote: > On Wed, 18 May 2011 12:06:07 -0700 (PDT) > "tmac641...@yahoo.com" wrote: > > HOW TO MAKE EASY MONEY FAST AND LEGALLY > > Wow! Was this stuck in someone's mail queue since 1992? Me too! -- http://mail.python.org/mailman/listi

Re: changing current dir and executing a shell script

2011-05-27 Thread Albert Hopkins
On Fri, 2011-05-27 at 14:25 -0700, suresh wrote: > Hi, > I want to execute the following command line stuff from inside python. > $cd directory > $./executable > > I tried the following but I get errors > import subprocess > subprocess.check_call('cd dir_name;./executable') > > Due to filename p

Re: changing current dir and executing a shell script

2011-05-28 Thread Albert Hopkins
On Sat, 2011-05-28 at 09:41 +0200, Peter Otten wrote: > > You don't want to do this because "cd" is a built-in shell command, > and > > subprocess does not execute within a shell (by default). > > The problem is not that cd is built-in, but that there is no shell at > all. > You can change that w

Re: float("nan") in set or as key

2011-05-28 Thread Albert Hopkins
On Sun, 2011-05-29 at 00:41 +0100, MRAB wrote: > Here's a curiosity. float("nan") can occur multiple times in a set or as > a key in a dict: > > >>> {float("nan"), float("nan")} > {nan, nan} > These two nans are not equal (they are two different nans) > except that sometimes it can't: > > >>

Demo-Mode in IPython broken?

2018-07-29 Thread Albert Brandl
this a known bug? Do you have a suggestion how I could emulate the behavior of the demo mode by other means (not necessarily with IPython)? TIA and best regards, Albert -- https://mail.python.org/mailman/listinfo/python-list

Division issue with 3.8.2 on AIX 7.1

2020-06-03 Thread Albert Chin
3, and 6.1. But, on 7.1, I get "inf". Anyone know where can I look in the Python source code to investigate this? -- albert chin (ch...@thewrittenword.com) -- https://mail.python.org/mailman/listinfo/python-list

Re: Division issue with 3.8.2 on AIX 7.1

2020-06-03 Thread Albert Chin
On Wed, Jun 03, 2020 at 08:11:17PM -0400, Dennis Lee Bieber wrote: > On Tue, 2 Jun 2020 12:26:16 -0500, Albert Chin > declaimed the following: > > >I've built Python 3.8.2 on AIX 5.2, 5.3, 6.1, and 7.1. I am seeing > >different results for the following Python progr

pymssql and bind variables

2005-09-23 Thread Albert Leibbrandt
I need to write a little app that connects to an MS SQL server and for this I decided on the pymssql module. At this stage I am trying to find out if MS SQL server can handle bind variables. If anybody can give me an answer and perhaps a example it will be appreciated   Thanks Albert

Re: Overloading __init__ & Function overloading

2005-09-30 Thread Istvan Albert
in python you can provide default values for your parameters: class BaseClass: def __init__(self, a=None): if a is None: #no parameter pass else: #one parameter pass baseclass1=BaseClass() baseclass2=BaseClass(1) --

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Istvan Albert
> What can one do to swiftly detect this type of bug? While I can only speak from my own experience I can't remember a single instance where this type of bug caused any kind of serious problem. IMHO these are very trivial errors, that get caught immediately and I would not even qualify them as

Re: Controlling who can run an executable

2005-10-04 Thread Istvan Albert
>was using to track clients and transactions. He couldn't demonstrate >the program for one reason or another because it was protected in a way >that neither could circumvent. (She didn't remember how it was >protected, she had hired this person a long time ago.) I'd venture to guess that neither

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Istvan Albert
Disclaimer: this is not a flame against Boo. It just boggles my mind that a language that describes itself as "python inspired syntax" keeps being touted as: > Luis M. Gonzalez wrote: > Boo (which could be considered almost an static version of Python for .NET) Boo is *nothing* like a static ve

Re: New project coming up...stay with Python, or go with a dot net language??? Your thoughts please!

2005-10-04 Thread Istvan Albert
> It has many similarities, but also some fundamental differences, > considered "almost" a static python lol, if that is your definition of 'almost' then your statement is correct -- http://mail.python.org/mailman/listinfo/python-list

Re: Controlling who can run an executable

2005-10-04 Thread Istvan Albert
> I could ask her, "If you can't break it is that good enough security?" Guess not. Most non-programmers think everyone else who knows some programming is a some sort of hacker genius. Instead come up with a simple solution then explain her how it will works. I think in the ensuing conversation y

Re: How to delete yourself????

2005-10-14 Thread Istvan Albert
> But is this nice code??? Is there another way to delete yourself??? I think you are overcomplicating things. Don't think of it as deleting 'itself', since what you seem to need is deleting a reference to the instance. In your example the parent is a container and it usually makes more sense t

Re: XML Tree Discovery (script, tool, __?)

2005-10-26 Thread Istvan Albert
All I can add to this is: - don't use SAX unless your document is huge - don't use DOM unless someone is putting a gun to your head There's a good selection of nice and simple XML processing libraries in python. You could start with ElementTree. -- http://mail.python.org/mailman/listinfo/python

Re: How best to reference parameters.

2005-10-26 Thread Istvan Albert
Sounds like the Bunch: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308 -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON LOOSING FOR JAVA???????

2005-11-08 Thread Istvan Albert
> PYTHON LOOSING FOR JAVA??? Yes, Python is already looser than Java. -- http://mail.python.org/mailman/listinfo/python-list

Re: CGI question

2005-11-29 Thread Istvan Albert
See urlparse: http://www.python.org/doc/current/lib/module-urlparse.html -- http://mail.python.org/mailman/listinfo/python-list

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Istvan Albert
> The server is almost entirely based on the server found at: > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/259148 Try using a different python based webserver. This recipe might have some problems that cause the weird behavior. (The Karigell webframework uses a server based on this r

Re: an intriguing wifi http server mystery...please help

2005-11-30 Thread Istvan Albert
> But if it's a problem with the software, why does the server work > great when wired (i.e. not wireless)...that's the weird part. Don't be so quick to eliminate software error ... when it comes to bugs there are few rules. You are using a recipe that is *known* to produce weird behavior. Make

Re: CGI question

2005-12-01 Thread Istvan Albert
> I'm still wondering though, if there's some part of the python standard > modules that will convert those % escapes to ASCII or similar - and I believe that functionality is provided by the quote/unquote functions in the urllib module: http://www.python.org/doc/current/lib/module-urllib.html I

Re: Python evolution: Unease

2005-01-04 Thread Istvan Albert
Iwan van der Kleyn wrote: And I do sense (reading planet python/this newsgroup) a mindset or at least a tendency by the people who really matter in these discussion to keep on adding features to the syntax; to add "structure" to Python. My personal preference would be to leave the language alone

Re: Parallelization with Python: which, where, how?

2005-01-04 Thread Albert Hofkamp
llecting the output afterwards (using ssh/rsh) fits your problem, send me an email. Albert -- Unlike popular belief, the .doc format is not an open publically available format. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python evolution: Unease

2005-01-04 Thread Istvan Albert
Doug Holton wrote: application is so important that I expect Python 3000 will have optional type declarations integrated into the argument list." I think that *optional* part of the "optional type declaration" is a myth. It may be optional in the sense that the language will accept missing declarat

Re: Download .jpg from web

2005-01-06 Thread Istvan Albert
GMane Python wrote: Using a network camera with built-in webserver The first thing that might be worth investigating is this webserver. What kind of throughput is it capable of? How does it handle repeated requests etc. Your program won't be faster than the server that provides it with the data.

Re: Writing huge Sets() to disk

2005-01-10 Thread Istvan Albert
Martin MOKREJÅ wrote: But nevertheless, imagine 1E6 words of size 15. That's maybe 1.5GB of raw data. Will sets be appropriate you think? You started out with 20E20 then cut back to 1E15 keys now it is down to one million but you claim that these will take 1.5 GB. On my system storing 1 million wo

Re: Writing huge Sets() to disk

2005-01-10 Thread Istvan Albert
Martin MOKREJÅ wrote: Istvan Albert wrote: So you say 1 million words is better to store in dictionary than in a set and use your own function to get out those unique or common words? I have said nothing even remotely like that. Fine, that's what I wanted to hear. How do you improve the algo

Re: distutils linux script installation broken?

2005-01-12 Thread Albert Hofkamp
gt; Has anyone else encountered this? I haven't (as I am not using 2.4 :-) ) However, there is an easy way around this, just use #!/usr/bin env python instead. Albert -- Unlike popular belief, the .doc format is not an open publically available format. -- http://mail.python.org/mailman/listinfo/python-list

Re: shutil.move has a mind of its own

2005-01-12 Thread Istvan Albert
Daniel Bickett wrote: In my script, rather than a file being moved to the desired location, it is, rather, moved to the current working directory (in this case, my desktop -- without any exceptions, mind you). As it happens, the what is the output generated by the lines: fdir, fname = randFileInfo.

Re: java 5 could like python?

2005-01-12 Thread Istvan Albert
vegetax wrote: previus two python proyects where relatively big,and python didnt feel well suited for the task. One typical problem that others might talk about in more detail is that you might be writing java code in python. That means using Java style class hierarchies, methods and overall organ

Re: Integration with java

2005-01-14 Thread Istvan Albert
Joachim Boomberschloss wrote: the code is already written in Python, using the standard libraries and several extension modules One thing to keep in mind is that Jython does not integrate CPython, instead it "understands" python code directly. So if you have a C extension that works with python i

Re: [perl-python] 20050113 looking up syntax

2005-01-14 Thread Istvan Albert
Jürgen Exner wrote: Why don't you just stop posting this nonsense? He will, fairly soon. I'm suspecting that the original intent behind these posts was to stir up a perl vs python flamewar. That is unlikely to materialize since the poster does not seem to understand neither of these languages. I. -

Re: Integration with java (Jpype vs. JPE)

2005-01-17 Thread Istvan Albert
Cameron Laird wrote: Someone really ought to include a couple of sentences to that effect on the front page of http://jpype.sf.net/ >. Now I remember visiting this site, but never understood how it actually worked. Examples such as: from jpype import * startJVM("d:/tools/j2sdk/jre/bin/client/jvm.dl

pychecker - sets.Set need to be overridden

2005-01-17 Thread Istvan Albert
Hello all, if I have this code: import sets class Foo: x = sets.Set() then pychecker says: test.py:4: Methods (__cmp__, __hash__) in sets.Set need to be overridden in a subclass I don't get this message. What is it trying to say, and why? Istvan. -- http://mail.python.org/mailman/listinfo/pyth

Re: pychecker - sets.Set need to be overridden

2005-01-17 Thread Istvan Albert
[EMAIL PROTECTED] wrote: <__main__.Foo instance at 0x00C578A0> Set([]) on 2.4. on WinXP. What environment do you run in? I'm running it on cygwin, but still don't get it, why the warning? Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: pychecker - sets.Set need to be overridden

2005-01-17 Thread Istvan Albert
Peter Otten wrote: The Set class has implementations for __cmp__() and __hash__() that unconditionally raise an exception. pychecker assumes that these methods are "abstract", i. e. meant to be overriden by a subclass, and warns that you are instantiating an abstract base class, while the intention

Re: Integration with java (Jpype vs. JPE)

2005-01-18 Thread Istvan Albert
Steve Menard wrote: To asnwer your question more fully, the jpype-specific cide is only for looking up the Classes and startting/stopping the environment. For everything else, Java objects and classes are used as regular Python objects. Thanks for the response. Currently I don't need to use java

Re: What YAML engine do you use?

2005-01-20 Thread Istvan Albert
Reinhold Birkenfeld wrote: You will be amazed, and never think of XML again. XML with elementtree is what makes me never have think about XML again. Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] XML design intent ... further musings

2005-01-24 Thread Istvan Albert
Paul Rubin wrote: I love this old rant about XML: http://groups-beta.google.com/group/comp.lang.lisp/msg/9a30c508201627ee This is my favorite: http://weblog.burningbird.net/archives/2002/10/08/the-parable-of-the-languages "I’m considered the savior, the ultimate solution, the final word. Odes are

Re: What YAML engine do you use?

2005-01-24 Thread Istvan Albert
rm wrote: http://www.theinquirer.net/?article=20868 :-) There's a lot of nonsense out there propagated by people who do not understand XML. You can't possibly blame that on XML... For me XSLT transformations are the main reason for using XML. If I have an XML document I can turn it into other forma

Question about reading a big binary file and write it into several text (ascii) files

2005-01-24 Thread Albert Tu
2*1024*768) >>>.. >>>f.close() Bur I don't them how to save files in integer format (converting from binary to ascii files) and how to do this in an elegant and snappy way. Please reply when you guyes can get a chance. Thanks, Warm regards, Albert -- http://mail.python.org/mailman/listinfo/python-list

Re: 4suite XSLT thread safe ?

2005-01-26 Thread Istvan Albert
Diez B. Roggisch wrote: What do you mean by that? You can of course transform xml using xslt in as many threads as you like It is not unthinkable that some parts of the library would not be threadsafe. They could have some internal shared global variable that keeps track of an intermediate state.

Re: python memory blow out

2005-01-27 Thread Istvan Albert
Simon Wittber wrote: Does anyone have ideas on why this is occuring, or how I might otherwise prevent memory blow out? I don't know it this is a decent enough solution but if I were you I would try running the SQL service in a subshell. Within this subshell I would terminate then restart the prog

RE: cursor positioning

2005-07-11 Thread Albert Leibbrandt
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mage Sent: 11 July 2005 04:28 PM To: python-list@python.org Subject: Re: cursor positioning Larry Bates wrote: >While not "curses" based this class will update screen as you >want. You could use it as a bas

RE: difficulty connecting to networked oracle database

2005-07-22 Thread Albert Leibbrandt
>> As the other posters already mentioned, cx_Oracle is the way to go. I'm >> using it to connect to Oracle not only on Windows, but also on Solaris, >> Linux and AIX. >> Grig I can second that, I have been using python and cx_oracle for more than 3 years now Alber

RE: trying to access Oracle

2005-07-27 Thread Albert Leibbrandt
ise with python.      Import cx_Oracle   conn = cx_Oracle.connect(‘username’,’password’,’tns’) cursor = conn.cursor()   cursor.execute(“whatever you feel like executing”)     Hope it helps   cheers Albert   -- http://mail.python.org/mailman/listinfo/python-list

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Istvan Albert
There are plenty of webhosts that offer python, do a little research. -- http://mail.python.org/mailman/listinfo/python-list

error when parsing xml

2005-09-05 Thread Albert Leibbrandt
on 604: ordinal not in range(128). >> >> How can I avoid this error? >> >> >> All help much appreciated! I have found that some people refuse to stick to standards, so whenever I parse XML files I remove any characters that fall in the range <= 0x1f >= 0xf0 Hope it helps. Regards Albert -- http://mail.python.org/mailman/listinfo/python-list

Download Mail Via Python

2005-09-12 Thread Albert Leibbrandt
material I can have a look at? Examples perhaps?   Thanks in advance. Albert     -- http://mail.python.org/mailman/listinfo/python-list

How can I Read/Write multiple sequential Binary/Text data files

2005-03-10 Thread Albert Tu
-loop index. Anyone had previous experience? Thanks, Albert -- http://mail.python.org/mailman/listinfo/python-list

Re: Lisp-likeness

2005-03-15 Thread Albert Reiner
[EMAIL PROTECTED], Tue, 15 Mar 2005 13:10:52 +0100]: > It's indeed correct CL syntax, but I don't see much macro usage in there. defun? Albert. -- http://mail.python.org/mailman/listinfo/python-list

Re: Database connection caching

2005-03-18 Thread Istvan Albert
[EMAIL PROTECTED] wrote: Hi all, is there an alternative way of: - create a connection object - open the connection - close the connection psycopg, a Postgresql database adapter does connection pooling automatically http://initd.org/projects/psycopg1 Most Zope database adapters also have implicit c

Re: module imports and memory usage

2004-11-30 Thread Istvan Albert
Brad Tilley wrote: Also, is there a way to load and unload modules as they are needed. I have some scripts that sleep for extended periods during a while loop and I need to be as memory friendly as possible. I can post a detailed script that currently uses ~ 10MB of memory if anyone is interest

Re: pre-PEP generic objects

2004-12-02 Thread Istvan Albert
Steven Bethard wrote: I promised I'd put together a PEP for a 'generic object' data type for Python 2.5 that allows one to replace __getitem__ style access with dotted-attribute style access (without declaring another class). Any comments would be appreciated! IMHO this too easy to accomplish r

Re: pre-PEP generic objects

2004-12-03 Thread Istvan Albert
Steven Bethard wrote: > The question is not how easy it is to write, > but how many times it's going to get written. but with that logic we could create a standard "looping" construct called loop(x) that would stand in for for i in range(x): or a file_reader('whatever') generator that would be a s

Re: pre-PEP generic objects

2004-12-03 Thread Istvan Albert
Steven Bethard wrote: module) not to the __builtins__. I don't see how this "litters the standard namespace". Maybe then it doesn't. but what are you saying? that a man cannot exaggerate and fudge the facts in order to embellish his argument? :-) Istvan. -- http://mail.python.org/mailman/listinfo

Re: xmlrpclib or twisted?

2004-12-06 Thread Istvan Albert
flupke wrote: I am planning to build a web GUI for the client so if i If you are planning to build a browser based interface then use an available webserver and don't build your own. Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Webapp servers & security

2004-12-07 Thread Istvan Albert
Anakim Border wrote: few) offer a clean environment to develop Python webapps. I have some problems, however, understanding their security model. Did I miss anything? They don't have a security model. AFAIK only Zope has. Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree and XPATH

2004-12-09 Thread Istvan Albert
[EMAIL PROTECTED] wrote: it seems to be invalid syntax if I give "/a/b[0]" to the findall() method. Does anyone know the correct syntax? I think the proper mindset going in should be that elementtree does not support xpath but that there are some handy constructs that resemble the location steps of

Re: Calling a C program from a Python Script

2004-12-09 Thread Istvan Albert
Brad Tilley wrote: If possible, how much faster would this be over a pure Python solution? It is like the difference between Batman and Ever. batman is faster than ever -- http://mail.python.org/mailman/listinfo/python-list

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

2004-12-13 Thread Istvan Albert
Petr Prikryl wrote: Summary: In my opinion, the C-like prefix increment and decrement operators (++i and --i) should be marked as "syntax error". My guess is that the impact of it would be nil. This is python, there are no prefix or postfix operators. That is very easy to remember. Just because one

Re: Performance (pystone) of python 2.4 lower then python 2.3 ???

2004-12-13 Thread Istvan Albert
Lucas Hofman wrote: Anyone who understands what is going on? It is difficult to measure a speedup that might be well within your measurement error. Run the same pystone benchmark repeatedly and see what variation you get. Istvan. -- http://mail.python.org/mailman/listinfo/python-list

Re: Boo who? (was Re: newbie question)

2004-12-20 Thread Istvan Albert
Doug Holton wrote: the syntax of boo is indeed virtually identical to python. All that boo does is borrows a few syntactical constructs from python. Calling it virtually identical is *very* misleading. I've downloaded and tried it when you first made this claim and it turned out that boo couldn't

Re: Boo who? (was Re: newbie question)

2004-12-21 Thread Istvan Albert
Doug Holton wrote: The syntax is indeed virtually identical to python. You are yet another person who has trolled before. > Do you have financial conflict of interest too like Fredrik? You'll easily get away by calling me a troll, but trying to make it look like that the effbot is one, that's j

Re: My first real request for help

2013-11-19 Thread Albert Dengg
sses some external executable it tries to Popen() so, you should probably on some linuxcnc/camview-emc related mailling list/forum. regards, albert ps: a more descriptive subject line would be helpfull for people to recognize what your post is about and then can quickly decide if they want to

Re: Tkinter widgets into classes.

2014-02-01 Thread albert visser
oop() -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Is vars() the most useless Python built-in ever?

2015-12-02 Thread Albert Visser
Indeed you are correct about the wording, but your interpretation is wrong. Mm, not so much. What you're describing is a statement like "There should be one way and it should be obvious". -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: h

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-05 Thread Albert Visser
ly there's extra information available on the "Error running your script" message. You should examine that. Meanwhile, I think the line "return invalid transaction" provides a clue. -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/ -- https://mail.python.org/mailman/listinfo/python-list

Re: I am out of trial and error again Lists

2014-10-24 Thread Albert Visser
and hit enter to examine the result, instead of pushing F5 to run your code -- Vriendelijke groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Where is inspect() located?

2014-11-16 Thread Albert Visser
only for 3.x? Thank you. Windows may not be case-sensitive, but Python is iirc -- Vriendelijke groeten / Kind regards, Albert Visser -- https://mail.python.org/mailman/listinfo/python-list

Re: Tuples and immutability

2014-03-02 Thread albert visser
', 's', 'p', 'a', 'm'] consequently, try adding something that can not be interpreted as a sequence: In [4]: mylist += 3 --- TypeError Traceback (most

Re: trailing underscores naming convention_

2014-05-09 Thread Albert Visser
both getting called on the event unless you do not call the superclass's __init__() in your own __init__(). -- Vriendelijk groeten / Kind regards, Albert Visser Using Opera's mail client: http://www.opera.com/mail/ -- https://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >