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

2008-04-20 Thread Marc 'BlackJack' Rintsch
On Mon, 21 Apr 2008 08:33:47 +0200, 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 w

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

2008-04-20 Thread Hunter
Hi all, This is my first Usenet post! I've run into a wall with my first Python program. I'm writing some simple code to take a text file that's utf-8 and in Spanish and to use online translation tools to convert it, word-by-word, into English. Then I'm generating a PDF with both of the languag

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

2008-04-20 Thread Paul Scott
On Mon, 2008-04-21 at 02:01 -0400, 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 m

crack cocaine user profile

2008-04-20 Thread carlwuhwdmckay
crack cocaine user profile http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

transmac crack

2008-04-20 Thread carlwuhwdmckay
transmac crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

cabbage patch kids messy face doll

2008-04-20 Thread carlwuhwdmckay
cabbage patch kids messy face doll http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: py3k concerns. An example

2008-04-20 Thread Gabriel Genellina
En Fri, 18 Apr 2008 12:58:56 -0300, Aaron Watters <[EMAIL PROTECTED]> escribió: > Why is the migration to py3k a concern? > For example I have libraries which use string%dictionary > substitution where the dictionary is actually an object > which emulates a dictionary. The __getitem__ for > the o

dark crusade 1.11 patch

2008-04-20 Thread carlwuhwdmckay
dark crusade 1.11 patch http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

call of duty united offensive patch

2008-04-20 Thread carlwuhwdmckay
call of duty united offensive patch http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

wheel of fortune crack

2008-04-20 Thread carlwuhwdmckay
wheel of fortune crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

cracked engine block

2008-04-20 Thread carlwuhwdmckay
cracked engine block http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

antivir keygen

2008-04-20 Thread carlwuhwdmckay
antivir keygen http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

89th mp brigade patch

2008-04-20 Thread carlwuhwdmckay
89th mp brigade patch http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

firewire patch cable

2008-04-20 Thread carlwuhwdmckay
firewire patch cable http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread Banibrata Dutta
On 4/21/08, Steve Holden <[EMAIL PROTECTED]> wrote: > > If it's important to you to be able to obfuscate your code then you have > made an inapposite choice of language. Cutting through all the smoke (thanks to the slight flame we had), this seems to be the answer that 'shines thorough'... if th

Is massive spam coming from me on python lists?

2008-04-20 Thread Brian Vanderburg II
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 other are getting them even though Sender seems to include

Re: Prob. w/ Script Posting Last Value

2008-04-20 Thread Gabriel Genellina
En Thu, 17 Apr 2008 15:51:43 -0300, Victor Subervi <[EMAIL PROTECTED]> escribió: > On Thu, Apr 17, 2008 at 1:07 PM, Steve Holden <[EMAIL PROTECTED]> wrote: >> Victor Subervi wrote: >> >> > Gabriel provided a lovely script for showing images which I am modifying >> > for my needs. I have the follo

crack for spyware doctor

2008-04-20 Thread john00587
crack for spyware doctor http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

revit 9 keygen

2008-04-20 Thread john00587
revit 9 keygen http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

crack registration codes for pogo games

2008-04-20 Thread john00587
crack registration codes for pogo games http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

irc proxy search crack

2008-04-20 Thread john00587
irc proxy search crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

cracks in skin caused by medication

2008-04-20 Thread john00587
cracks in skin caused by medication http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

boilsoft rm convertor crack

2008-04-20 Thread john00587
boilsoft rm convertor crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

ideal admin keygen

2008-04-20 Thread john00587
ideal admin keygen http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

egirl crack

2008-04-20 Thread john00587
egirl crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

crack and digichat 5

2008-04-20 Thread john00587
crack and digichat 5 http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

cs3 activation crack

2008-04-20 Thread john00587
cs3 activation crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

xplite 1.6 keygen

2008-04-20 Thread john00587
xplite 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

anydvd 6.1.6.0 crack

2008-04-20 Thread john00587
anydvd 6.1.6.0 crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

firebird quarter patch

2008-04-20 Thread john00587
firebird quarter patch http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

gutterball 2 crack

2008-04-20 Thread john00587
gutterball 2 crack http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

kids that fall between the cracks

2008-04-20 Thread john00587
kids that fall between the cracks http://cracks.00bp.com F R E E C R A C K S -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing parallel port interrupts using python or any c python binding ?

