Re: Futex hang when running event loop on a separated thread

2015-11-25 Thread Marc Aymerich
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

Re: detect mouse pointer type

2014-11-05 Thread Marc Aymerich
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

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
#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

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
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

Re: Communicating with a PHP script (and pretending I'm a browser)

2014-11-11 Thread Marc Aymerich
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

Re: Ghost vulnerability

2015-02-03 Thread Marc Aymerich
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

Re: Ordering in the printout of a dictionary

2014-03-18 Thread Marc Christiansen
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

Re: [OFF-TOPIC] How do I find a mentor when no one I work with knows what they are doing?

2014-04-08 Thread Marc Lucke
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

Re: Get off the list

2015-06-18 Thread Marc Lucke
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/

Most space-efficient way to store log entries

2015-10-28 Thread Marc Aymerich
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

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
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

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
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

Re: Most space-efficient way to store log entries

2015-10-29 Thread Marc Aymerich
; 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

lxml and namespaces

2014-07-29 Thread Marc Aymerich
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

Re: lxml and namespaces

2014-07-29 Thread Marc Aymerich
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

Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
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

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
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

Re: Unable to run print('Réussi') on windows and on linux

2014-08-14 Thread marc . vanhoomissen
; 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

Re: PREFIX directory for pip command

2011-11-15 Thread Marc Christiansen
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

Re: How to insert my own module in front of site eggs?

2011-11-17 Thread Marc Christiansen
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

Re: Can't I define a decorator in a separate file and import it?

2011-12-22 Thread Marc Christiansen
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

Re: ERROR:root:code for hash md5 was not found

2012-01-14 Thread Marc Christiansen
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

Re: Generate 16+MAX_WBITS decompressable data

2013-02-12 Thread Marc Christiansen
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

simple pythonpath query

2006-01-19 Thread marc . wyburn
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

Re: simple pythonpath query

2006-01-19 Thread marc . wyburn
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

streaming audio with standard modules?

2006-08-19 Thread Marc Shapiro
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

Re: Text to MP3 using pyTTS - Non-programmer question

2006-08-19 Thread Marc Shapiro
[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

XML ElementTree Parse.

2006-10-12 Thread marc . wyburn
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

Re: XML ElementTree Parse.

2006-10-12 Thread marc . wyburn
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

batteries included

2006-10-25 Thread marc . wyburn
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

Re: Slurping All Content of a File into a Variable

2006-10-27 Thread marc . wyburn
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

Re: sound processing modules in python - anyone?

2006-11-07 Thread marc . wyburn
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

Re: sound processing modules in python - anyone?

2006-11-07 Thread marc . wyburn
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

Re: Hostmask matching

2006-06-03 Thread Marc Schoechlin
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

Re: Can I do it using python?? about xterm and telnet

2006-07-03 Thread Marc Schoechlin
th python-programming ? Best regards Marc schoechlin -- http://mail.python.org/mailman/listinfo/python-list

Re: CPU or MB Serial number

2006-07-11 Thread marc . wyburn
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

ctypes listing dll functions

2006-09-08 Thread marc . wyburn
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

ctypes listing dll functions

2006-09-08 Thread marc . wyburn
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

bsddb

2006-09-26 Thread Marc Jeurissen
anks in advance Marc Jeurissen -- http://mail.python.org/mailman/listinfo/python-list

mod_python, dates, strings and integers

2006-01-26 Thread marc . wyburn
] 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

using variables with modules

2005-05-05 Thread marc . wyburn
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

Re: using variables with modules

2005-05-05 Thread marc . wyburn
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

Importing and namespace visibility

2005-05-15 Thread jean-marc
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

PythonWin + Tkinter = broken relation with WindowsXP !?!?!

2005-05-15 Thread jean-marc
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

Re: Importing and namespace visibility

2005-05-16 Thread jean-marc
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

God damn error 666 (Tkinter in PythonWin)

2005-05-18 Thread jean-marc
Hoping this is not CHTULHU telling to do something else with my life ;-) Jean-Marc -- http://mail.python.org/mailman/listinfo/python-list

RE: Strings for a newbie

2005-05-27 Thread Marc Boeren
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

Re: write to the same file from multiple processes at the same time?

2005-05-27 Thread jean-marc
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

Re: decimal and trunkating

2005-06-02 Thread Marc Christiansen
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ŭ,

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread jean-marc
.. 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

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread jean-marc
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

python create WMI instances

