Cannot install python properly - python310.dll not found - no pip

2024-06-03 Thread Jay Cadet | Studio JPC via Python-list
ultiple times. Even though I get that error, the python still installs, but when I open the webui-user.bat file in the stable diffusion folder, it opens up the command center and says that there's no module named pip. Please advise on how to fix this problem. Thank you, Jay Cadet

Re: Solaris 11 GUI framework

2020-11-02 Thread Jay Braun
Thank you. I should have mentioned that I am looking for a Python GUI framework. I neglected to mention that since this is a Python group. Sorry. -- https://mail.python.org/mailman/listinfo/python-list

Solaris 11 GUI framework

2020-11-02 Thread Jay Braun
Looking for a GUI framework supported on Solaris 11. -- https://mail.python.org/mailman/listinfo/python-list

"pandas" pronunciation

2017-04-03 Thread Jay Braun
I hear people say it like the plural of "panda", and others as "panduss". Is there a correct way? j -- https://mail.python.org/mailman/listinfo/python-list

Re: Python under PowerShell adds characters

2017-03-29 Thread Jay Braun
On Wednesday, March 29, 2017 at 11:20:45 AM UTC-7, eryk sun wrote: > On Wed, Mar 29, 2017 at 5:42 PM, Jay Braun wrote: > > > > I'm not using ISE. I'm using a pre-edited script, and running it with the > > python command. > > > > Consider the followi

Re: Python under PowerShell adds characters

2017-03-29 Thread Jay Braun
On Wednesday, March 29, 2017 at 10:28:58 AM UTC-7, eryk sun wrote: > On Wed, Mar 29, 2017 at 4:06 PM, wrote: > > I wrote a Python script, which executed as intended on Linux and > > from cmd.exe on Windows. Then, I ran it from the PowerShell > >command line, all print statements added ^@ after e

SQL CE Database (.sdf) file connection with python

2017-01-31 Thread Jay Desai
Hello, I came across a post from Nikhil Joshi at https://mail.python.org/pipermail/python-list/2014-November/681568.html. *.sdf database access - mail.python.org mail.python.org On Saturday, April 21, 2012 6:55:55 AM UTC-

Problem with difflib SequenceMatcher

2016-09-12 Thread Jay
MRX AFR FR 0SNT MLS T KP 0 KMNST MFMNT ALF" print src, '\n', trg, '\n', SM(None, trg, src).ratio() --- What could be the cause? Is there something I am doing wrong? Thanks in advance -- Regards Jay -- https://mail.python.org/mailman/listinfo/python-list

Re: the best online course

2016-07-06 Thread Jay Thompson
There are a ton of great resources on https://wiki.python.org/moin/BeginnersGuide . The resource I generally recommend to people first is "Learn Python The Hard Way" @ http://learnpythonthehardway.org/ . The course is $29.95 and worth every penny but if you can't afford it the author has made the c

RE: python 351x64

2015-12-11 Thread Jay Hamm
ary.w...@gmail.com] On Behalf Of Zachary Ware Sent: Friday, December 11, 2015 10:17 AM To: python-list@python.org Cc: Jay Hamm Subject: Re: python 351x64 On Fri, Dec 11, 2015 at 10:30 AM, Jay Hamm wrote: > Hi > > I was trying to use your windows version of python 3.5.1 x64. > > It has a con

python 351x64

2015-12-11 Thread Jay Hamm
os.makedirs(path) File "C:\Program Files\Python35\lib\os.py", line 241, in makedirs mkdir(name, mode) PermissionError: [WinError 5] Access is denied: 'C:\\Program Files\\Python35\\Lib\\site-packages\\requests' Once I gave myself control it started working. This is pretty

can't install Python 3.5 on windows

2015-10-09 Thread Jay Brown
Dear Python: I have been trying to install Python on my Windows computer. I tried both Python 2.7 and 3.5. No luck with either one. If I try to run Python I get a message asking me if I want to repair Python. The program never runs. Can you help? -Jay Brown Jay C. Brown Department of

Python - parsing nested information and provide it in proper format from log file

2015-02-19 Thread Jay T
have some log file which has nested data which i want to filter and provide specific for student with total counts Here is my log file sample: Student name is ABC Student age is 12 student was late student was late student was late Student name is DEF student age is 13 student was late

