Re: Looking for tips and gotchas for working with Python 3.5 zipapp feature

2019-07-01 Thread Simon
ave to bundle the C extension. How can I do that? Thx, Simon -- https://mail.python.org/mailman/listinfo/python-list

__getitem__ on new-style classes

2005-03-10 Thread simon
hen one tries the following: def test3(): data = range(10) c = type( "Container", (), { "__getitem__":data.__getitem__ } )() print "test3" print c[3] Which works fine. However, if I need to resort to such trickery, no-one here where i work will have any ide

Re: Set literals

2005-03-21 Thread simon
m a dict's keys, but not the other way around. Is this odd, or what ? >>> a = set({1:0,2:0,3:0}) >>> a set([1, 2, 3]) >>> >>> dict(a) Traceback (most recent call last): File "", line 1, in ? TypeError: cannot convert dictionary update sequence

how to create an external string when binding C to Python?

2014-05-08 Thread Simon
I'd like to make a C memory buffer available inside Python via the Python C/API without copying that memory into Python. How to do this? I've read [1] but it's not clear that this functionality exists. In javascript it's possible using String::NewExternal() [2]. "Creates a new external string u

how to create a zero copy external string when binding C to Python?

2014-05-08 Thread Simon
I'd like to make a C memory buffer available inside Python via the Python C/API without copying that memory into Python. How to do this? I've read [1] but it's not clear that this functionality exists. In javascript it's possible using String::NewExternal() [2]. "Creates a new external string u

Re: per instance descriptors

2006-12-07 Thread simon
George Sakkis wrote: > Simon Bunker wrote: > > > Hi I have code similar to this: > > > > class Input(object): > > > > def __init__(self, val): > > self.value = val > > > > def __get__(self, obj, objtype): > >

epydoc and latex math

2005-05-01 Thread simon
ut of hand, and epydoc looks like a great replacement tool. I see nltk and twisted use epydoc, but the project itself seems to be quiet at the moment. Also, I have been subscribed to doc-sig for a while now, but I am utterly confused as to what they are up to. bye, Simon. -- Simon Burton,

python unix install, sqlite3

2007-05-29 Thread Simon
I installed the source code on unix for python 2.5.1. The install went mainly okay, except for some failures regarding: _ssl, _hashlib, _curses, _curses_panel. No errors regarding sqlite3. However, when I start python and do an import sqlite3 I get: /ptmp/bin/> python Python 2.5.1 (r251:54863, Ma

Re: python unix install, sqlite3

2007-05-29 Thread Simon
On May 29, 7:05 am, vasudevram <[EMAIL PROTECTED]> wrote: > On May 29, 5:52 pm, Simon <[EMAIL PROTECTED]> wrote: > > > > > > > I installed the source code on unix for python 2.5.1. The install went > > mainly okay, except for some failures regarding:

Re: HIRING: PHP Developer

2006-03-27 Thread Simon
>I apologize. Google groups has restricted our contact email. To reach > us, please send your quote to hiringdivision @ gmail.com. > > Thank you. Apologize to whom? Who/What are you replying to? Please note that we don't all use Google groups format your replies properly.

Re: HIRING: PHP Developer

2006-04-05 Thread Simon
t;We are hiring a PHP developer! > > <http://groups.google.com/[EMAIL PROTECTED] > .co.nz> Or http://urlkick.com/51 :) Simon -- http://mail.python.org/mailman/listinfo/python-list

Wrapping paper, anyone ?

2009-12-15 Thread simon
#!/usr/bin/env python from math import * from random import * import cairo from cairo import Context Black = (0, 0, 0) White = (1, 1, 1) def rand(): return random()*2 - 1 def rotate(theta, x, y): x, y = x*cos(theta)-y*sin(theta), x*sin(theta)+y*cos(theta) return x, y def star(ctx

Re: Wrapping paper, anyone ?

2009-12-16 Thread simon
On Dec 16, 9:00 pm, Peter Otten <__pete...@web.de> wrote: > simon wrote: > > Nice :) > > --- stars.py    2009-12-16 10:52:49.553505036 +0100 > +++ stars_fixed.py      2009-12-16 10:53:32.545786454 +0100 > @@ -48,7 +48,9 @@ >      def __init__(self): >          sel