2005-06-10 Thread Marc Wyburn
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_(

Re: searching for IDE

2005-06-12 Thread jean-marc
if you are familiar with eclipse, you could use the PyDev python plugin. jm -- http://mail.python.org/mailman/listinfo/python-list

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-14 Thread jean-marc
[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

Re: Floating Number format problem

2007-06-12 Thread Marc Christiansen
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

Re: Accessing attributes

2007-06-12 Thread Marc Christiansen
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

Re: Floating Number format problem

2007-06-12 Thread Marc Christiansen
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

Re: Type of __builtins__ changes from module import to execution?

2007-06-22 Thread Marc Christiansen
> > 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

need a variation algorithm for Lists in Dictionaries

2007-07-04 Thread Marc Stuart
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])

Re: Reading Data From an Excel Sheet

2007-04-30 Thread garcia . marc
> 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

Re: Minor bug in tempfile module (possibly __doc__ error)

2007-05-10 Thread Marc Christiansen
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

Re: __dict__ for instances?

2007-05-13 Thread Marc Christiansen
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

Re: NOOOOB

2007-05-22 Thread marc wyburn
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

KeyError: ... updated type, in planet

2007-08-08 Thread Marc Girod
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

Re: Python for web development ...

2007-08-22 Thread marc wyburn
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

Re: os.removedirs - How to force this delete?

2007-09-27 Thread Marc Christiansen
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

Re: True of False

2007-09-27 Thread Marc Christiansen
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

Re: tinyp2p - trying to get it to work

2007-10-07 Thread Marc Christiansen
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

Re: write whitespace/tab to a text file

2007-10-19 Thread marc wyburn
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

Re: Please Help !!!

2007-10-19 Thread marc wyburn
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

Progress when parsing a large file with SAX

2007-02-12 Thread marc . omorain
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

Re: Progress when parsing a large file with SAX

2007-02-12 Thread marc . omorain
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

get the shape of a numpy ndarray in C++ code [boost.python]

2007-11-09 Thread Marc Oldenhof
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

Re: Distributed RVS, Darcs, tech love

2007-11-12 Thread Marc Espie
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

Re: class='something' as kwarg

2007-11-17 Thread Marc Christiansen
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

Re: Some clauses cases BeautifulSoup to choke?

2007-11-19 Thread Marc Christiansen
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

Re: Some clauses cases BeautifulSoup to choke?

2007-11-20 Thread Marc Christiansen
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

Re: JSON

2007-12-06 Thread Marc Christiansen
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

Re: Code Management

2007-12-07 Thread Marc Christiansen
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

websphere6 ND soap access

2006-05-11 Thread Marc Schoechlin
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

Re: John Bokma harassment

2006-05-24 Thread marc spitzer
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

Re: unicode box drawing

2008-03-04 Thread Marc Christiansen
#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

Re: tcp client socket bind problem

2008-03-10 Thread Marc Christiansen
>>> 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

Re: Unicode/UTF-8 confusion

2008-03-15 Thread Marc Christiansen
;>> 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

Re: Interesting math problem

2008-03-18 Thread Marc Christiansen
ke_slope` is not tail recursive, the `+` (aka list.extend) gets executed after the recursion. Marc -- http://mail.python.org/mailman/listinfo/python-list

pymssql text type

2009-02-20 Thread marc wyburn
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

confused about classes and tkinter object design

2008-11-25 Thread marc wyburn
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

Re: confused about classes and tkinter object design

2008-11-27 Thread marc wyburn
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

Re: pymssql text type

2009-03-12 Thread marc wyburn
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

gethostbyname blocking

2009-04-22 Thread marc wyburn
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

Re: gethostbyname blocking

2009-04-22 Thread marc wyburn
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

Re: gethostbyname blocking

2009-04-24 Thread marc wyburn
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

Re: Compress a string

2008-05-18 Thread Marc Christiansen
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

Re: Bug in floating-point addition: is anyone else seeing this?

2008-05-21 Thread Marc Christiansen
: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

Re: Producing multiple items in a list comprehension

2008-05-22 Thread Marc Christiansen
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

error using all()/numpy [TypeError: cannot perform reduce with flexible type]

2008-05-23 Thread Marc Oldenhof
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

Re: error using all()/numpy [TypeError: cannot perform reduce with flexible type]

2008-05-23 Thread Marc Oldenhof
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] >

Re: error using all()/numpy [TypeError: cannot perform reduce with flexible type]

2008-05-23 Thread Marc Oldenhof
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

Re: graphical ide??

2008-05-28 Thread Marc Pelletier
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

boolian logic

2008-06-13 Thread marc wyburn
s calulated first i.e the not or the 'OR/AND's thanks, Marc. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >