Michele Simionato wrote:
> Look at this example:
>
> >>> import psycopg
> >>> psycopg.__version__
> '1.1.19'
> >>> import datetime
> >>> today = datetime.datetime.today()
> >>> co = psycopg.connect('')
> >>> cu = co.cursor()
>
> >>> cu.execute('CREATE TABLE example (date date)')
> >>> cu.execute("
Frank Millman:
> import datetime as dt
> def DbToDate(dat):
>if isinstance(dat,dt.datetime):
>return dat # already in datetime format
>if isinstance(dat,dt.date):
>return dt.datetime.combine(dat,dt.time(0)) # convert to datetime
This is exactly the type checking I would
Michele Simionato wrote:
> Frank Millman:
>
> > import datetime as dt
>
> > def DbToDate(dat):
> >if isinstance(dat,dt.datetime):
> >return dat # already in datetime format
> >if isinstance(dat,dt.date):
> >return dt.datetime.combine(dat,dt.time(0)) # convert to datetime
Hello Tim,
If I created a matrix with a randomArray the first elements in the
matrix (row index 0 and col index 0) will change very small. Actually
this leads me to check the seed, and found that seed don't change
anything since I check in an hour duration. I found that it changes
very slow though
Some of the reasons are explained here:
http://www.amk.ca/python/writing/why-not-zope.html
I am using the last Zope (2.8.4) at work, and the situation is slightly
better now than in the past,
but only slightly. Zope 3 looks better, but I am not sure how much
better.
Michele Simionato
rodmc wrote:
> I am looking for a 2D data visualisation or graphics library for
> Python. Can anyone point me in the right direction?
>
>
> Thanks in advance,
>
> rod
>
Two tools I have used are Gnuplot-py
http://gnuplot-py.sourceforge.net/
and matplotlib
http://matplotlib.sourceforge.net/
--
Frank Millan:
> Perhaps if you explain what you are trying to do, I may be able to
> suggest something.
I am looking for an adaptation/type cast mechanism and looking at the
sources I think I have
found it in doc/examples/usercast.py. I am doing some experiment now
...
Michele Simionato
--
h
Stewart Midwinter wrote:
> [...]
> I'm using this version of Cygwin:
> $ uname -a
> CYGWIN_NT-5.1 Mulata 1.5.18(0.132/4/2) 2005-07-02 20:30 i686 unknown unknown
> Cyg
> win
> [...]
> When I run the same command in a Tkinter app, I get an exception:
>
> [EMAIL PROTECTED] /cygdrive/c/programs/pipewo
Sakcee wrote:
> thanks very much for the info, it really helped
>
> we are using the text from file to display on webpage and we have a
> method for conversion the parsed data to utf-8 and then displaying, all
> the data looks fine after parsing except the
> surrogate pair,
> since i can not gues
On 4 Jan 2006 15:47:34 -0800, Van_Gogh <[EMAIL PROTECTED]> wrote:
Hi,I am learning how to use the smtplib module, but am having some veryearly problems, maybe because I don't understand it.So, am I correct that by following the example in the Python:
[snip]
When I try to create the server(the li
[EMAIL PROTECTED] wrote:
> Hi everyone, I'm planning using python with asp, and wonder if some
> people do use python/asp in real life projects. (I'm going to)
I used to back in the days, and it was fine.
A lot better than VBScript / JScript that was available then.
Perhaps IronPython would be w
Stuart D. Gathman wrote:
> On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
>
>
>>I was under the assumption that everything in python was a refrence...
>>
>>so if I code this:
>>lst = [1,2,3]
>>for i in lst:
>> if i==2:
>> i = 4
>>print lst
>>
>>I though the contents of lst would be
This is a *great* idea. Shame you've chosen Qt as your GUI API though.
;-)
All the best,
Fuzzyman
http://www.voidspace.org.uk/python/index.shtml
--
http://mail.python.org/mailman/listinfo/python-list
I was wondering if there was a way to extract everyting in the url
after the "?" question mark in one go.
I have a search page and a results page, and I want the results page to
be able to keep a history of what searches have been performed, but
there is always a different number of search terms s
Steven D'Aprano wrote:
>
> On reading back over my post, I realise that it might
> sound like I was mad at KraftDiner. My apologies -- I'm
> not, I feel (s)he is the victim of incorrect
> information here, not the culprit.
>
> After all, as a Python newbie, how is KraftDiner
> supposed to know that
I have been studying your reply for many hours now, trying to figure it
all out. I am novice in many respects; eg. I did not know neither
Locale, the command locale, nl_langinfo(), hexdump, that ctrl+d is EOF,
etc. :-)
However I have found a way that solves my original problem, and I will
post sol
On Wed, 04 Jan 2006 22:38:06 -0500,
"Stuart D. Gathman" <[EMAIL PROTECTED]> wrote:
> On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
>> I was under the assumption that everything in python was a refrence...
>>
>> so if I code this:
>> lst = [1,2,3]
>> for i in lst:
>> if i==2:
>> i = 4
>> p
On 4 Jan 2006, at 02:50, Tom Anderson wrote:
> On Tue, 3 Jan 2006, Dan Sommers wrote:
>
>> On Tue, 03 Jan 2006 15:21:19 GMT,
>> Doug Schwarz <[EMAIL PROTECTED]> wrote:
>>
>>> Strictly speaking, it's not OS X, but the HFS file system that is
>>> case
>>> insensitive.
>
You can choose if HFS+ be
On 5 Jan 2006 02:54:25 -0800,
"sophie_newbie" <[EMAIL PROTECTED]> wrote:
> I was wondering if there was a way to extract everyting in the url
> after the "?" question mark in one go.
[snip]
> Is there any easy way of getting the results.cgi program to read this
> entire URL (or even just the bit
Pardon the Chicken Little-like introduction, but there's good news that
doesn't seem to have penetrated (as far as my news server anyway) -
please accept my apologies if you've already seen this.
The PyCon organizers recently announced that the early bird registration
deadline for PyCon 2006 ha
Hi
I did your loop after ensuring that everything works fine:P
Big Thanks :D
Greets,
Tomek.
--
http://mail.python.org/mailman/listinfo/python-list
In message <[EMAIL PROTECTED]>,
Sverker Nilsson <[EMAIL PROTECTED]> writes
>> Python Memory Validator.
>>
>> Run your program to completion.
>> Switch to the hotspots tab.
>> Search for your function.
>> All memory used in that function will be shown in the tree (with the
>> effective callstack) un
Claudio Grondi schrieb:
> Stuart D. Gathman wrote:
>> for (_idx = 0; _idx < NLST; ++_idx) {
>> int *i = lst[_idx];
>> if (*i == *_i2)
> ^-- I have trouble with this line. Is it as is should be? I suppose
> it is not.
>
i think he meant
if (*i == _i2)
but i think python does
if (i
Peter Hansen wrote:
>
> Seeing what others have achieved is always educational to the ignorant,
> so I learned something. ;-)
Would have been even more educating, if I had my original code still at
hand for comparison, which unfortunately I didn't. But all the
improvements come from following
Hi!
I make class extension from Delphi, but i have problem. Here my code:
//
{pyClassMethod}
function pyClassMethod( self, args : PPyObject ) : PPyObject; cdecl;
var
Strs : PChar;
begin
if PyArg_ParseTuple(args, 's',[EMAIL P
Ich schrieb:
> but i think python does
>
> if (i == &_i2)
>
> because there is only one integer object holding the value 2, so
> it is sufficient to compare the addresses (i'm not sure about this,
> perhaps someone smarter can clarify?).
well, as far as i can see the relevant function is
stat
Dan Sommers wrote:
> On Wed, 04 Jan 2006 22:38:06 -0500,
> "Stuart D. Gathman" <[EMAIL PROTECTED]> wrote:
>
>
>>On Wed, 04 Jan 2006 10:54:17 -0800, KraftDiner wrote:
>>
>>>I was under the assumption that everything in python was a refrence...
>>>
>>>so if I code this:
>>>lst = [1,2,3]
>>>for i in
Ich schrieb:
> well, as far as i can see the relevant function is
> in Objects/intobject.c, which does compare by value. so, this is
> either special-cased elsewhere or not optimized (should/can it be?).
it is special-cased, but still compares by value. the relevant
parts from "Python/ceval.c":
c
Den Thu, 05 Jan 2006 14:53:40 +0800. skrev limodou:
> 2006/1/5, Thomas Dybdahl Ahle <[EMAIL PROTECTED]>:
>> Is it possible for an imported module to find its own location?
>
> you can access __file__(missing for built-in modules) or __path__(used
> for a package) attribute to find a module's loca
David Murmann wrote:
> but i think python does
>
> if (i == &_i2)
>
> because there is only one integer object holding the value 2, so
> it is sufficient to compare the addresses (i'm not sure about this,
> perhaps someone smarter can clarify?).
No, Python itself only allocates one integer ob
All these web technologies I don't know where to start, have you got
any suggestions for getting started in the world of web development,
books maybe ?
Once again thanks for your help
Mike Meyer wrote:
> [EMAIL PROTECTED] writes:
> > Ok then, web it is, just wondering how you can test the web ap
Bryan> We could define the __or__ method for RegExFlags, but really,
Bryan> or-ing together integer flags is old habit from low-level
Bryan> languages. Really we should pass a set of flags.
Good idea. Added to the Python3.0Suggestions wiki page:
http://wiki.python.org/moin/Pytho
What is the quickiest and easiest way to make a py script run on a Web
server? I have access to an Apache Web server running on Linux.
I'm often asked to run some of my scripts on behalf of others. My hope
is to make a simple Web-based interface where people could run the
scripts themselves whenev
Dan Sommers schrieb:
> int **_idx;
> for( _idx = lst; _idx < lst + NLST; ++_idx ) {
> int *i;
> i = *_idx;
>
> /* compare "the item to which i is bound" to "a constant" */
> if( *i == *(&_i2) )
> /* rebind i to _i4 */
> i = &_i4;
> }
>
> for( _idx = lst; _idx < lst
With your input this returns:
[200, 20, 0, 13050]
so it's not what you want, but maybe it can be a starting point for
you:
from re import findall
txt = """\
test test test description (100-10-0, 6700 test)
test test test description (100-10-0, 6350 test)"""
lines = txt.split("\n")
re
I recall that Active State Python binary does not include SSL because of
export restriction. Try using normal python binary in http://python.org.
Russell Stewart wrote:
> I'm trying to log into a secure IMAP4 server using imaplib,
> and I'm getting a strange error. If I do the following (name
> o
Diez B. Roggisch wrote:
> No. That is simply impossible in python as well as in java where functions
> are always virtual, meaning they are looked up at runtime. Because you'd
> never know _which_ code to insert of all the different foo()-methods that
> might be around there.
Not quite "simply imp
Mike Meyer wrote:
>[EMAIL PROTECTED] writes:
>
>
>>Yeah, I guess that is one route to go down. It just seems, I don't
>>know, hacky. I will try it though, if I can't find the binaries online
>>by themselves. I don't think it's a question of being "hard to do"
>>using the method you suggested,
DaveM wrote:
> On 3 Jan 2006 20:09:34 -0800, [EMAIL PROTECTED] (Aahz) wrote:
>
> >Unfortunately, this isn't quite true. Medicine and law both require the
> >passing of an apprenticeship, so there's still some room for favoritism
> >and blackballing.
>
> In the UK, in Medicine, House Officer jobs
>
> Agreed, so I took another Linux box to make sure to not make "custom
> version" mistakes.
>
> Same here. Yes, there are 2.4-packages of all kind. But there's also a
> dependency package "python" telling the whole box that Python is 2.3.5.
> And when I want to install wxWidgets into Python 2.4
Is there a way in python to figure out which process is running on
which port? I know in Windows XP you can run "netstat -o" and see the
process ID for each open portbut I am looking for something not
tied to windows particularly, hopefully something in python.
if not, any known way, such as
[EMAIL PROTECTED] wrote in
news:[EMAIL PROTECTED]:
> I've just upgraded from Python 2.3.3 to Python 2.4.2, and,
> although the new version of Python seems to be running
> correctly, I can't seem access the help from the interpreter.
>
> On Python 2.3.3
> ---
> Python 2.3.3 (#51, Dec
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people coul
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people could
Karrigell lets you run pure python scripts, although not directly in
Apache.
It uses its own server running behind apache.
You can code in 4 styles:
-pure python scripts
-python in html (like in PHP)
-html in python
-karrigell services (mapping functions to urls)
http://karrigell.sf.net
Hope th
Learning Python by Ascher and Lutz has a very good introduction to
objects and object-oriented programming. If you're new to programming,
I definitely recommend the text. Also, check out Mark Pilgrim's chapter
on OOP in Dive Into Python at
http://www.diveintopython.org/object_oriented_framework/ind
[EMAIL PROTECTED] wrote:
> What is the quickiest and easiest way to make a py script run on a Web
> server? I have access to an Apache Web server running on Linux.
>
> I'm often asked to run some of my scripts on behalf of others. My hope
> is to make a simple Web-based interface where people coul
I apologize for my inital ambiguity.
Say I have a .py script that gets email addresses from a database and
then sends messages to customers (this is not spam, these guys _want_
to get the emails). Historically, IT has executed the script when
someone in Marketing makes a request. I want to make it
Mike Meyer wrote:
> The url is http://www.mired.org/home/mwm/try_python/. Reports of
> problems would appreciated.
You're probably already aware of this, but the online help utility
doesn't work. It exits before you can type anything into it:
Hi,
I've two relatively small web applications that are currently implemented in
PHP and needed to be migrated to python and most likely zope afterwards as
we're getting a third-party Zope powered CMS later this year.
There isn't an immediate need for them to be developed as zope
modules/extension
Does anyone know of a Python module that is able to sniff the encoding of
text? Please: I know that there is no reliable way to do this but I need
something that works for most of the case...so please no discussion about
the sense of such a module and approach.
Andreas
pgpj27jiq5WgN.pgp
Descr
On 2006-01-04, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
><[EMAIL PROTECTED]> wrote:
>> But here is my real question...
>> Why isn't something like this in itertools, or why shouldn't
>> it go into itertools?
>
>
> 4) If a need does arise, it can be met by __builtins__.map() or by
> writi
Bengt Richter wrote:
> On 4 Jan 2006 12:46:47 -0800, "Raven" <[EMAIL PROTECTED]> wrote:
>>The problem with Stirling's approximation is that I need to calculate
>>the hypergeometric hence the factorial for numbers within a large range
>>e.g. choose(14000,170) or choose(5,2)
>
> It seems you are hi
Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
13] Permission denied when calling os.remove(). This can occur with a
file that is not used by any other process on the machine, and is
created by the python.exe invocation that is trying to delete it. It
can happen with various
Diez B. Roggisch wrote:
>>
>> Agreed, so I took another Linux box to make sure to not make "custom
>> version" mistakes.
>>
>> Same here. Yes, there are 2.4-packages of all kind. But there's also a
>> dependency package "python" telling the whole box that Python is 2.3.5.
>> And when I want to i
py wrote:
> Is there a way in python to figure out which process is running on
> which port? I know in Windows XP you can run "netstat -o" and see the
> process ID for each open portbut I am looking for something not
> tied to windows particularly, hopefully something in python.
>
> if not,
[Alec Wysoker]
> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
> 13] Permission denied when calling os.remove(). This can occur with a
> file that is not used by any other process on the machine,
How do you know that?
> and is created by the python.exe invocation that is t
Alec Wysoker wrote:
> Using Python 2.3.5 on Windows XP, I occasionally get OSError:
> [Errno 13] Permission denied when calling os.remove(). This can
> occur with a file that is not used by any other process on the
> machine, and is created by the python.exe invocation that is
> trying to delete
Hi,
I'm playing around with the latest (soon to be released) SPE on Ubuntu.
This probably will increase the quality of SPE on Ubuntu and Linux/GTK
in general. I already made some patches, but I would like to get in
contact with SPE users on Ubuntu. The version of SPE which is now
available on Ubun
"Ben Sizer" <[EMAIL PROTECTED]> writes:
> But, if you separate the calling mechanism from the assignment
> mechanism, then Python does behave like every other call by reference
> language. The problem is that people expect to then be able to change
> the value of the referred object with the assign
On Thu, 5 Jan 2006 01:14:43 + (UTC) in comp.lang.python, Karlo
Lozovina <[EMAIL PROTECTED]> wrote:
>Dave Hansen <[EMAIL PROTECTED]> wrote in
>news:[EMAIL PROTECTED]:
>
>> I'm not sure what rn is, but it looks like a standard library
>> random.Random object. If so, I don't think you want to s
On Thu, 05 Jan 2006 14:28:51 +0100,
David Murmann <[EMAIL PROTECTED]> wrote:
> Dan Sommers schrieb:
>> int **_idx;
>> for( _idx = lst; _idx < lst + NLST; ++_idx ) {
>> int *i;
>> i = *_idx;
>> /* compare "the item to which i is bound" to "a constant" */
>> if( *i == *(&_i2) )
>> /* rebind i to _i4
Franz GEIGER wrote:
> Diez B. Roggisch wrote:
>
>>sudo apt-get install python-wxgtk2.6
>>
>>Which depends on python2.4
>
> No, sorry, at least not on all my Sarge boxes. I'm told "needs python2.3"
> when I look at its properties from within Synaptic (Dependency Tab): Needs
> python-wxversion, nee
Interesting theory. I do have a virus scanner, and also Google Desktop
Search. Sometimes I get this error when running a large suite of unit
tests. Each unit test starts off by cleaning the test output
directory, and failing if it can't do so. I will see many (hundreds?)
tests fail because the
This works well! Thanks for the advice. The docs for it should include
something about adding content_type = 'text\plain' otherwise, the
'testing' section of the tutorial is broken
It should look like this:
from mod_python import apache
def handler(req):
req.content_type = 'text/plain'
req
>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>> 13] Permission denied when calling os.remove(). This can occur with a
>> file that is not used by any other process on the machine,
>
> How do you know that?
Yeah, good point. I don't really know. I should have said no p
Thank you all for the advice and suggestions. I appreciate the time you
took to help!
--
http://mail.python.org/mailman/listinfo/python-list
Hi !
i am trying to serialise object which contains some unicode objects
but looks like there is no way to do it.
File
"/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/site-packages/
_xmlplus/marshal/generic.py", line 92, in _marshal
return getattr(self, meth)(value, dic
[EMAIL PROTECTED] wrote:
> I apologize for my inital ambiguity.
>
> Say I have a .py script that gets email addresses from a database and
> then sends messages to customers (this is not spam, these guys _want_
> to get the emails). Historically, IT has executed the script when
> someone in Marketi
On Jan 4, 2006, at 4:32 AM, Michael Anthony Maibaum wrote:
> You can choose if HFS+ behaves in a case-preserving, case-insensitive
> or case-sensitive manner. See man newfs_hfs. Case sensitive is not
> supported on the 'System' volume, but I have several external disks
> using it without a proble
"isthar" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi !
> i am trying to serialise object which contains some unicode objects
> but looks like there is no way to do it.
>
hi, I'm sure you'll get better answers for the unicode part of your problem
(I'd start with a look at th
Robert Kern <[EMAIL PROTECTED]> wrote:
> As of this time, the Debian wxPython packages are only provided for
> Python 2.3. I couldn't tell you why. Try looking at the bug list
> for python-wxgtk2.6. I'm sure there's a bug filed against it asking
> for a Python 2.4 version. Perhaps the maintain
I use SPE and my editor on my primary OS and I'd be very interested in
using SPE with Ubuntu.
--
http://mail.python.org/mailman/listinfo/python-list
On 2006-01-05, Alec Wysoker <[EMAIL PROTECTED]> wrote:
>>> Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>>> 13] Permission denied when calling os.remove(). This can occur with a
>>> file that is not used by any other process on the machine,
>>
>> How do you know that?
>
> Y
Alec Wysoker wrote:
>>>Using Python 2.3.5 on Windows XP, I occasionally get OSError: [Errno
>>>13] Permission denied when calling os.remove(). This can occur with a
>>>file that is not used by any other process on the machine,
>>
>>How do you know that?
>
>
> Yeah, good point. I don't really kn
So is Ubuntu your primary OS? Please email me privately at
pythonide.stani.be_gmail.com
News about new release you can follow here:
http://pythonide.stani.be/blog
--
http://mail.python.org/mailman/listinfo/python-list
Andreas Jung <[EMAIL PROTECTED]> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 6 lines --]
>
> Does anyone know of a Python module that is able to sniff the encoding of
> text? Please: I know that there is no reliable way to do this but I need
> something that works for
"py" <[EMAIL PROTECTED]> writes:
> Is there a way in python to figure out which process is running on
> which port? I know in Windows XP you can run "netstat -o" and see the
> process ID for each open portbut I am looking for something not
> tied to windows particularly, hopefully something in
I have an application I'm writing using PyQt. I'm trying to create the
various windows by subclassing Qt objects. I have a subclassed
QMainWindow as the parent, and then a series of subclassed QWidgets as
other child windows that get used. How can I pass variables back and
forth between the parent
Dave Hansen <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> In your code, I would simply remove the rn.seed() call. Regards,
And that's what I'm gonna do :). The random part is not that important to
my application so I wont investigate into further detail... anyway, thank
you.
--
__
File attributes may be an issue to. Take look at the recipe at:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/303343
which ensures the file attributes are normal before you delete it.
john
--
http://mail.python.org/mailman/listinfo/python-list
i have an
href which looks like this:
http://www.cnn.com";>
here is my code
for incident in row('td', {'class':'all'}):
n = incident.findNextSibling('a', {'class': 'btn'})
link = incident.findNextSibling['href'] + "','"
and the full error is thi
hi all
am updating the same file in ftp, through multiple clients, but am
scared that two clients may open the same file at a time, and try
updating, then the data updated by one data will be lost.
So i have to provide some lock mechanism to that file in ftp, so how
can i lock it, if one client op
On Thu, 05 Jan 2006 08:47:37 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>On Wed, 04 Jan 2006 13:18:32 +0100, Riko Wichmann wrote:
>
>> hi everyone,
>>
>> I'm googeling since some time, but can't find an answer - maybe because
>> the answer is 'No!'.
>>
>> Can I call a function in python
Steven Bethard <[EMAIL PROTECTED]> writes:
> Mike Meyer wrote:
>> The url is http://www.mired.org/home/mwm/try_python/. Reports of
>> problems would appreciated.
> You're probably already aware of this, but the online help utility
> doesn't work. It exits before you can type anything into it:
Act
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
Please use less whitespace in your posts in the future. There's really
no need to put two blank lines between sections.
> i have an
> href which looks like this:
>
> http://www.cnn.com";>
>
> here is my code
> for incident in row('td',
Tim Peters wrote:
> In that case, anything that burns some time and tries again
> will work better. Replacing gc.collect() with time.sleep() is
> an easy way to test that hypothesis; because gc.collect()
> does an all-generations collection, it can consume measurable time.
An slight enhancemen
isthar wrote:
> WDDX is perfect for me for exchange between python and php application.
> but maybe there is a better way to do it.
It appears that Unicode objects where forgotten in the WDDX
implementation. I suggest to define the following classes:
class UWDDXMarshaller(xml.marshal.wddx.WDDXMar
I would like to pass some keyword with special character to a foo(**kwargs) function, but it doesn't workdef foo(**kwargs): print kwargsThis doesn't work:foo(a-special-keyword=5)How do I tell Python to treat '-' as a normal character but not part of an _expression_?
Thanks,Khoa
--
http://mail.py
Tony Nelson wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > My goal is to make my conf files into a decent drop-in so you just put
> > them in your .vim directory and go, and post them next week.
>
> OK, thank you.
>
FYI, I am still working on this but some changes in vim 7 are requ
[EMAIL PROTECTED] writes:
> All these web technologies I don't know where to start, have you got
> any suggestions for getting started in the world of web development,
> books maybe ?
This is out of date but may help get started.
http://philip.greenspun.com/panda/
--
http://mail.python.org/mailma
I am trying to pull data from a web page at https://localhost/wps.
While this would work if the url was http://localhost/wps, it doesn't
work with 'https.'
I can do this:
import urllib
data = urllib.urlopen('http://localhost/wps').read()
But not with https. How can I pull data from a https url?
Ray wrote:
> But then again, once you start using .NET class you're tied to .NET
> anyway so this is not a big problem, I think--although the more
> perfectionist among us might like to isolate parts of Python code that
> are .NET/IP specific to make porting easier if it ever comes to that...
That
I have a Tkinter app running on cygwin. It includes a Test menu item
that does nothing more than fetch a directory listing and display it
in a Toplevel window (I'd use a tkMessageBox showinfo widget, but for
some reason the text is invisible on cygwin).
After I close the Toplevel widget, all of t
that's it! Thanks, that sorted me out. The readme at the following
location was very helpful:
http://www.tishler.net/jason/software/rebase/rebase-2.2.README
I couldn't get rebaseall to work until I installed all of the packages
mentioned in the readme.
Now I have a different problem, regarding
here's a simple-minded suggestion: have the first client create a text
file on the remote server, and delete it when it is finished updating.
The second client can check for existence of this file before trying to
update.
cheers,
S
--
http://mail.python.org/mailman/listinfo/python-list
gregarican schrieb:
> I have an application I'm writing using PyQt. I'm trying to create the
> various windows by subclassing Qt objects. I have a subclassed
> QMainWindow as the parent, and then a series of subclassed QWidgets as
> other child windows that get used. How can I pass variables back a
Hi to all,
I'm using adodb for accessing mysql and postgres. My problem relies on
the mysql access.
Sometimes, when I try to execute a query (using ExecTrans method
below), I get this error:
'NoneType' object has no attribute 'cursor'
Maybe this error ocurrs not in my code, but in the mysql mod
> print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252',
> 'macroman']
I've fallen into that trap before - it won't work after the iso8859_1.
The reason is that an eight-bit encoding have all 256 code-points
assigned (usually, there are exceptions but you have to be lucky to have
Ken Guest schrieb:
> Hi,
> I've two relatively small web applications that are currently implemented in
> PHP and needed to be migrated to python and most likely zope afterwards as
> we're getting a third-party Zope powered CMS later this year.
>
> There isn't an immediate need for them to be deve
1 - 100 of 154 matches
Mail list logo