Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 3:57 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Justin T. wrote: > > Hello, > > > While I don't pretend to be an authority on the subject, a few days of > > research has lead me to believe that a discussion needs to be started > > (or conti

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 3:52 am, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Fri, 10 Aug 2007 10:01:51 -, "Justin T." <[EMAIL PROTECTED]> wrote: > >Hello, > > >While I don't pretend to be an authority on the subject, a few days of > >research h

The Future of Python Threading

2007-08-10 Thread Justin T.
ng has been fully realized as THE next big problem for computer science, the time is ripe for discussing how we will approach multi-threading in the future. Justin [1] I haven't actually looked at the GIL code. It's possible that it creates a bunch of wait queues for each nice level tha

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
On Aug 10, 2:02 pm, [EMAIL PROTECTED] (Luc Heinrich) wrote: > Justin T. <[EMAIL PROTECTED]> wrote: > > What these seemingly unrelated thoughts come down to is a perfect > > opportunity to become THE next generation language. > > Too late: <http://www.erlang.org/>

Re: The Future of Python Threading

2007-08-10 Thread Justin T.
t work is certainly one way to come up with such evidence. :) ::Sigh:: I honestly don't see myself having time to really do anything more than experiment with this. Perhaps I will try to do that though. Sometimes I do grow bored of my other projects. :) Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb: ValueError Something Stupid

2007-09-09 Thread Justin Ezequiel
On Sep 7, 10:39 pm, mcl <[EMAIL PROTECTED]> wrote: > On 7 Sep, 14:11, Carsten Haese <[EMAIL PROTECTED]> wrote: > > > > > On Fri, 2007-09-07 at 05:52 -0700, mcl wrote: > > > > ValueError: invalid literal for int(): 0- > > > > args = ('invalid literal for int(): 0-',) > > > > >

Re: Dialog with a process via subprocess.Popen blocks forever

2007-03-02 Thread bayer . justin
> If you are both waiting for input, you have a Mexican standoff... That is not the problem. The problem is, that the buffers are not flushed correctly. It's a dialogue, so nothing complicated. But python does not get what the subprocess sends onto the subprocess' standard out - not every time, an

Re: getting local system information with python

2007-03-15 Thread Justin Ezequiel
On Mar 16, 2:27 pm, Astan Chee <[EMAIL PROTECTED]> wrote: > Hi, > I have a python script and I want to check what operating system it is > on and what the current local machine name is. > How do I do it with python? > Thanks! > Astan import platform platform.uname() -- http://mail.python.org/mai

Re: shutil.copy Problem

2007-03-26 Thread Justin Ezequiel
On Mar 27, 11:10 am, David Nicolson <[EMAIL PROTECTED]> wrote: > Hi, > > I wasn't exactly sure where to send this, I don't know if it is a bug > in Python or not. This is rare, but it has occurred a few times and > seems to be reproducible for those who experience it. > > Examine this code: > >>>

Re: wxPython, Syntax highlighting

2007-03-27 Thread Justin Ezequiel
On Mar 28, 2:56 pm, "Eric von Horst" <[EMAIL PROTECTED]> wrote: > I am looking for wx widget that has the ability to show text, edit the > text (like a TextCtrl) but also does syntax highlighting (if the text > is e.g. XML or HTML). > I have been looking in the latest wxPython version but I could

Re: BeautifulSoup vs. Microsoft

2007-03-29 Thread Justin Ezequiel
On Mar 29, 4:08 pm, Duncan Booth <[EMAIL PROTECTED]> wrote: > John Nagle <[EMAIL PROTECTED]> wrote: > > title="

Re: BeautifulSoup vs. Microsoft

2007-03-29 Thread Justin Ezequiel
On Mar 29, 6:11 pm, "Justin Ezequiel" <[EMAIL PROTECTED]> wrote: > > FWIW, seehttp://tinyurl.com/yjtzjz > hmm. not quite right. http://tinyurl.com/ynv4ct or http://www.crummy.com/software/BeautifulSoup/documentation.html#Customizing%20the%20Parser -- http://mail.py

UDT wrappers

2007-04-11 Thread Justin Ezequiel
Found a couple of papers that mention Python wrappers for UDT have been written but Google fails me. Do any of you know of such wrappers? Have downloaded UDT SDK but source is in C++. http://udt.sourceforge.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: python newbie beautifulSoup question

