Re: Getting Syslog working on OSX Monterey

2022-03-03 Thread Philip Bloom via Python-list
dback. On Thu, Mar 3, 2022 at 10:32 AM Barry Scott wrote: > > > On 3 Mar 2022, at 03:01, Philip Bloom wrote: > > I'm probably asking on the wrong list, and probably should bother wherever > apple's ASL experts live for changes in monterey. Guess nobody else is > see

Re: Getting Syslog working on OSX Monterey

2022-03-02 Thread Philip Bloom via Python-list
er| Story must make more sense than reality. > > |_|_) || > > | | | h...@hjp.at |-- Charles Stross, "Creative writing > > __/ | http://www.hjp.at/ | challenge!" > > -- > > https://mail.python.org/mailman/listinfo/pytho

Re: Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
OS Syslogd -> parsed ASL config -> /var/log/Appname/Appname.log). It's why I think I may be missing something fundamental, but it feels like something subtle changed in the latest OSX. On Sun, Feb 27, 2022 at 11:26 AM Dennis Lee Bieber wrote: > On Sun, 27 Feb 20

Getting Syslog working on OSX Monterey

2022-02-27 Thread Philip Bloom via Python-list
[CA= Sender appName] file /var/log/appName/appName.log My end goal is really to get just a working python logging -> var/log/appname/appname.log again so glad to just be pointed in the right direction if way off base. -- Philip Bloom Director, Services Engineering *AppLovin Corporation* M: (786

Re: Asyncio tasks getting cancelled

2018-11-05 Thread philip . m
On Mon, Nov 05, 2018 at 01:57:56PM -0700, Ian Kelly wrote: > > Which is what I want in this case. Scheduling a new (long-running) task > > as a side effect, but returning early oneself. The new task can't be > > awaited right there, because the creating one should return already. > > If you want t

Re: Running a .py file iteratively at the terminal

2015-01-27 Thread Philip Keogh
On Mon, 26 Jan 2015, varun...@gmail.com wrote: > Thanks a lot Mark but that would be a bit trivial. How can I run the > same file multiple times? Or if I need to run two commands: > srva@hades:~$ python NFV_nw_eu_v3_14_1_15.py --output eu_v3_14_1_15 > --demand demands_v3_21_1_15.xml --xml nobel-eu.

PyPy3 2.4.0 released

2014-10-21 Thread Philip Jenvey
= PyPy3 2.4 - Snow White = We're pleased to announce PyPy3 2.4, which contains significant performance enhancements and bug fixes. You can download the PyPy3 2.4.0 release here: http://pypy.org/do

Re: Get named groups from a regular expression

2014-07-03 Thread Philip Shaw
On 2014-07-01, Florian Lindner wrote: > > Is there a way I can extract the named groups from a regular > expression? e.g. given "(?P\d)" I want to get something > like ["testgrp"]. The match object has an attribute called "groupdict", so you can get the found named groups using match.groupdict.k

PyPy3 2.3.1 released

2014-06-20 Thread Philip Jenvey
ypy documentation`: http://doc.pypy.org/en/latest/getting-started.html#installing-using-virtualenv .. _`virtualenv`: http://www.virtualenv.org/en/latest/ .. _`installation schemes`: http://doc.pypy.org/en/latest/getting-started.html#installing-pypy Cheers, the PyPy team -- Philip Jenvey --

Re: Not Responding When Dealing with Large Data

2014-06-18 Thread Philip Dexter
On Wed, Jun 18, 2014 at 1:20 PM, cutey Love wrote: > I'm trying to read in 10 lines of text, use some functions to edit them > and then return a new list. > > The problem is my program always goes not responding when the amount of lines > are a high number. > > I don't care how long the prog

Re: How to use SQLite (sqlite3) more efficiently

2014-06-09 Thread Philip Shaw
On 2014-06-06, Mark Lawrence wrote: > On 06/06/2014 22:58, Dave Angel wrote: >> Chris Angelico Wrote in message: >>> On Sat, Jun 7, 2014 at 4:15 AM, R Johnson >>> wrote: > The subject line isn't as important as a header, carried invisibly > through, that says that you were replying to an

Re: try/except/finally

2014-06-09 Thread Philip Shaw
On 2014-06-08, Dave Angel wrote: > Frank B Wrote in message: >> Ok; this is a bit esoteric. >> >> So finally is executed regardless of whether an exception occurs, so states >> the docs. >> >> But, I thought, if I from my function first, that should take >> precedence. >> >> au contraire >>

Re: No overflow in variables?

2014-01-22 Thread Philip Red
Thank you ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: No overflow in variables?

2014-01-22 Thread Philip Red
Thank you for your answers! -- https://mail.python.org/mailman/listinfo/python-list

No overflow in variables?

2014-01-22 Thread Philip Red
Hi everyone. First of all sorry if my english is not good. I have a question about something in Python I can not explain: in every programming language I know (e.g. C#) if you exceed the max-value of a certain type (e.g. a long-integer) you get an overflow. Here is a simple example in C#:

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
hrisA Thanks for the heads up. It is buggy to say the least. Any other program on linux you may suggest? Regards, Philip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Scalability TCP Server + Background Game

2014-01-19 Thread Philip Werner
ogleGroupsPython Thanks for the link. I've, hopefully, solved the issue by switching to Pan instead of using google groups. :) Regards, Philip -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Front-end to GCC

2013-10-23 Thread Philip Herron
On Wednesday, 23 October 2013 07:48:41 UTC+1, John Nagle wrote: > On 10/20/2013 3:10 PM, victorgarcia...@gmail.com wrote: > > > On Sunday, October 20, 2013 3:56:46 PM UTC-2, Philip Herron wrote: > > >> I've been working on GCCPY since roughly november 2009 at lea

Re: Python Front-end to GCC

2013-10-22 Thread Philip Herron
On Tuesday, 22 October 2013 10:14:16 UTC+1, Oscar Benjamin wrote: > On 22 October 2013 00:41, Steven D'Aprano > > >>> On the contrary, you have that backwards. An optimizing JIT compiler > > >>> can often produce much more efficient, heavily optimized code than a > > >>> static AOT compiler, an

Re: Python Front-end to GCC

2013-10-22 Thread Philip Herron
On Tuesday, 22 October 2013 09:55:15 UTC+1, Antoine Pitrou wrote: > Philip Herron googlemail.com> writes: > > > > > > Its interesting a few things come up what about: > > > > > > exec and eval. I didn't really have a good answer for this at

Re: Python Front-end to GCC

2013-10-21 Thread Philip Herron
On Monday, 21 October 2013 21:26:06 UTC+1, zipher wrote: > On Mon, Oct 21, 2013 at 4:08 AM, Philip Herron > > wrote: > > > Thanks, i've been working on this basically on my own 95% of the compiler > > is all my code, in my spare time. Its been fairly sca

Re: Python Front-end to GCC

2013-10-21 Thread Philip Herron
Hey all, Thanks, i've been working on this basically on my own 95% of the compiler is all my code, in my spare time. Its been fairly scary all of this for me. I personally find this as a real source of interest to really demystify compilers and really what Jit compilation really is under the ho

Python Front-end to GCC

2013-10-20 Thread Philip Herron
Hey, I've been working on GCCPY since roughly november 2009 at least in its concept. It was announced as a Gsoc 2010 project and also a Gsoc 2011 project. I was mentored by Ian Taylor who has been an extremely big influence on my software development carrer. Gccpy is an Ahead of time implementati

Re: Download Visual Studio Express 2008 now

2013-08-29 Thread Philip Inglesant
Hi Martyn, Thanks for the good advice to download VS 2008 before M$ delete it from their download servers. Unfortunately they have already done this so many Python modules now can't be compiled correctly on Windows! Best regards, Philip -- http://mail.python.org/mailman/listinfo/p

PyPy3 2.1 beta 1 released

2013-07-30 Thread Philip Jenvey
PyPy3 2.1 beta 1 We're pleased to announce the first beta of the upcoming 2.1 release of PyPy3. This is the first release of PyPy which targets Python 3 (3.2.3) compatibility. We would like to thank all of the people who donated_ to the `py3k proposal`_ for suppo

RE: Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
ation where did indeed need to make a fix to Python I've wondered what's the best way to do that. Hopefully this gives you a little insight on what I'm trying to do. Thanks for your replies. Thank you. Philip McAdams Systems Administrator - NVM Solutions Group Syst

RE: Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
\Python-2.7.4\Modules to my environment variables in Windows. Wasn't exactly following your comment. Thank you. Philip McAdams Systems Administrator - NVM Solutions Group Systems Engineering Apps & Infrastructure Desk: (916) 377-6156 Cell: (916) 534-0092 Pole: FM3-1-D7 -Origina

Question regarding building Python Windows installer

2013-07-15 Thread Mcadams, Philip W
ws Server 2008 R2 box. To explain why I'm attempting to do this instead of just using the Windows Installer provided by Python: I needed to modify a _ssl.c file in the Python source code to deal a Mercurial that I'm trying to resolve. Any help on why I'm hitting these errors wo

Source code of Windows installer for Python interactive interpreter

2012-12-28 Thread philip . a . molloy
I am writing a command-line application for Windows. I would like to review the Python source code to find out how to install my application so that it doesn't have to be called using the path and file name (i.e. being able to type `python` into the Command prompt, instead of `C:\path\to\execut

Re: Need help with file encoding-decoding

2011-09-23 Thread Philip Semanchuk
008.html You can also do some straightforward debugging. Save the raw bytes you get from each site, and when you encounter a decode error, check the raw bytes. Are they really in the encoding specified? Webmasters make all kinds of mistakes. Hope this helps Philip > this -> content.

Re: Numpy.array with dtype works on list of tuples not on list of lists?

2011-09-18 Thread Philip Semanchuk
t;> arr > array([(1.0, 2.0, 3.0), (4.0, 5.0, 6.0)], dtype=[('a', ' ' > The only difference that the object is a list of tuples now? I don't know why you're seeing what you're seeing, but if you don't get answer here you could try asking on the numpy list. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Python Tools for Visual Studio - anyone using it?

2011-08-30 Thread Philip Semanchuk
s the URL for those who haven't heard of it before: http://pytools.codeplex.com/ Thanks Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Help parsing a text file

2011-08-29 Thread Philip Semanchuk
rstand the underlying fundamentals. If the syntax really is close to XML, would it be all that difficult to convert it to proper XML? Then you have nice libraries like ElementTree to use for parsing. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Button Label change on EVT_BUTTON in wxpython!!!

2011-08-28 Thread Philip Semanchuk
l('Install') > > When I try doing this, it doesn't set the label to "Installing" while > the task is being performed. Any suggestions how do I achieve this? Suggestion #1: After you set the label to "Installing...", try adding self.run_button.Re

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
27;re developing a habit around what is essentially an implementation quirk. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
On Aug 27, 2011, at 4:14 PM, Terry Reedy wrote: > On 8/27/2011 2:07 PM, Philip Semanchuk wrote: >> >> On Aug 27, 2011, at 1:57 PM, Josh English wrote: >> >>> Philip, >>> >>> Yes, the proper path should be c:\dev\XmlDB, which has the >&g

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
On Aug 27, 2011, at 1:57 PM, Josh English wrote: > Philip, > > Yes, the proper path should be c:\dev\XmlDB, which has the setup.py, xmldb > subfolder, the docs subfolder, and example subfolder, and the other text > files proscribed by the package development folder. > >

Re: Understanding .pth in site-packages

2011-08-27 Thread Philip Semanchuk
his topic in the documentation, but haven't come across it yet. > Is there a better way to redirect import statements without messing with the > system path or the PYTHONPATH variable? Personally I have never used PYTHONPATH. Hope this helps Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Immediate Requirement for a Data Warehouse Developer

2011-08-25 Thread Philip Semanchuk
On Aug 25, 2011, at 9:24 AM, Sirisha wrote: > Position Profile – Senior Data Warehouse Developer As was mentioned on the list less than 24 hours ago, please don't post job listings to this mailing list. Use the Python jobs board instead: http://www.python.org/community/jobs/ -- http://mail.p

Re: Hot Girls are Looking for Sex

2011-08-19 Thread Philip Semanchuk
On Aug 19, 2011, at 4:17 PM, Matty Sarro wrote: > That's great - but do they program in python? Please don't repost URLs sent by a spammer. Only Google truly knows how its algorithm works, but the general consensus is that the more times Google sees a link repeated, the more credibility the l

Re: List spam

2011-08-18 Thread Philip Semanchuk
On Aug 18, 2011, at 1:10 PM, Peter Pearson wrote: > On Thu, 18 Aug 2011 12:15:59 -0400, gene heskett wrote: > [snip] >> What is wrong with the mailing list only approach? > > In the mailing-list approach, how do I search for prior discussions > on a subject? (I'm not particularly opposed to th

Re: List spam

2011-08-18 Thread Philip Semanchuk
"http://groups.google.com";, you won't see much spam anymore. In my experience, you'll also miss a number of legitimate postings. HTH Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 10:15 PM, Terry Reedy wrote: > On 8/16/2011 8:18 PM, Philip Semanchuk wrote: > >> Hi Terry, >> To generalize from your example, are you saying that there's a mild >> admonition > > against shadowing builtins with unrelated variable name

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
uiltins would be an expansion of scope. bye, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
arators for mutually exclusive groups open = r'[\[(]' close = r'[\])]' text = _re.sub(r'(%s) ' % open, r'\1', text) text = _re.sub(r' (%s)' % close, r'\1', text) text = _re.sub(r'%s *%s' % (open, close), r'', text) text = _re.sub(r'\(([^|]*)\)', r'\1', text) text = text.strip() Thanks Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 12:19 PM, Ethan Furman wrote: > Philip Semanchuk wrote: >> On Aug 16, 2011, at 11:41 AM, Ethan Furman wrote: >>> Philip Semanchuk wrote: >>>> If we are to eschew warnings in >>>> cases where they might be highlighting something harmle

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 11:41 AM, Ethan Furman wrote: > Philip Semanchuk wrote: >> On Aug 16, 2011, at 1:15 AM, Steven D'Aprano wrote: >>> Protecting n00bs from their own errors is an admirable aim, but have you >>> considered that warnings for something which may be

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 11:12 AM, Chris Angelico wrote: > On Tue, Aug 16, 2011 at 3:13 PM, Philip Semanchuk > wrote: > >> One need look no further than the standard library to see a strong >> counterexample. grep through the Python source for " file =". I see

Re: Why no warnings when re-assigning builtin names?

2011-08-16 Thread Philip Semanchuk
On Aug 16, 2011, at 1:15 AM, Steven D'Aprano wrote: > On Tue, 16 Aug 2011 01:23 pm Philip Semanchuk wrote: > >> >> On Aug 15, 2011, at 9:32 PM, Steven D'Aprano wrote: >> >>> On Tue, 16 Aug 2011 08:15 am Chris Angelico wrote: >>> >>&g

Re: Why no warnings when re-assigning builtin names?

2011-08-15 Thread Philip Semanchuk
gly by newcomers to the language who have no idea that they've done anything out of the ordinary or potentially confusing. If a language feature is most often invoked accidentally without knowledge of or regard for its potential negative consequences, then it might be worth making it easier to avoid those accidents. bye, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Why no warnings when re-assigning builtin names?

2011-08-15 Thread Philip Semanchuk
could break existing code. I could see a use for "from __future__ import squawk_if_i_reassign_a_builtin" or something like that, but the current default behavior has to remain as it is. JMO, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Help needed with using SWIG wrapped code in Python

2011-08-15 Thread Philip Semanchuk
On Aug 15, 2011, at 4:08 AM, Vipul Raheja wrote: > Hi, > > I have wrapped a library from C++ to Python using SWIG. But I am facing > problems while importing and using it in Python. Hi Vipul, Did you try asking about this on the SWIG mailing list? bye Philip -- http://mai

Re: multiprocessing timing issue

2011-08-10 Thread Philip Semanchuk
ueue is empty? It sounds like you figured out already that get_data() sometimes takes longer than your timeout. So either increase your timeout or learn to live with the fact that the queue is sometimes empty. I don't mean to be rude, I just don't understand the problem. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: WxPython and TK

2011-08-08 Thread Philip Semanchuk
don't use Python. The "best Python GUI library" conversation is repeated on this list at least once every few months. If the subject really interests you, I recommend that you read the archives and see some of the arguments for and against various GUI toolkits. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Table Driven GUI Definition?

2011-08-05 Thread Philip Semanchuk
On Aug 5, 2011, at 6:20 PM, Tim Daneliuk wrote: > On 8/5/2011 3:42 PM, Philip Semanchuk wrote: >> >> On Aug 5, 2011, at 4:10 PM, Tim Daneliuk wrote: >> >>> On 8/5/2011 2:05 PM, Irmen de Jong said this: >>>> On 05-08-11 19:53, Tim Daneliuk wrote:

Re: Table Driven GUI Definition?

2011-08-05 Thread Philip Semanchuk
ctually be a better model >>> because then I only have to worry about a single presentation >>> environment. >>> >>> Ideas anyone? Hi Tim This looks pretty straightforward to me; maybe I'm missing something. It doesn't look trivial, but the steps seem pre

Re: Deeply nested dictionaries - should I look into a database or am I just doing it wrong?

2011-07-31 Thread Philip Semanchuk
's no standard way to specify the encoding, and, as would be critical to the OP who is nesting dicts inside of dicts, not all INI file libraries accept nested sections. To the OP -- if you're looking to write this to disk, I recommend XML or SQLite. JMHO, Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get Python to insert special characters in an xml file?

2011-07-15 Thread Philip Semanchuk
kant, You don't need to do anything special to insert metacharacters like & and < and > into XML using ElementTree. Just treat them as normal text and ElementTree will change them to entity references (&, etc.) when it writes your file to disk. If you're having a specific

Re: Question- Getting Windows 64bits information Python 32bits

2011-07-07 Thread Philip Reynolds
On Thu, 07 Jul 2011, Andrew Berg wrote: > On 2011.07.07 10:21 AM, António Rocha wrote: > > I'm running Python (32b) in Windows7 (at 64bits) and I would like to > > know how can I check if my machine is a 32b or 64b in Python. Is it > > possible? I saw a few examples (like platform) but they only p

Re: wx MenuItem - icon is missing

2011-07-06 Thread Philip Semanchuk
in very little platform-specific code. To be fair, we've had to rewrite some code after we found that it worked on one platform but not another, but generally we're able to find code that works on all platforms. We have only a couple of places where we were forced to resort to this kind o

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
-mac-unicode/wx/_core.py", line 11481, in __init__ _core_.MenuItem_swiginit(self,_core_.new_MenuItem(*args, **kwargs)) wx._core.PyAssertionError: C++ assertion "parentMenu != NULL" failed at /BUILD/wxPython-src-2.8.12.0/src/common/menucmn.cpp(389) in wxMenuItemBase(): menuitem should ha

Re: wx MenuItem - icon is missing

2011-07-05 Thread Philip Semanchuk
complete example that demonstrates the problem so that we don't have to dummy up a wx app ourselves to try your code. 2. Ask on the wxPython mailing list. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: unzip problem

2011-06-24 Thread Philip Semanchuk
ell which file is failing. 2) You can't tell whether you're getting an error on the write or the read because you've got two statements combined into one line. Change this -- outfile.write(z.read(name)) to this -- data = z.read(name) outfile.write(data) Good luck Phil

Re: search through this list's email archives

2011-06-23 Thread Philip Semanchuk
On Jun 23, 2011, at 12:11 PM, Cathy James wrote: > Dear All, > > I looked through this forum's archives, but I can't find a way to > search for a topic through the archive. Am I missing something? http://www.google.com/search?q=site%3Amail.python.org%2Fpipermail%2Fpython-list%2F+++banana -- h

Re: dummy, underscore and unused local variables

2011-06-13 Thread Philip Semanchuk
on bool object: class bool(int) | bool(x) -> bool In your case when you asked for help(_), the last object you used must have been a bool. > > :) I expect to be edified is so many ways, some > of them unexpected. That's the nice thing about this list! Hope this helps Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Validating string for FDQN

2011-06-06 Thread Philip Semanchuk
> and doesn't contain the defined domain. The ones here served me very well: http://pyxml.cvs.sourceforge.net/viewvc/pyxml/xml/xml/Uri.py?revision=1.1&view=markup bye Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question about SQLite + Python and twitter

2011-05-25 Thread Philip Semanchuk
ncions. I just got to work when I stop select function. > > I would like to do my app works all the time. Hi Jayme, You need to provide a lot more information for us to be able to help you. Some suggestions -- http://www.istf.com.br/perguntas/#beprecise bye Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: checking if a list is empty

2011-05-06 Thread Philip Semanchuk
else: for item in an_iterable: print item I find I use the the former style ("if not an_iterable") almost exclusively. bye Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: ElementTree XML parsing problem

2011-04-27 Thread Philip Semanchuk
laint offered up by the parser is > > Unexpected error opening simple_fail.xml: not well-formed (invalid token): > line 5, column 40 You've gotten a number of good observations & suggestions already. I would add that if you're saving your XML file from a text editor, make sure

Re: Terrible FPU performance

2011-04-26 Thread Philip Semanchuk
On Apr 26, 2011, at 1:34 PM, Mihai Badoiu wrote: > Already did. They suggested the python list, because the asm generated code > is really correct and the problem might be with the python running on top. Does the same timing in consistency appear when you use pure Python? bye Philip &

Re: De-tupleizing a list

2011-04-25 Thread Philip Semanchuk
his?: > > ['0A', '1B', '2C', '3D',... This works for me - result = [('0A',), ('1B',), ('2C',), ('3D',), ] result = [row[0] for row in result] Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: renaming files in OS X

2011-04-20 Thread Philip Semanchuk
r is written (badly) in Python; on my system it lives in /usr/bin/xattr-2.6 You might also find this helpful: http://jonsview.com/mac-os-x-resource-forks Hope this helps Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing

2011-04-07 Thread Philip Semanchuk
On Apr 7, 2011, at 8:57 PM, Kerensa McElroy wrote: > > Hi, > > thanks for your response. > > I checked out multiprocessing.value, however from what I can make out, it > works with object of only a very limited type. Is there a way to do this for > more complex objects? (In reality, my object

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-07 Thread Philip Semanchuk
s there's an easier path somewhere else that I'm neglecting. But if pickling subclasses of numpy.ndarray objects is what you really feel you need to do, then yes, I think asking on the numpy list is the best idea. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-05 Thread Philip Semanchuk
On Apr 5, 2011, at 12:58 PM, John Ladasky wrote: > Hi Philip, > > Thanks for the reply. > > On Apr 4, 4:34 pm, Philip Semanchuk wrote: >> So if you're going to use multiprocessing, you're going to use pickle, and >> you >> need pickleable objects

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-04 Thread Philip Semanchuk
On Apr 4, 2011, at 9:03 PM, Dan Stromberg wrote: > On Mon, Apr 4, 2011 at 4:34 PM, Philip Semanchuk wrote: > >> So if you're going to use multiprocessing, you're going to use pickle, and >> you need pickleable objects. >> > > http://docs.python.org/li

Re: PyThreadState_Swap crash

2011-04-04 Thread Philip Semanchuk
be around for quite a while longer but given the ominous-but-vague warning in issue10913's description, you might want to stay away from them. It's frustrating for me because I've got code I can't get to work without them. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing, shared memory vs. pickled copies

2011-04-04 Thread Philip Semanchuk
at multi-core CPU's are apparently here to stay, > should it be so difficult to make use of them? My answers to these questions: 1) Depends 2) In Python, almost never unless you're using a nice wrapper like shmarray.py 3) I don't think it's non-trivial =) 4) No, defi

Re: interrupted system call w/ Queue.get

2011-03-22 Thread Philip Winston
interrupted. I did see several EINTR issues in Python but none obviously about Queue exactly: http://bugs.python.org/issue1068268 http://bugs.python.org/issue1628205 http://bugs.python.org/issue10956 -Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: calling 64 bit routines from 32 bit matlab on Mac OS X

2011-03-15 Thread Philip Semanchuk
all 64-bit Python alongside the 32-bit version, call with the 64-bit C DLL from 64-bit Python using ctypes, and then communicate between the 32- and 64-bit Pythons via pickled objects sent over an interprocess pipe. That solution has a Rube Goldberg-esque charm but not much else to recommend it.

Re: Is there any python library that parse c++ source code statically

2011-03-13 Thread Philip Semanchuk
On Mar 13, 2011, at 11:46 AM, Stefan Behnel wrote: > Francesco Bochicchio, 13.03.2011 10:37: >> On 13 Mar, 10:14, kuangye wrote: >>> Hi, all. I need to generate other programming language source code >>> from C++ source code for a project. To achieve this, the first step is >>> to "understand" t

Re: Do you monitor your Python packages in inux distributions?

2011-03-12 Thread Philip Semanchuk
to me. I hope that continues to be the case because I don't have a good solution to the problems you mentioned. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: multiprocessing module in async db query

2011-03-09 Thread Philip Semanchuk
On Mar 9, 2011, at 10:22 AM, Sheng wrote: > Hi Philip, > > multiprocessing.Queue is used to transfer data between processes, how > it could be helpful for solving my problem? Thanks! I misunderstood -- I thought transferring data between processes *was* your problem. If both of yo

Re: multiprocessing module in async db query

2011-03-08 Thread Philip Semanchuk
epare receiving the data > before async_func actually returns? Hi Sheng, Have you looked at multiprocessing.Queue objects? HTH Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: questions about multiprocessing

2011-03-04 Thread Philip Semanchuk
ks' is not defined When I change the name of "otasks" to "tasks", I get the nonnumeric port error that you reported. Me, I would debug it by adding a print statement to f(): def f(url): print url return urllib2.urlopen(url).read() Your problem isn't relat

Re: Checking against NULL will be eliminated?

2011-03-02 Thread Philip Semanchuk
On Mar 2, 2011, at 9:21 AM, Stefan Behnel wrote: > Claudiu Popa, 02.03.2011 14:51: >> Hello Python-list, >> >> >> I don't know how to call it, but the following Python 3.2 code seems to >> raise a >> FutureWarning. >> >> def func(root=None): >> nonlocal arg >> if root: >>arg

Re: LDFLAGS problem

2011-02-21 Thread Philip Semanchuk
command 'gcc' failed with exit status 1 > > where should I be looking to fix this problem? It's been a while since I built anything on FreeBSD, but one thing that jumps out at me is that you say you're building on 8.0 but the build output you gave us mentions 7.0. That doesn't sound right at all. Are you using ports? bye Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Unit testing multiprocessing code on Windows

2011-02-17 Thread philip
Quoting Matt Chaput : Does anyone know the "right" way to write a unit test for code that uses multiprocessing on Windows? The problem is that with both "python setup.py tests" and "nosetests", when they get to testing any code that starts Processes they spawn multiple copies of the testi

interrupted system call w/ Queue.get

2011-02-17 Thread Philip Winston
We have a multiprocess Python program that uses Queue to communicate between processes. Recently we've seen some errors while blocked waiting on Queue.get: IOError: [Errno 4] Interrupted system call What causes the exception? Is it necessary to catch this exception and manually retry the Queue

Re: Shared memory python between two separate shell-launched processes

2011-02-11 Thread Philip
. "/my_shared_memory". Note that there's a module called sysv_ipc which is a close cousin of posix_ipc. I'm the author of both. IMO POSIX is easier to use. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: help with multiprocessing pool

2011-01-27 Thread Philip Semanchuk
uch as > themultiprocessing.Pool examples will not work in the interactive interpreter. I suspect this is the problem with the demo above. Your original code ran fine in the interpreter, though, correct? bye Philip > > On Jan 27, 2011, at 6:39 AM, Philip Semanchuk wrote: > >>

Re: help with multiprocessing pool

2011-01-27 Thread Philip Semanchuk
in it so I guess that's the platform you're on. But in case you're on Windows, note that that platform requires some extra care when using multiprocessing: http://docs.python.org/library/multiprocessing.html#windows Good luck Philip > I wrote a function that can take a

Re: examples of realistic multiprocessing usage?

2011-01-21 Thread Philip Semanchuk
aid. I carefully avoid GPLed code on our BSD-licensed project not because I need fear anyone's legal department, but out of respect for the author(s) of the GPL-ed code. The way I see it, the author of GPL-ed code gives away something valuable and asks for just one thing in return: respe

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Philip Semanchuk
On Jan 20, 2011, at 11:47 AM, Robert Kern wrote: > On 1/20/11 9:47 AM, Philip Semanchuk wrote: > >> I'm glad that worked for you. Alternatively, it seems like you can set the >> default encoding in site.py which sounds easier than recompiling Python. > > Never

Re: getdefaultencoding - how to change this?

2011-01-20 Thread Philip Semanchuk
'm glad that worked for you. Alternatively, it seems like you can set the default encoding in site.py which sounds easier than recompiling Python. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: examples of realistic multiprocessing usage?

2011-01-16 Thread Philip Semanchuk
gluino.com/ I grepped through the code to see that it's using multiprocessing.Listener. I didn't go any further than that because our project is BSD licensed and the license for Gluino is unclear. Until I find out whether or not its under an equally permissive license, I can't borrow ideas and/or

Re: Career path - where next?

2011-01-12 Thread Philip Semanchuk
else's) will help to convince some employers that you're worth taking a look at. If nothing else it gives you a public example of the work that you can point them to. Good luck Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: What INI config file module allows lists of duplicate same-named options?

2011-01-10 Thread Philip Semanchuk
e expect semicolon, some make no allowances for non-ASCII encodings, some expect UTF-8 or ISO-8859-1 or Win-1252, some only allow '=' as the key/value separator, some allow other characters. INI files are nice and simple but there's devils in those details. Cheers Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: Searching Python-list

2011-01-05 Thread Philip Semanchuk
: http://www.google.com/search?q=site:mail.python.org%2Fpipermail%2Fpython-list%2F+banana HTH Philip -- http://mail.python.org/mailman/listinfo/python-list

Re: is py2exe still active ?

2010-12-08 Thread Philip Semanchuk
ages but many of those packages are hosted elsewhere. The places where those packages are hosted may or may not have an issue tracker, etc. For instance, one the packages that I offer through PyPI (posix_ipc) is hosted on my personal Web site. Hope this helps Philip > - Orig

  1   2   3   4   5   >