Re: Getting a list of all modules

2014-07-30 Thread Leo Jay
understanding of cross- > platform issues, fails to include built-in modules that don't live in the > file system, and probably more). > > Is this problem already solved? Can anyone make any suggestions? > > > > -- > Steven > -- > https://mail.python.org/mailman/listinfo/python-list -- Best Regards, Leo Jay -- https://mail.python.org/mailman/listinfo/python-list

Re: Distributing python applications as a zip file

2014-07-23 Thread Leo Jay
as a single file that users can just copy and run. > But if you use windows and you happen to use multiprocessing, please be aware of this bug I encountered several years ago. https://mail.python.org/pipermail/python-dev/2011-December/115071.html -- Best Regards, Leo Jay -- https://mail.python.org/mailman/listinfo/python-list

Cannot use multiprocessing and zip together on windows

2011-12-11 Thread Leo Jay
ta) File "C:\python27\lib\multiprocessing\forking.py", line 454, in prepare assert main_name not in sys.modules, main_name AssertionError: __main__ It seems that the situation described here is similar: http://bugs.python.org/issue10128 But the patch doesn't work for me.

Re: Convert '165.0' to int

2011-07-21 Thread Leo Jay
s of them!) ? I > know I can write a function to do this, but is there anything built-in? > > Thanks > > Frank Millman > How about int(x[:-2])? -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems Compiling Python 2.6.7 for Win7

2011-06-09 Thread Jay Osako
On Jun 8, 6:56 pm, "Gabriel Genellina" wrote: > En Wed, 08 Jun 2011 12:28:56 -0300, Jay Osako   > escribi : > > > I have been trying to get PyODBC to work with Python 2.6 (the latest > > version it is known to be compatible with) and Django, but have run > &g

Problems Compiling Python 2.6.7 for Win7

2011-06-08 Thread Jay Osako
I have been trying to get PyODBC to work with Python 2.6 (the latest version it is known to be compatible with) and Django, but have run into a problem which, according to the information I've got elsewhere, probably stems from a DLL incompatibility - apparently, the standard CPython distribution f

How do you find out what's happening in a process?

2010-11-28 Thread Leo Jay
Hi all, I'd like to know how do you guys find out what's happening in your code if the process seems not work. In java, I will use jstack to check stacks of threads and lock status. But I don't know how to do it in python. -- Best Regards, Leo Jay -- http://mail.python.org/m

Re: 64 bit offsets?

2010-10-07 Thread jay thompson
us. What we are having to manage is us." ...Bill Ballantine, marine biologist. On 2010-10-07 8:42 AM, "MRAB" wrote: On 06/10/2010 22:41, jay thompson wrote: > > Hello everyone, > > I'm trying to extract some data fro... I would've thought that a 64-bit ver

64 bit offsets?

2010-10-07 Thread jay thompson
Hello everyone, I'm trying to extract some data from a large memory mapped file (the largest is ~30GB) with re.finditer() and re.start(). Pythons regular expression module is great but the size of re.start() is 32bits (signed so I can really only address 2GB). I was wondering if any here had some

Re: 64 bit offsets?

2010-10-07 Thread jay thompson
As nice as it would be to use 64bit offsets I am instead mmapping the file in 1GB chunks and getting the results I need. I would still be interested in a 64bit solution though. jt On Wed, Oct 6, 2010 at 2:41 PM, jay thompson wrote: > Hello everyone, > > I'm trying to extract so

Re: ctypes

2010-09-23 Thread jay thompson
? Alternatively I could also write a new function in libraw that can access this struct and be exposed to ctypes. jt On Thu, Sep 23, 2010 at 12:28 AM, Simon Brunning wrote: > On 22 September 2010 21:13, jay thompson > wrote: > > Hello, > > > > I posted in regard to this

ctypes

