Fwd: Can you help me with this Python question?

2022-10-13 Thread Sarah Wallace
s the final sum() of everything. df['Name'].isnull().sum() -- Thanks! *Sarah Wallace* sarah.wallac...@gmail.com -- Thanks! *Sarah Wallace* sarah.wallac...@gmail.com 214.300.1064 -- https://mail.python.org/mailman/listinfo/python-list

python 3.7.2

2019-01-27 Thread Sarah P
programmer and I can’t understand the highly technical, expert level documentation that might rectify the problem and there is only a small amount of information anyway. I just want to download Python to C drive on windows, it should be really easy... Hope you can help Sarah Padden -- https

Call for Papers - Programming Language Evolution Workshop 2015

2015-03-04 Thread Sarah Mount
eather Miller (Ecole Polytechnique Federale de Lausanne, Switzerland) * Sarah Mount (University of Wolverhampton, UK) * Alan Mycroft (University of Cambridge, UK) * Dominic Orchard (co-chair) (Imperial College London, UK) * Jeff Overbey (Auburn University, AL, US) * Max Schaefer (Semmle Ltd.,

PyGotham CFP open/looking for sponsors

2014-06-16 Thread Sarah Guido
Hello, NYC Python is hosting a conference, PyGotham http://pygotham.org/ The call for proposals is open until the 20th (http://pygotham.org/talks/call-for-proposals), and we're also looking for sponsors (http://pygotham.org/sponsors/prospectus). It's going to be awesome! Che

Re: Python in CS1

2011-05-21 Thread Sarah Mount
is still actively using our old syllabus (or a variant). You can reach him here: http://dis-dot-dat.net/ Sarah -- Sarah Mount, Senior Lecturer, University of Wolverhampton website:  http://www.snim2.org/ twitter: @snim2 -- http://mail.python.org/mailman/listinfo/python-list

rfile.readline()

2010-08-27 Thread sarah
i want to know that what this function returns??? and what does this function do?? -- http://mail.python.org/mailman/listinfo/python-list

error: (113, 'Software caused connection abort')0

2010-08-04 Thread sarah
hi i face with this problem when i want to run this command on cygwin: python httpd.py 8000 example-300-1k-rigid.py Dfghfji12d52s35s2sswee9E with this error :0 Exception happened during processing of request from ('127.0.0.1', 35868) Traceback (most recent call last): File "/usr/local/lib/p

Re: Python debuggers with sys.settrace()

2010-05-06 Thread Sarah Mount
On 5 May 2010 10:17, Carl Banks wrote: > On May 2, 11:06 am, Sarah Mount wrote: >> This is a bit of an odd question, but is there any way for a Python >> debugger to suppress I/O generated by the program which is being >> debugged? I guess an "obvious" thing

Python debuggers with sys.settrace()

2010-05-02 Thread Sarah Mount
s dicts to fake ones which don't generate I/O, but this seems brittle as the standard library will change over time. Is it possible to modify the byte-compiled code in each stack frame? Or is there a simpler way to do this? Many thanks, Sarah -- Sarah Mount, Senior Lecturer, University o

IsNumberType()

2008-02-03 Thread Sarah Orchard
I am writing an IF statement which basically says if the value is a str.isdigit() it should run the command or ELSE print please enter a numeric value next time. Even when I enter a number though ie. An integer it is going straight to the else command - what code do I need to add that will reco

Re: wxPython Licence vs GPL

2005-11-22 Thread John Perks and Sarah Mount
> IIRC, wxPython license has nothing to do with GPL. Its license is far more > "free" than GPL is. If you want to create commercial apps with wxPython, you > can do it without messing with licenses. This isn't a commercial app though, it's for a research project and apparently it's a requirement t

wxPython Licence vs GPL

2005-11-22 Thread John Perks and Sarah Mount
we have some Python code we're planning to GPL. However, bits of it were cut&pasted from some wxPython-licenced code to use as a starting point for implementation. It is possible that some fragments of this code remains unchanged at the end. How should we refer to this in terms of copyright statem

[regex] case-splitting strings in unicode

2005-10-08 Thread John Perks and Sarah Mount
I have to split some identifiers that are casedLikeThis into their component words. In this instance I can safely use [A-Z] to represent uppercase, but what pattern should I use if I wanted it to work more generally? I can envisage walking the string testing the unicodedata.category of each char, b

Re: Will python never intend to support private, protected and public?

2005-10-02 Thread John Perks and Sarah Mount
> 1) Something that fixes the broken name mangling in the current > system, but still doesn't try to defeat intentional unmangling. > Currently, if you have a class with the same name as one of its > superclasses, the name mangling can fail even its existing purpose of > preventing accidental colli

