RE: Script profiling details

2022-01-11 Thread Joseph L. Casale
> You might try `py-spy`. That worked well, I started trying to get more data from the profile output with the stats module but didn't quite get there. Thank you everyone, jlc -- https://mail.python.org/mailman/listinfo/python-list

Re: Script profiling details

2022-01-11 Thread Dieter Maurer
Joseph L. Casale wrote at 2022-1-10 18:43 +: > ... >I expected this given the implementation, but I was hoping to get some >finer details so I can track down the specific module or at least the specific >file so I have a place to start reviewing code for optimizations. > >Is

Re: Script profiling details

2022-01-10 Thread Kirill Ratkin
s, but the largest culprit only shows various built-ins. I expected this given the implementation, but I was hoping to get some finer details so I can track down the specific module or at least the specific file so I have a place to start reviewing code for optimizations.

Re: Script profiling details

2022-01-10 Thread Barry
ilt-ins. > > I expected this given the implementation, but I was hoping to get some > finer details so I can track down the specific module or at least the specific > file so I have a place to start reviewing code for optimizations. > > Is there something I can use to analyze

Script profiling details

2022-01-10 Thread Joseph L. Casale
details so I can track down the specific module or at least the specific file so I have a place to start reviewing code for optimizations. Is there something I can use to analyze the existing profile output or to generate it with more feedback? Thanks, jlc -- https://mail.python.org/mailman

Re: What PEPs are worth reading after you've read a textbook/Beazley but want to understand details/innerworkings

2019-11-05 Thread Gregory Ewing
Gilmeh Serda wrote: Can't wait until we get to PEP 84657675, or PEP 33 PEP TREE(3) promises to be even more exciting! -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: What PEPs are worth reading after you've read a textbook/Beazley but want to understand details/innerworkings

2019-11-04 Thread Chris Angelico
On Tue, Nov 5, 2019 at 3:16 AM Veek M wrote: > > sez it all really, among the Finished PEPs, which ones should I pore > through to teach Python competently! > > What PEPs are considered de rigueur? What PEPs do you guys consider note- > worthy? > > https://www.python.org/dev/peps/ That's a really

What PEPs are worth reading after you've read a textbook/Beazley but want to understand details/innerworkings

2019-11-04 Thread Veek M
sez it all really, among the Finished PEPs, which ones should I pore through to teach Python competently! What PEPs are considered de rigueur? What PEPs do you guys consider note- worthy? https://www.python.org/dev/peps/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting process details on an operating system process/question answer by vouce

2018-07-16 Thread Steven D'Aprano
On Mon, 16 Jul 2018 06:47:53 -0600, John T. Haggerty wrote: > So, it's early for me---and I'm not sure if these things can be done but > I'd like to know the following: > > 1. How can Python connect to a running operating system process on a > host operating system to see what part of the executi

Getting process details on an operating system process/question answer by vouce

2018-07-16 Thread John T. Haggerty
So, it's early for me---and I'm not sure if these things can be done but I'd like to know the following: 1. How can Python connect to a running operating system process on a host operating system to see what part of the execution is like?---ie keep track of health stats like it's stuck on disk acc

Re: Sorry, here are the details.

2016-02-26 Thread Oscar Benjamin
Please reply to the list rather than directly to me (and then you will get a quicker response from someone else). On 25 February 2016 at 17:13, Giriprasadh Raghavan wrote: > I open the setup file of python 3.5.1 and click then install button. Then I > am displayed an error that says: > > One or m

Re: Suitable Python code to scrape specific details from web pages.

2014-08-17 Thread alex23
On 13/08/2014 7:28 AM, Roy Smith wrote: Second, if you're going to be parsing web pages, trying to use regexes is a losing game. You need something that knows how to parse HTML. The canonical answer is lxml (http://lxml.de/), but Beautiful Soup (http://www.crummy.com/software/BeautifulSoup/) is

Re: Suitable Python code to scrape specific details from web pages.