2010-09-22 Thread jay thompson
Hello, I posted in regard to this in the past but it didn't go very far, no ones fault, but I'm again atempting to make this work and could use some help. I would like to use libraw.dll (http://www.libraw.org/ version 0.10) from python and can access all the functions fine and produce images but

Re: automate minesweeper with python

2010-07-02 Thread Jay
On Jul 2, 2:13 pm, Terry Reedy wrote: > On 7/1/2010 10:18 PM, Emile van Sebille wrote: > > > > > > > On 7/1/2010 6:17 PM Terry Reedy said... > >> On 7/1/2010 6:42 PM, Emile van Sebille wrote: > >>> On 7/1/2010 2:52 PM Jay said... > >>>>

Re: automate minesweeper with python

2010-07-01 Thread Jay
pywinauto looks to be almost perfect. All I need now is to read the numbers uncovered when a minesweeper square is clicked on, or that I just hit a mine. On Jun 30, 6:51 pm, Paul McGuire wrote: > On Jun 30, 6:39 pm, Jay wrote: > > > I would like to create a python script that plays

Re: automate minesweeper with python

2010-06-30 Thread Jay
On Jun 30, 6:01 pm, Justin Ezequiel wrote: > 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, "seei

automate minesweeper with python

2010-06-30 Thread Jay
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. -- http://mail.python.org/mailman/listinfo/py

Why the inconsistent of those two base64 methods?

2010-05-11 Thread Leo Jay
ult of 'aaa'.encode('base64') has a '\n' at the end, but the other method doesn't. Why the inconsistent? Thanks. -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows installer of Python

2010-04-14 Thread Leo Jay
gt; dont know how to catch them. >> > The files and subfolders of Python are all installed into a single > folder, for example C:\Python26, and none into the system folder or > other places, if you are worried about that. > I don't think so. At least, the pythonXX.d

Overlap in python

2009-08-04 Thread Jay Bird
3-6 d 15-20 e 18-23 And here is what I need for an output: part name location c.a.b3-10 d.e 15-23 I've tried various methods, which all fail. Does anyone have an idea how to do this? Thank you very much! Jay -- http://mail.python.o

Re: Stripping non-numbers from a file parse without nested lists?

2009-04-01 Thread jay logan
On Apr 1, 11:05 am, jay logan wrote: > On Apr 1, 2:35 am, daku9...@gmail.com wrote: > > > > > On Mar 31, 6:47 pm, "Rhodri James" > > wrote: > > > > What you're doing (pace error checking) seems fine for the data > > > structure

Re: Stripping non-numbers from a file parse without nested lists?

2009-04-01 Thread jay logan
On Apr 1, 2:35 am, daku9...@gmail.com wrote: > On Mar 31, 6:47 pm, "Rhodri James" > wrote: > > > What you're doing (pace error checking) seems fine for the data > > structures that you're using.  I'm not entirely clear what your usage > > pattern for "dip" and "dir" is once you've got them, so I c

Re: Candidate for a new itertool

2009-03-08 Thread jay logan
On Mar 7, 8:47 pm, Raymond Hettinger wrote: > The existing groupby() itertool works great when every element in a > group has the same key, but it is not so handy when groups are > determined by boundary conditions. > > For edge-triggered events, we need to convert a boundary-event > predicate to

Re: Pycon 2009 Hotel?

2009-02-11 Thread jay graves
On Feb 11, 9:13 am, jay graves wrote: > I'm attending Pycon this year and for the first time I have to pay for > myself.  (All training/conference budgets have been zeroed out at my > company.) > > I would like to take the cheaper option by staying at the Crowne Plaza >

Pycon 2009 Hotel?

2009-02-11 Thread jay graves
I'm attending Pycon this year and for the first time I have to pay for myself. (All training/conference budgets have been zeroed out at my company.) I would like to take the cheaper option by staying at the Crowne Plaza but as I understand it, the part of the conference I'll be attending will be

[xlrd] sanitize the output and store in a 2d arrays

2009-01-27 Thread Jay Jesus Amorin
0]* This is the content of my test.xls: thisislineone 343 thisislinetwo 344 thisislinethree 345 How do i remove the bold part of the output (*[u'*. *'* and *.0]* and store the output in a 2 dimensional array? Many thanks. PythonNewbie, Jay -- http://mail.python.org/mailman/listinfo/python-list

AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread Jay Jesus Amorin
am/project/xlrd.py", line 6, in mySpreadsheet = xlrd.open_workbook(open(sys.argv[1])) AttributeError: 'module' object has no attribute 'open_workbook' Thanks, Jay -- http://mail.python.org/mailman/listinfo/python-list

Where to put configuration/data files

2009-01-25 Thread Jay Bloodworth
Is there a nice cross-platform way to figure out the Right (tm) place to store configuration files and other data? Jay -- http://mail.python.org/mailman/listinfo/python-list

TEST=`which test` equivalent in python?

2009-01-24 Thread Jay Jesus Amorin
se: main(sys.argv[1], sys.argv[2]) The SVNLOOK_PATH is not working and python says its null when run as SVN hook-script. Do I need to load the os environment variable? How do i pass the value of 'which svnlook' to SVNLOOK_PATH variable. Thanks for your help. Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Why %e not in time.strftime directives?

2008-12-13 Thread Leo Jay
on, and platform variations are common. > > So if your underlying C implementation of strftime() supports "%e", then > Python will. My guess is that the same applies to time.strftime as it does > to datetime.strftime > > The docs list ones that are fairly cross-platform. However, it would seem > that not all platforms support "%e" > > > -tkc > > > [1] > http://docs.python.org/library/datetime.html#module-datetime > > -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Why %e not in time.strftime directives?

2008-12-13 Thread Leo jay
Any special reasons? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python is slow

2008-12-11 Thread jay....@gmail.com
On Dec 11, 7:06 am, Luis M. González <[EMAIL PROTECTED]> wrote: > On Dec 10, 3:42 pm, cm_gui <[EMAIL PROTECTED]> wrote: > > > > >http://blog.kowalczyk.info/blog/2008/07/05/why-google-should-sponsor-... > > > I fully agree with Krzysztof Kowalczyk . > > Can't they build a faster VM for Python since

Re: Equivalent of 'wget' for python?

2008-12-11 Thread Leo Jay
indows. I'm hoping the core python library has > a library for this. Note that I'll be using Python 3.0. > You can get Wget for Windows here: http://gnuwin32.sourceforge.net/packages/wget.htm -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Why optimization mode is slower than normal mode?

2008-12-11 Thread Leo Jay
1) time for 50 passes = 6.00515 This machine benchmarks at 83261.8 pystones/second I tried many times, and get the same result. Why optimization mode is slower than normal mode? -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: python to parse excel file csv format