Re: Block-structured resource handling via decorators

2005-07-30 Thread John Perks and Sarah Mount
> The only cases I see the first school of thought is when the resource > in question is "scarce" in some way. By "resource" I meant anything with some sort of acquire/release semantics. There may be plenty of threading.Locks available, but it's still important that a given Lock is released when n

Block-structured resource handling via decorators

2005-07-29 Thread John Perks and Sarah Mount
When handling resources in Python, where the scope of the resource is known, there seem to be two schools of thought: (1) Explicit: f = open(fname) try: # ... finally: f.close() (2) Implicit: let the GC handle it. I've come up with a third method that uses decorators to achieve a useful

"static" data descriptors and possibly spurious calls to __set__?

2005-06-19 Thread John Perks and Sarah Mount
I have a peculiar problem that, naturally, I cannot reproduce outside the fairly long-winded code that spawned it. Thus the code snippets here should be taken as shorthand for what I think are the relevant bits, without actually leading to the erroneous (or at least undesired) behaviour described.

UTF16 codec doesn't round-trip?

2005-05-28 Thread John Perks and Sarah Mount
(My Python uses UTF16 natively; can someone with UTF32 Python let me know if that behaves differently?) >>> import codecs >>> u'\ud800' # part of surrogate pair u'\ud800' codecs.utf_16_be_encode(_)[0] '\xd8\x00' codecs.utf_16_be_decode(_)[0] Traceback (most recent call last): File "", line 1, in

Re: MRO problems with diamond inheritance?

2005-05-02 Thread John Perks and Sarah Mount
"Michele Simionato" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > BTW, what it your use case? I have yet to see a single compelling use > case for multiple inheritance, so I am > curious of what your design is. Before I start, I should mention that my workaround I listed previousl

MRO problems with diamond inheritance?

2005-05-01 Thread John Perks and Sarah Mount
Trying to create the "lopsided diamond" inheritance below: >>> class B(object):pass >>> class D1(B):pass >>> class D2(D1):pass >>> class D(D1, D2):pass Traceback (most recent call last): File "", line 1, in ? TypeError: Error when calling the metaclass bases Cannot create a consistent method

Re: Multiple threads in a GUI app (wxPython), communication between worker thread and app?

2005-05-01 Thread John Perks and Sarah Mount
"fo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is a network app, written in wxPython and the socket module. This > is what I want to happen: I'm not sure if this will help you, but it solved what was, for me, a more general problem: not (normally) being able to issue w

wxPython OGL: How make LineShape text b/g transparent?

2005-04-14 Thread John Perks and Sarah Mount
(Having problems receiving wxPython mailing list entries, so I'll ask here.) I'm using wxPython 2.5.4, windows ansi version, on Python 2.4, the OS in Win98SE. My application manipulates a graph, with CircleShapes for nodes and LineShapes for arcs. The user needs to be able to get and set text on a

dynamic loading of code, and avoiding package/module name collisions.

2005-04-07 Thread John Perks and Sarah Mount
Long story short: what I'm looking for is information on how have a Python app that: * embeds an editor (or wxNoteBook full of editors) * loads code from the editors' text pane into the app * executes bits of it * then later unloads to make way for an edited version of the code. The new version nee

Use of descriptor __get__: what defines an object as being a class?

2005-03-23 Thread John Perks and Sarah Mount
I'm talk from the point of view of descriptors. Consider a.x = lambda self:None # simple function When a.x is later got, what criterion is used to see if a class (and so the func would have __get__(None, a) called on it)? Pre-metaclasses, one might assume it was isinstance(a, (types.TypeType, ty