[ANN]VTD-XML 2.10

2011-02-26 Thread Jimmy
VTD-XML 2.10 is now released. It can be downloaded at https://sourceforge.net/projects/vtd-xml/files/vtd-xml/ximpleware_2.10/. This release includes a number of new features and enhancement. * The core API of VTD-XML has been expanded. Users can now perform cut/paste/insert on an empty element. *

Re: Python getting stuck

2011-02-26 Thread Westley Martínez
On Sat, 2011-02-26 at 17:10 -0800, Dan Stromberg wrote: > > On Sat, Feb 26, 2011 at 4:03 PM, Corey Richardson > wrote: > On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: > > Hi All, > > > > When I use cut, copy, paste, and any keyboard shortcuts, > P

Executing js/ajax in a sandboxed environment

2011-02-26 Thread Rohan Malhotra
I need to parse a url for it's content in python. I want to execute all js of html page associated with the url and then parse for the content so that javascript induced changes in content are also present. I was wondering if there is a way to execute js associated in page in sandbox environment be

Re: Python getting stuck

2011-02-26 Thread Dan Stromberg
On Sat, Feb 26, 2011 at 4:03 PM, Corey Richardson wrote: > On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: > > Hi All, > > > > When I use cut, copy, paste, and any keyboard shortcuts, Python freezes > and I am unable to use Python. Please Help as quick as possible!!! > > What OS? Are you

Re: jQuery-like sliding container animations for Tkinter?

2011-02-26 Thread Corey Richardson
On 02/26/2011 07:24 PM, pyt...@bdurham.com wrote: > Any thoughts on the ability to implement jQuery-like sliding > container animations in Tkinter? By jQuery animations I mean the > smooth sliding effects one sees on many websites where containers > slide in and out of visible view or smoothly shri

jQuery-like sliding container animations for Tkinter?

2011-02-26 Thread python
Any thoughts on the ability to implement jQuery-like sliding container animations in Tkinter? By jQuery animations I mean the smooth sliding effects one sees on many websites where containers slide in and out of visible view or smoothly shrink or grow? My working knowledge of Tkinter tells me that

Re: Python getting stuck

2011-02-26 Thread Corey Richardson
On 02/26/2011 06:55 PM, Shanush Premathasarathan wrote: > Hi All, > > When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I > am unable to use Python. Please Help as quick as possible!!! What OS? Are you using the standard interpreter? Are you using IDLE, bpython, etc? Wh

Python getting stuck

2011-02-26 Thread Shanush Premathasarathan
Hi All, When I use cut, copy, paste, and any keyboard shortcuts, Python freezes and I am unable to use Python. Please Help as quick as possible!!! Thanks a lot. Kind Regards Big Python fan! Shanush -- http://mail.python.org/mailman/listinfo/python-list

Re: Suggestion Reqd for Designing a Website in Python

2011-02-26 Thread Ritesh Nadhani
I would look into Flask or Pyramid. Just my $0.02. On Fri, Feb 25, 2011 at 7:03 AM, Daniel Fetchinson wrote: >>> >I have developed one big Machine Learning software a Machine >>> >Translation system in Python. >>> >Now, I am thinking to make a User Interface of it and upload it in a >>> >web sit

Re: come back and find python 3

2011-02-26 Thread Terry Reedy
On 2/26/2011 2:36 PM, pipehappy wrote: To answer your questions, as I understand them. 1. Print was not removed, just changed to a function: a. gets rid of special-case hackish syntax like >> and trailing comma by using keyword args instead, becoming more flexible as a result; b. function can

Re: come back and find python 3

2011-02-26 Thread Westley Martínez
On Sat, 2011-02-26 at 11:36 -0800, pipehappy wrote: > Hi, all > > Just come back to use Python, but find something has changed in Python > 3. > Like package name is no longer with capitalized char for each word in > the name; > convenient print is removed. > > And I don't know why can someone ins

Re: come back and find python 3

2011-02-26 Thread Emile van Sebille
On 2/26/2011 11:36 AM pipehappy said... Hi, all Just come back to use Python, but find something has changed in Python 3. Like package name is no longer with capitalized char for each word in the name; convenient print is removed. And I don't know why can someone inside explain to me about this

come back and find python 3