2008-12-04 Thread Jay Jesus Amorin
equired Please help I'm a complete newbie to python. Many thanks. Jay On Thu, Dec 4, 2008 at 4:32 AM, Tino Wildenhain <[EMAIL PROTECTED]> wrote: > MRAB wrote: > >> Jay Jesus Amorin wrote: >> >>> This is how i do it, but it runs with error. Kindl

Re: python to parse excel file csv format

2008-12-03 Thread Jay Jesus Amorin
te2prod.py", line 12, in ? sys.exit('file %s, line %d: %s' % (filename, reader.line_num, e)) AttributeError: '_csv.reader' object has no attribute 'line_num' On Thu, Dec 4, 2008 at 2:25 AM, Jay Jesus Amorin <[EMAIL PROTECTED]>wrote: > Hi all, > &

python to parse excel file csv format

2008-12-03 Thread Jay Jesus Amorin
eex",215 Please help me parse the csv file and run chown $csvfile_secondcolumn $csvfile_firstcolumn. Here's how i want to run it. ./parsecsv.py test.csv Many thanks. Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Python Project Structure

2008-10-10 Thread jay graves
init__.py file (it doesn't matter if it's empty) in the directory to turn it into a package. http://www.python.org/doc/2.5.2/tut/node8.html#SECTION00840 HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Large amount of files to parse/organize, tips on algorithm?

2008-09-02 Thread jay graves
On Sep 2, 1:02 pm, cnb <[EMAIL PROTECTED]> wrote: > over 17000 files... > > netflixprize. http://wiki.python.org/moin/NetflixPrizeBOF specifically: http://pyflix.python-hosting.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Equivalents of Ruby's "!" methods?

2008-08-25 Thread Leo Jay
this is not an accepted > and pythonic way of doing things then please let me know... and I'll > stop! > how about this one: >>> h = { "1" : "a\r", "2" : "b\n" } >>> dict((k, h[k].strip()) for k in h) {'1': 'a', '2': 'b'} >>> -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate alphabet?

