Re: [Baypiggies] Class decorator to capture the creation and deletion of objects

2014-02-24 Thread Jacob Alheid
— Sent from Mailbox for iPad On Mon, Feb 24, 2014 at 8:49 PM, David Lawrence wrote: > If as according to the docs, there is no guarantee of __del__ being called, > anything that relies on that seems unsafe (depending on how robust one > needs the solutions to be). Solutions I've seen elsewhere

Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
ure about industry specific use of different languages/platforms. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
- Original Message - From: [email protected] To: [email protected] Cc: [email protected] Sent: Wednesday, March 11, 2015 4:10 PM Subject: RE: Re: I want to get involved with Python! > Jacob, thanks for replying. The IT job market is s specific in what t

Re: Automation of Windows app?

2015-03-22 Thread Jacob Kruger
omatically, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing a python editor for blind developers

2015-07-06 Thread Jacob Kruger
help with feedback, etc., and can also put you in touch with various other blind developers who do also work with python, etc. For example, AFAIK, the primary blind programmers mailing list is [email protected], and besides me, there are a few other python developers on that list as well. Stay we

Help with Flask (database stage of the Flask Mega Tutorial by Miguel Grinberg)

2015-08-14 Thread Jacob MacRitchie
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database I've just finished making db_create.py (you can ctrl+f to it) and am getting... from migrate.versioning import api ImportError: No module named 'migrate' ...I diffed everything at this stage of the tutorial so I know I

Python IDLE won't start

2015-09-27 Thread Jacob Chaar
Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar -- https://mail.python.org/ma

Paramiko Question