2011-02-26 Thread pipehappy
Hi, all Just come back to use Python, but find something has changed in Python 3. Like package name is no longer with capitalized char for each word in the name; convenient print is removed. And I don't know why can someone inside explain to me about this. I think old package name is better for r

Re: backwards-compatibility

2011-02-26 Thread Terry Reedy
On 2/26/2011 11:32 AM, Benjamin Kaplan wrote: On Sat, Feb 26, 2011 at 8:11 AM, Jason Swails wrote: Hello, I have a question I was having a difficult time finding with a quick google search, so I figured someone on here might know. For the sake of backwards compatibility (and supporting system

Re: parsing a file for analysis

2011-02-26 Thread Rita
Yes, Yes :-). I was using awk to do all of this. It does work but I find myself repeating reading the same data because awk does not support complex data structures. Plus the code is getting ugly. I was told about Orange (http://orange.biolab.si/). Does anyone have experience with it? On Sat,

Re: backwards-compatibility

2011-02-26 Thread Benjamin Kaplan
On Sat, Feb 26, 2011 at 8:11 AM, Jason Swails wrote: > Hello, > > I have a question I was having a difficult time finding with a quick google > search, so I figured someone on here might know.  For the sake of backwards > compatibility (and supporting systems whose default python is OLD), I'd like

Re: parsing a file for analysis

2011-02-26 Thread Rita
Thanks Andrea. I was thinking that too but I was wondering if there were any other clever ways of doing this. I also though, I can build a filesystem structure depending on the __time. So, for January 01, 2011. I would create /tmp/data/20110101/data . This way I can have a fast index of the data. A

Re: parsing a file for analysis

2011-02-26 Thread Martin Gregorie
On Sat, 26 Feb 2011 16:29:54 +0100, Andrea Crotti wrote: > Il giorno 26/feb/2011, alle ore 06.45, Rita ha scritto: > >> I have a large text (4GB) which I am parsing. >> >> I am reading the file to collect stats on certain items. >> >> My approach has been simple, >> >> for row in open(file): >

Re: parsing a file for analysis

2011-02-26 Thread Andrea Crotti
Il giorno 26/feb/2011, alle ore 06.45, Rita ha scritto: > I have a large text (4GB) which I am parsing. > > I am reading the file to collect stats on certain items. > > My approach has been simple, > > for row in open(file): > if "INFO" in row: > line=row.split() > user=line[0] >

Re: py3k: datetime resolution / isoformat

2011-02-26 Thread yves
On 11-02-25 07:49 PM, Ned Deily wrote: datetime.datetime.now().replace(microsecond=0).isoformat() '2011-02-25T18:48:24' Ah, Thanks! -- Yves. http://www.SollerS.ca/ http://blog.zioup.org/ -

backwards-compatibility

2011-02-26 Thread Jason Swails
Hello, I have a question I was having a difficult time finding with a quick google search, so I figured someone on here might know. For the sake of backwards compatibility (and supporting systems whose default python is OLD), I'd like to rewrite some code to be compliant with Pythons as old as 2.

Re: py3k: converting int to bytes

2011-02-26 Thread J. Gerlach
Am 26.02.2011 12:26, schrieb J. Gerlach: > Am 24.02.2011 17:19, schrieb s...@uce.gov: >> >> Is there a better way to convert int to bytes then going through strings: >> >> x=5 >> str(x).encode() >> >> >> Thanks. >> > >>> bytes([8]) > b'\x08' > seems more straight forward... ... but it gives

Re: py3k: converting int to bytes

2011-02-26 Thread J. Gerlach
Am 24.02.2011 17:19, schrieb s...@uce.gov: > > Is there a better way to convert int to bytes then going through strings: > > x=5 > str(x).encode() > > > Thanks. > >>> bytes([8]) b'\x08' seems more straight forward... -- http://mail.python.org/mailman/listinfo/python-list

Re: getpass and IDEs

2011-02-26 Thread Nobody
On Fri, 25 Feb 2011 11:50:35 -0500, Andrew wrote: > I find that calling getpass produces a warning noting that it can't > suppress output, if I'm using idle, wingide, or a few others. If I'm > running from the console it works fine, but then I can't make use of > ide-integrated debugging. > > I

Proxy to open blocked sites

2011-02-26 Thread Ahmed Ragab
Proxy to open blocked sites http://ppropx.4mtm.net OR http://pronet.4mtm.net -- http://mail.python.org/mailman/listinfo/python-list