2008-08-23 Thread Leo Jay
gt; ','.join(string.ascii_lowercase) 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z' >>> -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read and write the same socket in different threads?

2008-08-22 Thread Leo Jay
On Sat, Aug 23, 2008 at 1:58 AM, Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > On Sat, 23 Aug 2008 01:47:23 +0800, Leo Jay <[EMAIL PROTECTED]> wrote: >> >> I'd like to read and write the same socket in different threads. >> one thread is only used to read

How to read and write the same socket in different threads?

2008-08-22 Thread Leo Jay
te port, the program works. But if the first element of the tuple is 's', the program doesn't work. Is it possible to read and write the same socket in different threads? Thanks in advance. -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: How to stop iteration with __iter__() ?

2008-08-19 Thread Leo Jay
ntation it should. But catching an exception > can't be the standard way to stop iterating right? > you can use for loop: for line in movie_iter: ... -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Run as Service

2008-07-20 Thread jay graves
you go about running a Python app as a Windows > service without SRVANY? I have used CherryPy sucessfully as a windows service. You can probably glean what you need from. http://tools.cherrypy.org/wiki/WindowsService HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: I am looking for svn library(module)

2008-07-07 Thread jay graves
ror: > from svn import core as svn_core > ImportError: No module named svn > Best regards I believe that it is the python binding provided by Subversion. You didn't say what platform you are on or what version of SVN you are using so I can't point you any closer than: http://su

Re: sqlite3 alternative option

2008-06-26 Thread jay graves
he updates are inserted into one transaction and committed > as one, it is  substantially faster. In addition, if this is a one time conversion, look into using the bulk import functions. (.import FILE TABLE) Since you are coming from another database you know your constraints are satisf

Re: Does '!=' equivelent to 'is not'

2008-06-16 Thread Leo Jay
r of python: >>> a = 10 >>> b = 10 >>> a is b False >>> a == b True >>> a = 5 >>> b = 5 >>> a is b True >>> a == b True >>> which is caused by small object cache mechanism. -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

why can i still able to reproduce the SimpleHTTPServer bug which is said fixed 3 years ago?

2008-06-13 Thread Leo Jay
r("Content-Length", str(fs[6]))# <-- obviously, this is not the same with len(f.read()) in windows. -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting a simple python script to a simple windows executable

2008-06-11 Thread jay graves
On Jun 11, 2:25 pm, geoffbache <[EMAIL PROTECTED]> wrote: > Anyone have any better ideas? How about ExeMaker? http://effbot.org/zone/exemaker.htm I have not used it but it seems to do what you want. ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
I'm really at a loss. Sorry. ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
hibits the behavior without the rest of your program? ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: File-writing not working in Windows?

2008-06-06 Thread jay graves
on Windows natively? Get rid of the 'posix' check and use os.path.join to create 'tempfileName' and see if it works. HTH. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Picking apart strings

2008-06-03 Thread jay graves
On Jun 3, 1:44 pm, tmallen <[EMAIL PROTECTED]> wrote: > Is there a way to pick apart this text without resorting to regular > expressions? > > p { > color: black; > > } > > p -> element > color -> property > black -> value http://code.google.com/p/cssutils/ -- http://mail.python.org/mailman/l

Re: Cast list of objects to list of strings

2008-06-03 Thread jay graves
nd contrast, I looked up the 'sum' built in and saw that it used the iterator protocol, (PyObject_GetIter). I assume that the other similar functions (min,max, etc) would do the same. Thanks for setting me straight. ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Cast list of objects to list of strings

2008-06-02 Thread jay graves
nerator expression instead of a list comprehension to avoid building and throwing away a list. "\n".join(str(o) for o in args) http://www.python.org/dev/peps/pep-0289/ Very unlikely to yield a material time difference in this case but cleaner IMO. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: make a string a list

2008-05-29 Thread jay graves
On May 29, 4:30 pm, Nikhil <[EMAIL PROTECTED]> wrote: > or a string iterable ? How can I do that. I have lots of '\r\n' > characters in the string which I think can be easier if it were made > into a list and I can easily see if the required value (its a numeral) > is present in it or not after som

Re: iterate start at second row in file not first

