RSON v 0.02 available

2010-03-12 Thread Patrick Maupin
RSON (Readable Serial Object Notation) is a superset of JSON that is suitable for files that humans have to edit and diff. The current release is decoder-only, but the decoder will read files encoded by JSON encoders such as json or simplejson. The current release consists of a single Python

PyPy 1.2, JIT included

2010-03-12 Thread Armin Rigo
== PyPy 1.2: Just-in-Time Compilation == PyPy 1.2 has been released. The highlight of this release is to be the first that ships with a Just-in-Time compiler that is known to be faster than CPython (and unladen swallow) on some

Re: file seek is slow

2010-03-12 Thread Stefan Behnel
CHEN Guang, 12.03.2010 08:51: Metalone wrote: I just tried the seek test with Cython. Cython fseek() : 1.059 seconds. 30% slower than 'C' Python f.seek : 1.458 secondds. 80% slower than 'C'. It is amazing to me that Cython generates a 'C' file that is 1478 lines. PythoidC (

Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
Hi, Im programming a simple webcrawler with threading for the fun of it, which is inserting the data fetch into a mysql database, but after continuously cause my mysql server to produce error during database queries (i assume its cause because of the many execution at the same time.) the scipt

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-12 Thread Steven D'Aprano
On Fri, 12 Mar 2010 00:11:37 -0700, Zooko O'Whielacronx wrote: Folks: Every couple of years I run into a problem where some Python code that worked well at small scales starts burning up my CPU at larger scales, and the underlying issue turns out to be the idiom of accumulating data by

Re: file seek is slow

2010-03-12 Thread Stefan Behnel
Metalone, 11.03.2010 23:57: I just tried the seek test with Cython. Cython fseek() : 1.059 seconds. 30% slower than 'C' Python f.seek : 1.458 secondds. 80% slower than 'C'. It is amazing to me that Cython generates a 'C' file that is 1478 lines. Well, it generated an optimised Python

Re: Anything like Effective Java for Python?

2010-03-12 Thread Neo
I have learned java for half a year and now I want to learn Python, should I learn python 3k or the traditional version? On Wed, Mar 10, 2010 at 7:19 AM, kj no.em...@please.post wrote: Subject line pretty much says it all: is there a book like Effective Java for Python. I.e. a book that

Re: bypass UAC control through python script (to be run from batchfile)

2010-03-12 Thread rizwanahme...@gmail.com
Hi Michel. what is this 'resident soff' script, i cannot find it on google. Secondly if i was to install something in admin mode, then i would have installed the application i want to install. The actual problem is that i dont want to manually run something with admin rights and install. still

Re: NoSQL Movement?

2010-03-12 Thread Jonathan Gardner
On Wed, Mar 3, 2010 at 2:41 PM, Avid Fan m...@privacy.net wrote: Jonathan Gardner wrote: I see it as a sign of maturity with sufficiently scaled software that they no longer use an SQL database to manage their data. At some point in the project's lifetime, the data is understood well enough

Re: Need advice on starting a Python group

2010-03-12 Thread Jonathan Gardner
On Thu, Mar 11, 2010 at 6:57 AM, gb345 gb...@invalid.com wrote: And even when we've had volunteers, hardly anyone shows up! Any suggestions would be appreciated. Two things: One, only you and your friend really care. Let that sink in. No one is going to carry the group but you two, at least

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
Following the information from MvL I will try and get the 2.6 pyds built for amd64, I see that there's a cross platform compile technique for distutils, but am not sure if it applies to bdist_winexe etc etc. I'll have a go at this next week. -- Robin Becker --

Re: Reverse engineering CRC?

2010-03-12 Thread Gregory Ewing
Lawrence D'Oliveiro wrote: They could be using a strong cryptographic hash and truncating it to 16 bits or something. In which case you’ve got your work cut out for you... Nope, I've determined that it's actually a pretty standard CRC, and it's even using one of the standard polynomials,

Re: Need advice on starting a Python group

2010-03-12 Thread News123
Jonathan Gardner wrote: On Thu, Mar 11, 2010 at 6:57 AM, gb345 gb...@invalid.com wrote: And even when we've had volunteers, hardly anyone shows up! Any suggestions would be appreciated. Two things: One, only you and your friend really care. Let that sink in. No one is going to carry the

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
On 11/03/2010 18:00, Martin v. Loewis wrote: I have a Windows 7 (64bit AMD) machine .. Perhaps some expert on the python list knows which versions of VS support 64bit; I do have VS 2005/2008 etc, but I'll probably need to set up a 64bit machine to see if they will install on a 64bit

Re: show image in python

2010-03-12 Thread News123
Philip Semanchuk wrote: On Mar 10, 2010, at 5:03 PM, mohamed issolah wrote: Hey, This is my program 18 def Creeimg(): 19 transforme matrice en image 20 img = Image.new (L,(8,8)) 21 matrix = [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] 22 img.putdata(matrix) 23

Unicode characters in btye-strings

2010-03-12 Thread Steven D'Aprano
I know this is wrong, but I'm not sure just how wrong it is, or why. Using Python 2.x: s = éâÄ print s éâÄ len(s) 6 list(s) ['\xc3', '\xa9', '\xc3', '\xa2', '\xc3', '\x84'] Can somebody explain what happens when I put non-ASCII characters into a non-unicode string? My guess is that the

Re: Need advice on starting a Python group

2010-03-12 Thread Jean-Michel Pichavant
News123 wrote: Jonathan Gardner wrote: On Thu, Mar 11, 2010 at 6:57 AM, gb345 gb...@invalid.com wrote: And even when we've had volunteers, hardly anyone shows up! Any suggestions would be appreciated. Two things: One, only you and your friend really care. Let that sink in. No

Re: Parsing Email Headers

2010-03-12 Thread Thomas Guettler
T wrote: Thanks for your suggestions! Here's what seems to be working - it's basically the same thing I originally had, but first checks to see if the line is blank response, lines, bytes = M.retr(i+1) # For each line in message for line in

Re: Need advice on starting a Python group

2010-03-12 Thread Steve Holden
Jean-Michel Pichavant wrote: News123 wrote: Jonathan Gardner wrote: On Thu, Mar 11, 2010 at 6:57 AM, gb345 gb...@invalid.com wrote: And even when we've had volunteers, hardly anyone shows up! Any suggestions would be appreciated. Two things: One, only you and your friend

Re: Anything like Effective Java for Python?

2010-03-12 Thread Steve Holden
Neo wrote: I have learned java for half a year and now I want to learn Python, should I learn python 3k or the traditional version? That depends on whether you need to use specific libraries that haven't yet been ported to Python 3. If so then start with Python 2. If not, start with 3 - the

Re: execute bash builtins in python

2010-03-12 Thread Steve Holden
alex goretoy wrote: hi, i'm trying to write a section of my program that needs to run bash builtin alias and declare, i've googled and tried every type of example i could find no to avail. this is what I've tried below and it doesn't work, is there a way for me to execute a bah builin from

Re: Python dos2unix one liner

2010-03-12 Thread Albert van der Horst
In article hmdlc0$oc...@news.eternal-september.org, Martin P. Hellwig martin.hell...@dcuktec.org wrote: On 02/28/10 11:05, Stefan Behnel wrote: Steven D'Aprano, 28.02.2010 09:48: There ought to be some kind of competition for the least efficient solution to programming problems That wouldn't

Re: Need advice on starting a Python group

2010-03-12 Thread bartc
gb345 gb...@invalid.com wrote in message news:hnb0d1$2e...@reader1.panix.com... A friend of mine and I have been trying to start a scientific-programming-oriented Python group in our school (of medecine and bio research), with not much success. The main problem is attendance. Even though a

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-12 Thread MRAB
Steven D'Aprano wrote: On Fri, 12 Mar 2010 00:11:37 -0700, Zooko O'Whielacronx wrote: Folks: Every couple of years I run into a problem where some Python code that worked well at small scales starts burning up my CPU at larger scales, and the underlying issue turns out to be the idiom of

result of os.times() is different with 'time' command Options

2010-03-12 Thread hiral
Hi, Python version: 2.6 Script: def pt(start_time, end_time): def ptime(time, time_str): min, sec = divmod(time, 60) hr, min = divmod(min, 60) stmt = time_str + '\t' if hr: stmt += str(hr) + 'h' stmt += str(min) + 'm' + str(sec) + 's'

python module/utility equivalent to 'time' (linux) and/or 'ntimer'(Windows)

2010-03-12 Thread hiral
Hi, Is there any python module/utility available which would report the time same as 'time' command in linux and/or report time same as 'ntimer' utility in Windows. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

to create variable from dict

2010-03-12 Thread hiral
Hi, Is there any way to create variables which name matches with dict key? For example: dict1 = {abc:'1, def:2} Now I am looking to have variable name abc and it's value be '1' etc. Pl. suggest. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: inspect.stack() and frame

2010-03-12 Thread Félix-Antoine Fortin
Thanks Gabriel, you resumed quite well what I did discovered after my second post by playing with the garbage collector module. (The garbage collector will,   eventually, break the cycle and free those objects, but not very soon). I'm not very familiar with the Python garbage collector, so you

Re: Reverse engineering CRC?

2010-03-12 Thread Emile van Sebille
On 3/12/2010 3:24 AM Gregory Ewing said... What confused me initially is that it seems to be adding a few extra bytes to the checked data that aren't present in the file. Figuring out what they're supposed to contain is proving to be quite a headache... Length? Emile --

Re: NoSQL Movement?

2010-03-12 Thread D'Arcy J.M. Cain
On Fri, 12 Mar 2010 01:05:27 -0800 Jonathan Gardner jgard...@jonathangardner.net wrote: Let me give you an example. I worked on a system that would load recipients for email campaigns into a database table. The SQL database was nice during the initial design and prototype stage because we

Re: to create variable from dict

2010-03-12 Thread Tim Chase
hiral wrote: Is there any way to create variables which name matches with dict key? For example: dict1 = {abc:'1, def:2} Now I am looking to have variable name abc and it's value be '1' etc. 1) you can't because def is a reserved word in Python. 2) why do you want to? This seems to come up

Re: to create variable from dict

2010-03-12 Thread Luis M . González
On Mar 12, 10:59 am, hiral hiralsmaill...@gmail.com wrote: Hi, Is there any way to create variables which name matches with dict key? For example: dict1 = {abc:'1, def:2} Now I am looking to have variable name abc and it's value be '1' etc. Pl. suggest. Thank you. Check out this

Re: to create variable from dict

2010-03-12 Thread Jean-Michel Pichavant
Luis M. González wrote: On Mar 12, 10:59 am, hiral hiralsmaill...@gmail.com wrote: Hi, Is there any way to create variables which name matches with dict key? For example: dict1 = {abc:'1, def:2} Now I am looking to have variable name abc and it's value be '1' etc. Pl. suggest. Thank

Exiting gracefully from ThreadingTCPServer

2010-03-12 Thread Pete Emerson
I'm trying to get threading going for the first time in python, and I'm trying to modify code I found so that I can have the server close the TCP connections and exit gracefully. Two problems: 1) While the KeyboardInterrupt works, if I make more than 0 curls to the server and then quit, I can't

Re: Unicode characters in btye-strings

2010-03-12 Thread Robert Kern
On 2010-03-12 06:35 AM, Steven D'Aprano wrote: I know this is wrong, but I'm not sure just how wrong it is, or why. Using Python 2.x: s = éâÄ print s éâÄ len(s) 6 list(s) ['\xc3', '\xa9', '\xc3', '\xa2', '\xc3', '\x84'] Can somebody explain what happens when I put non-ASCII characters

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Robin Becker
On 12/03/2010 11:40, Robin Becker wrote: I assume I can get those from a working Python amd64 install and stuff on one of the compiler paths somehow. Not sure if this is a bug; I dug around a bit and find that because of the cross compilation distutils is supposed to add an extra

Re: inspect.stack() and frame

2010-03-12 Thread MRAB
Félix-Antoine Fortin wrote: Thanks Gabriel, you resumed quite well what I did discovered after my second post by playing with the garbage collector module. (The garbage collector will, eventually, break the cycle and free those objects, but not very soon). I'm not very familiar with the

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
Sorry but its not really an option for me with PostgreSQL. Thanks anyway. I wonder if there is a simple way of just queueing the run of a function make it only run once at a time but by multiply threads? :) On Fri, 12 Mar 2010 00:54:57 -0800, Jonathan Gardner jgard...@jonathangardner.net wrote:

Re: Anything like Effective Java for Python?

2010-03-12 Thread Gabriel Rossetti
kj wrote: Subject line pretty much says it all: is there a book like Effective Java for Python. I.e. a book that assumes that readers are experienced programmers that already know the basics of the language, and want to focus on more advanced programming issues? ~K Effective Java is a

Re: python module/utility equivalent to 'time' (linux) and/or 'ntimer'(Windows)

2010-03-12 Thread Godson Gera
Take a look at hotshot module of python http://docs.python.org/library/hotshot.html On Fri, Mar 12, 2010 at 7:26 PM, hiral hiralsmaill...@gmail.com wrote: Hi, Is there any python module/utility available which would report the time same as 'time' command in linux and/or report time same as

RE: Visual Python programming and decompilers?

2010-03-12 Thread Billy Earney
Ludolph, This reminds me of the orange project which is developed in python. http://www.ailab.si/orange/ It is actually for data mining, but many of the concepts could be used for a more general programming structure. Billy -Original Message- From:

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread D'Arcy J.M. Cain
On Fri, 12 Mar 2010 15:56:12 + John P. mailingli...@riddergarn.dk wrote: Sorry but its not really an option for me with PostgreSQL. Thanks anyway. Why? It's your best option. Any other solutions that you can't use before people give you more suggestions? -- D'Arcy J.M. Cain

Help Troubleshooting

2010-03-12 Thread Victor Subervi
Hi; I'm running Pexpect (no discussion list) with the following code: #! /usr/bin/python import pexpect def runVpopmail(whatdo, acct, domain, newpw, oldpw=''): if whatdo == 'vadduser': child = pexpect.spawn('/home/vpopmail/bin/%s %...@%s %s' % (whatdo, acct, domain, newpw)) elif whatdo

Re: Visual Python programming and decompilers?

2010-03-12 Thread Tim Wintle
On Thu, 2010-03-11 at 20:38 +0200, Ludolph wrote: I decided I can use byteplay3 http://pypi.python.org/pypi/byteplay/ to disassemble the code to workable objects, It even allows me to rebuild the objects to bytecode. So if I define patterns on how python interrupts the source code to

Re: Asynchronous HTTP client

2010-03-12 Thread Antoine Pitrou
Le Sun, 07 Mar 2010 22:40:36 +0800, pingooo a écrit : I'm writing an open source python client for a web service. The client may be used in all kinds of environments - Linux, Mac OS X, Windows, web hosting, etc by others. It is not impossible to have twisted as a dependency, but that makes

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
On Fri, 12 Mar 2010 11:22:04 -0500, D'Arcy J.M. Cain da...@druid.net wrote: On Fri, 12 Mar 2010 15:56:12 + John P. mailingli...@riddergarn.dk wrote: Sorry but its not really an option for me with PostgreSQL. Thanks anyway. Why? It's your best option. Any other solutions that you can't

Re: file seek is slow

2010-03-12 Thread Antoine Pitrou
Le Tue, 09 Mar 2010 15:56:47 -0800, Metalone a écrit : for i in xrange(100): f1.seek(0) This is quite a stupid benchmark to write, since repeatedly seeking to 0 is a no-op. I haven't re-read the file object code recently, but chances are that the Python file object has its own

Re: Threading, Queue for a function so it only runs once at a time.

2010-03-12 Thread John P.
On Fri, 12 Mar 2010 16:49:04 +, John P. mailingli...@riddergarn.dk wrote: On Fri, 12 Mar 2010 11:22:04 -0500, D'Arcy J.M. Cain da...@druid.net wrote: On Fri, 12 Mar 2010 15:56:12 + John P. mailingli...@riddergarn.dk wrote: Sorry but its not really an option for me with PostgreSQL.

Re: Need advice on starting a Python group

2010-03-12 Thread CM
On Mar 11, 9:57 am, gb345 gb...@invalid.com wrote: I'm hoping to get advice from anyone with prior experience setting up a Python group. A friend of mine and I have been trying to start a scientific-programming-oriented Python group in our school (of medecine and bio research), with not much

question regarding wxSlider

2010-03-12 Thread Ugo Cupcic
Hi all, I have a question regarding wxSlider. I'm developing a wxwidget python interface for a robotic hand. The sliders send the target values to the joints. I'd like to display the current position of the joint on the slider. I wanted to use wxSlider.SetTick(myposition) but I couldn't get

Re: execute bash builtins in python

2010-03-12 Thread alex goretoy
Steve thank you. The problem is that you can only run commands from Popen or os.system and stuff. You cant run bash shell builtin commands for some reason. I was able to get this to work. What I did is call this: Popen([bash -c 'source $HOME/.bashrc;alias'],shell=True,stdout=PIPE).stdout.read()

Re: question regarding wxSlider

2010-03-12 Thread Philip Semanchuk
On Mar 12, 2010, at 1:56 PM, Ugo Cupcic wrote: Hi all, I have a question regarding wxSlider. I'm developing a wxwidget python interface for a robotic hand. The sliders send the target values to the joints. I'd like to display the current position of the joint on the slider. I wanted to use

Re: Need advice on starting a Python group

2010-03-12 Thread Kurt Smith
On Thu, Mar 11, 2010 at 8:57 AM, gb345 gb...@invalid.com wrote: I'm hoping to get advice from anyone with prior experience setting up a Python group. A friend of mine and I have been trying to start a scientific-programming-oriented Python group in our school (of medecine and bio

Re: Python, Reportlabs, Pil and Windows 7 (64bit)

2010-03-12 Thread Martin v. Löwis
Not sure if this is a bug I think it is. It seems that the cross-build support in msvc9compiler has been tested only in a build tree of Python (where there is no Libs directory). For released copies of Python, I could change that to distribute the AMD64 pythonXY.lib in libs/amd64. [FWIW, I'm

Re: NoSQL Movement?

2010-03-12 Thread Paul Rubin
D'Arcy J.M. Cain da...@druid.net writes: Just curious, what database were you using that wouldn't keep up with you? I use PostgreSQL and would never consider going back to flat files. Try making a file with a billion or so names and addresses, then compare the speed of inserting that many

Re: file seek is slow

2010-03-12 Thread Metalone
I almost wrote a long reply to all this. In the end it boils down to being concerned about how much overhead there is to calling a 'C' function. I assumed that file.seek() simply delegated to fseek() and thus was one way to test this overhead. However, I now think that it must be doing more and

Re: Anything like Effective Java for Python?

2010-03-12 Thread John Bokma
Gabriel Rossetti gabriel.rosse...@arimaz.com writes: kj wrote: Subject line pretty much says it all: is there a book like Effective Java for Python. I.e. a book that assumes that readers are experienced programmers that already know the basics of the language, and want to focus on more

Re: Unicode characters in btye-strings

2010-03-12 Thread Martin v. Loewis
Can somebody explain what happens when I put non-ASCII characters into a non-unicode string? My guess is that the result will depend on the current encoding of my terminal. Exactly right. To elaborate on the what happens part: the string that gets entered is typically passed as a byte

Re: Unicode characters in btye-strings

2010-03-12 Thread Michael Rudolf
Am 12.03.2010 21:56, schrieb Martin v. Loewis: (*) If a source encoding was given, the source is actually recoded to UTF-8, parsed, and then re-encoded back into the original encoding. Why is that? So unicode-strings (as in ustring) are not really unicode-, but utf8-strings? Need citation

converting datetime with tzinfo to unix timestamp

2010-03-12 Thread Michael Torrie
On Python 2.5 here. I've searched and searched but I can't find any way to convert a datetime object that includes a timezone (tzinfo) to a unix timestamp. Folks on the net say to simply use the timetuple() method of the object and feed that to time.mktime(). But that just doesn't seem to work

Re: Unicode characters in btye-strings

2010-03-12 Thread John Bokma
Michael Rudolf spamfres...@ch3ka.de writes: Am 12.03.2010 21:56, schrieb Martin v. Loewis: (*) If a source encoding was given, the source is actually recoded to UTF-8, parsed, and then re-encoded back into the original encoding. Why is that? So unicode-strings (as in ustring) are not really

Re: Unicode characters in btye-strings

2010-03-12 Thread Martin v. Loewis
Michael Rudolf wrote: Am 12.03.2010 21:56, schrieb Martin v. Loewis: (*) If a source encoding was given, the source is actually recoded to UTF-8, parsed, and then re-encoded back into the original encoding. Why is that? Why is what? That string literals get reencoded into the source

POS Tagging

2010-03-12 Thread Hephzibah
I just started working on POS tagging with these codes: import nltk text = nltk.word_tokenize(And now for something completely different) #print text print nltk.pos_tag(text) Python prompted me to download a resource with these codes: Resource 'taggers/maxent_treebank_pos_tagger/english.pickle'

Re: POS Tagging

2010-03-12 Thread John Bokma
Hephzibah morecr...@gmail.com writes: ImportError: No module named numpy Can someone pls. tell me what I'm supposed to do next? Install numpy would be my first guess. -- John Bokma j3b Hacking Hiking in Mexico -

Python eCommerce, small webshop

2010-03-12 Thread Alexander Kapps
Hello everybody! I have to set up a small webshop for used books, CDs, DVD, and stuff and did't find anything realy usefull on google. I'm pretty skilled with Python and would strongly prefer a Python based Shop but all I've found are in early stage, unmaintained or too limited. I've

Re: Python eCommerce, small webshop

2010-03-12 Thread Emile van Sebille
On 3/12/2010 5:02 PM Alexander Kapps said... Hello everybody! I have to set up a small webshop for used books, CDs, DVD, and stuff and did't find anything realy usefull on google. Have you checked the current status of Satchmo? Emile I'm pretty skilled with Python and would strongly

Python eCommerce, small webshop

2010-03-12 Thread Alexander Kapps
Hello everybody! I have to set up a small webshop for used books, CDs, DVD, and stuff and did't find anything realy usefull on google. I'm pretty skilled with Python and would strongly prefer a Python based Shop but all I've found are in early stage, unmaintained or too limited. I've

Re: Python eCommerce, small webshop

2010-03-12 Thread Alexander Kapps
Sorry, Emile for the private post, one beer too much and the wrong button... ;-) Emile van Sebille wrote: On 3/12/2010 5:02 PM Alexander Kapps said... Hello everybody! I have to set up a small webshop for used books, CDs, DVD, and stuff and did't find anything realy usefull on google.

Re: StringChain -- a data structure for managing large sequences of chunks of bytes

2010-03-12 Thread Steven D'Aprano
On Fri, 12 Mar 2010 13:40:23 +, MRAB wrote: To be taken seriously, I think you need to compare stringchain to the list idiom. If your benchmarks favourably compare to that, then it might be worthwhile. IIRC, someone did some work on making concatenation faster by delaying it until a

python to exe

2010-03-12 Thread Robin
Does anyone know of a good python to stand alone exe compiler? Thanks, -Robin -- http://mail.python.org/mailman/listinfo/python-list

Re: python to exe

2010-03-12 Thread Chris Rebert
On Fri, Mar 12, 2010 at 7:26 PM, Robin rob...@cnsp.com wrote: Does anyone know of a good python to stand alone exe compiler? py2exe: http://www.py2exe.org/ Cheers, Chris -- http://blog.rebertia.com -- http://mail.python.org/mailman/listinfo/python-list

Re: file seek is slow

2010-03-12 Thread CHEN Guang
Metalone wrote: I just tried the seek test with Cython. Cython fseek() : 1.059 seconds. 30% slower than 'C' Python f.seek : 1.458 secondds. 80% slower than 'C'. It is amazing to me that Cython generates a 'C' file that is 1478 lines. PythoidC ( http://pythoidc.googlecode.com ) generates

Re: python to exe

2010-03-12 Thread Gabriel Genellina
On 13 mar, 00:26, Robin rob...@cnsp.com wrote: Does anyone know of a good python to stand alone exe compiler? http://tinyurl.com/yfcfzz4 -- http://mail.python.org/mailman/listinfo/python-list

Re: python to exe

2010-03-12 Thread John Bokma
Gabriel Genellina gagsl-...@yahoo.com.ar writes: On 13 mar, 00:26, Robin rob...@cnsp.com wrote: Does anyone know of a good python to stand alone exe compiler? http://tinyurl.com/yfcfzz4 Wow, pathetic fuck. You don't have to post you know. -- John Bokma

Re: POS Tagging

2010-03-12 Thread Hephzibah
On Mar 12, 4:33 pm, John Bokma j...@castleamber.com wrote: Hephzibah morecr...@gmail.com writes: ImportError: No module named numpy Can someone pls. tell me what I'm supposed to do next? Install numpy would be my first guess. -- John Bokma                                                

Re: python to exe

2010-03-12 Thread Chris Rebert
On Fri, Mar 12, 2010 at 8:42 PM, robin rob...@cnsp.com wrote: On 3/12/2010 9:12 PM, Chris Rebert wrote: On Fri, Mar 12, 2010 at 7:26 PM, Robinrob...@cnsp.com  wrote: Does anyone know of a good python to stand alone exe compiler? py2exe: http://www.py2exe.org/ do you  of an alternate

Re: python to exe

2010-03-12 Thread Steven D'Aprano
On Fri, 12 Mar 2010 22:26:34 -0600, John Bokma wrote: Gabriel Genellina gagsl-...@yahoo.com.ar writes: On 13 mar, 00:26, Robin rob...@cnsp.com wrote: Does anyone know of a good python to stand alone exe compiler? http://tinyurl.com/yfcfzz4 Wow, pathetic fuck. You don't have to post you

[issue8120] Py_Initialize: Can't initialize system standard streams

2010-03-12 Thread Hamed J.I
New submission from Hamed J.I hamed...@gmail.com: While try to run Python.exe version 3.1 or 3.2 RC2 on Windows 7 or Windows XP SP2 get the following error: Py_Initialize: Can't initialize system standard streams Lookup Error: unknown encoding: cp720 after download and install cp720.py to

[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

2010-03-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: I think this change is worth a sentence in the documentation. Improved algorithm is a bit terse. -- nosy: +amaury.forgeotdarc status: closed - open ___ Python tracker rep...@bugs.python.org

[issue8120] Py_Initialize: Can't initialize system standard streams

2010-03-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: two questions: - where did you obtain cp720.py, are you sure it was a python3 version? - I've never seen a 3.2 RC2 version. Did you mean the py3k branch? -- nosy: +amaury.forgeotdarc ___

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: 'None' has always been the documented default for the encoding parameter That's probably mostly by accident at least in original ET, but the 1.3 draft docs at effbot.org/elementtree does spell it out explicitly for the 'write' method:

[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

2010-03-12 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Clarified Misc/NEWS entry and added a paragraph to the documentation on TimedRotatingFileHandler (r78855). -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Things getting worse before they get better? http://docs.python.org/ now shows the 2.7a4 documentation, which is really not good. Perhaps we need some safeguards to make sure that http://docs.python.org/ is a *stable* version of the docs? :P

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Oh, actually, looks like something was redirecting from docs.python.org to docs.python.org/dev. It seems fixed now. (It wasn't just me, though, I got complaints from others that it was 2.7a4 for at least an hour.) --

[issue8120] Py_Initialize: Can't initialize system standard streams

2010-03-12 Thread Hamed J.I
Hamed J.I hamed...@gmail.com added the comment: in fact i'm not sure it is compatible with python 3.1 i have download it from http://blog.oneortheother.info/tip/python-fix-cp720-encoding/ -- ___ Python tracker rep...@bugs.python.org

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Uh oh. Definitely. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___ ___ Python-bugs-list

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Oh, just now saw your second message. At least it's back to semi-broken now :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___ ___ Python-bugs-list mailing list

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Changes by Thomas Wouters tho...@python.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8111 ___ ___ Python-bugs-list mailing list

[issue8111] docs.python.org/download.html unhelpful.

2010-03-12 Thread Thomas Wouters
Thomas Wouters tho...@python.org added the comment: Nevermind the 2.7a4 comments, I think I'm just not all awake yet. The complaints I got were about it being 2.6.5c2, my browser showing me 2.7a4 may have been stupid autocompletion or something. (Still, please fix :) --

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: (what's the Python 3 replacement for the array module, btw?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8047 ___

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: 'None' has always been the documented default for the encoding parameter What I meant here was that help(ET.tostring) will show you that as the default. Also, in the docs, the signature is tostring(tree, encoding=None), so None is

[issue8117] TimedRotatingFileHandler doesn't rotate log file at startup.

2010-03-12 Thread Yuriy Taraday
Yuriy Taraday yorik@gmail.com added the comment: Can this change be included in the 2.6 release? It's small enough but necessary for our current development. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8117

[issue8120] Py_Initialize: Can't initialize system standard streams

2010-03-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: cp720.py was added a few months ago, and will be available with 3.2. for the impatient, it's here: http://svn.python.org/view/python/branches/py3k/Lib/encodings/cp720.py?view=markup -- resolution: - out of date status: open -

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: Yes, the feature has been implemented deep down in the _encode() helper function, so it impacts the entire serialiser, not only its API Ouch. import locale locale.getpreferredencoding() == utf-8 False from xml.etree.ElementTree import *

[issue8121] Typo in cStringIO

2010-03-12 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth wxjmfa...@gmail.com: There is a malformed string in the module cStringIO. StringI -- StringIO sys.version 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] StringIO.StringIO('123') StringIO.StringIO instance at 0x02D230D0

[issue8121] Typo in cStringIO

2010-03-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: That name is actually correct. cStringIO features two different types, depending on whether you call cStringIO.StringIO() with or without an argument. One is called StringI, the other StringO. -- nosy: +georg.brandl resolution: -

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: I wouldn't raise much opposition against tobytes() as an alias for tostring(), although that sounds more like duplicating an otherwise simple API. Adding an alias would be a way address the 2.X/3.X terminology overlap; string traditionally

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Changes by Fredrik Lundh fred...@effbot.org: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8047 ___ ___ Python-bugs-list mailing list

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-12 Thread Fredrik Lundh
Fredrik Lundh fred...@effbot.org added the comment: I wouldn't raise much opposition against tobytes() as an alias for tostring(), although that sounds more like duplicating an otherwise simple API. Adding an alias would be a way address the 2.X/3.X terminology overlap; string traditionally

  1   2   >