2007-04-11 Thread Justin Ezequiel
On Apr 12, 4:15 am, Jon Crump <[EMAIL PROTECTED]> wrote: > Is it possible to feed findAll() a list of tags WITH attributes? >>> BeautifulSoup.__version__ '3.0.3' >>> s = '''\nboo\nhello\n>> a="bar">boo\nhi\n''' >>> soup = BeautifulSoup.BeautifulSoup(s) >>> def func(tag): ... if tag.name not i

SQLite problems

2007-04-12 Thread bayer . justin
d file format If I create the database file with sqlite and open it from within python, I cannot run any queries on that database, but no error is thrown - it just passes silently. Any ideas? Regards, -Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite problems

2007-04-12 Thread bayer . justin
> Why fink ?, it is very easy to make sqlite. download the source, > configure, make and install from terminal I did so and now I have the latest sqlite version. But it did not make a difference. -- http://mail.python.org/mailman/listinfo/python-list

Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor

2007-01-10 Thread Justin Johnson
llowing in /usr/include/math.h, but am not sure how this relates. #ifdef __IBMC__ #if (__xlC__ >= 0x0600) /* VAC version 6 and above */ #define floor(__x)__floor(__x) #define ceil(__x) __ceil(__x) #endif /* __xlC__ >= 0x0600 */ #endif /* __IBMC__ */ Does anyone know what I am doing wrong here. Any help is appreciated. Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building Python 2.5.0 on AIX 5.3 - Undefined symbol: .__floor

2007-01-10 Thread Justin Johnson
It looks like I just need to upgrade my compiler version. See http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?message=13876484&cat=72&thread=124105&treeDisplayType=threadmode1&forum=905#13876484 for more information. Justin Johnson wrote: > Hello, > > I'

Re: os.popen() not executing command on windows xp

2007-01-11 Thread Justin Ezequiel
> import os > a = os.popen('"c:\Program Files\Grisoft\AVG Free\avgscan.exe" > "c:\program files\temp1\test1.txt"') > print a.read() > use raw strings e.g., instead of '"c:...\avgscan...' use r'"c:...\avgscan...' http://www.ferg.org/projects/python_gotchas.html#contents_item_2 -- http://mail.py

Re: Convert raw data to XML

2007-01-29 Thread Justin Ezequiel
On Jan 30, 10:42 am, [EMAIL PROTECTED] wrote: > For example the raw data is as follows > > SomeText Description>PassorFail > > without spaces or new lines. I need this to be written into an XML > file as > > > > > > > SomeText >

Re: how to store and still search special characters in Python and MySql

2007-02-15 Thread Justin Ezequiel
On Feb 12, 12:26 pm, "ronrsr" <[EMAIL PROTECTED]> wrote: > I have an MySQL database called zingers. The structure is: > > I am having trouble storing text, as typed in latter two fields. > Special characters and punctuation all seem not to be stored and > retrieved correctly. > > Special apostroph

Re: a=b change b a==b true??

2007-02-26 Thread bayer . justin
If you want to copy lists, you do it by using the [:] operator. e.g.: >>> a = [1,2] >>> b = a[:] >>> a [1, 2] >>> b [1, 2] >>> b[0] = 2 >>> a [1, 2] >>> b [2, 2] If you want to copy a list of lists, you can use a list comprehension if you do not want to use the copy module: >>> a = [[1,2],[3,4]]

Dialog with a process via subprocess.Popen blocks forever

2007-02-28 Thread bayer . justin
fsize=2**10) >>> x.stdout.read(1) # blocks forever Is it possible to read to and write to the std streams of a subprocess? What am I doing wrong? Regards, -Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Dialog with a process via subprocess.Popen blocks forever

2007-03-01 Thread bayer . justin
the sys.stdin It's really a pity, it's the first time python does not work as expected. =/ Flushing the stdin did not help, too. Regards, -Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Dialog with a process via subprocess.Popen blocks forever

2007-03-01 Thread bayer . justin
e() on the stdin and .read() from the subprocess' stdout stream (better: file descriptor)) reading from the subprocess stdout blocks forever. If I write something onto the subprocess' stdin that causes it to somehow proceed, I can read from its stdout. Thus a useful dialogue is n