Re: Wrapping paper, anyone ?

2009-12-16 Thread simon
On Dec 17, 12:36 am, r0g wrote: > Peter Otten wrote: > > simon wrote: > > > Nice :) > > > --- stars.py    2009-12-16 10:52:49.553505036 +0100 > > +++ stars_fixed.py      2009-12-16 10:53:32.545786454 +0100 > > @@ -48,7 +48,9 @@ > >    

Re: Wrapping paper, anyone ?

2009-12-16 Thread simon
On Dec 17, 2:18 am, Peter Otten <__pete...@web.de> wrote: > simon wrote: > > On Dec 16, 9:00 pm, Peter Otten <__pete...@web.de> wrote: > >> simon wrote: > > >> Nice :) > > >> --- stars.py    2009-12-16 10:52:49.553505036 +0100 > >&

Re: ftp and python

2010-04-08 Thread Simon
You could user FTP.voidcmd() E.G. ftp.voidcmd('RNFT filename.txt')ftp.voidcmd('RNTO newdir/filename.txt') >From the rfc: RENAME FROM (RNFR) This command specifies the old pathname of the file which is to be renamed. This command must be immediately followed by a "rename to" command spec

Re: Python dot-equals (syntax proposal)

2010-04-30 Thread Simon
Hay I got a better idea. If you put two dots (..) on a line by itself it means execute the previous line again! On 1 May 2010 07:08, Patrick Maupin wrote: > On Apr 30, 11:04 am, Jabapyth wrote: > > At least a few times a day I wish python had the following shortcut > > syntax: > > > > vbl.=func

install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 and various Linux Distributions. Crashes

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
Simon wrote: edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly fine with Python 2.4 (providing, TkInter and Pmw are installed). But it crashes with Python 2.6. I tried this on MacOSX11.4 and various Linux Distributions

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-12 Thread Simon
Benjamin Kaplan wrote: On Fri, Jun 12, 2009 at 9:31 AM, Simon <mailto:simon...@gmx.de>> wrote: edexter wrote: simon wrote: Hi everybody, The situation: I wrote a GUI, based on Python, TkInter and Pmw. It runs perfectly

Re: install Python-2.4.4 from source (parallel to existing Python-2.6)

2009-06-13 Thread Simon
Christian Heimes wrote: Simon schrieb: Christian Heimes wrote: Simon wrote: I installed Python-2.4.4.tar.bz2 from python.org, using gcc-4.3 (within openSUSE 11.1 x86_64) via 'make altinstall'. First, I tried to configure with the following flags: --prefix=/opt/python-24 --enable

Newbie Question regarding __init__()

2009-07-31 Thread Simon
Hi I want to create an instance of dcCursor which inherits from dcObject. When I run the following code it gives the error shown. Can some explain to me what is wrong? I have included the dcObject.py and dcCursor.py below. >>>import dcObject >>> import dcCursor >>> x = dcCursor.dcCursor() Traceb

Re: Newbie Question regarding __init__()

2009-07-31 Thread Simon
Hi So should the dcObject class include the "self" as well since I have not defined an __init__ method in dcCursor? Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie Question regarding __init__()

2009-08-01 Thread Simon
s.init_Pre().And.This.init_Exec() and the result is discarded so that is why it looks the way it does. In this form init_Exec has to return a value. However, If self.init_Pre(): self.init_Exec() would work the same and then I could avoid returning a value. Thanks, Simon On Aug 1, 5:52 am, Dave An

Re: Newbie Question regarding __init__()

2009-08-03 Thread Simon
On Aug 2, 5:51 am, Dave Angel wrote: > Simon wrote: > > Okay I will fix my code and include "self" and see what happens.  I > > know I tried that before and got another error which I suspect was > > another newbie error. > > > The idea behind the init_P

Re: Newbie Question regarding __init__()