2008-05-20 Thread jay graves
nt want to iterate the first > row...how do i start at the second? How about this? mov = open(afile) first = mov.next() # check first for ':' and do whatever you need to do # including the 'y' processing from below if required for line in mov: do y ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Python library for clustering from distance vector

2008-05-18 Thread jay graves
rogramming Collective Intelligence" by Toby Segaran is great and has examples of clustering algorithms written in Python. http://www.amazon.com/Programming-Collective-Intelligence-Building-Applications/dp/0596529325/ ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: save dictionary for later use?

2008-05-16 Thread jay graves
On May 16, 3:24 pm, globalrev <[EMAIL PROTECTED]> wrote: > On 16 Maj, 21:22, jay graves <[EMAIL PROTECTED]> wrote: > > On May 16, 2:17 pm, globalrev <[EMAIL PROTECTED]> wrote: > > > i extract info from one file and put it into a dictionary. > > > i wa

Re: save dictionary for later use?

2008-05-16 Thread jay graves
. use the 'pickle' module. http://docs.python.org/lib/module-pickle.html ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: call tree tool?

2008-05-15 Thread jay graves
On May 15, 3:47 pm, [EMAIL PROTECTED] wrote: > I'm cleaning up some old code, and want to see what orphan > functions might be sitting around. > > Is there a static call tree analyzer for python? How about http://pycallgraph.slowchop.com/ ... Jay Graves -- http://mail.python.org

Re: parsing directory for certain filetypes

2008-03-11 Thread jay graves
On Mar 11, 12:21 am, royG <[EMAIL PROTECTED]> wrote: > On Mar 10, 8:03 pm, Tim Chase wrote: > in the version using glob() > > >path = os.path.normpath(os.path.join(folder, '*.txt')) > >lst = glob.glob(path) > > is it possible to check for more than one file extension? here i will > have to create

Re: parsing directory for certain filetypes

2008-03-10 Thread jay graves
lob(path) ] > lst.sort() > return lst > Why the 'no-op' list comprehension? Typo? ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: parsing directory for certain filetypes

2008-03-10 Thread jay graves
On Mar 10, 8:57 am, royG <[EMAIL PROTECTED]> wrote: > i wrote a function to parse a given directory and make a sorted list > of files with .txt,.doc extensions .it works,but i want to know if it > is too bloated..can this be rewritten in more efficient manner? Try the 'gl

Re: List all files using FTP

2008-03-06 Thread jay graves
mirror.py script for inspiration. It should be in your Tools/scripts/ subdirectory of your Python installation. ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Data aggregation

2008-03-06 Thread jay graves
alues in column 'C' count of unique combinations of columns 'A' and 'B' count of unique combinations of columns 'A' and 'C' count of unique combinations of columns 'B' and 'C' in all cases, sum(D) and avg(E) Since I need 'C&#x

Re: Windows System Administration: State of the Art on Python?

2008-02-26 Thread jay graves
27;t comment on how it stacks up against Perl but I've pointed to Tim Golden's collection several times. Lots of good stuff there. http://tgolden.sc.sabren.com/python/index.html ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Automating GUI interaction with Python

2008-02-20 Thread jay graves
instance). > > What I need to do is very simple GUI automation : moving the > > mouse cursor to and from specified screen coordinates, clicking, etc. > > Thanks a lot. > > For Windows, try pyWinAutohttp://pywinauto.openqa.org/ dogtail is another http://people.redhat.com/zc

Re: is this data structure build-in or I'll have to write my own class?

2008-02-20 Thread jay graves
z > bal > If it is XML why not use ElementTree or some other XML DOM library? ... Jay Graves -- http://mail.python.org/mailman/listinfo/python-list

Re: Client side GUI-like web framework ?

2008-02-04 Thread jay graves
/webtoolkit/ Or its python counterpart, pyjamas? http://code.google.com/p/pyjamas/ ... jay graves -- http://mail.python.org/mailman/listinfo/python-list

Re: C++ equivalent of comp.lang.python?

2008-01-06 Thread Leo Jay
y one manually. > > For those of you who work in C++, where do you go to discuss it > online? I'm interested in any newsgroups, mailing lists, or web > boards you can recommend. > -- Best Regards, Leo Jay -- http://mail.python.org/mailman/listinfo/python-list