Re: Efficient (HUGE) prime modulus

2007-11-19 Thread Justin Kwok
x = (x * x) % P n = n / 2 return result print testpower(G, a, P) -Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: sockets: why doesn't my connect() block?

2007-11-19 Thread Justin Kwok
the obvious question, "Can we do it in Java?". So long as you're using sockets and not some higher level libraries. Some people were jumping with joy. I did mine in Python. -Justin -- http://mail.python.org/mailman/listinfo/python-list

Wireless Card Data on Windows?

2007-12-19 Thread Justin Donato
Hello, I’m looking for a Python library that can return data about wireless networks. In particular, I’m looking for signal quality, noise, etc. I’ve found: HYPERLINK "http://www.romanofski.de/downloads/pywifi"http://www.romanofski.de/download s/pywifi But it’s only for Linux. Is ther

Re: best way to determine sequence ordering?

2006-04-29 Thread Justin Azoff
John Salerno wrote: > If I want to make a list of four items, e.g. L = ['C', 'A', 'D', 'B'], > and then figure out if a certain element precedes another element, what > would be the best way to do that? > > Looking at the built-in list functions, I thought I could do something like: > > if L.index(

Re: newb: comapring two strings

2006-05-18 Thread Justin Azoff
something like this maybe? >>> str1='yaqtil' >>> str2='yaqtel' >>> set(enumerate(str1)) ^ set(enumerate(str2)) set([(4, 'e'), (4, 'i')]) >>> -- - Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread Justin Ezequiel
[ "Content-type: %s;", "Content-Disposition: attachment; filename=%s", "Content-Title: %s", "Content-Length: %i", "\r\n", # empty line to end headers ] ) if __name__ == '__main_

Re: Python CGI - Presenting a zip file to user

2008-01-02 Thread Justin Ezequiel
On Jan 3, 1:35 pm, jwwest <[EMAIL PROTECTED]> wrote: > Thanks! That worked like an absolute charm. > > Just a question though. I'm curious as to why you have to use the > msvcrt bit on Windows. If I were to port my app to *NIX, would I need > to do anything similar? > > - James not needed for *NIX

site promotion

2008-01-08 Thread justin . evans2
hello, i would like to advertise a few sites their all pretty healthy t make improvements to your life! one of them is www.bigleagueplayersclub.com/3clicks/published/67153/196170 thanks check it ut thers more verious things to see -- http://mail.python.org/mailman/listinfo/python-list

Re: Image to browser

2008-01-15 Thread Justin Ezequiel
On Jan 16, 1:19 pm, [EMAIL PROTECTED] wrote: > On Jan 16, 12:16 am, [EMAIL PROTECTED] wrote: > > > Im using mod_python and apache2 using psp for output of page, i open a > > file and resize it with the following code > > > <% > > import Image, util > > > fields = util.FieldStorage(req) > > filename

Re: parsing json output

2008-03-18 Thread Justin Ezequiel
FWIW, using json.py I got from somewhere forgotten, >>> import json >>> url = >>> 'http://cmsdoc.cern.ch/cms/test/aprom/phedex/dev/gowri/datasvc/tbedi/requestDetails' >>> params = {'format':'json'} >>> import urllib >>> eparams = urllib.urlencode(params) >>> import urllib2 >>> request = urllib2.R

Re: finding items that occur more than once in a list

2008-03-19 Thread Justin Bozonier
On Mar 19, 2:48 pm, John Machin <[EMAIL PROTECTED]> wrote: > On Mar 19, 10:08 am, sturlamolden <[EMAIL PROTECTED]> wrote: > > > > > On 18 Mar, 23:45, Arnaud Delobelle <[EMAIL PROTECTED]> wrote: > > > > > def nonunique(lst): > > > >slst = sorted(lst) > > > >dups = [s[0] for s in > > > >

dynimac code with lambda function creation

2008-03-27 Thread Justin Delegard
method of the object), but that didn't work either. Thanks, Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: dynimac code with lambda function creation

2008-03-27 Thread Justin Delegard
ed it.  After inserting that, everything worked fine when I pass just the method object! Thanks all. Justin Bruno Desthuilliers wrote: Justin Delegard a écrit : So I am trying to pass an object's method call I assume you mean "to pass an object's method", sin

Re: Module/Library That is Able To Use Cookies + Proxies?

2009-01-29 Thread Justin Ezequiel
On Jan 30, 12:06 pm, blackcapsoftw...@gmail.com wrote: > I would like to do is be able to log into a site that uses cookies to > store information about the user when logging in. This works fine and > dandy with ClientCookie. Now, I want to be able to do so with a proxy, urllib2 http://docs.pytho

Re: search speed

2009-01-30 Thread Justin Wyer
On Fri, Jan 30, 2009 at 1:51 AM, anders wrote: > Hi! > I have written a Python program that serach for specifik customer in > files (around 1000 files) > the trigger is LF01 + CUSTOMERNO > > So a read all fils with dirchached > > Then a loop thru all files each files is read with readLines() and

Re: How do i add body to 'email.mime.multipart.MIMEMultipart' instance?

2009-02-04 Thread Justin Ezequiel
t = text.strip() and text or html2text(html).encode('ascii', 'xmlcharrefreplace') body = MIMEMultipart('alternative') body.attach(MIMEText(text)) body.attach(MIMEText(html, 'html')) return body HTH Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: How do i add body to email.mime.multipart.MIMEMultipart instance?

2009-02-05 Thread Justin Ezequiel
On Feb 4, 2:48 pm, srinivasan srinivas wrote: > Hi, > Could someone tell me the way to add body to the instance > email.mime.multipart.MIMEMultipart instance which has attachments? > > Thanks, msg = MIMEMultipart() msg.preamble = 'This is a multi-part message in MIME format.\n' msg.epilogue = ''

Building python with sqlite3

2009-02-18 Thread Justin Li
with sqlite3 of configure and Makefile. Thanks in Advance! Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Building python with sqlite3

2009-02-18 Thread Justin Li
On Feb 18, 5:13 pm, Christian Heimes wrote: > Justin Li schrieb: > > > I'm building and installing Ptyhon 2.6.1 on Linux. After configure, > > make, make install, to import sqlite3 leads to ImportError. It looks > > like I have to build Python with sqlite. I hav

Re: Building python with sqlite3

2009-02-18 Thread Justin Li
On Feb 18, 6:29 pm, Justin Li wrote: > On Feb 18, 5:13 pm, Christian Heimes wrote: > > > Justin Li schrieb: > > > > I'm building and installing Ptyhon 2.6.1 on Linux. After configure, > > > make, make install, to importsqlite3leads to ImportError. It looks

Re: How to convert between Japanese coding systems?

2009-02-19 Thread Justin Ezequiel
On Feb 19, 2:28 pm, Dietrich Bollmann wrote: > Are there any functions in python to convert between different Japanese > coding systems? > > I would like to convert between (at least) ISO-2022-JP, UTF-8, EUC-JP > and SJIS.  I also need some function to encode / decode base64 encoded > strings. > >

Re: How to convert between Japanese coding systems?

2009-02-19 Thread Justin Ezequiel
import email from email.Header import decode_header from unicodedata import name as un MS = '''\ Subject: =?UTF-8?Q? romaji=E3=81=B2=E3=82=89=E3=81=8C=E3=81=AA=E3=82=AB=E3=82=BF?= Date: Thu, 19 Feb 2009 09:34:56 - MIME-Version: 1.0 Content-Type: text/plain; charset=EUC-JP Content-Transfer-Enco

Re: download image from flickr.com

2008-10-30 Thread Justin Ezequiel
##compile_obj = re.compile(r'dyn.Img\(".*?",".*?",".*?","(.*?)"') compile_obj = re.compile(r'\http://mail.python.org/mailman/listinfo/python-list

Re: Sending multi-part MIME package via HTTP-POST

2008-11-04 Thread Justin Ezequiel
have you tried using the def request(self, method, url, body=None, headers={}) method instead of putrequest, endheaders, send methods? where body is --===1845688244== Content-Type: application/vnd.cip4-jmf+xml MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-ID: beginning

Re: file tell in a for-loop

2008-11-18 Thread Justin Ezequiel
On Nov 19, 7:00 am, Magdoll <[EMAIL PROTECTED]> wrote: > I was trying to map various locations in a file to a dictionary. At > first I read through the file using a for-loop, but tell() gave back > weird results, so I switched to while, then it worked. > > The for-loop version was something like: >

Re: Uploading a file using POST

2009-03-18 Thread Justin Ezequiel
On Mar 19, 8:50 am, Thomas Robitaille wrote: > I am trying to upload a binary file (a tar.gz file to be exact) to a   > web server using POST, from within a python script. > > What I would like is essentially the equivalent of > > enctype="multipart/form-data"> > > have you seen http://code.ac

Re: soap request includes a hyphenated field, don't know how to set it

2009-03-27 Thread Justin Ezequiel
On Mar 27, 3:33 pm, straycat...@yahoo.com wrote: > Working my way through suds, I have something like this: > > >>> event = client.factory.create('ns0:UserVerifiedEvent') > >>> print event > > (UserVerifiedEvent){ >    event-id = None >    user-verified-content[] = >    domain-specific-attributes

Geometry package

2009-03-28 Thread Justin Pearson
issing? Thanks for your help, Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Something weird about re.finditer()

2009-04-15 Thread Justin Ezequiel
On Apr 15, 4:46 pm, Gilles Ganault wrote: > re_block = re.compile('before (.+?) after',re.I|re.S|re.M) > > #Here, get web page and put it into "response" > > blocks = None > blocks = re_block.finditer(response) > if blocks == None: >         print "No block found" > else: >         print "Before b

Convert variable directly into a string (no ASCII)

2009-05-02 Thread Justin Rajewski
en possible? Thanks, Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling some isolated iso-8859-1 characters

2008-06-03 Thread Justin Ezequiel
On Jun 4, 2:38 am, Daniel Mahoney <[EMAIL PROTECTED]> wrote: > I'm working on an app that's processing Usenet messages. I'm making a > connection to my NNTP feed and grabbing the headers for the groups I'm > interested in, saving the info to disk, and doing some post-processing. > I'm finding a few

Re: how to send a "Multiline" mail with smtplib?

2008-06-19 Thread Justin Ezequiel
perhaps change html body=MIMEText('hello,\r\n ok',_subtype='html',_charset='windows-1255') to plain body=MIMEText('hello,\r\n ok',_subtype='plain',_charset='windows-1255') -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie, list has no attribute iteritems

2008-07-04 Thread Justin Ezequiel
def handle_starttag(self, tag, attrs): # <-- attrs here is a list if 'a' != tag: self.stack.append(self.__html_start_tag(tag, attrs))# <-- attrs here is still a list return attrs = dict(attrs)# <-- now attrs is a dictionary -- http://mail.python

Re: how to use subprocess.Popen execute "find" in windows

2008-05-06 Thread Justin Ezequiel
On May 6, 5:19 pm, [EMAIL PROTECTED] wrote: > In cmd, I can use find like this. > > C:\>netstat -an | find "445" > TCP0.0.0.0:4450.0.0.0:0 LISTENING > UDP0.0.0.0:445*:* > > C:\> > > And os.system is OK.>>> import os > >>> os.system('netstat -an | fin

Re: Counting number of each item in a list.

2006-03-19 Thread Justin Azoff
857560873032 A100 (10 times): 87.6713900566 B100 (10 times): 12.7302949429 C100 (10 times): 8.35931396484 -- - Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert Word .doc to Acrobat .pdf files

2006-03-23 Thread Justin Ezequiel
please explain why this happened using ## win32com.client.Dispatch? import win32com.client.dynamic if __name__ == '__main__': printer = "Adobe PDF on NE03:" docpath = r"E:\Documents and Settings\justin\Desktop\test.doc" pspath = r"E:\Documents

Re: Obtaining the remote ip address

2006-03-27 Thread Justin Ezequiel
os.environ['REMOTE_ADDR'] os.environ['REMOTE_HOST'] -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert Word .doc to Acrobat .pdf files

2006-03-28 Thread Justin Ezequiel
"When you create a PostScript file you have to send the host fonts. Please go to the printer properties, "Adboe PDF Settings" page and turn OFF the option "Do not send fonts to Distiller". kbperry, sorry about that. go to "Printers and Faxes" go to properties for the "Adobe PDF" printer go to the

Re: a simple regex question

2006-03-31 Thread Justin Azoff
find all the possible matches, but still only one comes up. > > Thanks. I don't believe you _need_ the parenthesis or the + in that usage... Have a look at http://docs.python.org/lib/node115.html It should be obvious which method you need to use to "find them all" -- - Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: how to do filetransfer using usrp.

2010-02-19 Thread Justin Ezequiel
On Feb 19, 7:38 pm, sarosh wrote: > how to do filetransfer using usrp. > can i make lan interface between two computers connected to usrp each and > then transfer files (images/video) between them? > how to transfer files? > is there any example of such kind in gnuradio? > > sarosh am not sure wh

Re: remove element with ElementTree

2010-03-09 Thread Justin Ezequiel
On Mar 9, 11:35 am, tdan wrote: > I have been using ElementTree to write an app, and would like to > simply remove an element. > But in ElementTree, you must know both the parent and the child > element to do this. > There is no getparent() function, so I am stuck if I only have an > element. > s

A question about making a sort-of-counter.

2010-03-30 Thread Justin Park
] How can I make it happen? Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about making a sort-of-counter.

2010-03-30 Thread Justin Park
Thanks! It works! Justin. Chris Rebert wrote: > On Tue, Mar 30, 2010 at 2:31 PM, Justin Park wrote: > >> Suppose I have a list. >> a = list() >> And suppose allowed digits as the element are 1,2,3,4,5. >> >> What can I do in order to iterate over all poss

Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
Sometimes when I am working on an already generated package, the python shell cannot perceive the presence of an attribute that I implemented on top of what was there. Is there a way to have it perceive newly created attributes? Thanks, Justin. -- http://mail.python.org/mailman/listinfo/python

Re: Sometimes the python shell cannot recognize the presence of an attribute.

2010-03-30 Thread Justin Park
order to resolve this issue? Thanks, Justin. Justin Park wrote: > Sometimes when I am working on an already generated package, > the python shell cannot perceive the presence of an attribute that I > implemented on top of what was there. > > Is there a way to have it perceive newly cre

Re: SAX unicode and ascii parsing problem

2010-11-30 Thread Justin Ezequiel
can't check right now but are you sure it's the parser and not this line d.write(csv+"\n") that's failing? what is d? -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with a Python coding question

2011-01-05 Thread Justin Peel
On Wed, Jan 5, 2011 at 4:45 PM, Emile van Sebille wrote: > On 1/5/2011 3:12 PM kanth...@woh.rr.com said... > > I want to use Python to find all "\n" terminated >> strings in a PDF file, ideally returning string >> starting addresses. Anyone willing to help? >> > > pdflines = open(r'c:\shared\p

Re: FTP problem

2011-01-15 Thread Justin Ezequiel
'indexftp.barcap.com' only (sans the 'ftp.' prefix) allows me to connect to an FTP server >ftp indexftp.barcap.com Connected to usftp.barcap.com. 220-Connected to usftp.barcap.com. 220 FTP server ready. User (usftp.barcap.com:(none)): -- http://mail.python.org/mailman/listinfo/python-list

Re: Python DXF import library?

2010-04-20 Thread Justin Ezequiel
On Apr 20, 9:19 pm, Stodge wrote: > Is anyone aware of a Python DXF import library? I think I remember > seeing converters but so far I haven't found a library. I need to > write a tool that reads DXFs so I'm not yet sure if a converter would > be of any use. Thanks http://lmgtfy.com/?q=Python+DX

I run into a problem in opening a file in Python

2010-06-18 Thread Justin Park
The problem is simple. I have 50taxa2HGT_1.txt in the current directory, and I can open it using any text editor (which indicates there actually is.) And I can read it in Python using >>> fd=open("./50taxa2HGT_1.txt", "r") , and it actually got opened, because I can do >>> for line in fd: ...

Re: automate minesweeper with python

2010-06-30 Thread Justin Ezequiel
On Jul 1, 7:39 am, Jay wrote: > I would like to create a python script that plays the Windows game > minesweeper. > > The python code logic and running minesweeper are not problems. > However, "seeing" the 1-8 in the minesweeper map and clicking on > squares is. I have no idea how to proceed. you

Re: Why are String Formatted Queries Considered So Magical?

2010-07-26 Thread Justin Smith
Seeking industry expert candidates I’m Justin Smith, Director of Tech Recruiting at Express Seattle. I am currently seeking candidates to fill Tech Positions for multiple A- List Clients: • Quality Assurance Engineer, • Senior Data Engineer, Search Experience • Senior Software

Re: guessing file type

2009-07-17 Thread Justin Ezequiel
On Jul 17, 8:39 pm, VanL wrote: > Seldon wrote: > > Hello,  I need to determine programmatically a file type from its > > content/extension (much like the "file" UNIX command line utility) > > > I searched for a suitable Python library module, with little luck. Do > > you know something useful ? >

Queryable Daemon

2009-08-01 Thread Justin DeCell
r unix only so there's no need to worry about compatibility with other os'. Thanks, -Justin -- http://mail.python.org/mailman/listinfo/python-list

Re: Extracting text from html

2009-08-04 Thread Justin Ezequiel
http://tinyurl.com/kpoweq -- http://mail.python.org/mailman/listinfo/python-list

Re: Bit fields in python?

2010-09-08 Thread Justin Mayfield
Instead of rewriting your code you might consider wrapping it with the C-API. I prefer this approach (over ctypes) for anything "low level". http://docs.python.org/c-api/ On 09/06/2010 10:06 PM, Kwan Lai Cheng wrote: Hi, I'm trying to rewrite a c program in python & encountered several probl

SimpleHTTPServer, external CSS, and Google Chrome

2010-09-17 Thread Justin Ezequiel
I am running "python -m SimpleHTTPServer 80" on Windows XP Pro SP 3 (Python 2.5.4) browsing http://localhost/ using IE8 and FireFox 3.6, I get blue text on red background on Google Chrome 6.0 however, I get blue text on white background placing index.htm and styles.css (see below) under IIS, I get

Re: SimpleHTTPServer, external CSS, and Google Chrome

2010-09-19 Thread Justin Ezequiel
On Sep 18, 2:54 am, MrJean1 wrote: > FWIW, > > There is a blue text on a red background in all 4 browsers Google > Chrome 6.0.472.59, Safari 5.0.1 (7533.17.8), FireFox 3.6.9 and IE > 6.0.2900.5512 with Python 2.7 serving that page on my Windows XP > SP 3 machine. > > /Jean > Hmm. Will downloa

Re: SimpleHTTPServer, external CSS, and Google Chrome

2010-09-19 Thread Justin Ezequiel
LOL. twas http://bugs.python.org/issue839496 -- http://mail.python.org/mailman/listinfo/python-list

Re: I don't get why sys.exit(1) doesn't exit the while loop in the follow case

2010-10-04 Thread Justin Ezequiel
your bare except is catching the SystemExit raised by sys.exit(1) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python3: Is this a bug in urllib?

2010-10-20 Thread Justin Ezequiel
On Oct 20, 12:47 am, Johannes Bauer wrote: > > >>> from urllib import request; request.URLopener().open("http://google.de";) > aren't you supposed to call read on the return value of open? i.e., request.URLopener().open("http://google.de";).read() -- http://mail.python.org/mailman/listinfo/pytho

Re: Python3: Is this a bug in urllib?

2010-10-20 Thread Justin Ezequiel
On Oct 20, 8:32 pm, Justin Ezequiel wrote: > On Oct 20, 12:47 am, Johannes Bauer wrote: > > > > > >>> from urllib import request; request.URLopener().open("http://google.de";) > > aren't you supposed to call read on the return value of open? >

Re: Python3: Is this a bug in urllib?

2010-10-26 Thread Justin Ezequiel
''' C:\Documents and Settings\Administrator\Desktop>python wtf.py 301 Moved Permanently b' \n301 Moved\n301 Moved\nThe document has mo ved\nhttp://www.google.de/";>here.\r\n\r\n' foo 5.328 secs 301 Moved Permanently bar 241.016 secs C:\Documents and Settings\Administrator\Desktop> ''' import http.

Re: Data exchange between python script and bash script

2017-04-04 Thread justin walters
On Tue, Apr 4, 2017 at 8:01 AM, wrote: > Hello All, > > I am writing a python code for processing a data obtained from a sensor. > The data from sensor is obtained by executing a python script. The data > obtained should be further given to another python module where the > received data is used

Re: Data exchange between python script and bash script

2017-04-04 Thread justin walters
On Tue, Apr 4, 2017 at 10:39 AM, Venkatachalam Srinivasan < venkatachalam...@gmail.com> wrote: > Hi, > > Thanks for the answer. I need bash for connecting data exchange between > two python scripts. To be more specific, data from one script has to be > passed to the another script. You are right,

Re: Static typing [was Re: Python and the need for speed]

2017-04-16 Thread justin walters
On Sun, Apr 16, 2017 at 3:55 AM, bartc wrote: > Example C of the same silly program in Python: > > def add(a,b): > return a+b > > def testfn(): > sum=a=b=0 > for i in range(1): > sum += add(a,b) > a += 1 > b += 2 > > print (a,b,sum) > > testfn() > >

Re: Static typing [was Re: Python and the need for speed]

2017-04-16 Thread justin walters
On Sun, Apr 16, 2017 at 8:46 AM, bartc wrote: > What were the results with Python on your machine? Well, at first I tried to implement it with a generator. I gave up on waiting for the program to complete after about 6 minutes. After using your code almost exactly I get: >>> Sum: 1499850

Re: Microsoft now ships Python with SQL Server

2017-04-22 Thread justin walters
On Sat, Apr 22, 2017 at 5:05 AM, Steve D'Aprano wrote: > https://blogs.technet.microsoft.com/dataplatforminsider/2017/04/ > 19/python-in-sql-server-2017-enhanced-in-database-machine-learning/ > > Quote: > > We are excited to share the preview release of in-database analytics and > machine learnin

Re: How to port a python package to a embedded system

2017-04-24 Thread justin walters
On Mon, Apr 24, 2017 at 2:45 AM, chenchao wrote: > Hi, everybody: > > I have port python-2.7 to my arm board. But i don't know how to port > a python package to my embedded system. For example, numpy pakage. > Therefore, is there anybody know how to do this? Thanks! > > > > -- > https://mail

Fwd: Bigotry (you win, I give up)

2017-04-28 Thread justin walters
On Thu, Apr 27, 2017 at 9:52 PM, Mike Reveile wrote: > I can measure a Pineapple... by weight, volume, color, taste, smell, > ripeness... but none of these numbers are the pineapple. They only help me > relate to the pineapple. In this way Math itself (and the entire realm of > computer science)

Re: Problems

2017-05-04 Thread justin walters
On Thu, May 4, 2017 at 4:42 AM, aohK euqsarraT wrote: > I have been using pycharm + python 3.6 for a year and then i updated > pycharm, that was when things became a super buggy mess. I tried to > reinstall everything from scratch but the python installation keeps having > the previous wrong path

Re: Ten awesome things you are missing out on if you're still using Python 2

2017-05-08 Thread justin walters
On Mon, May 8, 2017 at 9:07 AM, Chris Angelico wrote: > On Tue, May 9, 2017 at 1:02 AM, Ian Kelly wrote: > > Slide 58: "Not going to lie to you. I still don't get this." Uh, sure, > > great sales pitch there. If the author doesn't understand asyncio, then > why > > include it in the list? > > IM

Re: Ten awesome things you are missing out on if you're still using Python 2

2017-05-08 Thread justin walters
On Mon, May 8, 2017 at 3:40 PM, wrote: > Slide 15: > > > def sum(a, b, biteme=False): > > if biteme: > > shutil.rmtree('/') > > else: > > return a + b > > Now that's just evil. :^) > -- > https://mail.python.org/mailman/listinfo/python-list > I sincerely hope no-one is t

Re: New to python and programming

2017-05-17 Thread justin walters
On Wed, May 17, 2017 at 12:59 PM, BT wrote: > Hi guys, > I am fairly new to programming. I was just trying to understand how this > group works. Am i allowed to ask any questions that I may have when i get > stuck? I mean is this group for new programmers as well..? > Thanks > -- > https://mail.p

Re: What if range did not exist?

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 12:34 AM, Steven D'Aprano wrote: > On Wed, 17 May 2017 14:13:18 -0700, breamoreboy wrote: > > > Here it is > > https://aroberge.blogspot.co.uk/2017/05/what-if-range-did-not- > exist.html. > > I found it interesting as it gives background into the Python > > community's de

<    1   2   3   4   >