2008-04-20 Thread Gabriel Genellina
En Mon, 21 Apr 2008 01:09:59 -0300, kapardhi bvn <[EMAIL PROTECTED]> escribió: > Any body can tell me an efficient way of reading parallel port at high > speed. > this is basically to extend ISA and other bus interfacing. See pyparallel (part of the pyserial package) -- Gabriel Genellina -- h

Re: question about the mainloop

2008-04-20 Thread Gabriel Genellina
En Mon, 21 Apr 2008 00:57:38 -0300, globalrev <[EMAIL PROTECTED]> escribió: > On 21 Apr, 04:26, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> En Sun, 20 Apr 2008 20:24:04 -0300, globalrev <[EMAIL PROTECTED]> escribió: >> >> > i dont get the mainloop() in python. i mean i have written some >> >

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-20 Thread Martin v. Löwis
> Thus it would seem use cif here resulted in a segment violation. I'll > continue to research this issue and report back to the group as I know > more. Perhaps solving the issue with the 'c' and 'm' libraries > (whatever they might be) will make the core dump go away. However, > for tonight, I'

Re: MySQL hardcoding?

2008-04-20 Thread Gabriel Genellina
En Thu, 17 Apr 2008 15:41:49 -0300, <[EMAIL PROTECTED]> escribió: > 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') > OperationalError: (2019, "Can't initialize chara

Re: Compiling Python 2.5.2 on AIX 5.2

2008-04-20 Thread Randy Galbraith
On Apr 15, 11:33 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > What is Py_UNICODE_SIZE and why was it not defined? There are current > > questions I have. > > Py_UNICODE_SIZE is the number of bytes that a Py_UNICODE value should > have in the interpreter. With --enable-unicode=ucs2, it shou

Accessing parallel port interrupts using python or any c python binding ?

2008-04-20 Thread kapardhi bvn
Any body can tell me an efficient way of reading parallel port at high speed. this is basically to extend ISA and other bus interfacing. please help thanks in advance -- http://mail.python.org/mailman/listinfo/python-list

Re: Error Handling

2008-04-20 Thread Gabriel Genellina
En Thu, 17 Apr 2008 16:19:12 -0300, Victor Subervi <[EMAIL PROTECTED]> escribió: > try: > cursor.execute(sql) > print '¡Exito en introducir!' > print 'Esta página va a regresar a la página principal del carrito > de compras en 10 segundos.' > except IntegrityError: >

Re: question about the mainloop

2008-04-20 Thread globalrev
On 21 Apr, 04:26, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 20 Apr 2008 20:24:04 -0300, globalrev <[EMAIL PROTECTED]> escribió: > > > in C?? java etc there is usually: > > > procedure 1 > > procedure 2 > > procedure 3 > > > main { > > procedure 1 > > procedure 2 > > procedure 3 > > }

Re: Alternate indent proposal for python 3000

2008-04-20 Thread Terry Reedy
"Dan Bishop" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | We wouldn't even need that. Just a new source encoding. Then we | could write: | | # -*- coding: end-block -*- Ummm.. source encoding refers to how unicode chars/codepoints are represented as bytes. This syntax is cop

Re: Checking if a text file is blank

2008-04-20 Thread Andrew Lee
David wrote: >> import os >> print os.lstat("friends.txt")[6] >> > > I prefer os.lstat("friends.txt").st_size MUCH easier to remember Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: I just killed GIL!!!

2008-04-20 Thread Aahz
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 narrowmindedness of people who >write server-like network apps. W

Re: Finally had to plonk google gorups.

2008-04-20 Thread Aahz
In article <[EMAIL PROTECTED]>, Grant Edwards <[EMAIL PROTECTED]> wrote: > >This morning almost half of c.l.p was spam. In order to try to not tar >both the benign google group users and the malignant ones with the same >brush, I've been trying to kill usenet spam with subject patterns. But >tha

Re: Finally had to plonk google gorups.