connect to server question

2007-12-03 Thread jay
Is there a way to connect to servers on OS X using Python? Here's the code I presently use in a Bash Shell script: /bin/mkdir -p /Volumes/A_Share /sbin/mount_afp "afp://username:[EMAIL PROTECTED]/A_Share" "/ Volumes/A_Share" Can something similar be done w

Re: Python Network Graph Library

2007-11-28 Thread jay graves
e unmaintained. > I've used GraphViz before but never any of the Python bindings. It's always been easy enough to just generate the .dot file that Graphviz expects. http://www.graphviz.org/ I've also book marked NetworkX but I've never used it. https://networkx.lanl.go

Re: Pythonic ORM with support for composite primary/foreign keys?

2007-11-06 Thread jay graves
pporting libraries grow. But the OP specifically asked for composite keys, which Django's ORM does not support. ... Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Command-line does work when scheduled

2007-09-30 Thread Jay Loden
le and try using that for your scheduled task, or using py2exe to compile your script to an exe which should eliminate the whole file association/PATH issue altogether ;) Hope that helps, -Jay Gabriel Genellina wrote: > No more ideas... I think the scheduler just executes the command line, and

Re: looking for ocbc example

2007-09-21 Thread jay graves
comer, but appears to work for everything I've thrown > at it (which is not much). mxOdbc has been around longer, and is sure > to be a more mature product. It may offer more features & functionality. There is also a brand new module 'ceODBC'. http://ceodbc.sourceforge.net/ I ha

Re: psycopg2 or pygresql?

2007-09-19 Thread jay graves
rsor.description but each implementation varies on what it provides. Check out the PEP for more info. http://www.python.org/dev/peps/pep-0249/ HTH. Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Python error on Mac

2007-08-27 Thread Jay Loden
Python directory exists, or even if /Library/Frameworks/Python.framework/Versions/2.5/ exists. Perhaps you are trying to execute Python 2.5 but don't actually have it installed? -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Putting #'s and variables together in 1 variable

2007-08-23 Thread Jay Loden
% (a,b,c,d,e) return random_name OR, using suggestion 2 above: import random def random_name(): num = random.randint(0,9) random_name = '%stemp.txt' % (num) return random_name -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: reading a line in file

2007-08-20 Thread Jay Loden
asing. I hope you don't feel I was picking on you - or on regular expressions for that matter! I was attempting only to offer another helpful solution that was possibly easier to read for someone not familiar with regular expressions, and a little bit faster in the event that multiple repet

Re: optparse - required options

2007-08-20 Thread Jay Loden
f (in various languages) that needed at least some kind of user input to operate. At least the documentation points to some examples for helpful hints, example code is a lot better than nothing ;) -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: reading a line in file

2007-08-20 Thread Jay Loden
x27;s sort of a language design and culture thing. -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: reading a line in file

2007-08-20 Thread Jay Loden
Brian McCann wrote: > Shawn, Tim ,Jay > > many thanks, > > It looks like there are many ways this problem can be approached > > either by using regex or a tokens > > Tim I'm not familiar with your solution, but will learn about that > method also > Jay

Re: reading a line in file

2007-08-20 Thread Jay Loden
Shawn Milochik wrote: > Hopefully this will help (using your input file) > > #!/usr/bin/env python > import re > buildinfo = "input.txt" > input = open(buildinfo, 'r') > > regex = re.compile(r"^\s*build.number=(\d+)\s*$") > > for line in input: > if re.search(regex, line): > print li

Re: replacement for string.printable

2007-08-15 Thread Jay Loden
t the above. (List members, please correct me if I'm wrong here!). -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: sub-classing the types in the builtin module datetime

2007-08-15 Thread Jay Loden
trying to do so that the list members can analyze the actual problem. Tracebacks etc are also welcome if applicable. -Jay -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script for mobile platforms -- suggested?

2007-08-14 Thread Jay Loden
Robert Dailey wrote: > Hi Jay, > > I apologize for not having been detailed enough. Right now I'm using a > C++ library known as TinyXML to parse my XML files. When a menu is to be > displayed, the XML is parsed and the appropriate images, text, etc that > will display on t

  1   2   3   4   >