2014-08-13 Thread Denis McMahon
On Tue, 12 Aug 2014 13:00:30 -0700, Simon Evans wrote: > in accessing from the 'Racing Post' on a daily basis. Anyhow, the code Following is some starter code. You will have to look at the output, compare it to the web page, and work out how you want to process it further. Note that I use beaut

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Peter Pearson
On Tue, 12 Aug 2014 15:44:58 -0700 (PDT), Simon Evans wrote: [snip] > Dear Programmers, Thank you for your responses. I have installed > 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' > book, but can't seem to make any progress with it, I am too thick to > make much use of it.

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Roy Smith
In article <53eaab7d$0$29979$c3e8da3$54964...@news.astraweb.com>, Steven D'Aprano wrote: > By studying how other scraping programs work, and studying how your racing > pages store data, you should be able to put the two together and see how to > get the data you want. It's also worth mentioning

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Steven D'Aprano
Simon Evans wrote: > Dear Programmers, Thank you for your responses. I have installed > 'Beautiful Soup' and I have the 'Getting Started in Beautiful Soup' book, > but can't seem to make  any progress with it, I am too thick to make much > use of it. I was hoping I could scrape specified stuff off

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Simon Evans
ccessing data using links say from the Dow Jones index, to > accessing the details I would be interested in accessing from the 'Racing > Post' on a daily basis. Anyhow, the code it returns is not in the example I > am going to give, is not the information I am seeking, instead o

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Roy Smith
he Dow Jones index, to > accessing the details I would be interested in accessing from the 'Racing > Post' on a daily basis. Anyhow, the code it returns is not in the example I > am going to give, is not the information I am seeking, instead of returning > the given odds o

Re: Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Rob Gaddi
g data using links say from the Dow Jones index, to > accessing the details I would be interested in accessing from the 'Racing > Post' on a daily basis. Anyhow, the code it returns is not in the example I > am going to give, is not the information I am seeking, instead of return

Suitable Python code to scrape specific details from web pages.

2014-08-12 Thread Simon Evans
Dear Programmers, I have been looking at the You tube 'Web Scraping Tutorials' of Chris Reeves. I have tried a few of his python programs in the Python27 command prompt, but altered them from accessing data using links say from the Dow Jones index, to accessing the details I would be

Re: __class__ and type() implementation details in CPython

2013-02-10 Thread Steven D'Aprano
.X object at 0xb7c9adac> py> x.__class__ = Y py> x <__main__.Y object at 0xb7c9adac> py> type(x) I believe that it depends on whether the instance being inspected is a heap-type (e.g. pure-Python object) or not. > I'm > looking for some CPyhton implementation detai

__class__ and type() implementation details in CPython

2013-02-10 Thread Ivan Yurchenko
, , True) So, type doesn't use object's __class__ to determine its class. I'm looking for some CPyhton implementation details - how does class identification with type() work? According to CPython's sources it looks like there is a "marker" of actual object's cl

Re: ctypes details was: Re: syntax for code blocks

2012-04-30 Thread mwilson
Kiuhnm wrote: > Regarding ctypes, try this to convince yourself that there's no problem > in reusing BignumPtrType: > from ctypes import POINTER, c_int > assert POINTER(c_int) is POINTER(c_int) print ('POINTERs are shareable:', ctypes.POINTER (BignumType) is ctypes.POINTER (BignumType))

Re: ctypes details was: Re: syntax for code blocks

