[issue46966] c_void_p array is a footgun on I32LP64 systems

2022-03-09 Thread JP Sugarbroad
JP Sugarbroad added the comment: That matches our expectation. A subclass works - perhaps `c_void_p` could be deprecated in favor of a built-in subclass for generic opaque pointers as well? Glad you agree that a warning would be useful here

[issue46966] c_void_p array is a footgun on I32LP64 systems

2022-03-08 Thread JP Sugarbroad
New submission from JP Sugarbroad : The following code will likely crash on I32LP64 systems: dim = lib.get_array_size(opaque) ptrs = (c_void_p * dim)() lib.get_array_values(opaque, ptrs) for ptr in ptrs: print(lib.get_object_value(ptr)) What happens is that `ptr` is not a `c_void_p

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread JP Zhang
JP Zhang added the comment: >>>python test.py --num_epochs 200 usage: test.py [-h] [--data_type DATA_TYPE] test.py: error: unrecognized arguments: --num_epochs 200 I have a created a colab share link. You can check: https://colab.research.google.com/drive/1TUvt4CCv2d43GD1ccmuRNBJ

[issue36561] Python argparse doesn't work in the presence of my custom module

2019-04-08 Thread JP Zhang
New submission from JP Zhang : Github repo for reproducing: https://github.com/zjplab/gc-mc-pytorch/tree/bug, test.py. In the presence of my custom data_loader, it will error as unrecognized argument. But without importing it(comment it out) everything is just fine. -- components

[issue15994] memoryview to freed memory can cause segfault

2018-10-08 Thread JP Sugarbroad
Change by JP Sugarbroad : -- nosy: +taralx ___ Python tracker <https://bugs.python.org/issue15994> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22177] Incorrect version reported after downgrade

2014-08-09 Thread jp
New submission from jp: After downgrading from version 2.7.8 to 2.7.5 on Win7 x86 32bit Python, the interpreter continues to report version 2.7.8. I have verified that the installation folder has the correct files belonging to 2.7.5 as evidenced by python.exe having a 2013 timestamp. Ran

[issue22177] Incorrect version reported after downgrade

2014-08-09 Thread jp
jp added the comment: Forget to mention this downgrade was installed over the existing python installation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177

[issue22177] Incorrect version reported after downgrade

2014-08-09 Thread jp
jp added the comment: Have you checked if there are pyc files left around by the previous installation? -- Yes, hundreds! After making a backup, i deleted all 900+ occurrences of *.pyc in c:\python27 and it still reports 2.7.8. Have you specified the full path to python.exe from cmd while

[issue16756] buggy assignment to items of a list created by a * operator

2012-12-23 Thread jp
New submission from jp: The following code: li = [[1,0]]*5 a = [[1,10], [2,20], [3,30]] for line in a: li[line[0]][0] = 2 print(li) prints [[2,0],[2,0],[2,0],[2,0],[2,0]], but should print [[1,0],[2,0],[2,0],[2,0],[1,0]]. The output is correct if you, instead of using li = [[1,0]]*5

cmd i/o stream module

2012-06-27 Thread prakash jp
Hi All, I am interested to interact with the command prompt, is there a module to control the input/output stream. Thanks in advance for the pointers Thanks Prakash -- http://mail.python.org/mailman/listinfo/python-list

get latest from svn

2012-06-01 Thread prakash jp
Hi All, Can some one suggest me a module to access SVN repository so that i could download any given branch. Thanks -- http://mail.python.org/mailman/listinfo/python-list

text to html

2011-12-13 Thread prakash jp
Hi All, Want to publish a log file as a web page, is there a parser to retain the format of the text as is and then convert to html. Please provide the relevant pointers Thanks -- http://mail.python.org/mailman/listinfo/python-list

how to invoke a bat file on a remote machine

2011-08-08 Thread prakash jp
Hi all, Want to know how to invoke a bat file on a remote machine. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: find max and min values from a column of a csv file

2011-07-19 Thread prakash jp
Thanks for the suggestions. Felt the thread could be of help on consolidating the solution. *Max Value from a csv column:* import numpy data1 = numpy.genfromtxt(data.csv,dtype='float',delimiter = ',',skiprows=1, skip_header=0, skip_footer=0, usecols=11,usemask=True)

find max and min values from a column of a csv file

2011-07-07 Thread prakash jp
Hi All , Could any one help to get max and min values from a specified column of a csv file. The* csv file is large* and hence the below code did go bad. *Alternate methods would be highly appreciated ** minimum.py*: import csv filename = testLog_4.csv f = open(filename) def col_min(mincname):

help on QUICKFIX

2011-06-10 Thread prakash jp
Hi, I am using quickfix, would like to start with that ..\quickfix-1.13.3\quickfix\examples\executor\python\executor.py asks for a configuration file how should it look like. Thanks -- http://mail.python.org/mailman/listinfo/python-list

pydev ant build

2011-05-30 Thread prakash jp
Hi all, Could any one provide relevant url/s on the usage of *pyant* scripts and its setup as well Thanks -- http://mail.python.org/mailman/listinfo/python-list

FIX Message module

2011-02-17 Thread prakash jp
Hi all, Finacial Information Exchange (FIX) Protocol module is what I am looking for.Using it I would like to pump and listen to the FIX messages--(hard coded values). Please guide me through the relevant module (windows installer) and anything that you foresee as a potential bottleneck. So far

read text color from image

2011-01-12 Thread prakash jp
Hi All, During automation of a test case the web interface throws failure and sucess text in RED and GREEN colors respectively. Is there a method to read the color of the Success(green) and Failure(red) from the screenshots of the webinterfaces collect for Failure and Success say : import Image

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
New submission from JP St. Pierre jstpie...@mecheye.net: With all the tools I've used, the target of a symlink appears to be relative to the actual symlink entry. Fix this. -- components: Library (Lib) messages: 120208 nosy: magcius priority: normal severity: normal status: open title

[issue10292] tarinfo should use relative symlinks

2010-11-01 Thread JP St. Pierre
Changes by JP St. Pierre jstpie...@mecheye.net: -- keywords: +patch Added file: http://bugs.python.org/file19462/tarinfo-10292.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10292

Re: WMI in Python

2010-09-13 Thread prakash jp
Very true most systems admins requirement range from : knoowing the Service tag for a given IP to knowing the system harware details such as RAM sizes etc. This is where Remote Inventory Management comes in handy. There is vault of already existing vb scripts/perl scripts and batch files. To me it

python interview quuestions

2010-08-06 Thread prakash jp
Hi all, I would like to aquint myself with Python Interview questions . I am a Python Scripter, so if u could orient the pointers in the same direction it would be very handy Regards -- http://mail.python.org/mailman/listinfo/python-list

tools for network adminstrator

2010-04-12 Thread prakash jp
Hi all, Can any one mention a list of *python based tools* (existant / could be developed) which network administrators might need. Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use python to register a service (an existing .exe file)

2010-03-02 Thread prakash jp
Code of SmallestService.py is at: http://book.opensourceproject.org.cn/lamp/python/pythonwin/ Regards -- http://mail.python.org/mailman/listinfo/python-list

search entire drive say c:

2010-02-12 Thread prakash jp
Hi all, can any of u help to search a file say abc.txt in entire c drive (windows) and print the path/s stating such a files presence. Thanks in advance Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list

Re: search entire drive say c:

2010-02-12 Thread prakash jp
Thank u Tim Case, all, Also how to run the standalone generated from script taking unc path names to account regards Prakash On Fri, Feb 12, 2010 at 6:31 PM, Tim Chase python.l...@tim.thechases.comwrote: can any of u help to search a file say abc.txt in entire c drive (windows) and print

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2010-01-03 Thread prakash jp
*#How to use setup.py file with py2exe:* ** python daniesetup.py py2exe --bundle 1 *#Also the data files have to taken care off in the options* list *#Here is a sample setup.py:* *#* from distutils.core import setup import py2exe import sys #

Re: Which version of MSVC?90.DLL's to distribute with Python 2.6 based Py2exe executables?

2009-12-30 Thread prakash jp
Hi all, #use py2exe properly to create a single distributable exe #setup.py- create a single exe that runs all boxex from distutils.core import setup import py2exe import sys # no arguments if len(sys.argv) == 1: sys.argv.append(py2exe) # creates a standalone .exe file, no zip files setup(

[issue7552] uploading fails on long passwords

2009-12-20 Thread JP St. Pierre
New submission from JP St. Pierre jstpie...@mecheye.net: Uploading a file to PyPI fails when a user has a long password, as base64.encodestring linewraps data. Either replace '\n' with '', or use base64.standard_b64encode -- assignee: tarek components: Distutils messages: 96709 nosy

[issue7552] uploading fails on long passwords

2009-12-20 Thread JP St. Pierre
JP St. Pierre jstpie...@mecheye.net added the comment: This patch should fix the bug. -- keywords: +patch Added file: http://bugs.python.org/file15631/auth_7552.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7552

wrap exe with in another exe

2009-12-18 Thread prakash jp
Hi all, I need to call an external executable from my calling_exe.py python program. Can we make a executable say-Final.exe from the calling_exe.py and the external.exe *calling_exe.py -(calling)- external.exe ||

Re: Python py2exe - memory load error

2009-11-29 Thread prakash jp
Try to install vcredist_x86.exe, then try to build using py2exe. I think that should solve the issue Regards Prakash On Mon, Nov 30, 2009 at 10:40 AM, koranthala koranth...@gmail.com wrote: This is cross post from stackoverflow - I couldnt get the solution there. Hopefully, nobody would mind.

python script as service

2009-05-13 Thread prakash jp
Hi all, could any one tell how to run a python script as a scheduled service(say every one minute). I tried out the windows registration method but encountered an error . The error reads: The 'script name' on local Computer started and then stopped. Some services stop automatically if they

stand alone exec

2009-05-10 Thread prakash jp
Hi all, I want to run dos commands through python stand alone execs. The created Python stand alone executable (py2exe) works fine in my machine but on transferring the dist folder to other systems the executable fails to run. I tried to copy the MSVCP90.dll in the dist folder. Also tried to

Re: Anyone mannaged to access parallel port on windows xp?

2009-04-08 Thread prakash jp
Hi all, just would like to say that most of the parallel port preexistant code is usually blinking leds, which is the not the true reprsentation of the paralle port behaviour. Here one needs to think that data is coming out byte after byte. Now plz look out for the sequence to push data byte

Re: Injecting python function in an embedded python engine

2009-04-08 Thread prakash jp
import os ch = os.system(import -window root temp.png) print ch after that no way to store the screen shot regards Prakash On Mon, Apr 6, 2009 at 10:28 PM, Roberto Fichera ker...@tekno-soft.itwrote: Hi All in the list, I've embedded python v2.6.x engine into my application without any

py2exe fails to make valid exe

2009-03-31 Thread prakash jp
Hi all, i am trying to make an exe out of my py *prg which write to a text file*. On -- python setup.py py2exe the dist folder is created but the exe creted is not working it throws an error pythons ps.popen function setup.py: #python setup.py py2exe from distutils.core import setup import

Re: Unix programmers and Idle

2009-03-30 Thread prakash jp
let run-cmd be used why go for IDLE 2009/3/31 Dale Amon a...@vnl.com I wonder if someone could point me at documentation on how to debug some of the standard Unix type things in Idle. I cannot seem to figure out how to set my argument line for the program I am debugging in an Idle window.

usb mass storage device detection

2009-03-30 Thread prakash jp
Hi all, I am interested in detecting usb mass storage devices, r there any scripts in python to do so. Thanks in advance. Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list

python -TFTP over LAN

2009-03-29 Thread prakash jp
Hi all, I am interested in using python based TFTP over my LAN. Do let me know how to ahead and any specific urls. Thaks in advance. Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list

email from windows

2009-03-29 Thread prakash jp
Hi all, In windows environment, how to send email from one gmail address to another gmail (or another mail) addrress Regards Prakash -- http://mail.python.org/mailman/listinfo/python-list

Re: email from windows

2009-03-29 Thread prakash jp
\smtplib.py, line 310, in connect raise socket.error, msg error: (10061, 'Connection refused') On Mon, Mar 30, 2009 at 7:40 AM, prakash jp prakash.st...@gmail.com wrote: Hi all, In windows environment, how to send email from one gmail address to another gmail (or another mail) addrress

Re: email from windows

2009-03-29 Thread prakash jp
: line = sys.stdin.readline() #if not line: #break msg = msg + line count = count -1 # The actual mail send server = smtplib.SMTP('localhost') server.sendmail(fromaddr, toaddrs, msg) server.quit() #pls define the usage On Mon, Mar 30, 2009 at 7:40 AM, prakash jp prakash.st

file transfer over LAN

2009-03-26 Thread prakash jp
Hi all, On generating log file on remote systems(say client), I want to transfer them to the Network Admins(say Server) Computer. In doing so all the contents of the log file r not transfered, only part of the file. I appreciate ur help, here is the pre-existant code: file sender

Re: making a opc client in Python and use opc server Events

2007-08-07 Thread jp . eugster
On 28 juin, 16:55, [EMAIL PROTECTED] wrote: On 4 juin, 11:32, [EMAIL PROTECTED] wrote: Hi all I have a sample code to implement opc client in Python. i use a file .py making by makepy with pythonwin for Com Interface. i can get all server in machine, connect to server opc,

Re: making a opc client in Python and use opc server Events

2007-06-28 Thread jp . eugster
On 4 juin, 11:32, [EMAIL PROTECTED] wrote: Hi all I have a sample code to implement opc client in Python. i use a file .py making by makepy with pythonwin for Com Interface. i can get all server in machine, connect to server opc, disconnect, add group, add item, read, write item in server

Re: PMW widget - skip tabbing to it

2007-03-27 Thread jp
On Mar 26, 5:41 pm, John McMonagle [EMAIL PROTECTED] wrote: jp wrote: On Mar 26, 10:51 am, jp [EMAIL PROTECTED] wrote: I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John What version of Pmw are you

PMW widget - skip tabbing to it

2007-03-26 Thread jp
I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John -- http://mail.python.org/mailman/listinfo/python-list

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: On Mar 26, 10:51 am, jp [EMAIL PROTECTED] wrote: I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John I would probably write some custom event handling

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote: On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: On Mar 26, 10:51 am, jp [EMAIL PROTECTED] wrote: I have multiple PMW widgets (EntryFields, ScrolledField etc), how can I skip over these widgets when using the tab key? Thank you, John

Re: PMW widget - skip tabbing to it

2007-03-26 Thread jp
On Mar 26, 12:34 pm, [EMAIL PROTECTED] wrote: On Mar 26, 11:35 am, jp [EMAIL PROTECTED] wrote: On Mar 26, 11:27 am, [EMAIL PROTECTED] wrote: On Mar 26, 11:17 am, [EMAIL PROTECTED] wrote: On Mar 26, 10:51 am, jp [EMAIL PROTECTED] wrote: I have multiple PMW widgets (EntryFields

ANN: nose 0.9.2 released

2007-01-31 Thread JP
nose is a discovery-based unittest extension that provides an alternate test discovery and running process for unittest, one that is intended to mimic the behavior of py.test as much as is reasonably possible without resorting to too much magic. nose 0.9.2 includes quite a few bug fixes and new

Re: Extention String returning

2005-10-24 Thread Jp Calderone
On 24 Oct 2005 11:28:23 -0700, Tuvas [EMAIL PROTECTED] wrote: I have been writing a program that is designed to return an 8 byte string from C to Python. Occasionally one or more of these bytes will be null, but the size of it will always be known. How can I write an extention module that will

Re: python gc performance in large apps

2005-10-22 Thread Jp Calderone
applications that leaked several page objects per request, which has been fixed since 0.5. If you're using either of these older versions, upgrading may fix your difficulties. Hope this helps, Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: KeyboardInterrupt vs extension written in C

2005-10-22 Thread Jp Calderone
it gets quit with longjmp). Note that swapcontext() is probably preferable to longjmp() in almost all circumstances. In cases where it isn't, siglongjmp() definitely is. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: High Order Messages in Python

2005-10-22 Thread Jp Calderone
. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: High Order Messages in Python

2005-10-22 Thread Jp Calderone
()) Or: map( ClaimaintType.receive_benefit, filter( ClaimaintType.retired, claimaints), itertools.repeat(50)) Or: claimaintGroup.disburse() Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: write a loopin one line; process file paths

2005-10-18 Thread Jp Calderone
'.decode('hex')) Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with cPickle for deserializing datetime.datetime instances

2005-10-14 Thread Jp Calderone
like instances of cPickle.Pdata or refcnt back from the loads() call in these cases. So, the summary is, don't do this. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Python reliability

2005-10-09 Thread Jp Calderone
2.1.3 and 2.2.3. These were network apps, with both client and server functionality, using Twisted. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Python reliability

2005-10-09 Thread Jp Calderone
it was gone), but as you point out, there's certainly precedent. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Lambda evaluation

2005-10-06 Thread Jp Calderone
typing: d = {} for x in 1, 2, 3: ... d[x] = lambda y, x=x: y * x ... d[1](3) 3 Who needs closures, anyway? :) Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: updating local()

2005-10-05 Thread Jp Calderone
. If I can call functions in your process space, I've already taken over your whole program. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: how to debug when Segmentation fault

2005-10-04 Thread Jp Calderone
, copyright, credits or license for more information. import dl dl.open('libc.so.6').call('memcpy', 0, 0, 1024) Segmentation fault [EMAIL PROTECTED]:~$ Though to be honest, even I consider the 3rd example a bit of a cheat ;) Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamical loading of modules

2005-10-03 Thread Jp Calderone
came from. If you start making it mean something else, you'll end up confusing people. If you just want a pretty name, use something /other/ than the class's fully qualified Python name. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Feature Proposal: Sequence .join method

2005-09-30 Thread Jp Calderone
use it for things like interleave(, , [foo, bar, baz]), where bar is not a string, but can be handled along with strings by a lower-level chunk of code. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Metaclasses, decorators, and synchronization

2005-09-25 Thread Jp Calderone
. The code is factored somewhat differently: the functionality is presented as pre- and post-execution hooks, and there is function decorator. The concept is the same, however. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading, real or simulated?

2005-09-21 Thread Jp Calderone
, by having the python interpreter multiplex between running threads. Is real threading possible, so that I do something time-consuming in the thread, without hanging the GUI? Assuming you mean threading.Thread, this is a native thread. It is not a simulation. Something else is going wrong. Jp

Re: Crypto.Cipher.ARC4, bust or me doing something wrong?

2005-09-20 Thread Jp Calderone
.new('hello monkeys') p.decrypt(o.encrypt('super secret message of doom')) 'super secret message of doom' Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: threading.Thread vs. signal.signal

2005-09-17 Thread Jp Calderone
datetime.datetime.now() task.LoopingCall(hello).start(1, now=False) reactor.run() Hope this helps! Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone explain what I've done wrong...

2005-09-17 Thread Jp Calderone
to None. Your code executes after this, tries to change None.population (since Person is now None), and explodes. Your best bet is not to use __del__ at all. Instead, add a method to be invoked when a person is going away, and then invoke it. Jp -- http://mail.python.org/mailman/listinfo/python

Re: Sockets: code works locally but fails over LAN

2005-08-31 Thread Jp Calderone
drop traffic, since Twisted checks the return value of send() and properly re-transmits anything which has not actually been sent. Hope this helps, Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic Server/Client socket pair not working

2005-08-29 Thread Jp Calderone
many programmers before you have solved. Hope this helps, Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: python and ajax

2005-08-29 Thread Jp Calderone
/livepage.py It's not a tutorial by itself, but if you poke around some of the other examples and read http://divmod.org/projects/nevow and some of the documents it references, you should be able to figure things out. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Using select on a unix command in lieu of signal

2005-08-29 Thread Jp Calderone
for it, and the working directory it is given). The return value differs too, of course: it's a Deferred instead of a two-tuple, but it will eventually fire with roughly the same information. Hope this helps, Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Creating a graphical interface on top of SSH. How?

2005-08-16 Thread Jp Calderone
On 16 Aug 2005 07:10:25 -0700, John F. [EMAIL PROTECTED] wrote: I want to write a client app in Python using wxWindows that connects to my FreeBSD server via SSH (using my machine account credentials) and runs a python or shell script when requested (by clicking a button for instance). Can

RE: Terminate a thread that doesn't check for events

2005-08-02 Thread Jp Calderone
to terminate at arbitrary times. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Problem

2005-07-24 Thread Jp Calderone
2005, 21:51:10) [GCC 3.3.5 (Debian 1:3.3.5-8ubuntu2)] on linux2 Type help, copyright, credits or license for more information. '\n\xfe'.encode('string-escape') '\\n\\xfe' '\\n\\xfe'.decode('string-escape') '\n\xfe' Introduced in Python 2.3 Jp -- http

Re: Need to interrupt to check for mouse movement

2005-07-21 Thread Jp Calderone
On Thu, 21 Jul 2005 00:51:45 -0400, Christopher Subich [EMAIL PROTECTED] wrote: Jp Calderone wrote: In the particular case of wxWidgets, it turns out that the *GUI* blocks for long periods of time, preventing the *network* from getting attention. But I agree with your position for other

Re: Need to interrupt to check for mouse movement

2005-07-21 Thread Jp Calderone
behaves differently in this regard than Gtk, Qt, and Tk. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Need to interrupt to check for mouse movement

2005-07-21 Thread Jp Calderone
, provided along with a callback function by the application. Am I hearing that wxWindows or other popular toolkits don't provide any such feature, and need multiple threads for this reason? Other popular toolkits do. wxWindows doesn't. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Need to interrupt to check for mouse movement

2005-07-21 Thread Jp Calderone
On Thu, 21 Jul 2005 02:33:05 -0400, Peter Hansen [EMAIL PROTECTED] wrote: Jp Calderone wrote: In the particular case of wxWidgets, it turns out that the *GUI* blocks for long periods of time, preventing the *network* from getting attention. But I agree with your position for other toolkits

Re: Buffering problem using subprocess module

2005-07-21 Thread Jp Calderone
buffering mode than when it sees stdout is a pty. I'm not sure how you use ptys with the subprocess module. Hope this helps, Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Stupid question: Making scripts python-scripts

2005-07-21 Thread Jp Calderone
the configuration of the system the program is being installed on. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding a built-in exception handler

2005-07-21 Thread Jp Calderone
exception handler. Thanks in advance for any help. See excepthook in the sys module documentation: http://python.org/doc/lib/module-sys.html Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Need to interrupt to check for mouse movement

2005-07-20 Thread Jp Calderone
process. In the particular case of wxWidgets, it turns out that the *GUI* blocks for long periods of time, preventing the *network* from getting attention. But I agree with your position for other toolkits, such as Gtk, Qt, or Tk. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Filtering out non-readable characters

2005-07-16 Thread Jp Calderone
On Sat, 16 Jul 2005 19:01:50 -0400, Peter Hansen [EMAIL PROTECTED] wrote: George Sakkis wrote: Bengt Richter [EMAIL PROTECTED] wrote: identity = ''.join([chr(i) for i in xrange(256)]) Or equivalently: identity = string.maketrans('','') Wow! That's handy, not to mention undocumented. (At

Re: threads and sleep?

2005-07-14 Thread Jp Calderone
. It's a tiny bit safer, perhaps, but that's all. For something different, take a look at Erlang's mechanism (this has been ported to Python, although I have heard nothing of the result since its release announcement, I wonder how it's doing?) Hope this helps, Jp -- http://mail.python.org/mailman

Re: how to get rate of pop3 receiving progress?

2005-07-14 Thread Jp Calderone
might do this using Twisted's POP3 client support is attached. Jp pop3progress.py Description: application/python -- http://mail.python.org/mailman/listinfo/python-list

Re: DNS access

2005-07-13 Thread Jp Calderone
-in hostname resolution functions. There are a number of third-party DNS libraries: http://devel.it.su.se/projects/python-dns/ http://pydns.sourceforge.net/ http://dustman.net/andy/python/adns-python/ http://twistedmatrix.com/projects/names/ Jp -- http://mail.python.org/mailman/listinfo

Re: DNS access

2005-07-13 Thread Jp Calderone
with PTR records (whereas standard DNS uses A records), which look like 25.2.0.192.in-addr.arpa. PTR host.example.com (whereas standard DNS would look like host.example.com. A 192.0.2.25). Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Use cases for del

2005-07-06 Thread Jp Calderone
? Unless you are actually relying on the global name not being defined, someGlobal = None would seem to do just fine. Relying on the global name not being defined seems like an edge case. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: map/filter/reduce/lambda opinions and background unscientificmini-survey

2005-07-03 Thread Jp Calderone
, and that there are plenty of other people who respond in the way you have in this message, but I had to pick /some/ post to reply to) Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Using regular expressions in internet searches

2005-07-03 Thread Jp Calderone
the best language for this? (Plus is it time-efficient?) Is there already a search engine that can do this? (2) How can I search multiple web pages within a single location or path? TIA, Mike Is a google search for site:cnn.com Michael not up to the task? Jp -- http://mail.python.org/mailman

Re: Favorite non-python language trick?

2005-07-03 Thread Jp Calderone
On Sun, 03 Jul 2005 15:40:38 -0500, Rocco Moretti [EMAIL PROTECTED] wrote: Jp Calderone wrote: On Fri, 01 Jul 2005 15:02:10 -0500, Rocco Moretti [EMAIL PROTECTED] wrote: I'm not aware of a language that allows it, but recently I've found myself wanting the ability to transparently replace

Re: looping over a big file

2005-07-03 Thread Jp Calderone
(big_file) for line in fileIter: line_after = fileIter.next() Don't mix iterating with any other file methods, since it will confuse the buffering scheme. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Favorite non-python language trick?

2005-07-01 Thread Jp Calderone
around a function, even if you don't have access to all references of that function. Why isn't it in Python? It's completely counter to the conventional object semantics. Smalltalk supports this with the become message. I have also done an implementation of this for Python. Jp -- http

Re: map/filter/reduce/lambda opinions and background unscientific mini-survey

2005-07-01 Thread Jp Calderone
StopIteration: break else: loop body Let's get rid of for, too. Jp -- http://mail.python.org/mailman/listinfo/python-list

Re: Scket connection to server

2005-06-30 Thread Jp Calderone
. There is a higher level socket framework called twisted that everyone seems to like. It may be worth looking at that too - haven't got round to it myself yet. Twisted is definitely worth checking out. Jp -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >