Birgit Rahm wrote:
Hello newsgroup,
Hello Birgit,
I haven't found any way to do logging in a standard way.
The solution i've implemented is to decorate each method you want to log
the call, using the logging module (included in python since 2.3)
For example :
import logging
def loggedmethod(metho
I can't speak for Guido but I think it is messy and unnatural and will lead to
user frustration.
As a user, I would expect a dict to take any hashable as key and any object as
value when using one. I would probably just provide a __getitem__ method in a
normal class in your case.
This said I
to do that?
Sorry for the unfocused nature of this question. I wouldn't have asked it if
this weren't a one-off task and if I didn't need this urgently.
Any help and pointers would be greatly appreciated.
Thanks and best regards,
F.
--
http://mail.python.org/mailman/listinfo/python-list
Timothy Smith wrote:
> is it possible to mke a progress bar for queries? say i have a query
> that will take 20 seconds, i'd like to give some feed back to users on
> how long this will take.
it is strictly impossible to predict that cause of network load, server
load, query complexity
i
Hello,
I have problems making python on CentOS 5.
Seems that can not find something. I can not find the problem.
Where is the problem?
> case $MAKEFLAGS in \
> *-s*) CC='gcc -pthread' LDSHARED='gcc -pthread -shared'
> OPT='-DNDEBUG -fwrapv -march=i686 -mmmx -msse -msse2 -msse3 -O3 -
n PyRun_SimpleString but weencounter the same problems.
We are using python 2.7.
Any suggestions?
Thank you for your time.
Also, I'm new to mailling lists, what is the proper way to reply to someone?
Should Ireply directly to someone's email adress or is there a way to ans
> Is the `code` module (http://docs.python.org/library/code.html) an
> insufficiently exact copy of an interpreter for you?
The problem isn't really to emulate the behavior of the interpreter as to
obtain the result of the execution as a string in c++. The code module doesn't
seem to help with
> If you use the same workflow as you do currently, it won't
You're right it shouldn't cause a blocking call.
> Come to think of it, you might as well just use StringIO.
Yes I could probably replace std{in, out, err} with stringIO objects and
retrieve their contents throughthe api.
I'll look into
Hi,
I would like to get information from Wikipedia articles and I am testing the
connection to Wikipedia.
I am running Python 3.6.2 on Windows 10.
I get certificate errors for all pages with https.
Any suggestions are welcome!
Here my code:
import requests, bs4
from bs4 import BeautifulSoup
Am Dienstag, 12. Dezember 2017 14:33:42 UTC+1 schrieb Jon Ribbens:
> On 2017-12-11, F Massion wrote:
> > ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
> > (_ssl.c:748)
>
> Try `pip install certifi`
certifi was installed.
If I make the following
My script is used by a web interface which gets some parameters from a form.
The parameters are passed on as arguments like this:
(...)
def start(self, _Inputfile ,_Outputfile ,_Stopwordsfile)
As long as the number of arguments is set (i.e. 3), there are no problems
running the script.
Currentl
Le Tue, 27 Sep 2005 17:48:47 +0200, Berthold Höllmann a écrit :
> I have wrapped some inhouse libraries for Python.
How ? Directly coding C code ?
> The development team
> uses VC6 and DF6.1 for development of these libraries under WinXP.
DF6.1 is Digital FORTRAN 6.1 ?
> I
> would like to wrap the
Could it be
http://xoomer.virgilio.it/infinity77/eng/freeware.html#speedmeter you are
looking for?
HTH
Franz GEIGER
"Andreas Kaiser" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hello,
>
> I'am searching for a python solution for display a tachometer diagram.
> I prefe
I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd like
to call the nanothreads' __iter__ method, somehow.
When I copy the __iter__ method into a, say, runOnce() method and call the
next() method of the generator returned by runOnce(), it works. But I can't
get at the __iter_
Le 07 Jan 2005 05:28:31 EST, Tim Daneliuk a écrit :
> I am trying to initialize a menu in the following manner:
>
> for entry in [("Up", KeyUpDir), ("Back", KeyBackDir), ("Home", KeyHomeDir),
> ("Startdir", KeyStartDir), ("Root",
> KeyRootDir)]:
>
> func = entry[1]
> UI.ShortBtn.menu.
"vegetax" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I was a java developer one year ago ,before i moved to python i realy
liked
> it at the beggining, but i got very disapointed lately since my
> previus two python proyects where relatively big,and python didnt feel
> wel
Le 13 Jan 2005 21:58:36 -0800, mike kreiner a écrit :
> I am having trouble importing a module I created. I'm running PythonWin
> on Windows XP if that helps. I saved my module in a folder called
> my_scripts in the site-packages directory. I edited the python path to
> include the my_scripts folde
Le Fri, 28 Jan 2005 13:59:45 GMT, Chris Wright a écrit :
> Hi,
>
> 1) I want to iterate over a list "N at a time"
>
>
> Is there a nifty way to do with with list comprehensions,
> or do I just have to loop over the list ?
>
> cheers and thanks
seq = xrange(1, 9) # an iterable [1, 2, ... 8]
N
Le Fri, 28 Jan 2005 10:20:30 -0500, Bill Mill a écrit :
> Hello all,
>
> I have a misunderstanding about dynamic class methods. I don't expect
> this behavior:
>
> In [2]: class test:
>...: def __init__(self, method):
>...: self.method = method
>...: self.method()
Look at the wx demos.
Another idea: Use a virtual list control. In the OnGetItemText() you could
do the appropriate SQL query. Workedpretty well for me.
HTH
Franz GEIGER
"Michele" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> I've search a lot to found how visualize a mysql
I have written a script to find the modules which export the largest
number of names. The gc.getreferrers(*objs) function gives also an idea
of the dependencies between the modules.
The code (statsmod.py) :
#!/usr/bin/env python
# -*- coding: latin-1 -*-
"""
statsmod.py module rudimentaire de
> > Since Python doesn't have static typing, how is the same result as
traditional
> > function overloads results in acheived?
The more you program in Python, the less you are missing it.
As Philippe already said, use objects that support the protocol or decide
what to do with it after having che
Le Tue, 01 Feb 2005 12:10:47 +0100, Philippe Fremy a écrit :
>
>> Frequently, in Python, code which checks for types, rather than
>> checking for features, ends up being excessively restrictive and
>> insufficiently general.
>
snip
>
> Enforcing types also brings the benefit that the program is
Le Fri, 4 Feb 2005 12:49:51 -0600, Chad Everett a écrit :
> Hi Everyone,
>
> I am new to Python and programming in general. I bought the book "Python
> Programming for the Absolute Beginner" by michael Dawson.
>
> I am trying to make a coin flip program and keep geting a Synax Error
> "invalid s
Le 22 Jun 2005 11:44:09 -0700, [EMAIL PROTECTED] a écrit :
> You also could use a list to represent your data, then you get more
> dimensions supported, e.g:
> import math
> class Point:
> def __init__(self, *args):
> self.points = list(args)
>
> def dist(x, y):
> if len(x
Le Wed, 22 Jun 2005 20:42:24 +0200, Thomas Lotze a écrit :
> Hi,
>
> I've two questions concerning organizing and naming things when writing
> a Python package.
>
> Assume I have a package called PDF. Should the classes then be called
> simply File and Objects, as it is clear what they do as th
Le Thu, 23 Jun 2005 01:19:11 -0500, Paul Watson a écrit :
> "Gregory Piñero" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> Hi guys,
>
> I'm trying to run this statement:
>
> os.system(r'"C:\Program Files\Mozilla Firefox\firefox.exe"' + '
> "www.blendedtechnologies.com"')
>
> The
[En-tête "Followup-To:" positionné à comp.lang.python.]
Le Mon, 27 Jun 2005 14:27:28 -, Grant Edwards a écrit :
> On 2005-06-27, Xah Lee <[EMAIL PROTECTED]> wrote:
>> i have a large number of lines i want to turn into a list.
>> In perl, i can do
>>
>> @corenames=qw(
>> rb_basic_islamic
>> sq1_
Le Wed, 29 Jun 2005 09:46:15 + (UTC), Mandus a écrit :
> Hi there,
>
> inspired by a recent thread where the end of reduce/map/lambda in Python was
> discussed, I looked over some of my maps, and tried to convert them to
> list-comprehensions.
>
> This one I am not sure how to conver:
>
> Given
Le Fri, 01 Jul 2005 20:47:45 +0200, Andreas Kostyrka a écrit :
about C++ templates
> And they are a kind of "compile-time" late binding. You get the worst
> from both worlds. All the complication of a static typing system, and at
> the same time no safety.
+1 QOTW
--
http://mail.python.org/mailma
Right-click on the Pythonwin icon in the tray and select "Break into running
code".
HTH
Franz GEIGER
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi All,
> (sorry for my bad english)
> I wrote a __tiny__ and __stupid__ recursive script directly into
> pythonwin
> interac
Le 18 Jul 2005 13:39:41 -0700, [EMAIL PROTECTED] a écrit :
snip
>
> J-Integra for COM Features:
snip
>
> For a free evaluation, visit our website at
> http://j-integra.intrinsyc.com/
>
> Regards,
>
> Shane Sauer
Q: What are the Vikings singing in the background ?
A: Spam, spam, spam !
--
htt
I want to write a client app in Python using wxWindows that connects to
my FreeBSD server via SSH (using my machine account credentials) and
runs a python or shell script when requested (by clicking a button for
instance).
Can someone give me some advice on how to create a "graphical shell"
per se
I'm trying to figure out how to emulate a terminal with twisted conch
(I want to be able to send the client information with the 'write'
command in freebsd). I have played with ssshsimpleclient.py on the
twistedmatrix site and it works but I need to keep the connection open,
not just execute a sin
Le 29 Aug 2005 06:19:17 -0700, [EMAIL PROTECTED] a écrit :
> Hello,
> i've got a problem with pointers in the following function which i want
> to use:
>
> I16 __stdcall DO_ReadPort (U16 CardNumber, U16 Port, U32 *Value)
>
> The function is supposed to read out the status of a digital port of
> ana
Le Sun, 13 Feb 2005 13:19:03 -0500, Hans Nowak a écrit :
> Stefan Behnel wrote:
>> Hi!
>>
>> This somewhat puzzles me:
>>
>> Python 2.4 (#1, Feb 3 2005, 16:47:05)
>> [GCC 3.3.4 (pre 3.3.5 20040809)] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>>
>> .>>> c
Le 3 Mar 2005 02:53:51 -0800, [EMAIL PROTECTED] a écrit :
> Hi everybody,
>
> I used python to build a HTML file and now I would like to
> automatically start my browser to display this file. I guess I could
> use os.system(), but then I had to specify a specific path to the
> browser.
>
> I wond
Startup company in Fairhope, AL is seeking a strong python programmer
in the Mobile, AL or Eastern Shore, AL area to assist in the
development of legal practice management systems. Candidate must
reside in the area. Position will be initially part time. Must be
proficient with Freebsd/Postgresql/
Le Mon, 07 Mar 2005 13:25:35 -0700, Earl Eiland a écrit :
> How does one make a Python program auto-execute in Windows?
>
> Earl
>
write a virus ? :-)
What do you mean by « auto-execute » ?
Regards
--
http://mail.python.org/mailman/listinfo/python-list
Le Wed, 09 Mar 2005 09:45:41 -0800, Dave Opstad a écrit :
> In this snippet:
>
> d = {'x': 1}
> value = d.get('x', bigscaryfunction())
>
> the bigscaryfunction is always called, even though 'x' is a valid key.
> Is there a "short-circuit" version of get that doesn't evaluate the
> second argume
Le Thu, 10 Mar 2005 13:12:31 -0800, James Stroud a écrit :
> Hello,
>
> Its not obvious to me how to do this. I would like to iterate using a tuple
> as
> an index. Say I have two equivalently sized arrays, what I do now seems
> inelegant:
>
> for index, list1_item in enumerate(firstlist):
>
Le Wed, 16 Mar 2005 17:53:57 -0500, spencer a écrit :
> Hi,
> I'm not sure why I can't concatenate dirname() with basename().
>
> Traceback (most recent call last):
> File "showDir.py", line 50, in ?
> print 'somthing new...', os.path.join(os.path.dirname(os.getcwd)) +
> os.path.basename(os.
Le Tue, 15 Mar 2005 23:21:02 -0800, Michael Spencer a écrit :
> Jacob Lee wrote:
>> On Tue, 15 Mar 2005 21:38:48 -0800, Michael Spencer wrote:
>>
>> Good call.
>>
>>
>
> How about this then:
>
> basetable = string.maketrans('ACBDGHKMNSRUTWVYacbdghkmnsrutwvy',
> 'T
Hi all,
Today's embarassingly simple question goes like this.
I have a file, testdoc.xml, to parse.
Inside the file is an element
Yo, Ho, Ho
So, starting with
[code]
from xml.dom import minidom
xmldoc = minidom.parse('home\me\testdoc.xml')
[/code]
therefrain = getTagsByName('refra
Le 17 Mar 2005 12:27:07 -0800, [EMAIL PROTECTED] a écrit :
> dear readers,
>
> i have a very simple package organized as follows:
>
> !-!
> bgp/
> __init__.py
> managers/
> __init__.py
> ManagerInterface.py
> Test
That's the Visual Basic way to do it.
I prefer it this way:
Controls work on models. If a control has to store a value it does so by
calling MyDataPool.storeMyValue(self.GetValue()).
When the NotebookPage is changed, the new page tells all controls to update
themeselves: self.SetValue(str(MyData
As there is no build for Python 2.4, I attempted to put it together
from source. Running
setup.py build
gives this error:
Traceback (most recent call last):
File "C:\tmp\PIL\Imaging-1.1.4\setup.py", line 60, in ?
for line in open(os.path.join("libImaging",
"ImConfig.h")).readlin
Peter Hansen <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Actually, you're just seeing the repr() of the filename.
> You really are missing that file in the place where it's
> looking.
>
> -Peter
>
Give the man a beer! Thanks. I had ImConfig.h.win so I changed
setup.py to t
"Fuzzyman" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> So you've built PIL for windows, Python 2.4 ?
>
> Any chance of sharing it ? What compiler have you configured
> distutils to use ?
I'm very sorry I spoke too soon. After making the initial change, the
setup.py took off on a r
I'm rather new to high level parsing with lex/yacc (and realy impressed so
far).
I'd like to parse *and execute* files like this:
A=12
B=23
G X=A Y=B Z=34 # Move to X, Y, Z
G Z=0
etc.
No problems so far.
But when loops enter the game, things seem to become more difficult:
A=12
B=23
C=45
D=56
On Mon, 27 Dec 2004 11:53:57 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
> Kamilche wrote:
>> Is there a more elegant way to change the working directory of Python
>
> That depends on how you define "elegant", I guess.
>
>> to the directory of the currently executing script, and add a folder
>
On Mon, 27 Dec 2004 12:09:16 -0500, Peter Hansen <[EMAIL PROTECTED]> wrote:
> Philippe C. Martin wrote:
>> I am looking for an eric3/linux compatible alternative to checking code
>> metrics (ex: true lines of code count)
>
> I don't know what "eric3/linux compatible" might be, I'm not sure
> what
"Esmail Bonakdarian" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi
>
> I have found ALL of the posts useful, thank you so much.
>
> Please keep them coming! I am learning a lot.
>
> I will probably play a bit with Tkinter and wxPython and see how
> each feels, just as Pete
"Torsten Mohr" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> i want to write an application where i need a Table to
> display some values.
>
> The table should display a list of objects, so to say,
> a column for each attribute of the object.
> I'd also like the user t
"Torsten Mohr" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi,
>
> > Do a group-google search for *tkinter table*. That shows up quite a few
> > hits.
>
> thanks for that hint, but nearly every hit shows the Table of contents
> for Tkinter", which is not what i search for.
On Thu, 30 Dec 2004 15:58:07 GMT, Roel Schroeven wrote:
> Rocco Moretti wrote:
>> So to summarize:
>>
>> Commas define tuples, except when they don't, and parentheses are only
>> required when they are necessary.
>>
>> I hope that clears up any confusion.
>
> You have my vote for QOTW.
>
+1
:-
My DataPool then is a singleton, well, actually, a Borg. See Alex Martelli's
recipe for that. If you use new style classes, then you have to look for
"Singleton" in the cookbook.
HTH
Franz GEIGER
"MyHaz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> so you run data pool as
Le 24 Mar 2005 06:16:12 -0800, Ben a écrit :
>
> Below is a few sample lines. There is the name followed by the class
> (not important) followed by 5 digits each of which can range 1-9 and
> each detail a different ability, such as fitness, attacking ability
> etc. Finally the preferred foot is st
Le 29 Mar 2005 09:50:46 -0800, Tian a écrit :
> I want to create a object directory called Context in my program, which
> is based on a dict to save and retrieve values/objects by string-type
> name. I have the definition like this:
>
> utils.py
>
> global sysctx
# you are in
I want to know if iter(iterator) returns always its argument (when
argument is an iterator)
So :
>>> iterable = range(10)
>>> it = iter(iterable)
>>> that = iter(it)
>>> that is it
True# Good!
>>> that is it is not it
False # What ?
>>>
>>> Python = map(bool, it)
>>> logic = True
>>> logic i
Le Fri, 1 Apr 2005 13:39:47 -0500, Terry Reedy a écrit :
>
> "F. Petitjean" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
>>>>> iterable = range(10)
>>>>> it = iter(iterable)
>>>>> that = iter(it)
&g
Le Fri, 01 Apr 2005 17:42:30 -0500, Jeremy Bowers a écrit :
> On Fri, 01 Apr 2005 22:01:25 +0000, F. Petitjean wrote:
>
>> Le Fri, 1 Apr 2005 13:39:47 -0500, Terry Reedy a écrit :
>>> This is equivalent to '(that is it) and (it is not it)' which is clearly
>
Le Tue, 05 Apr 2005 08:57:12 -0400, rbt a écrit :
> Is there a recommended or 'Best Practices' way of checking the version
> of python before running scripts? I have scripts that use the os.walk()
> feature (introduced in 2.3) and users running 2.2 who get errors.
> Instead of telling them, 'Upg
Le 7 Apr 2005 19:23:21 GMT, Leo Breebaart a écrit :
> I've recently become rather fond of using Exceptions in Python to
> signal special conditions that aren't errors, but which I feel
> are better communicated up the call stack via the exception
> mechanism than via e.g. return values.
>
> For in
Le Wed, 13 Apr 2005 01:13:40 -0600, Steven Bethard a écrit :
> praba kar wrote:
>> list = [[1234,'name1'],[2234,'name2'],[0432,'name3']]
>>
>> I want to sort only numeric value having array field.
>> How I need to do for that.
>
> In Python 2.4:
>
> py> import operator
> py> seq = [(1234,'name1
Le Wed, 13 Apr 2005 16:46:53 +0100, Jim a écrit :
>
> What I really want is a Numeric array but I don't think Numeric supports
> importing files.
Numeric arrays can be serialized from/to files through pickles :
import Numeric as N
help(N.load)
help(N.dump)
(and it is space efficient)
>
> Jim
--
Le Sun, 17 Apr 2005 13:38:09 +0200, Andrew E a écrit :
> Hi all
>
> I've written a python program that adds orders into our order routing
> simulation system. It works well, and has a syntax along these lines:
>
> ./neworder --instrument NOKIA --size 23 --price MARKET --repeats 20
>
> etc
>
>
Le 16 Apr 2005 01:20:34 -0700, Qiangning Hong a écrit :
> To avoid namespace confliction with other Python packages, I want all
> my projects to be put into a specific namespace, e.g. 'hongqn' package,
> so that I can use "from hongqn.proj1 import module1", "from
> hongqn.proj2.subpack1 import modu
Le Mon, 18 Apr 2005 20:29:39 +0200, Mage a écrit :
>Hello,
>
> I read about modules and packages in the tutorial. I think I understand
> how to use packages and modules, even I know how to create a module (as
> far I understand it's a simple .py) file , but I don't know how can I
> create
Le 19 Apr 2005 11:02:47 -0700, codecraig a écrit :
> Experient I have been :)
>
> Here is what I am getting now
>
> CLIENT
> ---
> d = xmlrpclib.Binary(open("C:\\somefile.exe").read())
open the file with mode "rb"
fin = open(r'C:\somefile.exe', 'rb')
contents = fin.read()
fin.close()
Python has a very good support of unicode, utf8, encodings ... But I
have some difficulties with the concepts and the vocabulary. The
documentation is not bad, but for example in reading
http://docs.python.org/lib/module-unicodedata.html
I had a long time to figure out what unicodedata.digit(unichr
Le Sat, 23 Apr 2005 19:11:19 +0200, Fredrik Lundh a écrit :
> in PHP, good programmers are able to write bad programs without
> even noticing.
+1 QOTW
---
The use of COBOL cripples the mind; its teaching should, therefore, be
regarded as a criminal offense.
Dr. E.W. Dijkstra
--
http://mail.pyth
I have built a wxPython prototype of an app, that lets me place rectangles
o a wxPanel, move them and change their size. How the rects are added
and placed has to follow certain rules.
The final goal is to merge this "graphical editor" into a MFC app.
Converting a standalone wxPython app into a wx
>>> import numpy
>>> numpy.arange(0, 3, 0.3)
array([ 0. , 0.3, 0.6, 0.9, 1.2, 1.5, 1.8, 2.1, 2.4, 2.7])
--
http://mail.python.org/mailman/listinfo/python-list
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> F. GEIGER wrote:
>> I've def'ed a handler for EVT_IDLE in the app's main frame. There I'd
>> like
>> to call the nanothreads' __iter__ method, somehow.
>>
>> W
Diez B. Roggisch wrote:
> Franz GEIGER wrote:
>
>> When I call the Python interpreter, the Python 2.4.1 version is called,
>> because I installed it weeks ago from source by myself. That means the
>> symlink /usr/bin/python points to 2.4. Fine.
>>
>> Now, when I install Python packages using the
Ganesan Rajagopal wrote:
>> Franz GEIGER <[EMAIL PROTECTED]> writes:
>
>> Now, when I install Python packages using the convenient Synaptic Package
>> Manager, everything goes into the 2.3-directory-tree. How can I change
>> that?
>
> That's because synaptic installs packages compiled for th
I'm on .NET/CLR2.0 and would like to use some stuff from w/i Python. The
"Python for .NET" file name suggests that CLR1.1 is needed. Is that right?
Any known plans to change this?
Kind regards
Franz GEIGER
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
>
> "F. GEIGER" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> I'm on .NET/CLR2.0 and would like to use some stuff from w/i Python. The
>> "Python for .NET" file name suggests that CLR1.1 is needed. Is that
I have kind of an interesting string, it looks like a couple hundred
letters bunched together with no spaces. Anyway, i'm trying to put a
"?" and a (\n) newline after every 100th character of the string and
then write that string to a file. How would I go about doing that? Any
help would be much
I have a string (xdata) and theres a newline after every 17 characters
of the string. I was wondering how I can replace multiple substrings
multiple times within a string? To put it another way, this is what i
want to do.
Substring to find ("abcdef") replace it with ("highway")
search again, subst
Marc 'BlackJack' Rintsch wrote:
> In <[EMAIL PROTECTED]>, f pemberton
> wrote:
>
> > I've tried using replace but its not working for me.
> > xdata.replace('abcdef', 'highway')
> > xdata.replace('defgef', 'news
- Forwarded Message
From: Josiah Carlson <[EMAIL PROTECTED]>
To: f rom <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
Sent: Monday, December 4, 2006 10:03:28 PM
Subject: Re: [wxPython-users] 1>make_buildinfo.obj : error LNK2019: unresolved
external symbol [EMAIL PROTECTED
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Type "sudo easy_install myeggfile.egg."
Sorry for not being clear. I did exec easy_install - no errors so far. But
the egg was still there. I'd expected, that it was converted into .py-files
somehow, which could be imported by
Le 17 Feb 2006 22:02:23 -0800, al pacino a écrit :
> hi,
>
> is it possible to address the 'screen pixels' using python , like
> analogous to older dos( functions that graphics.h provides') or win api
> calls for gdi.
Some possibilities (all on Win32 only):
ctypes by Thomas Heller
venster (uses ct
Le Fri, 17 Feb 2006 18:14:26 -0800, Trent Mick a écrit :
>
> Nope. Komodo adds no goo to your code (TM).
> TM's my name, not a trademark on "Komodo adds no goo to your code" --
> but I'm thinking about it. :)
+1 JOTW (Joke of the week)
>
> Cheers,
> Trent
>
--
http://mail.python.org/mailman/listin
Le Sun, 19 Feb 2006 21:33:59 +0100, Rene Pijlman a écrit :
> Mladen Adamovic:
>>I wonder which editor or IDE you can recommend me for writing Python
>>programs.
>
> vi
I beg to disagree :-) Use ed
"Ed is the standard text editor."
http://www.gnu.org/fun/jokes/ed.msg.html
--
http://mail.python.
About a year ago I dev'ed a host app in Python (2.3 at that time) to control
a KUKA KR16 robot. Comm was over OPC. The OPC 2.0 server was inst'ed on the
KRC2. What I was needed to do, was to install the appropriate (i.e. delivere
together w/ the server) client software and to take Mark Hammonds
Le 3 May 2005 06:37:14 -0700, custard_pie a écrit :
> I need help sorting a list...I just can't figure out how to sort a list
> and then return a list with the index of the sorted items in the list
> for example if the list I want to sort is [2,3,1,4,5]
> I need [2,0,1,3,4] to be returned
> Can som
Le 7 May 2005 08:23:48 -0700, [EMAIL PROTECTED] a écrit :
> Using Python 2.4 on Windows, for me the command
>
> print os.stat("temp.txt")[stat.ST_MTIME]
>
> gives
>
> 1115478343 ,
>
> which is "seconds since the epoch". How can I get the modification time
> in a format such as
>
> 05/07/2005
Le Sat, 7 May 2005 08:55:35 -0700 (PDT), Sara Khalatbari a écrit :
> There are a lot of commands that I need to use in my
> code & I don't know how to do it
>
> Is there a way to use shell commands in Python code?
Python is a scrpting language. So you can substitute most shell scripts
idioms with
Le Mon, 09 May 2005 08:39:40 +1000, John Machin a écrit :
> On Sun, 08 May 2005 19:49:42 +0200, "Martin v. Löwis"
><[EMAIL PROTECTED]> wrote:
>
>>John Machin wrote:
>>> Martin, I can't guess the reason for this last suggestion; why should
>>> a Windows system use iso-8859-1 instead of cp1252?
>>
>
Le Wed, 11 May 2005 15:58:04 -0400, rbt a écrit :
> Christopher J. Bottaro wrote:
> Because PHP is such a 'thrown together' and 'bolted-on' language. If it
> didn't have *outstanding* documentation (which it does BTW), no one
> could even begin to understand how they got from a little HTML langua
Le Fri, 13 May 2005 00:58:49 +0800, flyaflya a écrit :
> I want make a 2-D array from a list,all elements is references of
> list's,like this:
> a = [1,2,3,4]
> b = [ [1,2], [3,4] ]
> when change any elements of a, the elements of b will change too, so I
> can use some function for list to chang
As Jp asked already: "indepenedent" from what?
I do such things all the time in a wx-App that controls a 6-axes robot. For
example, there I have a LED-Widget for displaying the actual pos. and
orient. of the tool. In a wxTimer handler I read OPC variables, whose values
are displayed in the LED-Wid
Le Tue, 17 May 2005 13:50:08 -0400, rbt a écrit :
> Is it more appropriate to use os.popen or os.system on a windows XP
> client?
Nope. use the subprocess module :-)
Microsoft had the great idea to embed white space inside a lot of
directories (compare C:\Program Files\ to /usr/bin ) which mean
Im on Python 2.3.4, using pysqlite 2.0.0 (final).
When I try to execute
self._dbc.execute(q, data)
where q is 'select count(*) from Difflets ' and date is None
I get the following exception:
pysqlite2.dbapi2.ProgrammingError: Incorrect number of bindings supplied.
The current statement uses 0,
Arrgh, sorry for that post!
self._dbc.execute(q, data)
where data is None, works with MySQL. For SQLite I have to write
if data is not None:
self._dbc.execute(q, data)
else:
self._dbc.execute(q)
Sorry again,
Franz GEIGER
"F. GEIGER" <[EM
Thank you Gerhard,
"Gerhard Häring" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> F. GEIGER wrote:
> > Arrgh, sorry for that post!
> >
> > self._dbc.execute(q, data)
> >
> > where data is None, works with MySQL. For SQ
I've troubles to let my app take off using pysqlite.
What I wonder most for now is that "pysqlite2.dbapi2.OperationalError:
cannot commit transaction - SQL statements in progress" when I do this:
t = time.time()
n = len(self)
while len(self):
del self[0]
self.comm
1 - 100 of 372 matches
Mail list logo