I wrote a little cheat sheet for this wonderful language, but because of
my still little experience with it, I would like to have a feedback
Could you have a look at it and tell me what do you think about, please? http://greyfox.imente.org/index.php?id=73
--
GreyFox 22 2094
Markus Gritsch ha scritto:
On Dec 27, 11:38 am, "Riccardo T." <gr3yfox...@gma il.comwrote:
>I wrote a little cheat sheet for this wonderful language, but because of my still little experience with it, I would like to have a feedback Could you have a look at it and tell me what do you think about, please?
http://greyfox.imente.org/index.php?id=73
Since Python 2.5 "try except else" and "try finally" got unified: http://docs.python.org/ref/try.html http://docs.python.org/whatsnew/pep-341.html
Thank you, but that cheat sheet is about Python 2.4, not 2.5, so it
should be correct.
It's written into the article, maybe I should write it on the sheet too.
--
GreyFox
On Dec 27, 12:38 pm, "Riccardo T." <gr3yfox...@gma il.comwrote:
I wrote a little cheat sheet for this wonderful language, but because of
my still little experience with it, I would like to have a feedback
Could you have a look at it and tell me what do you think about, please?
http://greyfox.imente.org/index.php?id=73
Nice work.
Only questionable thing I could see is listing dict.has_key(): I'm not
sure of it's officially deprecated but the recommended practice these
days is to to use "key in dict_obj".
Also, consider adding a line or two about the set objects. (It's
probably at least better than listing internal objects.)
Carl Banks
Carl Banks ha scritto:
On Dec 27, 12:38 pm, "Riccardo T." <gr3yfox...@gma il.comwrote:
>I wrote a little cheat sheet for this wonderful language, but because of my still little experience with it, I would like to have a feedback Could you have a look at it and tell me what do you think about, please?
http://greyfox.imente.org/index.php?id=73
Nice work.
I'm very glad you liked it :)
Only questionable thing I could see is listing dict.has_key(): I'm not
sure of it's officially deprecated but the recommended practice these
days is to to use "key in dict_obj".
I listed it because of help(dict.has_k ey) doesn't show any warning about
that. However, if "in" works as well, I'll remove it very soon.
Also, consider adding a line or two about the set objects. (It's
probably at least better than listing internal objects.)
I forgot it... thank you very much. I hope I'll find some more space to
write on.
Carl Banks
--
GreyFox
Riccardo T. wrote:
I wrote a little cheat sheet for this wonderful language, but because of
my still little experience with it, I would like to have a feedback
Could you have a look at it and tell me what do you think about, please?
http://greyfox.imente.org/index.php?id=73
--
GreyFox
[in the .png]
...
Callable types
...
User-definet methods
I personally prefer "User-defined methods"
...
Class instances
I'd try:
Class instances with a __call__ method.
...
Classes
Classes Instances
This probably wants to be
Class Instances
"file" objects are generally supposed to be built with the
open function, not instantiated as shown.
Also note iterating on a file gets the lines.
Do you know about seq[i:] and seq[::-1]?
--Scott David Daniels Sc***********@A cm.Org
Scott David Daniels ha scritto:
[in the .png]
>... Callable types ... User-definet methods
I personally prefer "User-defined methods"
That's a typo, thank you.
> ... Class instances
I'd try:
Class instances with a __call__ method.
Yes, it's more clear now.
>... Classes Classes Instances
This probably wants to be
Class Instances
Whoops, I'm sorry :)
"file" objects are generally supposed to be built with the
open function, not instantiated as shown.
Since open() is just an alias for file(), changing the name should be
enough, right?
Also note iterating on a file gets the lines.
What do you think about adding a line like this to the examples?
for line in open("filename" ,"r"): pass #iterate over lines
Do you know about seq[i:] and seq[::-1]?
Yes I know. I'll try to add them (together with seq[:] and seq[:j]).
Thank you very much indeed :)
--
GreyFox This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: David Goodger |
last post by:
I whipped together a cheat sheet for reStructuredText:
1 page for syntax, and a 1 page reference for directives
and roles. Please take a look:
<http://docutils.sf.net/docs/rst/cheatsheet.txt> (not
meant to be converted to HTML; use the source text as-is).
Feedback is welcome.
--
David Goodger <http://python.net/~goodger>
|
by: Rajiv |
last post by:
HI ALL,
actually , i m working in a company having large number of employee , i have
two userid and password .
on id is from admin group(id given to me by technology manager) of the
server and other is simpley the user .
my software is based on Lan authentication based i.e. when a user works on
my system i find that user using AUTH_USER , i think you will be getting my
point .
when i login using that admin id it creats the excel sheet...
|
by: darrel |
last post by:
I'm struggling to keep track of all the ways to format a match value. Can
anyone recommend a decent overview or cheat-sheet?
Here's the particular one I'm stuck on:
I want to match any 'page' tag with the attribute of the subSite param.
I've tried this:
//page
|
by: Gawelek |
last post by:
I would like to "cheat" VScrollBar in DataGrid. That means I want to link
for example
DataTable with 50 rows to DataGrid. But I want, that VScrollBar looks as if
DataTable contains
for example 100 or 1000 rows. Is it possible to do ?
I tried by Maximum properties, but it seems not to work.
Gawel
|
by: Mark Huebner |
last post by:
Does anyone know if there is a laminated quick reference or cheat sheet
available for the C# language? If so, who makes it and where can I get one?
Short coding samples with explanatory comments would be good. I'm not
looking for a book but rather a very condensed page or pages of sample code
with short explanations.
| |
by: |
last post by:
I wrote a class in VB.NET to export the contents of a datagrid to Excel. It
works perfectly on my machine, but it fails on my customers' PCs that have
identical versions of Win XP (SP1) and Excel (SP1) installed.
The error is:
System.Runtime.InteropServices.COMException(0x800A03EC): Exception from
HRESULT: 0x800A03EC.
at Microsoft.Office.Interop.Excel._Worksheet.Paste(Object Destination,
Object Link)
at...
|
by: Jarod |
last post by:
Hey
I've gridView with sqlDataSource SELECT command, but I want also has update.
But I don't want update to use sqlDataSource instead I use custom way od
updating in UpdateEvent of datagrid. But after update is "sucessful" I get
an error that there is no update command. For real there is no need to be
because I want to have my custom updating logic. So how can I cheat this ?
Jarod
|
by: ronverdonk |
last post by:
Maybe you alle know this, but for all beginners: there is a website that has excellent so-called "cheat sheets". These are short, 1 page overviews of the most important parts of a product.
They are FREE (don't be fooled by so-called resellers) , downloadable and availble in PNG and PDF formats. There are cheat sheets for e.g.
PHP
MySql
CSS
HTML tags
RGB colors
Ruby on Rails
and some more
|
by: hemantbasva |
last post by:
Note We need to have a template on server for generating report in multiple sheet
as we do not had msoffice on server
moreover this require a batch job to delete excel file created by the method....
it creates 6 sheets
# region Namespaces
using System;
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |