the calling program to be GPLed as well,
or if there are cases where the EXE can remain closed-source. I'm fine
with TT's intentions, though.
Joe
(no, I don't want whatever stuff I post on the Net to possibly bite me
years from now, hence the anonymous posting. Nothing personal.)
--
http
:
Ben Finney [EMAIL PROTECTED] writes:
Joe [EMAIL PROTECTED] wrote:
I'm trying to extract part of html code from a tag to a tag
For tag soup, use BeautifulSoup:
URL:http://www.crummy.com/software/BeautifulSoup/
Except he's trying to extract an apparently random part of the file
SPE is great I suggest you take a look at it
http://www.stani.be/python/spe/
[EMAIL PROTECTED] wrote:
On the Mac, I think the XCode integration you get with PyObjC is
probably best. I know there are plugins for Eclipse but haven't tried
any personally, so it's hard to make suggestions (I'm
I'm just wandering if I'm doing this correct way I'm trying to download an
image and store it into a file this does the job, but created file does not
apear to be an image, it works fine and I can open image, I'm just
wandering if there is a better way of doing this.
I'm trying to get the location of the image uisng
start = s.find('a href=somefile') + len('a
href=somefile')
stop = s.find('Save File/a/B',
start) fileName = s[start:stop]
and then construct the url with the filename to download the image
which works fine as cause every image has the Save File
joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
worried about competition?
Yes, I know, they can do whatever they want, it's not a crime,
etc. However when they use their market position to disallow
competition, it sounds to me like they're worried about something, and
trying to squelch it.
Joe
--
Gort, klatu barada nikto
--
http
Steven D'Aprano [EMAIL PROTECTED] writes:
On Tue, 25 Oct 2005 09:56:28 -0500, joe wrote:
Yes, I know, they can do whatever they want, it's not a crime,
etc. However when they use their market position to disallow
competition, it sounds to me like they're worried about something
Is Python going to support s syntax the does not use it's infamous
whitespace rules? I recall reading that Python might include such a
feature. Or, maybe just a brace-to-indentation preprocessor would be
sufficient.
Many people think Python's syntax makes sense. There are strong
feelings both
My original post was based on reading on Pythons developer list that it
was seriously considering some alternate grouping scheme, just because
so many people keep asking. But, it seems that never happened.
As for me, I'm not suggesting that braces are better than indentation.
In fact, requiring
is?
Joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
came with XP installed. I wiped the disk and
installed Linux, only to find that the hardware would only work under
XP. So I then had to install network, video, sound etc cards to get it
working.
joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
for me. Now could you spell out what this
has to do with Microsoft's intentions?
On second thought, don't bother, I think you're talking about
something else, and I'm not sure what that is.
Joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
that in order to create the impression in the minds of
the people listening to the interview that he's responsible for the
internet.
That's just what politicians do, regardless of party affiliation.
joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
.
Joe
--
Gort, klatu barada nikto
--
http://mail.python.org/mailman/listinfo/python-list
I'm trying to extract part of html code from a tag to a tag code begins
with span class=boldyellowBU and ends with
TDTD img src=http://whatever/some.gif; /TD/TR/TABLE
I was thinking of using a regular expression however I having hard time
getting the desired string. I use
htmlSource =
I have the executable of a script that I wrote, that has been erased.
Is there any way to retrieve the uncompiled python script from the
executable that was created with py2exe?
Thank you,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
# string s simulating an html file
s='ffy: ytrty a href=www.python.orgpython/a fyt A
HREF=wwwxwx/A dtrtf'
p=re.compile(r'\bhref\b',re.I)
list=p.split(s) # gets you your final list.
good luck,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
Thank you, Peter. Your point is well taken. We a control system, but
I just never got around to using it. I think now I'll get a round to
it. :)
Thanks again,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
Back in March I submitted a patch for cgi.py to sourceforge to fix a problem
with the handling of an invalid REQUEST_METHOD.
I thought I followed all the steps to properly submit the bug and patch but
the patch is still sitting there in limbo.
This is the first patch I have submitted for
the
values from sys.stdin (it already does this part) it should store them too
(especially since it does store the values in the other two methods).
Does that explain the issue more clearly?
Reinhold Birkenfeld [EMAIL PROTECTED] wrote in
message news:[EMAIL PROTECTED]
Joe wrote:
Back in March I
:-)
Joe
--
http://mail.python.org/mailman/listinfo/python-list
for email I suspect it
won't go anywhere.
But why bother? An html subset that takes everything away but
formatting sounds pretty much like what I'm doing right now with
gnus.
Joe
--
http://mail.python.org/mailman/listinfo/python-list
On Mon, 28 Feb 2005 23:31:27 +0100, Almad [EMAIL PROTECTED] wrote:
I'm going to write a custom CMS. I'd like to use some odbms, as code is then
much more cleaner...
You should go ask for pratical infos on ZODB here:
http://www.zope.org/Products/StandaloneZODB
Joe.
--
http://mail.python.org
I'm using Python 2.4 on Windows XP SP2.
I'm trying to receive a command line argument that is a newline (\n)
Here is the command line to use
sample.py \n
Here is a sample.py script
import sys
c = sys.argv[1]
# when run c is set to \\n instead of \n.
I created a test batch file
echo %1
to
Python 2.4
Windows XP SP2
MS Access 2000
mx.ODBC 2.0.7
Problem data truncation occuring (here's the actual error message):
mxODBC.Warning: ('01004', 5, '[Microsoft][ODBC Microsoft Access Driver]
String data, right truncated on column number 3 (Expr1002)', 3326)
I believe that have found a bug
Steve,
THANKS! That is exactly what I was looking for but unable to find.
Joe
Steven Bethard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Joe wrote:
It appears that Python treats the comand line string as a raw string.
what is the best way to work around the issue?
You
.
Your solution was exactly what I need. I had an escape sequence entered on
the command line and needed to decode the string so that Python used it as
an escape sequence, in fact the sequence really is part of the output that
the program produces.
Thanks again for your assistance.
Regards,
Joe
if that would be considered a bug or not? I would have
expected that the converter hook would have also modified the description
info to match what the converter hook did.
Thanks again for your assistance.
Regards,
Joe
This is a very nice piece of deduction, and I am copying this message to
you
Hey no fair changing last names in the middle of a thread :-)
Thanks to BOTH Steve's.
In fairness it was Steven Bethard's solution that gave you the solution
you needed. As long as ytour problem is solved, that's fine, and it
appears that you've solved it in a reasonably cross-platform
When you run python -i scriptname.py after the script completes you left
at the interactive command prompt.
Is there a way to have this occur from a running program?
In other words can I just run scriptname.py (NOT python -i scriptname.py)
and inside of scriptname.py I decide that I want to
:[EMAIL PROTECTED]
Very simple is you're on UNIX ...
You juste have to put at the beginnin of your file :
#!/usr/bin/python -i
And it juste does what you want :)
Pierre
Joe a écrit :
When you run python -i scriptname.py after the script completes you
left at the interactive command prompt
'
Michael Hoffman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Joe wrote:
I want the script to decide whether to fall back to the interactive
prompt. You solution makes it ALWAYS fall back to the interactive prompt.
Actually, using sys.exit() means the program can exit even
Reinhold,
Interesting.
A key difference between the two is that PYTHONINSPECT will allow you access
to the prompt at the end of your program (assuming no sys.exit or raise
SystemExit) but code.interact() allows you to jump into the program at any
point.
Reinhold Birkenfeld [EMAIL PROTECTED]
it whenever you
wanted too. This has the advantage that you can even trap SystemExit if you
want too.
Thanks again to everyone!
Michael Hoffman [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Joe wrote:
Actually I would do that everyone else suggested for your use case. I
Found that out :-(
You can use the local=locals() option so at least you have access to the
local variables, which in the case of debugging, is exactly what I needed.
Since -i gives you control at the end of the program the locals are already
gone.
Seems like both approaches have their
Right, but only one namespace. Would be nice if there was a way to give it
both the global and the local namespaces. In my case though the local
namespace was sufficient.
Just [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
code.interact() has a namespace argument ('local'), so it
While debugging a problem I was having I found a bug in the cgi.py module.
When the environment does not have a correctly set REQUEST_METHOD cgi.py
prompts
for key=value pairs by reading from sys.stdin. After the values are read
from
sys.stdin they are never stored in the FieldStorage.list
]
Michael Hoffman wrote:
Joe wrote:
I want the script to decide whether to fall back to the interactive
prompt. You solution makes it ALWAYS fall back to the interactive
prompt.
Actually, using sys.exit() means the program can exit even if python -i
is used.
You can use:
import code
Steve,
Thanks, I knew about that but my question is why is it not working
consistently?
Joe
Steven Bethard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Joe wrote:
Isn't this a bug?
Here's the test program:
import code
def test_func():
lv = 1
print '\n\nBEFORE
Thanks I thought that was also true for globals() but I now see that it is
not.
Steven Bethard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Joe wrote:
Thanks, I knew about that but my question is why is it not working
consistently?
At the module level, locals() is globals
directories, the user will be prompted by their
browser for the user / pswd and as long as the directories they access are
using the same authentication the user will not be prompted again until they
close their session.
It's pretty easy to setup.
Joe
Pete. [EMAIL PROTECTED] wrote in message
stuck in the ZODB.
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
control if it's stuck in the ZODB?
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
be the instances of those products.
Right, but it's still a pain. Incidently, this is the reason for
Zope-inspired frameworks like CherryPy, ie. Zope with ol' fashioned
dev tools.
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 15 Mar 2005 00:07:34 -0500, Benji York [EMAIL PROTECTED]
wrote:
That's not entirely true of Zope 2, and not true at all for Zope 3. All
code for Zope 3 is loaded from the file system.
Great news :-) I'll go check it out.
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
on any of the points above (probably because the work involved
is underevaluated, and just not doable without a constant and
sufficient revenue stream.)
Just my opinion,
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
to master this new language/tool, and
once 80% of hosts have the .Net framework, it'll be time to check
which route seems more promising.
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
a lot
of RAM and file footprint.
Joe.
--
http://mail.python.org/mailman/listinfo/python-list
I still consider myself a newbie, and being new to the list I request that
you take it easy on me. ;)
We're running a RHEL LAMP server with the mod_python publisher interpreter.
The MySQLdb module seems to be giving me more problems than I had hoped for.
With a fresh restart of apache, all
Sorry, forgot some valuable information. If you couldn't tell from the
traceback, the error will be thrown during the first executed query that the
program runs into (no matter what that query is).
Jough
_
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Joe
Sent
File build/bdist.linux-i686/egg/MySQLdb/cursors.py, line 147, in execute
charset = db.character_set_name()
InterfaceError: (0, '')
We got it working. It was caused by passing a database connection to a
module:
import MySQLdb
import module_name
connection =
Try passing the cursor and not the connection -
Unfortunately this provided the same InterfaceError. It was one of the
first options we had tried in correcting the situation. Is there any way to
check on the status of a database connection (like an isOpen() method)? It
appeared as though the
Huh the only thing I can find on InterfaceError is Errors related to
the database interface and not the database itself. You might be able
to get some info from connection.info() . . .
Yeah, I wish there was more documentation about this type of error. The
only thing info() tells me is that
I have a list of lists that I would like to sort utilizing a certain index
of the nested list. I am able to successfully use:
Import operator
list = [[Apple, 1], [airplane, 2]]
list.sort(key=operator.itemgetter(0))
But, unfortunately, this will be case sensitive (Apple will come before
Try:
list.sort(key=lambda el: el[0].lower())
Thanks! Worked like a charm :)
BUT - it's not a good idea to use list as a name, 'cos list is a
built-in, and you're obscuring it.
Oh, don't worry. That was strictly my portrayal of the problem.
Thanks again!
Jough
--
Try:
list.sort(key=lambda el: el[0].lower())
Now, I would like to be able to specify which index to sort by. I am not
able to pass in external variables like:
List.sort(key=lambda el: el[indexNumber].lower())
I am new to lambda and have searched for a few hours this morning, coming up
Now, I would like to be able to specify which index to sort by. I am
not
able to pass in external variables like:
List.sort(key=lambda el: el[indexNumber].lower())
Why ever not?
Sorry, I should have written back with my findings. I had run into the
problem described in this email:
L International Reveals Plans for High-Tech
Next-Generation Laptop Computer Systems
L International Computers Inc. L renowned manufacturer of
high-performance computers and personal/business technologies, revealed
plans for its next generation high-end laptop and ultra-portable
computer systems.
California area, and would like to set up a booth, I
encourage you to apply. Any questions, please do not hesitate to ask.
Thanks for your time!
Joe Smith
http://scale7x.socallinuxexpo.org/conference-info/call-for-dotorg-exhibitors
--
http://mail.python.org/mailman/listinfo/python-list
!
Joe Smith
Southern California Linux Expo
[1] https://socallinuxexpo.org/reg7/
--
http://mail.python.org/mailman/listinfo/python-list
I am trying to write/run a python script which imports from another
script which is located in my /usr/lib64/python2.6/site-packages/ dir,
but getting the following error.
$ python ./mytest.py
Traceback (most recent call last):
File ./mytest.py, line 45, in module
from moda import *
But it's searching for _moda.*, most probably a binary extension. Does that
exist, and if yes, has it the proper architecture or is it maybe 32 bit?
I'm just going by an example script. moda is a package I was given that
is written in C and has some python bindings and does run 64-bit. I'm on
Diez B. Roggisch wrote:
Joe wrote:
But it's searching for _moda.*, most probably a binary extension. Does
that exist, and if yes, has it the proper architecture or is it maybe 32
bit?
I'm just going by an example script. moda is a package I was given that
is written in C and has some
Please verify that it exists and has the proper architecture.
Ah, ok, I thought those were one in the same. But I do have that file in
another directory elsewhere and I have that directory in my
LD_LIBRARY_PATH var.
Shouldn't that be enough to do it?
--
Just to clarify, I have _moda.la sitting in another directory which is
included in my LD_LIBRARY_PATH. And it is built for the 64bit arch.
--
http://mail.python.org/mailman/listinfo/python-list
No, the import-mechanism of python doesn't take LD_LIBRARY_PATH into
account, and even if it did - _moda.la is a simple archive-file, not a
shared library. It can't be dynamically loaded. Something in your
build-process is not working.
So how should my stuff find these libs?
Here's what I've
Your installation process is botched (no idea why, you don't show us
setup.py or anything else I asked for).
Sorry, but I do know how it's currently installed is exactly the way I
need it to be installed.
All that is missing is what I've asked you now several times before:
_moda.so is
The Python 3.1.1 documentation has the following example:
b'\x80abc'.decode(utf-8, strict)
Traceback (most recent call last):
File stdin, line 1, in ?
UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0:
unexpected code byte
b'\x80abc'.decode(utf-8,
Thanks for your response.
Please provide more information
The Python 3.1.1 documentation has the following example:
Where? I could not find them
http://docs.python.org/3.1/howto/unicode.html#unicode-howto
Scroll down the page about half way to the The String Type section.
The example
For the reason BK explained, the important difference is that I ran in
the IDLE shell, which handles screen printing of unicode better ;-)
Something still does not seem right here to me.
In the example above the bytes were decoded to 'UTF-8' with the
replace option so any characters that were
Thanks Mark, that is a great suggestion!
You can also replace the Unicode replacement character U+FFFD with a valid
cp437 character before displaying it:
b'\x80abc'.decode('utf8','replace').replace('\ufffd','?')
'?abc'
--
http://mail.python.org/mailman/listinfo/python-list
Here is my environment:
Windows 7 x64 SP1
Python 3.2
adodbapi 2.4.2
MS Access
Although the above environment is what I am currently using I have
encountered this same problem with Python 3.1.1. It is not a problem
with Python 2.x.
The problem is as follows:
If you are using a select
How would a grapheme library work? Basic cluster combination, or would
implementing other algorithms (line break, normalizing to a canonical
form) be necessary?
How do people use grapheme clusters in non-rendering situations? Or here's
perhaps here's a better question: does anyone know any
for your help!
Joe
--
http://mail.python.org/mailman/listinfo/python-list
New submission from Joe us3...@web.de:
It would be nice, if you could offer the Windows version also as a zi
package, besides the msi installer.
--
components: Windows
messages: 91890
nosy: Joe
severity: normal
status: open
title: Python as zip package
type: feature request
Joe us3...@web.de added the comment:
I meant as a zip archive package
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6767
___
___
Python-bugs
Joe us3...@web.de added the comment:
Because, I don't need/want an installation. I only need the files whith
its directory structure.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6767
How to find the number of robots needed to walk through the rectangular grid
The movement of a robot in the field is divided into successive steps
In one step a robot can move either horizontally or vertically (in one row or
in one column of cells) by some number of cells
A robot can move in
On Saturday, 9 April 2016 18:44:20 UTC+2, Ian wrote:
> On Sat, Apr 9, 2016 at 8:18 AM, Joe wrote:
> > How to find the number of robots needed to walk through the rectangular grid
> > The movement of a robot in the field is divided into successive steps
> >
> > In one s
On Saturday, 9 April 2016 21:55:50 UTC+2, Mark Lawrence wrote:
> On 09/04/2016 20:41, Joe wrote:
> >
> > Sorry, I was desperate
> > I deleted the post
> >
>
> You didn't. This will be showing in the archives in several places, e.g
> https://mail.python.
On Saturday, 9 April 2016 21:24:02 UTC+2, Mark Lawrence wrote:
> On 09/04/2016 18:13, Joe wrote:
> > On Saturday, 9 April 2016 18:44:20 UTC+2, Ian wrote:
> >> On Sat, Apr 9, 2016 at 8:18 AM, Joe wrote:
> >>> How to find the number of robots needed to walk throu
New submission from Joe:
In Python 3k releases leading up to 3.5.2, distutils.config imported
"ConfigParser", but now imports "RawConfigParser" in the latest release.
The documentation indicates "RawConfigParser" is considered legacy and
"Config
Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain:
On Mon, 29 Aug 2016 21:21:05 -0700
Larry Hudson via Python-list wrote:
I remember it well. It's what I used to initially learn C. I'm a
completely self-taught, hobby programmer. Been around since the MITS
Altair. How
Am 30.08.2016 um 17:52 schrieb D'Arcy J.M. Cain:
On Tue, 30 Aug 2016 15:56:07 +0200
Joe <t...@joepgen.com> wrote:
Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain:
On Mon, 29 Aug 2016 21:21:05 -0700
Larry Hudson via Python-list <python-list@python.org> wrote:
I remember it well.
Am 30.08.2016 um 06:24 schrieb Paul Rubin:
Larry Hudson writes:
with BDS-C under CP/M. Somebody remenbering this no-fp compiler from
the dark age before PC und Linux?
I remember it well. It's what I used to initially learn C.
Source code is online here:
Am 28.08.2016 um 00:45 schrieb Terry Reedy:
> On 8/27/2016 3:35 PM, Joe wrote:
>> Hi,
>>
>> I'm using Python 3.5.1 with PyUSB 1.0 under Win 10 (64). We try to read
>> the USB output of a DMM 'UT61B'.
>>
>> import usb.core
>> import usb.util
Am 28.08.2016 um 00:34 schrieb Terry Reedy:
On 8/26/2016 7:58 PM, ROGER GRAYDON CHRISTMAN wrote:
"If it walks like a duck, quacks like a duck,... "
so there is indeed precedence for this so-called 'duck typing'
but wouldn't it be more Pythonic to call this 'witch typing'?
"How do you know
b1.py", line 936, in
__read
_check(retval)
File "D:\Python3\Lib\site-packages\usb\backend\libusb1.py", line 595, in
_check
raise USBError(_strerror(ret), ret, _libusb_errno[ret])
usb.core.USBError: [Errno 10060] Operation timed out
What's wrong? How to fix?
Regards -- Joe
--
https://mail.python.org/mailman/listinfo/python-list
Am 28.08.2016 um 17:22 schrieb Dennis Lee Bieber:
If you can read spaghetti coded C, you might want to study
https://sourceforge.net/projects/ut61/
Interesting, but... The last time I did something with c, it was with
BDS-C under CM/M. Somebody remenbering this no-fp compiler from the dark
Am 29.08.2016 um 10:54 schrieb Joe:
it was with BDS-C under CM/M.
under CP/M, of course.
--
https://mail.python.org/mailman/listinfo/python-list
Joe added the comment:
We are running into this all the time, ever since the Proactor became the
default on Windows in 3.8.
Usually it comes up when the program terminates due to an unhandled exception
during a highly concurrent operation. The resulting cascade of RuntimeErrors
often
source)
The issue tracker can be found on bitbucket:
http://www.bitbucket.org/amentajo/lib3to2/issues?status=newstatus=open
Please post any bugs that you find with this release.
--Joe Amenta
(airbreather / amentajo)
--
http://mail.python.org/mailman/listinfo/python-announce-list
Support
Timo Virkkala wrote:
This guy has got to be a troll. No other way to understand.
--
Timo Virkkala
Not a troll, just another case of premature optimization run amok.
--
http://mail.python.org/mailman/listinfo/python-list
In article [EMAIL PROTECTED],
Just [EMAIL PROTECTED] wrote:
In article [EMAIL PROTECTED], Robert Kern [EMAIL PROTECTED]
wrote:
Christian Dieterich wrote:
On Dé Céadaoin, Feabh 2, 2005, at 17:48 America/Chicago,
[EMAIL PROTECTED] wrote:
Hi there
I started a very long
extensions directly in Delphi:
http://membres.lycos.fr/marat/delphi/python.htm
http://www.atug.com/andypatterns/PythonDelphiLatest.htm
Demo09 (look in demodll.dpr module.pas) in the download tells you how.
Peace,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
edit with SciTE and use the
TortoiseSVN Explorer extension or the command-line utilities for
checkins and updates.
Peace,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
,
Joe
--
http://mail.python.org/mailman/listinfo/python-list
Chris wrote:
Hi Joe,
I'm curious. Why do you only use Eclipse for big projects?
Habit, mainly; plus it's easier for one-offs and single-file scripts to
just right-click a file in Explorer and Edit with ScITE and work from
there. And to further complicate matters, when in FreeBSD or Linux
Xah Lee wrote:
here's a interesting real-world algoritm to have fun with.
From you? Doubtful.
Sorry, dude, but you've been replaced by über-troll Ilias Lazaridis.
Security will escort you to the door.
--
Soraia: http://www.soraia.com
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 850 matches
Mail list logo