2009-08-04 Thread Simon
On Aug 3, 11:00 pm, Dave Angel wrote: > Simon wrote: > > On Aug 2, 5:51 am, Dave Angel wrote: > > >> > >> I don't understand your comparison to Foxpro.  read on. > > >> As your code was last posted, you don't need a return value from &

Re: ANN: eGenix PyRun - One file Python Runtime 1.0.0

2012-07-02 Thread Simon Cropper
that indicates what standard libraries have been included? How can someone tell whether they would need to distribute or include any additional modules to get a script to work? -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software

Re: code review

2012-07-03 Thread Simon Cropper
appear to be discussing your code or how you could improve your code. Following the last few posts, I was wondering whether some other off-list dialog is going on or whether I am missing something. -- Cheers Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: Apology for OT posts

2012-07-05 Thread Simon Cropper
On 06/07/12 12:06, John O'Hagan wrote: On Tue, 03 Jul 2012 23:39:20 -0600 "Littlefield, Tyler" wrote: On 7/3/2012 10:55 PM, Simon Cropper wrote: Some questions to Tyler Littlefield, who started this thread. Q1 -- Did you get any constructive feedback on your code? I did ge

Re: ANN: PollyReports 1.5 -- Band-oriented PDF Report Generator

2012-07-11 Thread Simon Cropper
"will this be a problem if I use this in my work?" How compatible is your license with the main software licenses currently available? -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides --

Re: my email

2012-07-17 Thread Simon Cropper
now that you have told the world what it is. -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packa

Re: Finding duplicate file names and modifying them based on elements of the path

2012-07-18 Thread Simon Cropper
ally it will be easier for others later to work out what you have done. -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fosswor

Re: ANN: dbf.py 0.94

2012-07-20 Thread Simon Cropper
Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages http://www.fossworkflowguides.com/gis bash

PyPy, is it a 1:1 replacement for CPython?

2012-07-20 Thread Simon Cropper
are they subtle different from normal code that would make the program incompatible with the normal compiler? -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction

append in IMAP4 from imaplib very slow

2012-07-25 Thread Simon Pirschel
help me debugging the issue. Thanks, Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: append in IMAP4 from imaplib very slow

2012-07-26 Thread Simon Pirschel
On 07/26/2012 05:21 AM, Tim Chase wrote: On 07/25/12 12:47, Simon Pirschel wrote: I'm currently experimenting with IMAP using Python 2.7.3 and IMAP4 from imaplib. I noticed the performance to be very bad. I read 5000 files from a directory and append them to an IMAP INBOX. The hole procedu

Re: append in IMAP4 from imaplib very slow

2012-07-26 Thread Simon Pirschel
On 07/26/2012 09:49 AM, Simon Pirschel wrote: On 07/26/2012 05:21 AM, Tim Chase wrote: On 07/25/12 12:47, Simon Pirschel wrote: I'm currently experimenting with IMAP using Python 2.7.3 and IMAP4 from imaplib. I noticed the performance to be very bad. I read 5000 files from a director

Re: append in IMAP4 from imaplib very slow

2012-07-26 Thread Simon Pirschel
On 07/26/2012 11:25 AM, Simon Pirschel wrote: Ok, forget about the EXISTS and RECENT response. The server will response this way if you selected a mailbox, which I did in the Python code but not in the Perl code. I disabled selecting the mailbox in Python and there is no difference in the

Re: ANN: dbf.py 0.94.003

2012-07-26 Thread Simon Cropper
ds as well as a large number of fields? -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages

Re: [ANN] New paper published (Volume 7 of The Python Papers) - High-Speed Data Shredding using Python

2012-07-30 Thread Simon Cropper
the application have a project page? -- Cheers Simon Simon Cropper - Open Content Creator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides.com GIS Packages

Geneology Packages -- WAS: Looking for a good introduction to object oriented programming with Python

2012-08-08 Thread Simon Cropper
known---)" #3145 ) Since we have graduated to a completely different topic I have renamed the thread. If people are interested in a totally python-based open source FREE (as in no $$) package that can do all the above try gramps...

