On Tue, Nov 24, 2015 at 9:17 PM, Marc Aymerich wrote:
> On Tue, Nov 24, 2015 at 8:41 PM, Zachary Ware
> wrote:
>> On Tue, Nov 24, 2015 at 12:37 PM, Marc Aymerich wrote:
>>> still it appears to work only if the main thread is in the foreground
>>> (as of calling
sed to have desktop applications other than the web
browser. But this was even before cloud computing began to emerge ;)
> --
>
Marc
--
https://mail.python.org/mailman/listinfo/python-list
#x27;
'SERVER_PROTOCOL=HTTP/1.1 '
'REQUEST_URI=/nl/page '
'HTTP_HOST=site.tld '
'/usr/bin/php-cgi'
)
subprocess.Popen(cmd, stdout=subprocess.PIPE)
--
Marc
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell wrote:
> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
>> On Tue, Nov 11, 2014 at 4:48 PM, Larry Martell
>> wrote:
>>>
>>> I have a PHP app that I want to convert to django. But I want to do it
>>&g
On Tue, Nov 11, 2014 at 6:26 PM, Larry Martell wrote:
> On Tue, Nov 11, 2014 at 12:18 PM, Marc Aymerich wrote:
>> On Tue, Nov 11, 2014 at 5:43 PM, Larry Martell
>> wrote:
>>> On Tue, Nov 11, 2014 at 11:00 AM, Marc Aymerich wrote:
>>>> On Tue, No
e other test proposed on stackechange correctly reports that I'm
not vulnerable ;)
root@web:/tmp# wget
https://webshare.uchicago.edu/orgs/ITServices/itsec/Downloads/GHOST.c
root@web:/tmp# gcc GHOST.c -o GHOST
root@web:/tmp# ./GHOST
not vulnerable
--
Marc
--
https://mail.python.org/mailman/listinfo/python-list
le "", line 1, in
> File "", line 2, in display
> TypeError: unorderable types: str() < bool()
>
> But for strings, this is the easiest way to get what you're looking for.
I would say using pprint.pprint is even easier and it works with your
failing example:
>>> pprint.pprint({True:1,"Hello":2})
{True: 1, 'Hello': 2}
Ciao
Marc
--
https://mail.python.org/mailman/listinfo/python-list
ething that is beyond your skill level.
Short of that you'll always be Bubba's "female dog".
Good day!
"Teach and learn twice". I love teaching people. It makes me better.
Marc
--
https://mail.python.org/mailman/listinfo/python-list
there is no way. You are trapped forever. Resistance is futile.
On 17/06/2015 5:09 PM, Deogratius Musiige wrote:
> Hi,
>
> How can i get off this mailing list?
>
>
>
> Best regards / Med venlig hilsen
>
> Deogratius Musiige
> Software Development Engineer
>
> *Sennheiser Communications A/
e64 is far from ideal: adds lots of bytes to the compressed
log entry. So, I wonder if perhaps there is a better way to remove new
lines from the zlib output? or maybe a different approach?
Anyone?
Thanks!!
--
Marc
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Oct 28, 2015 at 11:30 PM, Marc Aymerich wrote:
> Hi,
> I'm writting an application that saves historical state in a log file.
> I want to be really efficient in terms of used bytes.
>
> What I'm doing now is:
>
> 1) First use zlib.compress
> 2) A
On Thu, Oct 29, 2015 at 11:52 AM, Chris Angelico wrote:
> On Thu, Oct 29, 2015 at 9:35 PM, Marc Aymerich wrote:
>> 1) Each node on the cluster needs to keep track of *all* the changes
>> that ever ocurred. So far, each node is storing each change as
>> individual lines on a
; can I get my files out faster?
Usually I use my home router (which has an attached HDD) for
downloading movies and stuff (big files) from the WAN... it has a
800Mhz mips cpu... anyway my experience with it is that:
rsync tops at ~400Kbps
apache+wget tops at ~1.1Mbps
netcat tops at ~1.4Mbps
--
Marc
--
https://mail.python.org/mailman/listinfo/python-list
ot;;
xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02"/>
I've tried everything I can imagine and this is the best I can do :(
Any idea on how to get the xmlns and xmlns:xsi attributes correctly?
Thanks!!
--
Marc
--
https://mail.python.org/mailman/listinfo/python-list
On Tue, Jul 29, 2014 at 8:19 PM, Marc Aymerich wrote:
> Hi, I'm desperately trying to construct an XML with the following document
> declaration:
>
> xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
>
> I'm using LXML, and what I'm doing is
ussi')
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position 1:
ordinal not in range(128)
What should i do to let the same program run on both OS, without changes?
Thank you for your answer
Marc Vanhoomissen
--
https://mail.python.org/mailman/listinfo/python-list
Hello YBM,
I tried your suggestions, without improvement.
Further, see my answer to Vincent Vande Vyre
Thanks anyway.
--
https://mail.python.org/mailman/listinfo/python-list
; print('R\xe9ussi')
>
> > UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' in position
> > 1: ordinal not in range(128)
>
> >
>
> > What should i do to let the same program run on both OS, without changes
every time.
> I prefer to specify it by environment variable such as::
>
>export PIP_INSTALL_DIR=$PWD/local
>
> Is it possible? Or any idea?
I'd try
export PIP_INSTALL_OPTION=--prefix=$PWD/local
using a config file is also possible. See
http://www.pip-installer.org/en/lat
nd comment
the two lines starting with "import sys". You'll have to do that every
time you install/upgrade an egg via easy_install (and maybe setuptools).
In your case the right file should be
/usr/local/lib/python2.6/dist-packages/easy_install.pth
BTW: You could try pip (http://www.pip-installer.org/) instead of
easy_install, it doesn't mess with sys.path.
Ciao
Marc
--
http://mail.python.org/mailman/listinfo/python-list
ton.py contains nothing else
@Singleton
class Foo:
def __init__(self):
print('Foo created')
f = Foo.Instance()
g = Foo.Instance()
print(f is g)
Grüße
Marc
--
http://mail.python.org/mailman/listinfo/python-list
7;, __func_name)
Of course this does not invalidate the fact (is that even possible?) of
the brokenness of the installation.
Ciao
Marc
--
http://mail.python.org/mailman/listinfo/python-list
ack (most recent call last):
>>File "", line 1, in
>> zlib.error: Error -3 while decompressing data: incorrect header check
Try using a compressobj with 24 <= wbits < 32. It should work, but I
didn't try.
Marc
--
http://mail.python.org/mailman/listinfo/python-list
CHINE\SOFTWARE\Python\PythonCore\2.4\PythonPath but no
joy. Am I missing something very simple here? Thanks, Marc
--
http://mail.python.org/mailman/listinfo/python-list
Cheers Tim, that sorted it. I need to re-read the modules section and
namespaces. Everydays a schoolday. MW.
--
http://mail.python.org/mailman/listinfo/python-list
a single channel.
Is there a way to do any reasonable amount of what I am looking for with
standard modules? If not, is there a module(s) that I can download
somewhere that will do the trick?
Marc
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> I'm not a programmer, but I'd like to make a program that will open and
> read a txt file and output to a mp3 file. I don't need to ever hear the
> voice, but I'd like the program to direct
>
> I've been google'ing around and have found a few tutorials about
> converting
I'm playing with XML and elementtree and am missing something but I'm
not sure what...? I've create an XML file with Elementtree with a root
of backup.xml. Attached to the root is a dirob and the dirobj has a
fileobj. fileobj has filename and filesize tags. I can open the file
in excel and it se
Thanks Fredrik, thats got me started but just incase anyone looks there
is a slight mistype in your code...
or you could do something like
>
> for dir_elem in tree.findall("dirob"):
> for file_elem in dirob.findall("fileob"):
> print file_elem.findtext("filesize")
>
> to l
Could someone confirm that modules like socket don't use libraries/
dlls on a particular OS, they are completly self contained.
Thanks, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
myfile_content is an object and you have only opened the file. Python
doesn't yet know whether you want to read it, copy it etc.
to read it try
text = myfile_content.readlines()
print text
this should be in most tutorials
Wijaya Edward wrote:
> Hi,
>
> How can we slurp content of a single fil
I've had a brief look at this and there isn't a sound orientated
library as such. You can however use numpy to do stuff like FFTs and
there are there is a wave module in python that will allow you to
create wavs, you can google for importing wav's into numpy arrays.
This seemed like a good idea to
I've had a brief look at this and there isn't a sound orientated
library as such. You can however use numpy to do stuff like FFTs and
there are there is a wave module in python that will allow you to
create wavs, you can google for importing wav's into numpy arrays.
This seemed like a good idea to
lem occurs because you expression is not a valid
regular expression.
A correct regular expression should look like this:
"[EMAIL PROTECTED]"
Best regards
Marc Schoechlin
--
I prefer non-proprietary document-exchange.
http://sector7g.wurzel6.de/pdfcreator/
http://www.prooo-box.o
th python-programming ?
Best regards
Marc schoechlin
--
http://mail.python.org/mailman/listinfo/python-list
Bayazee wrote:
> Hi,
> How can I get CPU Serial number , or motherboard serial number with
> python . I need an idetification of a computer
> ThanX
>
> ---
> iranian python community --> www.python.ir
If you are on a windows box with WMI (2000
hi all and before I start I apologise if I have this completely muddled
up but here goes.
I'm trying to call functions from a dll file in a python script but I
can't work out what functions are available. I'm using ctypes. I've
tried using dir(ctypes_object) but the resultant output looks like a
hi all and before I start I apologise if I have this completely muddled
up but here goes.
I'm trying to call functions from a dll file in a python script but I
can't work out what functions are available. I'm using ctypes. I've
tried using dir(ctypes_object) but the resultant output looks like a
anks in advance
Marc Jeurissen
--
http://mail.python.org/mailman/listinfo/python-list
]
pyday = string_day.split("-",1)[1]
d,m,y = pyday.split('/',2)
d = int(d)
m = int(m)
y = int(y)
today = datetime.datetime(y,m,d)
Thanks, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I am trying to move away from Windows only scripting to Python.
I've written a quick script that will pull the product version from the
client registry. I can get the IP addresses from a file into a list
and then pull each element in the list using the for loop. I am
setting each element to a
thanks runes, that makes sense, time for me to go off and read some
more about strip and try:
Cheers, MW.
--
http://mail.python.org/mailman/listinfo/python-list
As an application programmer, I'm not well versed in the material
aspects of computing (memory, cpu, bus and all). My understanding of
imports in Python is such: the __main__ program is the center piece
which holds the programs reference: globals, functions, classes,
modules etc. The objects of thi
I read that Tkinter and Python IDEs (PythonWin and Idle at least) makes
for a bad mix in execution mode because they're fighting for the event
loop, but this mode is usefull to use the debugger.
But to the point of breaking something elsewhere than in memory ???
(Shutting down and rebooting the co
Merci Bruno, ( and also to Fredrik )
So I think I understand correctly, if I say that:
each modulkes requires its own set of reference to whatever objects it
needs to speak. The interpreter wil see not to create extra copies of
the compiled code if many modules import the same modules but will mak
Hoping this is not CHTULHU telling to do something else with my life
;-)
Jean-Marc
--
http://mail.python.org/mailman/listinfo/python-list
st that is prepended by >>> it means it is probably
copy/pasted from the interactive interpreter, so you know it actually
works (Johns example):
.. >>>s = "This is a sentence of words"
.. >>>a = s.split()
.. >>>a
..
.. ['This', 'is', 'a', 'sentence', 'of', 'words']
Have fun, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
Sorry, why is the temp file solution 'stupid'?, (not
aesthetic-pythonistic???) - it looks OK: simple and direct, and
certainly less 'heavy' than any db stuff (even embedded)
And collating in a 'official log file' can be done periodically by
another process, on a time-scale that is 'useful' if no
phone bill):
from decimal import Decimal as d
def roundDecimal(num, prec):
return d(num).quantize(d("1e%d" % (-prec)))
where `prec` is the number of places after the decimal point.
I'm sure there is a better solutions and someone will tell it, thereby
teaching us both. ;-)
Adiaŭ,
..
Yes there is a difference!
I had this problem last year (developing on Win XP Pro and delivering
on IIS Server), I'll try to lookup the solution, but it might be
difficult (it's kind of a thing you do once and forget about later.)
Jean-Marc
--
http://mail.python.org/mailman/listinfo/python-list
hanged the way I was dealing with file adresses.
Maybe there is a hint of direction for your own investigation...
Jean-Marc
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, I am struggling with a vb - python code conversion. I'm using
WMI to create printers on remote machines using (in VB);
set oPrinter = oService.Get("Win32_Printer").SpawnInstance_
oPrinter.DriverName = strDriver
oPrinter.PortName = strPort
oPrinter.DeviceID = strPrinter
oPrinter.Put_(
if you are familiar with eclipse, you could use the PyDev python
plugin.
jm
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> jean-marc schrieb:
> > Some bits are coming back to me: the problems stemmed from adresses -
> > getting the root of IIS was different so accessing files didn't work
> > the same way.
>
> thanks for that.
> you are right, IIS ver
Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> En Tue, 12 Jun 2007 05:46:25 -0300, <[EMAIL PROTECTED]> escribió:
>
>> On 6 12 , 3 16 , ici <[EMAIL PROTECTED]> wrote:
>>> On Jun 12, 10:10 am, <[EMAIL PROTECTED]> wrote:
>>>
>>> > How could I format the float number like this: (keep
Jeff Rollin <[EMAIL PROTECTED]> wrote:
> I'm working with the Python Tutorial "Byte of Python" at swaroopch.info.
>
> I have created the attached file, but when I execute:
>
> % objvar.py
>
> I get the error message:
>
> (Initializing Calamity Jane)
> Traceback (most recent call last):
> File
Peter Otten <[EMAIL PROTECTED]> wrote:
> Marc Christiansen wrote:
>
>> Gabriel Genellina <[EMAIL PROTECTED]> wrote:
>>> En Tue, 12 Jun 2007 05:46:25 -0300, <[EMAIL PROTECTED]> escribió:
>>>
>>>> On 6 12 , 3 16 , ici <[EMAIL PROTEC
>
> has str False
>
> Anyone know if there a reason for this behavior?Is it a bug? I've
> seen this in 2.4 and 3.0.
>
> -Adam
No, it's not a bug. __builtins__ is an implementation detail. You want
__builtin__. See <http://docs.python.org/lib/module-builtin.html>
Ciao
Marc
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I am trying to create a function, where I pass a dictionary with a
lits of strings, and try to return a
a list of strings, for all variations, any ideas ?
Thanks
def getAllVariants(someDict):
keys = someDict.keys()
for x in keys:
print len(someDict[x])
> Sagar Meesala
Here you have an example: http://
dataparser.cvs.sourceforge.net/dataparser/source/input_adapters/
excel.py?revision=1.1.1.1&view=markup
http://vaig.be";>Marc Garcia is the best expert in GNU/Linux
Debian, Apache, MySQL, and Python!
--
http://mail.python.org/mailman/listinfo/python-list
y
import foo
foo.tst = "bar"
print foo.getTst("testing")
0:[EMAIL PROTECTED]:/tmp> python bar.py
bar-testing
And regarding the tempfile.template problem, this looks like a bug.
Because all functions in tempfile taking a prefix argument use "def
function(... , prefix=template, ...)", only the value of template at
import time matters.
Adiaŭ, Marc
--
http://mail.python.org/mailman/listinfo/python-list
tched key or attribute are connected to their matching signals.
The argument is called dict due to compatibility reasons since
originally only the mapping interface was supported. The instance
variant was introduced in PyGTK 2.0.
So simply using signal_autoconnect(self) should work.
Adiaŭ, Marc
--
http://mail.python.org/mailman/listinfo/python-list
On May 22, 11:29 am, jolly <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I want to begin python. Does anyone know where a good starting point
> is?
>
> Thanks,
> Jem
i went through the tutorials on the main site and then followed up
with mark Hammonds book for windows stuff. I got a few other books
iona.com/icde-wiki/MarcLog/
June2007#20070611094814 updated type'
I am not proficient in Python.
I understand that a certain key is missing in some dictionary,
but this is not sufficient for me to fix the problem.
Could somebody put me on the trail?
Thanks!
Marc
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 22, 5:13 pm, [EMAIL PROTECTED] wrote:
> Hi everyone,
>
> I have to do a web based application for my final year project. Since,
> i am only familiar with basic HTML and Java Script, i am totally new
> to this one. My friends are using LAMP (P->PHP). But i want to use
> Python. Is it possible
to
delete non-empty dirs.
But shutil.rmtree(path, ignore_errors=True) does what you want.
HTH, Marc
--
http://mail.python.org/mailman/listinfo/python-list
e 1, in
TypeError: argument of type 'bool' is not iterable
Then it dawned on me (is this the right phrase?): It's the same situation
as e.g. x < y >= 1, which means the same as "x < y and y >= 1" (except
that y is only evaluated once). So '"c" in a == True' gets evaluated as
'"c" in a and a == True'.
> the "==" operator binds at a higher precedence level than the "in"
> operator, just as multiplication binds higher than addition
Operator precedence plays no role in this case. It is a case of
'chained' comparisons.
Hope that clears it up
Marc
--
http://mail.python.org/mailman/listinfo/python-list
ervers, I
didn't test. A quick fix seems to be to change the line
pr() and [aug(s) for s in aug(pr()[0])]
to
pr() and [aug(s) for s in aug(pr()[0])] or pr([myU])
Please don't take tinyp2p.py as an example on writing python.
HTH Marc
--
http://mail.python.org/mailman/listinfo/python-list
On Oct 19, 3:33 pm, dirkheld <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would l like to write some data to a text file. I want to write the
> data with whitespace or tabs in between so that I create tabular
> columns like in a spreadsheet. How can I do this in python.
> (btw, I'm new to python)
>
> nam
On Oct 17, 10:32 am, Heiko Schlierkamp <[EMAIL PROTECTED]
africa.com.na> wrote:
> I need to update the virus program every day with the new dat file from
> mcafee
> I would like to us a Bat file to go to the web page and download the dat
> file automatically to a specific Directory, that I have cre
spinner to show that the application is
responsive, but I would prefer to show a percentage. Is there any way
to query the parser to see how many bytes of the input file have been
processed so far?
Thanks,
Marc
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 12, 1:21 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Anastasios Hatzis wrote:
> > Diez B. Roggisch wrote:
Thanks guys!
I'll try it out later today and let you know how I get on.
--
http://mail.python.org/mailman/listinfo/python-list
ww.thescripts.com/forum/showthread.php?t=644270
which regrettably ends with the same question. What's wrong here?
greets,
Marc
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
llothar <[EMAIL PROTECTED]> wrote:
>On 21 Okt., 22:45, Lew <[EMAIL PROTECTED]> wrote:
>
>> Evidence is that TeX development is dead.
>
>Exactly and Knuths only contribution to software development was the
>theory of
>"literate" programming. As i said for me algorith
oup = BSoup(page)
> for div in soup.findAll('div', class='g'):
for div in soup.findAll('div', attrs={'class':'g'}):
>
>
> But how can I use `class` as kwarg name?
You can't. But you can use the attrs argument (see above).
HTH
Marc
--
http://mail.python.org/mailman/listinfo/python-list
I'm new to BeautifulSoup (heck, I'm new to python). If I'm doing something
> dumb, you don't need to be gentle.
No, you did nothing dumb. The server sent you broken content.
Ciao
Marc
--
http://mail.python.org/mailman/listinfo/python-list
gt;
> http://www.naco.faa.gov/digital_tpp_search.asp?fldIdent=ksfo&fld_ident_type=ICAO&ver=0711&bnSubmit=Complete+Search
>
>
>
> Marc Christiansen <[EMAIL PROTECTED]> wrote:
>
>> The problem is this line:
>>
>>
>> Which is wrong. The content is
com'
>>>>> cjson.decode(sj)
>> 'http:\\/\\/server.com' # is this correct
>
> Known issue. See:
> http://blog.extracheese.org/2007/07/when-json-isnt-json.html
>
> Neither project has fixed it it seems. Not sure which is actually
> the
s this give you an idea?
0:tolot:/tmp> mkdir t1
0:tolot:/tmp> touch t1/__init__.py
0:tolot:/tmp> echo print __name__ >t1/test.py
0:tolot:/tmp> python t1/test.py
__main__
0:tolot:/tmp> python -c "import t1.test"
t1.test
Marc
--
http://mail.python.org/mailman/listinfo/python-list
onnects to the deploymentmanager over SOAP -
so the following questions are very interesting:
- Is the complete websphere administration-api accessible over SOAP
- Which visible components of the functionality of wsadmin are
implemented in the wsadmin-program ?
Best regards
Marc Schoechl
has quite a nice /dev/null for clueless idiots
> like you and your sock puppets :-D.
>
point of order, rudness is always off topic. Since you want to have
such high standards for others you might want to start applying them
to your self as well.
marc
--
[EMAIL PROTECTED]
SDF Public Access U
#x27;t encode character u'\u2500'
> in position 0: character maps to
On linux in an utf8 console, it works with 2ython 2.4.4 and 2.5.1. It
looks like your python is using cp 1252 for output. Which does not
contain the box drawing characters. I don't think using a different
encoding would work (e.g. print u'\u2500'.encode('cp437'), or print
u'\u2500'.encode('utf8'))
Marc
--
http://mail.python.org/mailman/listinfo/python-list
>>> sock.connect(("127.0.0.1",80))
In another shell:
tolot:~> lsof -c python -a -i -nP
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
[...]
python 1287 tolot3u IPv4 3553610 TCP 127.1.2.3:38329->127.0.0.1:80
(ESTABLISHED)
Looks correct. This is using Linux 2.6.23. So, if you're doing something
wrong, it's nothing obvious to me.
Marc
--
http://mail.python.org/mailman/listinfo/python-list
;>> simplejson.dumps(link)
'"Click here<\\/a>"'
>>> print simplejson.dumps(link)
"Click here<\/a>"
And ' is a valid delimiter for attributes, so you don't have to use
double quotes for them.
Marc
--
http://mail.python.org/mailman/listinfo/python-list
ke_slope` is not tail recursive, the `+` (aka list.extend) gets
executed after the recursion.
Marc
--
http://mail.python.org/mailman/listinfo/python-list
taking place hence the string is
being read but I can work out whether I need to character encode in
Python, change a table setting in SQL or do something to pymssql.
Thanks, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I've created my first Tkinter GUI class which consists of some buttons
that trigger functions. I have also created a
tkFileDialog.askdirectory control to local a root folder for log
files.
I have several file paths that depend on the value of
tkFileDialog.askdirectory should I create an obje
On Nov 26, 12:09 pm, Bruno Desthuilliers wrote:
> marc wyburn a écrit :
>
> > Hi,
>
> > I've created my firstTkinterGUI class which consists of some buttons
> > that trigger functions. I have also created a
> > tkFileDialog.askdirectory control to local a
On Mar 12, 3:36 pm, a...@pythoncraft.com (Aahz) wrote:
> [posted and e-mailed, please reply to group]
>
> In article <851ed9db-2561-48ad-b54c-95f96a7fa...@q9g2000yqc.googlegroups.com>,
> marcwyburn wrote:
>
> >Hi, I'm trying to pass a text blob to MS SQL Express 2008 but get the
> >follwoing error
o, details):
print '%s: %s' %(host,details)
else:
print '%s: %s' %(host, ipaddrlist)
self.Host_Queue.task_done()
Thanks, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 22, 5:19 pm, Jean-Paul Calderone wrote:
> On Wed, 22 Apr 2009 08:08:51 -0700 (PDT), marc wyburn
> wrote:
> >Hi, I am writing an asynchronous ping app to check if 1000s of hosts
> >are alive very quickly. Everything works extremely quickly unless the
> >host
On Apr 23, 2:16 pm, Piet van Oostrum wrote:
> >>>>> marc wyburn (MW) wrote:
> >MW> Hi, I am writing anasynchronousping app to check if 1000s of hosts
> >MW> are alive very quickly. Everything works extremely quickly unless the
> >MW> host name d
Matt Porter <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I'm trying to compress a string.
> E.g:
> "BBBC" -> "ABC"
You mean like this?
>>> ''.join(c for c, _ in itertools.groupby("BBBCAADCASS"))
'ABCADCAS'
HTH
Marc
--
http://mail.python.org/mailman/listinfo/python-list
:26)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = 1e16 - 2.; a
9998.0
>>> a + 0.
9998.0
Marc
--
http://mail.python.org/mailman/listinfo/python-list
2,3]
> with list2=[4,5,6] to obtain [1,4,2,5,3,6], is there some clever way
> with "zip" to do so?
A similar solution as above should work.
Marc
--
http://mail.python.org/mailman/listinfo/python-list
peError: cannot perform reduce with flexible type
[end of example]
It seems that Python calls numpy's "all" instead of the standard one,
is that right? If so, how can I call the standard "all" after the
numpy import? ["import numpy" is not a desirable option, I use a lot
of math in my progs]
Is there another way around this error?
Marc
--
http://mail.python.org/mailman/listinfo/python-list
On 23 mei, 09:12, Marc Oldenhof <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I'm pretty new to Python, but use it a lot lately. I'm getting a crazy
> error trying to do operations on a string list after importing numpy.
> Minimal example:
>
> [start Python]
>
On 23 mei, 09:12, Marc Oldenhof <[EMAIL PROTECTED]> wrote:
Thanks for the reactions, I'll use the "from numpy import " from now on :)
Marc
--
http://mail.python.org/mailman/listinfo/python-list
e for creating and serializing the dialogs to xml or
other, which will work fine, but unfortunately isn't what the previous
developer on the project did. So I guess I'll have to continue with it
manually.
cheers
Marc
--
http://mail.python.org/mailman/listinfo/python-list
s calulated first i.e the not or the
'OR/AND's
thanks, Marc.
--
http://mail.python.org/mailman/listinfo/python-list
101 - 200 of 1652 matches
Mail list logo