2011-11-03 Thread Jacob Abraham
self.transport.close() self.live = False def __del__(self): self.close() if __name__ == '__main__': a= Connection('ip_or_hostname', 'root', '') print a.execute('version') print a.execute('version'

Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
I have a problem which ought to have an obvious solution, but I haven't found one despite searching for many hours. The problem occurs on Windows. This is a version of my problem reduced to its essentials: I have a file foo.py:: import bar and a file bar.py : baz = 42 If I store these two fi

Re: Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén > > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >

Re: Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén > > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >

newbie: generate a function based on an expression

2005-12-12 Thread Jacob Rael
Hello, I would like write a function that I can pass an expression and a dictionary with values. The function would return a function that evaluates the expression on an input. For example: fun = genFun("A*x+off", {'A': 3.0, 'off': -0.5, 'Max': 2.0, 'Min': -2.0} ) >>> fun(0) -0.5 >>> fun(-10) -

Re: newbie: generate a function based on an expression

2005-12-13 Thread Jacob Rael
Overall I am trying to learn OOP by porting CppSim (http://www-mtl.mit.edu/~perrott) to Python. In CppSim, classes are defined that allow various functions to be defined, like amplifiers. In some cases they are linear: y = A*x some have offsets: y = A*x + off some are non-linear y = A*x - C*x

Re: newbie: generate a function based on an expression

2005-12-13 Thread Jacob Rael
Another example is a filter. From the CppSim doc: Filter filt("1+1/(2*pi*fz)s","C3*s + C3/(2*pi*fp)*s^2","C3,fz,fp,Ts",1/gain,fz,fp,Ts); jr -- http://mail.python.org/mailman/listinfo/python-list

Help designing reading/writing a xml-fileformat

2005-12-13 Thread Jacob Kroon
I'm writing a block-diagram editor, and could use some tips about writing/reading diagrams to/from an xml file format. The basic layout of my code : class Diagram { Blocks blocks[] } class Block { int x, y } class Square(Block) { int width, height } class Circle(Block) { int ra

Re: newbie: generate a function based on an expression

2005-12-14 Thread Jacob Rael
Thanks for all the suggestions and comments!! I will try all those suggestions just to I can figure out how they work. For phase 1 of this project, I will probably go with the eval. thanks again, happy hacking... jr -- http://mail.python.org/mailman/listinfo/python-list

mod_python + vampire file upload not working

2005-12-18 Thread jacob . miles
I'm trying to implement a file upload using vampire on top of mod_python, using vampire's publisher. My form has an input that looks like: and in ImageAdmin.py I define the uploadFile function: def uploadFile (req, uploadFile=None): # etc. the problem is that when this function is call

Re: parsing engineering symbols

2005-12-21 Thread Jacob Rael
Just a newbie, trolling. I like this solution. Simple, easy to understand. Did you put the SI_prefixes outside the def so you could wrap the whole thing in a module and reuse it in other blocks? jr -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing engineering symbols

2005-12-21 Thread Jacob Rael
Wow!! 261 v. 75 lines!! jr -- http://mail.python.org/mailman/listinfo/python-list

Re: python coding contest

2006-01-01 Thread Jacob Hallen
guage. If you want to provide an alternative to solving crossword puzzles or mega-hard Sudoku's for the Christmas holiday, I'd say this is spot on. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

SQLObject connection/transaction blowing up

2006-01-14 Thread jacob . miles
I'm trying to connect to a mysql database, with autoCommit and caching off, and I'm trying to create a transaction. Why does this blow up? >>> from sqlobject import * >>> connectionString = 'mysql://[EMAIL >>> PROTECTED]/mc_image_library_dev?cache=&autoCommit=' >>> connection = connectionForURI

SQLObject connection pooling

2006-01-14 Thread jacob . miles
Hello. Does SQLObject provide connection pooling? If so, is it automatic or do I have to do something to manage it? If not, how do people generally solve this problem? Thanks for any help. - Jake -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLObject connection/transaction blowing up

2006-01-14 Thread jacob . miles
No - I want autoCommit to be false. It defaults to true. SQLObject's documentation says to leave the value blank for false, and to specify any non-blank value for true. Is the SQLObject documentation wrong? Should I specify autoCommit=0? -- http://mail.python.org/mailman/listinfo/python-list

mod_python apache directives

2006-01-18 Thread jacob . miles
Hello. I want to create a catch-all python script, that gets called for any file request in a certain directory. I thought this apache setup would do it, but it doesn't: SetHandler mod_python PythonHandler handler PythonDebug On Options -MultiViews -Indexes Fo

Re: Python component model

2006-11-12 Thread Jacob Hallen
ism for events, they have to be custom built for each component framework and should therefore be part of the framework distribution. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Don't use __slots__ (was Re: performance of dictionary lookup vs. object attributes)

2006-08-27 Thread Jacob Hallen
uld be abusing the metaclasses and the static typing weenies should be abusing decorators, since in Python,there should be only one obvious way of doing something. Making CPython smart enough to handle saving space without __slots__ is a a major undertaking, which is probably why it is not on the list of changes for P3k (yet). Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading GDSII layouts

2006-11-28 Thread Jacob Rael
Funny, I started writing one this past weekend as a learning exercise (handling large files and start to use classes). If ipkiss does not work out, let me know specifically what you need and maybe my hack will work. jr Vincent Arnoux wrote: > Hello, > I am looking for a library for reading GDSII

Simple text parsing gets difficult when line continues to next line

2006-11-28 Thread Jacob Rael
Hello, I have a simple script to parse a text file (a visual basic program) and convert key parts to tcl. Since I am only working on specific sections and I need it quick, I decided not to learn/try a full blown parsing module. My simple script works well until it runs into functions that straddle

Re: Simple text parsing gets difficult when line continues to next line

2006-11-28 Thread Jacob Rael
Thanks all. I think I'll follow the "don't do that" advice. jr Jacob Rael wrote: > Hello, > > I have a simple script to parse a text file (a visual basic program) > and convert key parts to tcl. Since I am only working on specific > sections and I need it quick

HTTP or alternative upload for large files

2006-12-18 Thread Jacob Mathew
Hay Robin.. I am Jacob Mathew.. Doing some research in large file uploads for my project. I got your matured skills and ability to do programs for upload huge files. In fact I am a kid in programming, I cannot think to write such a god program. Will you able to share your uploading script with

Re: Twisted book opinions?

2006-02-18 Thread Jacob Hallen
in the web examples is very primitive. You should be using Stan (a very Pythonic DOM) instead of the explicit strings that are used throughout the book. Fortunately there is an on-line tutorial for Stan, which is very good. http://www.kieranholland.com/code/documentation/nevow-stan/ Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Europython update

2005-05-05 Thread Jacob Hallen
This is a news update about the Europython 2005 conference, to be held in Göteborg, Sweden 27-29 June - Due to some technical prolems with the registration website we have decided to extend the registration of talks until 8 May. We already have an impressive array of talks, but we do have room

Europython update

2005-05-12 Thread Jacob Hallen
This is a news update about the Europython 2005 conference, to be held in Göteborg, Sweden 27-29 June - We have received a very nice array of talks this year, and we expect to be the biggest Python conference ever in terms of subjects covered. Many thanks to all the speakers who are putting t

Optimise Europython competition

2005-05-15 Thread Jacob Hallen
A classic dilemma for conferences is that if you have many tracks, you may find that all of a sudden, a room is swamped, and there is a queue of people wanting to get in. Another problem is that you risk scheduling talks against each other that have a very large set of interested people in common.

Binding the names in a module in a class instance

2005-05-22 Thread Jacob H
) (module "all_the_stuff") ...define a bunch of stuff... (module "main") exec open("all_the_stuff.py").read() in globals.container.__dict__ I feel uneasy about this method. I foresee bad namespace clashes. What's a better way? :) Thanks in advance, Jacob

Re: Optimise Europython competition

2005-05-23 Thread Jacob Hallen
In article <[EMAIL PROTECTED]>, Carl Friedrich Bolz <[EMAIL PROTECTED]> wrote: >Jacob Hallen wrote: >> 2. A track should be continuous. Each track that is continuous gives you >>10 points. > >What exactly do you mean by "continuous track"? Conti

Europython update

2005-06-15 Thread Jacob Hallen
o get started." "We hope that many more people will register, now that the schedule is set", comments Jacob Hallén, the conference head organiser. "We have had an unusual procedure, where the early registrants have told us their interests in the different talks. This has provided

Re: ten small Python programs

2007-06-08 Thread Jacob Hallen
In article <[EMAIL PROTECTED]>, Steve Howell <[EMAIL PROTECTED]> wrote: >I've always thought that the best way to introduce new >programmers to Python is to show them small code >examples. Something like this: http://www.lava.se/sam/ Jacob Hallén -- -- http

ANN: parley 0.3

2007-07-22 Thread Jacob Lee
. Code samples, documentation, and source code can be found at the PARLEY home page: http://osl.cs.uiuc.edu/parley/ PARLEY is licensed under the LGPL. -- Jacob Lee <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Erlang style processes for Python

2007-05-09 Thread Jacob Lee
s within a single process, though one can choose to use either tasklets or threads. My next goal is to figure out I/O, at which point I get to tackle the fun question of distribution. So far, I've not run into any cases where I've wanted to change the interpreter, though I'd be interested in hearing ideas in this direction (especially with PyPy as such a tantalizing platform!). -- Jacob Lee <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

ANN: parley 0.2

2007-05-10 Thread Jacob Lee
de samples, documentation, and source code can be found at the PARLEY home page: http://osl.cs.uiuc.edu/parley/ PARLEY is licensed under the LGPL. -- Jacob Lee <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Erlang style processes for Python

2007-05-10 Thread Jacob Lee
only works with threads and doesn't communicate across processes. I definitely used Candygram as a reference point when determining what features to hoist from Erlang. -- Jacob Lee <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: Erlang style processes for Python

2007-05-10 Thread Jacob Lee
t;> to use either tasklets or threads. My next goal is to figure out I/O, at >> which point I get to tackle the fun question of distribution. >> >> So far, I've not run into any cases where I've wanted to change the >> interpreter, though I'd be intereste

Configure apache to run python scripts

2007-07-22 Thread joe jacob
I need to configure apache to run python scripts. I followed the steps mentioned in this site (http://www.thesitewizard.com/archive/ addcgitoapache.shtml). But I am not able to run python scripts from Firefox, I got a forbidden error "you do not have permission to access the file in the server

Re: Configure apache to run python scripts

2007-07-23 Thread joe jacob
On Jul 23, 4:42 pm, Bruno Desthuilliers wrote: > joe jacob a écrit : > > > I need to configure apache to run python scripts. I followed the steps > > mentioned in this site (http://www.thesitewizard.com/archive/ > > addcgitoapache.shtml). But I am not able to run python

Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added AddHandler mod_python .py PythonHandler mptest PythonDebug On 2. Then I added the line "LoadModule python_module modules/ mod_python.s

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
On Aug 13, 9:44 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Aug 13, 5:16 am, joe jacob <[EMAIL PROTECTED]> wrote: > > > > > I configured apache to execute python scripts using mod_python > > handler. I followed below mentioned steps to configure a

Add readline capability to existing interactive program

2007-03-14 Thread Jacob Rael
Hello, I use an interactive simulator/data plotter called ocean. I get really frustrated using it because it does not have basic readline capabilities like ctrl-a for beginning of line and ctrl-k to kill the rest of the line. I was thinking this might be easy to add with Python. Do something like

Re: PyPy 1.0: JIT compilers for free and more

2007-03-30 Thread Jacob Hallen
d flexibility and ease of use. I personally think that PyPy is about to break out of the tradeoff and bring it to another level. I know that I am biased, having been involved with the project from the start, but I think that it is the most interesting work in CS in many years. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

c_string missing from ctypes?

2007-02-23 Thread Jacob Rael
Hello, I was following along with this site: http://www.brunningonline.net/simon/blog/archives/000659.html and I got a error. It boils down to: In [9]: import ctypes In [10]: dir(ctypes.c_string) ---

Python web frameworks

2007-11-20 Thread joe jacob
There are a lot of web frameworks for python like django, mod_python, spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms of performance and ease of study. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python web frameworks

2007-11-21 Thread joe jacob
On Nov 21, 10:15 am, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > On Nov 21, 1:37 pm, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > > > > > On Nov 20, 3:39 pm, Graham Dumpleton <[EMAIL PROTECTED]> > > wrote: > > > > This only holds if actually hosted on Apache. As Django these days > > > supports

Re: Python web frameworks

2007-11-23 Thread joe jacob
On Nov 21, 10:27 pm, Steven Bethard <[EMAIL PROTECTED]> wrote: > Jeff wrote: > > On Nov 21, 6:25 am, Bruno Desthuilliers > [EMAIL PROTECTED]> wrote: > >> joe jacob a écrit : > >> (snip) > > >>> Thanks everyone for the response. From the posts

Re: Python too complex ?!?!?!

2007-12-08 Thread Jacob Hallen
s your problem. You did not have the skills required to do the job. When you fail to install third party software, like Python, this is percieved to be a problem with the software package. The people building it did not have the skills required to do the job properly. Microsoft has this teflon effect. Never their fault that things do not work as expected. Jacob -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Using a browser as a GUI: which Python package

2006-05-01 Thread Jacob Rael
I am looking for the samething. I was thinking of Karrigell. http://karrigell.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: XOR encryption

2008-01-18 Thread joe jacob
On Jan 18, 4:11 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On Fri, 18 Jan 2008 03:06:51 -0800, joe jacob wrote: > > I wrote a python script to perform XOR encryption on a text and write > > the encrypted text to a file. But when I try to read the

XOR encryption

2008-01-18 Thread joe jacob
I wrote a python script to perform XOR encryption on a text and write the encrypted text to a file. But when I try to read the file as the encrypted text contains an EOF in between the file is read only to the first EOF and remaining part of the text is not read. I used the text "hello world" and

wxpython

2008-01-23 Thread joe jacob
I am trying to open a file containing non displayable characters like contents an exe file. The is is with the below mentioned code: self.text_ctrl_1.SetValue(file_content) If the file_content contains non displayable characters I am getting an error like this: Traceback (most recent call last):

Designing website

2008-01-24 Thread joe jacob
Hi All, I am planning to design a website using windows, apache, mysql, python. But I came to know that python cgi is very slow. I came across mod_python also but no good documentation are available for learning mod_python. Suggest me a good solution for this as I don't know other languages like P

Re: wxpython

2008-01-24 Thread joe jacob
oin ( > >>chr (random.randint (0, 255)) for i in range (1000) > >> ) > >> munged_text = "".join ( > >> c if 32 <= ord (c) <= 126 else hex (ord (c)) for c in file_content > >> ) > > >> print repr (file_content) > >

usenet problem

2008-02-20 Thread Jacob Davis
Hi. I am a newbie to usenet. I am using mac and have downloaded a free usenet client, "MT-NewsWatcher". I put in comp.lang.python but it says that it cannot get the address of the news server host. My config says it is trying on port 119. Thanks for any help. Jake -- http://mail.python.

Boa Constructor Mac crash when adding menubar

2008-02-20 Thread Jacob Davis
hi. Every time I go through the Boa Constructor tutorial and I get to the "Add a Menu Bar" section, Boa Constructor crashes after I select a wx.menubar and then left click either in the Data or design frames. I saw a post on the internet from the usenet about this very question, but was fro

wxPython Plot always comes to focus on redraw

2008-02-21 Thread Jacob Davis
Hi. I am using wxPython, and I have a frame that has a notebook in it. there are 3 pages in the notebook, 2 of which are Panels and 1 of which is a PlotCanvas. The data for the plot changes when I press a button that is in the frame, but not in the notebook (as designed). the button als

graphing/plotting with python and interface builder

2008-02-22 Thread Jacob Davis
Hi. I am developing for mac and using Xcode and Interface Builder 3.0. I can make a simple application, but I am having a hard time trying to figure out a good way to create a graph or plot for a class project. Does anybody have any tips on where to get started, or on how to do this? I ha

Re: wxPython Plot always comes to focus on redraw

2008-02-22 Thread Jacob Davis
the error in the future... On Feb 21, 2008, at 6:14 AM, Mike Driscoll wrote: > On Feb 21, 2:57 am, Jacob Davis <[EMAIL PROTECTED]> wrote: >> Hi. >> >> I am using wxPython, and I have a frame that has a notebook in it. >> there are 3 pages in the notebook, 2 of w

Re: wxPython Plot always comes to focus on redraw

2008-02-22 Thread Jacob Davis
think I will try the wxPython list. Thanks Jake On Feb 21, 2008, at 4:36 AM, Steve Holden wrote: > Jacob Davis wrote: >> Hi. >> >> I am using wxPython, and I have a frame that has a notebook in it. >> there are 3 pages in the notebook, 2 of which are Panels and 1

Re: graphing/plotting with python and interface builder

2008-02-23 Thread Jacob Davis
with PyObjC (a language which I don't know). Thanks Jake On Feb 22, 2008, at 10:30 PM, Peter Wang wrote: > On Feb 22, 10:08 pm, Jacob Davis <[EMAIL PROTECTED]> wrote: >> Hi. >> >> I am developing for mac and using Xcode and Interface Builder 3.0. I >> c

Re: graphing/plotting with python and interface builder

2008-02-23 Thread Jacob Davis
Jake On Feb 23, 2008, at 5:54 AM, Diez B. Roggisch wrote: > Jacob Davis schrieb: >> Hi. >> >> I am developing for mac and using Xcode and Interface Builder 3.0. I >> can make a simple application, but I am having a hard time trying to >> figure out a good way

Re: Psyco alternative

2008-05-18 Thread Jacob Hallen
efactoring has been finished and the results look very good, there are still many months of work to do before the JIT can be used in production. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-24 Thread Jacob Hallen
27;t think I'd buy software today unless I know that it has been built using TDD. Certainly I am ahead of the curve in this, but it won't be long before this will be required by skilled organisations buying software and sooner or later the rest of the world will follow. Getting into a TDD mindset is hard work, but those who succeed produce better software with less effort. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-06-02 Thread Jacob Hallen
nasty bugs are found - the ones where your thinking went wrong but your implementation is correct. if the testers are busy tracking trivial bugs, your customers will find the nasty one. If you are lucky, they will tell you. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

deleting objects by finding all references and deleting?

2008-06-08 Thread Jacob Davis
Hi, I read in some earlier messages that an object in Python is only removed or freed from memory when all references to that object have been deleted. Is this so? If so, is there a way to get all of the references to an object, so that they may all be deleted, thus actually deleting the

Module not found in script that was found in command-line interpreter. Possible Path issue?

2008-04-02 Thread Jacob Davis
Hi. I just installed the MySQLdb module and I have been able to get it to run in my command line interpreter. I am running Mac Leopard, and Python 2.5. I have tested importing and actually connecting and using a MySQL database, although it issues some warning: SnakeBite:MySQL-python-1.2

Re: Module not found in script that was found in command-line interpreter. Possible Path issue?

2008-04-15 Thread Jacob Davis
On Apr 3, 2008, at 10:54 AM, Trent Mick wrote: > Jacob Davis wrote: >> I just installed the MySQLdb module and I have been able to get it >> to run in my command line interpreter. I am running Mac Leopard, >> and Python 2.5. >> I have tested importing and actually c

Can't see variables declared as global in a function

2008-04-16 Thread Jacob Davis
Hi. I have a hundred lines of code in a module that declare some global variables inside a function so that those variables can be used by other functions. I want to import this module so that I can more easily debug by looking at the value of individual variables. But when I try to rea

Python cleanup on exit

2006-03-10 Thread Jacob Kroon
d of the scripts, or make sure that all objects get created in a function scope, so that python will delete them for me when the interpreter exits the scope. Is there another way to make python delete objects which were created in the global scope upon exit ?

Generating exceptions from C

2006-03-18 Thread Jacob Kroon
ould I do that ? I never have a pointer to the exception instance, just the class. --Jacob -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating exceptions from C

2006-03-18 Thread Jacob Kroon
. If I am supposed to attach it to the exception instance, how would > I do that ? I never have a > pointer to the exception instance, just the class. As said previously, there is never an instance of the exception, data is passed in the "value" argument. Does the comments

Re: Generating exceptions from C

2006-03-18 Thread Jacob Kroon
tiation is done implicitly: > > raise SomeException, msg > > Ah ok, so it is created, automatically, but I guess I never have to handle the instance in the C code. Thanks --Jacob -- http://mail.python.org/mailman/listinfo/python-list

skip item in list "for loop"

2006-04-14 Thread Jacob Rael
I am new to python and I love it. I am hacking a file. I want to not print a line if it contains the word 'pmos4_highv'. I also don't want to print the next line. The following code works but it "smells bad" and just doesn't look right. I was reading about generators. If I was using one, I could do

Re: skip item in list "for loop"

2006-04-14 Thread Jacob Rael
Thanks for the suggestions. The solution I liked most was to prevent the lines from appearing in the first place!! -- http://mail.python.org/mailman/listinfo/python-list

Re: PiCloud Beta Release

2009-11-05 Thread Jacob Shaw
On Nov 1, 5:13 pm, Ken Elkabany wrote: > Hello, > > PiCloud has just released a Python library, cloud, which allows you to > easily offload the execution of a function to a cluster of servers > running on Amazon Web Services. As a beta product, we are currently > free to all users who sign up with

Re: Efficient python 2-d arrays?

2011-01-20 Thread Jacob Biesinger
On Thu, Jan 20, 2011 at 12:48 PM, Dan Stromberg wrote: > On Thu, Jan 20, 2011 at 11:36 AM, Jake Biesinger > wrote: >>> Thanks for the great suggestions! >> >> On a related note, is there no way to efficiently sort a python array? >> >> > x = array('f', xrange(1000)) > x.sort() >>

Paramiko and Threading

2010-09-29 Thread Jacob Abraham
Hi, Could someone help me understand how to using threading along with paramiko. For some reason only one of two of the threads returns the output correctly. Some of the threads returns an empty string as command output, but no errors are thrown. My attempt is pasted below. regards, Jacob

Parse date

2006-01-12 Thread Jacob Friis Saxberg
Hi.How do I parse a date like "2006-01-12T09:05:08+02:00"?I'd like to parse it into the local time for my server.Thanks.Jacob -- http://mail.python.org/mailman/listinfo/python-list

Help wanted

2005-05-17 Thread Jacob van Iwaarden
e to add , edit, search and show and delete Items. Thanks in advance Jacob -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycon disappointment

2008-03-16 Thread Jacob Kaplan-Moss
ped plan and run the lightning talks this year and last) was that last year the sponsor talks were at a separate time, and clearly labeled as "Sponsor Lightning Talks". A *lot* of folks still showed up, and they didn't feel lied-to when they got product or company pitches. Jacob -- http

Re: Pycon disappointment

2008-03-16 Thread Jacob Kaplan-Moss
e had been sold. Tell me about it. I felt like crap putting up a sign-up sheet with four names on it. Again, thanks for your harsh words, Bruce. Needed to be said. Jacob -- http://mail.python.org/mailman/listinfo/python-list

Re: Pycon disappointment

2008-03-17 Thread Jacob Kaplan-Moss
On Mar 17, 2:52 pm, Dianne Marsh <[EMAIL PROTECTED]> wrote: > I'm bummed about the lightning talks at PyCon from 2008, but I have a > lot of confidence based on what I have read here from Jacob and > others, that things will be different in 2009. They will! This year'

PyCon 2009: Call for sprint projects

2009-02-09 Thread Jacob Kaplan-Moss
s/. If you have any questions, feel free to contact me directly. Thank you very much, and happy coding! Jacob Kaplan-Moss -- http://mail.python.org/mailman/listinfo/python-list

Python 3.11.5 Pip Issue

2023-09-14 Thread Jacob Keeler via Python-list
I downloaded Python 3.11.5, and there was nothing in the “Scripts” file, and there was no Pip. I would like to know why. Thank you, Jacob -- https://mail.python.org/mailman/listinfo/python-list

Re: SQL rollback of multiple inserts involving constraints

2023-11-10 Thread Jacob Kruger via Python-list
Think performing a session/transaction flush after the first two inserts should offer the workaround before you've committed all transaction actions to the database finally: https://medium.com/@oba2311/sqlalchemy-whats-the-difference-between-a-flush-and-commit-baec6c2410a9 HTH Jacob K

No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-13 Thread Jacob Kruger via Python-list
flet.dev/docs/guides/python/deploying-web-app/progressive-web-apps/> -- Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-14 Thread Jacob Kruger via Python-list
- the one included here in flet seemed 'nicer': https://beeware.org/project/projects/libraries/toga/ But, haven't taken time to really take it much further than just a bit of playing around so far. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile.

Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-05 Thread Jacob Kruger via Python-list
anks if you have any ideas/thoughts on the matter Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
from scratch seems to then ignore the global scope specified in the first line inside the function? Hope this makes more sense Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/05 20:23, dn via Python-list wrote: Jacob, Please reduce the prob

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
e function? Unless this is something that changed from 3.11 to 3.12 - since that snippet is more or less referring to 3.12, but, don't think it was changed in any way? Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 14:5

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
ss? So, yes, know this comes across like some form of a scam/joke, or list-garbage, since it doesn't make any sense to me at all, but still just wondering if missing something, or should I shift over to 3.12 to see if if works differently, or just try reinstalling 3.11 from scratch, or should I re

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
nt(dt_expiry) 1970-01-01 00:00:00+00:00 >>> print(id(dt_expiry)) 1808577867152 >>> ---end session--- As in, the two different ID values are being returned outside and inside the function, whereas, if I included that bit inside the interpreter while typing code manually, chances are th

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
, via command line - generally working with flask, and/or other forms of command line interaction, most of the time. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 17:39, Roel Schroeven via Python-list wrote: Op 6/03/2024 om 13:55 schre

<    1   2   3   >