Re: how to call perl script from html using python

2012-08-13 Thread Simon Cropper
On 14/08/12 15:12, mullaper...@gmail.com wrote: Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez Google you question. Many solutions already exist on the Internet. -- Cheers Simon Simon Cropper

Re: how to call perl script from html using python

2012-08-13 Thread Simon Cropper
On 14/08/12 15:31, mullaper...@gmail.com wrote: On Tuesday, August 14, 2012 10:42:48 AM UTC+5:30, mulla...@gmail.com wrote: Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez Hey Simon, Thank

pylagiarism -- Need help now! Please provide code...

2012-08-13 Thread Simon Cropper
ough, I need help now, so please stop what you are doing and submit something quickly. I'm waiting... Still waiting... Hey, stop reading and get on with writing some code, I don't have all day! -- Simon Disclaimer :) Please don't flame me, I have written this with my tongue

Re: pylagiarism -- Need help now! Please provide code...

2012-08-14 Thread Simon Cropper
On 14/08/12 18:19, Peter Otten wrote: Simon Cropper wrote: Hi Everyone, I just had a great idea for a new python module. I haven't bothered googling it or doing any research. I need help putting together some code; today preferably, my boss is on my back. Can someone please contrib

Re: Haskell -> Python

2012-11-02 Thread Simon Foster
My code to calculate the "nim-value" looks like this: def nim_val( heaps ): return functools.reduce( operator.xor, heaps, 0 ) Assuming that we're playing "non-misere" Nim then a zero nim-value is a lose for the player *about* to play. Regards Simon -- http://mail.python.org/mailman/listinfo/python-list

Re: Numpy outlier removal

2013-01-06 Thread Paul Simon
"Steven D'Aprano" wrote in message news:50ea28e7$0$30003$c3e8da3$54964...@news.astraweb.com... > On Sun, 06 Jan 2013 19:44:08 +, Joseph L. Casale wrote: > >> I have a dataset that consists of a dict with text descriptions and >> values that are integers. If required, I collect the values int

Re: Fetching data from a HTML file

2012-03-23 Thread Simon Yan
uld come up with. Any suggestions are welcome! > Sangeet, I think Python comes with its own HTML parser. Can you have a look at this http://docs.python.org/library/htmlparser.html and see if it helps? > > Thanks, > Sangeet > -- > http://mail.python.org/mailman/listinfo/python-

Re: inquery

2012-04-18 Thread Simon Cropper
free and open source tools that can do this work -- e.g. GRASS, gvSIG, QGIS. All you need to do is convert the ArcMap file to something that can be used by ArcView or by one of these tools (e.g. shapefile). -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Fre

Re: Newby Python Programming Question