2012-04-30 Thread Kiuhnm
On 4/30/2012 17:42, mwil...@the-wire.com wrote: On 4/30/2012 17:02, Kiuhnm wrote: BignumTypePtr = ctypes.POINTER(BignumType) for op, op_word in ((libbnem.BN_add, libbnem.BN_add_word), (libbnem.BN_sub, libbnem.BN_sub_word)): op.argtypes = [BignumTypePtr] * 3 op_word.argtypes = [BignumTypePtr, ct

ctypes details was: Re: syntax for code blocks

2012-04-30 Thread mwilson
> On 4/30/2012 17:02, Kiuhnm wrote: >> BignumTypePtr = ctypes.POINTER(BignumType) >> >> for op, op_word in ((libbnem.BN_add, libbnem.BN_add_word), >> (libbnem.BN_sub, libbnem.BN_sub_word)): >> op.argtypes = [BignumTypePtr] * 3 >> op_word.argtypes = [BignumTypePtr, ctypes.c_ulong] >> op.restype = op

would u wanna details about ur life partner.click here free registration.

2012-02-08 Thread vetri vijay
http://123maza.com/46/river834/ -- http://mail.python.org/mailman/listinfo/python-list

PyGameZine launched. See http://pygame.org for details.

2011-11-20 Thread illume
Hey ya, today we launched the first issue of PyGameZine. For more info, please see the pygame website: http://www.pygame.org/ cheers! -- http://mail.python.org/mailman/listinfo/python-list

PyCon UK 2011 - 24th to 25th September 2011 - Conference Announcement and Booking details

2011-07-25 Thread Zeth
t and community-run by volunteers. It is your conference so you can give a talk, lead a workshop or help with publicity - see our wiki for more details. In particular, it would help a lot if you can forward this announcement to your Python-using friends and colleagues and relevant mailing lists, or li

your web page details

2011-03-29 Thread radha krishnan
http://123maza.com/65/agent409/ -- http://mail.python.org/mailman/listinfo/python-list

Buy Genuine Google Adsense Account only for Rs.200/- for indian people. For more details visit http://www.buygoogleadsense.tk/ We also provide procedure for creating unlimited google adsense account

2010-03-05 Thread Google Adsense
Buy Genuine Google Adsense Account only for Rs.200/- for indian people. For more details visit http://www.buygoogleadsense.tk/ We also provide procedure for creating unlimited google adsense account trick . -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding file details...

2008-05-30 Thread Kalibr
On May 30, 3:03 pm, Kam-Hung Soh <[EMAIL PROTECTED]> wrote: > Kalibr wrote: > > On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: > >> You can use the shell COM objects to access media properties > >> as shown by Explorer. > > >> import win32com.client > >> sh=win32com.client.Dispatch('S

Re: Finding file details...

2008-05-29 Thread Kam-Hung Soh
Kalibr wrote: On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: You can use the shell COM objects to access media properties as shown by Explorer. import win32com.client sh=win32com.client.Dispatch('Shell.Application') folder= r'M:\Music\Bob Dylan\Highway 61 Revisited' ns=sh.NameSpa

Re: Finding file details...

2008-05-29 Thread Roger Upole
Kalibr wrote: > On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: >> >> You can use the shell COM objects to access media properties >> as shown by Explorer. >> >> import win32com.client >> sh=win32com.client.Dispatch('Shell.Application') >> >> folder= r'M:\Music\Bob Dylan\Highway 61 Rev

Re: Finding file details...

2008-05-29 Thread Kam-Hung Soh
Roger Upole wrote: Kalibr wrote: I've been trying to figure out how to find the details of files (specifically music for now) for a little sorting script I'm making, My aim is to get details on the artist, album, and genre for mp3 and wma files (possibly more in the future). My clo

Re: Finding file details...

2008-05-29 Thread Kalibr
On May 30, 1:41 am, "Roger Upole" <[EMAIL PROTECTED]> wrote: > > You can use the shell COM objects to access media properties > as shown by Explorer. > > import win32com.client > sh=win32com.client.Dispatch('Shell.Application') > > folder= r'M:\Music\Bob Dylan\Highway 61 Revisited' > ns=sh.NameSpac

Re: Finding file details...

2008-05-29 Thread Roger Upole
Kalibr wrote: > I've been trying to figure out how to find the details of files > (specifically music for now) for a little sorting script I'm making, > My aim is to get details on the artist, album, and genre for mp3 and > wma files (possibly more in the future). My cl

Re: Finding file details...

2008-05-29 Thread Mike Driscoll
On May 29, 5:26 am, Kalibr <[EMAIL PROTECTED]> wrote: > On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > > > > > You don't say, but I assume you're on Windows since you mention > > GetFileVersionInfo (which doesn't have anything to do with media > > files, by the way) and WMA. There

Re: Finding file details...

2008-05-29 Thread Tim Golden
Kalibr wrote: On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote: You don't say, but I assume you're on Windows since you mention GetFileVersionInfo (which doesn't have anything to do with media files, by the way) and WMA. There may be packages out there to do all this already but if not y

Re: Finding file details...

2008-05-29 Thread Kalibr
On May 29, 7:55 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > You don't say, but I assume you're on Windows since you mention > GetFileVersionInfo (which doesn't have anything to do with media > files, by the way) and WMA. There may be packages out there > to do all this already but if not you'll n

Re: Finding file details...

2008-05-29 Thread Tim Golden
Kalibr wrote: I've been trying to figure out how to find the details of files (specifically music for now) for a little sorting script I'm making, My aim is to get details on the artist, album, and genre for mp3 and wma files (possibly more in the future). My closest match was when

Finding file details...

2008-05-29 Thread Kalibr
I've been trying to figure out how to find the details of files (specifically music for now) for a little sorting script I'm making, My aim is to get details on the artist, album, and genre for mp3 and wma files (possibly more in the future). My closest match was when I stumbled accro

pyExcelerator number formats and borders (was Re: PyExcerlerator details)

2008-04-29 Thread John Machin
A_H wrote: Hi, I'm using PyExcelerator, and it's great, If you are using the latest released version, it's not, IMO. Reading the fixed-later bug reports on Sourceforge may prompt you to get the latest version from svn. Reading the unfixed bug reports on Sourceforge may prompt you to switch t

PyExcerlerator details

2008-04-29 Thread A_H
Hi, I'm using PyExcelerator, and it's great, but I can't figure out a few things: (1) I set the cell style to '0.00%' but the style does not work. (2) I want to place a border around the cells( x1, y1, x2, y2 ) but I can't find any example of doing that. Well I do see ONE example, but it erase

Exciting FREE Details

2008-03-15 Thread sreya9636
Tips On Buying A Desktop Computer While the case may not be important to some computer users it is a consideration to be thought about before purchasing a desktop computer. ... Log on : http://www.computer-solution.page.tl -- http://mail.python.org/mailman/listinfo/python-list

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Marc 'BlackJack' Rintsch
On Fri, 14 Mar 2008 17:06:00 +, Matt Nordhoff wrote: > Hmm, if Perl's on-disk hash tables are good, maybe someone should port > them to Python, or maybe someone already has. I don't know Perl's on-disk hash tables but there is a `shelve` module in the standard library. Ciao, Marc 'Bl

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Tim Golden
Matt Nordhoff wrote: > Michael Wieher wrote: >> I'm not sure if a well-written file/seek/read algorithm is faster than a >> relational database... >> sure a database can store relations and triggers and all that, but if >> he's just doing a lookup for static data, then I'm thinking disk IO is >> fa

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Matt Nordhoff
Michael Wieher wrote: > I'm not sure if a well-written file/seek/read algorithm is faster than a > relational database... > sure a database can store relations and triggers and all that, but if > he's just doing a lookup for static data, then I'm thinking disk IO is > faster for him? not sure I w

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Michael Wieher
2008/3/14, Gerardo Herzig <[EMAIL PROTECTED]>: > > Saideep A V S wrote: > > >Hello Sir, > > > > Thank You a ton. I was looking for this function. As far what I've > >understood from the "Shelve" module is that, there would be no memory > >wastage and the whole transactions would be done from and

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Gerardo Herzig
Saideep A V S wrote: >Hello Sir, > > Thank You a ton. I was looking for this function. As far what I've >understood from the "Shelve" module is that, there would be no memory >wastage and the whole transactions would be done from and to the file we >specify. Am I right?. > > My actual task is t

Re: request for Details about Dictionaries in Python

2008-03-14 Thread Gerardo Herzig
Saideep A V S wrote: >Hello Sir, > > I am a beginner level programmer in Python. I am in search of a >function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables >in Perl (i.e., tie function in Perl). > > > Could anyone help me with the concept. I have also searched the net,

request for Details about Dictionaries in Python

2008-03-14 Thread Saideep A V S
Hello Sir, I am a beginner level programmer in Python. I am in search of a function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables in Perl (i.e., tie function in Perl). Could anyone help me with the concept. I have also searched the net, but was not successful in fin

Re: Details about pythons set implementation

2008-01-19 Thread Albert van der Horst
In article <[EMAIL PROTECTED]>, bukzor <[EMAIL PROTECTED]> wrote: >On Jan 4, 2:15 pm, Steven D'Aprano <[EMAIL PROTECTED] >cybersource.com.au> wrote: >> On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote: >> > Why cant you implement < for complex numbers? Maybe I'm being naive, but >> > isn't this th

Re: Details about pythons set implementation

2008-01-05 Thread bearophileHUGS
Sion Arrowsmith: > Because ... how to be polite about this? No, I can't. std::set is > crap. The implementation is a sorted sequence What about using hash_map instead? You can use it with GCC too (but you have to use a trick if you want to use string keys). Bye, bearophile -- http://mail.python.

Re: Details about pythons set implementation

2008-01-05 Thread bukzor
On Jan 4, 2:15 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote: > > Why cant you implement < for complex numbers? Maybe I'm being naive, but > > isn't this the normal definition? > > a + bi < c + di iff sqrt(a**2 + b**2) < sqr

Re: Details about pythons set implementation

2008-01-05 Thread r . grimm
On Jan 4, 6:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]> wrote: > Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > > >BTW if you're using C++, why not simply use std::set? > > Because ... how to be polite about this? No, I can't. std::set is > crap. The implementation is a sorted sequence -- if you're luc

Re: Details about pythons set implementation

2008-01-04 Thread Arnaud Delobelle
On Jan 4, 10:15 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote: > > Why cant you implement < for complex numbers? Maybe I'm being naive, but > > isn't this the normal definition? > >     a + bi < c + di iff sqrt(a**2 + b**2) < sq

Re: Details about pythons set implementation

2008-01-04 Thread Steven D'Aprano
On Fri, 04 Jan 2008 09:29:50 -0800, bukzor wrote: > Why cant you implement < for complex numbers? Maybe I'm being naive, but > isn't this the normal definition? > a + bi < c + di iff sqrt(a**2 + b**2) < sqrt(c**2, d**2) No, it is not. Ordered comparisons are not defined for complex numbers.

Re: Details about pythons set implementation

2008-01-04 Thread Piet van Oostrum
> bukzor <[EMAIL PROTECTED]> (B) wrote: >B> Why cant you implement < for complex numbers? Maybe I'm being naive, >B> but isn't this the normal definition? >B> a + bi < c + di iff sqrt(a**2 + b**2) < sqrt(c**2, d**2) There doesn't exist a `normal' definition of < for the complex numbers. F

Re: Details about pythons set implementation

2008-01-04 Thread Diez B. Roggisch
bukzor schrieb: > On Jan 4, 9:08 am, Sion Arrowsmith <[EMAIL PROTECTED]> > wrote: >> Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >> >>> BTW if you're using C++, why not simply use std::set? >> Because ... how to be polite about this? No, I can't. std::set is >> crap. The implementation is a sorted se

Re: Details about pythons set implementation

2008-01-04 Thread Arnaud Delobelle
On Jan 4, 5:08 pm, Sion Arrowsmith <[EMAIL PROTECTED]> wrote: [...] > But the real killer is that requirement for a std::set is that > T::operator< exists. Which means, for instance, that you can't > have a set of complex numbers This is really OT but IIRC, std::set is actually std::set< T, st

Re: Details about pythons set implementation

2008-01-04 Thread bukzor
On Jan 4, 9:08 am, Sion Arrowsmith <[EMAIL PROTECTED]> wrote: > Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > > >BTW if you're using C++, why not simply use std::set? > > Because ... how to be polite about this? No, I can't. std::set is > crap. The implementation is a sorted sequence -- if you're luc

Re: Details about pythons set implementation

2008-01-04 Thread Sion Arrowsmith
Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >BTW if you're using C++, why not simply use std::set? Because ... how to be polite about this? No, I can't. std::set is crap. The implementation is a sorted sequence -- if you're lucky, this is a heap or a C array, and you've got O(log n) performance. But

Re: Details about pythons set implementation

2008-01-04 Thread Hrvoje Niksic
Achim Domma <[EMAIL PROTECTED]> writes: > I'm interested in details about how sets are implemented in python. > They seem to be quite fast and I found some remarks who state, that > the implementation is highly optimized. I need to implemented sets > in C/C++ and need a s

Re: Details about pythons set implementation

2008-01-04 Thread Neil Cerutti
On Jan 4, 2008 9:54 AM, Achim Domma <[EMAIL PROTECTED]> wrote: > Hi, > > I'm interested in details about how sets are implemented in python. > They seem to be quite fast and I found some remarks who state, that > the implementation is highly optimized. I need to imple

Details about pythons set implementation

2008-01-04 Thread Achim Domma
Hi, I'm interested in details about how sets are implemented in python. They seem to be quite fast and I found some remarks who state, that the implementation is highly optimized. I need to implemented sets in C/C++ and need a starting point on how to do it right. Could somebody give

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-10-03 Thread John Nagle
John Nagle wrote: > Heikki Toivonen wrote: >That's progress, but the build still doesn't work: ... > during a C compile, we get > > SWIG/_m2crypto_wrap.c:2529:18: error: _lib.h: No such file or directory > > and the build goes downhill from there, with many compile errors in the > GCC phase.

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-25 Thread John Nagle
Heikki Toivonen wrote: > John Nagle wrote: > >>But notice that the -D entry didn't appear on the SWIG command line. >>Neither did the "-includeall". The "swig_opts" values around line >>129 aren't actually being used. I think that's left over from the code >>intended >>to allow builds with Pytho

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-24 Thread Heikki Toivonen
John Nagle wrote: > But notice that the -D entry didn't appear on the SWIG command line. > Neither did the "-includeall". The "swig_opts" values around line > 129 aren't actually being used. I think that's left over from the code > intended > to allow builds with Python 2.3 and earlier. The "sel

Re: M2Crypto 0.18 - new version, same old build bugs - more details

2007-09-24 Thread John Nagle
Heikki Toivonen wrote: > John Nagle wrote: > >>Back in March, I posted this: >> >> >>>Hit that with OpenSSL. Red Hat took elliptical curve cryptography >>>out of Fedora 6 for patent reasons. With that missing, M2Crypto won't >>>build. It ought to; the implementor of M2Crypto thought of that

Returned mail: see transcript for details

2007-06-11 Thread donnalovejoy
The original message was received at Mon, 11 Jun 2007 16:19:34 -0400 from [216.121.182.178] - The following addresses had permanent fatal errors - *** ** Attachment document.scr was filtered.

Returned mail: see transcript for details

2007-04-27 Thread Mail Administrator
*** ** Attachment file.scr was filtered. ***-- http://mail.python.org/mailman/listinfo/python-list

Re: Question about details of __import__

2007-03-29 Thread Mitko Haralanov
On Thu, 29 Mar 2007 16:45:08 -0300 "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > If you think that Python got confused and has two duplicate modules, try > to find them in sys.modules. Perhaps under the names 'log' and 'xxx.log' > Or, using print, try to see *when* your global variable is res

Re: Question about details of __import__

2007-03-29 Thread Gabriel Genellina
En Thu, 29 Mar 2007 15:56:54 -0300, Mitko Haralanov <[EMAIL PROTECTED]> escribió: >> You may check if this is the case, looking at sys.modules > > I did look at sys.modules but I wasn't sure what to look for. There was > a log module in the list but what else should I look for? If you think tha

Re: Question about details of __import__

2007-03-29 Thread Mitko Haralanov
On Thu, 29 Mar 2007 15:43:46 -0300 "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Surely there is a ./resources/__init__.py too? There sure is: ./resources/__init__.py is: __all__ = ['simple', 'other'] > You may check if this is the case, looking at sys.modules I did look at sys.modules but I

Re: Question about details of __import__

2007-03-29 Thread Gabriel Genellina
En Thu, 29 Mar 2007 14:42:33 -0300, Mitko Haralanov <[EMAIL PROTECTED]> escribió: > I have three modules that a comprising the problem: > ./core.py > ./log.py > ./resources/simple/__init__.py Surely there is a ./resources/__init__.py too? > The problem that I am seeing is that 'global_info' in

Question about details of __import__

2007-03-29 Thread Mitko Haralanov
Hi all, I am going to do my best to describe the issue that I am having and hopefully someone can shed some light on it: I have three modules that a comprising the problem: ./core.py ./log.py ./resources/simple/__init__.py core.py looks something like this (simplified version): import log class

Re: Returned mail: see transcript for details (1174853648)

2007-03-25 Thread Internet Technology Group
--|||-- Request Management System - Time Inc. --- To confirm this message was intended to be created as a request in the Internet Technology Group's Request Management System, please

Re: clientcookie/clientform and checking to see if a website accepted my login details

2007-03-08 Thread John J. Lee
[EMAIL PROTECTED] writes: > alright, i'm coding a program that will log me into yahoo.com (so > far), now, the problem i have is that once i've submitted by login & > password, the program doesn't know whether yahoo.com accepted it. > " > response = ClientCookie.urlopen(form.click()) > " > > now,

clientcookie/clientform and checking to see if a website accepted my login details

2007-03-05 Thread socialanxiety
alright, i'm coding a program that will log me into yahoo.com (so far), now, the problem i have is that once i've submitted by login & password, the program doesn't know whether yahoo.com accepted it. " response = ClientCookie.urlopen(form.click()) " now, when i get an error, the contents of 'resp

Re: Accessing Add/Remove Programs Details

2006-09-08 Thread Tim Golden
roduct in c.Win32_Product (Caption=appname): > > print product.Caption > > # product.Uninstall () > > > > > > Thanks Tim for the reply. I started looking along the same lines. > It looks like, I need to give the Product details exactly as it is > register

Re: Accessing Add/Remove Programs Details

2006-09-08 Thread Phoe6
n > # product.Uninstall () > > Thanks Tim for the reply. I started looking along the same lines. It looks like, I need to give the Product details exactly as it is registered(?). Trying out stuff like: >>> import wmi >>> appname = "IsoBuster 1.9.1" &g

Returned mail: see transcript for details

2006-09-07 Thread Automatic Email Delivery Software
This message was undeliverable due to the following reason(s): Your message could not be delivered because the destination server was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely

RE: Accessing Add/Remove Programs Details

2006-09-07 Thread Tim Golden
e Add/Remove Program details and check if the application | is present. | 3) If present, then uninstall it. | | I want to understand the Python Win32 modules/calls that would helpful | to me in this direction. Are there any? I don't want to do it as GUI | automation using dogtail, as I want t

Accessing Add/Remove Programs Details

2006-09-07 Thread Phoe6
ogram details and check if the application is present. 3) If present, then uninstall it. I want to understand the Python Win32 modules/calls that would helpful to me in this direction. Are there any? I don't want to do it as GUI automation using dogtail, as I want to maintain a homogeneous

Returned mail: see transcript for details

2006-06-02 Thread Returned mail
Your message was not delivered due to the following reason(s): Your message could not be delivered because the destination computer was not reachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most lik

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread Jon Clements
Something like: import csv in_csv=csv.reader( file('your INPUT filenamehere.csv') ) out_csv=csv.writer( file('your OUPUT filenamehere.csv','wb') ) ## If you have a header record on your input file, then out_csv.writerow( in_csv.next() ) ## Iterate over your input file for row in in_csv: # Row

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread k.i.n.g.
Hi ALL, I am sorry for not mentioning that I am new to python and scripting. How can I add the above script to handle csv file. I want the script to generate passwords in the passwords column/row in a csv file. userid,realname,dateofB,passwd The script should read the userid and genrate the pass

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread Sybren Stuvel
k.i.n.g. enlightened us with: > Now I have to write a script to generate random password in the > password field for each user. A simple algorithm is sufficient for > passwords Check out the source of pwsafe, it has a great password generator. It can generate with different lengths, based on amoun

Re: Generating random passwords ... for a csv file with user details

2006-05-28 Thread Klaus Alexander Seistrup
Kanthi skrev: > I have a csv file which in taken as the input file for adding > users in my linux mail server with the format > > userid,fullname,passwword,dateofbith > > Now I have to write a script to generate random password in the > password field for each user. A simple algorithm is sufficie

Re: generating random passwords ... for a csv file with user details

2006-05-28 Thread andychambers2002
import random def rand_str(len): chars = ''.join(['abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', '1234567890', '_+']) # plus whatever additional characters you want return ''.join([random.choice(chars) for i in ran

generating random passwords ... for a csv file with user details

2006-05-28 Thread k.i.n.g.
Hi, I have a csv file which in taken as the input file for adding users in my linux mail server with the format userid,fullname,passwword,dateofbith Now I have to write a script to generate random password in the password field for each user. A simple algorithm is sufficient for passwords I bei

details

2006-03-15 Thread PyDenis
Python: ActivePython 2.4.2 Build 10 (ActiveState Corp.) based on Python 2.4.2 (#67, Jan 17 2006, 15:36:03) [MSC v.1310 32 bit (Intel)] on win32 - win32ui: Dont know how to get version info. Little snippet [code:1:f18a50c332]import win32ui aa = sorted(dir(win32ui)) for i in

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Claudio Grondi
;content if on appropriate endian machine), which would make the bit >>extraction comparable easy and effective as the i.__hex__() based method. >>Using digits() instead of the code you have provided speeds the whole >>thing up two times (see attached code for details), but stil

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Bengt Richter
ld make the bit >extraction comparable easy and effective as the i.__hex__() based method. >Using digits() instead of the code you have provided speeds the whole >thing up two times (see attached code for details), but still is >i.__hex__() the best way to go and could be improve

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Carl Friedrich Bolz
he internal representation is surprising). Basically it gives the implementor of a Python interpreter the freedom to choose the internal representation that he deems to be the most fitting. If implementation details leaked outside that wouldn't be possible anymore. Cheers, Carl Friedrich Bolz -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Claudio Grondi
Paul Rubin wrote: > Claudio Grondi <[EMAIL PROTECTED]> writes: > >>The question is if Python allows somehow access to the bytes of the >>representation of a long integer or integer in computers memory? > > > No it doesn't, and that's a good thing, since the internal > representation is a little

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Alex Martelli
Claudio Grondi <[EMAIL PROTECTED]> wrote: ... > What I am also looking for is a conversion to base 256 (i.e where the > full byte is used and the string and the integer have the same actual > content if on appropriate endian machine), which would make the bit gmpy supplies that, too: gmpy.bi

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Martin v. Löwis
Claudio Grondi wrote: >> You can get somewhat faster in Python than your code if you avoid >> producing new long objects all the time, and do the task in chunks of 30 >> bits. > > It would be nice if you could explain why you consider chunks of 30 bits > to be superior e.g. to chunks of 32 bits?

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Claudio Grondi
. What I am also looking for is a conversion to base 256 (i.e where the full byte is used and the string and the integer have the same actual content if on appropriate endian machine), which would make the bit extraction comparable easy and effective as the i.__hex__() based method. Using digits()

Re: Does Python allow access to some of the implementation details?

2006-01-06 Thread [EMAIL PROTECTED]
Claudio Grondi wrote: > Martin v. Löwis wrote: > > You can get somewhat faster in Python than your code if you avoid > > producing new long objects all the time, and do the task in chunks of 30 > > bits. > It would be nice if you could explain why you consider chunks of 30 bits > to be superior e.g

  1   2   >