Re: Is massive spam coming from me on python lists?

2008-04-21 Thread Sjoerd Mullender
On 2008-04-21 08:01, Brian Vanderburg II wrote: > I've recently gotten more than too many spam messages and all say > Sender: [EMAIL PROTECTED] I'm wondering > if my mail list registration is now being used to spam myself and > others. If so, sorry, but I'm not the one sending messages if othe

Re: Conditional for...in failing with utf-8, Spanish book translation

2008-04-21 Thread Stefan Behnel
Hunter wrote: > I've narrowed the problem down to a simple test program. Check this out: > > --- > > # -*- coding: utf-8 -*- > > acceptable = "abcdefghijklmnopqrstuvwxyzóíñú" # this line will work > acceptable = "abcdefghijklmnopqrstuvwxyzóíñúá" # this line won't [bad words stripped] this shou

Elementtree find problem

2008-04-21 Thread Mike Slinn
The following short Python program parses a KML file and displays the names of all Marks and Routes: from elementtree.ElementTree import ElementTree tree = ElementTree(file='test.kml') kml = tree.getroot() ns = 'http://earth.google.com/kml/2.1' for folder in kml.findall("{%s}Folder/{%s}Folder/{%s

Re: Is massive spam coming from me on python lists?

2008-04-21 Thread Mark Shroyer
In article <[EMAIL PROTECTED]>, Brian Vanderburg II <[EMAIL PROTECTED]> wrote: > I've recently gotten more than too many spam messages and all say > Sender: [EMAIL PROTECTED] I'm wondering > if my mail list registration is now being used to spam myself and > others. If so, sorry, but I'm not

Re: Is massive spam coming from me on python lists?

2008-04-21 Thread Torsten Bronger
Hallöchen! Sjoerd Mullender writes: > On 2008-04-21 08:01, Brian Vanderburg II wrote: > >> I've recently gotten more than too many spam messages and all say >> Sender: [EMAIL PROTECTED] [...] > > That is just mailman (the mailing list software) keeping track of > things. By the way, why does ma

lost sourcecode: decompyle?

2008-04-21 Thread Torsten Bronger
Hallöchen! Due to erroneous use of my VCS, I lost my revision of yesterday. All I have are the pyc v2.5 files. Unfortunately, decompyle can only handle v2.3. Can one convert this, e.g. by de-assembling, manual tweaking, and re-assembling? The result must not be perfect since I still have most c

Re: Elementtree find problem

2008-04-21 Thread Stefan Behnel
Mike Slinn wrote: > The following short Python program parses a KML file and displays the > names of all Marks and Routes: > > from elementtree.ElementTree import ElementTree > tree = ElementTree(file='test.kml') > kml = tree.getroot() > ns = 'http://earth.google.com/kml/2.1' > for folder in kml.f

Re: Is massive spam coming from me on python lists?

2008-04-21 Thread Sjoerd Mullender
Torsten Bronger wrote: > Hallöchen! > > Sjoerd Mullender writes: > >> On 2008-04-21 08:01, Brian Vanderburg II wrote: >> >>> I've recently gotten more than too many spam messages and all say >>> Sender: [EMAIL PROTECTED] [...] >> That is just mailman (the mailing list software) keeping track of

cracked skin on fingers

2008-04-21 Thread mccle27252
cracked skin on fingers http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

ulead gif animator 5 crack

2008-04-21 Thread mccle27252
ulead gif animator 5 crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

pes 6 stadium patch download

2008-04-21 Thread mccle27252
pes 6 stadium patch download http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

utu conductor patch

2008-04-21 Thread mccle27252
utu conductor patch http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

mystery case files huntsville 1.6 keygen

2008-04-21 Thread mccle27252
mystery case files huntsville 1.6 keygen http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

spy sweeper 5.5 crack serial

2008-04-21 Thread mccle27252
spy sweeper 5.5 crack serial http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: Pickle problem

2008-04-21 Thread Mario Ceresa
Dear Jerry and George: it works like a charm! I always thought that the first way was a quicker alternative to defining the init method... shame on me! >From now on I'll read the list every day repeating to myself: "Premature optimization is the root of all evil", "Premature optimization is the ro

Re: question about the mainloop

2008-04-21 Thread Bruno Desthuilliers
globalrev a écrit : > in C?? java etc there is usually: > > procedure 1 > procedure 2 > procedure 3 > > main { > procedure 1 > procedure 2 > procedure 3 > } > > i dont get the mainloop() in python. The 'main' function (resp. method) in C and Java has nothing to do with a "mainloop" - it's jus

sys.maxint in Python 3

2008-04-21 Thread bearophileHUGS
In some algorithms a sentinel value may be useful, so for Python 3.x sys.maxint may be replaced by an improvement of the following infinite and neginfinite singleton objects: class Infinite(object): def __repr__(self): return "infinite" def __cmp__(self, other): if other is infinit

Re: sys.maxint in Python 3

2008-04-21 Thread Christian Heimes
[EMAIL PROTECTED] schrieb: > In some algorithms a sentinel value may be useful, so for Python 3.x > sys.maxint may be replaced by an improvement of the following infinite > and neginfinite singleton objects: Python 3.0 doesn't have sys.maxint any more since Python 3's ints are of arbitrary length.

Re: Python and Db

2008-04-21 Thread Magnus Lycka
> <[EMAIL PROTECTED]> escribió: > >> I would like to use sqlite, But I also wanted a tutorial with the >> basis of the sql and etc, I never dealed with dbs before For practicing SQL on-line, I'd suggest sqlzoo.net. -- http://mail.python.org/mailman/listinfo/python-list

Re: manipulating class attributes from a decorator while the class is being defined

2008-04-21 Thread Bruno Desthuilliers
Wilbert Berendsen a écrit : > Hi, is it possible to manipulate class attributes from within a decorator > while the class is being defined? > > I want to register methods with some additional values in a class attribute. > But I can't get a decorator to change a class attribute while the class i

Re: manipulating class attributes from a decorator while the class is being defined

2008-04-21 Thread Duncan Booth
Wilbert Berendsen <[EMAIL PROTECTED]> wrote: > Hi, is it possible to manipulate class attributes from within a > decorator while the class is being defined? > > I want to register methods with some additional values in a class > attribute. But I can't get a decorator to change a class attribute >

Opposite of repr() (kind of)

2008-04-21 Thread Guillermo
Hi there, How can I turn a string into a callable object/function? I have a = 'len', and I want to do: if callable(eval(a)): print "callable", but that doesn't quite work the way I want. :) Regards, Guillermo -- http://mail.python.org/mailman/listinfo/python-list

Python-URL! - weekly Python news and links (Apr 21)

2008-04-21 Thread Gabriel Genellina
QOTW: "But people will always prefer complaining on the grounds of insufficient information to keeping quiet on the basis of knowledge." - Steve Holden http://groups.google.com/group/comp.lang.python/msg/007b9fea0a5db786 Speed of Python vs C when reading, sorting and writing data:

Invicta 3284 Swiss Quartz Ladies Watch - Replica Watch Fake

2008-04-21 Thread blog553
Invicta 3284 Swiss Quartz Ladies Watch - Replica Watch Fake Invicta 3284 Swiss Quartz Ladies Watch Link : http://www.watchesprice.net/Replica-Invicta-17515.html Replica Watches Home : http://www.watchesprice.net/ Replica Invicta Brands : http://www.watchesprice.net/Invicta-Replica.html Replica In

Re: "Help needed - I don't understand how Python manages memory"

2008-04-21 Thread Andrew MacIntyre
Hank @ITGroup wrote: > In order to deal with 400 thousands texts consisting of 80 million > words, and huge sets of corpora , I have to be care about the memory > things. I need to track every word's behavior, so there needs to be as > many word-objects as words. > I am really suffering from th

Re: Alternate indent proposal for python 3000

2008-04-21 Thread Paul Boddie
On 21 Apr, 00:54, Dan Bishop <[EMAIL PROTECTED]> wrote: > > We wouldn't even need that. Just a new source encoding. Then we > could write: > > # -*- coding: end-block -*- [...] Someone at EuroPython 2007 did a lightning talk showing working code which provided C-style block structuring using th

Re: How to insert multiple rows in SQLite Dbase

2008-04-21 Thread afandi
On Apr 1, 12:22 am, afandi <[EMAIL PROTECTED]> wrote: > On Mar 30, 4:46 am, Gerhard Häring <[EMAIL PROTECTED]> wrote: > > > > > Gabriel Genellina wrote: > > > [...] > > > and execute: > > > cur.executemany("insert into log (IP, EntryDate, Requestt, ErrorCode) > > > values (:ip, :date, :request, :er

PIL font encoding

2008-04-21 Thread Laszlo Nagy
def getfnt(size): return ImageFont.truetype("cartoon.ttf",size,encoding='unic') Using the above function, I cannot draw special german characters. E.g. u'L\xfctgendorf' It will print "Lutgendorf" instead of "Lütgendorf". Much more interesting is that I can also do this: def getfnt(size):

Required Python Consultants

2008-04-21 Thread Ramesh Nathan
Hi, I am looking for Python consultants to work with us for couple of months. The location is Bangalore, India. Anybody interested, please contact me. With warm regards, Ramesh Nathan, Head - Business Relations, Winfoware Technologies Ltd, Mobile - 0 93425 54560.

Python Consultants required - Urgent

2008-04-21 Thread Ramesh Nathan
HI Anand, I am looking for python consultants for a couple of months. Please let me know if you could help us directly or suggest some one suitable. With warm regards, Ramesh Nathan, Head - Business Relations, Winfoware Technologies Ltd, Mobile - 0 93425 54560. Land Line

Somebody *really* got fond of python

2008-04-21 Thread Diez B. Roggisch
http://xkcd.com/413/ :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Opposite of repr() (kind of)

2008-04-21 Thread Bruno Desthuilliers
Guillermo a écrit : > Hi there, > > How can I turn a string into a callable object/function? Depends on what's in your string. > I have a = 'len', and I want to do: if callable(eval(a)): print > "callable", but that doesn't quite work the way I want. :) Works here: Python 2.5.1 (r251:54863, May

Help with Python+Bazaar+Launchpad

2008-04-21 Thread TimeHorse
Hello, I am trying to to create a branch of the bzr mirror for the current Python Trunk 2.6 development so I can finish my work on Issue 2636. I am not a core developer but am trying to create this branch so it can be reviewed by a core developer I am working with. Because I develop on multiple

Re: Opposite of repr() (kind of)

2008-04-21 Thread TimeHorse
On Apr 21, 7:05 am, Guillermo <[EMAIL PROTECTED]> wrote: > Hi there, > > How can I turn a string into a callable object/function? > > I have a = 'len', and I want to do: if callable(eval(a)): print > "callable", but that doesn't quite work the way I want. :) > > Regards, > > Guillermo What version

Re: I just killed GIL!!!

2008-04-21 Thread Carl Banks
On Apr 20, 10:57 pm, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Carl Banks <[EMAIL PROTECTED]> wrote: > > >On Apr 17, 3:37 am, Jonathan Gardner <[EMAIL PROTECTED]> > >wrote: > > >> Using 100% of the CPU is a bug, not a feature. > > >No it isn't. That idea is borne of the

Re: SWIG (Python) - "no constructor defined" for concrete class

2008-04-21 Thread Paul Melis
Stodge wrote: > Yet another SWIG question (YASQ!). > > I'm having a problem with using an abstract base class. When > generating the Python bindings, SWIG thinks that all the concrete > classes that derive from this abstract class are abstract too and > won't create the correct constructor. > > A

Batteries Included...

2008-04-21 Thread Ant
Today's XKCD comic has a nice Python reference! http://xkcd.com/413/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Opposite of repr() (kind of)

2008-04-21 Thread Guillermo
This must be the dumbest question ever... Solved. On Apr 21, 1:05 pm, Guillermo <[EMAIL PROTECTED]> wrote: > Hi there, > > How can I turn a string into a callable object/function? > > I have a = 'len', and I want to do: if callable(eval(a)): print > "callable", but that doesn't quite work the wa

Re: Somebody *really* got fond of python

2008-04-21 Thread Ant
On Apr 21, 12:23 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > http://xkcd.com/413/ > > :) Didn't realise you'd posted this when I posted my "Batteries Included..." post. Amused me as well! -- http://mail.python.org/mailman/listinfo/python-list

Re: manipulating class attributes from a decorator while the class is being defined

2008-04-21 Thread Gerard Flanagan
On Apr 19, 11:19 pm, Wilbert Berendsen <[EMAIL PROTECTED]> wrote: > Hi, is it possible to manipulate class attributes from within a decorator > while the class is being defined? > > I want to register methods with some additional values in a class attribute. > But I can't get a decorator to change

Re: PIL font encoding

2008-04-21 Thread Steve Holden
Laszlo Nagy wrote: > def getfnt(size): > return ImageFont.truetype("cartoon.ttf",size,encoding='unic') > > Using the above function, I cannot draw special german characters. E.g. > > u'L\xfctgendorf' > > > It will print "Lutgendorf" instead of "Lütgendorf". Much more > interesting is that

Re: Finally had to plonk google gorups.

2008-04-21 Thread NickC
Hmm, according to this thread I probably shouldn't bother even trying to contribute to c.l.p discussions that are highlighted in the Python- URL announcements, even in cases where I think a core developer's perspective may be of interest. As someone that only posts here rarely, and uses Google Grou

Re: Java or C++?

2008-04-21 Thread NickC
On Apr 15, 1:46 pm, Brian Vanderburg II <[EMAIL PROTECTED]> wrote: > This will automatically call the constructors of any contained objects > to initialize the string. The implicit assignment operator > automatically performs the assignment of any contained objects. > Destruction is also automatic

Re: I just killed GIL!!!

2008-04-21 Thread Aahz
In article <[EMAIL PROTECTED]>, Carl Banks <[EMAIL PROTECTED]> wrote: >On Apr 20, 10:57 pm, [EMAIL PROTECTED] (Aahz) wrote: >> In article <[EMAIL PROTECTED]>, >> Carl Banks <[EMAIL PROTECTED]> wrote: >>>On Apr 17, 3:37 am, Jonathan Gardner <[EMAIL PROTECTED]> >>>wrote: Using 100% of the

xkcd strikes again

2008-04-21 Thread Aahz
http://xkcd.com/413/ (As usual, make sure to read the alt text.) -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ Why is this newsgroup different from all other newsgroups? -- http://mail.python.org/mailman/listinfo/python-list

how to pass C++ object to another C++ function via Python function

2008-04-21 Thread grbgooglefan
I am trying to pass a C++ object to Python function. This Python function then calls another C++ function which then uses this C++ object to call methods of that object's class. I tried something like this, but it did not work, gave core dump. class myclass { public: myclass(){};

Re: Finally had to plonk google gorups.

2008-04-21 Thread Torsten Bronger
Hallöchen! NickC writes: > Hmm, according to this thread I probably shouldn't bother even > trying to contribute to c.l.p discussions that are highlighted in > the Python- URL announcements, even in cases where I think a core > developer's perspective may be of interest. As someone that only > po

Re: how to pass C++ object to another C++ function via Python function

2008-04-21 Thread Diez B. Roggisch
grbgooglefan wrote: > I am trying to pass a C++ object to Python function. This Python > function then calls another C++ function which then uses this C++ > object to call methods of that object's class. You might consider using a C++-wrapper like SIP, Swig or Boost::Python to do this. If you do

Re: Nested lists, simple though

2008-04-21 Thread Diez B. Roggisch
> The first idea that comes to mind is reduce(lambda x, y: x + y, > list_of_lists, []) Which is not helping for arbitrary nested lists, as the OP wanted. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-21 Thread Paul McGuire
On Apr 19, 4:42 am, Carl Banks <[EMAIL PROTECTED]> wrote: > > If you don't like Python 3, DON'T USE IT. > I've read this position a number of times in this and related threads, and it overlooks one constituency of Python developers - those who develop and support modules for use by other Python us

Re: how to pass C++ object to another C++ function via Python function

2008-04-21 Thread Gabriel Genellina
En Mon, 21 Apr 2008 10:24:15 -0300, grbgooglefan <[EMAIL PROTECTED]> escribió: > I am trying to pass a C++ object to Python function. This Python > function then calls another C++ function which then uses this C++ > object to call methods of that object's class. > > I tried something like this, bu

Re: how to pass C++ object to another C++ function via Python function

2008-04-21 Thread Diez B. Roggisch
Gabriel Genellina wrote: > En Mon, 21 Apr 2008 10:24:15 -0300, grbgooglefan <[EMAIL PROTECTED]> > escribió: > >> I am trying to pass a C++ object to Python function. This Python >> function then calls another C++ function which then uses this C++ >> object to call methods of that object's class.

Re: py3k concerns. An example

2008-04-21 Thread Stefan Behnel
Gabriel Genellina wrote: > You have plenty of time to evaluate alternatives. Your code may become > obsolete even before 3.3 is shipped. Sure, and don't forget to save two bytes when storing the year. ;) Stefan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 adoption

2008-04-21 Thread Aahz
In article <[EMAIL PROTECTED]>, Joseph Turian <[EMAIL PROTECTED]> wrote: > >Basically, we're planning on releasing it as open-source, and don't >want to alienate a large percentage of potential users. Datapoint: my company still uses 2.3 and *might* upgrade to 2.4 and later this year. Basically,

Finding the selected file in Windows Explorer

2008-04-21 Thread domiriel
Hi! I need to find the selected file(s) in a Windows Explorer window from another program (I'd look at the window that last had focus). I found something in the following page that should do the trick: http://blogs.msdn.com/oldnewthing/archive/2004/07/20/188696.aspx However, it is not Python an

Re: Java or C++?

2008-04-21 Thread rustom
On Apr 14, 11:44 am, [EMAIL PROTECTED] wrote: > Hello, I was hoping to get some opinions on a subject. I've been > programming Python for almost two years now. Recently I learned Perl, > but frankly I'm not very comfortable with it. Now I want to move on > two either Java or C++, but I'm not sure w

Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Ville M. Vainio
Eduardo Schettino wrote: > DoIt is a build tool that focus not only on making/building things but on > executing any kind of tasks in an efficient way. Designed to be easy to use > and "get out of your way". I took a look at dolt syntax, and saw this: QQQ def create_folder(path): """Create

Re: I just killed GIL!!!

2008-04-21 Thread Carl Banks
On Apr 21, 9:20 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Carl Banks <[EMAIL PROTECTED]> wrote: > > > > >On Apr 20, 10:57 pm, [EMAIL PROTECTED] (Aahz) wrote: > >> In article <[EMAIL PROTECTED]>, > >> Carl Banks <[EMAIL PROTECTED]> wrote: > >>>On Apr 17, 3:37 am, Jona

Re: Python 2.5 adoption

2008-04-21 Thread castironpi
On Apr 21, 9:28 am, [EMAIL PROTECTED] (Aahz) wrote: > In article <[EMAIL PROTECTED]>, > Joseph Turian  <[EMAIL PROTECTED]> wrote: > > > > >Basically, we're planning on releasing it as open-source, and don't > >want to alienate a large percentage of potential users. > > Datapoint: my company still u

Re: Finding the selected file in Windows Explorer

2008-04-21 Thread Mike Driscoll
On Apr 21, 9:44 am, [EMAIL PROTECTED] wrote: > Hi! > > I need to find the selected file(s) in a Windows Explorer window from > another program (I'd look at the window that last had focus). I found > something in the following page that should do the trick: > > http://blogs.msdn.com/oldnewthing/arch

Problem setting cookie in Internet Explorer

2008-04-21 Thread sophie_newbie
Hi, I'm using the python to set a cookie when a user logs in. Thing is it doesn't seem to be setting properly in Internet Explorer. It works grand in Firefox. Its basically: c = Cookie.SimpleCookie() c['username'] = uname c['password'] = pword print c print pageContent And thats it. I've a s

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Paul Boddie
On 21 Apr, 16:51, "Ville M. Vainio" <[EMAIL PROTECTED]> wrote: > > Wouldn't it be more convenient to provide syntax like this: > > @task("create_build_folder") > @depend("dep1 some_other_dep") > def buildf(): > buildFolder = jsPath + "build" > create_folder(buildFolder) I'd want to make the "g

Re: Problem setting cookie in Internet Explorer

2008-04-21 Thread Mike Driscoll
On Apr 21, 10:13 am, sophie_newbie <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using the python to set a cookie when a user logs in. Thing is it > doesn't seem to be setting properly in Internet Explorer. It works > grand in Firefox. Its basically: > > c = Cookie.SimpleCookie() > > c['username'] = una

Python Developer, DIRECT CLIENT REQUIREMENT: Please Respond

2008-04-21 Thread Rahul Ka
Hi , We have this urgent DIRECT client requirement . Please let me know if you have suitable candidates. Please send me their resume rate and contact details ASAP. TITLE: Python Developer LOCATION: Silver spring, MD DUARTION:6 Months + JOB REQUIREMENTS Strong C++ and Python experience 5 to 7

Re: MySQL hardcoding?

2008-04-21 Thread John Nagle
[EMAIL PROTECTED] wrote: > I've got this error (see the path in last line) > > db=MySQLdb.connect(host='localhost',use_unicode = True, charset = > "Windows-1251",user='root',passwd='12',db='articulos') > File "C:\Python24\Lib\site-packages\MySQLdb\__init__.py", line 74, in > Connect >

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Eduardo Schettino
> > I took a look at dolt syntax, and saw this: > > QQQ > > def create_folder(path): > """Create folder given by "path" if it doesnt exist""" > if not os.path.exists(path): > os.mkdir(path) > return True > > def task_create_build_folder(): > buildFolder = jsPath + "

Tweaking PEP-234 to improve Duck Typing

2008-04-21 Thread Greg Kochanski
Id'a like to raise an issue that was partially discussed in 2006 ( http://groups.google.co.uk/group/comp.lang.python/browse_thread/thread/1811df36f2a131fd/435ba1cae670aecf?lnk=st&q=python+iterators+duck+typing#435ba1cae670aecf ) with the half-promise that it would be revisited before Python 3000

Does Python 2.5.2's embedded SQLite support full text searching?

2008-04-21 Thread python
Does Python 2.5.2's embedded SQLite support full text searching? Any recommendations on a source where one can find out which SQLite features are enabled/disabled in each release of Python? I'm trying to figure out what's available in 2.5.2 as well as what to expect in 2.6 and 3.0. Thank you, Mal

Re: wholesale air force one bape adidas wallet bikini tn shox air max air rift

2008-04-21 Thread fengxie . shi
We are the professional and serious wholesaler of brand products,such as shoes, clothing, handbags, sunglasses, hats, belts, and so on.We have many brands such as nike,adidas,puma,Gucci,North face.All goods are with best service,highest quality,competitive price,and safe timely deliverry If you ar

Financial Modeling with Python by Shayne Fletcher, Christopher Gardner

2008-04-21 Thread orpap
Just saw at amazon.com reference to the following book that might be available later this year: Financial Modeling with Python [IMPORT] (Hardcover) by Shayne Fletcher (Author), Christopher Gardner (Author) Availability: Sign up to be notified when this item becomes available. Product Details

Re: "Help needed - I don't understand how Python manages memory"

2008-04-21 Thread sturlamolden
On Apr 21, 4:09 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > I'm not sure if this will help the OP at all - going into a world of dangling > pointers, keeping track of ownership, releasing memory by hand... One of the > good things of Python is automatic memory management. Ensuring that

Re: Problem setting cookie in Internet Explorer

2008-04-21 Thread sophie_newbie
On Apr 21, 4:24 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > On Apr 21, 10:13 am, sophie_newbie <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > I'm using the python to set a cookie when a user logs in. Thing is it > > doesn't seem to be setting properly in Internet Explorer. It works > > grand in

Re: Python "make" like tools (was Re: [ANN] DoIt 0.1.0 Released (build tool))

2008-04-21 Thread Eduardo Schettino
I guess I should post a link to the project in this thread... http://python-doit.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Database vs Data Structure?

2008-04-21 Thread castironpi
On Apr 19, 10:56 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sat, 19 Apr 2008 11:27:20 -0700, Scott David Daniels > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > >         Hijacking as with the gmail kill filter I had to apply... > > > [EMAIL PROTECTED] wrote: > > > A

Re: Python 2.5 adoption

2008-04-21 Thread Lou Pecora
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > On Apr 21, 9:28 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > > > Why is this newsgroup different from all other newsgroups?   > > Different is a verbally atomic relation. It's a Passover question. -- -- Lou Pecora -- http://mail.py

yield expression programmized-formal interpretation. (interpretation of yield expression.)

2008-04-21 Thread castironpi
What if I say oath= yield or other= yield ? Does yield evaluate without parenthes? (Eth.) -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python 2.5.2's embedded SQLite support full text searching?

2008-04-21 Thread Daniel Fetchinson
> Does Python 2.5.2's embedded SQLite support full text searching? > > Any recommendations on a source where one can find out which SQLite > features are enabled/disabled in each release of Python? I'm trying to > figure out what's available in 2.5.2 as well as what to expect in 2.6 > and 3.0. Sql

Re: Does Python 2.5.2's embedded SQLite support full text searching?

2008-04-21 Thread Ed Leafe
On Apr 21, 2008, at 1:05 PM, Daniel Fetchinson wrote: > Sqlite itself is not distributed with python. Only a python db api > compliant wrapper is part of the python stdlib and as such it is > completely independent of the sqlite build. Don't most binary distributions include SQLite itself

Re: Does Python 2.5.2's embedded SQLite support full text searching?

2008-04-21 Thread Nemesis
Ed Leafe wrote: >> Sqlite itself is not distributed with python. Only a python db api >> compliant wrapper is part of the python stdlib and as such it is >> completely independent of the sqlite build. > > Don't most binary distributions include SQLite itself? I installed > 2.5.2 on a new W

Code question

2008-04-21 Thread jyoung79
I've been trying to figure out a way to combine lists similar to how zip() works. The main difference though is I want to work with different length lists and combine them. I came up with the example below, which returns a list like I'm wanting. I'm assuming it's somewhat efficient (althou

Re: py3k concerns. An example

2008-04-21 Thread Ross Ridge
Carl Banks <[EMAIL PROTECTED]> wrote: > If you don't like Python 3, DON'T USE IT. That's the plan. Paul McGuire <[EMAIL PROTECTED]> wrote: >I've read this position a number of times in this and related threads, >and it overlooks one constituency of Python developers - those who >develop and su

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Ivan Illarionov
On 20 апр, 04:10, George Sakkis <[EMAIL PROTECTED]> wrote: > On Apr 18, 9:36 pm, Ross Ridge <[EMAIL PROTECTED]> > wrote: > > > > > Ross Ridge <[EMAIL PROTECTED]> said: > > > > If you have Python 2.5, here's a faster version: > > > >from struct import * > > >unpack_i32be = Struct(">l").unpac

List of all Python's ____ ?

2008-04-21 Thread python
Is there an official list of all Python's ? I'm learning Python and trying to get an idea of what are available and specifically, what are used by each native Python data type? Thanks! Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5 adoption

2008-04-21 Thread castironpi
On Apr 21, 12:59 pm, Lou Pecora <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > > [EMAIL PROTECTED] wrote: > > On Apr 21, 9:28 am, [EMAIL PROTECTED] (Aahz) wrote: > > > > Why is this newsgroup different from all other newsgroups?   > > > Different is a verbally atomic relation. > >

Re: List of all Python's ____ ?

2008-04-21 Thread Hrvoje Niksic
[EMAIL PROTECTED] writes: > Is there an official list of all Python's ? http://docs.python.org/ref/specialnames.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Code question

2008-04-21 Thread Matimus
On Apr 21, 12:05 pm, <[EMAIL PROTECTED]> wrote: > I've been trying to figure out a way to combine lists similar to how zip() > works. The main > difference though is I want to work with different length lists and combine > them. I came up with > the example below, which returns a list like I'm

Re: Python in High School

2008-04-21 Thread Jan Claeys
Op Thu, 03 Apr 2008 00:06:34 -0700, schreef Dennis Lee Bieber: > On Thu, 03 Apr 2008 03:37:43 GMT, Jan Claeys <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > >> Later I learned C (and even later C++), and I've always been wondering >> why those languages were making simple th

Re: Python 2.5 adoption

2008-04-21 Thread Jorgen Grahn
On Fri, 18 Apr 2008 12:49:25 -0700 (PDT), George Sakkis <[EMAIL PROTECTED]> wrote: > On Apr 18, 2:08 pm, Joseph Turian <[EMAIL PROTECTED]> wrote: >> How widely adopted is python 2.5? >> >> We are doing some development, and have a choice to make: >> a) Use all the 2.5 features we want. >> b) Maint

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Ivan Illarionov
On 22 апр, 00:10, Ivan Illarionov <[EMAIL PROTECTED]> wrote: > On 20 ÁÐÒ, 04:10, George Sakkis <[EMAIL PROTECTED]> wrote: > > > > > On Apr 18, 9:36 pm, Ross Ridge <[EMAIL PROTECTED]> > > wrote: > > > > Ross Ridge <[EMAIL PROTECTED]> said: > > > > > If you have Python 2.5, here's a faster version: >

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Peter Otten
Ivan Illarionov wrote: > And even faster: > a = array.array('i', '\0' + '\0'.join((s[i:i+3] for i in xrange(0, > len(s), 3 > if sys.byteorder == 'little': > a.byteswap() > > I think it's a fastest possible implementation in pure python Clever, but note that it doesn't work correctly for

Re: List of all Python's ____ ?

2008-04-21 Thread John Machin
Hrvoje Niksic wrote: > [EMAIL PROTECTED] writes: > >> Is there an official list of all Python's ? > > http://docs.python.org/ref/specialnames.html __missing__ is missing :-) see note (10) at the bottom of http://docs.python.org/lib/typesmapping.html -- http://mail.python.org/mailman/listi

Re: List of all Python's ____ ?

2008-04-21 Thread python
Hrvoje, >> Is there an official list of all Python's ? > http://docs.python.org/ref/specialnames.html Wonderful!! Thank you very much. Regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Bob Greschke
On 2008-04-21 14:50:13 -0600, Ivan Illarionov <[EMAIL PROTECTED]> said: > On 22 апр, 00:10, Ivan Illarionov <[EMAIL PROTECTED]> wrote: >> On 20 ÁÐÒ, 04:10, George Sakkis <[EMAIL PROTECTED]> w > rote: >> >> >> >>> On Apr 18, 9:36 pm, Ross Ridge <[EMAIL PROTECTED]> >>> wrote: >> Ross Ridge

module error in Vista -- works as administrator

2008-04-21 Thread sawilla
First, I'm new to Python. I'm getting and error when I run Python 2.5.2 as a regular user in Vista but not when I run Python as an administrator. For example, if I type "import numpy" after I launch python from an adminstrator-privileged command window it loads fine. However, from a regular-user c

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Steve Holden
Bob Greschke wrote: > On 2008-04-21 14:50:13 -0600, Ivan Illarionov <[EMAIL PROTECTED]> said: > >> On 22 апр, 00:10, Ivan Illarionov <[EMAIL PROTECTED]> wrote: >>> On 20 ÁÐÒ, 04:10, George Sakkis <[EMAIL PROTECTED]> w >> rote: >>> >>> On Apr 18, 9:36 pm, Ross Ridge <[EMAIL PROTECTED]> w

Re: 2's complement conversion. Is this right?

2008-04-21 Thread Ivan Illarionov
On 22 апр, 01:01, Peter Otten <[EMAIL PROTECTED]> wrote: > Ivan Illarionov wrote: > > And even faster: > > a = array.array('i', '\0' + '\0'.join((s[i:i+3] for i in xrange(0, > > len(s), 3 > > if sys.byteorder == 'little': > > a.byteswap() > > > I think it's a fastest possible implementation

Re: Does Python 2.5.2's embedded SQLite support full text searching?

2008-04-21 Thread Daniel Fetchinson
> >> Sqlite itself is not distributed with python. Only a python db api > >> compliant wrapper is part of the python stdlib and as such it is > >> completely independent of the sqlite build. > > > > Don't most binary distributions include SQLite itself? I installed > > 2.5.2 on a new WinXP VM,

Re: module error in Vista -- works as administrator

2008-04-21 Thread John Machin
sawilla wrote: First, I'm new to Python. I'm getting and error when I run Python 2.5.2 as a regular user in Vista but not when I run Python as an administrator. For example, if I type "import numpy" after I launch python from an adminstrator-privileged command window it loads fine. However, from

dynamically importing a module and function

2008-04-21 Thread [EMAIL PROTECTED]
Hi I have a function data['function'], that I need to import from a file data['module'], in the directory data['cwd'] If I do this from python interactive shell (linux fedora core 8) from dir /home/mark it works fine: cwd = data['cwd'] os.chdir(cwd) print os.ge

Re: dynamically importing a module and function

2008-04-21 Thread [EMAIL PROTECTED]
there was a mistake in my prev mail.. it is not able to successfully import the module. abcde is in directory /home/mark/work/proj1, but it is looking for it in /home/mark from where i am running the script.. though i changed cwd using os.chdir() function > File "/home/mark/app.py", line 5, i

  1   2   >