2008-04-20 Thread Aahz
In article <[EMAIL PROTECTED]>, Mike Driscoll <[EMAIL PROTECTED]> wrote: > >My workplace doesn't offer NNTP, so there is no good way to browse >c.l.py here. And I haven't been able to get NNTP to work from my home >either. Can you use ssh? Get a shell account somewhere else. -- Aahz ([EMAIL PRO

Re: question about the mainloop

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 20:24:04 -0300, globalrev <[EMAIL PROTECTED]> escribió: > 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. i mean i have written some > programs, for e

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

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 17:19:43 -0300, sturlamolden <[EMAIL PROTECTED]> escribió: > On Apr 20, 9:09 pm, "Hank @ITGroup" <[EMAIL PROTECTED]> wrote: > >> Could you please give us some clear clues to obviously call python to >> free memory. We want to control its gc operation handily as we were >> using

Python script to automate use of Google Translate? (or other translator)

2008-04-20 Thread Kenneth McDonald
I have the need to occasionally translate a single word programatically. Would anyone have a Python script that would let me do this using Google (or another) translation service? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

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

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 17:23:32 -0300, Christian Heimes <[EMAIL PROTECTED]> escribió: > Martin v. Löwis schrieb: >> Can you give an example, please? > > http://trac.edgewall.org/ contains at least one example of a reference > leak. It's holding up the release of 0.11 for a while. *scnr* > > The prob

C\C++ Python embedding linking problem

2008-04-20 Thread DevEng
Hi all, I am new to Python and trying to embed it into a c/c++ application. I started with examples from the documentation pages and go to the Pure Embedding example (http://docs.python.org/ext/pure-embedding.html). I can compile and run this example on wxDevC++ with a mingwin compiler. However wh

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread ajaksu
On Apr 20, 3:31 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > JB "My first post on c.l.py" Stern wrote: > > Curious Steve, how do you pay the rent and by what authority do you > > speak for "The Python world"? [snip] > I don't claim to speak *for* the > whole Python world, but as chairman of the Py

Re: Nested lists, simple though

2008-04-20 Thread sturlamolden
On Apr 21, 2:35 am, sturlamolden <[EMAIL PROTECTED]> wrote: > This also shows how easy it is to boost the performance of Python code > using Cython. We can improve this further by getting rid of the tmp.append attribue lookup: cdef _flatten(lst, append): for elem in lst: if type(elem

Re: Nested lists, simple though

2008-04-20 Thread sturlamolden
On Apr 21, 12:25 am, Zethex <[EMAIL PROTECTED]> wrote: > Anyway the amount of [[]] do increase over time. You can flatten a nested list using a closure and recursion: def flatten(lst): tmp = [] def _flatten(lst): for elem in lst: if type(elem) != list:

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread Terry Reedy
"Roy Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Even if this were worded in a less rude manner, I agree that Stula's response was rude. But it also strikes me as rude for people to whine about not getting free help hiding their code from the very people that they wan

Re: replacing text inplace

2008-04-20 Thread Grant Edwards
On 2008-04-20, Matt Herzog <[EMAIL PROTECTED]> wrote: > I'm learning some python with the seemingly simple task of > updating a firewall config file with the new IP address when > my dhcpd server hands one out. Yeah, I know it's dangerous to > edit such a file "in place" I don't see how what you

Re: Alternate indent proposal for python 3000

2008-04-20 Thread Terry Reedy
"Matthew Woodcraft" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Terry Reedy <[EMAIL PROTECTED]> wrote: | | > But you do not really need a variant. Just define a preprocessor | > function 'blockify' which converts code in an alternate syntax to | > regular indented block syntax.

Re: Nested lists, simple though

2008-04-20 Thread Grant Edwards
On 2008-04-20, Zethex <[EMAIL PROTECTED]> wrote: > Im a bit new to python. Anyway working on a little project of mine and i > have nested lists What you want to do is usually called "flattening". http://mail.python.org/pipermail/tutor/2001-January/002914.html http://aspn.activestate.com/ASPN/Co

replacing text inplace

2008-04-20 Thread Matt Herzog
Hey All. I'm learning some python with the seemingly simple task of updating a firewall config file with the new IP address when my dhcpd server hands one out. Yeah, I know it's dangerous to edit such a file "in place" but this is just an exercise at this point. I would not mind using file han

question about the mainloop

2008-04-20 Thread globalrev
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. i mean i have written some programs, for example a calculator using tkinterGUI. if i have some functions i wanna call to run the program and i

Re: close GUI and quit script?

2008-04-20 Thread Michael Torrie
Michael Torrie wrote: > globalrev wrote: >> how do i close a GUI and end the mainloop of the script? > >From a GUI callback, instruct the main loop to quit. In case you can't tell from my reply, I'm basically saying that none of us have any idea unless you actually tell us what GUI system you are

Re: Alternate indent proposal for python 3000

2008-04-20 Thread George Sakkis
On Apr 20, 6:54 pm, Dan Bishop <[EMAIL PROTECTED]> wrote: > On Apr 20, 11:42 am, Matthew Woodcraft > > > > <[EMAIL PROTECTED]> wrote: > > Christian Heimes  <[EMAIL PROTECTED]> wrote: > > > >> I feel that including some optional means to block code would be a big > > >> step in getting wider adoptio

Re: Nested lists, simple though

2008-04-20 Thread George Sakkis
On Apr 20, 6:50 pm, Jason Scheirer <[EMAIL PROTECTED]> wrote: > On Apr 20, 3:25 pm, Zethex <[EMAIL PROTECTED]> wrote: > > > > > Im a bit new to python.  Anyway working on a little project of mine and i > > have nested lists > > > ie > > > Answer = [['computer', 'radeon', 'nvidia'], ['motherboard',

Re: Alternate indent proposal for python 3000

2008-04-20 Thread Dan Bishop
On Apr 20, 11:42 am, Matthew Woodcraft <[EMAIL PROTECTED]> wrote: > Christian Heimes <[EMAIL PROTECTED]> wrote: > > >> I feel that including some optional means to block code would be a big > >> step in getting wider adoption of the language in web development and > >> in general. I do understand

Re: Nested lists, simple though

2008-04-20 Thread Jason Scheirer
On Apr 20, 3:25 pm, Zethex <[EMAIL PROTECTED]> wrote: > Im a bit new to python.  Anyway working on a little project of mine and i > have nested lists > > ie > > Answer = [['computer', 'radeon', 'nvidia'], ['motherboard', 'asus']] > > and so forth.., > Anyway the amount of [[]] do increase over time

Re: close GUI and quit script?

2008-04-20 Thread Michael Torrie
globalrev wrote: > how do i close a GUI and end the mainloop of the script? >From a GUI callback, instruct the main loop to quit. -- http://mail.python.org/mailman/listinfo/python-list

close GUI and quit script?

2008-04-20 Thread globalrev
how do i close a GUI and end the mainloop of the script? -- http://mail.python.org/mailman/listinfo/python-list

Re: Nested lists, simple though

2008-04-20 Thread sturlamolden
On Apr 21, 12:25 am, Zethex <[EMAIL PROTECTED]> wrote: > Anyway the amount of [[]] do increase over time. Im just wondering is there > a simple way to add these together so they become 1 simple list, so it would > be ['computer''asus'] etc without the nested list. Its random the > amount eac

Nested lists, simple though

2008-04-20 Thread Zethex
Im a bit new to python. Anyway working on a little project of mine and i have nested lists ie Answer = [['computer', 'radeon', 'nvidia'], ['motherboard', 'asus']] and so forth.., Anyway the amount of [[]] do increase over time. Im just wondering is there a simple way to add these together so

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread sturlamolden
On Apr 20, 8:49 pm, Roy Smith <[EMAIL PROTECTED]> wrote: > Hiding your source code is not easy (perhaps impossible) in Python, for > reasons which have been covered at length on a regular basis in this forum. > If you only ship .pyc or .pyo files, there is still enough information > recoverable in

Re: Alternate indent proposal for python 3000

2008-04-20 Thread George Sakkis
On Apr 20, 12:34 pm, Eric Wertman <[EMAIL PROTECTED]> wrote: > > Look into any of the dozen Python-based template engines that are > > typically used for such tasks; they offer many more features than a > > way to indent blocks. > > > George > > I definitely will.. could you throw out some examples

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

2008-04-20 Thread Steve Holden
Hank @ITGroup wrote: > Steve Holden wrote: >> You are suffering from a pathological condition yourself: the desire >> to optimize performance in an area where you do not have any problems. >> I would suggest you just enjoy using Python and then start to ask >> these questions again when you have

Re: I would like to learn scripting in Python too!

2008-04-20 Thread Daniel Fetchinson
> I am a software tester and I see lot of testers on the forums saying Python > is a wonderful scripting language that testers use on a daily basis. > > I would also like to learn to script in Python but I do not have any > programming background. This is a good starting point: http://wiki.python

Re: cherrypy-webapp-code?

2008-04-20 Thread Daniel Fetchinson
> anyone have a small cherrypy-webapp and are willing to post the code. > could be a nonsense-app just wanna see some code. > -- > http://mail.python.org/mailman/listinfo/python-list > Did you try google? And the cherrypy website? -- http://mail.python.org/mailman/listinfo/python-list

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

2008-04-20 Thread Martin v. Löwis
> http://trac.edgewall.org/ contains at least one example of a reference > leak. It's holding up the release of 0.11 for a while. *scnr* All my investigations on possible memory leaks in Trac have only confirmed that Python does _not_, I repeat, it does *NOT* leak any memory in Trac. Instead, wha

jennifer aniston and paul

2008-04-20 Thread collardfelszkw
Just few link on some Movies Movies: http://Jennifer-Aniston.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

jennifer aniston paul sculfor

2008-04-20 Thread collardfelszkw
Just few link on some Movies Movies: http://Jennifer-Aniston.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

jennifer aniston paul

2008-04-20 Thread collardfelszkw
Just few link on some Movies Movies: http://Jennifer-Aniston.12w.net F R E E C E L E B R I T Y M O V I E S -- http://mail.python.org/mailman/listinfo/python-list

cherrypy-webapp-code?

2008-04-20 Thread globalrev
anyone have a small cherrypy-webapp and are willing to post the code. could be a nonsense-app just wanna see some code. -- http://mail.python.org/mailman/listinfo/python-list

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

2008-04-20 Thread Christian Heimes
Martin v. Löwis schrieb: > Can you give an example, please? http://trac.edgewall.org/ contains at least one example of a reference leak. It's holding up the release of 0.11 for a while. *scnr* The problem is also covered by the docs at http://docs.python.org/dev/library/sys.html#sys.exc_info Chr

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

2008-04-20 Thread sturlamolden
On Apr 20, 9:09 pm, "Hank @ITGroup" <[EMAIL PROTECTED]> wrote: > Could you please give us some clear clues to obviously call python to > free memory. We want to control its gc operation handily as we were > using J**A. If you want to get rid of a Python object, the only way to do that is to get r

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
Jason Scheirer wrote: [snip] > > It's true -- decorators, the class/type cleanup, properties, -= and > +=, list comprehensions, generators, distutils, and all the new > modules in the standard library are completely, entirely useless. > Python SHOULD have stayed at 1.5. totally OT, but just a few

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

2008-04-20 Thread Christian Heimes
Hank @ITGroup schrieb: > 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 the

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
Juergen Perlinger wrote: > [EMAIL PROTECTED] wrote: > [snip] > Basically you're not using ASCII encoding in your source text... You need > to define an encoding for your source if you're using german umlauts or > other fancy stuff. > > See chapter 2.1.4 of the reference manual, and add e.g. > >

Re: What happened with python? messed strings?

2008-04-20 Thread Jason Scheirer
On Apr 20, 11:54 am, <[EMAIL PROTECTED]> wrote: > Hi, > I used extensively python and now I find this mess with strings, > I can't even reproduce tutorial examples:>>> "apfel".encode('utf-8')  (it was > with umlaut) > >   File "", line 0 > >     ^ > SyntaxError: 'ascii' codec can't decode byte 0xc

Re: What happened with python? messed strings?

2008-04-20 Thread Juergen Perlinger
[EMAIL PROTECTED] wrote: > > Hi, > I used extensively python and now I find this mess with strings, > I can't even reproduce tutorial examples: "apfel".encode('utf-8') (it was with umlaut) > File "", line 0 > > ^ > SyntaxError: 'ascii' codec can't decode byte 0xc4 in position 1:

Re: socket.AF_INET

2008-04-20 Thread Juergen Perlinger
Matt Herzog wrote: > Hi All. > > I'm trying to write a script that will send me an email message when my IP > address changes on a specific NIC. On Linux, the script works. On FreeBSD, > it fails with: > > [snip] > > def get_ip_address(ifname): > s = socket.socket(socket.AF_INET, socket.SOC

Re: What happened with python? messed strings?

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 15:54:20 -0300, <[EMAIL PROTECTED]> escribió: > I used extensively python and now I find this mess with strings, > I can't even reproduce tutorial examples: "apfel".encode('utf-8') (it was with umlaut) > File "", line 0 >^ > SyntaxError: 'ascii' codec can't decode b

Re: What happened with python? messed strings?

2008-04-20 Thread Arnaud Delobelle
On Apr 20, 7:54 pm, <[EMAIL PROTECTED]> wrote: [...] > python should have stayed at version 1.5, every single 'improvement' > has been a mess. But this is the definitive hell. You can still download Python 1.5.2 from python.org: http://www.python.org/download/releases/1.5/ HTH -- Arnaud -- ht

Re: python setup.py install on Vista?

2008-04-20 Thread Lie
On Apr 20, 9:59 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > It seems that quite a lot of people wondered why python doesn't set > > the environment variable to Python Path in the default installation. > > For several reasons, one being that it's not needed. Just run setup.py > as a program

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

2008-04-20 Thread Hank @ITGroup
Steve Holden wrote: > > You are suffering from a pathological condition yourself: the desire > to optimize performance in an area where you do not have any problems. > I would suggest you just enjoy using Python and then start to ask > these questions again when you have a real issue that's stop

Re: Alternate indent proposal for python 3000

2008-04-20 Thread [EMAIL PROTECTED]
On 20 avr, 17:35, Eric Wertman <[EMAIL PROTECTED]> wrote: > I was considering putting together a proposal for an alternate block > syntax for python, and I figured I'd post it here and see what the > general reactions are. I did some searching, and while I found a lot > of tab vs space debates, I

What happened with python? messed strings?

2008-04-20 Thread algaba
Hi, I used extensively python and now I find this mess with strings, I can't even reproduce tutorial examples: >>> "apfel".encode('utf-8') (it was with umlaut) File "", line 0 ^ SyntaxError: 'ascii' codec can't decode byte 0xc4 in position 1: ordinal not in range(128) >>> Is there a

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

2008-04-20 Thread Martin v. Löwis
> 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 the memory problem, even 4G

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

2008-04-20 Thread Gabriel Genellina
En Sun, 20 Apr 2008 15:02:37 -0300, Torsten Bronger <[EMAIL PROTECTED]> escribió: > Gabriel Genellina writes: >> En Sun, 20 Apr 2008 14:43:17 -0300, Christian Heimes <[EMAIL PROTECTED]> >> escribió: >>> Gabriel Genellina schrieb: >>> Apart from what everyone has already said, consider that >>

I would like to learn scripting in Python too!

2008-04-20 Thread Software Testing
Hello There, I am a software tester and I see lot of testers on the forums saying Python is a wonderful scripting language that testers use on a daily basis. I would also like to learn to script in Python but I do not have any programming background. Please help Thanks Mansa -- http://mail.pyt

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread Roy Smith
In article <[EMAIL PROTECTED]>, sturlamolden <[EMAIL PROTECTED]> wrote: > On Apr 20, 5:28 pm, JB Stern <[EMAIL PROTECTED]> wrote: > > > Curious Steve, how do you pay the rent and by what authority do you > > speak for "The Python world"? Your opinion couldn't be more wrong for > > programmers

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

2008-04-20 Thread Martin v. Löwis
> Pure Python code can cause memory leaks. No, that's not a bug in the > interpreter but the fault of the developer. For example code that messes > around with stack frames and exception object can cause nasty reference > leaks. Can you give an example, please? Regards, Martin -- http://mail.pyt

Re: Alternate indent proposal for python 3000

2008-04-20 Thread Eric Wertman
On Apr 20, 1:29 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 20 Apr 2008 13:42:05 -0300, Matthew Woodcraft <[EMAIL PROTECTED]> > escribió: > > > An alternative scheme for describing the block structure could be > > useful in other cases, though. For example, if you wanted to suppor

Re: Any reliable obfurscator for Python 2.5

2008-04-20 Thread Steve Holden
JB "My first post on c.l.py" Stern wrote: > Banibrata Dutta wrote: >>> Wanted to check if there is any known, reliable, FOSS/Libre -- Obfurscator >>> for Python 2.5 code. > > No, sadly, there is not. There are a number of applications I would be > working on if it were possible to obfuscate pyc f

Re: Alternate indent proposal for python 3000

2008-04-20 Thread Matthew Woodcraft
Terry Reedy <[EMAIL PROTECTED]> wrote: > But you do not really need a variant. Just define a preprocessor > function 'blockify' which converts code in an alternate syntax to > regular indented block syntax. Then > > exec(blockify(alt_code_string)) You can do it like that, but if it were to beco

  1   2   >