2012-05-14 Thread Simon Cropper
n Editor (http://pythonide.stani.be/). It and the bundled packages work really well. I note it works on Windows, Mac and Linux. -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides --

Re: Where is the most recent Tkinter information

2012-05-16 Thread Simon Cropper
/python_gui_programming.htm http://infohost.nmt.edu/tcc/help/pubs/tkinter/ http://www.tkdocs.com/tutorial/index.html http://www.ibm.com/developerworks/linux/library/l-tkprg/ -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides

Re: Looking for Python script for Vector Map simplification, preserving shape and topology

2012-05-17 Thread Simon Cropper
sort of vector file? What do you mean by simplify? etc. Of course, most likely most people python-gis bent would say check out the GDAL libraries -- http://pypi.python.org/pypi/GDAL/ -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software

GUI toolkits and dynamic table browser widget

2012-05-17 Thread Simon Cropper
croll through that data and preferably allow edits to occur. These edits could then be passed back via a string to the program for inclusion in a sql-update command. Any ideas? -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Wor

Re: GUI toolkits and dynamic table browser widget

2012-05-17 Thread Simon Cropper
On 18/05/12 14:00, Vincent Vande Vyvre wrote: On 18/05/12 02:52, Simon Cropper wrote: Hi, There has been some discussion on this list regarding GUI toolkits and it reinvigorated my search for one to meet my needs. I would like to create windows with grids (AKA rows and column of a table like

Re: serial module

2012-05-18 Thread Paul Simon
(serial.py?) with good results. Paul Simon "Ron Eggler" wrote in message news:jp6gcj$1rij$1...@adenine.netfront.net... > Hoi, > > I'm trying to connect to a serial port and always get the error > "serial.serialutil.SerialException: Port is already open." w

Re: GUI toolkits and dynamic table browser widget

2012-05-18 Thread Simon Cropper
On 19/05/12 01:09, Dennis Lee Bieber wrote: On Fri, 18 May 2012 10:52:07 +1000, Simon Cropper declaimed the following in gmane.comp.python.general: Hi, There has been some discussion on this list regarding GUI toolkits and it reinvigorated my search for one to meet my needs. I would like

Re: GUI toolkits and dynamic table browser widget

2012-05-21 Thread Simon Cropper
tarting from scratch using a maintained library/toolkit, rather than creating a hybrid system with a unmaintained project (that is unless you want to fork the project). -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Soft

wxpython using variable with wx.statictext ignores \n

2012-06-01 Thread Simon Cropper
d when I actually used a string? ...in bash you would do "$question_text". Is there comparable macro substitution in python. -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides --

Re: testing if a list contains a sublist

2011-08-20 Thread Simon Forman
tcher(a=a, b=b) m = matcher.find_longest_match(0, len(a), 0, len(b)) return m.size == len(a) Cheers, ~Simon -- http://mail.python.org/mailman/listinfo/python-list

Hello, and request for help with 'dynamic grids'

2011-09-04 Thread Simon Cropper
id during runtime so any table can be viewed? -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides Introduction http://www.fossworkf

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 05/09/11 17:19, Steven D'Aprano wrote: On Mon, 5 Sep 2011 03:18 pm Simon Cropper wrote: I am looking for the ability to create dynamic grids in a window but can't for the life of me find how to do this. What GUI toolkit are you using? I have looked at wxGlade, Boa C

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
DBC links to a SQLite database, but the driver is an un-maintained draft). I also believe that the 'base' component in libreoffice/openoffice is a java implementation not python. -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
tablished relational databases not unknown ones. -- Cheers Simon Simon Cropper - Open Content Creator / Website Administrator Free and Open Source Software Workflow Guides Introduction http://www.fossworkflowguides

Re: Hello, and request for help with 'dynamic grids'

2011-09-05 Thread Simon Cropper
On 06/09/11 00:40, alex23 wrote: On Sep 5, 3:18 pm, Simon Cropper wrote: My investigations have generally found that windows/forms/data entry screen can be created for a specific table or view, but these are hard-wired during development. Is there anyway of rapidly defining the grid during

Re: Parsing numeric ranges

2011-02-25 Thread Simon Brunning
in revision_list: if '-' in revision: from_revision, _, to_revision = revision.partition('-') for revision_in_range in range(int(from_revision), int(to_revision)+1): yield revision_in_range else: yield int(revision) -- Cheers, Simon B. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python benefits over Cobra

2011-04-05 Thread Brendan Simon
> On 05-Apr-11 06:22 AM, Brendan Simon (eTRIX) wrote: >> >> Any other arguments where Python has benefits over Cobra ?? >> >> Cheers, Brendan. >> > Two questions: > 1. Is Cobra Open Source? > 2. The blog ended on October, did he run out o

Re: Python 3.10 Fizzbuzz

2023-03-01 Thread Simon Ward
fering opinions just results in forks or wrappers that modify the behaviours that might otherwise have been configuration options. Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Baffled by readline module

2023-03-10 Thread Simon Ward
ing full screen applications.” (It doesn’t depend on readline or libedit.) It’s used by IPython for its history, editing, and completion features. If cmd with readline is overkill for your use case then this is even more so, but I thought it worth a mention. Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Distributing program for Linux

2023-03-14 Thread Simon Ward
env to install to a custom location: https://github.com/pyenv/pyenv/wiki/Common-build-problems#installing-a-system-wide-python Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Implementing a plug-in mechanism

2023-03-16 Thread Simon Ward
e defined separately not requiring inheriting from an ABC. Simon -- A complex system that works is invariably found to have evolved from a simple system that works.—John Gall -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Simon Ward
On Fri, Mar 17, 2023 at 11:55:38AM +1300, dn via Python-list wrote: Do you make use of your IDE's expansionist tendencies, and if-so, which ones? Unix (well, GNU/Linux) is my IDE ;) Simon -- https://mail.python.org/mailman/listinfo/python-list

Re: Friday finking: IDE 'macro expansions'

2023-03-17 Thread Simon Ward
me colours, with the aim of helping you see them through the flow of the code. Simon -- A complex system that works is invariably found to have evolved from a simple system that works.—John Gall -- https://mail.python.org/mailman/listinfo/python-list

ipaddress (was: Re: for a 'good python')

2023-04-21 Thread Simon Ward
On Thu, Apr 13, 2023 at 04:00:59PM +0100, Barry wrote: Ipaddress was developed outside of the std lib and later added i recall. I used it prior to it being in the standard library: https://pypi.org/project/ipaddr/ Simon -- A complex system that works is invariably found to have evolved from

need help with a ctypes project for PyPI

2021-02-03 Thread Simon Zhang
sts.txt. I think this is something basic involving paths but could be more involved. Can anyone help!! Thanks, Simon Zhang -- https://mail.python.org/mailman/listinfo/python-list

Re: Python installer hangs in Windows 7

2018-03-15 Thread simon . wonng
On Monday, December 4, 2017 at 12:44:48 PM UTC-8, christian...@gmail.com wrote: > Same with me, except that I tried to install Python 3.6.3. Unchecking > "Install launcher for all users" helped, however. This worked for me, thanks! -- https://mail.python.org/mailman/listinfo/python-list

Pyscripter Issues

2016-03-31 Thread Simon Martin
Hi I have been having issues trying to run python 3.5.1 and pyscripter 2.6. Giving the error message that it cannot initialize python. I have tried to re-install multiple versions of both python and pyscripter to no avail. Any advice? Thanks Simon Sent from Mail for Windows 10 -- https

Rate limiting a web crawler

2018-12-26 Thread Simon Connah
Hi, I want to build a simple web crawler. I know how I am going to do it but I have one problem. Obviously I don't want to negatively impact any of the websites that I am crawling so I want to implement some form of rate limiting of HTTP requests to specific domain names. What I'd like is

Re: Rate limiting a web crawler

2018-12-26 Thread Simon Connah
On 26/12/2018 18:30, Richard Damon wrote: On 12/26/18 10:35 AM, Simon Connah wrote: Hi, I want to build a simple web crawler. I know how I am going to do it but I have one problem. Obviously I don't want to negatively impact any of the websites that I am crawling so I want to implement

Re: Rate limiting a web crawler

2018-12-26 Thread Simon Connah
On 26/12/2018 19:04, Terry Reedy wrote: On 12/26/2018 10:35 AM, Simon Connah wrote: Hi, I want to build a simple web crawler. I know how I am going to do it but I have one problem. Obviously I don't want to negatively impact any of the websites that I am crawling so I want to impl

asyncio Question

2019-03-14 Thread Simon Connah
Hi, Hopefully this isn't a stupid question. For the record I am using Python 3.7 on Ubuntu Linux. I've decided to use asyncio to write a TCP network server using Streams and asyncio.start_server(). I can handle that part of it without many problems as the documentation is pretty good. I have

Python WebApp where Python runs on the client's machine using Pyodide

2019-05-21 Thread Simon Biggs
ar future once I fix up the freezing and I have also provided a few more example scripts. Cheers, Simon -- https://mail.python.org/mailman/listinfo/python-list

Would you be interested in this Python open source project?

2019-10-08 Thread Simon Connah
I'm posting this message as a way to gauge interest in the project and to see if it is worth moving forward with. There are probably hundreds of CI/CD tools out there and many more general devops tools but what I want to build is a CI/CD tool that ONLY supports Python 3.6 or greater and only ru

Re: Would you be interested in this Python open source project?

2019-10-09 Thread Simon Connah
On 08/10/2019 13:17, Rhodri James wrote: On 08/10/2019 11:22, Simon Connah wrote: I'm posting this message as a way to gauge interest in the project and to see if it is worth moving forward with. There are probably hundreds of CI/CD tools out there and many more general devops tools but

Re: Would you be interested in this Python open source project?

2019-10-09 Thread Simon Connah
tible with the Affero General Public License version 3. On the other hand I do have a desire to build something similar myself just to get the hang of things like this. Thank you for your reply. On Tue, Oct 8, 2019 at 8:33 AM Rhodri James wrote: On 08/10/2019 11:22, Simon Connah wrote:

Re: Accessing class variable at class creation time

2005-09-23 Thread Simon Percivall
It might be that I'm complicating something easy here, but I immediately thought of import sys class A: X = 2 def F(): f = sys._getframe().f_back print f.f_locals["X"] F() -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
protected is supported, python will be perfect. If *real* private and protected are *enforced*, Python will be the poorer for it. See <http://groups.google.com/group/comp.lang.python/msg/b977ed1312e10b21>. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ --

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
On 9/28/05, Simon Brunning <[EMAIL PROTECTED]> wrote: > My convention, attributes with names prefixed with a single underscore > are private. There's nothing to stop anyone using these, but, well, if > you take the back off the radio, the warranty is void. *By* convention,

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
uot; is an abuse - (__slots__ is a memory optimisation feature). -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
d protected, even in Java. CGLIB spings to mind. But you'd be wise to follow the rules, especially if you work in a team. When writing Java, I write Java. When writing Python, I write Python. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
f long, essay. That's the Martellibot for you. Never use a word where a paragraph with explanatory footnotes will do. Sigh. I miss him on c.l.py. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
e, and AFAIK both use CGLIB to modify private and protected members. I could certainly be wrong, though. Anyway, this is getting a bit OT... -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Simon Brunning
On 9/28/05, Tony Meyer <[EMAIL PROTECTED]> wrote: > That's not what the documentation says: So, either the docs are wrong, or I am. You be the judge. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Simon Brunning
for using closed source libraries, I suppose, but that wasn't my decision. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: A rather unpythonic way of doing things

2005-09-29 Thread Simon Brunning
uot;yvfc".decode("rot-13") > > or, if you prefer, > > print "yvfc".encode("rot-13") > > , in contemporary python. I'm not sure that being more comprehensible is considered a virtue in this thread, /F. ;-) -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Simon Brunning
This has happened to me more than once. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python <=> Excel question

2005-09-30 Thread Simon Brunning
On 9/30/05, Gerry Blais <[EMAIL PROTECTED]> wrote: > Finally, how can I, in Python, make a .txt version of a Word document? http://www.brunningonline.net/simon/blog/archives/001299.html -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.p

Re: bug or feature?

2005-10-05 Thread Simon Percivall
Python.org General FAQ 1.4.21: Why are default values shared between objects? (http://www.python.org/doc/faq/general.html#why-are-default-values-shared-between-objects) -- http://mail.python.org/mailman/listinfo/python-list

Re: updating local()

2005-10-06 Thread Simon Brunning
ally wanted to do it, I'd pass them all in a dictionary. -- Cheers, Simon B, [EMAIL PROTECTED], http://www.brunningonline.net/simon/blog/ -- http://mail.python.org/mailman/listinfo/python-list

Re: updating local()

2005-10-06 Thread Simon Brunning
'whatever']... > > dont you think? Err, no, not really. ;-) If you'd prfefer to access them like this: variables.whatever Check out the Bunch class here - <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52308>. -- Cheers, Simon B, [EMAIL PROTECTED], http://w

Re: Python interpreter bug

2005-10-07 Thread Simon Percivall
Why would it be a bug? You've made it so that every instance of OBJ is equal to every other instance of OBJ. The behaviour is as expected. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >