Re: How to create a file on users XP desktop

2007-10-08 Thread Julius
On Monday 08 October 2007 17:11:25 Tim Golden wrote: > [EMAIL PROTECTED] wrote: > > On Oct 8, 9:19 am, goldtech <[EMAIL PROTECTED]> wrote: > >>> from win32com.shell import shell, shellcon > >>> desktop = shell.SHGetFolderPath (0, shellcon.CSIDL_DESKTOP, 0, 0) > >>> > >> > >> Tim, > >> > >> How did

Urllib.request vs. Requests.get

2021-12-07 Thread Julius Hamilton
anyone please comment on what the fundamental differences are between urllib vs. requests, why this would happen, and if urllib has any option to prevent this and get the page source? Thanks, Julius -- https://mail.python.org/mailman/listinfo/python-list

HTML extraction

2021-12-07 Thread Julius Hamilton
want the ability to select which nodes to keep and which to discard? Can xpath / lxml do that? What are the chief differences between xpath / lxml and Beautiful Soup? Thanks, Julius -- https://mail.python.org/mailman/listinfo/python-list

Short, perfect program to read sentences of webpage

2021-12-08 Thread Julius Hamilton
ing developing an optimal segmenter with tools from Spacy. Brevity is greatly valued. I mean, anyone who can make the program more perfect, that’s hugely appreciated. But if someone can do it in very few lines of code, that’s also appreciated. Thanks very much, Julius -- https://mail.python.org/mail

Advanced ways to get object information from within python

2021-12-23 Thread Julius Hamilton
| Field | builtins.dict | builtins.object | | Data descriptors defined here: What are data descriptors? I understand IDE's tend to just print the docstring of a method as a sort of overlay while you are writing with it, but I'm not able to use the __docstring__ variable well - scrapy.__docstring__, scrapy.Spider.__docstring__, and so on, return "object has no attribute __docstring__". I'm really fond of inspect.getsource(), all else failing, though - that's very clear and insightful. There's more to learn but that's enough questions for now. I'd really appreciate anybody helping me find effective ways of investigating modules, classes and methods from the command line. Thanks very much, Julius -- https://mail.python.org/mailman/listinfo/python-list

Re: Pandas or Numpy

2022-01-23 Thread Julius Hamilton
Hey, I don’t know but in case you don’t get other good answers, I’m pretty sure Numpy is more of a mathematical library and Pandas is definitely for handling spreadsheet data. So maybe both. Julius On Sun 23. Jan 2022 at 18:28, Chris Angelico wrote: > On Mon, 24 Jan 2022 at 04:10, Tob

thanks

2016-01-26 Thread Kawuma Julius
Thank you for developing us.We love you God bless you the more. I am Julius in Uganda learning computer. -- https://mail.python.org/mailman/listinfo/python-list

Eric3 Help/Tutorial

2006-02-19 Thread Julius Lucks
Does anyone know of Help docs/tutorials that explain Eric3's plethora of features? http://www.die-offenbachs.de/detlev/eric3.html Thanks, Julius -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Read Bytes from a file

2007-03-06 Thread Matthias Julius
"Gabriel Genellina" <[EMAIL PROTECTED]> writes: > En Fri, 02 Mar 2007 08:22:36 -0300, Bart Ogryczak > <[EMAIL PROTECTED]> escribió: > >> On Mar 1, 7:36 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> >> wrote: >>> Thanks Bart. That's perfect. The other suggestion was to precompute >>> count1 for all

Re: Is numeric keys of Python's dictionary automatically sorted?

2007-03-08 Thread Matthias Julius
"John" <[EMAIL PROTECTED]> writes: > I am coding a radix sort in python and I think that Python's dictionary may > be a choice for bucket. > > The only problem is that dictionary is a mapping without order. But I just > found that if the keys are numeric, the keys themselves are ordered in the

Re: optimizing large dictionaries

2009-01-16 Thread Matthias Julius
Per Freem writes: > the only 'twist' is that my elt is an instance of a class (MyClass) > with 3 fields, all numeric. the class is hashable, and so > my_dict[elt] works well. the __repr__ and __hash__ methods of my > class simply return str() representation of self, which just calls __str__().